Skip to content

fix: serialize shared edge writes - #70

Closed
creatornader wants to merge 1 commit into
mainfrom
fix/edge-write-contention
Closed

fix: serialize shared edge writes#70
creatornader wants to merge 1 commit into
mainfrom
fix/edge-write-contention

Conversation

@creatornader

Copy link
Copy Markdown
Owner

Summary

Serialize local gateway-edge mutations across concurrent MCP processes with a short-lived crash-recoverable lock. The gate never covers remote gateway calls.

Verification

  • npm run check reaches the pre-existing server-factory failure on both this branch and main because the active environment supplies a gateway backend config to an incomplete-config fixture.
  • Focused offline and multi-process tests pass.
  • The multi-process test starts 21 processes against one edge database and retains 672 outbox records.

@creatornader

Copy link
Copy Markdown
Owner Author

Closing: review found a stale-lock ownership race in the initial write-file coordinator. The replacement requires a properly versioned edge schema migration and contract update. This PR must not merge.

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