Skip to content

Sync fmsgd dd.sql for add-to batch hash identity (merge after fmsgd#35/#39) - #16

Open
markmnl wants to merge 1 commit into
mainfrom
fmsgd-v0.5.0-dd-sync
Open

Sync fmsgd dd.sql for add-to batch hash identity (merge after fmsgd#35/#39)#16
markmnl wants to merge 1 commit into
mainfrom
fmsgd-v0.5.0-dd-sync

Conversation

@markmnl

@markmnl markmnl commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Syncs 002-fmsgd-dd.sql from the fmsgd fix/batch-hash-reply-parents branch (markmnl/fmsgd#35 + markmnl/fmsgd#39): msg_add_to_batch.sha256 (batch identity = batch message hash), msg_add_to uniqueness relaxed to (batch_id, addr), and the populate-psha256 trigger accepting a reply psha256 that matches one of the parent's batch hashes.

Merge order: only after fmsgd#35 and fmsgd#39 merge. The old fmsgd main add-to path relies on the (msg_id, addr) constraint this schema drops, so this PR's integration-test check is expected to fail while fmsgd#35/#39 are unmerged (the check builds fmsgd from main). Re-run the check after those merge — it should then go green, including the new 009-reply-to-add-to-batch.sh regression test.

To see the before/after in Actions with workflow dispatch:

  • branch main, fmsgd_ref: main → 001–008 pass, 009 fails (the regression the fmsgd stack fixes)
  • branch fmsgd-v0.5.0-dd-sync, fmsgd_ref: fix/batch-hash-reply-parents → 9/9 pass

🤖 Generated with Claude Code

msg_add_to_batch gains sha256 (batch message hash, the batch's
identity); msg_add_to uniqueness relaxed to (batch_id, addr); the
populate-psha256 trigger accepts a reply psha256 matching one of the
parent's batch hashes. Merge only AFTER fmsgd#35 and fmsgd#39: the old
fmsgd main add-to path relies on the (msg_id, addr) constraint this
schema drops.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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