Skip to content

docs(spec): 0gkit essentials roadmap — 12 SPs across 4 phases - #2

Merged
rajkaria merged 3 commits into
mainfrom
spec/essentials-roadmap
May 20, 2026
Merged

docs(spec): 0gkit essentials roadmap — 12 SPs across 4 phases#2
rajkaria merged 3 commits into
mainfrom
spec/essentials-roadmap

Conversation

@rajkaria

@rajkaria rajkaria commented May 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Spec (`docs/specs/2026-05-20-essentials-roadmap.md`, 690 lines): 12 sub-projects across 4 phases to graduate 0gkit from "primitives shipped" to "the default starting point for 0G."
  • Decisions (`docs/DECISIONS.md`, new, append-only): locks D1–D10 — including all six open questions from the spec (initializer name = `create-0g-app`, filesystem CAS, RSC-first wallet, memory-default jobs backend, flat error codes, no mainnet blocker).
  • Phase 1 plans (both ready to execute, both co-ship):
    • `docs/plans/2026-05-20-sp2-0g-dev-local-stack.md` — 15 TDD tasks for `0g dev` (anvil + storage/compute/DA mocks + `local` network preset + `0g dev start/stop/status/reset/fund` + conformance test that asserts the real StorageClient talks to the mock unchanged).
    • `docs/plans/2026-05-20-sp1-create-0g-app.md` — 13 TDD tasks for `npm create 0g-app` (giget-based fetcher with pinned ref, pm detection, .env writer per network, interactive clack prompts with name validation, e2e smoke in CI, defensive `create-0gkit-app` shim).

Phase ordering (strict): SP1+SP2 co-ship → SP3–5 foundation → SP6–8 second-day wins → SP9–12 moat → cut 1.0.0. SP9 (error taxonomy) is the only one allowed to run in parallel with another phase.

Every SP carries an explicit Value Shipped line; every plan task has exact files, failing-test-first code, expected command output, and a commit message.

Test plan

  • Read the spec end-to-end; confirm phase ordering matches dependencies.
  • Sanity-check the 10 decisions in `DECISIONS.md`.
  • Skim the SP2 plan: anvil-spawn approach, conformance-test strategy, ~`0g dev` UX.
  • Skim the SP1 plan: pinned-ref fetching, banner copy, interactive flow.
  • On approval: merge → kick off SP2 implementation (it's the SP1 dependency) via `superpowers:subagent-driven-development`.

🤖 Generated with Claude Code

rajkaria and others added 3 commits May 20, 2026 23:27
…fault 0G starting point

Phase 1 (front door): create-0g-app + 0g dev local stack — symbiotic CRA moment.
Phase 2 (foundation): 0gkit-wallet, 0gkit-contracts, 0gkit-testing — kill raw privateKey, hand-written ABIs, untestable apps.
Phase 3 (second-day wins): indexer, cost estimator/dry-run, full template set (chat/storage/ai-agent/tee-api/nft-with-storage).
Phase 4 (moat): error taxonomy w/ docs URLs, durable jobs, OTel, CI/CD templates + community polish.

Each sub-project lists Goal · Why this matters · Package · Public surface · Depends on · Success criteria · Value shipped.
Strict sequential execution within and across phases (SP1+SP2 co-ship; SP9 can run in parallel with SP6-8).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
DECISIONS.md (new) — locks D1-D10:
  D5 create-0g-app (primary) + create-0gkit-app (shim)
  D6 filesystem CAS for 0g dev storage mock
  D7 RSC-first wallet (Next.js 16 default)
  D8 memory-default jobs backend; sqlite for prod
  D9 flat SCREAMING_SNAKE error codes
  D10 no mainnet timing dependency

SP2 plan (0g dev local stack) — 15 TDD-shaped tasks:
  package bootstrap, anvil detect+spawn, HD accounts, storage/compute/DA
  mocks (Node http + fs CAS + OAI shape + sha256 digest), state file,
  orchestrator, `local` network preset, `0g dev` CLI (start/stop/status/
  reset/fund), conformance test (real StorageClient vs mock = same shape),
  CI anvil install, docs + changeset.

SP1 plan (create-0g-app) — 13 TDD-shaped tasks:
  package bootstrap with tsup banner shebang, template catalogue + giget
  fetcher (pinned ref), pm detection from npm_config_user_agent, .env
  writer per network, git init helper, ANSI helper + next-step banner,
  clack interactive prompts w/ name validation (rejects ../ etc.), full
  run() orchestrator, e2e smoke, create-0gkit-app shim, CI smoke job,
  docs + README + changeset.

Both ship together as Phase 1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rajkaria
rajkaria merged commit 4923a5a into main May 20, 2026
1 check passed
@rajkaria
rajkaria deleted the spec/essentials-roadmap branch May 20, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant