Integrate governed local execution into WorkspaceOperation contract surface#26
Draft
Integrate governed local execution into WorkspaceOperation contract surface#26
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>
Copilot
AI
changed the title
[WIP] Integrate local agent-machine execution with Workspace Operation Plane
Integrate governed local execution into WorkspaceOperation contract surface
May 7, 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.
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 } } }