v0.120.0
Released on 3 July 2026 as v0.120.0, with the increments from v0.112.0 to v0.120.0. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.120.0 | The testing track is complete and retired. The milestone marking the whole theme done — one predicate surface over the subject ladder value → domain → call → snapshot → step → history, sourced by supply-or-generation, checked at one of three checkpoints (commit boundary / dev call site / test runner), run at one of three tiers (unit/integration/system) — realising the thesis the agent-invariant model already stated: “invariants are the contract half of validation; tests are the behaviour half.” All eight landings shipped (v0.112–v0.119): expect + suite/case with structural failure reporting (v0.112), structural test-ness + flat [paths] (v0.113), property/for all with Val[T] replacing Mock[T] (v0.114), function contracts requires/ensures (v0.115), step invariants transition (v0.116), the observation surface expect Cap.op called … + trace (v0.117), the tier dial as unit | integration | system + per-seam provides (v0.118), and history properties for all run: History[Agent], the visionary tail (v0.119). The track doc (design/tracks/testing.md) is retired — its decisions live on in ADRs 0144–0155 and the spec-in-place (spec/syntactic-grammar.md + static-semantics.md, reference/testing.md + agent-invariants.md, with guides/testing/philosophy.md the keystone). Deferred follow-ons (none blocking the theme): multi-agent protocol properties (the history rung is single-agent only), the universal-emission guarantee (still without a home), a declaration-positional enum Ord for ordered-status transitions, and whether example earns its own keyword. No language/compiler change in this release; it consolidates and marks the theme. |
| v0.119.0 | History properties — for all run: History[Agent] (language/test-runtime; testing track slice 7, ADR 0155). The top rung of the subject ladder: a property whose generated subject is a run of an agent. The runner generates a bounded, seeded sequence of the agent’s handler calls, drives them through the real handlers from the agent’s initial state, and binds run — an ordinary List[Step] — for the predicate to judge. Each Step carries .call (a sum over the agent’s handlers, matched with is), .accepted (whether the handler committed vs. an invariant/transition refusal), and .old/.new (the committed state pair). Assertions reuse the List surface — “always” is run.all(...), “eventually” run.any(...), “before” a prefix check via run.upTo(step) — so there is no temporal vocabulary and no matcher library (ADR 0144); unbounded liveness is deliberately inexpressible (a history is a runner sample over bounded runs, not a proof). Behaviour is generated by driving sequences, not fabricating states — a valid state need not be reachable (DECISION P) — so every reached state is one a handler actually produced. History[Agent] is agent-only (bynk.history.not_an_agent) and generative-only, legal only in for all position (bynk.history.outside_property); the agent must be drivable (bynk.history.not_generable); a history that restates a declared invariant/transition is flagged (bynk.history.restates_invariant). Carries no as — in-process on the flake-free tier (ADR 0153); observation and provides doubles compose inside a driven run (ADR 0152). Seeded and length-bounded, shrinking the sequence (re-driving after each reduction so the counterexample stays reachable) then its arguments, with a --seed reproduce line. The driver is a test-only export on the agent module, stripped from deploy builds; single-agent histories now, multi-agent protocols a named follow-on. Additive — no rename or removal. ADR 0155. |
| v0.118.0 | The tier dial (as unit | integration | system) and per-seam stub (provides until v0.159); mocks/suite integration/wires retired (language/test-runtime; testing track slice 6, ADRs 0153 + 0154). A test declares how much of the real world runs with an as <tier> clause on the case (and suite) header — unit (the default, elided; collaborators you control seam by seam), integration (real collaborators within one context, no wire), system (contexts wired as the Workers they deploy as, across the real serialise → JSON → deserialise edge). A tier is one body promoted, not a distinct kind of test: promotion changes only the header (case stub > suite stub > tier default), the body is byte-for-byte identical, and the agent-state lifecycle is fixed across tiers. as on the suite sets a default the case overrides (case wins). Tiers are case-only (a property has no tier — bynk.tier.property_has_tier); system participants are inferred from the unit’s transitive consumes graph (no wires) and must span ≥ 2 contexts (bynk.tier.system_needs_wire). A per-seam stub Cap.method(<args>) returns <value> | fails clause overrides one collaborator method’s provision — an explicit call pattern (the one predicate surface: _, literals, is; first match wins) on the left, a value or fails, never a computed body, on the right; a sequenced returns each [<outcome>, …] supplies one outcome per call with last-outcome-repeat exhaustion. Capability-only; overriding a non-consumed capability is bynk.stub.not_a_seam, an unknown op bynk.stub.unknown_op, an ill-typed RHS bynk.stub.rhs_type, a malformed sequence bynk.stub.bad_sequence. This retires mocks (the re-implementation block), the suite integration "…" { wires … } form, and wires — folding integration into suite … as system — and the bynk.mock.* / bynk.integration.* diagnostic families. Together with Mock[T] → Val[T] (v0.114), the word “mock” is gone from the language. Test-build-only via the ADR-0147 strip. ADRs 0153, 0154. |
| v0.117.0 | Observation surface — expect Cap.op called … (language/test-runtime; testing track slice 5, ADR 0152). Inside a case, observe a consumed capability’s calls: a thin sugar on expect over a Cap.op subject — called / never called / called once / called <n> times / called … with <pred> / A.op before B.op — plus a trace(Cap.op) escape hatch that yields the recorded calls as an ordinary List of per-op records (asserted with length()/all/any/indexing). Calls are recorded automatically at the injected seam in the test build, so a pure-observation case needs no mocks or setup; the sugar and trace read one log and cannot disagree. A with <pred> is the same predicate surface over the operation’s parameters, in scope by name (with msg == "…"); it must be pure Bool (bynk.observe.with_not_bool / impure_with). Observing a non-capability is bynk.observe.not_a_seam, an unknown op bynk.observe.unknown_op, an observation or trace outside a case bynk.observe.outside_case / trace_outside_test. The sugar words are contextual (ordinary identifiers elsewhere); trace is a test-only builtin. Recording is emitted only under bynkc test and stripped from the deploy build, so a module without observation emits byte-for-byte unchanged and production carries no cost (ADR 0150). Additive — no rename or removal. ADR 0152. |
| v0.116.0 | Step invariants — transition (language/compiler; testing track slice 4, ADR 0151). The invariant subject widens from a single committed state to the move between two. Beside its snapshot invariants, an agent may declare transition <name>: <pred over old/new>, where old is the last committed state and new the state the current commit would persist — each the agent’s state record (old.status, new.balance). The predicate is the same predicate surface as an invariant/case/property/ensures — pure Bool with implies/is/operators/pure methods, no new grammar — and old/new are contextual (special only inside a transition; ordinary identifiers elsewhere, so existing code naming a value old/new still parses). A non-Bool predicate is bynk.transition.not_bool, an impure one bynk.transition.impure_predicate, a duplicate name bynk.transition.duplicate_name, a cross-agent reference bynk.transition.cross_agent_reference, and a predicate mentioning neither old nor new bynk.transition.no_step_reference (it is a snapshot claim — use invariant). Checked at one point — the commit boundary, in the generated commitState beside the snapshot invariants, from the second commit onward: the genesis commit (an agent’s first) has no old and is skipped; a violation throws the same InvariantViolation-family fault before the write, so the offending commit never persists and the check fires at every test tier for free. No runner attack (unlike a contract’s ensures, DECISION D/J): a fabricated agent state is valid but not necessarily reachable, so behavioural generation over transitions is a runner-driven handler-sequence concern, not value fabrication (a later slice). Ships with is/implies/==/!= (and ordering on numeric/temporal fields); an ordered enum transition (new.status >= old.status) needs a declaration-positional enum Ord, a named prerequisite (DECISION O). Additive — no rename or removal; emission is tsc-clean and strips clean. ADR 0151. |
| v0.115.0 | Function contracts — requires / ensures (language/compiler; testing track slice 3). A pure fn may carry named contract clauses between its return type and body: requires <name>: <pred> (a precondition over the parameters) and ensures <name>: <pred> (a postcondition over the parameters and result, the return value — the awaited element for an Effect). Each predicate is the same predicate surface as a case/property/invariant — pure Bool, no new grammar. result is contextual (special only inside an ensures; an ordinary identifier elsewhere), and referencing it in a requires is bynk.contract.result_in_requires; an impure predicate is bynk.contract.impure_predicate, a non-Bool one bynk.contract.not_bool, and a duplicate clause name bynk.contract.duplicate_name. A contract is checked at two points, for free: (1) a dev/test call-site guard checks each requires on entry and each ensures on exit at every call, throwing a failure that names the clause and the offending arguments/result — stripped from the deploy build (bynkc compile), so contracts add no production cost or behaviour (DECISION J: per-build-profile); (2) the runner attack — for every contracted function reachable from a test target, the runner generates arguments over the parameter domains (the v0.114 engine — boundary-inclusive, seeded, shrinking), filters them by the requires (like a for all … where), calls the function, and checks the ensures, reporting a shrunk counterexample with the same reproduce line a property gives. A claim about one result belongs in ensures (checked everywhere, generated for free); a property earns its keep only when the claim is relational or spans calls. A case/property that merely restates a contract is flagged bynk.contract.restated_by_test (a conservative, syntactic check). ADR 0150. |
| v0.114.0 | property / for all — generative tests, and Val[T] replaces Mock[T] (language/compiler; testing track slice 2). A property is the generative sibling of case, legal in the same suite: for all x: T binds x to a generated inhabitant of T (comma-separated for several), an optional where <pred> (a pure Bool, bynk.property.where_not_bool) filters the generated tuples, and the body is one or more expects — the same predicate surface as a case/invariant/ensures, no new assertion grammar. Generation draws from a type’s refinement domain and includes boundary values (Int Positive → 1/small positives/boundary; InRange(a,b) → a, b, interior; String MinLength(k)/Length(k) → at/above length; sum → each variant; record → each field; opaque → over the base). A type must be refinement-generable: a String where Matches(re) has no generator and must be pinned (bynk.val.needs_pin), and an agent cannot be generated (bynk.val.agent_not_generable) — behavioural agent testing is a later slice. A property that merely re-checks a refinement its type already guarantees is flagged bynk.property.restates_refinement (a conservative, syntactic check). On failure a property reports the case count, the run’s root seed, and a shrunk counterexample with a copy-paste reproduce line; the new bynkc test --seed <hex> flag threads the root seed so a run reproduces byte-for-byte (without it, each run draws a fresh seed, printed only on failure). Mock[T] is retired and replaced by Val[T] — a straight rename of the value fabricator (Val[T] fabricates a valid inhabitant, Val[T](v) pins one, refinement-checked), with its diagnostics renamed bynk.mock.* → bynk.val.* (outside_test, unknown_type, needs_pin, pin_not_literal, literal_violates, arity, pin_unsupported, unsupported_kind). The mocks collaborator block is unchanged and keeps its bynk.mock.* codes (unknown_target, duplicate_target, signature_mismatch, in_commons_test). |
| v0.113.0 | Structural test-ness — a suite is legal in any file, stripped from the build; flat [paths] (compiler/tooling; ADR 0147, testing track slice 1b). Test-ness becomes a property of the suite declaration, not of a file’s name or directory — the honest extension of ADR 0144 (the language already gates expect at the case block, not the path). A .bynk file may hold more than one top-level unit: an atomic file with commons/context and a suite together — the shareable, single-file, in-browser-playground case. The parser returns all top-level units per file and the project model partitions declarations (not files) by kind, so the source units flow to the build and the suites to bynkc test only. The build strips test-only declarations: bynkc compile skips every suite — never type-checked for the build, never emitted into the deployable — while bynkc test compiles and runs them; discovery scans the whole source tree for suites, not a designated folder. No .test.bynk marker and no path-identity for a suite — it names its target and is legal anywhere; bynk.project.inconsistent_test_path is retired (source units keep inconsistent_commons_name). [paths] src/tests → a flat include/exclude: include (trees to compile) defaults to the conventional roots that exist (src, and tests when present) or the project root itself — so a conventional and a flat project both need no config — and exclude (plus the tool’s out/node_modules/dot-directories) is pruned from discovery. A consequence to accept: placement is inert in both directions (a context under tests/ emits; a suite under src/ is stripped) — enforce the old separation with a lint, not the build. The formatter formats every unit in a multi-unit file. Migration is at leisure: old .test.bynk files are ordinary .bynk, and legacy [paths] src/tests keys are ignored, so conventional projects build unchanged. Named follow-ons: multi-unit editor (LSP) awareness of atomic files; arbitrary N-root monorepo include. |
| v0.112.0 | expect + suite/case — one predicate surface for tests (language/compiler; ADRs 0145, 0146, cites 0144; testing track slice 1a). The first slice of the testing track. assert becomes expect (DECISION B, ADR 0145) and the braced test { … } container becomes suite/case (DECISION Q, ADR 0146) — a straight rename of the keywords, not a change of meaning: a test file is a suite naming its target unit, holding named cases, and a case body checks predicates with expect. The point is one predicate surface (ADR 0144): an expect is the same pure Bool predicate as an agent invariant or a function ensures — is, implies, the operators, pure methods — so moving from writing code to verifying it introduces no second assertion grammar and no matcher library; expect r is Ok(_) reuses is. expect is valid only inside a case (bynk.expect.outside_case) and must be Bool (bynk.expect.not_bool), the same fail-closed check invariant/ensures get. Structural failure reporting: when the predicate is a top-level comparison (==, !=, <, <=, >, >=), a failed expect renders the predicate and its expected-vs-actual operands (expected: total == 900 / actual: 950 == 900) — because there is one predicate shape to decompose, the runner double-evaluates the operands (sound, predicates are pure per ADR 0144) and shows both sides via __bynkShow; the multi-line detail rides the existing --format json message field unchanged. The diagnostic family is normalised onto bynk.expect.* / bynk.suite.* (assert/test codes retired). Clean-slate rename across the whole toolchain — lexer/parser/AST, checker, emitter, formatter, tree-sitter grammar, and the VS Code TextMate keywords — with the assert→expect and test→suite/case codemod applied to every fixture; expect was already reserved (v0.7). No new runtime capability; suite integration/wires and mocks/Mock[T] are unchanged this slice (the tier dial and provides land later). Emission is tsc-clean and strips clean. |