Skip to content

Clarify Guardrail: Policy decides, HITL and workflows enforce - #49

Merged
jsoneaday merged 3 commits into
mainfrom
chore/clarify-policy-workflows-hitl
Sep 27, 2026
Merged

jsoneaday merged 3 commits into
mainfrom
chore/clarify-policy-workflows-hitl

Conversation

@jsoneaday

Copy link
Copy Markdown
Owner

Summary

  • Add Structure/Guardrailumbrella with Policy, HITL, and Workflow contracts driven by GuardrailDecision.
  • Admit workflow starts in WorkflowRuntimeEngine via WorkflowAdmissionPolicy (UI proposes; Guardrail authorizes). Keep pluginFactoryEdit denied as a placeholder.
  • Enforce effector admission for web.crawl in MCPService; consolidate store-backed and in-memory policy onto the same decision surface.
  • Stale sweep: remove scratch scripts/todo.rtf, fix broken doc links, widen local DB reset paths.

Closes #45

Test plan

  • swift test --filter Guardrail in packages/Structure
  • swift test in packages/MemorySystem and packages/PolicyRuntime
  • swift test --filter WorkflowIntegration in packages/DerrickBackend
  • Create a plugin from the UI and confirm the create workflow still starts
  • Confirm starting/editing via pluginFactoryEdit is rejected until that kind is enabled

Made with Cursor

jsoneaday and others added 3 commits September 26, 2026 18:31
Nest Policy, HITL, and workflows under Guardrail with one GuardrailDecision vocabulary, admit workflow starts and web.crawl through that policy, and drop stale scratch docs/scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace hardcoded workflow/effector allowlists with store-backed Policy evaluation; thin adapters apply allow, deny, confirmHITL, and redact at WorkflowRuntimeEngine and MCPService.

Co-authored-by: Cursor <cursoragent@cursor.com>
Chokepoints now only evaluate Policy rules then apply GuardrailDecision; remove interceptor and admission-policy types that duplicated that path.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jsoneaday jsoneaday self-assigned this Sep 27, 2026
@jsoneaday
jsoneaday merged commit 4a99a68 into main Sep 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify and distinguish the Policy Engine, Workflows, Guardrails, and HITL

1 participant