Skip to content

Latest commit

 

History

History
77 lines (66 loc) · 19.7 KB

roadmap.md

File metadata and controls

77 lines (66 loc) · 19.7 KB

Roadmap — Phases 0–15

Current status: Phases 0–14 are implemented. The demo is live at https://devsprint-web.eleo-666.workers.dev with the public MCP server at https://mcp.devsprint.elbaymalik.com/mcp, so scenario S-F is runnable as written. Every push to main redeploys once CI passes (ADR-0019). Phase 15 remains: only the demo video, a v1.0.0 release asset, is left.

Since the Phase 15 write-up: the public MCP endpoint is rate-limited, with an internal entrypoint for the agent (ADR-0020); deploys go MCP Worker → api → SPA, with pnpm deploy:all --plan (ADR-0019 status note); the live demo runs a real model, MODEL_PROVIDER=auto with Groq openai/gpt-oss-120b (ADR-0021, ADR-0026); chat renders a safe markdown subset without v-html (ADR-0022); PRODUCT.md and DESIGN.md record the product and its design system; and the composer buttons Phase 13 lists as unbuilt now exist, as one-click suggestions for the five chat scenarios in the empty transcript, with the MCP endpoint to copy for S-F.

Phase table

Phase Goal Key acceptance criteria Est. Status
0 Design docs in /docs Tool inventory, demo scenarios, wireframes, domain model, ADRs committed 4–8h done (this pass)
1 Polished empty SPA shell (apps/web) Strict TS build passes; two-pane shell renders with placeholder board data and disabled composer; CI lints. Note: shadcn-vue Chart/Unovis deliberately deferred to Phase 7 (generative UI) 1w done (this pass)
2 Worker + streaming chat echo (apps/api) Token-by-token echo streams Worker → SPA; CORS handled. Note: the brief's "in production" acceptance is deliberately relaxed to "local wrangler dev" per the locked local-only decision — no Cloudflare deploy in this pass 1w done (this pass)
3 First real tools via plain function calling "How many open issues in the current sprint?" triggers a grounded tool call against the seed workspace. Note: only the six read/rich-data tools are registered (writes wait for the Phase 5 gates); model routing per ADR-0005 with a keyless scripted mock for local dev/CI; the daily token-cap kill-switch is deferred to Phase 11 1w done
4 ToolLoopAgent multi-step Agent chains 2–3 tools in one turn; stop button aborts the stream. Note: the loop is bounded by a step budget so a looping model cannot burn the demo quota; writes are still unregistered until the Phase 5 gates 1w done
5 HITL approval gates on all writes 5 status changes execute only after explicit per-issue approval; denial is reflected in the final answer. Note: gating is needsApproval per tool, not the toolApproval map the earlier docs named; approvals are signed and single-use (ADR-0010). run_deployment stays unregistered until its Phase 8 simulation 1.5–2w done
6 MCP refactor + public issues server App behaves identically behind MCP; Claude Desktop can list and call the issues tools remotely. apps/mcp-issues serves the four issue tools over Streamable HTTP, and the in-app agent sources those same four from it through an MCP client, so both clients drive one implementation. The workspace moved into a Durable Object so the two Workers share one board (ADR-0011). S-F's remaining precondition is the deploy, which is Phase 14 2w done
7 Generative UI cards IssueTable, BurndownChart and ReleaseNotesDiff render in-stream, plus the ErrorCard owed from Phase 5. The chart is inline SVG rather than Unovis — see ADR-0012 for the measurement. DeploymentProgressCard needs the deployment it renders, so it lands with Phase 8 1.5–2w done
8 Long-running deployment Simulated multi-stage deploy streams progress and supports mid-run cancel. run_deployment is an async generator, so each stage reaches the client as a preliminary tool result and DeploymentProgressCard (owed from Phase 7) redraws from it. Note: cancel is an api route, not the request's abort signal — a browser that stops reading a stream does not reliably abort the Worker's request, so the run would otherwise finish while the card claimed otherwise (ADR-0013) 1w done
9 Daily reset alarm + persisted approval ledger A ctx.storage alarm resets the board to the seed every UTC midnight, and the approval replay ledger (ADR-0010) moved off an in-memory Set into the same Durable Object, so replay protection holds across isolates and restarts. Note: "per-visitor session isolation" from the original line is descoped — ADR-0014 found it conflicts with the product brief's own multi-tenancy non-goal and with scenario S-F's single shared workspace, and corrects the Phase 6 comment that anticipated it 1w done
10 Observability + evals A turn's spans export to Langfuse as OTLP/HTTP JSON, and trajectory evals for all 6 demo scenarios gate CI. Note: the "risky on workerd" flag did not hold up — AsyncLocalStorage works, Langfuse takes JSON so there is no protobuf, and the AI SDK hands over a tracer, so this needs no OpenTelemetry SDK (ADR-0015). Evals run against the scripted mock, which proves the app honours a trajectory, not that a live model elicits one — EVAL_MODEL_PROVIDER runs the scenarios against a real provider on demand. That path never actually ran until ADR-0021 fixed it, and live models are held to each scenario's meaning, while the mock must also match its exact sentences and trajectories (ADR-0021) 1–1.5w done
11 Security hardening Two spend controls, deliberately different mechanisms (ADR-0016): a per-IP rate limit on /api/chat from Cloudflare's binding, and the daily token cap ADR-0005 deferred here, living in the workspace Durable Object because the binding disclaims being an accounting system and counts per location. The cap survives reset() — a cap a visitor can clear by pressing a button is not a cap — and rolls over on the real UTC date. Both degrade into a readable turn rather than an HTTP error. On injection the posture is stated rather than implied: the approval gate is the control, a prompt rule is depth 1w done
12 A11y + performance Lighthouse ≥ 90 on every category (lowered from the original 95 so the gate tolerates throttling noise), median of three runs. Measured locally at 98 / 100 / 100 / 100 mobile; measured live after Phase 14 at 100 across the board (the local build never reached its api, ADR-0019), after self-hosting the font (a Google Fonts chain cost ~0.8 s of mobile FCP) and fixing SEO basics. Note: the Lighthouse accessibility 100 only sees an empty first paint, so CI gates accessibility with axe across five UI states in both themes instead — it found three WCAG AA violations the 100 had hidden (ADR-0017). Vapor: the gate was checked and not met — Vue 3.6 is still rc.12 — so the experiment does not run (ADR-0008) 1w done
13 Test suite green in CI Unit tests + Playwright E2E driven by the 6 demo scenarios, green in CI. One browser test per scenario uses its verbatim prompts and transcribes its eval assertions against three layers: the DOM, the UI stream the browser received, and the Durable Object (ADR-0018). An audit of all 173 scenario requirements found most coverage weak, and two evals green for the wrong reason (S-D's DS-11, S-E stopping after one turn). A mutation pass then found ten product breaks that every suite let through; each now fails a test written for it. Note: unbuilt expected-UI (composer buttons, Sprint/Deploys tabs, release-notes badge, full markdown in chat (a safe subset renders since ADR-0022; links, nested lists and fenced code do not), an interrupted-stage state) is named in docs/demo-scenarios.md rather than tested as if it existed 1–1.5w done
14 CI/CD deploy topology Three Workers on workers.dev: the api, the public issues MCP server, and the SPA as Workers Static Assets. One script deploys first time and every time: it breaks the api ⇄ MCP binding cycle on a first deploy, generates the approval secret once, and ends in smoke checks that each name the misconfiguration they catch. Push to main deploys after both suites pass. Note: PR previews are the SPA's alone, against the production api. Cloudflare generates no version URLs for a Durable Object Worker, and a Preview's service binding would reach the production MCP Worker and board (ADR-0019). The live site scores 100 on all four Lighthouse categories, which corrects ADR-0017's local measurement 1w done
15 Portfolio polish README whitepaper + ADRs finalized + 2–4 min demo video. Note: the README is rewritten as a write-up of the decisions and the testing story; all 19 ADRs were audited against the code, and later facts were appended as dated status notes instead of edited in. The video is recorded by hand from docs/demo-video.md, rehearsed shot by shot against the live site, and ships as a v1.0.0 release asset 3–5 evenings in progress

Estimates assume evening/weekend pace. "Risky" rows carry explicit fallbacks — see staged thresholds below and the ADRs in adr/.

Staged thresholds

Go/no-go rules condensed from the planning brief's recommendations:

  • Vapor mode only when stable: the Phase 12 experiment runs only if Vapor has stabilized on the Vue 3 (3.6-track) line and Reka UI confirms compatibility; otherwise skip it entirely (see ADR-0008).
  • Skip the public MCP server if Phase 6 slips past 2 weeks — keep the internal MCP refactor, drop the externally exposed issues server.
  • Model limits: a global daily token cap is the kill-switch. The Gemini fallback was removed (ADR-0026), so a Groq rate limit is waited out for up to about 14 seconds, and after that ends the turn with a message.
  • Drop Langfuse if OTLP export from workerd proves flaky — keep the onStepFinish audit log as the observability floor.
  • MCP App (rich UI inside external MCP hosts) is stretch-only; it never blocks any phase.

Top risks

Condensed from the planning brief's risk register — top 5, one line each:

  1. AI SDK v6 approval API churn (Phase 5): resolved, and the risk was real — the mechanism assumed here turned out not to exist in the installed SDK. Gating is needsApproval per tool, which is neither deprecated nor replaced by a toolApproval map. Keeping policy separate from mechanism in ADR-0003 is what made that a correction rather than a redesign; the mechanism actually used is ADR-0010.
  2. MCP transport/spec churn on Workers (Phase 6): vendored tool definitions and the skip-public-server threshold above cap the blast radius.
  3. Free-tier model quota exhaustion: Groq allows 8K tokens/minute for openai/gpt-oss-120b (about four agent turns) and 200K tokens/day, with no fallback since ADR-0026. Mitigated by the global daily token cap, and a graceful "demo budget reached" state; the real remedy is billing or a larger free quota.
  4. OTLP export instability on workerd (Phase 10): observability degrades to the onStepFinish audit log rather than blocking the phase.
  5. Vapor instability on the Vue 3 (3.6-track) beta line (Phase 12): deferred behind a feature flag on a single leaf component; the app never depends on it.