Repository navigation
[AI-assisted] docs(reference): fix broken Anthropic prompt-caching docs URL - #114028
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 27, 2026, 4:29 AM ET / 08:29 UTC. ClawSweeper reviewWhat this changesThe PR replaces the retired Anthropic prompt-caching pricing URL in the token-use reference with the current Claude Platform prompt-caching documentation. Merge readinessKeep this PR open for normal maintainer landing review. The one-line documentation correction is focused, the replacement is Anthropic's current official prompt-caching page, and no patch defect or supply-chain concern is evident; GitHub reports the branch cleanly mergeable but behind Priority: P3 Review scores
Verification
How this fits together
flowchart LR
A[OpenClaw token-use guide] --> B[Anthropic pricing reference]
B --> C[Claude Platform prompt-caching docs]
C --> D[Cache pricing and TTL guidance]
D --> E[Reader configuration decisions]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the focused documentation correction after refreshing the merge result against current Do we have a high-confidence way to reproduce the issue? Yes—the report supplies exact old and replacement URLs, so a browser or bounded redirect-following request can directly compare the failing reader path with the corrected destination. This review did not need a product-runtime reproduction because the change is documentation-only. Is this the best way to solve the issue? Yes. Replacing the retired provider URL with Anthropic’s current official prompt-caching page is the narrowest maintainable fix and preserves the surrounding pricing and TTL guidance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9b171190f24e. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
0d5553d to
520e34a
Compare
…cs URL The prompt-caching pricing reference in docs/reference/token-use.md linked to docs.anthropic.com/docs/build-with-claude/prompt-caching. After Anthropic's docs migration to platform.claude.com, that URL 301-redirects in an infinite loop (browsers surface ERR_TOO_MANY_REDIRECTS). Point it at the current canonical page, which returns HTTP 200 and still documents the cache read/write pricing and 1h/5m TTL multipliers that the surrounding paragraph references.
520e34a to
abceb5e
Compare
…prompt-caching-url
|
Maintainer proof complete on exact head 963dabc.
No proof gaps remain; ready for the repo-native prepare/merge lane. |
|
Merged via squash.
|
…cs URL (openclaw#114028) The prompt-caching pricing reference in docs/reference/token-use.md linked to docs.anthropic.com/docs/build-with-claude/prompt-caching. After Anthropic's docs migration to platform.claude.com, that URL 301-redirects in an infinite loop (browsers surface ERR_TOO_MANY_REDIRECTS). Point it at the current canonical page, which returns HTTP 200 and still documents the cache read/write pricing and 1h/5m TTL multipliers that the surrounding paragraph references.
What Problem This Solves
Fixes an issue where readers following the Anthropic prompt-caching pricing reference in
docs/reference/token-use.mdwould land on a page that never loads. The link pointed athttps://docs.anthropic.com/docs/build-with-claude/prompt-caching, which after Anthropic's docs migration toplatform.claude.comnow301-redirects in an infinite loop — browsers surfaceERR_TOO_MANY_REDIRECTS.Why This Change Was Made
Point the reference at the current canonical page:
https://platform.claude.com/docs/en/build-with-claude/prompt-caching(HTTP200). That page still documents cache read/write pricing and the 1h/5m TTL multipliers that the surrounding paragraph cites, so the prose stays accurate.Scope is intentionally limited to this single link. No other
docs.anthropic.comreferences remain elsewhere indocs/, so there are no sibling surfaces to fix.User Impact
Readers who click the prompt-caching pricing link now reach Anthropic's live, current prompt-caching documentation instead of a redirect-loop error page.
Evidence
The fetched page body contains the expected content (prompt-caching pricing and TTL detail the paragraph references):
Prompt caching(×42),TTL(×39), andCache read/Cache writesections.Sibling-surface check:
grep -rn "docs.anthropic.com" docs/now returns no matches, confirming this was the only stale Anthropic docs link.Notes
[AI-assisted]per the repo's AI-contribution convention; authored by a single human contributor (Santhi Prakash).