feat: route agent execution through Workspace Operation Plane contracts#133
Draft
feat: route agent execution through Workspace Operation Plane contracts#133
Conversation
Agent-Logs-Url: https://github.com/SocioProphet/agentplane/sessions/1fb5d9c8-ff9e-4237-a3d8-54709652dbac Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add route for agent execution through Workspace Operation Plane contracts
feat: route agent execution through Workspace Operation Plane contracts
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent runs were writing workspace artifacts as hidden side effects with no shared lifecycle, no admission gate, and no structured evidence for replay or audit. This adds the
AgentOperationContractas the mandatory routing layer for all agent-initiated workspace mutations.Schema & example
schemas/agent-operation-contract.schema.v0.1.json— maps agent runs ontoWorkspaceOperation,OperationTask,OperationEvent,Artifact,DecisionCard, andPolicyGateRecordexamples/agent-operation-contract.example.json— canonicalagent.patch.proposecontract instanceEmit script
scripts/emit_agent_operation_contract.pywrites anAgentOperationContracttospec.artifacts.outDirfor all six supported operation types:Key invariants enforced by the contract:
admissionStatus: pending-review; agents cannot self-admitactingFor, explicitscope[], optionalbudget, andpolicyProfileReflifecycle.idempotencyKey={operationId}/attempt-{n}prevents duplicate effects on retryevents[]trail for the Operation Inspectorlifecycle.cancellationandlifecycle.compensationleave structured evidence with recoverable artifact refsTooling & docs
tools/validate_agent_operation_contract.py— deterministic smoke validatortools/tests/test_agent_operation_contract.py— 30 pytest testsdocs/adr/0008-agent-operation-plane-routing.md— ADR recording the contract-first decisiondocs/integration/workspace-operation-plane.md— step-by-step integration guideMakefile—validate-agent-operation-contracttarget wired intomake validateWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh pr view --json url --jq .url ndor/bin/git(http block)If you need me to access, download, or install something from one of these locations, you can either: