Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Fill the cached prefix with sums, and retry a refused cache call - #2

Closed
joe-alphafox wants to merge 1 commit into
mainfrom
fix/sum-prefix
Closed

joe-alphafox wants to merge 1 commit into
mainfrom
fix/sum-prefix

Conversation

@joe-alphafox

Copy link
Copy Markdown
Contributor

PR #1's hex-coded prefix still drew a bare 400 on Sonnet 5.5 (3–7 of 10 calls). Random words drew it on Haiku 5.5 (8 of 10). Random sums like 4821 plus 377 equals 5198. drew it on none of 120 calls across Sonnet, Opus, Haiku and Fable 5.x.

  • long_prefix(): 1,200 random sums after a nonce line, about 18,170 cached tokens.
  • The cache call retries a refused call up to three times, except on 401, 403 and 404. The signature check does not retry, because it reads a 400 as its answer.
  • Three new tests cover the retry. The fake upstream refuses hex-coded system lines. README sample output is updated.

Same change as CoreCodeAI/corecode-infra#357, which has the measurements and live runs.

🤖 Generated with Claude Code

Anthropic refuses meaningless system text with a bare 400 on some
models: numbered hex lines on Sonnet 5.5 in 3 to 7 calls of 10, random
words on Haiku 5.5 in 8 of 10. Random sums drew it on none of 120 calls
across four models. The cache call also retries a refusal up to three
times, except 401, 403 and 404. Mirrors CoreCodeAI/corecode-infra#357.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joe-alphafox

Copy link
Copy Markdown
Contributor Author

Closing: the script is retired. corecode.live/docs/verify/ now documents the method only (CoreCodeAI/corecode-infra#358), and this repository is archived.

@joe-alphafox
joe-alphafox deleted the fix/sum-prefix branch November 19, 2026 04:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant