Repository navigation
fix(state): sidecar convergence and complete per-tuple failure isolation - #870
Conversation
…ection failure run 30199610295 aborted whole cycles on "keeps a packet after clearing its pointer" because normalize-phase tuple validation sat outside #867's isolation; shared convergence now deletes sidecars orphaned by the authoritative primary (no-primary → drop plan+packet; closed → drop plan; pointer cleared → drop packet), and a full throw-site audit routes every per-tuple failure (filename resolution, structural validation, winner arbitration, push-race rebuild) through dead-letter disposition while transport/parse corruption stays publish-fatal; fencing/digest/revision semantics unchanged.
|
Codex review: needs real behavior proof before merge. Reviewed July 26, 2026, 8:24 AM ET / 12:24 UTC. ClawSweeper reviewWhat this changesThe branch makes primary state records authoritative over plan and decision-packet sidecars, and isolates individual record-tuple projection failures so independent tuples can continue publishing. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep this PR open for normal review. It addresses a concrete state-publication failure and is not evidenced as already implemented on current Priority: P2 Review scores
Verification
How this fits togetherClawSweeper's state materializer projects review records into durable item, closed-item, plan, and decision-packet files, then the Git publisher reconciles and pushes them to the state repository. A malformed record tuple should be quarantined without preventing independent state updates from being published. flowchart LR
A[Review record events] --> B[State materializer]
B --> C[Record tuple projection]
C --> D[Sidecar convergence]
D --> E[Tuple validation]
E --> F[Git reconciliation]
F --> G[State repository]
E --> H[Dead-letter disposition]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain strict repository-wide transport and parse failures, and merge tuple-level convergence only after focused proof shows orphaned sidecars are removed while valid sibling tuples still publish. Do we have a high-confidence way to reproduce the issue? Yes, from the supplied source diff and incident description: a primary record that clears its decision-packet pointer while a packet sidecar remains can fail tuple normalization. This review did not execute a current-main reproduction path. Is this the best way to solve the issue? Yes, provisionally: one shared convergence helper before validation is narrower and less drift-prone than duplicating cleanup rules in materialization and reconciliation, provided it preserves the stated publish-fatal boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4f1d7d6caa42. LabelsLabel changes:
Label justifications:
EvidenceWhat 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
|
…ection failure (openclaw#870) run 30199610295 aborted whole cycles on "keeps a packet after clearing its pointer" because normalize-phase tuple validation sat outside openclaw#867's isolation; shared convergence now deletes sidecars orphaned by the authoritative primary (no-primary → drop plan+packet; closed → drop plan; pointer cleared → drop packet), and a full throw-site audit routes every per-tuple failure (filename resolution, structural validation, winner arbitration, push-race rebuild) through dead-letter disposition while transport/parse corruption stays publish-fatal; fencing/digest/revision semantics unchanged.
Summary
Incident
Run 30199610295 aborted the whole cycle on
keeps a packet after clearing its pointer. Normalize-phase tuple validation was still outside the isolation introduced by #867, so one invalid tuple prevented every independent repair from publishing.The shared convergence helper now makes the primary record authoritative over its sidecars before validation and reconciliation. The publisher reports isolated tuple failures back to materialization, which records the normal dead-letter disposition without weakening repository-wide corruption handling.
Throw-site audit
Proof
pnpm run check: code-owned checks green; only known environment failures remained.