The build plan
Phase by phase. Gate by gate.
This is how Decadrya gets built: TDD-first, audit-first, and no rewrite. The plan takes the existing planner codebase to public launch in 350 to 450 focused hours over five to six months, and every milestone ends with a written exit gate. A failed gate means one honest iteration, re-scope, or stop, never push through.
The rule that shapes every other rule
The roll-up is the one feature that has to be perfect.
Decadrya lives or dies on one thing: a task checked today visibly fills every bar above it, and the number is always right. Everything below protects that.
The milestones at a glance
Six milestones, each with hard exit criteria.
Hours sum to the roadmap’s 350 to 450 total. Ranges are planning estimates to test at two or three focused days a week, not commitments.
| Milestone | Focus | Weeks | Hours | The gate that must pass |
|---|---|---|---|---|
| M0 | Audit & stabilize | 1–2 | 40–50 | Prod deploy of the founder’s real plan; CI green; dogfood started |
| M1 | Domain core, tested | 3–4 | 50–60 | Domain coverage ≥90%; node API contract-tested |
| M2 | The loop: zoom, Flight Deck, capture | 5–8 | 90–110 | Core loop green at 360px; capture under 3s; zoom smooth at 10k nodes |
| M3 | AI, onboarding, templates | 9–10 | 50–60 | A stranger reaches the aha in under 5 minutes, unassisted |
| M4 | Private beta | 11–16 | 60–80 | ≥20% weekly-active at week 4; activation ≥60% |
| M5 | Public launch | 17–24 | 60–80 | 1,000 signups in 90 days; ≥2% free to paid |
Phase 0 · M0 · weeks 1–2 · 40–50h
Audit & stabilize
There is already a real application: Next.js 15, React 19, Drizzle on Postgres, auth, Stripe wired, an AI planner. Phase 0 does not rewrite it. It makes it honest, versioned, deployed, and observable, and puts the founder inside it every day.
Tasks
- Commit everything; establish real git history and branch rules.
- Write a feature-by-feature honest audit: what works end to end, what does not.
- Stand up CI (lint, typecheck, build) and deploy to Vercel and Neon.
- Add Sentry error tracking and migration discipline (generated migrations committed, never db push to prod).
- Seed the app with the founder’s real planning data.
Exit gate
A production deploy serves the founder’s real plan · CI is green · the audit doc is written · the dogfood gate is started: the founder uses Decadrya as their only planner for two weeks and files the top three frictions.
Phase 1 · M1–M3 · weeks 3–10
MVP shaping, domain-first and test-first
The MVP cut: one hierarchy free or unlimited on Pro, semantic zoom across four altitudes, the Flight Deck, sub-3-second capture with an Inbox, AI goal-to-draft-plan, recurring tasks and due dates, roll-up progress, three onboarding templates, and Stripe freemium. Non-MVP components stay behind flags, never deleted.
The MVP cut
- Semantic zoom over the existing tree and virtualization.
- The Flight Deck as the daily driver; capture in under three seconds, everything defaulting to a safe Inbox.
- AI that drafts an editable plan from a goal, never an oracle.
- Recurring tasks, due dates, drag-reschedule, and animated roll-up.
- Three onboarding templates and Stripe freemium.
Exit gate: the definition of "works"
A stranger signs up and reaches the roll-up aha in under five minutes, unassisted · the core loop is green at 360px and 1440px · capture is measured under three seconds · zoom is smooth on a 10,000-node tree.
The build order
Domain-first, because the math can be silently wrong.
Roll-up math is written before any screen sits on top of it. No step is done until its Definition of Done holds.
- Extract the domain, roll-up math first. Pure functions for roll-up and tree ops, testable without a database, written red-green-refactor. The initial test list is the spec: an empty node is 0%; a done leaf is 100%; weighted mixed children resolve correctly; a done leaf at depth six moves every ancestor; re-parenting a node under its own descendant throws; deferred and dropped leaves leave the denominator; a recurring task counts once and re-spawns; a 10,000-node tree computes in under 50ms; the 51st free task and the second free hierarchy are rejected.
Proven when: domain coverage is ≥90% and every node route is contract-tested. - Build the nodes API. Session-authenticated JSON routes, all inputs Zod-validated, one recursive query returning the tree with roll-ups, free-tier caps returning an upgrade payload, and a cycle guard on re-parent.
Proven when: caps return the right status, cycles are rejected, and the same idempotent write never double-posts. - Ship the loop: zoom, Flight Deck, capture. Semantic zoom over the existing virtualized tree, the Flight Deck polished into the daily screen, sub-3-second capture and Inbox, the node editor, and a motion spec that honors reduced motion.
Proven when: the Playwright core loop is green including 360px, capture is measured under three seconds, and zoom is smooth on a 10,000-node seed. - Add AI, onboarding, and templates. A streaming draft-plan endpoint with graceful failure states, fair-use metering, the onboarding flow, three templates, and designed empty states.
Proven when: three real strangers reach the aha in under five minutes, and killing the AI stream mid-flight fails gracefully into templates.
Phase 2 · M4 · weeks 11–16
Private beta, the retention test
Fifty invited users, instrumented and hand-held. This phase answers one question the loudest way it can: do people come back? If they do not, fit is fixed before a dollar of growth.
Tasks
- Instrument activation and retention in PostHog; the gate is unmeasurable without it.
- Recruit 50 users; ship a weekly fix against the top friction.
- Interview 10 users; audit billing (webhook idempotency, downgrade behavior).
Exit gate, below this iterate or kill
≥20% of beta users weekly-active at week 4 · activation ≥60% (a hierarchy created plus five tasks completed in week one) · zero Sentry P0s for two weeks. Below the gate: one iteration cycle, re-test, or invoke the kill criteria.
Phase 3 · M5 · weeks 17–24
Public launch, the economics test
Pricing on, founding-member codes out, and the honest paths (export and delete) hardened. Distribution matched to the story: long-horizon planning content that ranks where “todo app” never could.
Tasks
- Turn pricing on; issue beta members their 50%-for-life codes.
- Harden the export and one-click delete endpoints end to end.
- Run the launch checklist; ship on Product Hunt, niche communities, and newsletters.
- Publish template pages and the SEO content engine.
Exit gate
Launched with every CI gate green on production · targets tracking: ≥1,000 free signups in 90 days and ≥2% free-to-paid · churn instrumentation live and reasons understood.
Phase 4 · months 7–18+ · on evidence only
Compounding, one requested feature at a time
A modest, compounding curve, timed to the January planning season. Growth funded by evidence: keep acquisition cost near zero through SEO, word of mouth, and shareable templates.
Tasks
- Ship the highest-requested deferred feature each quarter, likely calendar sync, then offline-first and PWA hardening.
- Push the annual plan each January, the category’s real seasonal spike.
- Grow template virality through public, shareable hierarchies.
Success state & decision gate
300 to 500 paying subscribers · roughly $2.5k to $4k MRR · churn under 5% a month. Then a deliberate decision: hold it as a lifestyle product, push for growth, or sunset per the kill criteria. Anything beyond this is upside, not plan.
Engineering foundations
The decisions that keep the number right.
Cross-cutting choices behind every milestone. They exist because the roll-up is the product, and a silently wrong roll-up would break the one thing Decadrya promises.
Architecture, no rewrite
Kept as-is: Next.js 15 App Router, React 19, Drizzle on managed Postgres (Neon), Better Auth with Google OAuth, Stripe, and OpenRouter for AI. Added for launch: PostHog for activation and retention, Sentry for errors, Playwright and Vitest for tests, and GitHub Actions CI on every pull request.
Data model & the roll-up
An adjacency list with a recursive query resolves a full subtree in single-digit milliseconds and makes moving a subtree a one-column update. Progress is computed on-read (done leaves over total, weighted), with deferred and dropped leaves excluded from the denominator, because anti-shame is a data-model decision, not just copy. The client keeps an optimistic local roll-up so the UI animates instantly.
API surface
Session-authenticated JSON route handlers with row-level user scoping and Zod on every input. Free-tier caps answer with an upgrade payload; re-parenting runs a cycle check; the AI draft-plan streams node by node with a fair-use cap; and export and delete are first-class endpoints, not afterthoughts.
Testing & TDD
Red-green-refactor, strictly for domain logic; roll-up math is written first. Three layers: Vitest unit on the pure domain, React Testing Library on interactive components, and Playwright end-to-end on the core loop from signup to a rising roll-up bar. Coverage target ≥90% on the domain, with no global coverage theater.
AI, honestly
One versioned system prompt and a strict JSON schema, capped at 40 nodes and depth four, so the output is a draft you edit, not a life sentence. Free tier gets zero generations; Pro gets fair-use 50 a month, metered, with a hard token ceiling and a spend alarm. Failure is graceful: keep the partial, or fall back to templates, never an error code.
Security, performance, analytics
Full JSON and CSV export and self-serve deletion back the trust story. Performance budgets are enforced: p95 tree fetch under 200ms, capture under 150ms, LCP under two seconds, roll-up math under 50ms on 10,000 nodes. PostHog carries the named event schema that makes the week-four retention gate measurable at all.
The bar for every feature
Definition of Done
A feature is not done because it works in a demo. It is done when it is proven, observable, and honest under failure.
- Unit tests for all domain logic (red first), component tests for interactive states, and end-to-end tests updated if the core loop is touched, all green in CI.
- Domain coverage stays ≥90%.
- It works at 360px and 1440px, is keyboard-operable, meets AA contrast, and honors reduced motion.
- Loading, empty, and failure states are designed and built, not just the happy path.
- The right analytics events fire, verified in PostHog, and there are no new Sentry errors after 48 hours in production.
- It is behind a flag if it is not in the MVP cut, and nothing is deleted to get there.
- The founder has used it in their own daily plan; the dogfood rule survives past Phase 0.
Read the plan in context
A plan is only as honest as its gates.
Every number here is a planning estimate to test, not a promise. See where the product is going and what it is built to do.