Skip to content

[AGENT-1787] publish: Module V0 (web via SFTP, e-mail, social via Postiz, log and removal) - #10

Merged
mikaelmorvan merged 13 commits into
mainfrom
claude/AGENT-1787-publish
Nov 7, 2026
Merged

mikaelmorvan merged 13 commits into
mainfrom
claude/AGENT-1787-publish

Conversation

@mikaelmorvan

Copy link
Copy Markdown
Contributor

Summary

New Module publish v0.1.0: approved distribution of a Storage file or a post to the web (SFTP), e-mail and social networks, with a publication log and removal.

  • Workflows: publish-plan, publish-web, publish-email, publish-social, publish-remove, publish-status; queries publish-list, publish-read; MiniApp publish-tracker.
  • No sending engine in the Module: it calls ssh_upload_v1 / ssh_remove_v1 / ssh_list_v1 (mcp/ssh), google_mail_send (send_email capability) and social_post_*_v1 (mcp/social, Postiz as a connected tool).
  • Manual confirmation for every distribution and removal; destinations are explicit caller arguments.
  • Log /publish/log/<id>.json, read back after every write; idempotency by publication_id; outcome_unknown whenever an external effect cannot be ruled out, never retried silently.
  • Web destination ownership index: an older publication cannot remove a file replaced by a newer one (destination_superseded).
  • Generated by tooling/publish/build.py (byte-identical rebuild), 78 offline tests.

Evidence

  • Local: inventory.py --check, catalog.py --check, check.py, scripts/test.py, git diff --check, maurice module validate green.
  • Real replay on an isolated One (chatserver main, local ssh and social sidecars, disposable SFTP target, fake Postiz API), no patch: 35/35 checks. Upload with the same sha256 on the target, replay already_published, removal, overwrite, file_exists, destination_superseded, social draft/status/delete, e-mail without Gmail logged failed/tool_unavailable.
  • Adversarial review by another model family: 12 passes, capped; last pass 0 blocking open.

Known limits

Manual confirmation instead of human_action/v1; real Gmail send and real Postiz not exercised (no test mailbox or key); publish-plan, MiniApp, media and schedule/now not replayed (offline tests only); residual concurrency window documented (Storage has no conditional write).

Ticket: AGENT-1787.

🤖 Generated with Claude Code

claude added 13 commits November 7, 2026 10:21
…retrait) (AGENT-1787)

Workflows publish-plan, publish-web (ssh_upload_v1), publish-email
(google_mail_send), publish-social (social_post_create_v1), publish-remove,
publish-status, publish-list, publish-read et MiniApp publish-tracker.
Confirmation manuelle obligatoire, destination explicite, journal
/publish/log/<id>.json ecrit a requested avant l'appel externe, idempotence.
Inventaire, catalogue et suites de test enregistres.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r rule, terminal removal (AGENT-1787)

- e-mail published only on a 2xx status_code and a Gmail id (body JSON text parsed)
- error raised during the call gives outcome_unknown; no automatic resend, explicit resend_after_unknown
- one storageCall helper: returned isError/error is an error, only not found is empty
- removed is terminal (already_removed); attempt suffix for a derived id

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…call, replay order, resume options (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dex, untruncated remote ids (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… errors, e-mail 5xx unknown (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nation index read first (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n a definitive refusal (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…GENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r always wins (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eld always wins (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…T-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…al-only replay (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tools fail before sending (AGENT-1787)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mikaelmorvan
mikaelmorvan merged commit 673829f into main Nov 7, 2026
1 check passed
@mikaelmorvan
mikaelmorvan deleted the claude/AGENT-1787-publish branch November 7, 2026 10:18
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