You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Infra GA3: the agent helper gets, refreshes and falls back from an installation token #1844
The agent helper: an agent runs it at start to ask the owner's token service for a token, hands it to gh and git through the environment or a private file, refreshes it with under five minutes left, and falls back to the owner's account with one standard-error note when the service can't be reached. It never asks for, reads or holds the App's key.
Owned paths
tools/github-app/agent-token.py (new) and tools/github-app/test_agent_token.py (new)
Never exposed: no key or token appears in any output, log, commit, comment, argument list or file outside its private place, covered by checks that fail first.
Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test catches: <the bug>, or no new test: <why>. A bug gets a failing test first.
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.0
step: Fixed R1 to R4 and R6 and disputed R5 per the orchestrator; PR #1916 at 1eb1382 is ready for the re-check once CI is green.
time: 2026-11-20T12:50:53Z
pr: #1916
Builder question (F4 supporting edit), GA3: I'm building against GA1's approved head 419f3adb (the F6 prepare; that head hasn't moved). The proof, tools/github-app/test_agent_token.py (stdlib, offline, 13 tests, red run kept), passes at checkpoint cc0093d1. But no CI step runs it: the The GitHub App step runs tools/github-app/test.py by name and doesn't discover other files.
Options:
Grant .github/workflows/ci.yml: add only the one line python3 -I tools/github-app/test_agent_token.py to the existing The GitHub App step of the release job (part 2), next to GA1's granted line. No new job, trigger, permission or secret.
No CI line: hand back with the proof run locally only. GA4 relies on this helper, so a later break would go unnoticed.
My pick: 1. I'll keep building and won't edit ci.yml until a record author grants it.
One fit note, no action asked: docs/github-app.md gets a new ## The agent helper (GA3) section only. The existing ## Agent tokens (G2) section still describes the Cloudroom-secret route that spec #1837 supersedes. I've left it untouched because it isn't my section. I'll list it under Gaps.
F4 supporting edit granted (planner), for GA3:.github/workflows/ci.yml, exactly one added line, python3 -I tools/github-app/test_agent_token.py, in the existing GitHub App step of the release job, beside GA1's granted line: no new job, trigger, permission or secret. Also docs/github-app.md, its old "Agent tokens (G2)" section only, rewritten to point at the token-service route this spec builds (GI6 B: the key never leaves the owner's machine; the cloud route is off until GA5's read-back), replacing the Cloudroom-secret route it still describes.
Activity
jparker2006 commentedon Nov 20, 2026
launch-fleet: start checked, branch room/1844-agent-token-helper
F6 prepare (orchestrator go): builds against GA1 #1839's approved head 419f3ad (PR #1896) and merges main after GA1 merges.
Checked: branch room/1844-agent-token-helper, PR #1916 at 30c9f88, builder status notes on this ticket.
jparker2006 commentedon Nov 20, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.0
step: Fixed R1 to R4 and R6 and disputed R5 per the orchestrator; PR #1916 at 1eb1382 is ready for the re-check once CI is green.
time: 2026-11-20T12:50:53Z
pr: #1916
jparker2006 commentedon Nov 20, 2026
Builder question (F4 supporting edit), GA3: I'm building against GA1's approved head
419f3adb(the F6 prepare; that head hasn't moved). The proof,tools/github-app/test_agent_token.py(stdlib, offline, 13 tests, red run kept), passes at checkpointcc0093d1. But no CI step runs it: theThe GitHub Appstep runstools/github-app/test.pyby name and doesn't discover other files.Options:
.github/workflows/ci.yml: add only the one linepython3 -I tools/github-app/test_agent_token.pyto the existingThe GitHub Appstep of thereleasejob (part 2), next to GA1's granted line. No new job, trigger, permission or secret.My pick: 1. I'll keep building and won't edit
ci.ymluntil a record author grants it.One fit note, no action asked:
docs/github-app.mdgets a new## The agent helper (GA3)section only. The existing## Agent tokens (G2)section still describes the Cloudroom-secret route that spec #1837 supersedes. I've left it untouched because it isn't my section. I'll list it under Gaps.#1844: refusal sentences read to the schema's pattern, held tokens ch…
jparker2006 commentedon Nov 20, 2026
launch-fleet: asked the orchestrator
The one-line ci.yml grant asked in 7039176588 is a workflow edit, so it waits for the orchestrator's F4 grant.
jparker2006 commentedon Nov 20, 2026
F4 supporting edit granted (planner), for GA3:
.github/workflows/ci.yml, exactly one added line,python3 -I tools/github-app/test_agent_token.py, in the existing GitHub App step of the release job, beside GA1's granted line: no new job, trigger, permission or secret. Alsodocs/github-app.md, its old "Agent tokens (G2)" section only, rewritten to point at the token-service route this spec builds (GI6 B: the key never leaves the owner's machine; the cloud route is off until GA5's read-back), replacing the Cloudroom-secret route it still describes.13 remaining items
#1844: red: final check R10 on #1916: an SSH remote, an insteadOf rew…
#1844: green: final check R10: SSH runs a refusing stand-in and only …
#1844: drop the helper's and its tests' comments and docstrings for t…
#1844: green: the comment check (#1817) passes with the helper's comm…
#1844: red: review R11, R12 and R13 on #1916: a legacy App key passed…
green: #1844 review R11, R12 and R13: refuse a legacy App key by name…
#1844: red: re-check R11 and R12 on #1916: the legacy key value read …
green: #1844 re-check R11 and R12: the legacy App key checked by name…
green: #1844 merge main (GA2 #1915): both tickets' docs/github-app.md…
#1844: red: review R11 and R12 on #1916: the standard environment's m…
green: #1844 review R11 and R12: the legacy App key found by listing …
jparker2006 commentedon Nov 22, 2026
launch-fleet: cost unknown (PR #1916): no cost command
jparker2006 commentedon Nov 22, 2026
launch-fleet: archived