Skip to content

fix: isolate apply tuple reconciliation - #928

Merged
steipete merged 1 commit into
mainfrom
fix/apply-tuple-conflict
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/apply-tuple-conflict

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

The apply preselect reconciliation treated canonical tuple publication as an all-or-nothing batch. Run https://github.com/openclaw/clawsweeper/actions/runs/30419813917 hydrated one snapshot, then event-driven reviews advanced canonical records before publication. The first stale expected digest produced a 409 and aborted every remaining item.

This change rebases one conflicted move onto the CURRENT tuple returned with the 409, preserving newer record content while recomputing the intended items/closed placement and retrying once. An already-completed or newly-conflicted move is logged and skipped instead of failing the step.

Reconcile planning and publication are now isolated per item. Validation, conflict, and transient failures are counted and logged while healthy siblings continue; all-item failure and authentication or store-unavailable responses remain fatal.

Proof

  • pnpm run format
  • pnpm run build
  • node --test test/repair/publish-main.test.ts (14 passed)
  • pnpm run check: static checks, all builds, format, lint, and focused coverage passed; the final macOS full-suite pass retained five existing Linux Landlock/capset fixture failures and one existing private-var path assertion
  • /Users/steipete/.claude/skills/autoreview/scripts/autoreview --mode local (clean; no accepted/actionable findings)

Regression coverage includes 409 CURRENT rebase and retry, already-moved skip, and poison-item batch isolation.

@steipete
steipete merged commit ed37f0c into main Jul 29, 2026
11 checks passed
@steipete
steipete deleted the fix/apply-tuple-conflict branch July 29, 2026 03:58
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
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