Repository navigation
docs: verification procedure for the REMEMBER_OAUTH_TOKEN fallback - #217
Merged
Merged
Conversation
The condition this fallback exists for — the Claude Code desktop/Agent-SDK host redacting CLAUDE_CODE_OAUTH_TOKEN from a spawned subprocess — cannot occur in CI, so the only evidence it works was a manual run reported in a comment on #179. This writes that procedure down: confirming the negative precondition, the positive assertion, the malformed-token case (#184), and what to record so a reader can judge staleness. Closes #197
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
docs/verification.md, a manual runbook for verifying theREMEMBER_OAUTH_TOKENfallback inpipeline/haiku.py'scall_haiku.Why
The fallback exists for one condition: the Claude Code desktop / Agent-SDK host redacting
CLAUDE_CODE_OAUTH_TOKENfrom a spawned subprocess. CI never runs under that host, so this path cannot be covered automatically and will not be — the suite proves the precedence order, not that auth actually recovers on a machine that withholds the token. The only evidence it works today is one manual run reported in a comment on #179. That evidence belonged in the repo as a procedure, not scrolling out of a comment thread.What's in it
Written directly against the current code (
_child_env,_looks_like_token,_accept_token,_config_candidates), not a paraphrase of the issue:claude setup-tokenvalue, inREMEMBER_OAUTH_TOKENorhaiku.oauth_tokeninconfig.json.CLAUDE_CODE_OAUTH_TOKENreally is absent from the child env before anything else; otherwise the fallback never engages and a "pass" proves nothing.call_haikuauthenticates, nestedclaude -preturnsis_skip=False..claude-plugin/plugin.json), and date, plus a log table so staleness is visible at a glance. Seeded with the fix(haiku): read persisted OAuth token from the Windows registry when the host redacts it #179 run as the first entry.Also states when it must be re-run: any change to auth resolution in
call_haiku— precedence order,_looks_like_token, or the config layer feeding it.Linked from the
REMEMBER_OAUTH_TOKEN/haiku.oauth_tokenrows inREADME.md.CHANGELOG.mdgets an## [Unreleased]/### Documentationentry (no prior Unreleased section existed).No production code changes.
Test plan
Closes #197