Skip to content

fix(mst2): gate native head on path tree readiness - #49

Merged
genedna merged 1 commit into
fix/mst2-native-head-merge-guardfrom
maint/mst2-native-head-base-sync
Oct 6, 2026
Merged

genedna merged 1 commit into
fix/mst2-native-head-merge-guardfrom
maint/mst2-native-head-base-sync

Conversation

@Ivanbeethoven

Copy link
Copy Markdown
Collaborator

Problem

A native publication can mark mst2_native_head READY before the selected path tree is actually materialized in the committed root.

Change

Validate the prepared path tree inside the same transaction before writing READY head, publication, and outbox state. Missing or mismatched materialization returns a closed Integrity error and leaves the head INITIALIZING. Add a regression covering deletion of the child tree.

Validation

  • cargo +nightly fmt --all -- --check
  • git diff --check
  • Linux CI should run the native publication tests; local Windows test compilation is blocked by the repository Rust MSRV/OpenSSL requirements.

@genedna
genedna merged commit 17a74c5 into fix/mst2-native-head-merge-guard Oct 6, 2026
1 check passed
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.

2 participants