Render the Kit's OAuth credentialFile with sentinels at launch #223
Notifications
Due Date
No due date set.
Blocks
#1299 External agent harnesses (Kit v3)
sam/archie
Reference: sam/archie#223
Reference in new issue
Block a user
A Kit's credential@1 oauth.credentialFile (path, structure, format) is never rendered: kitrun passes Bound to kit.Assemble, which sets SBX_CRED__MODE=oauth, but no file is written, so the harness CLI starts logged out and never reaches the token endpoint the egress proxy intercepts. At launch, for each bound OAuth-managed service, render the structure with the Kit's sentinels for {{.AccessToken}}/{{.RefreshToken}}, the stored token set's ExpiresAt for {{.ExpiresAt}}, and write it at the declared path. Real tokens must never be written (docs/prds/external-agent-harness.md, Verification: the credential file holds only sentinels). Interception itself landed in internal/infrastructure/egress/oauth.go.
Close reason
Closed
Imported from beads
archie-core-egkf.13· GitHub #1429 · type task · priority P1 · created 2026-09-27 · closed 2026-09-29