Skip to content

Fix anchor_plan persistence race that disconnects the app - #237

Merged
MaggieAppleton merged 1 commit into
mainfrom
fix/anchor-plan-persistence-order
Oct 1, 2026
Merged

MaggieAppleton merged 1 commit into
mainfrom
fix/anchor-plan-persistence-order

Conversation

@MaggieAppleton

@MaggieAppleton MaggieAppleton commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

When the Planner moves a decision with anchor_plan, its document write and sidecar write can overlap using the same storage revision. The resulting conflict shuts down the server and disconnects the local app.

Await the document publication before persisting sidecar state and broadcasting anchors. Extend the existing decision-placement test to hold publication pending and verify that persistence waits. Remove the resolved ordering gap from the architecture notes and agent instructions.

Validation: bun test (1,792 passed, 2 PostgreSQL tests skipped), bun run types, and bun run ci passed. Existing lint warnings remain.

Write ordering

Before and after: anchor_plan awaits the document write before sidecar persistence and anchor broadcast

@MaggieAppleton
MaggieAppleton merged commit f75d6d6 into main Oct 1, 2026
3 checks passed
@MaggieAppleton
MaggieAppleton deleted the fix/anchor-plan-persistence-order branch October 1, 2026 12:18
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