Skip to content

fix(tests): governance suite no longer depends on the box's own Claude login (v0.469.5) - #900

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/governance-claude-isolation
Nov 10, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/governance-claude-isolation

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

make-live.sh blocked the v0.469.4 deploy on instawp: launch-window-test saw session.launch.refused (dir: /home/ubuntu/.claude, expiredAt: 0). The box's default Claude login is dead (no tokens, refresh expired 2026-10-27). That's harmless in production, since every real run uses a pool account. But the launch-path tests isolate AGENT_OS_HOME, not ~/.claude, so the credential pre-flight was checking the machine's own login.

npm run test:governance now runs the unchanged chain (moved to test:governance:run) through scripts/governance-isolated.cjs, which sets a scratch CLAUDE_CONFIG_DIR holding a well-formed placeholder credential. Tests that set their own CLAUDE_CONFIG_DIR still override it.

Verified: before the fix, launch-window-test with a dead CLAUDE_CONFIG_DIR gave 6 failures. After it, the full npm run test:governance under a dead outer CLAUDE_CONFIG_DIR passes with 0 failures.

🤖 Generated with Claude Code

…e login (v0.469.5)

Launch-path tests isolated AGENT_OS_HOME but not ~/.claude, so the
credential pre-flight read the machine's real default login. instawp's
had long been dead, so launch-window-test saw a refused launch and the
deploy gate blocked a correct build. Run the chain under a scratch
CLAUDE_CONFIG_DIR with a placeholder credential.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vikasprogrammer
vikasprogrammer merged commit b58c222 into main Nov 10, 2026
@vikasprogrammer
vikasprogrammer deleted the feat/governance-claude-isolation branch November 10, 2026 07:19
vikasprogrammer added a commit that referenced this pull request Nov 10, 2026
…(v0.469.6) (#901)

#900 merged without its changelog entry and under a version #899 had
already taken.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant