founding: soft-phase-core — welcome entry, details, brand kit, review, draft resume #31
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#39 founding: access-and-address — access options, rent-in-flow, CGNAT pre-check, Address
Matou/idss
Reference
Matou/idss#31
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?
Parent
Feature spec: #11 (founding).
What to build
The reversible opening minutes of founding, entered from shell's welcome surface and running entirely draft-saved, app-side, with nothing irreversible until Review. From the welcome surface the operator picks "Found a community" (offered only when this installation has no community — one community per installation, ADR 0050) and lands on the "what will happen" overview (P1-S1), which promises the soft phase is reversible up to Review. From there the wizard captures community details with a diacritic-folding slug (P1-S2, ADR 0029), then the brand kit — logo, palette, greeting — with a live portal preview (P1-S3) compiled locally by the bundled helper through the
brandkittheming seam (helper-plus-endpoint preview, no fleet or network). Review (P1-S6) confirms every soft-phase choice, and "create the community" is the explicit action that ends the soft phase. Closing the app anywhere in the soft phase loses nothing: the draft is a singleton in the versioned founding-state file (ADR 0050) and resumes where it was left.This slice builds the soft-phase spine that the Access and Address steps (access-and-address) plug into between S2 and S6; the brand kit captured here is what the gateway deploy later applies. It runs on the
foundingorchestrator in the bundled helper (ADR 0052), the single seam for all founding behaviour.Acceptance criteria
Blocked by
Task manifest
brandkitpackage + golden corpusDone —
founding:soft-phase-coreshipped in commit0c3642c.The
foundingorchestrator's soft-phase face (ADR 0052), founding's single test seam, lives in the app's bundled helper:internal/founding/.What landed
State{SchemaVersion, Founded, Draft}behind aStore— aMemoryStoreseam fake (JSON-round-trips every save) and a productionFileStore(atomic temp+rename write, refuse-or-migrate on a schema newer than the app understands).Offered(the one-community-per-installation gate, ADR 0050 — a second founding is refused withErrCommunityExists),Begin/Start/SaveDetails/SaveBrandKit/Back/GoTo/SetAccess/SetAddress/Preview/Review/CreateCommunity.CreateCommunityis the single explicit soft-phase-ending act — flipsFounded, returns the finalised details + the fully-compiled brand kit the gateway deploy later applies.Slugifyfolds diacritics (ADR 0029):Te Rūnanga o Example→te-runanga-o-example; fold-equal collisions left to the ordinary matou.nz availability check.Previewdrivesbrandkit.Compilein process over the portal + IdP-sign-in surfaces, compiled locally by the helper with no fleet and no network (the ADR 0038 sign-in boundary rides for free). Letter-mark logo + default preset fallbacks keep the preview live from the first keystroke.foundsubcommand serves newline-delimited JSON over stdin/stdout against the versionedFileStore; day-one boot-log behaviour unchanged.Acceptance — all six clauses pass at the seam: welcome gating (story 1), reversible draft-save from S1 (story 2), slug folding (story 3), live preview re-render (story 4), Review-shows-all + create-ends-soft-phase (story 11), resume-across-restart (story 12).
Out of scope, left to their slices: Access/rent-in-flow/CGNAT/Address capture (#39 — slots modelled and rendered at Review), the stand-up checklist, the Welcome/Operator-home surfaces (shell's), and the Vue wizard rendering (thin UI over the stdio events).
Evidence:
internal/founding/*_test.go— 16 seam tests (24 with subtests).go build/vet/test,gofmt, and golangci-lint all clean; thefoundsubcommand verified end-to-end against a real state file.docs/slices/founding.yamlmarkssoft-phase-corestatus: done;STATUS.mdupdated.