# Plan kanban โ€” backend: runtime, database, API Status board for every phase doc under `docs/plan/`. **Focus: the backend** โ€” the runtime, the database engine, and the REST/`.wo`-language API. Frontend phases are parked, not deleted. Each phase file carries a matching status banner; this board is the index. Statuses: โœ… **done** ยท ๐Ÿ”„ **in progress** ยท โฌœ **not started** ยท โธ **parked (out of backend focus)** ## Board ### Track 1 โ€” Runtime foundations (dependency removal, kernel primitives) | Status | Phase | Doc | Notes | | --- | --- | --- | --- | | โœ… | 01 crate scaffolding | [done/01](done/01-scafolding-crates.md) | 15 crates | | โœ… | 02 epoll event loop | [done/02](done/02-event-loop-epoll.md) | `runtime/netpoll_epoll.rs` | | โœ… | 03 hand-rolled HTTP | [done/03](done/03-hand-rolled-http.md) | + keep-alive & pipelining (follow-up under plan 09) | | โœ… | 04 tokio/axum cutover | [done/04](done/04-cutover-remove-tokio-axum.md) | deps now: anyhow, serde, serde_json, libc | | โฌœ | 05 hand-rolled JSON | [05](05-hand-rolled-json.md) | removes serde/serde_json โ€” **next in this track** | | โฌœ | 06 bespoke error type | [06](06-bespoke-error.md) | removes anyhow | | โฌœ | 07 inotify content watcher | [07](07-inotify-content-watcher.md) | `wo dev` hot reload | | โฌœ | 08 sendfile static assets | [08](08-sendfile-static-assets.md) | needed by parked UI track too | ### Track 2 โ€” Concurrency & scale-out (plan 09) โ€” ๐Ÿ”„ in progress | Status | Sub-phase | Notes | | --- | --- | --- | | โœ… | 09a thread-per-core | `runtime/scheduler.rs`, `SO_REUSEPORT`, pinned `wo-shard-` workers | | โœ… | 09b sharded engine | `shard.rs` bus; `Arc>` deleted; interleaved ids; fan-out lists | | โœ… | 09c per-shard WAL | `wal.rs`; ack-after-fsync; boot replay; `meta` shard guard | | โœ… | โ€” keep-alive (follow-up) | reads ร—3.4 โ†’ 770k/s; C phase-C sequence | | โœ… | โ€” io_uring group commit (follow-up) | `netpoll_io_uring.rs` raw ring; 4.7ร— durable writes on real disk | | โฌœ | 09d cross-shard subscriptions | LIVE fan-out, one message per shard โ€” pairs with Stage 3 | | โฌœ | 09e cross-shard transactions (2PC) | needed by `fn checkout` spanning shards | | โฌœ | 09f observability & reshard | per-shard metrics, `WO_RESHARD` | All numbers + find-and-fix stories: [09-concurrency-scaleout.md](09-concurrency-scaleout.md) shipped notes and the [benchmark table](../../prototypes/wo-rt-c/README.md). ### Track 3 โ€” Storage & durability (plans 10โ€“12, 16) โ€” ๐Ÿ”„ in progress | Status | Phase | Doc | Notes | | --- | --- | --- | --- | | โฌœ | 10 storage foundations | [10](10-storage-foundations.md) | scope reduced: WAL framing/fallocate landed via 09c; `@table(name:, index:)` surface + RAM secondary indexes landed via 13 follow-up | | โฌœ | 11 WAL & recovery | [11](11-wal-and-recovery.md) | remaining: snapshots (`.data`), compaction, WAL rotation โ€” replay core shipped in 09c | | โฌœ | 12 engine disk cutover | [12](12-engine-disk-cutover.md) | mmap arena engine (C phase B is the proving ground) | | โœ… | 16a PG wire client | [16](16-postgres-mirror.md) | hand-rolled protocol v3 (`pg.rs`): trust/password/md5 auth, simple query โ€” zero crates | | โœ… | 16b PG backup mirror | [16](16-postgres-mirror.md) | `WO_PG=โ€ฆ`: async JSONB upserts behind the WAL ack; boot = full resync; RAM authoritative, reads never touch PG | | โฌœ | 16c typed columns | [16](16-postgres-mirror.md) | catalog โ†’ typed columns; `@table` indexes โ†’ `CREATE INDEX` | | โฌœ | 16d lossless resync | [16](16-postgres-mirror.md) | dirty-flag repair without restart; lag metrics on `/` | | โฌœ | 16e restore from PG | [16](16-postgres-mirror.md) | `WO_PG_RESTORE=1` boot when the WAL is gone | | โฌœ | 16f SCRAM auth | [16](16-postgres-mirror.md) | hand-rolled SHA-256/HMAC/PBKDF2 | ### Track 4 โ€” Language & API (`.wo` on the wire) โ€” ๐Ÿ”„ in progress | Status | Phase | Doc | Notes | | --- | --- | --- | --- | | โœ… | 13a class surface | [13](13-class-model-live-pricing.md) | `class` parses, CRUD serves, spec amended | | โœ… | 13b method execution | [13](13-class-model-live-pricing.md) | `POST /api//:id/`; row-scoped txn; one `WalRec::Txn` frame per call; abort โ†’ 409 rollback | | โœ… | โ€” `@table` + indexed DML (follow-up) | [13](13-class-model-live-pricing.md) | `@table(name:, index:)`; engine secondary indexes + `find_by`; `select Type{โ€ฆ}` in methods; `?field=value` REST filters | | โฌœ | 13c LIVE pricing push | [13](13-class-model-live-pricing.md) | Stage 3 scoped: subscription registry, WS at `/api//live`, replaces the 501 stub | | โฌœ | Stage 3 wire layer | [../runtime/database/04-client-api.md](../runtime/database/04-client-api.md) | full subscription engine + wire protocol; 13c is its beachhead | | โฌœ | 13e pricing at scale | [13](13-class-model-live-pricing.md) | wires demo to 09; hot-row reads | | โฌœ | 15a MCP core + tools | [15](15-mcp-streamable-http.md) | JSON-RPC 2.0 on `POST /mcp`; catalog-generated tools; durable-ack gated; stateless | | โฌœ | 15b MCP resources | [15](15-mcp-streamable-http.md) | `wo://` URIs, templates, cursors | | โฌœ | 15c MCP SSE + sessions | [15](15-mcp-streamable-http.md) | first streaming response in `rt`; `Mcp-Session-Id`; GET stream | | โฌœ | 15d `service mcp` surface | [15](15-mcp-streamable-http.md) | `ServiceKind::Mcp`; 13b methods become tools | | โฌœ | 15e MCP live subscriptions | [15](15-mcp-streamable-http.md) | `resources/subscribe` + `Last-Event-ID` replay โ€” needs 13c + 09d | Ecommerce sample status (verified 2026-06-13, `api.rest` **17/17 expected statuses pass**): route wiring, empty lists, 405 for un-exposed ops, 404 for unregistered routes, 501 Stage-3 stubs โ€” all exactly as documented. `fn checkout`, `on startup` seeding, and status-lifecycle triggers await 13b-style execution + 09e. ### Track 5 โ€” C proving ground โ€” โœ… done (Aโ€“F) | Status | Phase | Doc | | --- | --- | --- | | โœ… | A threads ยท B arena ยท C io_uring ยท D WAL ยท E recovery ยท F bench+ACID | [exploration/c-runtime/00-plan.md](exploration/c-runtime/00-plan.md) | 859k reads/s, 618k durable commits/s; found the ack-ordering + fd-ABA bugs the Rust port then avoided. Optional phase G (splice `wo-db` C++ engine) remains an idea. ### Track 6 โ€” Frontend โ€” โธ parked (out of backend focus) | Status | Phase | Doc | Notes | | --- | --- | --- | --- | | โธ | 13d pricing UI | [13](13-class-model-live-pricing.md) | MVC triplet exists as design artifact | | โธ | 14 MVC UI implementation (14aโ€“f) | [14](14-mvc-ui-implementation.md) | htmlx engine, SCSS subset, controllers, SSR, actions, live patching | | โธ | UI exploration track | [exploration/ui/00-overview.md](exploration/ui/00-overview.md) | 00โ€“08 design docs stay current | ## Suggested order of play (backend) 1. ~~**13b โ€” method execution**~~ โœ… shipped โ€” methods run as row-scoped transactions over RPC 2. **13c / Stage 3 LIVE** with **09d** fan-out (turns every 501 stub real; the ecommerce order-ops board's backend) 3. **09e โ€” 2PC** (cross-shard `fn checkout` โ€” the canonical ACID demo end-to-end; 13b's single-shard txn is its building block) 4. **15a/15b โ€” MCP core, tools, resources** (needs nothing unshipped; makes every app agent-callable โ€” 13b methods become MCP tools in 15d; 15e waits on 13c + 09d) 5. **05/06** dependency removal (mechanical, any time) 6. **10โ€“12** storage completion (snapshots/compaction; arena engine)