Skip to content

fix(state): record-tuple section-move projection and cycle isolation - #867

Merged
steipete merged 1 commit into
mainfrom
fix/record-tuple-projection
Jul 26, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/record-tuple-projection

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • project record-tuple section moves by tombstoning displaced primaries and stale sidecars before validation
  • coalesce tuple updates by highest revision and normalize payloads already wedged by the prior projection path
  • isolate invalid tuples into durable dead letters with bounded retries so valid rows can keep committing
  • keep re-drains idempotent and emit canonical Durable Object tombstones for section moves

Live failure

#866 overlaid tuple paths onto existing git state before validation. An items to closed section move therefore tripped the both-primaries invariant inside the whole-cycle transaction, aborting every projection cycle.

The production materializer has failed every 20 minutes since 07:04Z, blocking 813 rows. openclaw-openclaw/113989 is the observed item that exposed the wedge.

Proof

  • Autoreview: CLEAN (0.98); TruffleHog clean
  • Materializer tests: 12/12 passed
  • Direct-publication tests: 102/102 passed
  • Build: passed
  • Lint: passed

…ples

#866 overlaid tuple paths onto existing git state before validation, so an items→closed section move tripped the both-primaries check inside the whole-cycle transaction, wedging all projections (live failure since 07:04Z, 813 rows blocked, item openclaw-openclaw/113989); fix tombstones displaced primaries + stale sidecars, coalesces by highest revision, normalizes wedged payloads, isolates invalid tuples to durable dead-letters with bounded retries so cycles keep committing, keeps re-drains idempotent, adds canonical DO tombstones for section moves.
@clawsweeper

clawsweeper Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(state): record-tuple section-move projection and cycle isolation This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit 0974eee into main Jul 26, 2026
9 checks passed
@steipete
steipete deleted the fix/record-tuple-projection branch July 26, 2026 07:55
steipete added a commit that referenced this pull request Jul 26, 2026
…ection failure (#870)

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.
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
…ples (openclaw#867)

openclaw#866 overlaid tuple paths onto existing git state before validation, so an items→closed section move tripped the both-primaries check inside the whole-cycle transaction, wedging all projections (live failure since 07:04Z, 813 rows blocked, item openclaw-openclaw/113989); fix tombstones displaced primaries + stale sidecars, coalesces by highest revision, normalizes wedged payloads, isolates invalid tuples to durable dead-letters with bounded retries so cycles keep committing, keeps re-drains idempotent, adds canonical DO tombstones for section moves.
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant