Skip to content

docs: playground simulation — Phase 1 spec - #4

Merged
Kinflou merged 1 commit into
mainfrom
docs/playground-simulation-phase1
Sep 2, 2026
Merged

docs: playground simulation — Phase 1 spec#4
Kinflou merged 1 commit into
mainfrom
docs/playground-simulation-phase1

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 2, 2026

Copy link
Copy Markdown
Member

A design record for the "simulate machines" runtime demo, moved off a scratch artifact and into design/.

It's now concrete: @comline/runtime already ships the wire (duplex(), Client.connect / Server.serveHandshaked, Reply, both framings), so route B — drive the frozen IR through the real runtime, no codegen or transpile on the path — means comline-core only gains one read-only WASM function, describe_project.

Covers: vocabulary, architecture + module layout, the describe_project shape and mapping rules, TappedTransport + generic client/dispatch, six canned behaviours, the full-width simulate view (with an ASCII wireframe), three interaction flows, five milestones (1a–1e) each with an acceptance check, and the open questions — chiefly ir_hash parity between schema_ir_hash and the generator's emitted IR_HASH.

Two shape calls settled with @Kinflou: full-width view (not the existing right pane), and the runtime vendored into the app (matching how the WASM crate pins comline-core by rev).

Linked from the runtime-demo section of playground-and-tutorial.md, the design index, and the nav. mkdocs build --strict passes.

A design record for the "simulate machines" runtime demo, now concrete
because `@comline/runtime` ships the wire (`duplex()`, `Client.connect` /
`Server.serveHandshaked`, `Reply`, both framings).

Route B: drive the frozen IR through the real runtime — no codegen or
transpile on the path — so `comline-core` only gains one read-only WASM
function, `describe_project`. Covers the data model, the runtime wiring,
six canned behaviours, the full-width simulate view, five milestones
(1a–1e) and the open questions (chiefly `ir_hash` parity with the
generator).

Two shape calls settled: full-width view (not the right pane), and the
runtime is vendored into the app.

Linked from the runtime-demo section of playground-and-tutorial.md, the
design index, and the nav.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant