feat(cli): agent spawn — atomic locked-down throwaway session (#1217) - #1384
Draft
jvsteiner wants to merge 6 commits into
Draft
feat(cli): agent spawn — atomic locked-down throwaway session (#1217)#1384jvsteiner wants to merge 6 commits into
jvsteiner wants to merge 6 commits into
Conversation
jvsteiner
marked this pull request as ready for review
July 26, 2026 12:28
Contributor
Author
|
@joshuajbouw ready for review — |
Member
|
Review outcome: not ready to advance; please keep this as draft or rework it. The “locked-down” guarantee is not enforced as an invariant because callers can supply |
jvsteiner
marked this pull request as draft
August 4, 2026 23:20
jvsteiner
added a commit
to jvsteiner/astrid
that referenced
this pull request
Aug 5, 2026
…reclaiming-delete teardown (astrid-runtime#1217) Addresses the review on astrid-runtime#1384: - Remove the --group flag. The throwaway is always created with the fixed least-privilege group (empty groups -> default agent group -> empty capsule allow-list -> no invocable tool can egress), so "locked down" is an invariant of spawn, not a default a caller can flip off. - Teardown calls AgentDelete { principal }, which now always reclaims the footprint (astrid-runtime#1383) -- dropped the removed purge_home plumbing. - Doc/CHANGELOG updated. Live end-to-end evidence against a running daemon is the remaining item; PR stays draft until captured. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jvsteiner
force-pushed
the
feat/1217-agent-spawn
branch
from
August 5, 2026 06:24
3c68f9e to
0a69752
Compare
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
joshuajbouw
force-pushed
the
feat/1217-agent-spawn
branch
from
August 12, 2026 17:07
0a69752 to
fa3d5e3
Compare
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
joshuajbouw
force-pushed
the
feat/1217-agent-spawn
branch
from
August 12, 2026 20:13
fa3d5e3 to
3aea1c0
Compare
Signed-off-by: Joshua J. Bouw <jjb@unicity-labs.com>
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.
Linked Issue
Closes #1217 (built on #1383).
Summary
Adds
astrid agent spawn: one bounded job under a newly derived, restricted principal, followed by reclaiming teardown. The derived runtime receives only explicitly named WASM capsule installs, capsule-scoped state, user-invocable capsule grants, and outbound endpoints. Nothing else is inherited implicitly.Changes
astrid agent spawn --job ...with explicit--load-capsule,--allow-capsule,--inherit-capsule-state, and--allow-egresscontrols.restrictedgroup.admin.agent.deriverequest topic and client method rather than adding a variant to the exhaustive publicAdminRequestKindenum.AgentDelete;--keepremains an explicit debugging escape hatch.Verification
cargo fmt --all -- --checkcargo test -p astrid-core kernel_api::agent -- --nocapturecargo test -p astrid-kernel additive_derive_endpoint_preserves_correlation_and_authorization -- --nocapturecargo test -p astrid-kernel state_tests_agent_derive -- --nocapturecargo test -p astrid-capsule restricted -- --nocapturecargo test -p astrid agent::spawn -- --nocapturecargo clippy -p astrid-core -p astrid-uplink -p astrid-kernel -p astrid-capsule -p astrid --all-targets --all-features -- -D warningsThe CLI e2e manifest includes the command, but a live harness/provider spawn-run-teardown proof remains required before this leaves draft.
AI / Tool Assistance
Assisted-by: OpenAI Codex: GPT-5
Codex helped reconstruct the patch on current code, identify and remove the capability-escalation path, preserve public Rust API compatibility with an additive endpoint, integrate fleet-ownership-safe rollback, add focused regressions, and run the validation above. The resulting authority and compatibility changes were reviewed against the current kernel, ownership, and uplink implementations.
Checklist
[Unreleased]— or[Unreleased]rolled into a version section for a release PR; not applicable to docs/CI-only changes)Signed-off-bytrailer.