Integrate governed local execution into WorkspaceOperation contract surface#26
Integrate governed local execution into WorkspaceOperation contract surface#26Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/SourceOS-Linux/agent-machine/sessions/af1a34da-04c9-4870-8f72-bd75b6442ca6 Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
Agent-Logs-Url: https://github.com/SourceOS-Linux/agent-machine/sessions/af1a34da-04c9-4870-8f72-bd75b6442ca6 Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
|
Supersession note: this PR is not discarded. Its WorkspaceOperation contract payload has been replayed onto current #46 carries forward the intended content from this PR:
Reason for replacement: this PR reported Do not close this PR until #46 lands, or until #46 is explicitly abandoned with another durable capture location. |
|
Closing after capture/replay. Replacement PR #46 landed the intended WorkspaceOperation contract payload on current Merged replacement commit: Content carried forward:
Content intentionally omitted: none. The reason for replacement was branch mergeability/staleness, not content rejection. |
This PR adds a first-class contract for representing local
agent-machineexecution as Workspace Operation Plane state, with explicit delegation, policy gating, budget constraints, auditability, and redacted diagnostics. It encodes the required operation types, profiles, artifacts, and hard no-ambient-authority rule into schema-level validation.WorkspaceOperation/OperationTask contract integration
contracts/workspace-operation-contract.schema.json(WorkspaceOperationContract).workspaceOperation(operation identity/type/command ref)operationTask(task identity/state)Governance requirements encoded as contract constraints
agent_machine.profile.createagent_machine.execution.startagent_machine.execution.cancelagent_machine.tool_grant.applyagent_machine.tool_grant.revokeagent_machine.container.runagent_machine.model_provider.bindagent_machine.diagnostics.export_redactedAgentMachineProfileLocalAgentExecutionToolGrantRecordContainerExecutionRecordModelProviderBindingAgentMachineDiagnosticBundleControl-plane safety and audit semantics
delegatedAuthorityRequired: true).start/progress/failure/retry/cancel/complete.operation-contract-only) andambientAuthority: false.Validation wiring and fixture coverage
examples/workspace-operation-contract.local-execution.jsonas a canonical governed local execution fixture.src/agent_machine/contracts.pyschema mapping to includeWorkspaceOperationContract.{ "kind": "WorkspaceOperationContract", "workspaceOperation": { "operationType": "agent_machine.execution.start" }, "controls": { "delegatedAuthorityRequired": true, "ambientAuthority": false, "durableWorkspaceState": { "mode": "operation-contract-only", "externalWrites": false } } }