> Generated by `site/tools/generate-plan-md.sh` from `PHASED-PLAN.md` — the repo source is canonical and this copy must match it (verify: `site/tools/generate-plan-md.sh --check`). Internal-infrastructure references are redacted for the public site (see the generator's redaction map).

# Folksforge — Phased Build Plan (vow-committed, 2026-11-10)

## The vow (project charter head)

Timothy, 2026-11-10: **"We must complete the creative forge project as it fulfills a vow I had."**

This project is **vow-committed**: completion is the plan of record. Economic telemetry (patronage conversion, fee revenue) informs how much we invest BEYOND the MVP — it never gates whether the MVP and the core value loop get built. The falsification gates from the Round-1 audit now measure the *revenue thesis only*.

## Non-negotiable constraints carried from Round-1c (they make the vow durable)

1. Royalty shares are contractual, never copyright (§204/§101).
2. CC BY 4.0 default; CC0 for the mission track; NC/SA opt-in with the canonical two-rule compatibility matrix (fork-time SA identity + monetize-time NC commerce block; see README constraint 2).
3. Strictly non-custodial payments (EIP-3009); **Base testnet until Timothy's explicit written permission for anything mainnet** (estate financial gate); the control-of-value law (README constraint 3a) governs every payment flow.
4. Honest architecture: federated lore-servers + platform registry + mirrors — not "all storage on-device P2P."
5. Zero VCS nouns in any creative-facing surface; human factors first.
6. Every phase ends with a WORKING, tested artifact — zero unwired plumbing.

---

## Phase A — Foundation: the publish/clone loop (Days 1–2)

**Goal: two machines publish and clone the same repository through the registry. That is "functional."**

- `forge` — Go CLI wrapping the **lore CLI at a minimum-version floor (initial floor v0.13.0, breaking-only holds)** (never the lore-go FFI: it regenerates per release and has an arm64 crash footgun):
  - `forge init` — create a work repo (plain text now; .mks import lands in Phase B)
  - `forge commit` / `forge publish` — commit to local lore store, push to the creator's lore-server
- **Registry v0** on pistis (PostgreSQL, own systemd slice respecting cpu.max):
  - `repo_id → lore_endpoint → ed25519_key → wallet_address` mapping
  - Maintainer-signed head-hash anchoring (edit detection from day one)
- lore-server (v0.13.0) running on pistis behind the WireGuard-only pattern
- **Exit test:** from two different hosts, `forge publish` + `forge clone` the same repo via the registry; head-hash tamper detection demonstrable.

## Phase B — The ownership layer: fork = share (Days 3–4)

**Goal: a fork visibly registers its royalty share, and the license chain is queryable.**

- `forge fork <parent>` = clone + **register royalty share** (parent/derivative split recorded in the registry as a contractual instrument — the ToS contribution agreement, **signed, hashed, anchored — no anchor without a signature**: ESIGN-style capture with e-consent disclosure, signatory identities, timestamp, instrument hash, and a retained, reproducible copy for the signatory and parent holders) + license selection flow (BY default, CC0, opt-in NC/SA with plain-language warnings)
- License-compatibility enforcement per the canonical two-rule matrix (see README constraint 2): **fork-time** — a parent whose license contains SA may only be forked under the identical SA license (proprietary adaptations refused); **monetize-time** — a work with an NC-licensed ancestor cannot register a paid x402 support endpoint (a free NC adaptation is lawful until it monetizes). `forge shares <repo>` shows the parent + co-owner split table and the license DAG.
- Scheduled publishing: publish instructions are pre-signed at schedule time; self-hosted lore-servers execute their own scheduled drops, paid hosting executes platform scheduled-publish (SLA-backed); a missed drop surfaces as a staleness notice from registry health checks — never a silent miss.
- Share ledger: every work's split table (parent + co-owners, percentages) queryable via `forge shares <repo>`
- `.mks` (Manuskript) import: zip parse → planning tree stored as an opaque lore asset
- **Exit test:** fork a published work; `forge shares` shows both parties' registered shares and the license DAG; an incompatible license mix is refused with a human-readable reason; **a fork without a captured signature is refused anchoring.**

## Phase C — The value loop: x402 splits on Base testnet (Days 5–7)

**Goal: a patron pays, and every owner's balance moves in the correct proportions. This is the loop the whole product exists to prove.**

- Self-run **x402 facilitator** (Go, on the VPS): serves a work's pay endpoint, accepts testnet-USDC via x402/EIP-3009 `transferWithAuthorization`. Idempotent submit/timeout semantics: a signed-but-unsubmitted authorization expires unspent and the patron sees a retry — never a double charge. (An earlier draft offered an "escrow-ledger path" as an alternative — DROPPED: an escrow ledger receiving user USDC is custody and violates constraint 3; only the on-chain split satisfies non-custody.)
- Split routing per the registered share table: fee (5%, slider later) → platform; remainder → parent + co-owners as **on-chain split lines** (no platform custody at any point)
- On-chain testnet split contract — **contract deployment on testnet still gets Timothy's nod first** (estate gate discipline, even off-mainnet)
- **Exit test:** end-to-end — buy a work with testnet USDC through the x402 flow; parent, fork-owner, and platform balances each move by the registered percentages; receipts anchor to the registry.

## Phase D — The reader surface: the funnel mouth (Week 2)

**Goal: someone who is not Timothy can discover, read, and tip a work, end to end — without seeing a single VCS noun.**

- Minimal read/discovery page on the VPS: a statically generated anonymous consume shell from the registry (work listing → reading view); the capability ribbon, hosting status, and staleness banners hydrate client-side from authenticated, no-store authorization endpoints — static caches never serve personalized state (see MAP §2) — plus tip button (testnet x402)
- Editorial vocabulary throughout: works, chapters, co-authors, "support this creator" — never commit/push/fork in user-visible copy
- License and split transparency shown per work (the patron sees where money goes — transparency as a feature, per-work opt-out for earner privacy)
- **Exit test:** a fresh, non-technical visitor completes discover → read → tip on their own, unaided. **Executable-for-testnet form:** the platform provisions recruited testers with testnet USDC and an embedded in-page signer (explicit consent, testnet-only — no wallet tooling required); the invisible card rail stays OFF until the custody/KYC/1099 analysis re-runs, after which the unaided-card tip flow is re-tested before any public card surface.

## Phase E — Beyond the MVP (post-completion, each separately gated)

Mirrors/replication and reputation (M3 findings) · governance UX (takedown/tombstone/key-revocation) · ActivityPub comms · the two M3 decision gates (now **native-client** build-or-wait — the creator desk GUI is C15 in the MVP per the 2026-11-13 ruling; vertical expansion — instruments per `docs/USER-WORKFLOW-MAP.md` §3e) · mainnet activation (**written permission gate**) · affiliate/paid-hosting products.

---

## Execution cadence

- Intercessor expansion and pistis CI consolidation remain the daytime priorities; creative_forge phases run as **evening blocks + agent-driven implementation bursts** (subagent-driven-development pattern: pre-audit → implement → post-audit → merge), starting **tonight**.
- pistis co-tenancy discipline: forge-registry gets its own slice; ci.slice cpu.max lands FIRST (still the #18 prerequisite — it protects every tenant).
- The name: **Folksforge** (decided 2026-11-10; repo renamed, folksforge.dev registered) — the "creative-forge" working name in earlier commits is superseded.

---

## 2026-11-13 plan-of-record amendment

The reconciled MVP must-have definition (**`docs/MVP-DEFINITION.md`**, canonical in-tree; evidence in `docs/research/folksforge-phasea/`) is adopted as plan of record and agrees with the MVP tracker (#11 parent, #12–#26 children). What this changes in the build order:

- **Creator surfaces, not build order.** Creator authoring is desktop-GUI-first: C15 (#26, primary desk — a desktop-form-factor GUI on the C4 web-technology pane family, never a native client) > C4 (#15, web desk, parity fallback) > CLI last (protocol proof harness + power users). The Phase A/B CLI-first build order stands unchanged as engineering verification of the registry/lore APIs; no creator flow is CLI-only at MVP. Phase A–C exits are engineering demonstrations; the creator-surface exits are the definition's 5h–5k (full loop on C15 with no terminal; C4 fallback parity; the cross-surface zero-logic-forking test with the API-write-path invariant; the accessibility battery on both desks).
- **The MVP tree is the tracker.** Social = C8 comments (#19) + C9 DMs (#20, encryption-ready envelope) + C10 per-work issues (#21), three separate children; moderation + appeals = C11 (#22); quality signals = C12 (#23); C14 notifications & follows (#25) and C15 (#26) are new children; the definition's S5 dependency edges govern (critical path C1+C7 → C2 → C3 → C6).
- **Recurrence decision record** (full design: `docs/research/folksforge-phasea/recurrence-design.md`): MVP support = one-off tips, unlocks, and PWYW purchases **with an optional reminder cadence that creates no charge authority of any kind**; recurring subscription billing is explicitly deferred behind the custody/KYC/1099 card-rail analysis; the fast-follow design target is Superfluid GDA streaming pools (pool units = royalty shares), with the x402 `subscribe` scheme's trust-property set adopted now as the `subscription_intent` schema shape (§2) and its scheme re-evaluated only when merged (§1.3); C3 ingress normalizes every mechanism to one canonical `ValueReceived` event (§3, zero-migration); the control-of-value law is README constraint 3a (§4).
- **Gate 0 is deferred** and any AI-generated test/seed stories are explicitly labeled and tagged AI-generated under the C12 disclosure law — decision record in README.md ("Gate-0 deferral and AI-generated seed content"); the kill-gate terms are unchanged for whenever it runs.
- **Phase D exits stand** (unaided visitor completes discover → read → tip; testnet-provisioned x402 with the embedded in-page signer; the card rail stays off until the custody/KYC/1099 analysis re-runs).
