Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Stage authority guard & RPC/CLI enforcement #39

Closed

Description

@64ix

Parent

#23

What to build

One pure authority guard: (caller kind, requested stage, governing facts) → allowed/refused + explanation. Agents may declare idea/exploring/spec/implementing/review and exit triage; shipped is refused fail-closed with the steering message ("shipped is set by a merged PR or by you in the board UI") before any write. The human can place any stage from UI paths, including de-shipping. CLI parity: orca worktree set --stage <id> on the existing worktree RPC, enforced by the same guard, working from SSH/remote runtimes.

Acceptance criteria

  • Guard matrix tested: every stage × agent/human × governing facts
  • An agent's shipped attempt is refused with the steering message and no state change
  • Refusal happens before any write (fail-closed)
  • The human can set any stage including shipped and de-ship via UI paths
  • The CLI command enforces the same guard over SSH/remote workspaces
  • The guard is consumable as a pure module (MCP tools and board drops reuse it later)

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions