Skip to content
Playground(another site)

v0.290.0

Released on 4 September 2026 as v0.290.0, with the increments from v0.246.0 to v0.290.0. See Upgrading for what to change when you move to it.

VersionHighlights
v0.290.0The eight-phase compiler trajectory to the greenfield architecture (bynk-greenfield-compiler.md) is complete — every construct that compiled at v0.245.0 still compiles, rebuilt on the new architecture with no dropped capability.
v0.289.74Adds the eight missing crate READMEs (bynk-ts, bynk-ir, bynk-lower, bynk-project, bynk-driver, bynk-testkit, tree-sitter-bynk, xtask), following the established published/unpublished templates; bynk-driver’s Cargo.toml gains keywords/categories, the one publishable crate that was missing them (post-trajectory crate hygiene track, S1 of #1533)
v0.289.73bynk_ts::verbatim_violations is wired into the e2e/emit test harness (bynkc/tests/tsc_verify.rs), run over every Verbatim/VerbatimExpr leaf a new TsProgram::verbatim_content walker finds by walking each compiled fixture’s tree — not trusted by construction. The lint itself gained block-comment and string-literal awareness (it was matching namespace inside a message string). Wiring the check up front surfaced two real (... as any) violations previously hidden inside opaque Verbatim text — fixed at their source: bynk-emit/runtime/src/boundary.ts (re-bundled into runtime.ts) and bynk-check/src/firstparty/bindings/bynk-{node,cloudflare}.ts (#1538)
v0.289.72bynk-ts’s TsExpr::Ident is a real identifier now, not an untagged Verbatim-shaped escape hatch — 4 bynk-emit call sites that smuggled a this.<method> member access or a !(<pred>) unary through it build the matching real node instead, and 9 more route through a new tagged TsExpr::VerbatimExpr, visible to verbatim_origins/verbatim_sites (#1539)
v0.289.71bynk-testkit (a publish = false dev-dependency of bynk/bynkc/bynk-lsp) no longer carries a fake version in the workspace dependency table — that combination made cargo publish fail unconditionally for all three, since a versioned dependency must resolve against crates.io even with --no-verify (#1560)
v0.289.70bynk-project (a real dependency of bynk-check/bynk-emit/bynk-ide/bynk-lower since its 30 July 2026 extraction) is now published by both release workflows — it was missing from both hardcoded crate lists, which would have broken the next real release (#1559)
v0.289.69xtask’s fs_below_driver/ts_writes gated probes now fail loud in CI if a NAMED_FS_EXCEPTIONS/TS_WRITES_EXCLUDED_FILES entry outlives the file it names, instead of silently reading a vacuous, falsely-healthy count (#1587)
v0.289.68xtask’s fs_below_driver/ts_writes probes no longer carry exception entries for files P4.0/P7.5 already moved out of bynk-emit (#1561)
v0.289.67Removed bynk-emit’s unreachable analyse_project/analyse_project_with pub API and bynk-check’s dev-dependency on bynk-emit
v0.289.66A Span with no file identity now carries FileId::UNKNOWN, not the id of the first interned file
v0.289.65Phase 8’s definition- and project-level query layer (bynk-check’s queries.rs and project_graph.rs, no production caller) is deleted; UnitSignature and its stability proof stay, and incremental_query_types now gates that the deleted levels stay deleted (#1537)
v0.289.64The IR cutover track retires: the expression-IR refusal is recorded in the greenfield reference’s Part 15.1 with a trigger, and a gated unconsumed_ir_items probe ratchets bynk-ir/bynk-lower’s unconsumed public surface at 0
v0.289.63bynk-ir: the 22 IR types that lost their last consumer with the expression lowering (IrExpr, IrItem, IrHandler, CommitShape, patterns, policy, …) are deleted; the crate doc now describes the declaration-level vocabulary that remains (IR cutover track, Slice D2)
v0.289.62bynk-lower: the unconsumed expression/statement/body/item lowering is deleted (48 functions, all six todo!()s, 121 tests), leaving the AST-analysis helpers bynk-emit consumes (IR cutover track, Slice D1)
v0.289.61bynk-lower: the events-service subscriber-shape helper reads protocol and handler shape directly instead of lowering and discarding every handler body (IR cutover track, Slice D0)
v0.289.60Slice 3.1 of the IR cutover (#1542) — bynk-lower’s two live todo!() gaps close: a bare free-function-value reference now lowers to a new IrExprKind::FnRef, and the previously-suspected missing-Callee case turned out to already be unreachable once traced against the real checker pipeline
v0.289.59Part 15.1’s refusal register named three residuals that were flagged in prose but never given a durable tracking home: an unresolved effect-inference contradiction between design notes §15 and type-system spec §2.8.4, a diagnostic-error-enum trigger whose registry-drift evidence is unmeasured since a July finding, and a tuples contradiction spanning ADR 0120, the type-system spec and design notes §11. Now tracked as issues (#1529, #1531, #1530) and cross-linked from design/bynk-greenfield-compiler.md, alongside a fourth *Tracked:* line the same register was missing for rowan’s pre-existing issue (#1524, filed by #1528).
v0.289.58Slice 1 of the IR cutover (#1542) — emit_worker_compose/the Worker entry now read IrHandlerKind::Http’s own method/path instead of re-deriving them from the AST, closing four build-then-discard sites
v0.289.57Phase 8’s four deferred, no-trigger forward references — R3.15’s incremental scheduler decision, R10.5’s bynk-driver consolidation, a lossless CST (rowan), and an emit-side UnitSignature-equivalent for Artefacts — are now tracked as issues (#1523, #1525, #1524, #1526) rather than left to prose alone in design/archive/retired-tracks.md and design/bynk-compiler-trajectory.md. Each issue is filed marked ‘not yet triggered’ per R15.1’s own discipline — a durable home for the reference, not new scope.
v0.289.56Phase 8 (incrementality.md, spine #1507) retires — incremental_query_types reads satisfied: UnitSignature, ProjectGraph, Body/TypeOf all real in bynk-check, the shared file-level cache migrated, P8.2’s stability test present. The retirement PR itself: deletes the track doc, archives its closing summary, re-points every doc that named it, closes the spine issue — and, uniquely, closes design/bynk-compiler-trajectory.md itself, reaching its own §1 endpoint after all eight phases.
v0.289.55bynk-check gains a real DefId identity and Body(DefId)/TypeOf(DefId) query functions (R3.13’s definition-level row) — built and tested, not yet wired into any production check path (P8.5).
v0.289.54On-keystroke diagnostics no longer re-lex/re-parse every first-party file on every request — bynk-project gains a durable FileId interning table and one shared, content-keyed parse cache (P8.4), replacing the IDE-local PROJECT_UNIT_CACHE completion alone used to benefit from.
v0.289.53Internal — a typed ProjectGraph (P8.3) lands in bynk-check, populated from resolved discovery/uses/consumes facts; data-model half only, not yet wired into cycle detection or the compose-root generator.
v0.289.52Internal — a property test proves UnitSignature (P8.1) is stable under a body-only edit (R3.14), phase 8’s own firewall.
v0.289.51Internal — UnitId/UnitSignature land in bynk-check (P8.1, phase 8), a body-free, canonically-rendered per-unit signature nothing calls yet.
v0.289.50P8.0 (#1510) — cargo xtask greenfield-status gains incremental_query_types (gated, 14th) and keystroke_latency (trend, 5th) probes for phase 8’s completion criterion (design/tracks/incrementality.md §5); both read absent/not-measured today, as no P8.x slice has landed yet
v0.289.49Settle phase 8 of the compiler trajectory (design/tracks/incrementality.md) — UnitSignature is a new type wrapping ADR 0200’s combined_types_for unchanged plus fresh fn/handler/storage/capability-set projections, compared through a canonical span/trivia-erased rendering rather than raw AST values; the file level gets one shared Tokens(FileId)/Ast(FileId) cache in bynk-project (not a bynk-ide-local patch — the crate graph rules that out); this track builds no memo table; and its own gated probe is a one-time existence check (query types exist, the cache is wired in, the stability test exists) rather than a shrinking count or a check that a test passes
v0.289.48Phase 7 (the-typescript-tree.md, spine #1293) retires — all four gated probes read their own argued floor: ts_any 26, verbatim_sites 2, ts_writes 809, verbatim_origins 1. The retirement PR itself: deletes the track doc, archives its closing summary, re-points every doc that named it, closes the spine issue.
v0.289.47Resolves #1502 (argue verbatim_origins’s floor at retirement, named file-by-file). The argued floor is 1, matching the live probe exactly: of VerbatimOrigin’s four variants (Contracts/Secrets/RuntimeUse/NotYetConverted), only NotYetConverted has a real production construction site anywhere in bynk-emit/src — project.rs:2480/:2509, the same two sites verbatim_sites’ own floor of 2 already names permanent (ADR 0399/#1486). Contracts/Secrets/RuntimeUse are dead in production, consistent with §9’s own “Risks” finding; removing them stays separate, later cleanup, not this issue’s scope. No code change.
v0.289.46Resolves #1501 (argue ts_writes’s final floor after #1486, reconcile design/tracks/the-typescript-tree.md §6 with #1481–#1486’s own landings). All 809 live ts_writes sites are now accounted for across three buckets — 614 permanent and individually argued (lower.rs’s 371 under ADR 0391, the four Decision-C hand-written class wrappers emit_provider/emit_service/emit_agent/emit_stub_class at 126, emit_contract_guarded_body’s 8 message-text-and-source-map-splice-entangled sites, workers_entry.rs’s and tests_emit.rs’s already-#1475-audited 106, __eventsDispatch’s 3), 190 a newly-named permanent structural category (identifier/type-name/message-text String construction feeding an already-real bynk_ts node’s leaf field, the same representational choice P7.9 already made for TsType::Named’s pre-rendered text), and 5 real, small, tractable sites named but not scheduled. §6 gains six landing entries for #1481–#1486 (PRs #1494–#1500), closing the gap left after #1480’s own row. No code change.
v0.289.45Resolves #1486 (the verbatim_sites capstone, closing the the-typescript-tree track’s own emitter::emit_project/emit_test_module/emit_integration_module gap). All three orchestrator functions now return a real bynk_ts::TsProgram/Vec<TsStmt>, printed once at the write boundary via bynk_ts::print/the new bynk_ts::print_multi_source (which builds the source map directly from each statement’s own span/nested_map, rather than the function hand-driving a SourceMapBuilder through print_stmt_and_merge), instead of returning a pre-rendered String wrapped in one opaque TsStmt::verbatim. The three real call sites (project.rs’s emit_unit, project/tests_emit.rs’s process_tests/process_integration_tests) drop their own Verbatim-wrapping and consume the tree directly. verbatim_sites (gated probe) drops from 5 to its argued floor of 2 (project.rs:2478/:2507 — an adapter binding’s own foreign, user-authored TS content and the committed runtime.ts build artifact, both already argued permanent by ADR 0399, unchanged by this capstone); ts_writes drops 817 → 808. Fixes a real pre-existing byte-for-byte regression this same conversion uncovered (919_json_decode_named_record_in_test_case/920_json_encode_only_named_record_in_test_case) — emit_test_module’s own json-codec-closure helpers had already been adapted (in an earlier slice) to rely on the printer’s automatic top-level blank-line policy, but the still-String-based caller printed them through the pre-automatic-policy extend_printed_at path, silently dropping one blank line the real fixtures expect. Also retires emitter::inject_runtime_imports/missing_bindings (the post-print text-splice mechanism for folding a codec group’s extra runtime-import bindings into an already-rendered import line), now dead — both converted callers build the runtime-import statement’s own names: Vec<String> directly (deferred to the end of each function, once RuntimeUse is fully populated, mirroring emit_project’s own prior write_header reordering) through a Vec-level dedup helper (project/tests_emit.rs’s own append_missing_bindings, the same shape emitter/workers.rs/emitter/workers_entry.rs already carry their own copies of), rather than splicing into text.
v0.289.44Part of #1486 (the verbatim_sites capstone) — bynk_ts::TsStmt gains a new pub no_blank_before: bool field (default false, threaded through every existing constructor, no behaviour change for any current caller — the full workspace test suite passes unchanged). crate::printer::print’s own top-level loop, which inserts exactly one blank line between every pair of adjacent top-level statements (its own “readability policy”), now also treats next.no_blank_before as an exemption alongside the existing import/comment/ReExportAll/Verbatim cases. Found necessary while planning #1486: converting emit_project/emit_test_module/emit_integration_module to return a real, unwrapped TsProgram (dropping their callers’ single opaque TsStmt::verbatim wrap) exposes every constituent callee’s own internal multi-statement spacing directly to this automatic policy for the first time — and emit_agent’s own already-shipped registry-then-zero-factory pairing (#1482, predating this field) genuinely needs zero blank lines between two adjacent real statements, a shape the printer’s own uniform policy cannot express without a per-statement escape hatch. Confirmed empirically (a temporary test proved the printer inserts an unwanted blank between a const and a function with no exemption available) before choosing this fix over the alternatives (accepting bounded fixture format drift, or gaming the verbatim_sites probe by tagging permanent multi-statement content Raw instead of exposing it as a real tree) — this track’s own verbatim_sites probe exists specifically to catch exactly that kind of shortcut. A new direct unit test (no_blank_before_suppresses_exactly_the_next_statements_own_blank) pins the mechanism against a minimal repro of the real shape. This field is not yet consumed by any bynk-emit call site — that begins with #1486’s own implementation, next.
v0.289.43Resolves #1485 — emit_system_http_support’s own HS256 JWT-signer block (__bynkNow/__b64url/__bytesB64url/__bynkSignHs256) moves from a raw Rust multi-line string literal (with \-continuations and no justifying comment) to a committed emitter/test_runtime/jwt_signer.ts file, spliced in via include_str! through a new jwt_signer_runtime_helpers() function — the same treatment expectation_runtime_helpers/stub_runtime_helpers (and the other test_runtime/*.ts files) already get. Found by #1472’s own callee-cascade read as a genuinely new gap: unlike every other permanent site in this arc, this one had no in-place argument for staying hand-written text before this change. The .ts file’s own content was extracted byte-for-byte from a real fixture’s expected output (bynkc/tests/fixtures/positive/379_system_http_boundary) rather than hand-transcribed from the escaped Rust literal, to guarantee fidelity. emit_system_http_support still carries the signer as one opaque TsStmt::raw (unchanged) — only its own source moved. Verified: cargo test -p bynk-emit (187/187) and the full cargo test --workspace (all green, byte-identical fixture output via the tsc_verify corpus). ts_writes/verbatim_sites/verbatim_origins (gated probes) unchanged — greenfield-status needed no regeneration.
v0.289.42Resolves #1484 — the five near-identical async function {name}() { ... } test-generation wrappers in bynk-emit/src/project/tests_emit.rs (emit_test_case_function, emit_test_property_function, emit_test_history_property_function, emit_contract_attack_function, and emit_integration_module’s own inline case wrapper) now build their outer function declaration as one real bynk_ts::TsStmt via a single shared construction, async_test_runner_fn (a real TsDecl::Function: no generics, no params, no return-type annotation, never exported — exactly matching the pre-existing hand-templated format!("async function {name}() {{\n") shape), instead of five separate hand-templated wrappers. Each function’s own inner content (a try/catch, or a flat statement sequence ending in a return) stays one opaque TsStmt::raw — matching emit_free_fn’s own established TsDecl::Function + Raw-body precedent (#1480) — not decomposed further: the interior already mixes real node prints (bynk_ts::print_stmt calls already scattered through each caller) with genuinely-opaque lowered bodies (lower.rs’s permanent exclusion, ADR 0391) at this track’s own established per-file indentation convention (statements directly inside these generated functions render at a fixed 4-space depth regardless of real AST nesting depth — confirmed by reading the printer’s own render_block_stmts/TsDecl::Function arms directly, not assumed); decomposing the wrapper’s interior into a fully-real tree per site would risk silently changing that baked-in indentation for 3 of the 5 sites (property/history-property/contract-attack have no try/catch, so their direct-body statements would render one level shallower than today’s actual bytes under the printer’s own normal nesting math). emit_test_case_function’s own case_smb (the one real, still-merged per-case source map) and emit_integration_module’s own inline case (which now builds a local per-case buffer/map instead of writing straight into the module’s own out/module_smb) carry a real nested_map, merged automatically by the printer per #1477; the other three carry none, matching their own pre-existing “deliberate scope cut” (property/history/contract-attack bodies are collaborator-free predicate scaffolding, already unmapped before this change). emit_contract_attack_function returns Option<TsStmt> (None for its defensive, in-practice-unreachable non-Free-fn branch — its own caller already filters to FnName::Free before calling); every other converted function returns a bare TsStmt. A review-caught-during-implementation correctness note: TsDecl::Function’s own printer arm adds exactly one trailing \n after its closing brace (render_block_stmts itself ends with a bare }, no newline) — NOT an extra blank-line separator as a first draft of this conversion assumed; each caller still needs its own explicit blank-line push between generated functions, restored at all four call sites after a real tsc_verify/e2e-fixture failure caught the regression directly (missing blank lines between generated test-runner functions), not left to be caught by golden-diff alone. Review of #1497 (before merge) caught two further items, both addressed: (1) the property/history-property/contract-attack call sites printed their returned TsStmt through a plain bynk_ts::print_stmt, which silently drops a nested_map — a latent footgun given async_test_runner_fn’s own nested_map parameter, even though all three always pass None today; both sites now route through bynk_ts::print_stmt_and_merge uniformly, matching the other two call sites, closing the class of mistake rather than just the current instance. (2) emit_integration_module’s own inline case wrapper changed its source-map wiring shape, not just its position (staging each case’s body map in a local case_smb under a placeholder source id before the printer’s own nested_map merge re-tags it to the real per-case src_id at print time) — nothing in the suite pinned that the re-tag still lands each case under its own .bynk file, so a new test, system_suite_case_maps_to_its_own_bynk_source (bynkc/tests/source_map_bodies.rs), pins it directly: a two-file system suite (two participant contexts, one case per file, identical line numbers in both files so a same-line-wrong-file regression can’t slip past), asserting each case’s own call/expect lines resolve to its own source id. Verified: cargo test -p bynk-emit (187/187), cargo test -p bynkc --test source_map_bodies (6/6, including the new test), and the full cargo test --workspace (all green, byte-identical fixture output via the tsc_verify corpus and the bynkc e2e positive-fixtures suite). ts_writes (gated probe) moves 822 → 817 — the five retired format!("async function {name}() {{\n") call sites.
v0.289.41Resolves #1483 — emit_stub_class (bynk-emit/src/project/tests_emit.rs) now returns one real bynk_ts::TsStmt instead of a plain String. The class wrapper (header/fields) stays hand-written text — Decision C, the same emit_provider precedent (#1480) this function’s own in-place comment already cited — wrapped as one TsStmt::raw with no nested_map: this function has no LowerCtx/source-map involvement anywhere in its own construction (lower_stub_value_block/emit_stub_rhs build already-formed text, not through a body-local SourceMapBuilder), unlike emit_provider/emit_service/emit_agent’s own per-handler bodies, so there is nothing to merge. Each method still prints as its own real TsClassMethod fragment via bynk_ts::print_class_method, spliced directly into the wrapper exactly as before — no internal construction logic changed. The one call site (emit_test_module) now prints the returned node through bynk_ts::print_stmt instead of pushing the raw String directly, byte-identical output. Verified: cargo test -p bynk-emit (187/187) and the full cargo test --workspace (all green, byte-identical fixture output via the tsc_verify corpus — both full-corpus runs, ~180s each). ts_writes (gated probe) unchanged — no write!/writeln!/format! call site was retired, only the function’s own return type and its one call site’s plumbing.
v0.289.40Resolves #1482 — emit_agent now returns a real Vec<bynk_ts::TsStmt> (was out: &mut String plus source_map: Option<&RefCell<SourceMapBuilder>>). Per #1462’s own end-to-end audit of emit_agent’s 99 ts_writes sites: the 66 already-argued print-and-splice sites (state interface, registry, zero factory, rehydration gate, construction factory) now push their already-real top-level nodes directly into the returned Vec instead of being printed through the removed out parameter — no internal construction logic changed. Two sites stay genuinely opaque, each captured as its own TsStmt::raw, mirroring emit_provider’s Decision-C precedent (#1480): the DO class (export class {Name} { ... }, emit_agent’s own instance of Decision C, cited in place since #1371) is built into a local buffer/map pair — every internal print-and-splice site inside it (loadState/commitState/the per-handler loop via emit_class_method_and_merge_source_map/the WS-hosted DO methods via emit_ws_do_method/fetch) is unchanged, just now merging into that local map instead of the function’s former external parameters — and wrapped as one TsStmt::raw carrying a class-wide nested_map. The history-driver (__bynkDriveHistory_*, gated on ctx.history_target_agents) is #1386’s own standing permanent-exclusion decision, reconfirmed by #1462’s own correction (test-support only, stripped from deploy, thinnest fixture coverage in the track, its own per-handler discriminated-union algebra deferred to any by design) — genuinely raw hand-templated text with zero bynk_ts/LowerCtx involvement, captured as a second, separate TsStmt::raw with no nested_map (nothing to merge), not decomposed further. Both wraps use TsStmt::raw, not TsStmt::verbatim/VerbatimOrigin — per TsStmtKind::Raw’s own doc, Verbatim is reserved for temporary, not-yet-converted residue the verbatim_sites/verbatim_origins probes track toward zero, and using it for genuinely permanent content (lower.rs’s own exclusion, emit_provider’s own class wrapper, and now these two) would misrepresent it as unfinished work. emit_agent’s one call site in emitter.rs now loops the returned Vec through extend_printed_and_merged (already established by #1480 for emit_free_fn), the same composition emit_service/emit_provider already use. Verified: cargo test -p bynk-emit (187/187) and the full cargo test --workspace (all green, byte-identical fixture output via the tsc_verify corpus — both full-corpus runs, ~180s each). ts_writes (gated probe) moves 826 → 822 — the four retired writeln!(out).unwrap() blank-line calls for the state interface/zero factory/rehydration gate/construction factory, now plain TsStmt::blank pushes instead.
v0.289.39Resolves #1481 — emit_service no longer hand-rolls its own Raw-body print-time-offset recovery by string-matching the printed text’s own tail (the “suppress rather than mis-record” degrade-to-no-merge #1360 finding 3 established); emit_service now returns one bynk_ts::TsStmt (was out: &mut String plus source_map: Option<&RefCell<SourceMapBuilder>>) — the whole export const {name} = { ... }; object literal, built into a local buffer via bynk_ts::print_object_entry_and_merge (#1477’s shared TsObjectEntry::Method merge helper, replacing the per-handler hand-rolled .merge( call this issue named directly) once per handler, carrying an object-wide nested_map that combines every handler’s own body_smb, rebased from body_out-relative to raw_body-relative via shift_checkpoints (the same rebase already used for the subscriber-filter/schema-dispatch prologues) before being set on the handler’s Raw body statement. Its one call site in emit_project() merges this single combined map into the real module map via print_stmt_and_merge, the same composition emit_provider (#1480) already established. Each handler body stays one opaque, correctly-source-mapped Raw node — no further decomposition (ADR 0391). emit_class_method_and_merge_source_map/RawBody are left untouched — still used by emit_agent’s own not-yet-converted call site (#1482). Verified: cargo test -p bynk-emit (187/187), cargo test -p bynkc --test source_map --test source_map_bodies (14/14, including service_handler_body_keeps_its_own_statement_lines_inside_the_events_iife, service_handler_body_maps_per_statement, and service_handler_with_subscriber_and_schema_prologue_maps_per_statement — the tests that directly exercise this code path), and the full cargo test --workspace (all green, byte-identical fixture output via the tsc_verify corpus). ts_writes (gated probe) moves 827 → 826.
v0.289.38Resolves #1480 — emit_free_fn and emit_provider no longer hand-roll their own Raw-body print-time-offset recovery by exact arithmetic (guarded by a debug_assert!); #1477’s bynk_ts::print_stmt_and_merge/print_class_method_and_merge (via the new TsStmt::nested_map field) now recover that offset themselves. emit_free_fn returns Vec<bynk_ts::TsStmt> (an optional doc comment, the function decl with its own body’s nested_map set, a trailing blank) instead of writing into out: &mut String; both call sites (emit()/emit_project()) print through the new extend_printed/extend_printed_and_merged helpers in emitter.rs. emit_provider returns one bynk_ts::TsStmt — the whole class-wrapper text (Decision C, unchanged: still one hand-written, permanently-opaque TsStmt::raw construction per provider declaration, not decomposed further — a real TsDecl::Class would need every method’s own body captured into a local buffer for Raw-embedding anyway, and this class’s own spacing convention already disagrees with TsDecl::Class’s established one) — built into a local buffer, carrying a class-wide nested_map that combines every op method’s own body_smb (each merged in via bynk_ts::print_class_method_and_merge at its own real offset within that local buffer); its one call site in emit_project() merges this single combined map into the real module map via print_stmt_and_merge. emit_class_method_and_merge_source_map/RawBody (the hand-rolled recovery helper #1477 was meant to retire) are left untouched — still used by emit_service/emit_agent’s own not-yet-converted call sites (#1481/#1482). Verified: cargo test -p bynk-emit (187/187), cargo test -p bynkc --test source_map --test source_map_bodies (14/14, including contract_guarded_body_keeps_its_own_statement_lines and provider_op_body_keeps_its_own_statement_lines — the two tests that directly exercise these code paths), and the full cargo test -p bynkc fixture-diff + e2e suite. ts_writes (gated probe) moves 829 → 827 — both from emit_free_fn’s own retired offset-recovery code: its debug_assert! message built via format!, and its final writeln!(out) trailing-blank-line push, now a plain TsStmt::blank in the returned Vec instead.
v0.289.37Resolves #1479 — tests_emit.rs’s own no-body direct callees now build real bynk_ts trees instead of pre-printed String/out: &mut String: emit_ns_destructure (-> Vec<TsStmt>, printed by every caller via a new crate::emitter::extend_printed_at(out, stmts, depth) — extend_printed_at generalizes #1478’s extend_printed with an explicit depth parameter, since this file’s own scaffold-body callees print nested at depth 2, not emitter.rs’s module-level depth 0), emit_test_deps/emit_integration_harness (each returns the one real TsStmt they ever built, was pre-printed String), observation_call_record_types (-> Vec<TsStmt>), the codec-helper glue inside emit_test_module (now calls serialisation::decls_as_stmts[_block] + extend_printed_at instead of serialisation::print_decls[_block]), and emit_system_http_support/sysdrive_driver (SystemHttpSupport.code and sysdrive_driver’s return both go from pre-printed String to real TsStmt(s); the HS256 signer block, #1485’s own separate scope, stays exactly the hand-written text it always was, carried forward as one TsStmt::raw). Converting the codec-helper glue’s call sites removed serialisation::print_decls/print_decls_block’s own last two production callers — deleted both (dead code), fixing the stale intra-doc [\print_decls`]links elsewhere inserialisation.rsthat referenced them.emit_test_module/emit_integration_modulethemselves are **not** converted by this issue, matching its own scope — that's the capstone, #1486, once every direct callee across bothemitter.rs/tests_emit.rshas landed. Byte-identical output verified:cargo test -p bynk-emit(187/187),cargo test -p bynkc(full fixture-diff + e2e suite, includingtsc_verify/bless_positive_fixtures/positive_fixtures). ts_writes(gated probe) unchanged at 829 — every converted call site here was alreadyprint_stmt-based, not format!/write!`-based, so this slice moves construction style, not that particular count.
v0.289.36Resolves #1478 — the 12 “no-body direct callee”s emit_project/emit call at their own top-level signature now build real bynk_ts::TsStmt trees (Vec<bynk_ts::TsStmt>) instead of writing into a shared out: &mut String: write_commons_doc, emit_context_rebrands, emit_cross_context_namespace_imports, emit_project_imports, write_header, emit_capability, emit_type (plus its emit_refined_type/emit_record_type/emit_sum_type sub-dispatchers), emit_messages_bundle, emit_make_surface, emit_boundary_helpers (plus its emit_consumed_context_helpers sub-call), and emit_json_codec_helpers. Two still-String-typed unconverted siblings (emit_context_deps_interface, emit_refined_checks) are bridged the same way earlier slices already established: their output is captured into a local buffer and carried as one bynk_ts::TsStmtKind::Raw statement. A new extend_printed(out, stmts) helper in emitter.rs bridges each converted callee’s Vec<TsStmt> back to the three call sites’ own out: &mut String (emit, emit_project, and emit_project’s per-item loop) that still need String output at the top; serialisation::decls_as_stmts/decls_as_stmts_block (siblings of the existing print_decls/print_decls_block) let the boundary-helpers trio thread their real declarations through without an intermediate print. Byte-identical output verified: cargo test -p bynk-emit (187/187), cargo test -p bynkc --test tsc_verify, cargo test -p bynkc (full fixture-diff + e2e suite, including bless_positive_fixtures/positive_fixtures). ts_writes (gated probe) drops 851 → 829 — 831 from the 12 converted sites no longer writing through format!/write!, then 829 once the review’s own print_decls/print_decls_block collapse (below) dropped their own last two writeln! call sites too. --apply also picked up two unrelated, already-stale trend numbers (keep_in_sync 236 → 235, bynk-ts test_density 58.4% → 59.6%): neither is attributable to this diff (no bynk-ts file is touched here) — the committed table was last regenerated at the #1471 stamp and missed a re-run after #1477 (PR #1488) touched bynk-ts/src, so this PR’s --apply is the first run to pick that drift up alongside its own real ts_writes move.
v0.289.35Resolves #1476 — emit_project’s runtime-import line is now built once, after the per-item body-emission loop populates ctx.runtime_use, with bytes()/icu() folded directly into write_header’s own construction instead of spliced in afterward by inject_runtime_imports. write_header’s own call moves to the end of emit_project; its output is prepended, and the module’s SourceMapBuilder checkpoints (recorded against the item-only buffer) are shifted by the header’s own final length first — the same shift_checkpoints mechanism emit_service’s own prologue insertion already uses. inject_runtime_imports/missing_bindings are not deleted (a real gap in the issue’s own original grounding, found during implementation): project/tests_emit.rs still calls them directly for emit_test_module/emit_integration_module’s own identical post-print splice — filed as its own follow-up, #1489. Byte-identical output verified across the full fixture corpus (tsc_verify, bless_positive_fixtures/positive_fixtures, the full bynkc e2e suite).
v0.289.34Resolves #1477 — bynk_ts::TsStmt gains an optional nested_map: Option<SourceMapBuilder> field, and the printer merges it into the caller’s own module map at the real print-time offset, reachable from three new sibling entry points (print_stmt_and_merge, print_class_method_and_merge, print_object_entry_and_merge) that append into the caller’s own buffer rather than returning a fresh string, so offsets stay correct once spliced anywhere but the very start of it. The check is centralised inside render_stmt itself (review of #1488 caught the first draft only checking a body’s own direct children, silently dropping a nested_map on the statement handed to print/print_stmt_and_merge directly or nested inside a Block/Switch/try/catch), and a source_id threads alongside the map throughout (the same review caught it hardcoded to 0, silently wrong for a multi-source aggregate map). Existing print_stmt/print_class_method/print_object_entry/print are unchanged in behaviour; print’s own top-level loop additionally threads its module map through automatically. No bynk-emit call site converted — bynk-ts only.
v0.289.33Resolves #1475 — reads tests_emit.rs’s 83 and workers_entry.rs’s 34 ts_writes sites end to end, closing Arc F’s own long-standing sampling caveat. workers_entry.rs confirms Arc F’s “all already-argued” claim exactly (no new gap; the unelaborated “small fold-in candidate” is most plausibly a repeated format!("__r_{pname}") re-derivation across 4-5 call sites, named but not scheduled). tests_emit.rs’s 83 breaks down as 51 cheap glue, 17 permanent (10 Decision A, 7 Decision C), 12 already inside #1472’s own wrapper-function finding (confirmed, not just cross-referenced — the wrapper functions sit inside this 83, not on top of it), 2 further new small gaps in destructure_vals (folded into #1484), and 1 probe-only artifact (:592, already documented as an accepted gap by the probe’s own code). Separately: the HS256 JWT-signer block #1472 found is structurally invisible to this probe (no format!/write! in it at all), not “already counted” as this pass’s own first draft claimed — review of #1487 caught the error. Also lands two stale corrections: the track doc’s own description of pred_condition_and_message/inject_runtime_imports (both since resolved, by #1471 and #1472 respectively) had drifted. No code change.
v0.289.32Resolves #1472 (scope the verbatim_sites capstone arc) — enumerates every direct callee of emit_project/emit_test_module/emit_integration_module (15 + ~13 respectively), finds 12 of emit_project’s own 15 already cheap to convert (real-node internally, signature-only), and settles the nested source-map design question #1461 left open: the printer should report the print-time offset of an opaque body blob instead of emit_class_method_and_merge_source_map reverse-engineering it, reusing SourceMapBuilder::merge machinery that already exists. Finds inject_runtime_imports was never actually entangled with that gap — it has its own independent fix (build the runtime-import node after the body loop, once ctx.runtime_use is fully known, order it first). Names 9 new permanent Verbatim sites by callee (emit_provider/emit_agent’s class wrappers, emit_agent’s history-driver, emit_stub_class’s class wrapper, 5 tests_emit.rs include_str! blocks) and 2 genuinely new, previously-unargued conversion candidates (four-plus near-identical test-function wrappers; an HS256 JWT-signer block better suited to include_str! extraction than tree conversion). Proposes an 8-slice sequence, printer extension first. No code change.
v0.289.31Resolves #1471 — pred_condition_and_message’s condition side now builds a real bynk_ts::TsExpr (Binary/Call nodes) instead of format!ing raw JS text, unblocked by two new bynk_ts::TsBinaryOp variants, GreaterThanEq/LessThanEq, at the same precedence tier as GreaterThan/LessThan/InstanceOf/In. Both real callers (emit::emit_pred_check, serialisation::emit_inline_pred_check) now consume the real expression directly, dropping the opaque Ident(cond) wrap; the explicit Paren around it stays unconditionally, matching pre-#1471 output byte-for-byte. msg stays the same opaque, already-escape_ts_string-escaped String it always was. Zero emitted-TypeScript change; ts_writes drops from 860 to 851 as a side effect.
v0.289.30Corrects #1462’s own track-doc claim that emit_agent’s history-driver (__bynkDriveHistory_*) is “a real, tractable, previously-uncounted conversion candidate” — #1386 already decided, before #1462 landed, that this exact function is a deliberate, standing exclusion (test-support-only, thinnest fixture coverage in the track, its own real algebra question deferred to any by design regardless of conversion). The history-driver moves from the “argued, not yet attempted” bucket to the permanent one, alongside lower.rs and the Decision-C wrapper text. No code change.
v0.289.29Resolves #1463 (Arc F, slice 4) — emit.rs’s deps-object-type builders (cap_ref_ty/build_deps_object_ty_with_surface/workers_env_ty/surface_ty) now build real bynk_ts::TsType nodes instead of hand-joined strings, closing the opaque TsType::named(deps_ty) wrap #1361 deliberately deferred and emit_context_deps_interface’s own surface field residual (#1453). append_deps_field widens a real Vec<TsTypeMember> (Vec::push) instead of string-splicing — review of #1469 found the old string splice was a latent hazard, not just untidy, and tightened the helper’s own signature to make the panic path it carried impossible by construction. One field (the actor-sum who union) stays pre-rendered opaque text — its comma-separated tagged-object shape doesn’t match TsType::Object’s own semicolon convention, a real fixture byte-diff caught this, not assumed; surface_ty’s own ReturnType<T> narrowed one level further per the same review, leaving only its typeof X operand opaque. Zero emitted-TypeScript change; ts_writes drops from 875 to 860 as a side effect (most of these functions’ own internal format! calls for TS syntax are gone, not just the TsParam-level wrap).
v0.289.28Resolves #1462 (argue ts_writes’s final residual floor after Arc F) — reads emit_agent’s own 99-site cluster end to end (the one Arc F’s own pass admitted was only sampled) and finds it is NOT uniformly already-converted: 66 sites match the established print-and-splice idiom, but the history-driver (__bynkDriveHistory_*, gated on history_target_agents) is genuinely raw hand-templated text throughout, 33 sites, a real tractable conversion candidate named here for the first time. The DO-class hand-written-wrapper decision (emit_provider’s own Decision C) is confirmed to also cover emit_agent’s identical wrapper. pred_condition_and_message/inject_runtime_imports are formally collected but corrected to “argued, not yet attempted” rather than permanent. No code change.
v0.289.27Resolves #1461 (ground the verbatim_sites capstone) — its lower.rs prerequisite is already solved by ADR 0391, its source-map prerequisite only partly (top-level checkpoints only, not the nested per-statement ones emit_project relies on today); the real remaining blocker is a callee cascade neither prior pass counted (emit_provider’s own class wrapper and others already permanently opaque). Deferred as its own future multi-slice arc, not attempted here. No code change.
v0.289.26Resolves #1460 (the lower.rs collection-kernel spike) — distinctBy/joinOn/leftJoin/groupBy over a store Query[T] field (and the held-Map/plain-Map/Log scans lifted into the same query vocabulary) now build their collection buckets typed to the real element type instead of any[]/Record<string, any[]>, mirroring the List[T] sibling kernel’s own established pattern (elem_ts/join_other_elem_ts). ts_any drops from 30 to 26. Zero fixture diff except the two fixtures (228, 231) that exercise these exact sites, reblessed and re-verified against real tsc --strict.
v0.289.25Resolves #1459 (ADR 0399 follow-on) — formalises ts_any’s 26 non-collection-kernel residual sites into six argued families, and corrects ADR 0399’s own tentative recommendation to exclude workers.rs’s Durable Object stub from R7.1’s scope. No code change — a documentation/argument settling pass.
v0.289.24Resolves Arc F item 4’s investigation (#1457) — emit.rs’s emit_agent and emit_ws_do_method each re-implemented append_deps_field’s exact splice pattern inline instead of calling the shared helper (added by review of #1209 specifically to collapse this repetition); both now call it directly. The grounding read found the real conversion of cap_ref_ty/build_deps_object_ty_with_surface/workers_env_ty/surface_ty to real bynk_ts::TsType nodes tractable and scoped it as its own issue (#1463, “Arc F, slice 4”) rather than converting in this pass. Zero emitted-TypeScript change (confirmed by bynk-emit’s full fixture byte-matchers); ts_writes drops from 879 to 875 as a side effect — folding away the two duplicated call sites removes 4 format! lines, none of which built TypeScript text of their own (the shared helper’s one format! call was already counted).
v0.289.23Fixes a ts_writes probe false positive found by Arc F’s own item-4 investigation (#1457) — xtask’s is_path_construction_line now also recognises the .with_file_name(format!(...)) filesystem-path idiom, alongside the existing PathBuf::from(format! and .join(format! forms, so bynk-emit/src/project.rs’s sibling_path is no longer miscounted as TypeScript-producing. ts_writes drops from 880 to 879; no other probe changes.
v0.289.22Arc F slice 3 converts bynk-emit’s emit_context_deps_interface to build a real bynk_ts::TsDecl::Interface instead of writeln!-ing text, with two fields (surface, __eventsDispatch) deliberately kept as opaque TsType::named(...) text — the former because its own source (surface_ty) is still String-returning, the latter because bynk_ts::TsType::Fn cannot represent a named parameter — zero emitted-output change.
v0.289.21Arc F slice 2 repoints bynk-emit’s plan_agent_given_deps/native_platforms_of_context at the tree-native instantiate_provider_ts_expr, deleting the now-uncalled String-returning instantiate_provider_expr — zero emitted-output change.
v0.289.20Arc F slice 1 converts bynk-emit’s emit_helpers_for_owner[_qualified]/emit_generic_helpers[_qualified] (and emit_one) to return real Vec<TsDecl> trees instead of writeln!-ing into out: &mut String, with the boundary-print step consolidated into one shared print_decls helper at every caller — zero emitted-output change.
v0.289.19Arc F design pass — decomposes ts_writes’s remaining non-serialisation.rs surface into three concretely-scoped conversion slices, one open investigation, and a named already-argued residual
v0.289.18Arc E slice 7 converts bynk-emit’s emit_generic_helpers_qualified’s remaining ResultInst/OptionInst/ListInst/MapInst arms to build real TsDecl/TsStmt trees instead of write!-ing strings, and adds a narrow C-style TsStmt::For to bynk-ts for the List/Map deserialise-side indexed element loop.
v0.289.17Arc E slice 6 converts bynk-emit’s emit_sum/emit_sum_codec to build real TsDecl/TsStmt/TsStmt::Switch trees instead of writeln!-ing strings, adds TsSwitchCase::case_braced to bynk-ts for a real unbraced-non-default-case shape, and narrows the sum-codec’s own (value as any).<field> cast to a bare, TypeScript-narrowed value.<field> (ts_any 31 → 30), reblessing the small fixture set that cast touched.
v0.289.16Arc E slice 5 converts bynk-emit’s emit_record/emit_record_codec to build real TsDecl/TsStmt trees instead of writeln!-ing strings, with zero emitted-output change, and adds a narrow TsBinaryOp::In to bynk-ts for the field-default prevalidation guard this needed.
v0.289.15Arc E slice 4 converts bynk-emit’s emit_refined/emit_bytes_named_codec/emit_inline_refinement_checks/emit_inline_pred_check to build real TsDecl/TsStmt trees instead of writeln!-ing strings, with zero emitted-output change.
v0.289.14Arc E slice 3 converts bynk-emit’s emit_field_deserialise/emit_field_deserialise_wire to build real TsStmt trees instead of writeln!-ing strings, with zero emitted-output change.
v0.289.13Arc E, slice 2 — serialisation.rs’s duplicate qualified-type-text renderer (ts_type_ref_qualified/ts_inner_type) is deleted and its 9 real call sites (8 internal, plus lower.rs’s Json.decode[T] test-scaffold arm) fold into the general emitter.rs::ts_type_ref_qualified_multi_ts_type renderer via a new adapter, serialisation::qualified_ts_type, that bridges this file’s dotted-prefix qualifier convention onto that renderer’s bare-namespace one. No behaviour change — every fixture emits byte-identical TypeScript.
v0.289.12Arc E, slice 1 — serialisation.rs’s expression serialise/deserialise builders (serialise_field_expr/_via/_wire, serialise_expr/_via, deserialise_ref_via, serialise_ref_via, deserialise_expr/_via) now build a real bynk_ts::TsExpr instead of a hand-written String, closing cluster 2 of serialisation.rs’s own four-cluster decomposition; TsExpr::Arrow.body widens to a new TsArrowBody (Expr/Block) to represent the Float non-finite guard’s statement-bodied IIFE, the first real block-bodied arrow anywhere in the tree. No behaviour change — every fixture emits byte-identical TypeScript.
v0.289.11A for all property binding over a self-recursive Sum/Record type no longer generates a bare undefined in a real, typed constructor/field position once the runner’s random-generation depth is exhausted — gen_ts_for_ty’s own fallback now hands canon_ts_for_ty the same recursion budget the checker already used to accept the binding as generable, not an under-provisioned 1, and only for a type the checker actually validated, so an unvalidated branching variant can’t turn the fallback into a multi-megabyte emit
v0.289.10A for all property body (or where clause) that matches a sum value now binds a single named payload field to its own real name again, closing a case where it silently fell back to the generic value accessor and produced a tsc TS2339 error (or, before recent adjacent changes, a silent undefined binding)
v0.289.9A for all/contract-attack Int (bare, refined, or opaque) binding now coerces its drawn bigint value to number at the bind site, closing a runtime TypeError: Cannot mix BigInt and other types the instant a predicate or attacked function does ordinary arithmetic on it
v0.289.8Design pass — names the true floor for ts_any (a 7-file, 30-site distribution across four buckets, not the stale 2–3-site estimate) and verbatim_sites (an argued floor of at least 2, not 0 — three of the five sites are an unscoped signature capstone on emit_project/emit_test_module/emit_integration_module, not residue, with its own unnamed source-map prerequisite)
v0.289.7Arc E design pass — settles emitter/serialisation.rs’s conversion status (it converts, using the established Arc C pattern, unlike emitter/lower.rs’s permanent exclusion) and names an 8-slice decomposition order
v0.289.6A Sum-variant payload or Record field of type Int now coerces its drawn bigint value to number, closing a tsc --strict type mismatch at the real constructor/object-literal call site
v0.289.5A record-typed for all property binding’s generator arrow now wraps its object-literal body in parens, closing an unparseable/silently-wrong generated-TypeScript gap
v0.289.4A service handler’s subscriber-filter/schema-gate prologue no longer shifts its own body’s source-map lines
v0.289.3The JSON codec seed collector (R8.14) reads a resolved Callee::Intrinsic, not a bare receiver-name match — closing Arc D, the final settling slice
v0.289.2The context-brand rebranding predicate (R4.10/R8.2) is one shared function, not two independently mirrored copies
v0.289.1bynk-ir/bynk-lower carved out of bynk-emit as new workspace crates (ADR 0332’s deferred split, triggered per ADR 0385)
v0.289.0Arc C, slice 37 — the top-level module assemblers (emit_integration_module/emit_test_module in tests_emit.rs) build real bynk_ts fragments, the seventh and final of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass) — closing Arc C entirely. Adds TsDecl::ImportDefault (a default import, bynk-emit’s first real one) to bynk-ts. No behaviour change — every test/integration module emits byte-identical TypeScript.
v0.288.0Arc C, slice 36 — the system-http driver cluster (emit_system_http_support in tests_emit.rs) builds real bynk_ts fragments, the sixth of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass) — every __sysdrive_* request driver (typed, raw, no-auth, raw+no-auth, wrong-method) and the secrets-bootstrap loop now construct real TsDecl/TsStmt/TsExpr nodes instead of format!-built text. No behaviour change — every fixture with a service ... http route emits byte-identical TypeScript.
v0.287.0Arc C, slice 35 — the property/history/attack runner cluster (emit_test_property_function/emit_test_history_property_function/emit_contract_attack_function in tests_emit.rs) builds real bynk_ts fragments, the fifth of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass) — closing the print-then-splice seam Arc C slice A’s own binding_gen conversion left temporarily open. No behaviour change — every fixture with a property, a history property, or a contract-attack case emits byte-identical TypeScript.
v0.286.0Arc C, slice 34 — the case/scope-setup cluster (emit_test_scope_setup/emit_test_case_function in tests_emit.rs) builds real bynk_ts fragments, the fourth of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass). Adds bynk_ts::TsBinaryOp::InstanceOf. No behaviour change — every fixture reaching a test case emits byte-identical TypeScript, with source-map splice offsets confirmed unaffected.
v0.285.0Arc C, slice 33 — the stub cluster (emit_stub_class/emit_stub_rhs in tests_emit.rs) builds real bynk_ts fragments, the third of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass). Adds bynk_ts::TsBinaryOp::LessThan and TsSwitchCase.default_braced, and deletes the now-dead emitter::ts_type_ref_qualified_multi. No behaviour change — every fixture with a stub clause emits byte-identical TypeScript.
v0.284.0Arc C, slice 32 — the small independent leaves (emit_integration_harness/emit_test_deps/emit_ns_destructure/observation_call_record_types in tests_emit.rs) build real bynk_ts fragments, the second of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass). Also deletes the now-dead emitter::ts_type_ref_qualified, rerouting its own direct unit tests through its already-existing TsType-returning twin. No behaviour change — every affected fixture emits byte-identical TypeScript.
v0.283.0Arc C, slice 31 — the property-generator expression cluster (refined_gen_ts/gen_ts_for_ty/canon_ts_for_ty/binding_gen in tests_emit.rs) builds real bynk_ts::TsExpr fragments, the first of tests_emit.rs’s own 7 proposed slices (per its dedicated grounding pass) and Arc C’s own final remaining piece. No behaviour change — every property/history/contract-attack fixture emits byte-identical TypeScript.
v0.282.0Arc C, slice 30 — emit_project’s own header/import/rebrand cluster (write_header/write_header_single/emit_project_imports/emit_cross_context_namespace_imports/emit_context_rebrands/emit_boundary_helpers, plus emit_project itself) builds real bynk_ts fragments, closing step (10) of the TypeScript-tree conversion track — every step in the conversion order is now landed or decided, leaving only the final tests_emit.rs pair. Adds type_only to bynk_ts::TsDecl::ImportNamespace along the way, matching its sibling TsDecl::Import. No behaviour change — every project-form fixture (all of them reach emit_project) emits byte-identical TypeScript.
v0.281.0Arc C, slice 29 — the cross-context lowering cluster (lower_workers_cross_context_call/param_cast) builds real bynk_ts::TsExpr fragments instead of hand-written strings, closing step (8) of the TypeScript-tree conversion track. No behaviour change — every cross-context service call at the Workers target emits byte-identical TypeScript, including the zero-argument case.
v0.280.0Arc C, slice 28 — the ICU-formatting cluster (emit_message_entry_renderer/emit_icu_placeholder/emit_sub_message) builds real bynk_ts::TsExpr fragments instead of hand-written strings, closing step (11) of the TypeScript-tree conversion track. Adds two small bynk-ts primitives along the way: TsBinaryOp::Add (string concatenation) and a new print_expr fragment entry point. No behaviour change — every message-bundle fixture (literal text, plain placeholders, and all four ICU kinds: plural/select/number/date) emits byte-identical TypeScript.
v0.279.0Arc C, slice 27 — emit_agent’s workers-mode fetch method and emit_ws_open_fetch_branch convert to real bynk_ts::TsClassMethod/TsStmt fragments, closing step (9) sub-slice (5) entirely (all 3 independent slices landed: the WS-hosted DO methods, the hibernatable-WebSocket dispatch handlers, and now the DO dispatch itself). Adds a new fixture pinning the agent_uses_emit branch (an agent handler that emits directly, no service in between), which previously had zero fixture coverage anywhere.
v0.278.0Arc C, slice 26 — emit_agent’s hibernatable-WebSocket dispatch handlers (webSocketMessage/webSocketClose, via emit_ws_dispatch_handlers) convert to real bynk_ts::TsClassMethod fragments, built from real TsStmt/TsExpr nodes rather than one opaque body blob. The second of step (9) sub-slice (5)‘s own 3 independent slices; unlike every prior Arc C slice this function lowers no .bynk body at all, so no source-map merge was needed — three body statements and several leaf expressions (call/route-arg text, a generic constructor callee, structural parameter types) still stay opaque text, the same established escape hatch this track uses elsewhere. Zero diff on the first attempt.
v0.277.0Arc C, slice 25 — emit_agent’s WS-hosted on open/on message/on close DO methods (emit_ws_do_method) convert to real bynk_ts::TsClassMethod fragments, the identical shape emit_provider’s own already-landed ops established. The first of step (9) sub-slice (5)‘s own 3 independent slices, confirmed as low-risk as its dedicated grounding pass predicted — zero diff on the first attempt, no new algebra gap
v0.276.0Arc C, slice 24 — emit_agent’s factory function converts fully to real bynk_ts nodes, with no opaque carve-out at all. Splits step (9)‘s own sixth sub-slice: the history-driver, its other half, stays deferred with its own priority still undecided. Confirms the factory function alone needed its own real slice, a real floor correction to the original estimate
v0.275.0Arc C, slice 23 — emit_agent’s per-handler methods convert to real bynk_ts::TsClassMethod fragments, closing the grounding pass’s own second predicted algebra gap (TsClassMethod.doc) and extending emit_service’s own two-level offset pattern to a genuinely new third wrapper dimension (the implicit-commit closure, which can combine with the events-IIFE). The largest sub-slice of step (9)‘s own decomposition, per the grounding pass’s own prediction, confirmed accurate
v0.274.0Arc C, slice 22 — emit_agent’s commitState method converts to a real bynk_ts::TsClassMethod fragment, closing step (9)‘s own third sub-slice fully (the deferred remainder #1371 split off). Corrects that slice’s own stated expectation: commitState’s predicate lowering needs no source-map sub-builder care at all — record_span is a documented no-op with no attached builder, and neither LowerCtx it constructs is ever given one
v0.273.0Arc C, slice 21 — emit_agent’s loadState method converts to a real bynk_ts::TsClassMethod fragment. Closes a grounding-pass-predicted gap along the way — TsClassMethod.private, the first private method sites this track has hit. Splits step (9)‘s own third sub-slice: commitState, found genuinely harder once actually read (its own predicate lowering needs the same source-map care emit_free_fn/emit_contract_guarded_body already established), stays deferred as its own separate, later sub-slice
v0.272.0Arc C, slice 20 — emit_agent’s own per-agent state registry const, zero-value factory function, and (when needed) rehydration-validation function convert to real bynk_ts nodes. Closes a new algebra gap along the way — TsDecl::Function.inline, mirroring TsObjectEntry::Method.inline’s own single-line-vs-multi-line precedent — for the zero-factory’s own genuinely single-physical-line shape. The second of step (9)‘s own proposed 5-6 sub-slices (emit_agent and its websocket-dispatch cluster) per the dedicated grounding pass
v0.271.0Arc C, slice 19 — emit_agent’s own state-record interface (export interface {Name}State { ... }, covering all 5 store kinds — Cell/Map/Set/Cache/Log — plus @indexed posting-lists) converts fully to a real bynk_ts::TsDecl::Interface, with no opaque carve-out at all. The first of step (9)‘s own proposed 5-6 sub-slices (emit_agent and its websocket-dispatch cluster) per the dedicated grounding pass
v0.270.0Arc C, slice 18 — emit_make_surface converts fully to real bynk_ts nodes (a real TsDecl::Function returning a real TsExpr::multiline_object_entries of per-service TsObjectEntry::Method entries), with no opaque carve-out at all — the first slice in this track to close that cleanly. Splits step (8) of the design pass’s own decomposition order: the cross-context lowering cluster, step (8)‘s other half, is a real, separate, harder remainder, deferred rather than silently folded into “step (8) done”
v0.269.0Arc C, slice 17 — emit_service’s own handlers build real bynk_ts::TsObjectEntry::Method fragments (every param, including the synthetic connection/__bynkSchemaEnv ones, converts to a real bynk_ts::TsParam; each body source-mapped via a two-level sub-builder/merge, since the source-mapped content is nested inside a further opaque events-dispatch IIFE blob), fully closing step (7) of the design pass’s own decomposition order in one slice. The object wrapper, deps’s own dynamically-built type, and the handler’s whole prologue/body/epilogue stay hand-written/opaque — deliberate boundaries, not remaining gaps
v0.268.0Arc C, slice 16 — emit_provider’s own per-op methods build real bynk_ts::TsClassMethod fragments (printed through a new bynk_ts::print_class_method entry point, each body source-mapped via a per-method sub-builder/merge), fully closing step (6) of the design pass’s own decomposition order. The class’s own wrapper and factory const stay hand-written text — a deliberate boundary (building the whole class as one tree would need every method’s body captured for Raw-embedding, and this class’s own real spacing differs from TsDecl::Class’s established policy), not a remaining gap
v0.267.0Arc C, slice 15 — emit_capability builds real bynk_ts nodes internally (TsTypeMember::Method gains generics/doc fields), splitting step (6) of the design pass’s own decomposition order the same way slice 12 split step (4) — emit_provider’s own conversion (a full class with N real method bodies, each needing the established sub-builder/merge source-map treatment individually) is a named, deferred remainder, not converted by this slice
v0.266.0Arc C, slice 14 — emit_messages_bundle’s own outer construction converts to real bynk_ts nodes (closing step (5) of the design pass’s own decomposition order), with two named opaque carve-outs (a one-off type annotation TsType::Fn can’t name its own parameter for; each message renderer’s own not-yet-converted ICU-formatting expression). Also closes a real printer gap: nested multiline objects as a Prop’s own value now render correctly instead of silently falling back to single-line
v0.265.0Arc C, slice 13 — emit_contract_guarded_body builds real bynk_ts nodes for its precondition/postcondition guards and return result; (bynk_ts gains TsStmtKind::Throw), fully closing step (4) of the design pass’s own decomposition order. The result-capturing IIFE stays one deliberately opaque statement (Pre::lower’s own predicate lowering is a permanent emitter/lower.rs exclusion). Also fixes a second real source-map corruption bug reproducing #1352’s own class one level deeper (caught immediately by #1352’s own regression test) before it ever landed
v0.264.0Arc C, slice 12 — emit_free_fn builds a real bynk_ts::TsDecl::Function node internally (TsDecl::Function gains a generics field), splitting step (4) of the design pass’s own decomposition order the same way slice 9 split step (2) — emit_contract_guarded_body’s own internal guard construction is a named, deferred remainder, not converted by this slice. Also fixes a real source-map corruption bug this conversion would otherwise have introduced (caught by coverage_behaviour.rs’s own integration tests): the function body now lowers into an isolated buffer for Raw-statement embedding, so its own checkpoints are captured via a local sub-builder and merged back in at the correct splice offset, the same pattern emit_service’s handler-body lowering already established
v0.263.0Arc C, slice 11 — emit_type/emit_refined_type/emit_record_type/emit_sum_type build real bynk_ts nodes internally, fully closing step (2) of the design pass’s own decomposition order (the dispatcher and 3 object-builders deferred by slice 9, unblocked by slice 10’s emit_attached_methods signature change) — adds TsDecl::Interface.type_params/readonly TsTypeMember members, TsType::Intersection, TsType::Union’s multi-line rendering mode, and TsExpr::Arrow.generics/.return_type to bynk-ts
v0.262.0Arc C, slice 10 — emit_attached_methods/emit_forwarded_methods/emit_method build real bynk_ts nodes, closing decomposition step (3) and unblocking step (2)‘s own deferred trio
v0.261.0Arc C, slice 9 — emit_refined_checks/emit_pred_check build real bynk_ts nodes internally, correcting step (2) of the design pass’s own decomposition order (3 of 6 named functions are entangled with step (3)‘s not-yet-converted emit_attached_methods, deferred to a follow-up slice gated on a TsObjectEntry::Raw decision) and closing a real, currently-unreachable double-escaping bug in how PredKind::Matches’s own pre-escaped message text would have been carried
v0.260.0Arc C, slice 8 — emit_doc_block/ts_type_params build real bynk_ts nodes internally, closing step (1) of the design pass’s own emit.rs decomposition order and correcting its 13-function list to the real 2 (9 were never TS-emission code; the ICU cluster is real but deferred to its own future step)
v0.259.1Arc C design pass — settles emitter/lower.rs’s conversion status (a deliberate, argued, permanent exclusion from Arc C’s own scope, with ts_writes’s own non-zero floor named accordingly) and names the corrected decomposition order for emit.rs’s remaining work
v0.259.0Arc C, slice 7 — emit_commons_barrel (the multi-file commons barrel module) constructs a real bynk_ts::TsProgram instead of building TypeScript text
v0.258.0Arc C, slice 6 — emit_composition_root (Bundle-target compose.ts) constructs a real bynk_ts::TsProgram instead of building TypeScript text
v0.257.0Arc C, slice 5 — emit_test_main (tests/main.ts) constructs a real bynk_ts::TsProgram instead of building TypeScript text
v0.256.0Arc C, slice 4: workers_entry.rs’s emit_worker_entry and its four helpers (emit_scheduled_handler/emit_queue_handler/emit_http_route_dispatch/emit_call_handler_dispatch) construct and return a real bynk_ts::TsProgram instead of writeln!-ing a String — bynk-emit/src/project.rs’s own index.ts construction site drops its Verbatim/NotYetConverted wrap. Extends the bynk-ts node algebra with the four shapes Decision A named (TsStmt::Switch/TsSwitchCase — the first genuinely new statement-grouping construct in the tree; TsDecl::ExportDefault for a bare-expression default export; TsExpr::Conditional, with proactive parenthesisation-rule coverage in all three existing rule sites; TsType::Object’s Vec<(String, TsType, bool)> replaced by a TsTypeMember enum with readonly/method-signature members) plus real gaps found during implementation beyond that list: TsDecl::ReExport (export { A, B } from “spec”;), TsStmtKind::Blank (a bare blank line usable at any nesting depth), TsLit::Bool, TsExpr::Paren (an explicit, printer-preserved parenthesisation independent of the wrapped expression’s own precedence), TsTypeMember::Index (a TypeScript index signature, textually distinct from the semantically-equivalent Record<K,V>), TsBinaryOp::GreaterThan, TsStmt::If’s own else_branch, and TsStmtKind::InlineBlock (a braced, multi-statement block on one generated line, plus a render_block_body special case for a TryCatch body that is one). A further correction found only by the zero-diff fixture check: the As arm’s own automatic “always parenthesize a nested Await” rule (added by P7.8) was actually just one file’s own historical text, not a grammar requirement — removed, replaced by explicit TsExpr::Paren wraps at the three real sites that want it (two in this file, one in events_fanout.rs, since even within workers_entry.rs itself the two real await-as sites disagree with each other). render_binary_operand also gained a same-operator-chain-flattening refinement for non-nullish operators (a real 3-term
v0.255.0Arc C, slice 3: workers.rs’s emit_worker_compose and its nine private helpers construct and return a real bynk_ts::TsProgram instead of writeln!-ing a String — bynk-emit/src/project.rs’s own compose.ts construction site drops its Verbatim/NotYetConverted wrap. Extends the bynk-ts node algebra with the five shapes Decision A named (a richer TsObjectEntry — Prop/Shorthand/Method/Spread — replacing TsExpr::Object’s bare (String, TsExpr) entries; TsExpr::Arrow; TsExpr::OptionalMember/OptionalIndex; an optional flag on TsType::Object’s fields) plus real gaps found during implementation beyond that list: TsDecl::Function and TsDecl::TypeAlias (compose.ts’s own top-level function and its conditional DurableObjectNamespace fallback alias), TsDecl::ImportNamespace (the import * as X form), a parameterless TsStmt::TryCatch catch clause (ES2019 optional catch binding), and four new TsBinaryOp/one new TsUnaryOp operators (===, !==, &&,
v0.254.1Closes the ts_any residual for the four runtime-owned error types (ValidationError/JsonError/HttpResult/QueueResult): the two remaining as any sites in bynk-emit’s (de)serialisation codec now cast through each type’s own real, already-exported runtime type instead, bridged through unknown where tsc’s own structural-overlap check requires it. Adds a QueueResult field/type-declaration structural scan (the one of the four that had no non-handler-based import gate). Also corrects design/tracks/the-typescript-tree.md’s own Arc C ordering: serialisation.rs is a shared 10-entry-point codec library, not a single clean conversion target like events_fanout.rs was, so it’s removed from the ordering pending its own dedicated design pass; workers.rs is named as the real next slice. No other output change, verified against the full fixture corpus plus a project-form fixture exercising all four types through the real Json codec boundary, staged and passing under a real tsc —strict run (#1319).
v0.254.0Arc C, slice 1: events_fanout.rs’s emit_events_fanout_do constructs and returns a real bynk_ts::TsProgram instead of writeln!-ing a String — the first bynk-emit construction site whose output reaches Document::Ts without a TsStmt::verbatim wrap. Adds TsStmt::Comment (every generated file’s header banner needs one) and a multiline field on TsExpr::Object (the __eventRoutes table’s own real, multi-line-with-trailing-commas shape, which the existing single-line-only object literal couldn’t represent). No output change, verified against the full fixture corpus and a fresh direct test against a real fixture’s own events_fanout.ts (#1317).
v0.253.0P7.9: bynk-emit’s ts_type_ref/ts_type_ref_qualified/ts_type_ref_qualified_multi/ts_type_ref_with/ts_ty construct a real bynk_ts::TsType internally and print it through a new bynk_ts::print_type, instead of hand-format!-ing text — every function keeps its exact -> String signature, every real caller (~110-115 sites) unchanged. (ts_base itself stays an unchanged string-table lookup, now consumed by the two converted functions instead of interpolated directly.) TsType::Array gains a readonly modifier; TsType::Fn and TsType::Union added (Union closes a real gap found during implementation: ts_ty’s own Ty::ActorSum arm builds a genuine union-of-tagged-object-literals type no existing shape could represent). Zero output change, verified against the full fixture corpus and 23 new direct tests pinning every real type shape from both families (#1315).
v0.252.0P7.8: bynk-ts gains a real TsExpr/TsType/TsDecl node algebra, plus real TsStmt kinds (Const/Let/ExprStmt/Return/If/ForOf/TryCatch/Block/Continue/Assign) alongside the existing Verbatim escape hatch — the subset bynk-emit/src/emitter/events_fanout.rs concretely needs, grounded against that file’s own real shape rather than the full reference sketch. The printer learns to render every new kind, verified byte-identical against the real emitter’s own output for events_fanout.rs’s EventsFanoutDO class, including its constructor body. Also corrects the track doc’s stale Arc C schedule: contracts.rs/secrets.rs/runtime_use.rs turn out to emit JSON (or not be emission code at all), not TypeScript — events_fanout.rs is the real first conversion file. No bynk-emit behaviour change (#1313).
v0.251.1P7.7: named the bynk-ts printer’s readability guarantee (R7.5) explicitly — a # Readability policy doc block in printer.rs states the printer’s one real formatting decision today (exactly one generated line per statement) and its boundary (a statement’s own interior formatting isn’t the printer’s concern until Arc C gives it real nodes). No behaviour change (#1311).
v0.251.0P7.6: Artefacts { docs: BTreeMap<PathBuf, Document> } (Document::Ts/Toml/Json/Js/SourceMap/DebugSidecar) replaces ProjectOutput.files: Vec<CompiledFile> outright across bynk-emit, bynk-driver, bynk-strip, and bynk-wasm — every real producer and consumer now reads/writes typed documents, not pre-rendered strings. wrangler.toml’s real TomlDocument reaches the write boundary unstringified, and bynk-strip’s own main = patch for a stripped Worker’s manifest is now a structural in-tree mutation instead of a print-then-reparse. Source maps and debug sidecars become their own typed sibling documents, derived once instead of independently by two functions. No observable output change (#1309).
v0.250.0P7.5: carved a new bynk-ts crate for the TypeScript tree and printer (depends on bynk-syntax only) — TsProgram/TsStmt::verbatim (the escape hatch every future Arc C slice converts into real nodes), a printer that owns the buffer end to end, and the companion textual lint over Verbatim content (#1307). bynk-emit’s source-map machinery relocated unchanged. No bynk-emit construction site converts to the tree yet — Arc C’s own first slice starts that. No observable output change.
v0.249.42P7.4: bynk deploy/bynk dev --remote and --emit js now read/write a generated wrangler.toml’s id/main fields through a real TOML parse (bynk-emit::emitter::wrangler’s new materialise_kv_namespace_id/set_wrangler_main/wrangler_needs_kv_materialisation) instead of matching the literal text those fields happen to appear as today (#1305). Immune to reformatting; no observable output change.
v0.249.41P7.3: added a minimal typed TOML tree and printer (bynk-emit/src/emitter/toml_doc.rs) — emit_wrangler_toml now builds a TomlDocument instead of writing text directly, and the printer escapes every string value unconditionally rather than only the two call sites that used to remember to (#1303). No observable output change: zero-diff across the whole wrangler.toml golden corpus.
v0.249.40P7.2: narrowed 24 of the 55 ts_any-counted sites (as any/bare : any) in bynk-emit to unknown, real declared/qualified types, or generated structural types (#1300) — ts_any drops from 55 to 31. The other 31 (2 residual, needing a runtime type R7.7 hasn’t exported yet, and 29 deferred — more than the proposal’s 3, several found only by the full tsc --strict fixture pass) are named at their own site with a comment recording why, not silently dropped.
v0.249.39A changelog blurb is validated as Markdown before it is stamped — cargo xtask stamp now rejects a pending increment whose blurb reads as a link to a relative destination, the shape an unbackticked generic call such as Events.emit[E](event) silently produces. The blurb is inserted verbatim into the Book’s changelog table by the merge-time stamp on main, so the docs site’s link-checker only ever saw the row post-merge, after a bad one had already broken main; the same rule now runs pre-merge, where the author can still act on it, and again inside the stamp’s own plan, where a failure leaves the pending file intact rather than pushing a broken table. Shape only — site-root and anchor destinations are resolved by the site gate alone, which the pending-file format doc now says explicitly. Also repairs the v0.249.1 row that had been failing Docs site (astro build) on every main push since it landed.
v0.249.38P7.0: ts_writes and ts_any gated probes added to cargo xtask greenfield-status (#1296) — ts_writes reads 1641, ts_any reads 55. Phase 7’s own completion probe was never measured before this slice.
v0.249.37Settle phase 7 of the compiler trajectory (design/tracks/the-typescript-tree.md) — bynk-ts is carved as a crate up front, the migration uses a statement-level Verbatim escape hatch with a companion textual lint (golden fixtures alone can’t see inside it), TsType::Any is eliminated in full with one small named residual deferred to the runtime-typing rule, and R8 splits into five rules closed by the conversion itself, two needing their own slices, and twelve already closed
v0.249.36P6.59: phase 6 (the-ir.md, spine #1137) retires. ast_importers reads its named floor, 5 — the bynk-emit/src/emitter{,/**} rendering subtree, argued file by file in the closing summary. design/tracks/the-ir.md deleted; its closing summary appended to design/archive/retired-tracks.md; the trajectory doc’s phase-6 row and the probe’s own doc comments re-point at the archive. Opens phase 7 (the printer).
v0.249.35P6.58: re-settles design/tracks/the-ir.md §5 at ast_importers = 5 (not 0), with a per-file structural argument for each of the five surviving files. Breaks the §5/§7 circularity between this track’s own completion criterion and phase 7’s bynk-ts entry condition. Names §12’s retirement condition. Doc-only, no AST_IMPORTER_EXCEPTIONS growth.
v0.249.34P6.57: IrHttpMethod gains from_ident(); emitter/lower.rs’s two HttpMethod::from_ident sites read it instead. Corrects P6.37’s stated reason for leaving system_http_route_body’s TypeRef field alone — the resolution context does exist, the real reason is a lossy round-trip with no probe payoff. Closes Phase H of the #1137 retirement plan. ast_importers: unaffected (5).
v0.249.33P6.56: called_consumed_services reads the checker’s own resolved Callee::Cross instead of reconstructing cross-context-ness syntactically — a live shadowing-hazard defect closed. Five other emitter.rs sites this row proposed (collect_json_codec_roots, refined_or_opaque_base/emit_context_rebrands, sum_owner_of_variant, positional_field_name, ts_binop) investigated and declined, each for a traced, written reason. ast_importers: unaffected (5).
v0.249.32P6.55: emit_provider stops calling is_effectful_return(&op.return_type) twice for the same op, and its own capabilities extraction reads lower_provider_given_ir instead of re-deriving CapRef::key(). The originally-planned full ProviderShapeIr scoped back down after tracing found no real consumer for the rest. ast_importers: unaffected (5).
v0.249.31P6.54: emit_service/emit_make_surface/emit_agent/topo_order_providers/cross_context_caps_used/cross_context_cap_namespaces read the IR already in scope (or reachable via an existing lowering function) instead of re-deriving the same fact from the raw AST a second time. ast_importers: unaffected (5).
v0.249.30P6.53: emit_agent’s store-field-kind dispatch (Cell/Map/Set/Cache/Log membership, plus Cache’s @ttl and Log’s @retain values) reads state’s already-computed StoreKindIr instead of re-deriving via f.kind.head.name string comparison and a second f.annotations walk. ast_importers: unaffected (5).
v0.249.29P6.52: collect_handler_labels’s and ws_open_hosts_for’s ServiceProtocol::WebSocket matches read lower_protocol_ir_from_commons instead. WsOpenHost::{out_type,in_type} carry TyId, not &TypeRef, cascading through four renderers and deleting the resolve_ty closure’s second argument. ast_importers: unaffected (5).
v0.249.28P6.51: IrHttpMethod gains as_str(); every HandlerKind read in emitter/emit.rs (collect_handler_labels, emit_service, emit_make_surface, emit_agent, ws_open_hosts_for — 20+ sites) now reads lower_handler_kind_ir instead of matching the raw AST HandlerKind. ast_importers: unaffected (5) — emit.rs stays counted via use super::*.
v0.249.27P6.50: emitter/emit.rs’s dead build_deps_object_ty deleted (zero callers workspace-wide), and is_effectful_return moves into ir/lower.rs — fixing a backwards Ast<->Ir dependency where the lowering pass was calling up into the emitter it should only ever be called from. ast_importers: unaffected (5).
v0.249.26P6.49: project.rs’s own bynk_syntax::ast import deleted entirely — its last pre-check TypeRef walk relocates to a new ParsedFile::history_target_agent_names() (bynk-project), and TypeDecl/FnDecl/Visibility/ActorDecl are re-exported from the bynk-check modules whose own public API was already parameterised by them. ast_importers: 6 -> 5 — project.rs clears (project/diagnostics.rs cleared with it back in P6.42). Phase G of the #1137 retirement plan complete.
v0.249.25P6.48: emitter::walk_unit_table_bodies (emitter.rs, already counted) replaces two hand-rolled copies of the same service/agent/provider body walk in project.rs’s unit_table_uses_emit and called_cross_context_services. ast_importers: unaffected (6) — project.rs’s Block/Expr sites cleared, but the file was already counted on other names.
v0.249.24P6.47: lower_event_subscriber_shapes_ir (bynk-emit/src/ir/lower.rs) absorbs the ServiceProtocol::Events pre-filter guarding lower_service_item_ir, and EventSubscriberShape moves to ir.rs — project.rs’s per-file loop becomes one call. ast_importers: unaffected (6).
v0.249.23P6.46: two owner-side accessors replace raw AST walks in project.rs — ParsedFile::declares_messages() (bynk-project) and bynk_check::symbols::cron_and_queue_triggers() (bynk-check). ast_importers: unaffected (6).
v0.249.22P6.45: combined_types_for_unit_info moves to bynk-check::symbols, next to combined_types_for; the FnName::Method filter folds into a new lower_attached_fn_sig_ir_from_types (bynk-emit/src/ir/lower.rs). ast_importers: unaffected (6).
v0.249.21P6.44: discover_event_subscribers moves to bynk-check::symbols, next to build_cross_context_info — the sibling function its own doc comment already pointed at. ast_importers: unaffected (6).
v0.249.20P6.43: own_contract_hashes moves into bynk-check::contract, sharing one cross_context_service_for projection with build_cross_context_info — the caller-side and callee-side CrossContextService views were two hand-written copies agreeing only by convention; now one function. ast_importers: unaffected (6).
v0.249.19P6.42: project.rs’s in_memory_logical_path stops re-implementing SourceUnit::name(), and project/diagnostics.rs drops its use super::*; — two false AST coupling channels, no behavioural change. ast_importers: 7 -> 6 (project/diagnostics.rs cleared; project.rs itself still counted, six names remain).
v0.249.18P6.41: TypeShape::Refined::{base, refinement} investigated and ruled phase 7, not built. Both fields flow directly into emitter/emit.rs’s emit_refined_type/emit_refined_checks, which generate TS validation source text (export type/export const, predicate checks) — the identical “how do I render this type as TS” class of question P6.33 already ruled the JSON/wire codec renderer belongs to phase 7’s eventual printer, not phase 6’s IR construction. Building an IrRefinement/IrBaseType mirror now would mean building printer infrastructure for a consumer this track’s own §2 scope already excludes, and per the plan’s own finding the bounds (IntBound/FloatBound) deliberately keep source lexemes for byte-stable emission, so the mirror would be a near-copy rather than a clean IR abstraction — weaker grounds for building it than the four fields P6.39 already deleted, which had a real redundant-metadata case for removal. No code changes. ast_importers unaffected — invisible to the probe by construction.
v0.249.17P6.40: ProtocolIr::Events::schema_dispatch flattened from Option to Option — SchemaVersionPattern has exactly one variant (Literal(i64)), so mirroring the payload directly was simpler than introducing a one-variant IR-native enum purely to re-wrap it. Cuts over its one real reader (emitter/emit.rs’s via schema(N) guard prologue), which now reads the i64 directly instead of destructuring the AST enum — removing SchemaVersionPattern from both emit.rs’s and ir.rs’s own explicit AST import lists. Pinned by 1232_events_envelope_schema_dispatch_bare. ast_importers unaffected (7) — emit.rs retains its own much larger remaining AST surface.
v0.249.16P6.39: deleted four of the six AST-typed ir.rs fields named as having zero production readers — GlobalRef::sum, IrExprKind::Record::def, IrItem::Type::def, IrItem::Fn::def — each verified to have no reader outside a test assertion (IrItem::Fn’s own constructor, lower_fn_item_ir, has no production call site at all). The other two, IrExprKind::RefinedCheck::{base, refinement} and IrPat::Refined::refinement, were investigated and found not to fit this slice: unlike the four deleted fields (redundant identity metadata another field or the caller’s own context already carries), these two are the dormant node’s own semantic payload — what refinement to test — and removing them would gut the variant’s meaning rather than clean up a redundancy, the same category error a naive read of “zero production readers” invites for a node no shipped emitter path has reached yet (the same shape Question/Is were in before P6.15/P6.16 wired them into a real call site). Left as-is. ast_importers unaffected (invisible to the probe — ir.rs/ir/lower.rs are excluded files).
v0.249.15P6.38: emitter/lower.rs’s idempotency_scoping_tests module reads a new TypedCommons::empty() (bynk-check) instead of hand-building an empty Commons/QualifiedName itself — this module’s own last bynk_syntax::ast dependency, per the AST-free test-constructor option P6.33 named. Does not clear emitter/lower.rs: P6.37 already found this file’s own remaining production surface (system_http_route_body’s TypeRef field, the two HttpMethod::from_ident sites) has no available IR-native alternative, so the file stays counted regardless — this slice closes only the test-residue half of R6.13’s own “known gap” paragraph for this file, not the file as a whole. ast_importers unaffected (7).
v0.249.14P6.37: BodyMode::TestCase’s test_service_handlers field (a per-service list of handler kinds a test case’s cron/queue address lowering recovers a position index from) now carries IrHandlerKind instead of the raw AST HandlerKind, mirrored in project/tests_emit.rs’s own target_service_handler_kinds builder. Investigated and left as raw AST, narrower than the plan’s own row: system_http_route_body’s TypeRef field has no resolved TyId available at its own construction site (a pre-check UnitTable walk, no checker resolution context in scope) and its sole consumer, serialise_expr_via, is P6.33’s own ruled-phase-7 codec renderer — converting it would have no real target to convert to. The two HttpMethod::from_ident sites feed http_handler_method_name, a Q7-deferred rendering-key utility taking HttpMethod by value, the same downstream-Q7-consumer shape found throughout this plan’s own Phase C/E slices. ast_importers unaffected (7) — emitter/lower.rs retains other, still-open AST surface.
v0.249.13P6.36 scoping correction: not implementable as the completion plan described, per the P6.20 precedent. The plan proposed one lower_unit_items_ir enumerator serving both collect_external_references and write_header. collect_external_references genuinely needs every CommonsItem variant for correctness (a missed variant is a silently missing runtime import), and three of its nine match arms are variants IrItem has no equivalent for at all (Actor, Messages, and Event via as_type_decl()) — no enumerator, total or partial, is the right shape for it. write_header’s own remaining CommonsItem matches turned out to need no single replacement either: most are already at their real floor (bare outer kind classification, or already reading commons.callees/IrHandlerKind for the actual decision), and the few that read genuine declaration content would need either three separate small commons-only helpers or the full CheckedProgram-gated lower_agent_item_ir — the latter being the exact “expensive pass run just to discard almost all of it” shape this track already guarded against elsewhere (P6.23’s own precedent). Neither shape is what the plan proposed; neither was pursued. Named as unscoped future work. ast_importers unaffected (7).
v0.249.12P6.34: closed by investigation, no code change needed (P6.9/P6.24b precedent). The completion plan’s own P6.34 row proposed precomputing EmitProjectCtx::actors into a per-handler ActorSeamIr, describing it as a hidden dependency blocking emitter/workers.rs, emitter/workers_entry.rs, and emitter/emit.rs. Traced directly: only emit.rs reads this field (workers.rs/workers_entry.rs reach actor data through the unrelated bynk_check::symbols::UnitTable::actors, already counted independently) — the “blocking three files” framing did not hold. Even for emit.rs, lower_actor_seam_ir’s own signature requires the raw actor declarations to do its own by_clause-binder resolution; precomputing would relocate, not remove, the AST dependency (project.rs is already counted for unrelated reasons, so this would not move ast_importers even if built), while introducing a new indexing mechanism into a security-sensitive, fail-closed identity-verification path (Bearer/Oidc/Signature/Caller seam resolution) for zero probe benefit. Not pursued. ast_importers unaffected (7).
v0.249.11P6.35: plan_agent_given_deps (project.rs) no longer spells an explicit &AgentDecl type annotation — the loop body’s own a.handlers field access already pins the element type through inference, the same fully-mechanical finish the completion plan named for this function. Investigated and confirmed, no code change needed: unit_table_uses_emit/called_cross_context_services’s own remaining Block/Expr sites are walk_block_exprs’s own callback signature, the same Q7-deferred body-walking-plumbing shape as every other still-AST-typed rendering parameter in this track — no IR-native body walker exists to route through instead until a future P6.2 emitter-side cutover lands, so this is not fixable within this slice’s scope. instantiate_provider_expr confirmed already AST-free, as the plan itself already found. ast_importers unaffected (7) — project.rs retains other, still-open AST surface (own_contract_hashes, build_output’s declaration reads, etc).
v0.249.10P6.33: re-settled the #1137 completion plan’s own Phase D question — does the TypeRef-driven JSON/wire codec layer belong to phase 6 or phase 7? Ruled phase 7: emitter/serialisation.rs holds no CommonsItem-declaration-read surface at all, only the codec renderer itself, the same “how do I render this as TS source” question Q7 already settled belongs to the eventual printer. serialisation.rs joins AST_IMPORTER_EXCEPTIONS on those grounds (a phase boundary, not Q7 residue or test-only reach); emitter.rs was considered and rejected for the same treatment since it mixes real, still-open declaration-read surface in among its own codec-adjacent TypeRef sites. Also ruled: Q7 rendering-signature params were already settled by Q7 itself, not a new question; project.rs’s own_contract_hashes is a wire-format concern named as a likely future residual floor, not excluded now since project.rs has other convertible surface; IrExprKind::Call’s own Callee field is ruled entirely out of R6.13’s frame (bynk-check-internal, not bynk-emit’s business). ast_importers: 8 -> 7.
v0.249.9P6.32: emitter.rs’s three near-identical file_mentions_json_error/_http_result/_connection predicates now share one marker-parameterised recursive TypeRef walk (type_ref_mentions) instead of each hand-rolling its own ~20-line copy, differing only in which wrapper variant stops the recursion. file_mentions_json_error and file_mentions_http_result’s outer CommonsItem enumerations were also byte-identical and now share one commons_mentions_type helper; file_mentions_connection keeps its own distinct outer walk (it additionally checks agent store fields, a Connection can live nowhere else) but reuses the same shared inner walk. Four new unit tests pin the marker-vs-recurse truth table explicitly, since a marker’s own wrapper variant stops the recursion (matching each original’s own unconditional true arm) rather than also searching its own inner type. Deliberately did not convert to a TyId-based walk — these are declared signature/type positions with no resolved TyId available without threading checker resolution through every call site, out of proportion to a pure deduplication. ast_importers unaffected (8) — these three functions were never why emitter.rs is counted.
v0.249.8P6.31: emitter/workers_entry.rs’s eight HandlerKind matches (route collection for HTTP/cron/queue/websocket-open/event handlers) now dispatch on the checker-classified IrHandlerKind instead of the raw AST HandlerKind directly — same pattern P6.30 established in emitter/workers.rs. The HttpRoute-building arm re-derives method/path from the original AST for HttpRoute’s own still-AST-typed fields (Q7-settled); the Cron arm’s expr is a plain String in both forms, so no re-derivation was needed there. HttpRoute/QueueRoute’s own struct fields (method: HttpMethod, handler: Handler, msg_type: Option) and the file’s three ServiceProtocol checks are left as raw AST — emit_worker_entry has no TypedCommons in scope (the same constraint P6.30 found), and widening HttpRoute/QueueRoute or IrHandler is an explicit stop-and-defer per the completion plan rather than a speculative widening. ast_importers unaffected (8) — workers_entry.rs retains other, still-open AST names.
v0.249.7P6.30: emit_worker_compose (emitter/workers.rs) dispatches on the checker-classified IrHandlerKind instead of matching the raw AST HandlerKind directly, for both its has_ws_open predicate and its main per-handler wrapper-selection match — the decision of which wrapper to call is now IR-driven, though each wrapper’s own body-rendering signature stays AST-parameter-driven (Q7-settled). emit_worker_compose has no TypedCommons/CheckedProgram in scope (only a table: &UnitTable), so the one remaining raw ServiceProtocol::WebSocket check inside the Message arm stays AST-typed — lower_protocol_ir_from_commons is not reachable here without threading a new parameter through, a real scoping finding narrower than the completion plan’s own estimate for this slice. ast_importers unaffected (8) — workers.rs retains other, still-open AST names.
v0.249.6P6.29: cap_op_param_names (emitter/lower.rs) reads a new capability_op_sig_from_commons helper in ir/lower.rs instead of walking CommonsItem::Capability/c.ops by hand — the walk itself is unchanged (nothing IR-native replaces “find the op named op on the capability named cap” as a lookup), just relocated to an excluded file. Both current behaviours preserved exactly: first match in item order, empty result (not a panic) when the capability or op is not found. ast_importers unaffected (8) — emitter/lower.rs has other, still-open AST names remaining.
v0.249.5P6.28: RuntimeUse::json_codec_roots now carries the checker’s own TyId instead of a re-derived TypeRef — both push sites in emitter/lower.rs already held the TyId before converting it, purely to satisfy this field’s old type, so the conversion moves to the single drain site (project/tests_emit.rs) immediately before collect_codec_closure, the one remaining consumer that is still genuinely TypeRef-driven. emitter/ty_to_type_ref is now pub(crate) so that drain site (a sibling module tree, not a descendant of emitter) can call it. ast_importers: 9 -> 8, emitter/runtime_use.rs cleared — the first file this completion plan has fully cleared.
v0.249.4P6.27: re-exported bynk_syntax::ast::ExprId as bynk_check::checker::ExprId and retargeted bynk-emit’s two direct-ExprId sites (project.rs, emitter.rs’s sum_owner_of_variant) to it — enabling only, no behaviour change. The checker’s own public API already traffics in ExprId (expr_types and Callee are both HashMap<ExprId, _>, Q2’s own settled totality story), so this exposes an already-public dependency rather than adding one, and preserves the exact identity the checker keyed by (a bynk-emit-local id type would not). ast_importers unaffected (9) — neither retargeted site was the reason either file was counted.
v0.249.3P6.26: deleted the five use bynk_syntax::ast::*; glob imports in bynk-emit (emitter.rs, project.rs, emitter/workers.rs, emitter/workers_entry.rs, emitter/serialisation.rs), adding each file its own explicit, minimal import list — a mechanical no-behaviour-change refactor. emitter/emit.rs and emitter/lower.rs each carried a module-level use super::*; inheriting emitter.rs’s own glob (Rust’s own privacy rule makes a parent module’s private use visible to descendant modules), so both also gained their own direct explicit list — but that use super::*; channel itself was narrowed, not closed: emit.rs (4,632 lines, 168 AST type references, previously zero literal occurrences of the counted string) still inherits whatever emitter.rs continues to expose. Review (#1259) found this left a durable false-zero hazard for a future slice that deletes a child’s own list while the channel and the parent’s own AST dependency both remain, so the ast_importers probe itself (xtask/src/greenfield_status.rs) now also counts any file with a module-level use super::*; whose parent module still imports the AST — catching not just emit.rs/lower.rs but project/diagnostics.rs, a third, currently AST-free file exposed to the identical latent channel. ast_importers rises 7 -> 9 as a direct, deliberate consequence of both changes — the probe becoming durably honest, not a regression.
v0.249.2P6.21: emitter/lower.rs’s lower_method_call now reads Callee::Store/Callee::Query (P6.0) to detect a held store Map[K, Connection] field’s method receiver, instead of the raw !cx.is_local(&id.name) name check — another real instance of R6.5’s name-matched-receiver defect class. A held map’s entry ops (put/remove/contains/size/get) resolve as Callee::Store and its lifted query ops (e.g. parTraverse) resolve as Callee::Query, through the same checker StoreField::Map dispatch as any ordinary storage map — both variants are matched, mirroring the ordinary (non-held) Map branch’s own guard. agent_held_map_frame stays as a separate side-table lookup: it answers which kind of store field this is (held vs ordinary), not the shadowing question Callee already settles. Caught and fixed a real regression during development (a too-narrow Callee::Store-only guard silently excluded Callee::Query ops like parTraverse, producing a redundant double-wrapped IIFE for held-map broadcast fixtures) before landing — confirmed by a zero-diff bless against the entire e2e fixture corpus, including 238_websocket_inbound_workers, the fixture that caught the too-narrow guard.
v0.249.1P6.21: emitter/lower.rs’s lower_method_call now reads Callee::Capability{cap:“Events”, op:“emit”} (P6.0) to detect an Events.emit[E](event) call, instead of the raw id.name == “Events” && method.name == “emit” name match — another real instance of R6.5’s name-matched-receiver defect class, the same one project.rs’s own unit_table_uses_emit already closed for the identical classification. cx.is_first_party_events() stays as a separate, still-needed guard: it answers which provider/target the emitted TS should call, a different question than whether this expression is really an Events.emit capability call at all. Verified by a full zero-diff bless against the entire e2e fixture corpus, including every Events.emit call site in the corpus. No probe movement (project.rs was already counted).
v0.249.0P6.23: project.rs’s EventSubscriberShape accumulator now reads two_param_handler/schema_dispatch off a real IrItem::Service (lower_service_item_ir, P6.11), instead of walking a matching service’s own s.handlers/s.protocol directly. The cheap ServiceProtocol::Events pre-filter stays — a structural check of which services even have a shape to capture, not a resurrected raw-AST read — before paying for a full body-lowering pass on a matching service. Safe as of #1254 (the P6.23 safety investigation this closes): a catch_unwind probe wrapping lower_service_item_ir across the entire e2e fixture corpus found zero panics, down from ~51 when the investigation began. This is the first real, shipped emitter call site for IrItem::Service/lower_service_item_ir — dormant since P6.11 (#1171). Verified by a full zero-diff bless against the entire e2e fixture corpus, including 1232_events_envelope_schema_dispatch_bare, the fixture that pins the schema_dispatch half of this exact predicate. ast_importers unaffected (project.rs was already counted)
v0.248.15P6.23: the two remaining root causes from the safety probe are root-caused and fixed, bringing lower_service_item_ir’s own panic count from ~51 across 20 services down to zero across the entire e2e fixture corpus. (1) lower_service_handler_ir called the agent-oriented lower_handler_signature_ir (which correctly panics on a resolve miss for an agent handler, whose own param type the checker does guarantee resolves) instead of its real sibling lower_service_handler_signature_ir — already graceful (falls back to Unit) since it was written, but never reached from this call site; lower_service_handler_body_ir’s own param loop carried the identical panic independently and is fixed the same way. (2) a qualified nullary sum-variant reference (Region.International) parses as ExprKind::FieldAccess, but the checker’s own check_field_access intercepts this shape — a bare-Ident receiver naming a declared sum type owning a matching variant — before ever independently type-checking the receiver, so the receiver’s own ExprId never gets a recorded type; lower_expr_ir’s FieldAccess arm now mirrors that same dispatch instead of unconditionally recursing into the receiver, producing IrExprKind::Variant directly. Verified by the full ir:: unit suite (133/133, two new pinning tests) and a full zero-diff bless against the entire e2e fixture corpus. lower_service_item_ir (and by extension a real IrItem::Service enumerator) is now safe to call on every real production service body in the corpus
v0.248.14P6.23 (real progress): bynk-emit::ir::lower’s lower_ident_ir now lowers a bare HttpResult/QueueResult nullary variant reference (NotFound, Ack) to a real IrExprKind::Call{callee: Callee::Intrinsic, args: []}, the same shape lower_call_ir already produces for the call-with-args sibling (Retry(reason)), instead of panicking. lower_ident_ir gained a new expr_id: Option parameter (Some at its one real call site with a genuine ExprId, None at its two shorthand-record-field call sites which have no ExprId of their own) so it can consult the checker’s own Callee::Intrinsic sink (#1251). This is the bare-value sibling of P6.20-pre’s own IrExprKind::StoreQuery fix, closing the gap GlobalRef’s own doc comment named as the reason HttpResult/QueueResult were dropped from Decision C’s scope during implementation. Fixed an existing test whose own proof technique relied on this bug as a signal (a_queue_services_on_message_handler_reaches_ordinary_body_lowering_not_the_websocket_deferral used to prove a queue message handler is not deferred to the WebSocket path by asserting the body panicked on this exact gap; now asserts the real lowered shape directly). Re-running the P6.23 safety probe (a catch_unwind wrapper over lower_service_item_ir across the full e2e corpus) after this fix plus #1251/#1252 found panics dropped from ~51 across 20 services to 5 across 1 service — the two remaining root causes (a genuine ADR 0334 checker/IR-lowering type-disagreement, and a handler-param resolve-miss) are real bugs, not design questions, and stay for their own follow-up. Verified by the full ir:: unit suite (131/131) and a full zero-diff bless against the entire e2e fixture corpus
v0.248.13P6.21 (closing the last gap): emitter/lower.rs’s remaining HttpResult/QueueResult branches now read the Callee::Intrinsic sink #1251 added, instead of a bare id.name == HTTP_RESULT check (lower_method_call’s qualified-with-args and qualified-nullary forms) or a Ty::HttpResult/Ty::QueueResult type check plus a bare http_variant/queue_variant keyword lookup (lower_ident’s bare-nullary form, lower_call’s bare-with-args form). The qualified-with-args forms close a real instance of R6.5’s name-matched-receiver defect class the same way every other P6.21 slice this session did; the two type-checked forms were already immune to name-matching and are converted for consistency with the rest of this module, not a new defect closure. Verified by a full zero-diff bless against the entire e2e fixture corpus, including test-body fixtures. This closes P6.21’s own HttpResult/QueueResult gap in full — every real dispatch site in emitter/lower.rs for these two built-in result types is now Callee-driven
v0.248.12P6.21/P6.23 (checker-side): bynk-check’s checker.rs now records Callee::Intrinsic for HttpResult/QueueResult bare-variant construction at all 8 real dispatch sites (bare Ident, Call, ConstructorCall, FieldAccess for HttpResult’s nullary form, MethodCall) — the sink GlobalRef’s own doc comment in bynk-emit’s ir.rs named as the reason Decision C (#1143) left this shape out of scope entirely: the checker’s own disambiguation (expected/ctx.return_ty peeling, deciding whether NotFound resolves to HttpResult or a same-named user sum variant) is contextual/position-dependent, so a downstream reader had no recorded decision to read back without re-deriving the same logic. Purely additive — no existing Callee entry is overwritten, no control flow or diagnostic changes, so this PR is zero-diff by construction (nothing reads the new entries yet). Verified by the full bynk-check unit suite (157/157) plus a full zero-diff bless against the entire e2e fixture corpus
v0.248.11P6.21 (partial, continued): emitter/lower.rs’s two agent-method-call branches (inline Agent(key).method(args) and let-bound x.method(args) after let x = Agent(key)) now read Callee::Agent (P6.0) instead of cx.local_agents.contains(&name.name)/cx.local_agent_vars.contains_key(&id.name) — a real instance of R6.5’s name-matched-receiver defect class: the checker records Callee::Agent uniformly whenever a receiver’s checked type resolves to an agent, covering both AST shapes (and the self-agent WebSocket-transfer special case nested inside the first) from one classification, where the old code re-derived the same fact twice from a bare name. cx.local_agent_vars stays consulted inside the let-bound branch’s own body — it still answers which agent a bound name refers to (needed for record_agent_call’s bookkeeping and the #908 rename resolution), a different question from whether the receiver is an agent instance at all. Verified by a full zero-diff bless against the entire e2e fixture corpus
v0.248.10P6.21 (partial, continued): a real bug fix plus the Intrinsic-branch conversion #1247 previously reverted. bynk-check::test_suites::typecheck_case_body now returns its own callees map instead of discarding it — its emit-path callers (bynk-emit’s synthetic_typed_commons_for_target consumers) previously received expr_types only, so Callee classification (Callee::Intrinsic, Callee::Store, etc.) was silently never recorded for anything inside a .test.bynk case/property body, even though this function computed it correctly all along. With that fixed, emitter/lower.rs’s built-in static-constructor branches (List/Map.empty, Int/Float.parse, Duration.millis, Instant.fromEpochMillis, Bytes.fromUtf8/fromBase64/empty, Stream.of) now read Callee::Intrinsic instead of a bare id.name == X check — closing the same latent shadowing gap the previous P6.21 PRs already closed elsewhere (List/Map/Duration/Instant/Bytes/Stream never checked cx.is_local(&id.name), unlike every other converted branch; the checker’s own ctx.lookup(X).is_none() guard, present before every Callee::Intrinsic insertion, is strictly more correct). Verified by a full zero-diff bless against the entire e2e fixture corpus, including the two fixtures (814_messages_icu_date_styles, 917_bytes_in_test_case) that caught the original gap in #1247
v0.248.9P6.21 (partial, continued): emitter/lower.rs’s lower_method_call now reads the checker’s own Callee::Store/Callee::Query classification (P6.0) for storage Map/Set/Cache/Log operations, instead of !cx.is_local(&id.name) — a real instance of R6.5’s name-matched-receiver defect class, the same one body_writes_state/#1196 already closed for write-detection. The per-kind side-table lookups (cx.is_agent_store_map/set, cx.agent_store_cache_ttl, cx.agent_store_log_retain) stay unchanged: they answer a different question (which store kind this field is, needed to route to the right branch) than the shadowing question Callee already settles. Held-map connection ops (a different, real-time concept) and Cell (never reaches these branches — bound into ordinary scope, not name-matched) are untouched, as are the four branches this session’s own earlier P6.21 slice already left alone (HttpResult/QueueResult bare-variant construction, Events.emit — no Callee recorded for these at all) and the rest of lower_method_call’s own ~15 remaining branches. Verified by a full zero-diff bless against the entire e2e fixture corpus
v0.248.8P6.21 (partial): emitter/lower.rs’s lower_call now reads the checker’s own Callee classification (P6.0) for agent construction (Callee::AgentInit) and sum-variant construction (Callee::Ctor) instead of re-deriving them — cx.local_agents.contains(&name.name) and call_is_sum_variant’s own sum_name/call_name string comparison, both real instances of R6.5’s name-matched-receiver defect class (the same one block_writes_state carried before #1196 converted it to read Callee::Store directly). call_is_sum_variant is retired (its one call site is gone). HttpResult/QueueResult bare-variant construction and Events.emit are deliberately left on the old Ty-based path — Decision C (#1143) never gave those a Callee classification at all (GlobalRef’s own doc comment in ir.rs names why), so converting them needs a real checker-side design decision first (tracked separately), not attempted here. lower_method_call (the larger, ~900-line dispatcher) is also untouched — this is a bounded first step, not the full P6.21 cutover. Verified by a full zero-diff bless against the entire e2e fixture corpus: byte-identical generated output for every fixture, confirming the Callee-driven read produces the same dispatch decisions the name-matched code did for every real construct the corpus covers
v0.248.7P6.20-pre: bynk-emit::ir::lower now lowers a bare store Map[K,V] field name used as a value (not a method-call receiver) to a new IrExprKind::StoreQuery(String), instead of panicking. Found empirically, not assumed: the completion plan for #1137 called for verifying — before P6.20 — that real fixture-corpus agent/provider bodies don’t hit lower_ident_ir’s other fallback todo!()s beyond Question/Is; a direct catch_unwind probe over every agent/provider in the full e2e fixture corpus found 4 real panics (Sales/orders via lines.joinOn(orders, ...), an argument-position bare-Map reference per ADR 0120; Inventory/items, Ledger/balances via .entries/.keys/.values, a FieldAccess-receiver-position bare-Map reference per ADR 0184) — all four now resolve cleanly, confirmed by re-running the same probe against the full corpus with zero remaining panics. Only Cell fields were ever bound into lower_handler_body_ir’s own scope (v0.81’s implicit-deref rule); Map fields are not value types (StoreField’s own doc comment) so a real fix couldn’t just widen that binding — a new LowerIrCtx.store_queryable table plus a new IrExprKind variant, mirroring checker.rs’s own ExprKind::Ident dispatch (Ty::Query(V), ADR 0120) rather than re-deriving it. Set/Cache/Log fields deliberately excluded — checker-unreachable there, not merely untested (review of #1240 found Log was wrongly included in the first draft: bynk-check never special-cases a bare Log value the way it does Map). The store-field dispatch is checked immediately after the existing cx.lookup guard, matching the checker’s own precedence (review of #1240 found the first draft checked it last, which silently mis-resolved a store field colliding with a free fn or nullary variant of the same name). Dormant as of this slice (same posture as Question/Is); verified by four unit tests (two AST shapes, a shadowing local, a colliding free fn), not bless
v0.248.6P6.16: bynk-emit::ir::lower’s ExprKind::Is (value is Pattern) now lowers to a real IrExpr — a forced receiver-temp Block wrapping either a new IrExprKind::RefinedCheck (for is DeclaredRefinedType) or a recursive boolean-test walk over the pattern (Wildcard/Binding/Literal/Variant-with-nested-payloads/Or), reusing P6.4’s already-shipped IrPat/lower_pattern_ir rather than re-deriving pattern structure. Scoped narrower than R5.9/R5.10’s combined framing suggested: traced directly against the shipped desugar, lower_is itself never constructs a narrowing binding (R5.9’s own cross-site &&/if scope-propagation machinery is a separate, still-open design question this slice does not settle) — only the forced receiver temp (R5.10) is is’s own concern, and that’s what this slice builds. Dormant as of this slice; verified by unit tests (refined-type check, bare/nested variant tests, or-pattern), not bless
v0.248.5Fixes for #1238’s own bot review, landed after that PR merged: LowerIrCtx::set_return_ty no longer panics on a resolve miss (it did so eagerly for every fn/handler/provider-op body lowered, including the vast majority that contain no ? at all — the same documented miss-possible case lower_service_handler_signature_ir already degrades gracefully for), embed_conversion_ir’s checker::compatible arguments now match check_question’s own (operand_err, fn_err) order, Return/HttpResultNotFound nodes carry their own returned-value type (was Unit) matching wrap_body_return’s convention, and Question/Is’s synthetic temp names now go through one shared fresh_tmp counter instead of fixed names (avoiding a duplicate-const collision if two ?/is land in one function under a future hoisting printer)
v0.248.4P6.15: bynk-emit::ir::lower’s ExprKind::Question (?) now lowers to a real IrExprKind::Match, generalising the reference document’s own Match{Ok,Err} sketch to bynk’s actual two-scrutinee-shape desugar — closing the load-bearing gap that blocked IrItem::Provider/IrItem::Service from ever getting a real emitter call site (internal only, no shipped emitter consumer of this dormant construction path exists yet — byte-identical output, confirmed by a zero-diff bless run)
v0.248.3P6.24a: IrHandler::kind is now a real IR-native mirror (IrHandlerKind/IrHttpMethod), not bynk_syntax::ast::HandlerKind reused verbatim; emitter.rs’s five purely-structural handler-kind/protocol header-import checks (has_http, has_queue, hosts_ws_open, hosts_ws_inbound, subscribed_event_type_names) now read it and the existing ProtocolIr (via a new TypedCommons-only lower_protocol_ir_from_commons sibling) instead of matching raw HandlerKind/ServiceProtocol directly — byte-identical output confirmed by zero-diff bless
v0.248.2P6.18: EmitProjectCtx::imported_methods/emit_forwarded_methods (a uses-imported type’s attached-method forwarding) reads a resolved FnSig (params/return_ty as real TyIds, via a new narrow lower_fn_sig_ir_from_types reader) instead of a raw FnDecl’s unresolved TypeRefs — the first real emitter consumer of bynk-emit::ir’s signature-only lowering pattern for a fn, byte-identical output confirmed by zero-diff bless
v0.248.1emit_composition_root’s event-fanout envelope-forwarding decision (wants_envelope) now reads a project-wide EventSubscriberShape accumulator, populated at each unit’s own check time, instead of reaching into a different, already-consumed unit’s raw UnitTable directly (#1232)
v0.248.0@cache’s maxAge must now resolve to an exact whole number of seconds — a positive-but-fractional value (e.g. 500.milliseconds, or 1500.milliseconds, which resolves to a real but wrong max-age=1) previously type-checked cleanly and then silently dropped the sub-second remainder at emit time rather than honouring it, with no diagnostic anywhere in the pipeline; now rejected at check time with a new bynk.http.cache_max_age_fractional_seconds diagnostic (#1230)
v0.247.71bynk-emit::emitter::workers_entry’s @cache/@limit route-annotation reading moves to bynk-emit::ir (lower_route_cache_ir/lower_route_limit_ir, #1228), so the two remaining hand-rolled ExprKind::DurationLit/Ident/IntLit matches in that file read the same already-resolved-literal IR path lower_policy_ir already established, rather than walking Handler::annotations directly (internal only, no CheckedProgram needed since neither reads a type — byte-identical output, confirmed by a zero-diff bless run against 298_http_caching/300_http_limits)
v0.247.70bynk-emit::ir’s IrExprKind::Variant no longer carries a sum: Arc identity field; Ok/Err/Some/None now lower to it directly (closing the todo!() blocking their construction, #1225) since the constructed sum’s own identity is already the wrapping IrExpr’s own TyId, the same way IrPat::Variant’s own scrutinee_ty already covers both a user-declared sum and a built-in one (internal only, no shipped emitter consumer of this dormant IR construction path exists yet — byte-identical output, confirmed by a zero-diff bless run)
v0.247.69bynk-emit’s emit_consumed_context_helpers now resolves a subscribed from Events(E) header’s own event type through ProtocolIr::Events’s already-resolved TyId (via lower_protocol_ir) instead of a raw match on ServiceProtocol::Events/TypeRef::Named, and emitter/lower.rs’s cap_op_param_names (trace(Cap.op)/with-predicate observation lowering) now reads a capability op’s parameter names off lower_op_sig_ir’s already-resolved OpSig instead of a second, independent AST extraction; ast_importers stays at 7 (both files already counted for other reasons) (internal only, byte-identical output)
v0.247.68AST_IMPORTER_EXCEPTIONS now also names project/tests_emit.rs, whose test/suite case bodies call straight into emitter.rs’s Q7-settled (design/tracks/the-ir.md §3.7) body-rendering pass and read a handler’s declared signature with no TyId available, the same shape #1176 already excluded for ir.rs/ir/lower.rs; ast_importers moves 8 to 7 — emitter.rs/emitter/lower.rs stay counted, since both still hold live, in-scope AST-declaration reads distinct from that body-rendering surface
v0.247.67add ActorSeamIr, a new IR type wrapping bynk-check’s five already-resolved actor-seam structs by value, and lower_actor_seam_ir, a narrow reader trying them in the one priority order that’s load-bearing (sum ahead of Bearer, since a sum’s own first peer can itself be Bearer-schemed); converts emit_service (emitter/emit.rs) and emit_worker_compose’s HTTP-dispatch match (emitter/workers.rs), the two call sites that actually branch on which of several resolvers succeeded, from independently re-deriving that branch to one shared, tested function (internal only, byte-identical output)
v0.247.66bynk-emit’s emit_agent now resolves a held store Map field’s own frame type through a new TyId-level held_frame_ty helper (recursing through Option/Effect, mirroring the checker’s own type_ref_is_held) instead of a bare TypeRef::Connection match — fixing a real, previously-uncovered gap where a Map[K, Option[Connection[F]]] value rendered the whole Option<Connection> wrapper instead of unwrapping to F (internal only; byte-identical output for every existing held-map fixture, all of which use a bare Connection)
v0.247.65bynk-emit’s emit_agent now derives which store fields are Sets, and each Map field’s @indexed key list, from the already-lowered StoreFieldIr/StoreKindIr rather than re-walking the raw AST store fields and their @indexed annotations a second time — the Set-derived TypeRef is still read for the rehydration boundary check (serialisation.rs’s own TypeRef-driven boundary, unconverted) (internal only, byte-identical output)
v0.247.64bynk-emit’s emit_agent reads each Cell/Map/Cache/Log state field’s TyId through the new lower_store_field_shape_ir IR reader (a shape-only sibling of lower_store_field_ir that never lowers a Cell field’s init expression) instead of ts_type_ref on the raw AST TypeRef, and resolve_store_field_ty now falls back to Ty::Unit on an unresolvable store-field type instead of an ADR 0334 panic, matching the checker’s own silent-fallback posture for a state the checker accepts but never actually validates (internal only, byte-identical output)
v0.247.63bynk-emit reads a handler’s/provider’s given clause through the new lower_handler_given_ir/lower_provider_given_ir IR readers everywhere it feeds a deps-type or cross-context decision (project.rs’s plan_agent_given_deps and EmitProjectCtx::agent_method_givens, emitter.rs’s agent_given_caps_used, emitter/emit.rs’s effective_given/build_deps_object_ty_with_surface/cap_ref_ty, emitter/workers.rs’s worker_cross_caps), instead of walking bynk_syntax::ast::CapRef directly at each site (internal only, byte-identical output)
v0.247.62emitter::block_uses_emit now reads the checker’s own resolved Callee classification instead of a bare-Ident(“Events”) receiver name match, closing a real disagreement with project.rs’s own unit_table_uses_emit (#1202) on a locally-shadowed Events type that could previously produce TypeScript failing tsc —strict
v0.247.61project.rs’s unit_table_uses_emit and called_cross_context_services now read the checker’s own already-resolved Callee classification (threaded forward from per-unit checking as a new RunChecks::Checked::unit_callees field) instead of re-deriving Events.emit/cross-context-call detection from raw AST method-call syntax (internal only, byte-identical output)
v0.247.60project.rs’s instantiate_provider_expr now reads a provider’s given clause from bynk-emit::ir (CapRefIr) instead of walking bynk_syntax::ast::CapRef directly; ProviderBody::External also gains the given field it was silently dropping (internal only, byte-identical output)
v0.247.59design/tracks/the-ir.md §6 reconciled with how slices 4/5 of #1187 actually landed (both narrowed hard, not the structural cutovers the table’s own row implied) and how Provider and slice 6 (project.rs cleanup) still stand — no Rust code changes
v0.247.58emit_service now reads a handler’s resolved signature (params/return type/effectful-ness) and a service’s protocol data from bynk-emit::ir instead of walking bynk_syntax::ast TypeRefs/ServiceProtocol directly (internal only, byte-identical output — no language surface change)
v0.247.57An agent handler no longer gets an unnecessary implicit-commit wrapper when a locally-shadowed name (e.g. a handler parameter reusing a store Map/Set/Cache/Log field’s name) merely looks like a store write by name — write detection now reads the checker’s own resolved dispatch instead of matching bare identifiers (R6.5). Cell fields were never affected by this shadowing gap
v0.247.56bynk-emit::ir gains IrExprKind::BinOp/Neg/InterpStr — comparison, arithmetic, unary negation, and string interpolation now lower to real IR nodes instead of panicking (internal only, no language surface change)
v0.247.55P6.x cutover slice 3 (design/tracks/the-ir.md §5/§6, #1193, #1187, narrowed — Provider deferred) — emit_capability now reads each capability op’s resolved params/return type off OpSig (bynk-emit::ir, built by lower_capability_item_ir/lower_op_sig_ir) through ts_ty, instead of walking CapabilityOp::params/return_type TypeRefs through ts_type_ref directly. emit_capability gains new ops (&[OpSig]) and commons (&TypedCommons) parameters (c (&CapabilityDecl) stays too — IrItem::Capability::def is a bare String, carrying neither documentation nor an Arc back to the declaration); its one call site (emitter.rs’s emit_project) lowers the IrItem::Capability inline, no new helper (a single caller doesn’t earn one, unlike type_shape_for’s three). Provider is deliberately not converted in this slice — despite #1187’s own pairing — because a ProviderOp always carries a real body, and lower_provider_op_ir routes it through lower_expr_ir, which still hits #1189’s open comparison/arithmetic BinOp gap; Capability ops are signature-only, no body, so no such surface exists. ast_importers does not move (emit.rs stays invisible to the probe, same as slice 1). Two accepted, narrow behaviour differences, both only reachable through a capability op since the resolver skips CommonsItem::Capability outright (context_checks::build_capability_op_info’s own pre-existing leniency) — no valid program can reach either: a param/return type name the checker never validates rendered as its raw undefined name before this slice and renders as void after, and a History type ref rendered as ts_type_ref’s “never” before this slice and renders as void after, since lower_op_sig_ir’s own resolve-or-Unit fallback treats both misses the same way. No other author-facing behaviour change; differential tests (bynk-emit/src/emitter/emit.rs, capability_op_sig_emission_tests) cover a multi-op capability, a named param/return type, and — new relative to the prior IrItem::Type/Fn cutover slices’ own corpus — a generic op’s own rigid type variable, through the project emission pipeline (capability is a context-only construct, so it never reaches the single-file emit() path)
v0.247.54P6.x cutover slice 2 (design/tracks/the-ir.md §5, #1191, #1187) — emit_wrangler_toml no longer matches HandlerKind::Cron/ServiceProtocol::Queue off bynk_syntax::ast directly; its one call site (project.rs) collects the sorted+deduped cron-expression and queue-name lists and passes them in, since project.rs already imports bynk_syntax::ast and no project-wide IrItem::Service is built there to route through instead (IrHandler::kind reuses HandlerKind unchanged even where one is, so converting to bynk-emit::ir would not have removed the cron match anyway). ast_importers moves 9 to 8. emitter/runtime_use.rs, originally paired with wrangler.rs in #1187’s own table as a joint trivial sweep, is deliberately untouched — its TypeRef field is downstream of emitter/serialisation.rs’s still-AST-driven JSON-codec renderer, a real, separate, unscoped conversion, not a relocation like this one. No author-facing behaviour change; every cron/queue wrangler.toml fixture is byte-identical to main’s output
v0.247.53The first bynk-emit::ir cutover slice (design/tracks/the-ir.md §5, #1188, #1187) — emit_type/emit_record_type/emit_sum_type/emit_refined_type now read TypeShape (bynk-emit::ir, built by lower_type_item_ir) instead of walking bynk_syntax::ast::TypeDecl/TypeBody directly. emit_project takes &CheckedProgram instead of &TypedCommons, deriving commons internally (mirrors emit()‘s own existing precedent) so lower_type_item_ir has a CheckedProgram to lower against; the emission loop resolves each type’s canonical Arc from TypedCommons::types (a table that, found during implementation, already holds an identical entry for every event’s own synthetic TypeDecl too, so one type_shape_for helper serves both the Type and Event emission loops with no special-casing). Record/sum field and variant-payload types render via ts_ty(TyId, &Arc) — the existing checker-Ty renderer already used by inline kernel-method lowerings — instead of ts_type_ref(&TypeRef); refined/opaque types are unaffected (TypeShape::Refined keeps its refinement as the unlowered AST Refinement node, never routed through lower_expr_ir, which is why Type — unlike Fn — was safe to convert ahead of the still-open comparison/arithmetic BinOp gap, #1189). A type’s own attached methods (emit_attached_methods) stay on the untouched, unconverted body-lowering path — out of this slice’s scope, Fn territory. No author-facing behaviour change; differential tests (bynk-emit/src/emitter/emit.rs, type_shape_emission_tests) cover record/generic-record/sum-with-embeds/refined/opaque emission through both the single-file and project emission pipelines
v0.247.52P6.14 (design/tracks/the-ir.md §6, #1174) — bynk-emit::ir gains IrItem::Provider, the sibling assembly to P6.12’s IrItem::Capability, plus ProviderBody, the type the reference’s own body: ProviderBody // Bynk ops
v0.247.51Redefine the ast_importers greenfield-status probe (design/tracks/the-ir.md §5/§6, #1176) so it can meaningfully reach 0 for phase 6. P6.9’s own grounding pass (#1167) found the probe’s crate-wide bynk_syntax::ast match necessarily counts bynk-emit::ir/ir/lower.rs’s own legitimate Ast → Ir lowering import, a floor this track’s own IR module structurally cannot clear. Settled by a small, named exclusion list (ir.rs, ir/lower.rs) rather than a path-prefix rule scoped to emitter/**: project.rs and project/tests_emit.rs also import bynk_syntax::ast today (EmitProjectCtx holding ActorDecl/AgentDecl fields directly; test/suite emission reading TypeRef/HandlerKind), and that import is exactly the still-open R6.13 defect this probe exists to track (P6.6’s own “closes the emitter reading AST declarations directly”), not a lowering-pass import — a prefix rule would have silently excluded both files along with ir/’s legitimate two. Mirrors the same permanent-carve-out discipline fs_below_driver’s NAMED_FS_EXCEPTIONS and emit_diagnostics’s registry cross-reference already use. ast_importers now reads 9 (was 11); design/greenfield-status.md regenerated via cargo xtask greenfield-status —apply, which also picks up unrelated trend-probe drift (wildcard_arms, keep_in_sync, test_density) accumulated since the table was last committed. No emission-behaviour change
v0.247.50P6.13 (design/tracks/the-ir.md §6, #1179) — bynk-emit::ir now lowers a from websocket service’s on open/on message/on close handler body, closing the one gap P6.11 (#1171) left behind (ProtocolIr::WebSocket was already real; only handler-body lowering was deferred). lower_service_handler_ir no longer todo!()s on this case: it re-derives the synthetic connection: Connection[out] binding the checker injects into its own params_for_check only (open_connection_param, context_checks.rs), seeds it into the body-lowering scope via lower_service_handler_body_ir (now accepting an optional connection binder alongside the existing binder), and never adds it to IrHandler::params — mirroring the checker’s own asymmetry exactly. A new ConnectionBinder type (ty, borrowed) carries the checker’s own owned-vs-borrowed linearity distinction (borrowed_held) into the IR for the first time: false for on open (fresh owned socket, disposed via transfer), true for on message/on close (the borrowed firing socket). IrItem::Service assembly (lower_service_item_ir) is now buildable for a real from websocket service end-to-end. No bynk-emit emission-behaviour change — still no consumer of bynk-emit::ir.
v0.247.49design/tracks/the-ir.md gains §3.7 (Q7, #1175), settling the-ir.md’s own real completion criterion — what §5’s “emitter/lower.rs’s AST-walking functions call only into bynk-emit::ir’s lowering pass” requires structurally, given the reference’s own TsProgram/printer split (Part 7.1, R7.2/R7.3) is phase 7’s job, not this phase’s, and no bynk-ts crate exists yet. Decision: emitter/lower.rs keeps writing TypeScript source text via its existing Lowered { pre: Vec, expr: String } shape (T2.1/R6.2) after the cutover — that cannot change until phase 7’s printer exists, which this track’s own §2 already excludes. What changes is only what each lower_* function reads: today they re-derive dispatch/commit-shape/store-target decisions from a fresh bynk_syntax::ast::Expr walk (lower_method_call/lower_call’s own “the order is load-bearing” guard chains, block_writes_state’s name-matched receiver); post-cutover they read those same decisions off an already-lowered IrExpr/IrItem/CommitShape/StoreFieldIr value bynk_emit::ir::lower computed once. Confirmed live (main@7f5115ee): zero crate::ir references anywhere in emitter.rs/emitter/*.rs — the cutover has not started. §5 gets a short cross-reference to this finding. No Rust code changes; this issue remains a scoping placeholder per its own framing — the cutover’s own slicing is not proposed here, gated on Provider (#1174) and the ast_importers probe redefinition (#1176)
v0.247.48P6.12 (design/tracks/the-ir.md §6, #1173) — bynk-emit::ir gains IrItem::Capability, the sibling assembly to P6.10’s IrItem::Agent and P6.11’s IrItem::Service, plus OpSig, the type the reference’s own ops: Vec sketch names but never defines. OpSig adapts CapabilityOp — a signature only, no body — under this module’s already-established “no arena” substitutions: params: Vec<(String, TyId)> mirrors IrItem::Fn::params exactly, and type_params: Vec mirrors the checker’s own already-resolved CapabilityOpInfo::type_params. lower_op_sig_ir resolves each op’s own params/return_ty in that op’s own rigid-variable scope (a capability op’s type parameters are scoped to the op itself, not the capability, unlike a method’s generic receiver), the same per-op treatment bynk-check::context_checks::build_capability_op_info already gives a generic op — a generic op’s own T survives as Ty::Var(“T”) rather than collapsing to Ty::Unit. Review of #1182 found a capability op’s own params/return_type are never actually resolution-checked upstream (the resolver skips CommonsItem::Capability outright, and check_capability_decls only records refs, never errors on a miss), so lower_op_sig_ir falls back to Ty::Unit on an unresolvable name rather than an ADR 0334 panic — mirroring build_capability_op_info’s own fallback and lower_agent_item_ir’s own key_ty precedent (#1169), not asserting a checker guarantee that does not actually hold. No bynk-emit emission-behaviour change — every existing e2e/emission fixture passes unmodified, and still no consumer of bynk-emit::ir
v0.247.47bynk-emit::ir’s own IrItem doc comment records the real, evidenced resolution of #1172 (whether to add an IrItem::Actor variant): a settled non-build decision, not an unbuilt gap. The reference’s own sketch (Actor { def, scheme: AuthScheme, identity: Option, claims: Option }) is the wrong shape for this codebase on three independent findings: claims: Option is unbuildable, not merely unbuilt (an actor refinement’s own hasClaim/claimEquals predicate is validated only structurally, with no Callee, no expr_types entry, no typing at all, since claims are deliberately untyped JSON lowered straight to a JS string); scheme: AuthScheme names a type the reference never defines, though a real 5-variant candidate already ships (bynk-check::actors::Scheme); and, decisively, every real consumer of actor data (the shipped emitter’s five seam resolvers, and the reference’s own R8.11/R8.13) is handler-keyed, not declaration-keyed, which is exactly why the two actor-shaped IR additions that did have a real consumer (ActorBinder, and IrHandler’s own actors: Vec) both landed on IrHandler rather than a new IrItem variant. No Rust code changes; IrItem still has no Actor variant, and this doc-only PR records why that is now a settled decision rather than an open question (#1172)
v0.247.46P6.11 (design/tracks/the-ir.md §6) — bynk-emit::ir gains IrItem::Service, the sibling assembly to P6.10’s IrItem::Agent, plus the two types the reference names but never specifies: ProtocolIr (six variants, one per real trigger per E2 — Call/Http/Cron carry no payload because the binding lives per-handler on HandlerKind) and PolicyIr/CorsIr/SecurityIr, which interpret rather than pass through ServiceDecl’s cors/security/limits blocks through the same typed accessors the shipped emitter already uses, so security: None materialises the safe defaults (nosniff on) instead of re-exporting the ambiguity. policy is Option, present only for a from http service, mirroring StoreFieldIr::init’s own kind-gated Option rather than the reference’s unconditional field: an unconditional PolicyIr on a from queue service would assert header behaviour the emitter never produces. lower_service_handler_ir is a sibling of lower_handler_ir, not a widening of it — the two seed disjoint scopes, and widening would delete the agent-only assertion that catches exactly this miswiring — and it reads a handler’s actor binding back from TypedCommons::actor_bindings (#1170), making IrHandler::binder non-None for the first time. A from websocket lifecycle handler’s body hits a named todo!() rather than a wrong tree (the synthetic connection param is checker-injected and never present in h.params; follow-up tracked as #1179); the ProtocolIr::WebSocket descriptor itself lowers for real. No bynk-emit emission-behaviour change — every existing e2e/emission fixture passes unmodified, and still no consumer of bynk-emit::ir (#1171)
v0.247.45bynk-check gains TypedCommons::actor_bindings — a service handler’s own resolved by : actor binding (handler_actor_binding’s own return value, context_checks.rs), keyed by the handler’s own span and persisted into CheckedProgram rather than discarded once check_service_decls’s per-handler loop moves on. Closes the sole blocker IrHandler’s own doc comment (bynk-emit/src/ir.rs) named for lower_handler_ir (P6.9, #1167) to stop being agent-only: a post-certify consumer can now read a service handler’s actor binding back, though lower_handler_ir itself is not widened to do so here (tracked separately, #1171). No bynk-check emission/diagnostic behaviour change — every existing e2e/checker fixture passes unmodified (#1170)
v0.247.44P6.10 (design/tracks/the-ir.md §6) — bynk-emit::ir gains IrItem::Agent, assembling every P6.7-P6.9 ingredient (StoreFieldIr since P6.7, CommitShape/IrPredicate since P6.8, IrHandler since P6.9) that had no IrItem variant to land in until now — the gap P6.9’s own Risks section named without numbering it. lower_agent_item_ir computes an agent’s store_cells/state_ty once (derived from its own already-lowered StoreFieldIr::Cell entries, not re-resolved independently) and reuses them for every downstream lower_store_field_ir/lower_invariant_ir/lower_transition_ir/lower_handler_ir call, wiring every prior slice’s own standalone constructor rather than re-deriving any of their logic. invariants/transitions are lowered once and threaded into every handler’s own lower_handler_ir call so a store-writing handler’s own Transactional commit carries the agent’s real predicates, not the empty pair a caller could otherwise silently forget to populate. IrItem::Service/Actor/Capability/Provider remain deferred, each with its own distinct blocker (see IrItem’s own doc comment). No bynk-emit emission-behaviour change — every existing e2e/emission fixture passes unmodified, and still no consumer of bynk-emit::ir (#1169)
v0.247.43P6.9 (design/tracks/the-ir.md §6) — bynk-emit::ir gains IrStmt::Assign/ActorBinder/IrHandler (Part 6.7’s own trailing construct, R6.16): real, standalone, tested constructors for an agent on call handler, the same posture P6.4 set for IrPat/IrArm/Exhaustive and P6.7/P6.8 set for StoreFieldIr/CommitShape — no IrItem variant references IrHandler yet (IrItem::Agent/Service remain unconstructed; see IrItem’s own doc comment for exactly what still blocks them). Also closes a prerequisite gap twice deferred by P6.7’s and P6.8’s own Risks sections: Statement::Assign’s own IrStmt target, todo!() since P6.1, becomes a real IrStmt::Assign — the checker’s own target resolution never keys a Callee for a cell := write, so no ExprId-keyed sink was ever actually needed. lower_handler_ir is agent-only: binder is always None, checker-enforced by bynk.actor.by_on_agent (an agent on call handler cannot carry a by clause) — a real service handler’s own non-None binder needs a bynk-check change (persisting handler_actor_binding’s own resolved pair) this slice does not make. A new handler-body lowering entry point (lower_handler_body_ir, parallel to but distinct from lower_fn_body_ir) seeds scope from the agent’s own self/store cells/handler params, finally letting the existing generic Callee-wrapping call machinery (P6.2) and the new Statement::Assign arm reach a real handler body for the first time, with no new call-lowering logic needed. No bynk-emit emission-behaviour change — every existing e2e/emission fixture passes unmodified, and still no consumer of bynk-emit::ir. Also corrects design/tracks/the-ir.md’s own ast_importers completion-probe language: the probe’s crate-wide definition necessarily counts bynk-emit::ir’s own legitimate AST import, so the prose criterion (emitter/‘s AST-walking functions gone), not the probe reading 0, is this track’s own true finish line (#1167)
v0.247.42P6.8 (design/tracks/the-ir.md §6) — bynk-emit::ir gains CommitShape/IrPredicate (Part 6.7’s trailing two types, R6.15): real, standalone, tested constructors for a handler body’s own resolved one-of-three commit shape and an agent’s own lowered invariant/transition predicates, the same posture P6.4 set for IrPat/IrArm/Exhaustive and P6.7 set for StoreFieldIr/StoreKindIr — no IrItem variant references them yet (IrHandler itself still doesn’t exist; see IrItem’s own doc comment for exactly what still blocks it). lower_invariant_ir/lower_transition_ir seed a predicate’s own scope exactly as checker::check_invariants/check_transitions already do (a store Cell field by bare name; old/new bound to the agent’s synthetic state type) and lower it through the existing lower_expr_ir machinery unchanged. lower_commit_shape_ir decides Transactional/FlushEvents/ReadOnly from a new write-detection walk over the certified AST, keyed on a resolved Callee::Store entry’s own mutating op rather than a receiver’s bare name — closing the one real, safe-direction false positive the shipped emitter’s block_writes_state still carries (a local shadowing a store field’s own name). The mutating-op-name set block_writes_state already matched inline is factored into shared bynk-emit::emitter constants both walks now read, rather than duplicated a second time. No bynk-emit emission-behaviour change — block_writes_state/mutating_op keep their current output byte-for-byte, every existing e2e/emission fixture is untouched, and still no consumer of bynk-emit::ir (#1165)
v0.247.41P6.7 (design/tracks/the-ir.md §6) — bynk-emit::ir gains StoreFieldIr/StoreKindIr/IndexIr (Part 6.6’s trailing two structs, R6.14): real, standalone, tested constructors for an agent store field’s state shape and index-table keys, the same posture P6.4 set for IrPat/IrArm/Exhaustive — no IrItem variant references them yet (IrItem::Agent/Service still don’t exist; see IrItem’s own doc comment for exactly what still blocks them, IrHandler named but not yet commissioned by any slice). StoreKindIr covers all five functional storage kinds (Cell/Map/Set/Cache/Log; Queue cannot reach a certified program); Duration substitutes to i64 milliseconds throughout (extending ADR 0333’s precedent), and IndexIr is a plain String (the indexed value-field’s own name — the map’s own key type, not the indexed field’s, fixes the sibling table’s shape). lower_store_field_ir (taking a certified CheckedProgram) reads @ttl/@retain millis and @indexed(by: …) field names directly off the field’s own annotations, in declaration order (no sort — StoreFieldIr.indexed is scoped per-field, unlike the shipped emitter’s own doubly-sorted HashMap intermediate), and constructs init only for a Cell field (a non-Cell field’s init is parsed but never type-checked, a real pre-existing checker gap left for its own follow-up). No bynk-emit emission-behaviour change — every existing e2e/emission fixture is untouched, and still no consumer of bynk-emit::ir (#1163)
v0.247.40P6.6 (design/tracks/the-ir.md §6) — bynk-emit::ir gains IrItem/TypeShape (Part 6.6): IrItem::Type/IrItem::Fn are real, constructible variants; Agent/Service/Actor/Capability/Provider are not added as variants this slice (each has its own real, named blocker, not a shared one — see IrItem’s own doc comment). lower_type_item_ir (taking a certified CheckedProgram) builds a real IrItem::Type for a record/sum/refined-or-opaque type declaration (TypeShape unifies Opaque into Refined via an opaque: bool field, mirroring emit_type’s already-shipped RefinedShape); lower_fn_item_ir wraps P6.1’s lower_fn_body_ir, adding def (reusing the program’s own Arc)/receiver (a method’s own generic self type, since self is not in params)/params/ret/effectful around its existing return value, covering free functions and methods alike. No bynk-emit emission-behaviour change — still no consumer of bynk-emit::ir (#1161)
v0.247.39P6.5 (design/tracks/the-ir.md §6) — bynk-emit::ir::lower’s ExprKind::Match arm now constructs a real IrExprKind::Match for ordinary source match expressions: scrutinee via the existing lower_expr_ir, arms/exhaustive via P6.4’s lower_arm_ir/lower_exhaustive_ir verbatim, form via the shipped string emitter’s own match_needs_if_chain/pattern_has_nested_test (now pub(crate), reused rather than re-derived). MatchForm is real and constructible — Flat/IfChain — scoped to shape only; the reference’s own tail-vs-value position axis is left to a future printer, the same way IrExprKind::If already leaves tail-vs-value entirely to its own caller. ExprKind::Question/ExprKind::Is remain todo!() in ir/lower.rs, each now citing its own real blocker (Question’s three shapes by operand type; Is’s R5.9/R5.10 narrowing/receiver-temp gap) rather than the now-stale “IrArm/Exhaustive/MatchForm are still uninhabited” text both used to carry. No bynk-emit emission-behaviour change — still no consumer of bynk-emit::ir (#1159)
v0.247.38P6.4 (design/tracks/the-ir.md §6) — bynk-emit::ir gains a real Pattern IR: IrPat (Wild/Bind/Const/Variant/Refined/Or), IrArm (pat/guard/body/binds/binding_mode) and Exhaustive (Total/Partial) are real, constructible types, inhabiting the placeholders P6.1 left. IrPat::Variant’s identity is keyed by the scrutinee’s own TyId, resolved through bynk-check’s variants_of/VariantInfo (now pub) rather than Callee::Ctor’s Arc scheme, which never fires for Ok/Err/Some/None. bynk-emit::ir::lower gains standalone constructors — lower_pattern_ir, lower_arm_ir, lower_exhaustive_ir — tested directly against real certified programs (a user sum, Result/Option via variants_of, a refined pattern, an or-pattern with shared cross-alternative bindings recorded as IrArm::binding_mode rather than an emission-time discovery); Exhaustive::Partial stays real but unreached on this pass’s own certified-only path (a certified match always has an unguarded arm), extending ADR 0334’s .expect()-not-fallback discipline to a second rule. Not wired into IrExprKind::Match/Question/Is construction — all three stay todo!(), still gated on P6.5’s own MatchForm (R5.2/R5.3). No consumer yet and no bynk-emit emission-behaviour change (#1157)
v0.247.37P6.3 (design/tracks/the-ir.md §6) — bynk-emit::ir::lower gains real desugaring for two of the row’s ten node kinds: BinOp::Implies -> Or{lhs: Not(a), rhs: b}, split out of the bundled comparison/arithmetic todo!(); and ExprKind::RecordSpread -> Block{stmts: [Let(tmp, base)], tail: Record{<complete, resolved field list>}}, a real desugar enumerating the target record’s own declared fields rather than a port of the current string emitter’s raw …spread splice. Question/Is stay deferred to P6.4’s Pattern IR (Match/IrArm are still uninhabited placeholders); Ok/Err/Some/None stay deferred pending a built-in-type identity decision no ADR has made; Expect/Val/Observation/Trace/Wire stay deferred as test-body-only, unreachable through the existing single-file lowering test harness — each todo!() now names its own specific blocker instead of a bare “not yet”. No consumer yet and no bynk-emit emission-behaviour change (#1145)
v0.247.36P6.2 (design/tracks/the-ir.md §6) — bynk-check’s Callee gains Store/Query variants, recorded at checker.rs’s store-field dispatch ladder (closing R6.5’s/R6.12’s classification-level defect); bynk-emit::ir::lower now constructs Call/Lambda/Variant driven entirely by Callee, closing R6.10 for these node kinds. No consumer yet and no bynk-emit emission-behaviour change — the production cutover (replacing lower_method_call/lower_call’s own TS-emission) is deferred to a future slice, since no IR-to-TypeScript printer exists yet for any node kind (#1143)
v0.247.35P6.1 (design/tracks/the-ir.md §6) — bynk-emit gains an internal ir/ir::lower module pair: the full Part 6.2 IrExpr/IrExprKind/IrStmt shape, and a &CheckedProgram → Ir lowering pass implemented for Const/Local/Global/Record/Field/List/Block/If/And/Or/Not/Return/Await/Send/Pure. No consumer yet and no bynk-emit emission-behaviour change — P6.2 onward wires it in (#1141)
v0.247.34P6.0 (design/tracks/the-ir.md §6) — bynk-check gains a resolved Callee classification for every call-shaped expression check_call/check_static_call/check_method_call/check_cross_context_call/check_cross_context_capability_call/check_test_service_address dispatch, recorded once during checking (TypedCommons::callees) rather than re-derived; bynk-emit’s lowering is unchanged and un-consumed by this slice (#1139)
v0.247.33Settle phase 6 of the compiler trajectory (design/tracks/the-ir.md) — the IR and its CheckedProgram → Ir lowering pass land inside bynk-emit rather than as new bynk-ir/bynk-lower crates, Callee dispatch classification is commissioned as new bynk-check work (not scope the retired phase-5 track missed), and lowering driven from a certified CheckedProgram enforces IrExpr’s total-by-construction type guarantee with a panic-not-fallback discipline rather than requiring expr_types to become an IndexVec first — scoped to that path only, since test-suite emission’s own non-certified TypedCommons producer keeps its existing fallback
v0.247.32P5.5 (design/tracks/semantics-in-the-checker.md) — bynk.project.schema_registry_corrupt and bynk.secrets.computed_name relocate from bynk-emit to bynk-check, validate.rs (empty since P5.3) is deleted, and bynk-emit’s crate doc/Cargo.toml description are corrected to what remains (TypeScript emission plus per-unit build sequencing) — no diagnostic is constructed in bynk-emit any more (emit_diagnostics true = 4, all test-module assertion strings), the track’s completion criterion (#1126)
v0.247.31P5.4 (design/tracks/semantics-in-the-checker.md) — process_tests/process_integration_tests’ checking half relocates from bynk-emit to bynk-check as bynk_check::test_suites, closing the seventh and last whole-project diagnostic category P4.2 silenced in the editor, plus the test-file go-to-definition/find-references regression that rode with it (#1126)
v0.247.30P5.3 (design/tracks/semantics-in-the-checker.md) — schema-registry reconciliation and platform-lock enforcement relocate from bynk-emit to bynk-check, closing the last two of the seven whole-project diagnostic categories that don’t already originate there (#1126)
v0.247.29P5.2 (design/tracks/semantics-in-the-checker.md) — check_function_type_boundaries relocates from bynk-emit to bynk-check, restoring the fourth of the five whole-project diagnostic categories P4.2 silenced in the editor (#1126)
v0.247.28P5.1 (design/tracks/semantics-in-the-checker.md) — check_event_subscriptions relocates from bynk-emit to bynk-check, restoring a third of the five whole-project diagnostic categories P4.2 silenced in the editor (#1130)
v0.247.27P5.0 (design/tracks/semantics-in-the-checker.md) — check_messages_bundles and check_locale_bundle_ambiguity relocate from bynk-emit to bynk-check, restoring two of the five whole-project diagnostic categories P4.2 silenced in the editor (#1128)
v0.247.26Settle phase 5 of the compiler trajectory (design/tracks/semantics-in-the-checker.md) — the remaining bynk-emit diagnostic sites relocate to bynk-check by priority (five close a named, fixture-pinned editor regression; two close for R3.5 compliance alone), check_function_type_boundaries’s reach-back hook closes, and R10.1 closes with a crate-doc correction rather than a bynk-driver split
v0.247.25bynk-ide repoints off bynk-emit onto bynk-check/bynk-project directly, closing R10.2; the editor’s project analysis silently stops reporting five whole-project check categories until phase 5 ports them (#1122)
v0.247.24bynk-check gains a project-level analysis entry point (analyse_project); symbols, context-checks, and run_checks’s orchestration relocate from bynk-emit to back it (#1115)
v0.247.23Settle phase 4 of the compiler trajectory (design/tracks/project-model.md) — bynk-project extracts today’s project-model logic below both bynk-check and bynk-emit; contract hashing and the typed ProjectGraph defer to phase 8; a new bynk-check analysis entry point closes R10.2 without moving run_checks early
v0.247.22fs_below_driver probe-precision follow-on (#1104) — the R2.3 probe now classifies each flagged file as a named floor (every production-scope std::fs touch attributable to one of content-ownership’s three settled carve-outs — discover_bynk_files, read_adapter_binding, try_read_project_paths — or a bare import declaration enabling one of them) versus a residual violation; design/greenfield-status.md’s committed bynk-emit reading now states “3 (3 named floor, 0 residual)” instead of a bare 3 a reader had to cross-reference against retired track docs to interpret
v0.247.21content-ownership track slice 5 (#1086, #1102) — deletes bynk-emit’s read_source disk-read fallback for .bynk project sources, the track’s actual target; found and fixed under implementation, three real production-path dependencies on that fallback (bynk-lsp’s run_project_diagnostics/type_receiver open-buffers-only overlay, AnalysisRoots::lower’s bynk.toml read for every manifest-backed caller, and try_read_project_paths’s plain disk-read contract), plus carved out a deliberate, permanent exception for adapter .binding.ts reads (a distinct concern whose path is only known post-parse, so no discovery walk can pre-populate it); adds a real Backend-driven behaviour test proving an unsaved edit in one file is visible to completion in another
v0.247.20content-ownership track slice 4 sub-slice 3 (#1086, #1098) — the remaining 78 diagnose_project/CompileOptions::single/::split call sites in bynkc/tests, bynk/tests, and bynk-emit’s own #[cfg(test)] module migrate to complete sources maps, finishing slice 4’s ~120-site migration; no separate CI guard was needed in the end (slice 5’s own fallback deletion is the loud-failure mechanism)
v0.247.19content-ownership track slice 4 sub-slice 2 (#1086, #1098) — all 25 bynk-lsp/tests diagnose_project(&root, &HashMap::new())/diagnose_project_with call sites migrate to bynk-testkit’s complete sources map, including project_model.rs’s shared rel_files helper (fixing 8 further tests indirectly)
v0.247.18content-ownership track slice 4 sub-slice 1 (#1086, #1098) — bynk-ide’s own 18 inline-test diagnose_project(&root, &HashMap::new()) call sites migrate to an in-crate testkit module built on production discovery; fs_below_driver stays at bynk-ide=0
v0.247.17content-ownership track slice 3 (#1086, #1096) — a new dev-only bynk-testkit crate, built directly on production discovery, replaces diagnose_project(&root, &HashMap::new()) and bare CompileOptions::single/::split in three representative test fixtures, ahead of the full ~120-site migration (slice 4)
v0.247.16content-ownership track slice 2 (#1086, #1094) — AnalysisRoots::lower()‘s bynk.toml read joins the overlay, so an unsaved edit to bynk.toml itself changes the resolved [paths] include/exclude, mirroring 343b2482’s CLI-side fix
v0.247.15content-ownership track slice 1 (#1086, #1092) — bynk-ide’s cross-file symbol lookups (go-to-declaration, hover’s cross-file fallback) take pre-read content instead of reading disk themselves; Backend::project_files retires, fs_below_driver reaches 0 for bynk-ide
v0.247.14Slice 0+1 of the content-ownership track (#1086) ships — bynk-lsp’s completion, signature help, and hover no longer read project files from disk themselves; ADR 0322’s ProjectDirs/resolve_dirs design is superseded, unneeded once implementation found bynk_ide::discover_files already closes the gap
v0.247.13Settle the content-ownership track’s remaining design questions (#1086) and front-load three ADRs — bynk-ide’s ProjectDirs seam type, R2.3’s content-only enumeration scope, and the bynk-testkit crate convention
v0.247.12Resolve #1078 — bynk.schema.lock read/write moves to bynk-driver; bynk-emit only ever sees pre-read content and hands back what to write
v0.247.11bynk-driver reads bynk.toml through its own overlay instead of bynk-emit’s disk fallback, closing a gap #1081 (#1077) left uncaught
v0.247.10Breaking (Rust API, not language surface): bynkc no longer re-exports bynk-syntax’s ast/diagnostics/error/keywords/lexer/parser/span modules, bynk-driver’s coverage/test_json modules, or the whole bynk-fmt crate as bynkc::fmt (only bynkc’s item re-exports, CompileError, CompileOptions, compile_project, and others, remain public)
v0.247.9Resolve #1049 — decline the Positive/NonNegative → InRange fold; neither base has a writable bound that could stand for infinity
v0.247.8bynk-driver’s CLI-path project discovery (#1081) no longer silently skips the no_sources/file_and_directory project checks, panics on a missing include root, or produces nondeterministic build/diagnostic order
v0.247.7The checker interns every Ty behind a TyId handle, making type identity a u32 comparison rather than a recursive structural walk
v0.247.6The checker’s debug-only expr-identity uniqueness check (finding #28) now also covers handler and test-case bodies, not only top-level functions; ADR 0313 is superseded
v0.247.5The phase-3 track (identity and totality) settles on ExprKey(Span) scaffolding before ExprId, and amends ADR 0309 with an LSP-surface-fixture requirement
v0.247.4A ?’s propagating early return nested inside a short-circuited &&/`
v0.247.3cargo xtask ci runs the CI gates locally (--fast for the two that need no compile-and-link, also run by an opt-in .githooks/pre-push), and CI reports a CI fast gates check ahead of CI green
v0.247.2A value-position match/if IIFE’s async-wrap decision is a flag computed during lowering instead of a scan of the generated text for the substring “await “
v0.247.1The lowering pass returns hoisted statements instead of writing them into a caller-supplied sink, deleting the predictive classifier that gated the ternary-form if
v0.247.0NonEmpty now canonicalises as MinLength(1) (R12.2’s Length domain), so a boundary type spelled either way hashes and structurally matches identically — coordinated redeploy: rebuild both sides of any already-deployed pair sharing a NonEmpty-refined boundary type
v0.246.11block_uses_send and bynk-lsp’s three statement-aware extract walkers enumerate every ExprKind variant explicitly instead of a wildcard arm (#1025)
v0.246.10block_writes_state’s expr walker enumerates every ExprKind variant explicitly instead of a wildcard arm (T1.7’, #1020)
v0.246.9fs_below_driver resolves bare fs:: call sites through glob-imported use std::fs bindings, so bynk-emit/src/project/discovery.rs counts (#1013)
v0.246.8The Query method_not_found diagnostic lists its methods from QUERY_METHODS instead of a hand-written copy, and the registry’s drift test now catches a dispatch arm the registry doesn’t list, not only the reverse
v0.246.7tree-sitter-bynk/tests/conformance.rs widens from a fixed case list to totality: examples/, the vendored first-party .bynk sources, and every bynkc positive fixture must parse clean under tree-sitter, and every parse/lex-time negative fixture must be rejected by both parsers
v0.246.6Track slice T0.3: [workspace.lints.clippy] wildcard_enum_match_arm = "warn" recorded in the root manifest, closing the workspace_lints probe’s absent reading; the 296-violation inventory is recorded on the spine (#996), not yet enforced per-crate
v0.246.5T0.2′ (first slice): the three Roots::Split negative fixtures whose reported diagnostic path re-bases (ADR 0198) — 104_state_sum_field, 105_state_opaque_field, 106_state_refined_no_zero — gain a mutation-checked expected_diagnostics.txt, closing the coverage hole ADR 0198 recorded as unobserved for this population
v0.246.4Breaking (Rust API, not language surface): bynkc no longer re-exports fourteen whole modules from bynk-check/bynk-emit (bynkc::checker, bynkc::resolver, bynkc::emitter, bynkc::project, and ten others) — only its ~30 item re-exports (CompileOptions, compile_project, BuildTarget, …) remain public
v0.246.3closes_rule: pending-file field + stamp-materialised rule ledger, closing out T0.0’s deferred Closes-Rule provenance (#1001)
v0.246.2cargo xtask greenfield-status — the T0.0 probe harness (13 probes, 9 gated against a committed table)
v0.246.1Settle the compiler-architecture track — the refactor acceptance gate, the emit-ABI posture, and the lowering substrate
v0.246.0Hover and a VS Code “Show Wire Contract” panel surface a handler’s request envelope, its cross-context contract hash, and each boundary type’s re-validation strategy — derived from a new shared IR the emitter’s own codec generation now renders too