server: /api/submit stores, renders, emails, publishes; GET /c/:slug (phase-2 plan Task 6) #33
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
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#33
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-28-coa-phase-2.mdTask 6.Deliverable
Rewrite
server/src/routes/submit.ts: parse → probe (self-hosted) →store.exists→ 409{error:'slug-taken', slug}→ render viadeps.render→store.write(statuspage-ready) →mailer.sendPageReady(failure →patchStatus({emailError})) →publisher.publish(failure →patchStatus({publishError})) →200 {accepted:true, slug, pageUrl, backendReport?, status}. Newserver/src/routes/community-page.tsmounted at/c:GET /c/:slug→ storedindex.html;GET /c/:slug/logo.(svg|png); 404{error:'not-found'}; slug checked againstSLUG_RE.AppDeps.render(defaultrenderCommunityPage). Update the phase-gate line inCLAUDE.mdanddocs/CODING-STANDARDS.mdto phase 2 wording (plan text). Tests: extendserver/test/submit.test.tswithtestDeps(root)(plan's five phase-2 tests; phase-1 tests switched offdefaultDeps()so nothing writes into the realcommunities/); newserver/test/community-page.test.ts.Acceptance
pageUrl, publishes the slug, returns 200 withstatus.state === 'page-ready'.{ok:false}→ still 200;status.emailError/status.publishErrorrecorded./c/nopeand/c/../etc/passwd→ 404.pnpm -r typecheck && pnpm -r testgreen.depends_on
out_of_scope
make resend(Task 7); site changes (Task 8).Phase gate
No build dispatch, no
coa-sharedprovisioning, no status transitions beyondpage-ready(phase 3). Never delete or rewrite anything undercommunities/(ADR 0002/0003).Claimed by the interactive session — working plan Task 6 after #32 merges; branch agent/issue-33.