Clara Docs
All docs

Build plan

Project records6 min readEdit on GitHub

On this page

Milestones from docs/SPEC.md Part F, broken into tasks. Each task names the check that proves it. A milestone is closed only after npm run ci is green, evidence is in docs/EVIDENCE/M<n>.md, a fresh-eyes review has run, and the commit is pushed with CI green.

Legend: [ ] open, [x] done. Progress and commit hashes live in docs/PROGRESS.md.

M0. Foundations

Task Acceptance check
Git repo, remote, licence, ignore files git remote -v shows origin; LICENSE is Apache-2.0 (the owner's change from the brief's MIT, D-136)
package.json, TypeScript strict config, Biome npm run lint and npm run typecheck pass
Build script (esbuild, lazy chunks, licences file) npm run build writes dist/cli.js; node dist/cli.js --version prints the version
Vitest with coverage thresholds, test folder layout from E1 npm test passes
Budget gates as scripts (cold start, tarball size) npm run budgets passes and prints numbers
npm run ci runs every gate CI runs exits 0 locally
Workflows: ci, codeql, dependency-review, pr-title; Dependabot; CODEOWNERS; templates CI green on GitHub
Docs skeleton: SPEC, ENVIRONMENT, VERIFIED, DECISIONS, PLAN, PROGRESS, STATUS files exist and are truthful

M1. The library

Task Acceptance check
Model: ticket, sprint, config, agent, event, view schemas unit tests per schema; JSON Schemas generated
Format: front matter, deterministic serialiser, fast-path parser, body sections, migrations golden files; round-trip property; differential property vs yaml
Errors with code, message, hint every refusal in the rule tests asserts its code and hint
Storage interface; memory and disk adapters; lock, journal, tags one conformance suite runs against both
Activity log: append, read, effective events, replay to a moment replay-equals-state property
Rules: lifecycle, claims, dependencies, sprints, review, WIP, stale, mentions, rank one unit test per rule in D2
Query language: parser that never throws, evaluator unit tests from D3 examples; never-throws property
Operations registry and engine (transaction, retry, one-event invariant, undo records) every-door test; property: never two holders, ids never reused, no done without allowed approval
Doctor: checks and fixes, including duplicate ids after a merge unit tests per finding
Import-boundary and no-Node-builtin scan test fails if a portable module imports node:*
Multi-process claim race N real processes, exactly one exit 0, the rest exit 3
10,000-ticket benchmark numbers in docs/BENCHMARKS.md, inside C2
Coverage gate 90% lines, 85% branches on library/

M2. The CLI

Task Acceptance check
Entry point with lazy command loading; --version under 100 ms cold-start budget test
Commands generated from the registry; --json, --as, --quiet, NO_COLOR golden output files
Exit codes 0, 1, 2, 3; id forms 12, gen-12, GEN-12; near-miss suggestions CLI integration tests
Setup: init, doctor, migrate, config, completion lifecycle test in a temp folder
Tickets group (D4) scripted lifecycle with exit codes
Flow: next, board, inbox, standup, log, search golden files
Sprints and releases lifecycle test
undo undo of each write op restores bytes
Worktree resolution to the main checkout's .clara test with real git worktree
export (JSON, CSV, Markdown), badge golden files
Generated docs/CLI.md; docs-current check npm run docs:check
Clara's own .clara board with the remaining work clara doctor clean on own board

M3. The agents' door

Task Acceptance check
MCP server over stdio, tools generated from the registry, 20 or fewer conformance test with the official client
Agent-only actor, compact text output, refusals as tool errors, no delete tool one test per rule in D5
Resources and prompts; read-only annotations; instructions carry the working agreement conformance test
Working agreement as one source text test: skill, MCP instructions, AGENTS block and dispatch prompt all embed it
Plugin: manifest, main skill with references, loop skills, MCP config, session-start hook, marketplace claude plugin validate if available; hook script unit test
clara setup <agent> writers with marked blocks fixture tests; idempotent re-run
Generated docs/MCP.md docs-current check

M4. The board

Task Acceptance check
docs/DESIGN.md written before the first component
Local server: REST from the registry, live events, static web, security headers integration and security tests
Client interface (HTTP implementation), optimistic store with rollback unit tests
Views: board, backlog, ticket, sprint, activity, idea, settings; needs-you; palette; shortcuts browser journeys
Drag and drop by pointer and keyboard; live card travel; live region browser journeys; axe
Light and dark themes; phone layout screenshots at 1440, 1024, 390 in both themes; two review rounds
Bundle gate first load under 100 KB gzipped

M5. The conductor

Task Acceptance check
Adapter interface; Claude Code, custom and demo adapters; experimental adapters for the rest parser tests on recorded streams
Worktrees, setup commands, trust store integration tests with real git
Dispatch, gates, retry with failing output, block and answer resume fake-agent matrix: succeed, fail-then-fix, block, permission, hang, crash, over budget
clara work with waves and --dry-run; limits; crash reconciliation; stop three parallel fake agents through dependencies
Approval bridge (clara_permission), permission profiles bridge test
Review: approve to pull request or local merge, request changes, reject integration test with a fake gh
Runs and review views browser journeys
Demo 1: clara demo, headless mode runs in CI
One capped real run with Claude Code docs/EVIDENCE/M5.md

M6. The brain

Task Acceptance check
plan, plan apply, plan --update, clara_plan_propose fake planner produces a plan; applied in one commit
Context packs within a size budget unit tests on relevance and budget
Playbooks and decisions with draft and accept lifecycle test
Insights: flow metrics, forecast, scorecards, standup, changelog unit tests; forecast stable under a fixed seed
Replay: board --at, scrubber replay equals history
Views: plan, graph, insights, replay, docs browser journeys; axe

M7. GitHub native

Task Acceptance check
Commit and branch linking; closes and fixes rules; clara sync real temporary repos
Git hooks install integration test
GitHub Action with five modes; loop and concurrency guards entry point tested with fixtures
clara github setup workflow templates fixture test
export --static; badge snapshot comparison

M8. Hosted

Task Acceptance check
GitHub client and storage adapter (Git Data API, retry, conditional requests) conformance suite and write race against the fake GitHub
Vercel entry points; OAuth sign-in; encrypted cookie session sign-in flow against a mock
Hosted MCP over Streamable HTTP with token check MCP conformance over HTTP
Direct mode in the browser; CSP browser journey against the fake GitHub

M9. Many projects

Task Acceptance check
Workspace storage, .clara.json pointer, init --workspace two temp repos sharing one board
Home view browser journey

M10. Reach

Task Acceptance check
Notifications (Slack, Discord, Telegram formats) payload golden files
Routines and built-in automations scheduling under a fixed clock
Importers (GitHub Issues, Backlog.md, Vibe Kanban, Beads, Jira CSV, Linear CSV, Trello JSON) dry runs against fixtures
ask, do, scan, split, estimate; board --watch, top integration tests with the fake agent
Attachments with a size cap security and unit tests

M11. Launch kit

Task Acceptance check
README in the order E3 gives; comparison facts re-checked and dated every claim maps to a row in STATUS
Docs set; landing page; recording script docs build
release, canary, pages, clara workflows skip cleanly without settings
LAUNCH-CHECKLIST, LAUNCH-POSTS, FINAL-REPORT fresh clone reaches a working board in under a minute