- README: shipped concurrency/HTTP/WebSockets sat in the roadmap as "not yet available"; "no package manager" contradicted [deps]; the deps example would not have compiled (the key IS the module name) - runtime/README: leads with wovm, wo-rt.c demoted to a historical section; dropped 2 nonexistent recipes, crates/rt, @gc refcounting, 13 suites -> 18 - employee + log-watcher READMEs claimed "does not compile"; both are gates - error catalog: +10 emitted codes incl WO-E250, the only diagnostic the shipped query surface raises; recorded why the sweep rotted - language-surface: group-by parses, then the typechecker refuses it - 00-code-review + 00-link-audit re-run; history kept, not rewritten - 48 dead Rust-era exploration links de-linked rather than re-pointed (their prose names the retired plan by number); successor map -> discarded.md - 08-project-structure: compiler/plan/ never existed; corpus has 9 dirs, 5 empty - releasing.md: dropped a --draft step the workflow never had - new docs/00-doc-audit.md: findings + disposition, incl one row where the audit was wrong and the doc it accused was right - status folders removed: 34 stories flat, status only in frontmatter; 252 links recomputed from resolved paths; board/board-views/structure retaught - story 24 -> in-progress, since frontmatter is now the only truth - new iteration 38: fs mutation verbs + net.connect, the two capability families no iteration owned - new iteration 39: gofiber/fiber v3.5.0 parity study. The ledger called CSRF/sessions unblocked by iteration 34's HMAC, but the runtime has no source of randomness at all - linkcheck skips .dev/.superpowers: 0 broken paths, 0 bad anchors Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2.1 KiB
2.1 KiB
| iteration | status |
|---|---|
| 2 | done |
Iteration 2 — VM core (wovm)
Format:
product/story-iteration-template. Part of Story — one language, one runtime, one database, one binary.
Goals
- A C, libc-only virtual machine that loads a
.wobbytecode module and executes method calls with the language's memory model enforced: owned objects with deterministic drops, runtime borrow checks at residual sites, and@gcclasses collected without stop-the-world pauses. - Arithmetic and text operations execute correctly — the language's first observable behavior.
Acceptance Criteria
- What to achieve?
- Given a hand-assembled
.wobfixture with arithmetic and method calls, - when
wovmloads and runs it, - then output matches the fixture's expectation and a corrupted image is rejected by the loader before any instruction executes.
- Given a hand-assembled
- What to achieve?
- Given a fixture that acquires conflicting exclusive borrows,
- when it runs,
- then the VM traps with the borrow-violation code, unwinds running every drop, and ASan/Valgrind report zero leaks on both success and trap paths.
- What to achieve?
- Given a cyclic
@gcobject graph that becomes garbage, - when the collector's budgeted ticks run,
- then the cycle is freed within the configured budget and no pause exceeds the configured slice.
- Given a cyclic
Out Of Scope
- The OCaml compiler (iteration 3) — fixtures here are assembled by the test tool, not compiled.
- Threads, shards, mailboxes (iteration 8); any DB or HTTP capability.
Info
- The 16-byte object header reserves a shard id now so iteration 8 needs no relayout.
- Format contract:
docs/plan/oop-vm/00-wob-format.mdtwinned withruntime/src/wob.h; ~40-op register instruction set, computed-goto dispatch.
Proposed Solution
- Execute the existing plan:
docs/superpowers/plans/2026-08-01-wob-format-and-vm-core.md(16 TDD tasks: arena, object model, borrow word, RC + cycle collector, test assembler, validating loader, interpreter, drop-map unwinding, builtins, CLI +justgate).