Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 9, 2026, 5:48 PM ET / 21:48 UTC. ClawSweeper reviewWhat this changesUpdates the prompt-caching reference so Merge readinessThis docs-only PR is still necessary: current main documents retired JSON fields that its strict schema rejects. The branch removes that contradiction while preserving the active environment-only trace controls; no blocking findings found. Priority: P3 Review scores
Verification
How this fits togetherPrompt caching can produce cache-trace JSONL diagnostics during agent-run preparation. Operators enable tracing through canonical configuration or environment overrides, and the runtime writes the resulting records for debugging. flowchart LR
A[Operator JSON configuration] --> C[Cache trace settings]
B[Environment controls] --> C
C --> D[Agent-run preparation]
D --> E[Cache trace runtime]
E --> F[JSONL diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs -3. Total -3 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Merge the focused documentation correction so the public reference matches the canonical schema, doctor migration, and supported environment debugging path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a documentation-only correction; current main source directly establishes the documented contract. Is this the best way to solve the issue? Yes: correcting this reference page is the narrowest maintainable fix because the schema, doctor migration, runtime, and existing tests already agree on the supported behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4b4be7448edd. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
0d520b9 to
eec25b0
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
…ace fields - Rename 'were removed' to 'are retired' with doctor migration note - Keep simplified YAML, defaults table, and removed env toggles section
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing as superseded on You called this drift correctly — thank you @AAliKKhan! The same PR also added a CI gate ( |
What Problem This Solves
The
diagnostics.cacheTraceconfig indocs/reference/prompt-caching.mdstill documentsfilePath,includeMessages,includePrompt, andincludeSystemfields — all of which were retired.Why This Change Was Made
The runtime schema only accepts
{ enabled?: boolean }. Doctor proactively strips extra fields. Showing retired fields misleads users.Evidence
src/config/zod-schema.root-shape.ts:97:z.strictObject({ enabled: z.boolean().optional() })src/commands/doctor/shared/legacy-config-migrations.runtime.retired.ts:236-243: strips extra fieldssrc/config/dead-config-keys.test.ts:76:diagnostics.cacheTrace.filePathlisted as dead