server: installers-ready and build-failed emails (phase-3 plan Task 6) #73
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
docs/superpowers/plans/2026-08-31-coa-phase-3.mdTask 6.Deliverable
MailergainssendInstallersReady({to, communityName, pageUrl, releaseUrl})andsendBuildFailed({to, communityName, pageUrl, runUrl, error});renderInstallersReadyEmail/renderBuildFailedEmail(subjectsYour <name> app installers are ready/<name> app build failed, plan copy); SMTP + outbox implementations; outbox JSON gainskind: 'page-ready'|'installers-ready'|'build-failed'. Existing fake mailers in tests gain the two methods.Acceptance
pnpm -r typecheck && pnpm -r testgreen.depends_on
Phase gate
Feature toggles / nav order in builds are phase 4. Never delete or rewrite anything under
communities/(ADR 0002/0003); phase 3 rewrites onlykit.json,status.json,index.html. No test reaches the real network, sends real mail, dispatches a real build or provisions a real tenant.Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime
Ruling:
ready-for-agent. Mailer sendInstallersReady / sendBuildFailed + outbox kind field.Why this is a two-way door: it is revertible by a later commit or label change, and provable by the tests the plan specifies — which never reach the real network, send real mail, dispatch a real build or provision a real tenant. It is not on the one-way-door list: the credential bytes, real GitHub dispatch/release and live coa-shared tenant are already carved out into the human ticket #79 and the session tickets #80/#81; env-gated defaults keep the wired code inert (noop/static, 503/unconfigured) until those land.
What proves it: appended
server/test/mailer.test.tscases writing to an outbox temp dir — no real mail;pnpm -r testgreen.The ticket body is a complete agent brief (Deliverable / Acceptance / depends_on). The native Forgejo dependency links already mirror the plan's graph, so the swarm ready-list filter holds this ticket until its blockers close.
swarm-claim host=matou-dev-server-01 run=1256
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #73 — status
success✅ close-report gates passed — every claim verified against main; PR #96 (#96) was already merged (a reconcile pass landed it before this close-report ran) and the merge closed this issue via
closes #73.envelope