Skip to content
Playground(another site)

Versioning & roadmap

Bynk is pre-1.0 and is built spec-first, in small increments. This page explains the method and what it means for the docs and for you.

Each language increment (v0.X) starts as a written specification, is then implemented behind a growing fixture suite, and only then is considered done. Increments are deliberately small: a slice of grammar, a refinement to the type checker, a new emission detail. This is why the version number moves in fine steps (the book is written against v0.652) rather than in large releases.

The discipline that keeps it honest is the fixture suite: a large body of positive examples (which must compile to the expected TypeScript) and negative examples (which must fail with the expected diagnostic). A feature is not “shipped” until it is fixtured, and — as of this documentation effort — until its docs are updated in the same change.

A direct consequence for these docs: they describe what compiles today. Every example in the book is run through the compiler. Where a feature is planned but not yet shipped, it is marked as planned rather than written as if it exists. The guiding rule is that aspirational design must never masquerade as current behaviour.

Forward work is planned as a queue of small, single-purpose increments rather than a fixed version-by-version schedule — a schedule pinned to version numbers on this page is exactly what goes stale the moment an increment ships. The live queues are kept under design/: the active proposal in design/proposals/, and the planning backlogs (bynk-tooling-proposal-queue.md, bynk-refactor-proposal-queue.md). By theme, the current edges are:

  • Language surface. Continuing to round out the service, effect, and standard-library surface — one single-purpose increment at a time. Language/stdlib work and platform-adapter work never share an increment (decision record 0023 in design/decisions/). One possible follow-up to one-line --- text docs (#1888, #2203) is an end-of-line doc for a member, if the doc-above form proves too tall for short records; today a --- after code is three - operators. Record field defaults (#2607) name a follow-up: defaults on a field whose type applies a user generic. An added defaulted field is a compatible service-contract change. A field whose type applies a user generic may now carry a default. The agent schema lock now counts a defaulted field (#2676) or a sum variant (#2691) added inside stored state as additive. The exact Decimal type (#2622) ships without a currency: a bynk.money commons that pairs a Decimal with an ISO 4217 code is planned as a follow-on, along with average over a List[Decimal], Decimal in a Query aggregate and a first-class RoundingMode.
  • Events. Slices 0–2, 3a–3c, and 4 have shipped — event declarations, given Events emission with owner-only enforcement, from Events(E) subscription across contexts on every platform, structural pattern filtering on the subscription header (from Events(E { field: value, .. }), delivery filtering only — no static narrowing of the handler’s parameter), a runtime envelope (on event(e: E, env: EventEnvelope)) enabling the Idempotency-based dedup idiom for effectful subscribers, field defaults on an event’s own fields so an older wire event missing a newer key still deserialises, an optional @schema(N) annotation, the cross-build schema registry (bynk.schema.lock) that computes each event’s version from its build history — auto-bumping on a purely additive shape change, failing the build on anything else, and verifying a declared @schema(N) against the computed value rather than trusting it outright — and via schema(N) version-aware dispatch, filtering delivery by the envelope’s version. See Understand events. Range-valued via schema(...) patterns and via schema(_) (slice 4b, #990, with integer range patterns, #2699) are in. Replay/backfill (split to a separate future track) is the track’s only remaining open work.
  • State migrations. The last of 1.0’s three gates: a deployed agent’s stored state must survive an upgrade. bynk.schema.lock now records each agent’s stored shape and a build refuses a change deployed data cannot be read through (slice S0), and every stored record carries its schema version, so a rollback faults instead of misreading newer data (S1). Declared migrate steps carry a stored record from an old version to the current shape (S2), and an agent class can be renamed or removed by declaration (S3). bynk migrate shows where each class stands and sweeps deployed instances, so old steps can be retired (S4). The track is complete and the gate is met: its live checks on Cloudflare are recorded on #2188.
  • Constrained generics. Shipped. A type parameter may carry a declared bound, and the closed constraint set is Eq, Ord, Key and Codable (fn same[T: Eq](a: T, b: T), or where A: Eq on a method for its receiver type’s parameter); static methods on generic types shipped with it. Introducing bounds was a breaking change with a machine-applicable fix; see Generics and bounds. Not currently planned: Codable in capability operation return types (#2791) and composite keys for an agent’s store Map, Set and Cache (#2788); both issues are closed and would be reopened by a new need. A Show bound was considered and not adopted.
  • Editor tooling. Deepening the bynk-lsp experience — completion, navigation, and diagnostics — and the VS Code extension that surfaces it. Its model views (sequence diagram, documentation, architecture map, wire contract) are now live: they refresh on edit, follow the cursor, and survive a reload. The extension runs in vscode.dev and github.dev from the WebAssembly compiler, with project-wide diagnostics, hover and completion (#2102). Full bynk-lsp on WebAssembly (navigation, rename, references) is a later follow-up.
  • Packaging. In progress: path, git and registry dependencies have shipped. A project can name itself as a package ([package]), another project can depend on it by path, git or version and reach its units as <alias>.<unit>, an organisation can run a private registry and take publishes over HTTP (bynk publish), bynk.lock pins every dependency to a checksum, and a workspace runs bynk check, fmt and test across its members. A dependency’s npm packages enter a build only once the project approves them. Next: the hosted first-party registry (#843).
  • Concurrent effects. Shipped: a par block issues independent effects together and waits for all of them, raising the first fault in source order. parTraverse, parTraverseAll and parTraverseTry now wait for every element before they raise, the same way (#2662). A Result bound in the block is unwrapped with ? after it, in source order. e.within(d) now bounds how long an effect may take, and tests drive it on virtual time (#2683); it is for service handlers, and does not cancel the work it gives up on. a.race(b) takes whichever of two effects succeeds first and hands the other to waitUntil to finish, so it suits idempotent reads (#2711, #2615). Cancelling the work an effect gives up on is a non-goal of this track.
  • Distribution. Publishing the compiler, grammar, and extension through their registries as the project approaches a public 1.0.

The larger capabilities that are designed but intentionally held back are listed next.

Some capabilities are designed but intentionally deferred, not missing — they are scheduled for later increments, none yet shipped:

  • Sagas — coordinating multi-step workflows across contexts. These come after 1.0, as an additive minor, and are tracked in #3185; Cloudflare Workflows is a candidate substrate.
  • Event replay — re-delivering past events to a subscriber that joins late or recovers, with ordering across concurrent publishes.

Storage kinds, once on this list, have shipped: an agent’s store fields are Cell, Map, Set, Cache or Log (see Agents).

“Deferred, not missing” matters because it shapes how you read the rest of the book. Their absence is a roadmap decision, not an oversight; when they land, they will arrive as specified increments with fixtures and docs, exactly like every feature before them.

While Bynk is pre-1.0, increments may change behaviour. The releases record what changed in each increment, one page per release, and Upgrading notes breaking changes. Full multi-version documentation is itself deferred until the run-up to 1.0, when stability makes it worthwhile; until then the book tracks a single current version.