Skip to content

Appendix C: Handed off open

Draws on: ADR 0005, ADR 0008, ADR 0009, ADR 0020, ADR 0024, ADR 0026, ADR 0027, ADR 0028, ADR 0032, #86, #87, ADR 0039, ADR 0040, ADR 0071, ADR 0078.

These are left open at handoff, on purpose. Everything else is written before it. An item that settles a language question gets an ADR, and the same change edits the Spec (chapter 0).

These need a working Core, so they are written during Appendix B’s first milestone.

  • Cost Model 1: its rates are calibrated against both Cores once they pass the seed corpus. Until then, costs.toml holds the provisional Cost Model 0, whose rates aren’t measured (chapter 8). Language 1.0 is declared once Cost Model 1 exists (ADR 0032).
  • The TS Core’s debug-pause hook: documented in the TS implementation guide, including inspection, stepping, fault breaks, paused wall time and replay landing for an early Stop or CancelRun (chapter 12).
  • The rest of the Corpus: the seed cases are unblessed, and are blessed by the first Core (Appendix B). The seed corpus also has no Disassembly Cases and no Session Transcripts, and its only load diagnostic is pattern too large. These are written as each Core can produce them, since bless writes the output lines.
  • The differential fuzzer: a required practice, outside the Spec (chapter 11). The research proposes its generator, its minimiser and its oracles (#86), and it is built with the TS Core.
  • A tree-sitter grammar: optional, for editors that want one. Like all tooling, it is not normative (ADR 0028).

None of these blocks an implementation. Each would be a language change.

  • Normative error messages: the wording of a Core-raised message is outside parity, so text a Script builds from one is outside parity too, and no case may depend on it (chapter 11). Making chapter 6’s templates normative would close that gap.
  • More from locale: formatting currency Quantities in a Locale, formatting a whole date in a Locale’s own pattern, and title case (ADR 0024).
  • Bit operations on Bytes: whether bitAnd, bitOr, bitXor and bitNot should also act byte by byte on two Bytes of the same length. The bit Built-ins take numbers only (ADR 0149).
  • A Library’s Operations: whether a Library may declare the Operations it needs, so a Host can check them before any Import (ADR 0020).
  • A third Core for embedding outside Go and TS (#122, ADR 0071): the gate in ADR 0040 is met. A third Core, in Zig with a C interface, is built, though the Message Layer met its thresholds for an Elixir Host and a C Host (#532, ADR 0078). It conforms to language 1.0-rc.3 and Cost Model 0: it passes every Corpus case, every Trace Case in both replays, and its REPL reproduces every Session Transcript. Blessing needs it to agree, and the nightly differential fuzzer runs it (#636). The Zig wasm32-wasi build is now the Message Layer reactor; the Go WASI entry point is retired (ADR 0089). The native sidecar also uses Zig; the Go sidecar is retired (ADR 0090). The public Go Core remains. Saves stay per Core: Go-Core saves require the previous runtime or a fresh start from source and Host-owned data. The browser keeps the TS Core by default; a browser Host may run the reactor through @northtalk/ts/wasm (ADR 0097).

These are outside the language’s first version, not open questions in it.

  • Durable, cross-Core snapshots: a save restores only on the Core family that made it (ADR 0005, ADR 0008). A stable cross-Core format, and handling events while a Script is unloaded, are a later extension.
  • An Elixir Host: it drives the Zig Core through the wasm32-wasi reactor or native sidecar (ADR 0090), using the Message Layer (chapter 9), and gets no Core of its own (ADR 0009).