Seed a narrow default agent identity for shipped workflows #1320
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#1320
Reference in new issue
Block a user
Shipped workflows declare identity: root (the reserved RootRef), so out of the box they run with the instance root's full authority and the runs-as check never narrows them. Seed a dedicated agent identity on every install, alongside the operator in the org upgrade's operator phase (stable ID via identity.StableID, org-sys member with a role that grants run on workflows and only what a run needs), and have the shipped workflows declare it instead of root. Remove RootRef once nothing ships with it. Existing installs get the identity on upgrade; stored workflow copies that still say root keep working until edited. Done when a fresh install runs triage end to end as the seeded identity, a policy denying that identity run on a workflow parks it with a recorded denial, and no shipped workflow names root.
Notes
RootRef removed ca12e367; stored copies naming root now fail. Remaining: live end-to-end verification.
Close reason
Verified live: task 18 ran triage→feasibility→implement as the seeded identity (PR #6); with an org forbid on that identity, task 20 parked 'identity … may not run workflow triage'; no shipped workflow names root. Test policy removed.
Imported from beads
archie-core-fndis· GitHub #1608 · type feature · priority P1 · created 2026-10-11 · closed 2026-10-24