Skip to content

fix(release): avoid token-shaped Claude live probe - #103994

Merged
steipete merged 1 commit into
mainfrom
fix/release-claude-subscription-probe
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/release-claude-subscription-probe

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Full release validation could fail even with a healthy Claude subscription because the direct CLI preflight asked the model to echo a token-shaped phrase. Claude treated that phrase as an authentication challenge and refused it, so the harness reported a false credential failure before running the real Gateway CLI-backend scenario.

Why This Change Was Made

The preflight now asks a harmless arithmetic question and accepts either the numeric or word-form answer. It still requires a real claude -p completion, preserves nonzero CLI failures, keeps failure output redacted, and leaves the full Gateway CLI-backend live test unchanged.

User Impact

No product runtime behavior changes. Release validation no longer depends on a token-like echo prompt that current Claude safety behavior may reject.

Evidence

  • Deterministic failure: Full Release Validation child returned a successful Claude completion that explicitly refused the token-shaped echo request.
  • Blacksmith Testbox run 29127193481: docker-build-helper 164/164 and test-live-cli-backend-docker 6/6, 170/170 total.
  • bash -n scripts/test-live-cli-backend-docker.sh
  • targeted oxfmt --check
  • git diff --check
  • Fresh Codex autoreview: no accepted/actionable findings; patch correct, confidence 0.93.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: XS maintainer Maintainer-authored PR labels Jul 10, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Jul 10, 2026
@clawsweeper

clawsweeper Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 10, 2026, 7:50 PM ET / 23:50 UTC.

Summary
The PR replaces the release harness’s token-shaped Claude subscription echo probe with a harmless arithmetic completion check, preserves redacted failure output, and updates focused script assertions.

PR surface: Tests +4, Other +2. Total +6 across 2 files.

Reproducibility: yes. The linked full-release log shows claude -p succeeding but refusing the token-shaped phrase, followed immediately by the current harness failing only its exact-token assertion.

Review metrics: none identified.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🌊 off-meta tidepool
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Next step before merge

  • [P1] The protected maintainer-labeled PR appears correct and should proceed through normal exact-head merge handling rather than automated repair.

Security
Cleared: The patch introduces no dependency, permission, credential-source, downloaded-code, or supply-chain changes and consistently redacts printed probe output.

Review details

Best possible solution:

Land the focused harmless arithmetic probe while retaining real claude -p execution, redacted diagnostics, and the unchanged Gateway CLI-backend live scenario.

Do we have a high-confidence way to reproduce the issue?

Yes. The linked full-release log shows claude -p succeeding but refusing the token-shaped phrase, followed immediately by the current harness failing only its exact-token assertion.

Is this the best way to solve the issue?

Yes. The patch changes only the fragile direct preflight prompt and answer condition, preserves the supported CLI execution and redaction behavior, and leaves the authoritative Gateway live scenario unchanged.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fef5c61a3ce9.

Label changes

Label changes:

  • add P2: A healthy Claude subscription can falsely fail the full release-validation lane, but shipped product runtime behavior is unaffected.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-labeled PR is exempt from the external-contributor proof gate; its linked hosted failure and Testbox evidence provide supporting real-behavior validation.

Label justifications:

  • P2: A healthy Claude subscription can falsely fail the full release-validation lane, but shipped product runtime behavior is unaffected.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-labeled PR is exempt from the external-contributor proof gate; its linked hosted failure and Testbox evidence provide supporting real-behavior validation.
Evidence reviewed

PR surface:

Tests +4, Other +2. Total +6 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 0 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 9 +2
Total 2 15 9 +6

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the earlier Claude CLI prompt-classifier repair and has the largest historical contribution count across the central release script, test, and live-testing documentation. (role: feature introducer and recent area contributor; confidence: high; commits: 0b0c062e974a; files: scripts/test-live-cli-backend-docker.sh, test/scripts/test-live-cli-backend-docker.test.ts, docs/help/testing-live.md)
  • Vincent Koc: Vincent Koc authored the recent Anthropic live smoke-selection stabilization affecting the same release-validation surface. (role: adjacent release-validation contributor; confidence: medium; commits: e085fa1a3ffd; files: scripts/test-live-cli-backend-docker.sh, docs/help/testing-live.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 5f7a67f into main Jul 11, 2026
134 of 142 checks passed
@steipete
steipete deleted the fix/release-claude-subscription-probe branch July 11, 2026 00:03
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 11, 2026
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant