Skip to content

Sync DD scripts with fmsgd, fmsgid and fmsg-webapi main (trash) - #25

Merged
markmnl merged 1 commit into
mainfrom
sync-dd-trash
Oct 22, 2026
Merged

markmnl merged 1 commit into
mainfrom
sync-dd-trash

Conversation

@markmnl

@markmnl markmnl commented Oct 22, 2026

Copy link
Copy Markdown
Owner

fmsg-webapi main merged Trash (markmnl/fmsg-webapi#56). Every message read now queries fmsg_api_trash. This stack builds fmsg-webapi from main but initialized the database from a copy of its dd.sql that predates the table. So the Web API answered 500 (relation "fmsg_api_trash" does not exist): drafts got "failed to validate pid", and reads, threads and WebSocket events got "failed to retrieve message". 14 of 15 scenarios failed, which broke fmsg-mcp's fmsg-docker acceptance CI on markmnl/fmsg-mcp#24, #25 and #26.

This PR regenerates all three copies with FMSGD_PATH= FMSGID_PATH= FMSG_WEBAPI_PATH= scripts/update-dd.sh, from each repo's GitHub main:

  • 003-fmsg-webapi-dd.sql: adds the fmsg_api_trash table and the fmsg_api_trash_state function.
  • 002-fmsgd-dd.sql: adds the fmsg.purge escape in the delete guard, which Trash's "delete for good" relies on.
  • 002-fmsgid-dd.sql: a comment change.

No permissions change is needed: 999-permissions.sql grants on all tables after the DDL runs.

Verified locally with podman by running fmsg-mcp's CI job against this branch (FMSG_DOCKER_REF=sync-dd-trash bash .github/scripts/run-fmsg-docker-e2e.sh): all 15 scenarios pass, and fmsg-mcp's e2e suite passes 4/4.

🤖 Generated with Claude Code

fmsg-webapi main now stores each address's trash (fmsg_api_trash and
fmsg_api_trash_state), and every message read queries it, so the stack's
copy without them answered 500 on drafts, replies, reads and events. fmsgd's
copy gains the fmsg.purge escape in its delete guard that trash's delete for
good relies on; fmsgid's is a comment change. Generated with
scripts/update-dd.sh from each repo's main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markmnl
markmnl marked this pull request as ready for review October 22, 2026 05:35
@markmnl
markmnl enabled auto-merge (squash) October 22, 2026 05:35
@markmnl
markmnl disabled auto-merge October 22, 2026 05:35
@markmnl
markmnl merged commit 3893a8c into main Oct 22, 2026
1 check passed
@markmnl
markmnl deleted the sync-dd-trash branch October 22, 2026 05:35
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