Skip to content

Test message hashes across local delivery and federation - #21

Merged
markmnl merged 4 commits into
mainfrom
feat/finalize-message-sha256
Sep 10, 2026
Merged

Test message hashes across local delivery and federation#21
markmnl merged 4 commits into
mainfrom
feat/finalize-message-sha256

Conversation

@markmnl

@markmnl markmnl commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Synchronize the daemon-owned bootstrap schema and cover SHA-256 identity from local-only delivery through later federation. Test 009 composes batch-hash replies through the API instead of injecting unhashed sent rows into PostgreSQL.

Test 015 checks immediate local hashes, local replies/reactions, compressed messages later sent through add-to, cross-host batch-hash replies, and notification-only code 11. The test stack supports forced challenges with FMSG_CHALLENGE_MODE=ALWAYS and a separate network with FMSG_TEST_NETWORK.

Initialization SQL is for new databases. Existing stacks stop the daemon/API and run the separate standalone fmsg-backfill binary, which embeds the schema upgrade and converts existing data atomically before the new services start. It is not bundled in the daemon image. The README documents this rollout and shared-payload retention.

Depends on markmnl/fmsgd#44 and markmnl/fmsg-webapi#45; merge after both so default main builds use matching versions. Contract: markmnl/fmsg#37.

Validation: all 15 integration tests passed using Podman, matching feature branches, isolated stacks, and forced challenge responses. Shell syntax checks pass. The schema copy matches fmsgd/dd.sql after its required database-selection preamble. PR CI selects matching component branches when available; manual workflow inputs take precedence.

@markmnl
markmnl merged commit db7483d into main Sep 10, 2026
1 check passed
@markmnl
markmnl deleted the feat/finalize-message-sha256 branch September 10, 2026 08:41
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