Skip to content
Playground(another site)

v0.185.0

Released on 17 July 2026 as v0.185.0, with the increments from v0.164.0 to v0.185.0. See Upgrading for what to change when you move to it.

VersionHighlights
v0.185.0A test drives an http/cron/queue handler at the unit tier (grammar + checker + emitter; ADR 0205, testing-the-boundary track, #664). A case addresses a service handler by its surface — api.POST("/todos", body), sched.schedule("*/5 * * * *"), q.message(job) — and names the identity it acts as with a call-site by <Actor>(<identity>) clause: let item <- api.POST("/todos", body) by User("bob"). The address is checked against the declared handler (arity, argument types, service_unknown_route); the principal is checked against that handler — an identity-carrying handler driven with no by, or with a unit-identity actor like by Visitor, is bynk.test.principal_required / principal_identity_mismatch (the isolation the slice exists to provide, which tsc cannot catch); and the identity is typed against the handler’s identity type, so by User("") fails UserId’s refinement. At the unit tier the identity is given and the handler runs in-process against fresh per-case agent state — scheduled and queue handlers execute under a test for the first time. The proposal’s feared deps.env↔makeTestState bridge was unnecessary: bundle-mode emission already resolves an http handler’s agent via the in-memory registry. No new runtime, no fetch; the system tier is a later slice. Grammar gains call_site_actor (Rust parser + tree-sitter + formatter). #655 is not closed — its root is the cross-context makeSurface, a separate emitter concern (ADR 0205).
v0.184.0One diagnostics scheduler (tooling; closes #678, LSP foundations track, #640). The language server debounced diagnostics with two stacked delays — the configured diagnostics_debounce_ms in did_change, then a second, hardcoded 200 ms in the round scheduler — so live squiggles lagged the configured value by 200 ms; and a single-file buffer (no bynk.toml) had no generation counter at all, so a burst of keystrokes ran one diagnose per change instead of coalescing. Both are now one generation-based scheduler over both modes, debouncing exactly once at the configured delay. A round already analysing when a newer edit lands still runs to completion (a whole-project analysis on a blocking thread can’t be cancelled) but its result is discarded rather than published — unchanged, and documented. No language, grammar, or runtime change; no author-facing surface beyond the (now honest) debounce timing.
v0.183.0The language server analyses a workspace on open and registers its own file watchers (tooling; closes #676, LSP foundations track, #640). Two lifecycle gaps the server documented or leaned on a client for. First: it advertised a startup analysis but ran none, so a freshly-opened Bynk workspace showed no diagnostics until you opened a .bynk file. Now on activation the server discovers every project under the workspace folders — a bounded walk for bynk.toml, so a monorepo’s packages are all found — and analyses them, so diagnostics (and workspace-symbol search) are ready before you open anything; a folder added later is warmed the same way. Second: watched-file notifications only worked because the VS Code extension supplied the watchers client-side, so every other editor got a dead handler. Now the server registers **/*.bynk and **/bynk.toml itself (dynamic didChangeWatchedFiles), so any client is notified — and the VS Code extension drops its client-side watchers so the server isn’t told twice. No language, grammar, or runtime change; no author-facing surface.
v0.182.0The language server implements real multi-root workspaces (tooling; ADR 0204, closes #673, LSP foundations track, #640). The server advertised the workspace-folders capability but implemented one project — it took the first workspace folder and ignored the rest, and had no handler for folders being added or removed. So a file in a second folder, or a second bynk.toml project under one folder (a monorepo), was analysed against the wrong project or none. Now the server holds a project per discovered root: a request routes to its file’s nearest bynk.toml — the same project bynkc compiles it in — so several projects in one window each analyse, version, and publish independently, a file outside every project still gets single-file diagnostics, and workspace/symbol searches across all of them. Adding or removing a workspace folder adds or prunes its projects (a project with an open file is kept until you close it). No language, grammar, or runtime change; no author-facing surface — the capability the server always advertised is now true.
v0.181.0A test’s svc.call(…) is resolved, not string-matched (checker; ADR 0203, closes #654, testing-the-boundary track, #656). A test case invokes its target’s RPC service as svc.call(args). The checker used to accept that for any service in scope — matching only the method name call — without confirming an on call handler existed or that the arguments fit it. So api.call(…) on a from http service passed bynkc check and then crashed at runtime with TypeError: api.call is not a function, because the emitted http service has route methods, not a call. Now the call resolves the service’s on call handler: a from http/cron/queue service (no such handler) is bynk.test.service_no_call_handler; wrong arity is bynk.test.service_call_arity; a mismatched argument reuses bynk.types.argument_mismatch (with its argument index). A correct svc.call checks, lowers, and runs exactly as before. This is the first slice of the testing-the-boundary track — the foundation the http/cron/queue address surface builds on. No grammar or runtime change; the only surface change is that three previously-silent mistakes are now check-time errors.
v0.180.0The language server gains a library target (tooling; closes #665→#669, LSP foundations track, #640). Internal refactor, no user-visible change: bynk-lsp had a binary target and no library, so its integration tests could not name the crate and instead #[path]-included individual source files — a workaround that also ran each module’s unit tests redundantly in every test binary that included it. The crate now has a [lib] target; the server implementation moved from src/main.rs (now a thin entry point) into src/lib.rs, and the tests use bynk_lsp::… like any dependency. The behaviour-over-time tests the freshness and project-model work introduced leave the binary and live in the library. No language, grammar, protocol, or runtime change.
v0.179.0The editor answers against the buffer you’re holding (tooling; ADR 0202, closes #665, LSP foundations track, #640). Hover, go-to-definition, references, rename and the other index-backed features used to answer from the last completed analysis round. If you had typed since — inserted a line above the cursor, say — a request could resolve your cursor against text the analysis never saw, and land on the wrong symbol. It corrected itself a moment later, which is exactly what made it easy to miss. Now every such request checks whether the file has been edited since the last round and, if so, re-analyses the current buffers before answering — so it resolves against the text you actually have, or (when it genuinely can’t, like a file outside the project) answers nothing rather than something wrong. A round is fast (single-digit milliseconds for a typical project), the refresh replaces the pending debounced analysis rather than doubling it, and several requests after one edit share a single re-analysis. Published diagnostics now also carry the document version they were computed against, so your editor can discard a squiggle whose line has already moved. No language, grammar, or runtime change; no author-facing surface.
v0.178.0The LSP analyses the project bynkc compiles (tooling; ADR 0201, closes #647, LSP foundations track, #640). The editor and the compiler read the same bynk.toml and disagreed about what it meant. The language server reduced [paths] include to a single directory — the first entry, with exclude ignored — and then looked for that directory inside itself, so: a second include tree was invisible, exclude did nothing, and a flat project (.bynk at the root, no src/) found nothing at all. Anything the editor derives from the project — diagnostics, references, rename, workspace symbols, completion — could therefore disagree with bynkc about which files exist. In this repository, examples/todo/tests/todos.bynk is a real test suite the compiler compiles and the editor could not see. It can now: the editor analyses exactly the files bynkc compiles, from the same manifest, through the same discovery. Hover, completion, semantic tokens and signature help all gain that reach — they behave identically, they simply see files that were previously not analysed at all. No language, grammar, or runtime change; no author-facing surface.
v0.177.0A compiled contract hash at the cross-context boundary — the deploy-skew guard (checker + emitter + runtime + driver + docs; ADR 0200, closes #643 and #550). v0.176 made the workers boundary typed; it did not make it verified. Context A compiles against B’s contract — the compiler reads B’s source — and nothing checked that the deployed B was still that one. bynk deploy --context NAME makes the gap routine: it pushes one context against dependencies assumed live, and its existing gate checks a dependency exists, never that it matches. The failure mode was the worst kind: not an error, but a wrong answer, as a skewed callee’s response decoded against a stale codec. Now the compiler — the only party that ever sees both contracts — stamps what it knew. Each call site carries a contract hash in a reserved X-Bynk-Contract header beside X-Bynk-Caller, and the callee compares it against its own constant before reading the body, answering 409 ContractMismatch (naming the service, the expected hash, and what arrived) rather than misreading the payload. Both constants are fixed at build time; nothing is hashed at runtime, and the args body is unchanged. bynk deploy refuses first, which is what actually answers the complaint — a 409 in production is legible but late. Each Worker emits bynk-contracts.json (what it provides, what it expects); the deploy record remembers what was pushed, and a --context push that would strand a caller is refused with bynk.deploy.contract_skew before it ships. The runtime check remains the backstop for a wrangler push behind the driver’s back. The hash is only as good as the form it hashes, so the form is canonical: predicates canonicalise as a set, and record fields and sum variants sort by name — a JSON object is unordered and a sum carries a kind tag, so their order is not wire-observable and must not fire the check. That carries a fix you may notice on its own: two structurally identical types whose refinements were written in a different order (String where NonEmpty && MaxLength(10) vs String where MaxLength(10) && NonEmpty — the same type) used to be compared positionally and spuriously failed to match across a boundary. They now match. The order-insensitivity is not adjacent to the hash; it is a precondition for it — hashing source order would have shipped a spurious-failure generator. An opaque type contributes its representation but not its predicate: a consumer cannot observe it, so tightening it must not 409 callers over a change they cannot see. One-time cost: the first deploy after this version must rebuild every context. An older Worker stamps no hash, and an absent hash fails closed — deliberately, since a caller predating the check is exactly the kind most likely to be skewed. What this mints is detection, not evolution: Bynk tells you the two sides disagree; it does not yet run two contract versions concurrently, so a contract change remains a coordinated deploy. No grammar change; no args wire-format change.
v0.176.0One codec path at the workers boundary — the cross-context edge is generated, not asserted (emitter + docs; ADR 0199, closes #642 — the first half of design-review #550, which stays open on its second). Bynk’s pitch is independently deployable contexts, so the cross-context call is the seam it exists to make safe — and it was the one place the compiler gave up and asserted. The cause was three parallel codec dispatches (the real one in serialisation.rs, plus shadow dispatches on the caller and callee sides) that had drifted from each other, invisibly: the same program was fully typed under --target bundle and quietly any under --target workers. They are now one. Every value crossing a workers cross-context boundary is encoded and decoded by a generated codec — the same monomorphised helpers the bundle target and the Json codec already use. No wire position asserts a value through as JsonValue, and no return type decodes through the unvalidated ((j: any) => Ok(j)) identity the caller path used to fall back to. The asymmetries went with them: a List[T] argument was asserted outbound but validated inbound, and — the sharp one — a Bytes was cast outbound while being base64-decoded inbound. That mis-round-trip is why a bare Bytes in a workers signature had to be diagnosed rather than emitted (ADR 0142 D8); with one symmetric dispatch the cause is gone, so Bytes now crosses a workers cross-context boundary and bynk.types.bytes_at_workers_boundary is withdrawn (a rejection lifting, so no program breaks). Unifying also paid a dividend: the shared arm now reports what was required (expected: "integer") rather than the bare typeof — an Int given 3.5 used to read expected: "number", actual: "number" — and because the fix lands once, the pre-existing Json and agent-rehydration paths improve for free. An on call composition root’s parameters are now typed instead of any, which is what makes the guarantee checkable rather than asserted: with any gone, tsc --strict immediately surfaced two latent bugs the erosion had hidden (a commons brand gap, and a missed Bytes runtime import in the Worker entry), both now fixed. Deliberately not done, and named: the runtime-owned error types (ValidationError, JsonError, HttpResult, QueueResult) still pass through uncoded — they have no declaration to generate a codec from — and a context still reaches its callee’s codecs through that context’s module, so a workers build has one borrowed view of each contract. The boundary is typed; it is not yet verified — nothing checks that a deployed callee matches what its caller was compiled against. That is #643. No grammar, checker, or wire-format change.
v0.175.0File identity is not the unit-validation path (compiler; ADR 0198, closes #650, first slice of the LSP foundations track, #640). Since v0.113 made [paths] include a list, a project with two include roots had no unique name for its files: discovery strips each tree’s own root, so src/todos.bynk and tests/todos.bynk both became todos.bynk. Anything that keyed a file by that path — notably the IDE surface’s project diagnostics — folded the two together and silently dropped one file’s diagnostics. A file now carries two paths, because it was always two things: an include-root-relative one, which is what lets src/todos.bynk declare context todos and is what unit-name validation reads; and a project-relative identity, which is what names it. What you may notice: a diagnostic’s reported path is now relative to the project root rather than to the include root it was found under — math.bynk becomes src/math.bynk, and a second root’s todos.bynk becomes tests/todos.bynk. That applies to any project with a bynk.toml or a src/ directory, which is most of them; it matches the path an emitted test already reports, and it is the same path your editor and bynkc now agree on. A flat project (.bynk at the root, no src/) and a directory compiled with no manifest are unchanged. No language, grammar, or runtime change; no author-facing surface.
v0.174.0Generic records at the boundary — monomorphised per-instantiation JSON codecs (checker + emitter + docs; ADR 0197, closes #592, supersedes ADR 0183 Decision C). v0.157 shipped type Paginated[T] = { … } but made an instantiation non-boundary — rejected in every serialised position (a record field, sum payload, handler signature, agent store, or Json.encode/decode) — so the flagship API envelope could be named but not sent. It can now be sent. A generic-record instantiation crossing a boundary emits a monomorphised codec: Paginated[User] generates serialise_Paginated_User / deserialise_Paginated_User, the declared fields with the type parameters substituted by the concrete arguments, delegating to their own codecs (serialise_List_User, serialise_Option_String) — exactly the mechanism List/Map/Result already use. The emitted TypeScript interface stays the erased Paginated<T>; only the codec is per-instantiation. A generic record is serialisable iff its type arguments are: the boundary rule and the Json codec predicate now look through the application into the arguments, so Paginated[User] is admitted while Paginated[Int -> Int] is rejected at the function argument (bynk.types.function_at_boundary) and Json.decode[Box[Query]] at the query argument (bynk.types.json_uncodable) — each drawing that argument’s own boundary error. A non-serialisable field is still caught at the declaration. A recursive generic record — one that transitively contains itself, including through an Option/List wrapper (type Node[T] = { next: Option[Node[T]] }) — has no finite set of monomorphised codecs, so it is rejected at the boundary with the new bynk.generics.recursive_generic_at_boundary (a non-generic recursive record still serialises, its single codec being self-referential). MapEntry (ADR 0184) and Val[…] value fabrication for generic types stay out of scope. No grammar or runtime change.
v0.173.0bynk deploy says what a Worker reads — and admits when it can’t know (language + driver tooling; ADR 0196, closes #632). v0.172 shipped deploy-time secrets speaking totally for an actor’s auth secret and not at all for a bynk.Secrets name, and named the cost: a Secrets.get("API_KEY") you forget to supply is a silent production None. Now the compiler collects the literal names your handlers read, bynk deploy lists them marked read, and warns when one has no value. The increment’s real content is the shape of the guarantee, and it is smaller than v0.172’s deferral note promised. That note proposed forbidding computed names outright — a static rule forcing Secrets.get’s argument to a literal — on two justifications that both turned out to be false. The precedent it cited (cors/@cache/@limit all require literals) is declaration-site config, validated where a policy is written; none of it constrains an expression in an ordinary argument position, so the rule would have been the language’s first about the shape of an ordinary argument, sitting oddly next to Fetch.send(req). And it could not have bought what it claimed: Secrets.get returns Effect[Option[String]], so absence is a legitimate, handled outcome — erroring on an unsupplied read would refuse to deploy correct programs. So a read is advisory and only a declared secret is required, and the two keep the semantics their types already gave them: an unset auth secret 401s every request, an unset Secrets.get name is a None your match already covers. A computed name is warned, not forbidden (bynk.secrets.computed_name, non-failing, and raised on the check path so your editor shows it): choosing a secret at runtime is a reasonable thing to want, and a language should not take it away to tidy a deploy tool’s list. What makes the list safe is that it carries its own completeness — the manifest gains read_complete, the plan says secrets incomplete <worker> (JSON: secrets_complete: false), and it says it before the lines it qualifies. Without that flag a short list would be the most dangerous thing deploy could print: usually right, therefore trusted, and wrong exactly where nobody looks. Collection resolves the capability to its declaring unit, never the identifier — you can declare your own capability Secrets, and setting its names on Cloudflare would write a real secret to a real account for a store that was never Cloudflare’s. The emitted bynk-secrets.json goes to version: 2 and is now written whenever anything is known, not only when a secret is declared — a context with no actor at all can still read API_KEY. No grammar change, no new syntax, and no restriction: Secrets.get(pickName()) still compiles, still runs, and now says it cannot be planned.
v0.172.0bynk deploy sets your secrets, and tells you which ones it can’t know about (driver tooling; ADR 0195, closes #602, deploy track slice 3). The last v1 resource kind, and the only one that is a value rather than an id: a KV id is minted by Cloudflare and safe to commit, a queue name comes from your source, but a secret value comes from you and has to reach Cloudflare without being written down on the way. bynk deploy now moves it — from --secrets-file, the environment, or a prompt — straight to wrangler secret put on stdin, and forgets it. No secret value reaches bynk.deploy.lock, generated config, or the plan, in any format; the ledger records nothing about secrets at all, not even which are set, because presence is a live question and a remembered answer could only ever be stale. The increment’s real content is what deploy refuses to claim. The slice was proposed on the premise that the secret names a context needs are derivable from the closure walk — they are not. bynk.Secrets is fn get(name: String): an ordinary expression in an ordinary argument, so Secrets.get(someVar) type-checks and consumes bynk { Secrets } tells you only that a context reads secrets, never which. What is derivable went unmentioned in the proposal and matters most: an actor’s auth = Bearer(secret = "…") is a literal fixed at parse time, required at compile time, and fail-closed silent — unset, it answers 401 to every request in production rather than failing your deploy. So deploy speaks totally for that class and not at all for the other, and the plan marks every line declared or supplied so you can tell which. It could have guessed the rest — scanning for Secrets.get("…") with a literal would look right almost always, since every such call in Bynk’s own tree uses one — and that is precisely why it doesn’t: a list that is usually right gets trusted, and the computed name it misses becomes a production None nobody checks for. The declared list is a floor, not a census, and the guide says so where you’d otherwise misread it. Names and values are separate inputs: names come from your actors, your --secrets-file’s keys, and each --secret NAME; values from the file, else the environment, else a prompt — the environment supplies values only and is never scanned for names, since uploading everything in your shell that looks secret-ish is not a thing a deploy tool should do to you. Missing a value with no terminal to ask at is a hard error naming the secret, never a blank. Reconciliation is set-if-absent, --force to overwrite: Cloudflare won’t return values so only presence is observable, and re-setting every secret every deploy would cut a fresh secret version each time for nothing. --dry-run still never authenticates — which is why a plan says set and the skip surfaces at run time. Secrets are set before the push for a Worker already live, and after it on a first deploy: wrangler secret put against a Worker that doesn’t exist yet doesn’t fail, it quietly creates a stub Worker (and, interactively, exits 0 having set nothing if you decline) — so the first push comes first, and the window it opens is fail-closed by construction. The compiler now emits bynk-secrets.json beside each wrangler.toml carrying the declared names, because the driver reads what the compiler wrote rather than holding a model — the only shape that works when bynkc runs as a child process. No language, grammar, or checker change.
v0.171.0bynk deploy provisions queues and Durable Object migrations, not just KV (driver tooling; ADR 0194, closes #600, deploy track slice 1). Slice 0 provisioned exactly one resource kind, so a context with an agent or a service … from queue("n") still owed the manual ritual — and worse than owed it: deploy pushed the [[queues.consumers]] binding without creating the queue behind it, and a Worker consuming a queue that does not exist fails to upload. Now bynk deploy provisions every v1 resource a context’s closure commits it to. Queues are created by name — the name in your from queue("n") — before the push, which is doing real work rather than being polite: wrangler deploy will not create a queue its config binds, it checks and fails with “To create it, run: wrangler queues create”. Each queue’s existence is checked against Cloudflare before every deploy and created only if absent, so a queue deleted outside Bynk comes back on the next one. Durable Object migrations are applied by wrangler deploy itself, from the config it is already reading. The increment’s real decision is what the ledger refuses to remember. bynk.deploy.lock records nothing about migrations — not even the advisory last-applied tag the slice-0 ADR left room for — because Cloudflare already tracks applied tags, and a second record could disagree with the account (the lock says v2; a reset left Cloudflare at v1), turning a deployment problem into a debugging session about Bynk’s memory. So the plan states the tag the push will ask for, marked advisory (migration v1 (advisory — wrangler deploy applies it); in JSON, applied_by names the owner rather than a constant-true flag), and the stated cost is accepted outright: bynk deploy cannot report migration drift, which beats reporting drift that isn’t there. The queue set the lock file does gain (environments.<env>.queues, additive over version = 1 — an existing lock file loads unchanged) is advisory in the same spirit: it exists so the plan can say create or reuse without calling Cloudflare, and the provision step never consults it, reconciling each queue against the account every deploy (wrangler queues info, create only if absent) — which is what makes an out-of-band deletion self-heal, at the cost of one call per queue. That reconciliation is also where a first draft of this slice went wrong and was corrected under review: it dismissed a live pre-check as “the same race one call later” and so made the create’s already exists text load-bearing for every re-deploy — an unverifiable claim about another tool’s prose on the hot path. The race is a concurrent deploy; the common case is a queue that is simply there, which a lookup answers by exit code without reading prose at all (Cloudflare’s own deploy path reconciles queues this way). The message match survives only for the race-loser, where being wrong costs a spurious failure a re-run fixes. The ledger’s boundary is now settled rather than discovered per resource: it owns the ids it mints (KV), records names as a hint it never trusts (queues), and records nothing where another tool owns the state (migrations) — which is also why CI’s refusal to create an unrecorded resource covers KV alone, a minted id being the only thing a CI job can strand. The plan gains queue create|reuse <name> and migration <tag> lines. No language, grammar, checker, or emitter change: the stanzas were emitted correctly all along, and only the provisioning behind two of them was missing.
v0.170.0bynk deploy ships every context, in Service-Binding order (driver tooling; ADR 0193, closes #601, deploy track slice 2). Slice 0 shipped deploy for exactly one context — more than one was refused as an ambiguity — so the flagship several-context architecture could be run locally (v0.167) but never shipped. Now bynk deploy provisions and pushes every context in one command, ordered so each Worker is uploaded after the Workers it binds to, with the resolved order shown in the plan before anything is touched. That order is a correctness requirement, not tidiness, and the finding is this increment’s headline: the slice’s gating question was whether Cloudflare resolves a Service Binding by name at request time (order soft) or at upload (order hard), and the working assumption was wrong — a Worker whose bound target does not yet exist fails to deploy. The two-pass upload that would imply for a dependency cycle turned out to be unnecessary, because bynkc already rejects a consumes cycle before emit: the language’s own acyclicity invariant supplies exactly the precondition Cloudflare’s upload rule demands, so a project that compiles always has a deploy order. --context NAME re-pushes a single context for iteration and names and refuses a dependency that has never been deployed rather than sending an upload Cloudflare would reject — which the ledger now supports by recording deployed contexts, not just KV ids (additive; an existing bynk.deploy.lock still reads). A multi-context deploy is resumable, not transactional: a failure stops the run, keeps and records what already landed, and names what did not; a re-run re-pushes in the same order rather than skipping live contexts, so a changed context always ships — the plan calls those redeploy. With dev (v0.167) and deploy both acting on every context, the word “ambiguous” leaves the driver entirely: SelectError::Ambiguous and the singular select_context are deleted rather than reworded. Breaking (pre-1.0): the --format json plan now describes every context, so the top-level worker, kv, and deploy fields give way to a contexts array carried alongside the resolved order; read .contexts[0].worker where you read .worker, and .contexts[0].action (deploy or redeploy) where you read .deploy — which was hardcoded true and never carried information.
v0.169.0Three test guards kept out of the published crate (packaging; bynk-lsp only). The bynk-lsp tarball shipped three integration tests that read directories outside the crate’s own package: hover_references (v0.166) and declaration_spans (v0.168) read examples/todo and the compiler’s positive fixtures, and scaffolds_compile (v0.121) reads vscode-bynk/snippets/bynk.json. A standalone cargo test on the crates.io release would fail on the missing siblings — on tests that cannot pass there by construction, since their inputs are repo layout rather than crate contents. v0.29 (ADR 0058) already excluded legend_drift for precisely this reason, and each guard added since re-introduced the defect rather than following the precedent, so all three now join the exclude list and the comment there names it as the place the next one goes. Skipping when the root is absent is the wrong fix, not merely a rejected one: ADR 0190 D6 requires these fixtures to measure real diagnose_project output, so a skip could pass vacuously — the failure mode ADR 0191’s coverage sweep exists to catch — which is why the guards are withheld from the tarball rather than taught to tolerate its layout. In-repo coverage is unchanged: cargo test --workspace still runs all four. No language, grammar, client, or LSP behaviour change, and no new ADR — 0058 already states the rule.
v0.168.0Go-to-definition on an actor (editor tooling; closes #619). Jumping from the User in by u: User to its actor User declaration found nothing whenever go-to-definition’s index rung had not already answered — an unanalysed or mid-edit buffer, or a file outside the analysed project. The same-file rung listed an arm per declaration kind and omitted actor, and a catch-all swallowed the miss. This is v0.166’s gap in the other symbol function: ADR 0191 gave hover an arm for every kind the index resolves, and the neighbouring go-to-definition lookup had the same hole, minus the wrong-answer sharpness — the index resolves actors and outranks this rung, so the failure was a fallback-only nothing rather than a confident guess. The rung now takes each declaration’s name from the AST’s own exhaustive accessor rather than re-listing the kinds, which is behaviour-preserving plus the actor and puts the guard in the type system: a declaration kind added tomorrow stops the crate compiling instead of quietly resolving to nothing, so this needs no coverage sweep of the kind v0.166 fitted for hover. A method still answers to its bare name here — go-to-definition from a bare identifier depends on it, so ADR 0191 D2’s deliberate divergence from hover’s renderer (which guards on a free function) is unchanged, and now pinned by a test so a later tidy-up cannot close it by accident. No language, grammar, or client change — bynk-lsp only, and no new ADR: 0191 already states the rule.
v0.167.0Multi-context local dev — every context served, Service Bindings wired (driver tooling; ADR 0192, closes #552, resolves the design-review Platform #5 finding). Bounded contexts talking over Service Bindings are the flagship architecture, and the emitter has generated the wiring correctly since v0.57 — but nothing ever ran two Workers at once. bynk dev served exactly one context and failed a multi-context project as ambiguous, so the feature was unrunnable locally and a cross-context call had never been exercised at runtime anywhere (golden-file coverage of the generated [[services]] text only). Now bynk dev with no flags serves every context — one wrangler dev each, discovering one another through wrangler’s dev registry and wiring the bindings between themselves — so Payment.authorise(total) from your orders context resolves against the payment worker running next to it, and a save rebuilds the callee and hot-reloads it with the wiring intact. The emitter is untouched: the wiring was right all along, only the orchestration withheld it. --context becomes repeatable and narrows to a subset; each context gets its own port from --base-port (8787 default) and, under --inspect, its own inspector port from --inspect-port — so ports become the driver’s to allocate, and passing -- --port against an allocation is now an error naming the flag that owns it (a single-context project on the default port is unaffected). Any worker exiting stops the rest, since a survivor’s bindings would point at a context that is gone. Supersedes ADR 0096 D3. bynk deploy still ships one Worker at a time and is unchanged.
v0.166.0Hover describes every kind the index resolves; two of them were describing the wrong thing (editor tooling; ADR 0191, amends ADR 0190 D1, closes #616). v0.165 gave the renderer an arm for a record Field and left three index kinds resolved-but-unrendered — Actor, Method, CapabilityOp — on the measurement that they hovered as nothing, so arms would be tidy rather than load-bearing. That measurement was taken from the wrong end of hover’s ladder: the fall-through does not run from the index rung to qualified_callee_at, it passes rung 4, the lexical name match over the live buffer, which answers first. Re-measured at reference offsets against real analysis output, only Actor hovered as nothing; the other two answered wrongly. A method matched on its bare name with the type prefix dropped, so in a file declaring fn Counter.bump and fn Gauge.bump, every bump — the g.bump() call the index binds to Gauge.bump, and fn Gauge.bump’s own declaration — rendered Counter.bump, whichever was declared first. A capability operation resolved through a path that is not project-scoped: a context declaring its own capability Logger { fn info(message: String) } hovered the embedded platform.log.Logger.info(msg: String) — different parameter, different owner, no sign either was in play. Both are v0.165’s gap B again: a correct structural resolution discarded, a plausible guess answering instead. All three kinds now have renderer arms — an actor renders its auth scheme and config plus identity (or, for the refinement form, its base and where claim predicate), a method renders the method the call binds to, a capability operation renders its signature attributed to the capability that declares it — so ADR 0190’s rule that a structural resolution outranks a name match is now true of every kind the index carries. A bare key names a free function: the renderer’s Fn arm no longer matches a method by its bare method name, bringing it into line with signature help’s resolver, which already guarded this way; the cost is that a method in a buffer no analysis round has reached yet hovers as nothing rather than as a coin-flip between same-named methods. Where the index does not resolve — builtin statics (Stream.of), a refined type’s of/unsafe — the name-match fallback answers exactly as before. The rule also gets a tooth, rather than the “obvious next step” note it would otherwise have shipped with: this is the second time a missing arm shipped silently (v0.165’s Field label, now these three) and no test failed either time, so a coverage guard now sweeps every key the real index produces for a fixture declaring all ten kinds through the real renderer and fails on any that answers nothing — with an exhaustive match over SymbolKind beside it, so a new kind stops the crate compiling until someone declares one and the sweep can see it. Fixtures sit at reference offsets in real projects and each pins the wrong answer it replaces, not just the right one. bynk-fmt now exports its string escaper, so an actor’s auth = Scheme(secret = "…") config renders valid Bynk (the stored value is unescaped — the parser resolves escapes at lex time — so a " in it rendered a broken fence); hover is pinned against the formatter’s own output rather than a copy. No language, grammar, or client change — bynk-lsp plus one additive bynk-fmt export.
v0.165.0Hover works on references, not just declarations (editor tooling; ADR 0190, closes #611). Inside an agent handler body — the code a reader actually spends their time in — hover described the four lines that declare the agent’s state but missed the uses. Three gaps, all now closed. (1) A store/key field reference (a bare read lastSeq + 1, a := write target, an invariant subject, a store op’s receiver) renders exactly what its declaration renders. State fields are not index symbols and not let/param locals, so this resolves by name — scoped to where a bare name actually binds to state (handler bodies, invariant/transition predicates), so @indexed(by: id), which names a field of the stored value, never masquerades as a same-named key id; a local of the field’s name shadows it, matching the checker’s by-provenance dispatch. (2) A record-construction field label (Stored { seq: next, title: title }) renders the Stored type’s field. The checker already recorded labels as Field refs keyed "Type.field" (ADR 0069), so the index resolved the offset correctly — but the renderer had no arm for the compound key and fell through to the locals path, which matches by name in scope: title: rendered the enclosing handler param add(title: Title), a confidently wrong hover rather than a missing one. A resolved index hit is now rendered or nothing is; it never falls through to a name match. (3) A store operation (items.put(id, item)) renders its signature over the field’s declared kind. Its signatures come from a new enumerable store_ops registry in bynk-check — the storage analogue of kernel_methods (ADR 0063), which likewise exists because the checker’s match-arm dispatch is authoritative for typing but invisible to tooling. A drift test drives every listed operation through the real checker on a store field of the matching kind, so the table cannot list a phantom. Entry operations only: a Log’s time-window roots are covered, the lazy-Query vocabulary they feed into is not, and hover over an ordinary value-receiver method (xs.fold) still needs signature help’s receiver-typing path. Both name-resolved paths defer to the checker’s own dispatch rule — a store op binds a bare ident receiver not in the value scope, so neither a shadowing local nor a qualified receiver (p.items.put(…), an ordinary value method on a record field sharing a store field’s name) is mistaken for one. Every hover test before this used a declaration offset — which is why the gaps slipped through — so the regression fixtures assert at reference offsets in examples/todo/src/todos.bynk, the file the issue reproduces in, against real analysis output. Gap B being a fall-through bug also makes hover’s rung order the behaviour, so it moves out of the request handler into a pure hover::hover_content the handler and its tests share — reordering the rungs now fails a test instead of silently restoring the bug. No language, grammar, or client change — bynk-lsp plus the bynk-check registry.
v0.164.0The suite <target> header links to the unit under test (editor tooling; extends ADR 0095, #609). A test file binds itself to the commons/context it exercises by qualified name in its suite <target> header, but that binding was the one unit reference the editor left un-navigable — uses/consumes targets already render as underlined, Cmd/Ctrl-clickable document links (slice 6b, ADR 0095), while the suite target was dropped. textDocument/documentLink now also emits the suite’s target (and any uses the fragment brings in), resolving it through the same unit→source map: suite todos in a test file underlines todos and opens context todos’s source. Go-to-definition on the same span rides along for free. A suite whose target has no on-disk source emits no link, the same graceful degradation as uses. No language, grammar, or client change — entirely in the bynk-lsp crate.