Canonical user-story catalog. Used for Playwright tests + Claude Design input for governance dashboard.
Scope: OS-006 agent governance shim — org trees, policies, signed authorization, audit. Unit-test surface covered: delegatic/test/** (42 tests — authorization kernel v0.1.0). Full org-tree + effective-policy layer still spec-only.
Persona: Enterprise governance officer setting up multi-team platform
Goal: Define org tree (HQ → Engineering → ML Team) with monotonic policy inheritance
Prerequisite: Delegatic running; auth setup
Steps:
Navigate to dashboard; create root org "Acme Corp"
Create "Engineering" under Acme; set policy allow_agent_deploy: true, max_agents: 50
Create "ML Team" under Engineering; propose max_agents: 5 (tightening)
PolicyEngine validates: tighter than parent? YES. Accept.
ETS cache invalidated; PubSub broadcasts change
Success: Org tree visible; policy inheritance resolved in <5μs; child policies enforce tighter constraints
Covers: PolicyEngine.compute_effective, monotonic validation, ETS cache — ~15 unit tests
UI status: planned (spec-complete; kernel ships today without UI)
Claude Design hook: Org tree visualization with policy badges showing inheritance chain
Persona: Operator linking Graphonomous goals to governance decisions
Goal: Attach a goal_id to org; enforce policy constraints keyed by goal context
Prerequisite: Graphonomous goal exists; Delegatic org exists
Steps:
POST /orgs/{org_id}/goals {goal_id, tags}
OrgGoal attachment created (reference-only; goal content NOT copied)
Task arrives with goal_id + action deploy_agent
PolicyEngine checks: goal attached? parent goal not suspended? action authorized under this goal?
Audit event recorded with goal_id
Success: Goal-scoped audit trail; policies keyed by durable intent; revocation doesn't delete goal
Covers: org_goal attachment, reference storage, audit creation, goal-aware routing — ~10 unit tests
UI status: planned
Claude Design hook: Audit log entry with goal_id + collapsed goal context panel
Persona: Security team auditing access
Goal: No agent can deploy unless explicitly authorized; detect violations in real-time
Prerequisite: Root org allow_agent_deploy: false; child orgs inherit
Steps:
Intern Team agent attempts deploy_agent
PolicyEngine walks ancestors: Intern Team → ML Team → Engineering → Acme
Effective: allow_agent_deploy: false (inherited from root)
Verdict: DENY
Audit event logged; dashboard highlights violation; PubSub alerts
Success: Policy enforced; violation auditable; no privilege escalation
Covers: monotonic AND logic, ancestor traversal, deny-by-default — ~12 unit tests
UI status: planned
Claude Design hook: Real-time violation ticker; drill-down to policy inheritance chain
Persona: Dark-factory operator replaying learned workflow on different machine
Goal: Trace includes file deletions → each destructive step re-authorized via Delegatic
Prerequisite: body-os trace recorded; Delegatic policy attached
Steps:
Destination agent calls body.os.replay(Trace) with action: "file_delete@/ws/tmp/*"
Before executing: check_policy(org_id, action: "file_delete", goal_id)
Delegatic verifies: actor in org? scope attached? action ≤ policy limit?
If authorized: proceed; audit event with trace_id. If denied: fail-fast, emit SurpriseSignal
Success: Cross-machine replay is governed; destructive actions re-authorized per environment
Covers: policy check at commit time, audit emission with trace_id — ~8 unit tests (v0.1 kernel)
UI status: planned
Claude Design hook: Re-auth checkpoint UI — action + decision + actor approval log
Persona: Compliance officer proving to auditor that agent actions were authorized
Goal: Report: "All deployments under approved goals; all destructive actions policy-checked"
Prerequisite: 1000+ audit events collected
Steps:
GET /orgs/{root}/compliance/export?period=q1&filter=goal_scoped
AuditWriter outputs append-only event stream grouped by goal_id with causal chain
Report: for each goal, actions taken, decisions, outcomes, surprises, links to Graphonomous/PRISM
Cryptographic commitment: report hash stored immutably
Success: Compliance team proves governance to external auditor
Covers: audit export, event grouping, report generation — future phase
UI status: planned (Phase 3 enterprise)
Claude Design hook: Timeline view — goal with linked audit events, expandable to policy decisions + outcomes
Tests to implement first (MCP-only until UI exists): Story 3 (deny-by-default) — use MCP inspector pattern to show policy decision + audit trail; strong investor story.