Multihost swarm plan: review against the credential-boundary pattern before it lands #449
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#449
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Learning L7 of
docs/research/2026-08-11-software-factory-learnings.md: Factory-in-a-Box scales by giving each run a wholemachine, with the blast radius defined by credentials, not files — the
minting credentials never leave the host, each run gets a disposable
prefix-named capped key revoked at teardown, and the prefix is the entire
safety model for reaping orphans. Our multihost plan
(
docs/superpowers/plans/2026-08-11-multihost-swarm.md, claim layer inprogress — see
.sandcastle/claim-lib.sh) is the right moment to design thisin; retrofitting a credential boundary onto a running fleet is far more
expensive. Meanwhile the org-level token has bitten twice: the stale-org-token
"spend limit" incident and the 2026-07-11
docker inspectexposure.What to review (human ruling requested — Ben)
Walk the multihost plan against these questions before it merges:
token scoped to the one repo (and minted per run or per host, not
org-wide)? What is the minimum scope the worker actually needs
(push branch, close issue, comment, labels)?
revoked (run end / teardown), and does a crash leak a live credential?
with a prefix so an orphan sweeper can safely reap them (the
sbx-pattern) without ever touching a human's credential?
/ spawn siblings" enforced by what credentials enter the sandbox, rather
than by prompt or convention?
record explicitly what the residual exposure is on each pool host, and
whether API-billed capped keys are warranted for pool hosts specifically.
naming (ties into the swarm.db
spendtable)? If not, what does?Output: rulings recorded on this issue; if the plan changes, the plan doc is
amended in the same commit as the ruling notes; any resulting build work gets
its own tickets.
References
docs/research/2026-08-11-software-factory-learnings.md(L7)docs/superpowers/plans/2026-08-11-multihost-swarm.mdin
disler/inkwell-agent-sandboxes-and-software-factoryAll six questions ruled — Ben, 2026-08-13 (session walk). Ground truth verified first: Forgejo 15 tokens scope by category on a user, never per-repo (so the per-repo boundary is a machine user as two-repo collaborator); the token in the swarm swap path is
ben,is_admin=true— workers have been carrying a full forge-admin credential;swarm.dbalready attributes spend byrun_id+issue; the Claude OAuth token ships via.envasdocker run -e(docker-inspect-visible), the secrets README's one standing exception.swarm-bot, write collaborator onMatou/ourcloud+Matou/matou-apponly, token scopedwrite:repository, write:issue(the verified minimum: branch push, close, comment, labels). Swap ticket: #506.sbx--style prefix reaping are real machinery for marginal gain at a two-trusted-host pool. Revisit triggers, recorded in the architecture doc: an untrusted host joins the pool; a third repo joins the swarm; any credential incident.write:repository+write:issuetoken cannot mint tokens, reach other repos, or widen itself — no reliance on prompt or convention. (Workers legitimately claim ONE ticket via claim-lib; that is the designed claim, not escalation.)docs/architecture/07-secrets-architecture.md.spend(run_id, issue); subscription billing has no per-key axis; per-credential naming only becomes meaningful if per-run tokens are ever built.Doc amendments in the same commit as this ruling:
docs/architecture/07-secrets-architecture.md(new #449 decisions entry) + the plan'sSWARM_FORGEJO_TOKENannotation. Build work: #506. Closing.