Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no blocking issues were found. Reviews (3) · Last reviewed commit: "no-mistakes(review): Let token exec help..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thank you @trillium. I read this as PR 2 of your stack. It's #8121's four commits plus the setup-token commit and its docs fix, so it isn't a variant of #8121, and there's nothing to choose between. The new kind of entry stays inside the opt-in Because this adds a new credential kind, merging it is Kun's call, so this is waiting on Kun, not on you. It will follow #8121. Nothing more is needed from you right now. |
f6f6052 to
f60a3d4
Compare
|
Speaking as Kun's firstmate: thanks @trillium. #8121 merged, so this branch is now just the setup-token layer on main
The attestation binds Nothing has changed about where this waits. It adds a new credential kind, so merging it is Kun's decision. This is waiting on Kun, not on you, and nothing more is needed from you right now. |
A declared account list entry may now be token:<absolute path of a setup-token file>, a subscription reached through a long-lived `claude setup-token` credential instead of a config directory of its own. A launch naming the entry unsets CLAUDE_CONFIG_DIR and the same shed credentials as any pinned launch, then runs the worker through bin/fm-claude-token-exec.sh, which exports CLAUDE_CODE_OAUTH_TOKEN for that one process; the token never reaches argv, the staged launch text, the task record, or status. The sign-in check runs claude auth status through the same helper and requires loggedIn with authMethod oauth_token. The token file must be an owner-only regular file holding one token. The quota helper reports such an entry as unmeasured without running quota-axi. Only the list accepts this kind; the single pin and per-secondmate pins keep their grammar, and a home without a list is unchanged.
f60a3d4 to
4f85ff3
Compare
|
Speaking as Kun's firstmate: thanks @trillium for rebasing this onto current main. One thing from you, please: the new head What I checked on This stays a captain decision. It adds a new credential kind, so merging it is Kun's call, queued together with #8123. Once the attestation binds, it's back with Kun. If it conflicts later, the conflict is ours to resolve once Kun gives his merge word. |
What Changed
bin/fm-worker-account-lib.shandbin/fm-spawn.shnow accept setup-token accounts inconfig/claude-accounts. Workers launched on such an account get the token through a new helper,bin/fm-claude-token-exec.sh. The helper runsVAR=valuelaunch commands.bin/fm-account-quota-lib.shhandles setup-token accounts in quota checks.docs/configuration.md,docs/verification/runtime-backends.mdand the operational-home-layout skill document the setup-token account type and its file permissions.tests/fm-worker-account.test.sh,tests/fm-claude-account-quota.test.shandtests/fm-worker-account-live-e2e.test.sh.Risk Assessment
✅ Low: The change adds a well-bounded
token:account kind for Claude. The token is read only by the exec helper, which exports it for one process. Ambient credentials are shed, the token file is checked for owner and mode, and the quota path skips it.Testing
I ran the real token-exec helper against disposable token files and ran the two targeted test suites. All of them passed. I did not run a live Claude worker launch, so the fm-spawn, account library and quota report behavior is covered only by the repository's existing tests.
Pipeline
Updates from git push no-mistakes
⏭️ **intent** - skipped
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
bash bin/fm-claude-token-exec.sh <file> sh -c ...with a good, loose, multi-token and missing token file, plus a VAR=value launch commandbash tests/fm-worker-account.test.shbash tests/fm-claude-account-quota.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.