Skip to content

Delegate AgentPlane commands to sp-run#45

Merged
mdheller merged 3 commits into
mainfrom
work/agentplane-sp-run-facade-v0
May 22, 2026
Merged

Delegate AgentPlane commands to sp-run#45
mdheller merged 3 commits into
mainfrom
work/agentplane-sp-run-facade-v0

Conversation

@mdheller
Copy link
Copy Markdown
Member

Summary

Adds prophet agentplane ... as a pure facade delegation to the AgentPlane-owned sp-run command.

This preserves the implementation boundary:

  • SocioProphet/agentplane owns governed-runner implementation and sp-run.
  • SocioProphet/prophet-cli exposes the stable operator-facing facade.

Adds

  • sp-run delegate registration in src/prophet_cli/cli.py
  • prophet agentplane ... parser branch
  • tests for:
    • prophet agentplane doctor
    • prophet agentplane preflight <contract>
    • prophet agentplane admit <contract> --preflight <preflight> --authority-state <state>
    • missing sp-run delegate returns 127
  • README delegation table and examples

Commands

prophet agentplane doctor
prophet agentplane preflight ./governed-run-contract.json
prophet agentplane admit ./governed-run-contract.json --preflight ./preflight-receipt.json --authority-state ./agent-authority-current-state.json --projected-cost-usd 0.25
prophet agentplane dossier ./.socioprophet/runs/governed-run-alpha-001
prophet agentplane validate-dossier ./run-dossier.json

Boundary

prophet-cli does not own AgentPlane evidence contracts, governed-runner implementation, Agent Registry grants, or authority state.

It delegates to sp-run ... exactly like existing SourceOS delegation delegates to sourceosctl ... and AgentTerm delegation delegates to agent-term ....

Validation

pytest -q

@mdheller mdheller merged commit c4a748d into main May 22, 2026
11 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.

1 participant