Repository navigation
fix: accept mixed-case publication slugs - #1100
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 12:39 PM ET / 16:39 UTC. ClawSweeper reviewWhat this changesThe PR accepts repository-name case differences in direct publication and repair tuple validation while persisting canonical records, export rows, and receipts under lowercase slugs. Merge readinessKeep this PR open for normal landing review. The current head resolves the earlier storage-namespace blocker: mixed-case input is accepted only after repository containment, then rewritten to the lowercase durable namespace; no blocking correctness or security issue remains. Priority: P2 Review scores
Verification
How this fits togetherThe dashboard Worker validates signed publication plans before the Durable Object stores canonical review records and serves exports. Repair tuple validation performs equivalent path and subject checks before records reach that same storage boundary. flowchart LR
A[Signed publication plan] --> B[Worker containment validation]
B --> C[Repository case comparison]
C --> D[Lowercase canonical record path]
D --> E[Durable Object storage]
E --> F[Record export]
G[Repair decision packet] --> H[Tuple validation]
H --> C
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the lowercase canonicalization with the existing containment checks and retain the focused Worker, tuple, and persisted-storage regression coverage. Do we have a high-confidence way to reproduce the issue? Yes—current-main coverage constructs the mixed-case path and asserts the Worker returns HTTP 400, while the PR changes that exact path to acceptance and lowercase persistence. Is this the best way to solve the issue? Yes—the branch fixes both direct and tuple validation at their storage boundaries, preserves rejection for distinct repositories, and covers lower-case compatibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cd4892391195. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…sede proven-stale tuple rows (#1152) Root-causes and fixes the tuple_protocol_invalid dead-letter class (30 rows), closing the DLQ's last unexplained residue. Fingerprint archaeology: the dominant 21-row class hashed to a generic invalid_direct_publication_plan opacity bucket - 19 rows are debris of the mixed-case slug bug already fixed in #1100 (steipete/CodexBar targets), two lost their pre-#1091 detail and stay honestly unclassified. The live 4-row class is "conflicting direct publication retry": guarded apply refreshes current_item_*/apply_checked_at after canonical acceptance, so publication retries see byte-conflicts against their own accepted plan (hit both pre- and post-#1143 items, including re_review command results - NOT a protocol-v2 command bug). Live fix: an actively owned batch resumes from its terminal canonical receipt instead of conflicting with itself; strict direct-publication conflict and fence checks preserved. Stale tuple rows now pass through the #1148 six-way evidence-gated supersede (newer-head completed record required); current-head rows stay recoverable so they republish after this fix; workflow_cancelled remains excluded. Proof: red reproduced the HTTP 400 conflict and the supersede exclusion; green 176/176 focused scenarios; full gate 3396/0; Crabbox local-container receipt at this head (docs/proof/tuple-protocol-rootcause/). Verdict clean (Findings: None, Security: None) on 5b67ae2.
Summary
Validation
pnpm run build:allpnpm run test:no-build— 3,274 tests; 3,265 passed, 9 skipped, 0 failedpnpm run lintpnpm run format:checkpnpm run check:dashboard-queue-boundarypr-behavior-proof
steipete/CodexBar#2516with an uppercaserecords/steipete-CodexBar/...operation is accepted but persisted and served only fromrecords/steipete-codexbar/...; a truly different repository remains rejected, and an all-lowercase repository remains byte-identical./internal/exact-review/publication-resultsand/internal/state/records/exportHTTP routes, the realExactReviewQueueDurable Object with local Wrangler persistence, and its persisted canonical, export-index, and publication-receipt SQLite rows.MIXED_CASE_PUBLICATION_SLUGS_PROOF_OUTPUT=<temp-dir> bash docs/proof/mixed-case-publication-slugs/run-proof.sh; then fresh PR headff1c1c7432a6341b6117afba405caed39e2b9da5in Crabboxprovider=local-container, imagenode:24-bookworm, leasecbx_10e79c7cd9e6, usingbash docs/proof/mixed-case-publication-slugs/run-proof.sh.accepted=true; lowercase export returned one item with contentx; uppercase export returned zero records; persisted SQLite contained 3 lowercase canonical rows, 3 lowercase export rows, zero uppercase canonical/export rows, and receipt pathrecords/steipete-codexbar/items/2516.md. The different repository returned HTTP 400invalid_direct_publication_planwith the original-case detaildirect publication path is outside steipete-CodexBar#2517: records/steipete-other/items/2517.md; the all-lowercase plan returned HTTP 202 withaccepted=true.docs/proof/mixed-case-publication-slugs/contains the reusable harness and contract. The disposable local artifact directory captured signed requests/responses, both export responses, a runtime transcript, namespace-storage JSON, build/install logs, and a redacted Wrangler log. The container run reportedPROOF_RC=0andleaseStopped=true.OpenClaw Bay impact
No Bay change is needed. This only normalizes repository-name casing at internal publication validation and persistence boundaries; it does not change observer data, status projections, or any Bay control surface.
Aftermath
The roughly 191
tuple_protocol_invaliddead letters are allfresh_recovery.eligible. After this deploys, the scheduled dead-letter reconciler will re-run them and they should publish without manual replay. TheCodexBarre-review loop stops once those publications finally persist.