server: CommunityStore — atomic communities/<slug> write (phase-2 plan Task 2) #29
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#29
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 2.Deliverable
server/src/community-store.ts:CommunityStore { exists, write, read, readHtml, patchStatus },diskStore(root),SlugTakenError,logoFileName(type), typesCommunityFiles,Community.writestages into<root>/.tmp-<slug>-<rand>/andrenames into place; an existing target →SlugTakenErrorand the temp dir is removed.AppDeps.storeadded;defaultDeps()readsCOA_COMMUNITIES_DIR(defaultcommunities)..gitignorecommunities/.tmp-*;.env.exampleentry. Testsserver/test/community-store.test.ts(plan's five).Acceptance
brand.json onboarding.json features.json backend.json status.json logo.(svg|png) index.html;readround-trips throughSubmissionSchema/StatusSchema.SlugTakenError, no.tmp-*left behind.patchStatusbumpsupdatedAt; patching a key toundefinedremoves it.defaultDeps()still compiles); no test writes into the repo's realcommunities/.depends_on
out_of_scope
Git, rendering, email, wiring into
/api/submit.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 (Ben's laptop) — factory starved: workstation at claude usage limit, elitebook-03 busy on Matou/idss. Working plan Task 2 on branch agent/issue-29; PR to follow.