Skip to content

feat: add agent workspace preparation profile - #21

Merged
oldsj merged 1 commit into
mainloop-substrate-0-4from
prep-agent-profile
Oct 9, 2026
Merged

oldsj merged 1 commit into
mainloop-substrate-0-4from
prep-agent-profile

Conversation

@oldsj

@oldsj oldsj commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Adds a third native workspace preparation profile, agent, for Mainloop owner workspaces that select a development environment. Before this, only supervisor and child could be prepared.

  • Standing("agent"): fixed owner-workspace standing (no delegation, no task_get/report duties, stored context grants no consent). SetupDigest("agent") = a5fb1bb1e406ff7937b9d9e2e862dff43925d4df54d4bdd9fb010d7e2825ccb3.
  • agent is accepted in PrepareSessionWorkspaceRequest.setup_profile and NativeWorkspacePreparation.profile; unknown and empty profiles stay rejected.
  • Admission, digest recomputation, fencing and restore are unchanged; supervisor/child bytes and digests are identical. No schema change; existing sessions and receipts are unaffected.
  • Only the authenticated Mainloop service can choose a profile, as before. Mainloop must derive it from its own binding role.

Deploy needs new controller, Claude and Codex payload images. Tests: harness, adapter, Session service and gRPC packages with -race; proto lint, generate and breaking-change checks pass; envtest-backed TestSandboxTemplateCatalog skipped (assets not installed).

Owner workspaces that select a development environment could not be prepared
because only the supervisor and child profiles existed. Add an agent profile
with fixed owner-workspace standing (no delegation, no task_get or report
duties) and accept it in both protobuf allowlists. Admission, digest, fencing
and restore checks are unchanged; supervisor and child bytes and digests are
identical.

Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
@github-actions github-actions Bot added the enhancement New feature or request label Oct 9, 2026
@oldsj
oldsj merged commit 796e90b into mainloop-substrate-0-4 Oct 9, 2026
3 checks passed
@oldsj
oldsj deleted the prep-agent-profile branch October 9, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant