Skip to content
Playground(another site)

Diagnostic index

Every diagnostic code the compiler can emit, with a one-line summary of the cause, grouped by category. Each code links to its own page: what the code means, how to fix it and an example where an explanation is written, the grammar rules it governs, and the Book pages that explain it. bynk explain <code> prints a code’s explanation in a terminal, and in VS Code the diagnostic’s Explain quick fix (or Bynk: Explain Diagnostic Code…) shows the same text in a panel, offline.

There are 908 codes in total. Every code is an error unless it is marked Warning or Hint.

  • bynk.agent.class_conflict — An agent class has more than one fate: it is renamed twice, both renamed and removed, or renamed onto a class that already has its own recorded history in bynk.schema.lock.
  • bynk.agent.class_removed — An agent class recorded in bynk.schema.lock is no longer declared, so a deployment’s stored instances of it would be orphaned. If the class was never deployed, delete its [agents] entry from the lock; renaming or removing a deployed class gets its own declaration in a later state-migrations slice.
  • bynk.agent.construction_arity — An agent was constructed with the wrong number of key arguments.
  • bynk.agent.handler_arity — An agent handler was called with the wrong number of arguments.
  • bynk.agent.handler_not_found — Called a handler the agent does not declare.
  • bynk.agent.key_mismatch — An agent key argument has the wrong type.
  • bynk.agent.migrate_below_floor — Warning A migrate step reads a schema version below the agent’s floor. A complete bynk migrate sweep raised the floor past it, so no stored instance can hold that version: the step emits nothing and can be deleted (warning).
  • bynk.agent.migrate_duplicate — Two migrate steps in one agent read the same schema version.
  • bynk.agent.migrate_duplicate_assignment — A migrate step assigns the same store field more than once; each field takes at most one value per step (record-literal semantics).
  • bynk.agent.migrate_impure — A migrate step uses an effect, a capability, ?, expect, or the agent’s key; steps are pure and key-free so a migration sweep can run them by object ID.
  • bynk.agent.migrate_incomplete — A migrate step does not account for every change between its version and the current shape: a removed field must be read (old.f) or dropped, and a retyped or re-kinded field must be assigned (or dropped, for a Set, Log or Cache field).
  • bynk.agent.migrate_shape_mismatch — A migrate step’s declared old shape (or a drop) names a field the lock does not record at that version, or records with a different structure.
  • bynk.agent.migrate_unknown_version — A migrate step reads a schema version the lock does not record below the agent’s current version.
  • bynk.agent.non_additive_state_change — An agent’s stored state changed in a way deployed data cannot be read through — a store field was removed, retyped (including inside a stored record or sum), or changed storage kind. A renamed field is a removed field plus an added one. If the class was never deployed, delete its [agents] entry from bynk.schema.lock; otherwise widen rather than narrow, or stage the change through a new field.
  • bynk.agent.outside_context — An agent was declared outside a context.
  • bynk.agent.refinement_changed — Warning A stored store field’s refinement changed while its structure did not. A widening is safe; a narrowing faults on load for any stored value that no longer satisfies it (RehydrationViolation), so migrate the data first (warning).
  • bynk.agent.removed_live — A removed agent declaration names a class that is still declared; removing a class deletes its stored data.
  • bynk.agent.replaces_live — agent New replaces Old names an Old that is still declared; a rename moves the old class’s data to the new one.
  • bynk.agent.replaces_unknown — agent New replaces Old names an Old that bynk.schema.lock does not record for this context, so there is no recorded class to rename.
  • bynk.agent.return_not_effect — An agent handler’s return type is not an Effect.
  • bynk.agent.state_name_conflict — A type is named <Agent>State beside agent <Agent>; that name is the agent’s state record (its Cell fields), which its handlers and invariants see in place of the type.
  • bynk.agent.version_without_path — Warning A schema version between the agent’s floor and its current version has no way forward: no migrate step covers it and its path to the current shape is not entirely additive, so a stored record at that version faults on load with NoMigrationPath (warning).
  • bynk.agents.bad_state_initialiser — An agent store field initialiser is not a static value of the field’s type.
  • bynk.agents.non_zeroable_state_field — An agent store field has no initialiser and no implicit zero value.
  • bynk.context.consumes_cycle — Contexts form a consumes dependency cycle.
  • bynk.context.duplicate_binding — A Worker would declare two bindings with the same name, such as an agent Kv and the bynk.cloudflare KV namespace (both KV).
  • bynk.context.external_construction — A context-owned type was constructed from outside that context.
  • bynk.context.external_decode — A context decoded a type another context owns and exports opaque: through Json.decode, Json.decodeSql or a Codable witness, or as the input of an HTTP, queue, event or WebSocket handler. Decoding creates a value, which only the owning context may do; its codec would check no more than the base type.
  • bynk.context.external_provider — A bodiless (external) provider was declared outside an adapter.
  • bynk.context.opaque_inspection — An opaquely-exported type was inspected from outside its context.
  • bynk.context.rebrand_construction — A variant of a uses-sourced commons sum type was constructed directly inside a context, where the emitter’s per-context rebrand leaves its constructors out of scope.
  • bynk.cron.bad_params — A cron handler declares more than one parameter, or a non-Instant one.
  • bynk.cron.duplicate_schedule — Two cron handlers declare the same schedule.
  • bynk.cron.invalid_schedule — A cron schedule is not valid Cloudflare cron syntax: a field is out of range or malformed, or the fields are not separated by exactly one space.
  • bynk.cron.numeric_weekday — Warning A cron schedule names a day of the week by number, where Cloudflare’s 1 is Sunday, not standard cron’s 0/7 (warning).
  • bynk.cron.return_not_effect_result — A cron handler does not return Effect[Result[(), E]].
  • bynk.cron.uneven_step — Warning A cron schedule’s */n step in the minute or hour field does not divide the field’s range, so the last gap is shorter than n (warning).
  • bynk.deploy.agent_move_refused — bynk deploy refused to put a context that hosts agents on a different Worker script than it was last deployed to (into or out of a [deploy.workers.<key>] group, between groups, or after a group is renamed or re-keyed): an agent’s state belongs to its script, so it would start empty and the old data would stay behind. Start it fresh deliberately with --accept-fresh-agent <context>, which a move out of a group that stays cannot use.
  • bynk.deploy.asset_path_conflict — Two members of one [deploy.workers.<key>] group serve a fixed asset path (at "/…") from different files, or one that would be a folder of the other; a group has one assets directory, so each fixed path names one file.
  • bynk.deploy.binding_collision — Two members of one [deploy.workers.<key>] group declare different bindings under the same name; members share one wrangler.toml, so identical declarations share a binding and differing ones are refused.
  • bynk.deploy.context_in_two_groups — A context is listed in two [deploy.workers.<key>] groups; a context is deployed in one Worker only.
  • bynk.deploy.contract_skew — A worker was compiled against a contract its live dependencies no longer provide, or no longer provides the contract its live callers were compiled against, so bynk deploy --context refuses to ship it.
  • bynk.deploy.duplicate_hostname — A route or custom domain is claimed twice across [deploy.workers.<key>] groups.
  • bynk.deploy.empty_group — A [deploy.workers.<key>] group lists no context.
  • bynk.deploy.foreign_contract_skew — A build breaks the contract a declared foreign caller’s client was generated at, as pinned in bynk.foreign.toml, so bynk deploy refuses to ship it.
  • bynk.deploy.group_name_conflict — A [deploy.workers.<key>] group’s key or script name is another group’s, or is the Worker of a context in no group.
  • bynk.deploy.multiple_websocket_members — More than one member of a [deploy.workers.<key>] group declares a from websocket service; an upgrade request names no path or service a group could route it by, so a group has at most one such member, which takes every upgrade request whatever the path.
  • bynk.deploy.not_a_context — A [deploy.workers.<key>] group lists a unit that is not a context; only contexts are deployed as Workers.
  • bynk.deploy.route_conflict — Two members of one [deploy.workers.<key>] group declare the same HTTP method and path; a Worker answers a route with one handler.
  • bynk.deploy.service_name_conflict — Two members of one [deploy.workers.<key>] group declare a service of the same name; a Worker answers its members’ services by name.
  • bynk.deploy.unknown_context — A [deploy.workers.<key>] group lists a context the project does not declare.
  • bynk.deploy.worker_cycle — Workers bind to each other in a cycle that involves a [deploy.workers.<key>] group: a group folds its members into one Worker, which can close a cycle among contexts that are themselves acyclic. A Worker is uploaded after the Workers it binds to, so the cycle cannot be deployed.
  • bynk.deploy.workers_ignored_on_bundle — Warning bynk.toml declares [deploy.workers] groups, which only a workers build uses; this build is a bundle, which has every context in one program and ignores them (warning).
  • bynk.event.bad_params — An on event handler declared the wrong number of parameters, or a second parameter whose type is not EventEnvelope — it takes the event payload and, optionally, the runtime envelope.
  • bynk.event.bad_schema_dispatch — A via schema(...) dispatch clause’s argument is malformed — it must be a positive Int literal, a range of positive Int literals, or _.
  • bynk.event.bad_schema_version — An event’s @schema(N) annotation is malformed — N must be a single, positive, positional Int literal, and @schema may appear at most once on an event.
  • bynk.event.duplicate_handler — A from Events service declares more than one on event handler; it has exactly one.
  • bynk.event.emit_not_an_event — Events.emit[E] named a type E that is declared in this context, but is not itself an event — only an event type may be emitted.
  • bynk.event.emit_outside_owner — Events.emit[E] named an event E not declared in the emitting context — only an event’s declaring context may emit it.
  • bynk.event.handler_param_type_mismatch — An on event(e: T) handler’s declared parameter type does not match its from Events(E) header’s event type.
  • bynk.event.non_additive_schema_change — An event’s field shape changed in a way the schema registry cannot evolve additively — a field was removed, retyped, added without a default, or lost a default it previously had. Give the new shape a new event type name, or make the change additive.
  • bynk.event.outside_context — An event was declared outside a context.
  • bynk.event.pattern_duplicate_field — A from Events(E { ... }) subscription pattern listed the same field more than once.
  • bynk.event.pattern_type_mismatch — A from Events(E { ... }) subscription pattern field’s matched value is not compatible with that field’s declared type.
  • bynk.event.pattern_unknown_field — A from Events(E { ... }) subscription pattern named a field that E does not declare.
  • bynk.event.pattern_unknown_variant — A from Events(E { ... }) subscription pattern’s variant value names a variant that does not exist on the field’s declared sum type.
  • bynk.event.pattern_variant_payload — A from Events(E { ... }) subscription pattern’s variant value names a variant that carries a payload — only nullary variants are admitted, since testing the tag alone would silently ignore the payload.
  • bynk.event.return_not_effect_unit — An on event handler returns an Effect of something other than (); emission is fire-and-forget, so it returns Effect[()].
  • bynk.event.schema_version_mismatch — An event’s @schema(N) annotation disagrees with the version the schema registry computes from the event’s build history.
  • bynk.event.unknown_annotation — An event declaration carried an @-annotation other than @schema — event annotations are a closed set.
  • bynk.event.unknown_subscription — A from Events(E) subscription named E, which is not a declared event in this context or any consumed context.
  • bynk.generics.ambiguous_instantiation — A generic function with an Ord bound is used as a value, and its type arguments cannot be determined from the type expected at that reference; annotate the expected type (constrained-generics slice 1).
  • bynk.generics.bound_on_capability_op — A generic capability operation’s type parameter carries a bound other than Key or Codable; operations take only those two (constrained-generics slices 2 and 3).
  • bynk.generics.codable_op_return_not_first_party — A user-declared capability operation’s Codable type parameter appears in its return type. A typed read, the call site decoding the provider’s reply as the instantiated payload, is accepted only for the standard library’s own operations (#3458, lifting ADR 0696 decision 5).
  • bynk.generics.duplicate_type_param — A type or fn declares the same type-parameter name more than once (v0.157, ADR 0183).
  • bynk.generics.generic_non_record — A type declaration carries type parameters on a refined, opaque or alias body; only a record (type Name[T] = { … }) or sum (type Name[T] = | … | …) body may be generic (v0.157/#593, ADRs 0183/0197).
  • bynk.generics.generic_sum_embeds — A generic sum type carries an embeds clause; embedding into a generic sum is not supported (#593).
  • bynk.generics.internal_op_annotation — A capability operation carries an annotation outside the standard library, or a first-party operation’s is not @onUndecodable(miss) or @onUndecodable(fault): the reply policy of a typed read is internal to first-party operations (#3458).
  • bynk.generics.method_on_generic_type — A static method on a generic type never mentions one of the type’s parameters in its parameter or return types, so no call could determine it from the arguments or the expected type. Mention the parameter in the signature, or make the method a free function (constrained-generics slice 4; instance methods are supported, #594).
  • bynk.generics.missing_codable_bound — A type parameter is encoded or decoded with Json.encode/Json.decode, or passed to a Codable-bounded parameter of another generic or of a capability operation, but is not declared Codable ([T: Codable], or where A: Codable for a receiver type’s parameter). The diagnostic carries a machine-applicable fix that declares Codable, beside an existing Eq, which Codable does not imply (constrained-generics slice 3).
  • bynk.generics.missing_eq_bound — A type parameter is compared with ==/!=, or passed to an Eq-bounded parameter of another generic, but is not declared Eq ([T: Eq], or where A: Eq for a receiver type’s parameter). The diagnostic carries a machine-applicable fix (ADR 0430, amended by constrained-generics slice 0).
  • bynk.generics.missing_key_bound — A type parameter keys a Map or Set (a Map key, a Set element, a distinct/groupBy/join key), or is passed to a Key-bounded parameter of another generic, but is not declared Key ([K: Key], or where A: Key for a receiver type’s parameter; on the type for a generic type’s own parameter). The diagnostic carries a machine-applicable fix that declares Key, replacing an existing Eq, which Key implies (constrained-generics slice 2).
  • bynk.generics.missing_ord_bound — A type parameter is ordered (<, <=, >, >=, an ordering kernel key), or passed to an Ord-bounded parameter of another generic, but is not declared Ord ([T: Ord], or where A: Ord for a receiver type’s parameter). The diagnostic carries a machine-applicable fix that declares Ord, replacing an existing Eq, which Ord implies (constrained-generics slice 1).
  • bynk.generics.polymorphic_recursion — A generic type refers to itself with arguments other than its own type parameters, in order (Weird[List[T]] inside Weird[T], or Pair[B, A] inside Pair[A, B]), or to a mutually recursive partner with an argument that wraps one of its own parameters (Inner[List[T]] inside Outer[T]). Such polymorphic recursion generates an unbounded set of instantiations and is refused at the declaration; a self-reference that passes the parameters through unchanged, and a partner applied to the declaration’s own parameters or to types that mention none (of any arity), are accepted (#3192).
  • bynk.generics.recursive_generic_at_boundary — A recursive generic type (a record or sum that transitively contains itself, through any wrapper or generic argument) is used where a codec is required: a service or agent handler signature, an agent store field or key, an event field, an actor identity type, a Json.encode/decode target or a Codable witness. It declares and works inside a context, but has no codec yet, so it cannot cross a boundary; when it is reached through another type, the note names the field path (#3192, ADR 0197).
  • bynk.generics.redundant_eq_bound — Warning A type parameter is declared both Eq and Ord (or Eq and Key); Ord and Key imply Eq, so the Eq is redundant. The diagnostic carries a machine-applicable fix that removes it (constrained-generics slices 1 and 2, warning).
  • bynk.generics.type_arg_count — A user-declared generic type is applied to the wrong number of type arguments, or a generic type is named without its […] arguments (v0.157, ADR 0183).
  • bynk.generics.type_arg_mismatch — Inferred or explicit type arguments conflict, have the wrong arity, target a non-generic function, or a type parameter shadows a declared type.
  • bynk.generics.uninferable_type_arg — A generic function’s type parameter could not be inferred from the arguments and was not given explicitly (name[T](…)); a bare generic function also cannot be passed as a value.
  • bynk.generics.unknown_constraint — A bound, or a derives entry, names something that is not a constraint; the constraints are Eq, Ord, Key and Codable.
  • bynk.generics.unknown_where_param — A method’s where clause bounds a name that is not a type parameter of the method or of its receiver type.
  • bynk.history.not_an_agent — A for all run: History[T] names a T that is not an agent — only an agent has handlers to sequence and reachable states to observe (testing track slice 7, ADR 0155).
  • bynk.history.not_generable — A for all run: History[Agent] targets an agent with a handler parameter whose type cannot be generated (e.g. a Matches refinement), so its call-history cannot be driven (testing track slice 7, ADR 0155).
  • bynk.history.outside_property — History[Agent] appears outside a property’s for all binding — it is a test-only generator, not a value type (testing track slice 7, ADR 0155).
  • bynk.history.restates_invariant — A history property merely re-checks a guarantee a declared invariant/transition already enforces on every reached state (testing track slice 7, ADR 0155).
  • bynk.cell.invalid_target — A := write targets something that is not a store Cell field.
  • bynk.cell.self_reference — A := right-hand side reads the cell being written (a read-modify-write); use .update.
  • bynk.codegen.tsc_failed — tsc rejected the TypeScript the compiler generated for a program that passed the checker. This is a bug in the Bynk compiler, not in the program: the diagnostic points at the Bynk code the failing generated line came from, with the TypeScript error attached (#3068).
  • bynk.container.build_missing — A Container’s @build directory holds no Dockerfile, so there is no image to build.
  • bynk.container.build_path — A Container’s @build is not a directory inside the project: it is empty, absolute, uses \, or leaves the project with ...
  • bynk.container.output_outside_project — A build with a Container is written to an output directory outside the project, so wrangler cannot reach the container’s Dockerfile from the Worker’s output directory by a relative path inside the project.
  • bynk.d1.migration_invalid — Warning A D1 migration does not apply to an empty in-memory SQLite, so the binding’s literal SQL is not checked against its schema (warning).
  • bynk.d1.migration_name — A file in the project’s migrations/ folder isn’t migrations/<database>/NNNN_<name>.sql, or shares its number with another migration of the same database.
  • bynk.d1.migration_unreadable — A D1 migration in the project’s migrations/ folder can’t be read, or isn’t UTF-8 text.
  • bynk.d1.migrations_unused — Warning A directory in the project’s migrations/ folder matches no D1 instance’s database name, so its migrations are never applied, usually because the capability was renamed (warning).
  • bynk.d1.select_field_missing — A record read from a literal D1 statement has a field with no column of that name. For a select[T] / firstAs[T] row type, the column list the compiler writes from T does not prepare against the schema the binding’s migrations build; for a Json.decodeSql[T] of the rows of a literal all / first, a required (non-Option) field of T has no result column.
  • bynk.d1.sql_invalid — A literal D1 statement does not prepare against the schema the binding’s migrations build: a syntax error, or an unknown table or column.
  • bynk.d1.sql_param_count — A literal D1 statement uses a different number of bound parameters (?N) than the list literal passed with it holds.
  • bynk.dependency.path_outside_root — A path dependency declared by a dependency resolves outside the workspace; a dependency’s own path dependencies are honoured only between members of one workspace.
  • bynk.detach.in_agent_handler — A detach was used in an agent handler, which has no execution context to keep a detached effect alive.
  • bynk.detach.in_pure_context — A detach was used in a pure (non-effectful) context.
  • bynk.detach.store_op — A detach targets an agent store operation, which is part of the handler’s atomic commit and cannot be detached.
  • bynk.duration.literal_overflow — A Duration literal (<int>.<unit>) exceeds the representable millisecond range.
  • bynk.duration.unit_agreement — A Duration literal’s unit does not agree with its number: 1 takes the singular unit, every other number the plural.
  • bynk.duration.unknown_unit — An integer literal is followed by a word that is not a Duration unit.
  • bynk.email.bad_params — An email on message handler does not take exactly one InboundEmail parameter.
  • bynk.email.duplicate_address — Two from email services claim the same recipient address.
  • bynk.email.duplicate_handler — A from email service declares more than one on message handler; it has exactly one.
  • bynk.email.invalid_address — A from email("…") binding is not a recipient address a service can claim.
  • bynk.email.return_not_email_verdict — An email on message handler does not return Effect[EmailVerdict].
  • bynk.exec.unavailable — A call to, or reference to, a function that hands work to the execution context (detach, within or race, directly or through the functions it calls) appears where no execution context exists: an agent handler, a WebSocket handler or a provider operation.
  • bynk.fault.todo — Warning A todo(message) placeholder: the code type-checks but faults when it runs. A non-failing warning, so check --deny-warnings refuses unfinished code in CI (warning).
  • bynk.fixture.binary_content — A suite’s fixture names a file that contains a NUL byte, so it is binary, not text.
  • bynk.fixture.duplicate — A suite declares two fixtures of the same name.
  • bynk.fixture.invalid_encoding — A suite’s fixture names a file that is not valid UTF-8.
  • bynk.fixture.missing_file — A suite’s fixture names a file that is not in the project’s fixtures/ folder.
  • bynk.fixture.outside_fixtures_dir — A suite’s fixture names a file outside the project’s fixtures/ folder.
  • bynk.fixture.too_large — A suite’s fixture names a file over the 4 MiB limit for one fixture file.
  • bynk.fixture.unreadable_file — A suite’s fixture names a listed file that could not be read.
  • bynk.fixture.unsafe_path — A suite’s fixture path is empty, absolute or contains a .. segment.
  • bynk.fixture.unused — Warning A suite declares a fixture that none of its cases, properties or helpers uses (warning).
  • bynk.fmt.comment_loss — The formatter would drop a comment, so it leaves the file unchanged.
  • bynk.fmt.mixed_comment_syntax — A file mixes the retired -- comment or --| doc spellings with a line that reads differently under the old and new comment rules (#2203), so the formatter leaves it unchanged.
  • bynk.fmt.roundtrip — The formatter’s output does not re-parse to the same program, so it leaves the file unchanged.
  • bynk.held.branch_divergence — Branches of a conditional leave a held value (e.g. Connection[F]) in inconsistent ownership states — one consumes or stores it, another leaves it owned (§2.9.5, real-time track slice 2).
  • bynk.held.consume_on_borrow — A consuming operation (close/put/take) is called on a borrowed held reference — borrows admit only non-consuming operations like send (§2.9.3, real-time track slice 2).
  • bynk.held.leak — A held value (Connection[F]) is still owned at scope exit — it must be disposed (stored, closed, or transferred) before the handler or function returns (§2.9.1, real-time track slice 2).
  • bynk.held.query_accessor_on_held_map — A key-aware query accessor (.entries/.keys/.values) is used on a held Map[K, Connection] — a held resource is iterated with the broadcast ops (forEach/parTraverse), not a key query.
  • bynk.held.unsupported_map_op — A held Map[K, Connection] is given an update/upsert — a held resource cannot be transformed by a (Connection) -> Connection function; use put/get/remove (real-time track slice 3b-ii).
  • bynk.held.unsupported_storage — A held value (Connection[F]) is stored in a Set/Log/Cache — held values may only live in Cell[Option[Connection]] or Map[K, Connection] (§2.9.3, real-time track slice 2).
  • bynk.held.use_after_consume — A held value (Connection[F]) is used after a consuming operation (close/put/take) ended its lifetime (§2.9.2, real-time track slice 2).
  • bynk.index.bad_argument — An @indexed argument is not a by: <field> label.
  • bynk.index.missing — Warning A query filters a map by equality on a field that is not @indexed (a perf-hint warning).
  • bynk.index.unkeyable_key — An @indexed(by: k) field is not value-keyable.
  • bynk.index.unknown_key — An @indexed(by: k) field is not a field of the map’s value type.
  • bynk.index.unused — Warning A declared @indexed(by: k) is never used by an equality filter (a hygiene warning).
  • bynk.invariant.cross_agent_reference — An invariant predicate references another agent; invariants are per-agent.
  • bynk.invariant.duplicate_name — An agent declares two invariants with the same name.
  • bynk.invariant.impure_predicate — An invariant predicate uses an effectful or test-only construct.
  • bynk.invariant.not_bool — An invariant predicate does not have type Bool.
  • bynk.json.encode_plain_generic — Json.encodePlain is given a value whose type mentions a type parameter. A generic value encodes through its Codable witness, which always writes Option in the tagged form, so plain encoding is available only at a concrete type.
  • bynk.json.nested_option_plain — A plain-JSON route’s response type, or the argument of Json.encodePlain, contains an Option[U] whose payload U can itself encode as null (Option[T] or ()), so Some(U) and None would both be written null.
  • bynk.lambda.unannotated_param — A lambda parameter has no type annotation in a position where no function type is expected to infer it from.
  • bynk.list.deprecated_function — Warning A bynk.list free function is deprecated in favour of the List method form (warning; auto-fixable).
  • bynk.list.par_traverse_unit — Warning List.parTraverse now returns the steps’ values, and its step returns (): that is parForEach (warning; auto-fixable).
  • bynk.locale.multiple_message_bundles — A context consumes Locale but its direct uses reaches two or more message-bundle commons — there is no single bundle to negotiate against.
  • bynk.map.deprecated_function — Warning A bynk.map free function is deprecated in favour of the Map method form (warning; auto-fixable).
  • bynk.mysql.sql_invalid — Warning A literal MySql statement does not parse with the MySQL dialect of a pure-Rust SQL parser, or is more than one command, in a project that has a schema.sql (warning: the parser is not MySQL’s own, so it may refuse valid SQL).
  • bynk.mysql.sql_param_count — A literal MySql statement has a different number of ? placeholders than the list literal passed with it holds, in a project that has a schema.sql.
  • bynk.par.invalid_statement — A par { … } block holds a statement other than let x <- e or do e: a refutable let … else, a plain let, := or a store write, expect, advance, a nested par, or anything that is not a statement.
  • bynk.par.question_in_join — A ? appears inside a par { … } binding. ? takes a Result value, not an effect, so a binding’s own result is unwrapped after the block (let user = userR?), where the ? lines run in source order; a ? on an argument is computed before the block.
  • bynk.par.sibling_name — A par { … } binding mentions a name another binding in the same block binds, or binds a name twice. The bindings run together, so none can read a sibling’s result; the rule holds even where the name would resolve to an outer binding.
  • bynk.par.single_binding — Warning A par { … } block has a single binding, which is a plain let x <- e with extra syntax (warning).
  • bynk.par.store_write_in_closure — A closure passed to parForEach, parTraverse, parTraverseAll or parTraverseTry writes a store field (put, remove, update, upsert, add, append or :=). Its branches run concurrently, and a get then a put across them loses updates, so store writes stay sequential, as they do in a par { … } block.
  • bynk.postgres.sql_invalid — Warning A literal Postgres statement does not parse with the Postgres dialect of a pure-Rust SQL parser, or is more than one command, in a project that has a schema.sql (warning: the parser is not Postgres’ own, so it may refuse valid SQL).
  • bynk.postgres.sql_param_count — A literal Postgres statement uses a different number of parameters (its highest $n) than the list literal passed with it holds, in a project that has a schema.sql.
  • bynk.query.join_key_mismatch — A joinOn/leftJoin left and right key function return different types.
  • bynk.query.sum_needs_numeric — A sum/average key function does not return a numeric type (Int, Float, or Duration; sum also takes a Decimal, average does not).
  • bynk.race.in_agent_handler — a.race(b) was used in an agent handler, which has no execution context to hand the losing effect to.
  • bynk.race.in_pure_context — a.race(b) was used in a pure (non-effectful) context.
  • bynk.race.outside_handler — a.race(b) was used outside a service handler’s body and outside a function (in a provider operation, a WebSocket handler or a test case body), where no execution context exists.
  • bynk.registry.account_refused — bynk login, bynk logout or a bynk org command didn’t go through: you aren’t signed in or your session expired, the registry has no account API (or is read through a mirror), the sign-in was declined or its code expired, or the registry refused the request (a taken or reserved name, not the owner, an unknown member or token).
  • bynk.registry.bad_archive — A registry archive is malformed or hostile: not a bynk-tree-v1 stream, a path that is absolute or climbs out of the package, an out-of-order or repeated file, or past the size limits.
  • bynk.registry.bad_signature — An index line isn’t signed by a key the trusted key’s rotation chain reaches, or its signed registry id or package name isn’t the one asked for (a forged or replayed line).
  • bynk.registry.http_failed — A registry couldn’t be read: unreachable, an error status, a refused or missing token, a redirect from https to http, too many redirects, or a response past the size limit.
  • bynk.registry.key_mismatch — A registry’s keys don’t lead from the key trusted for it (pinned in [registries], or recorded in bynk.lock), or it now declares a different id.
  • bynk.registry.nonconformant — bynk registry conformance found a registry breaking the protocol: a check failed (a wrong status, an unsigned or mis-signed line, a checksum that isn’t the tree sent, a refusal without its JSON body, …); each failure names the check and the protocol section it holds the registry to.
  • bynk.registry.publish_refused — bynk publish or bynk yank didn’t go through: the project isn’t a versioned package, it has a path or git dependency, its registry has no publish API (or is read through a mirror), or the registry refused the request (no or wrong token, an existing version, an invalid upload).
  • bynk.registry.source_mismatch — bynk.lock locks a package to one registry, but its organisation now routes to another; a misrouted organisation fails rather than resolving a same-named package elsewhere.
  • bynk.registry.unavailable — No registry serves a package: its organisation isn’t listed by any [registries] entry (the first-party registry isn’t live yet), the registry has no config.json, or it has no such package or archive.
  • bynk.registry.withdrawn — bynk.lock locks a registry version that its registry withdrew (a takedown: yanked, and its archive deleted), and its tree isn’t in the store.
  • bynk.revert.agent_schema_older — bynk revert refused because the target writes an older agent schema version than the live one while stored instances exist, are not known to be absent, or the target is below the class’s floor, so the older code would fault on newer records.
  • bynk.revert.class_changed — bynk revert refused because a Durable Object class was added, removed or renamed between the live version and the target, and Cloudflare cannot roll back across a class migration.
  • bynk.revert.contract_skew — bynk revert refused because the target’s contracts would no longer match another live Worker, judged as if every selected Worker were reverted together.
  • bynk.revert.database_schema_ahead — bynk revert refused because the live version applied D1 migrations the target was not built against, or the applied migrations could not be read; migrations only move forward, so the older code may not run on the newer schema.
  • bynk.revert.facts_missing — bynk revert refused because the live version or the target version carries no deploy facts (BYNK_DEPLOY_FACTS), or the facts could not be read, so nothing can be checked against them.
  • bynk.revert.history_unplaceable — bynk revert refused for one Worker because its deployment history cannot be placed: it has no earlier deployment, the live upload is outside the listed history, a gradual deployment is in progress, or the history could not be read.
  • bynk.revert.id_unrecorded — bynk revert refused because the target binds a KV namespace, database, limiter or Hyperdrive config that the deploy lock no longer records, usually because the resource was re-provisioned or replaced since.
  • bynk.revert.layout_older — bynk revert refused because the target writes an older agent storage layout than the live one while stored instances exist or are not known to be absent, so the older code could not read the newer records.
  • bynk.revert.membership_changed — bynk revert refused because a [deploy.workers.<key>] group’s target version held other contexts than the live one (a context moved into or out of the group since, or the version predates groups), so a rollback would take a member’s code out of the Worker.
  • bynk.revert.secret_changed — bynk revert refused because a secret changed after the target was live, so the rollback could restore an old secret value that its peers no longer accept.
  • bynk.secrets.computed_name — Warning A bynk.Secrets read names its secret with a computed expression rather than a literal, so bynk deploy cannot plan it (warning).
  • bynk.set.deprecated_function — Warning A bynk.set free function is deprecated in favour of the Set method form (warning; auto-fixable).
  • bynk.target.browser_bundle_only — The browser platform builds only the in-process Bundle topology; --target workers is not a browser build.
  • bynk.target.vendor_conflict — One deployment unit’s in-process closure uses platform-native capabilities from two mutually-exclusive platforms.
  • bynk.target.vendor_required — A deployment unit uses a platform-native capability but the build selects another --platform.
  • bynk.visibility.private_in_public — A public declaration’s signature names a private type of its own unit, which an importer could neither name nor build.
  • bynk.visibility.private_item — A reference from another unit names a private declaration, which is visible only within its own unit and that unit’s suites.
  • bynk.visibility.private_messages — Warning A messages block in a commons is private. A bundle whose @reference block is private is never negotiated by a context that uses the commons, and private on another block of a bundle whose reference is public has no effect (warning).
  • bynk.visibility.private_not_allowed — private modifies a declaration it does not apply to: anything but a fn, type, messages, asset, embed or const in a commons or context.
  • bynk.wasm.panic — The in-browser compiler panicked internally (a compiler bug, reported as a diagnostic instead of crashing the page).
  • bynk.wasm.strip_failed — The in-browser compiler could not strip the emitted TypeScript to JavaScript.
  • bynk.within.in_agent_handler — e.within(d) was used in an agent handler, which has no execution context to hand the abandoned effect to.
  • bynk.within.in_pure_context — e.within(d) was used in a pure (non-effectful) context.
  • bynk.within.outside_handler — e.within(d) was used outside a service handler’s body and outside a function (in a provider operation, a WebSocket handler or a test case body), where no execution context exists.
  • bynk.within.timed_out_not_in_scope — e.within(d) yields Result[_, TimedOut], but the unit does not consume bynk, so TimedOut is not in scope.
  • bynk.ws.lifecycle_by_mismatch — A WebSocket on message/on close handler’s by clause does not name the same actor(s) as on open’s — the connection’s principal is verified once, at on open, and carried for its life, so the lifecycle handlers must be the same single actor or the same actor-sum members (binder names may differ).
  • bynk.ws.message_frame_param — A WebSocket on message handler does not have exactly one parameter of the service’s inbound (in:) frame type — the decoded frame (real-time track slice 3b-iii).
  • bynk.ws.open_given_unsupported — A WebSocket on open handler declares given capabilities — unsupported at v1, since on Workers the handler runs inside the connection-hosting Durable Object, which has no composition root to supply them (real-time track slice 3b).
  • bynk.ws.open_transfer_cross_file — On the Workers target, a WebSocket on open handler transfers its connection to an agent declared in a different file of the same context — the open is hosted in the agent’s Durable Object, which is emitted from the agent’s own file, so the upgrade would never be handled; the service and the agent must share a file.
  • bynk.ws.open_transfer_key — On the Workers target, the key of a WebSocket on open handler’s connection transfer is not a route parameter, a constant of the context or of a commons it uses, or a literal — the upgrade is routed to the hosting Durable Object before the body runs, so the edge must be able to evaluate the key on its own.
  • bynk.ws.open_transfer_shape — A WebSocket on open handler does not transfer its connection into exactly one agent, so the Workers upgrade has no single Durable Object to route to (real-time track slice 3b).
  • bynk.ws.route_param_mismatch — A WebSocket on message/on close route parameter does not match the on open parameter at the same position — route values are recovered positionally from the connection, so they must be a type-compatible prefix of the on open parameters (real-time track slice 3b-iii).
  • bynk.package.alias_shadows_unit — A dependency alias in [dependencies] is also the first segment of one of the project’s own units, so <alias>.… would be ambiguous.
  • bynk.package.checksum_mismatch — A git dependency’s store entry, or a freshly fetched commit, doesn’t hash to the checksum bynk.lock records; bynk refuses to build it.
  • bynk.package.dependency_cycle — The package graph has a cycle: a dependency depends, directly or not, on itself or on the project.
  • bynk.package.dependency_not_found — A path dependency’s directory has no readable bynk.toml, its bynk.toml is invalid, or it has no [package].
  • bynk.package.dev_dependency_in_source — A commons, context or adapter reaches a [dev-dependencies] alias, which only a suite may use.
  • bynk.package.duplicate_source — One package is reached from two different directories; a build holds one copy of each package.
  • bynk.package.git_failed — git couldn’t clone, fetch or check out a git dependency, or the revision it names doesn’t exist.
  • bynk.package.lock_invalid — bynk.lock can’t be read: it isn’t valid TOML, has no version, is a version this toolchain doesn’t read, or locks a package to something that isn’t a commit.
  • bynk.package.lock_out_of_date — --locked was given, and resolving the manifests would change bynk.lock.
  • bynk.package.name_mismatch — A path dependency’s package names a different package than the directory’s [package] name.
  • bynk.package.not_fetched — A git dependency has no bynk.lock entry, or its store entry is missing; bynk fetch fetches it (refused under --offline).
  • bynk.package.unit_not_exported — A uses or consumes reaches a unit its dependency declares but doesn’t list in [package] exports.
  • bynk.package.unknown_unit — A uses or consumes names, through a dependency alias, a unit the dependency doesn’t declare.
  • bynk.package.unsafe_source — A git dependency’s URL or revision looks like a command-line option, or uses a transport other than https, ssh (or file, from the project’s own manifests).
  • bynk.package.unsupported_in_dependency — A dependency declares an asset or an embed, which would resolve against the consuming project’s assets/ or embeds/; a per-package namespace for either isn’t designed yet.
  • bynk.package.version_conflict — One package is reached at two different git revisions (or from git and a path); a build, or a workspace, holds one copy of each package.
  • bynk.stability.experimental — An experimental standard-library item is used without an [unstable] allow entry in bynk.toml covering it.
  • bynk.stub.after_type — A test stub … returns <value> after <d> latency is not a Duration.
  • bynk.stub.at_system — A test stub is in a system-tier case, or at the scope of a suite … as system (or a suite whose cases run as system); each context runs as the Worker it deploys as, which builds its own capability providers, so there is no seam to override.
  • bynk.stub.bad_sequence — A stub … returns each […] sequence is malformed (e.g. empty).
  • bynk.stub.generic_op — A test stub targets a capability operation that declares its own type parameter — not supported at v1.
  • bynk.stub.not_a_seam — A test stub overrides a capability the unit under test does not consume.
  • bynk.stub.rhs_type — A test stub … returns <value> right-hand side does not match the operation’s return type.
  • bynk.stub.unknown_op — A test stub names an operation the capability does not declare.
  • bynk.suite.const_name_clash — A suite const has the name of a declaration or sum variant already in scope in the suite’s cases.
  • bynk.suite.duplicate_case_name — Two cases share a description.
  • bynk.suite.duplicate_const — A suite declares two consts of the same name, or a const with the name of one of its types.
  • bynk.suite.duplicate_env — An env { … } clause gives the same name twice at one scope (a suite’s env clauses, or one case’s); a case’s env may override a suite’s name, but not repeat its own.
  • bynk.suite.duplicate_fn — A suite declares two helper fns of the same name.
  • bynk.suite.duplicate_type — A suite declares two types of the same name.
  • bynk.suite.env_binding_clash — A system-tier suite’s or case’s env names a binding a participant’s Worker already declares (a Service Binding, KV namespace, or Durable Object namespace), or a key the test harness sets on it (a call-edge key, a Foreign caller’s secret), so the entry would clash with it on the Worker’s env.
  • bynk.suite.env_not_literal — An env { … } entry’s value is neither a String literal nor a fixture the same suite declares; a Worker’s variables and secrets are strings, given verbatim.
  • bynk.suite.fn_effectful — A suite helper fn returns an Effect; suite helpers are pure.
  • bynk.suite.fn_method — A suite helper fn is a method (fn Type.name); suite helpers are free functions.
  • bynk.suite.fn_name_clash — A suite helper fn has the name of a declaration already in scope in the suite’s cases.
  • bynk.suite.type_generic — A suite declares a generic type; a suite type is a plain, non-generic shape.
  • bynk.suite.type_name_clash — A suite type, or a variant of one, has the name of a declaration or sum variant already in scope in the suite’s cases, or of another suite item.
  • bynk.suite.unknown_target — A suite targets a unit that does not exist.
  • bynk.tier.cross_context_needs_system — A unit or integration case, or a property, reaches another context’s service, directly or through a target service or agent handler that calls one; below system no other context is stood up to call, so the flow belongs in a suite … as system.
  • bynk.tier.mixed_system_suite — A suite mixes system cases with unit or integration ones; a system case runs against deployed Workers and addresses services by context path, so it needs a suite … as system of its own.
  • bynk.tier.system_needs_wire — An as system suite whose target has no serialisation edge: it consumes no other context and exposes no http, queue or email service, so there is no wire for a system case to cross.
  • bynk.test.actor_identity_required — A test omits the identity an identity-carrying actor requires: a bare call-site by <Actor>, or no by at all on a handler that binds its Caller.
  • bynk.test.actor_no_identity — A call-site by <Actor>(x) supplies an identity to an actor that takes none — a unit-identity actor (e.g. Visitor) or Nobody.
  • bynk.test.advance_not_clock — An advance statement names a capability other than Clock; the test harness owns one time source, the first-party Clock.
  • bynk.test.advance_not_duration — An advance Clock by statement’s amount is not a Duration.
  • bynk.test.advance_outside_case — An advance Clock by statement appears outside a test case body; only the test harness has a clock to move.
  • bynk.test.asset_address_method — A suite fetches an asset with a method other than GET; the platform serves assets to GET and answers other methods with 405.
  • bynk.test.call_needs_in_process — A system-tier case calls an on call service with svc.call(…); an on call service is internal to a deployment and has no public route for a system case to drive, so the case drives an http route that reaches it, or calls it at unit or integration.
  • bynk.test.credential_needs_system — A case drives by Nobody (the no-credential principal, which tests the auth seam’s 401) outside a system-tier case, where there is no real seam to reject it.
  • bynk.test.event_needs_in_process — A system-tier case delivers an event with svc.event(e); at system an event reaches a subscriber only through its publisher’s fan-out, so the case drives the emitting handler instead, or delivers the event at unit or integration.
  • bynk.test.event_not_subscribed — A test body’s svc.event(e) delivers an event the from Events(E) service does not subscribe to.
  • bynk.test.event_publisher_ambiguous — A test body’s svc.event(e) omits the envelope, but the event’s publisher, which the default envelope names, is not one context the target declares or consumes.
  • bynk.test.expired_needs_bearer_route — A case drives by Expired at an address that is not an http route with a Bearer actor (alone, or as a member of an actor sum) or an Oidc actor; it sends a correctly signed token whose exp has passed, so only a Bearer or Oidc seam can refuse it.
  • bynk.test.extra_headers_authorization — A system case sends Authorization as an extra request header to a route that declares no headers: parameter; the case’s by <Actor> owns the credential the driver sends.
  • bynk.test.faults_needs_in_process — A system-tier case claims a fault with expect <call> faults, or a fault claim at any tier is driven by Nobody, by Forged, by Stale, by Expired, by WrongIssuer, by WrongAudience, by WrongAlgorithm or by NoSubject; at system a fault reaches the case as an error response from the deployed Worker, never a throw, so the claim belongs at unit or integration.
  • bynk.test.forged_needs_signature_route — A case drives by Forged at an address that is not an http route with a Signature, Bearer or Oidc actor, or by Stale at one with no Signature actor (alone, or as a member of an actor sum); they send a bad credential, so only a Signature, Bearer or Oidc seam can refuse them.
  • bynk.test.forged_needs_system — A case drives by Forged, by Stale, by Expired, by WrongIssuer, by WrongAudience, by WrongAlgorithm or by NoSubject outside a system-tier case; only the system driver signs a request or mints a token, so only there does the real Signature, Bearer or Oidc seam see the bad credential.
  • bynk.test.no_subject_needs_oidc_route — A case drives by NoSubject at an address that is not an http route with an Oidc actor; it sends correctly signed tokens whose sub is empty and whose sub is missing, so only an Oidc seam can refuse them.
  • bynk.test.nobody_needs_secured_route — A case drives by Nobody at a route with no Bearer, Oidc or Signature actor (alone, or as a member of an actor sum) (e.g. a public Visitor route) — there is no auth seam to reject the missing credential.
  • bynk.test.peek_not_a_database — D1.peek names a capability that is not derived from D1; only a D1 binding has a test database to read.
  • bynk.test.peek_not_bound — D1.peek is used anywhere but as the value of a let; the handle is what a case reads through.
  • bynk.test.peek_outside_case — D1.peek is used outside an integration or system case; only those tiers stand up a participant’s test database.
  • bynk.test.peek_unknown_capability — D1.peek names a participant or a capability that the suite does not have.
  • bynk.test.peek_write — A D1.peek handle is asked to write, by a write operation (run, batch) or by a statement that would write; the handle is read-only.
  • bynk.test.principal_claims_not_oidc — A call-site principal passes token claims for an actor that isn’t Oidc.
  • bynk.test.principal_identity_mismatch — A call-site by <Actor> acts as an actor whose identity is incompatible with the addressed handler’s actor, or names no member of the handler’s actor sum.
  • bynk.test.principal_on_asset — A suite’s asset fetch carries a by clause; an asset is public and served before the Worker runs.
  • bynk.test.principal_on_wrong_method — A wrong-method 405 test carries a by <Actor> clause; it reaches no handler, so a principal is meaningless.
  • bynk.test.principal_required — A test drives an identity-carrying handler, or one guarded by an actor sum, with no call-site by <Actor>.
  • bynk.test.remote_clock_dependent — Warning Under bynk test --against, a system case’s expect compares an Instant that isn’t derived from the run (a constant such as Instant.fromEpochMillis(0)); in process the clock starts at the epoch, but a real runtime’s Workers read wall-clock time.
  • bynk.test.remote_unsupported_advance — A system case moves the harness clock with advance Clock, which a run against a real runtime (bynk test --against) can’t honour: the deployed Workers read wall-clock time.
  • bynk.test.remote_unsupported_asset — A system case fetches an asset with svc.GET(asset), which a run against a real runtime (bynk test --against) can’t honour: the fetch is answered in process.
  • bynk.test.remote_unsupported_call — A system case addresses an on call service, which a run against a real runtime (bynk test --against) can’t honour: the service is internal, and each call is signed for one caller.
  • bynk.test.remote_unsupported_env — A system case’s env disagrees with the named target it would run against (bynk test --against): it sets a secret, sets a name the target doesn’t declare under vars or declares with another value, or leaves unset a name the target declares.
  • bynk.test.remote_unsupported_peek — A system case reads a participant’s test database with D1.peek, which a run against a real runtime (bynk test --against) can’t honour: a deployment has no in-process database.
  • bynk.test.remote_unsupported_queue — A system case delivers a queue message with q.message(m), which a run against a real runtime (bynk test --against) can’t honour: no public wire reaches a queue consumer.
  • bynk.test.remote_unsupported_schedule — A system case runs a cron handler with svc.schedule(…), which a run against a real runtime (bynk test --against) can’t honour: no public wire reaches a cron handler.
  • bynk.test.service_bad_address — A test body addresses a service the wrong way for its protocol (e.g. an http route without a leading path string).
  • bynk.test.service_call_arity — A test body’s svc.call(...) passes the wrong number of arguments for the service’s on call handler.
  • bynk.test.service_no_call_handler — A test body invokes svc.call(...) on a service with no on call handler (a from http/cron/queue service).
  • bynk.test.service_unknown_route — A test body addresses an http route / cron schedule / queue message the service does not declare.
  • bynk.test.smoke_undeclared_status — Warning A smoke case (bynk test --smoke) gets a non-5xx answer whose status is not among those its route’s handler declares; the case still passes (warning).
  • bynk.test.snapshot_duplicate_name — A case takes two snapshots (expect v matches snapshot "name") under one name; a snapshot is keyed by its case and name.
  • bynk.test.snapshot_in_property — A property takes a snapshot; its body runs once per generated input, so the snapshot belongs in a case over a fixed value.
  • bynk.test.snapshot_name_not_literal — matches snapshot is not followed by a string literal; a snapshot is named by a literal so the compiler knows every snapshot a suite takes.
  • bynk.test.snapshot_needs_unit_suite — A snapshot is taken in a system-tier case or in an integration or system suite; snapshots are stored per unit suite file and compared in the unit harness.
  • bynk.test.snapshot_not_codable — The value of an expect … matches snapshot is not Codable: a snapshot stores the value’s Json.encode text, so it must be in the domain Json.encode accepts.
  • bynk.test.stale_needs_timestamp — A case drives by Stale at a Signature route whose actor declares no timestamp header and tolerance, so there is no replay window for the seam to refuse a stale signature by.
  • bynk.test.system_claims_need_literal — A system-tier case passes token claims to a call-site principal other than as a literal TokenClaims.of([…]); the driver mints the Oidc token’s claims from those lines, which a TokenClaims value does not expose.
  • bynk.test.unknown_actor — A call-site by <Actor> names an actor the target context does not declare and that is not a prelude actor.
  • bynk.test.wire_http_only — A Wire(...) raw argument is passed to a queue, cron, on call or event address; Wire drives an http body or path segment only, so a queue message, cron tick or event is passed as a typed value.
  • bynk.test.wire_needs_system — A Wire(...) raw argument is used outside a system-tier service address; Wire hands pre-validation input to the boundary and is meaningless at unit or in any other position.
  • bynk.test.wrong_algorithm_needs_oidc_route — A case drives by WrongAlgorithm at an address that is not an http route with an Oidc actor; it sends a token with alg: none and an HS256 token keyed with the JWKS public key, so only an Oidc seam can refuse them.
  • bynk.test.wrong_audience_needs_oidc_route — A case drives by WrongAudience at an address that is not an http route with an Oidc actor; it sends a correctly signed token whose aud is not the actor’s, so only an Oidc seam can refuse it.
  • bynk.test.wrong_issuer_needs_oidc_route — A case drives by WrongIssuer at an address that is not an http route with an Oidc actor; it sends a correctly signed token whose iss is not the actor’s, so only an Oidc seam can refuse it.
  • bynk.test.ws_lifecycle_by — A case’s svc.message(tc, frame) or svc.close(tc) on a from websocket service carries a by clause; the connection’s principal is given once, at open, and carried from there.
  • bynk.test.ws_needs_in_process — A system-tier case drives a from websocket service by address (svc.open(tc, …), svc.message(tc, frame), svc.close(tc)); a deployed WebSocket is a real upgrade through the Worker and a Durable Object, which a system case does not drive, so the case runs at unit or integration.
  • bynk.types.argument_mismatch — A call, method, capability, or constructor argument has the wrong type.
  • bynk.types.asset_at_boundary — An Asset type appears in a record field, boundary or store position; pass its .url instead.
  • bynk.types.bad_field_default — A record or event field’s default expression (field: T = expr) is not a static, wire-representable value of the field’s declared type — a literal (including one admitted to a refined type), a sum variant of a type this context may construct (not a uses-sourced commons sum, which is bynk.context.rebrand_construction), Some/None/Ok/Err, a record, a list literal, Map.empty()/Set.empty(), or T.unsafe(lit) for an opaque type whose literal also satisfies the refinement. A field whose type is a generic record’s type parameter has no default, and a default may not hold for one instantiation only: for a record field that applies a user generic (Page[String], or Page[T] inside a generic record; an event or old-state field may not) it is a closed-form value at the instantiated type, writing nothing of the enclosing record’s own type parameters. (Earlier versions reported this as bynk.event.bad_field_default.)
  • bynk.types.call_arity — A function value, a built-in Map/Set/Cell/Cache/Log operation, or unreachable/todo was called with the wrong number of arguments (a declared fn is bynk.resolve.arity_mismatch).
  • bynk.types.cannot_infer_option_type_param — The value type of None could not be inferred.
  • bynk.types.cannot_infer_result_type_params — The type parameters of a Result could not be inferred.
  • bynk.types.catastrophic_regex — A Matches pattern, or a regex method’s pattern, can match the same text in exponentially many ways (nested or ambiguous repetition, bounded or not), or cannot be analysed, risking catastrophic backtracking (ReDoS).
  • bynk.types.claims_at_boundary — TokenClaims appears where a value is stored or sent: a field of a type, or a boundary such as a call, a message or an agent.
  • bynk.types.combinator_return_mismatch — A callback passed to a combinator (map/andThen/flatMap/traverseAll/…) returns the wrong type.
  • bynk.types.constructor_arity — T.of (or T.unsafe) on a refined or opaque type got the wrong number of arguments.
  • bynk.types.constructor_base_mismatch — A .of constructor was given an argument of the wrong base type.
  • bynk.types.decimal_division_unscaled — / was used on Decimal operands. A quotient has no exact decimal answer, so division states its scale and rounding mode: a.div(b, 2, RoundingMode.HalfEven) (#2622).
  • bynk.types.decimal_negation_too_large — A negated decimal literal would have more than 1000 characters of canonical text once its sign is counted, the most any Decimal may have (#2622).
  • bynk.types.deprecated_json_error — Warning JsonError is the deprecated spelling of DecodeError (warning; auto-fixable).
  • bynk.types.derives_automatic — A derives clause names Eq, Key or Codable, which hold for a type automatically; only Ord is opted into. The diagnostic carries a machine-applicable fix that removes the name (constrained-generics slice 1).
  • bynk.types.derives_field_not_orderable — A type declares derives Ord, but one of its fields or payloads is not Ord (for example a Map, a Set, a Bool, a function, or a record that does not itself derive Ord); every part must be orderable for the declaration order to be a total order (constrained-generics slice 1).
  • bynk.types.duplicate_example — A refinement carries more than one @example.
  • bynk.types.duplicate_literal_arm — A match has two arms for the same literal value.
  • bynk.types.duplicate_pattern_field — A record pattern lists the same field twice.
  • bynk.types.duplicate_variant_arm — A match has two arms for the same variant.
  • bynk.types.embeds_ambiguous — A type is embedded by more than one variant of a sum, so ?’s conversion would be ambiguous.
  • bynk.types.embeds_unknown_variant — An embeds … as V clause names a variant the sum does not declare.
  • bynk.types.embeds_variant_shape — An embeds E as V target variant must have exactly one payload field, of type E.
  • bynk.types.empty_range_pattern — A range pattern or via schema(...) range has its bounds inverted (lo > hi), so it can never match.
  • bynk.types.empty_refinement — A refinement admits no values (contradictory predicates).
  • bynk.types.err_value_mismatch — An Err payload has the wrong type.
  • bynk.types.example_not_literal — An @example is not exactly one literal of the base type.
  • bynk.types.example_on_named_field — An @example on a field whose type is a named type (it belongs on the named type).
  • bynk.types.example_unneeded — An @example on a refinement Val can already generate (only Matches and IsoDate take one).
  • bynk.types.example_violates — An @example does not satisfy its refinement’s predicates.
  • bynk.types.extensible_match_needs_wildcard — A match covers an extensible standard-library enum (FetchError, Method) without a wildcard; it may gain variants in a minor release.
  • bynk.types.field_access_on_non_record — Field access on a value that is not a record.
  • bynk.types.field_annotation_unknown — A record field carries an annotation other than @name("…").
  • bynk.types.field_default_on_variant — A sum variant’s payload field declares a default (field: T = expr). Only a record’s fields may; a variant is built like a call, with every payload field given.
  • bynk.types.field_name_bad_arg — A field’s @name does not take exactly one string literal, or a String constant bound to one.
  • bynk.types.field_name_case_conflict — Two fields of a cookies or query record have wire names that differ only in case.
  • bynk.types.field_name_duplicate — A field has more than one @name, or two fields of a request record read the same wire name.
  • bynk.types.field_name_invalid — A field’s @name is not a valid name for where the record is read (a cookie name that is not a token, or an empty name).
  • bynk.types.field_name_not_request_record — @name is on a field of a record that is not the cookies, query or @form/@multipart body record of an HTTP handler.
  • bynk.types.field_name_record_not_boundary — A record with @name fields is used as a JSON body, a result, a store field, an event or a call argument.
  • bynk.types.field_refinement_not_base — An inline field refinement requires a base or refined type.
  • bynk.types.field_value_mismatch — A record field was given a value of the wrong type.
  • bynk.types.file_at_boundary — A File (a file part of a multipart request), or a type carrying one, is used where it would be persisted, sent across a boundary or returned.
  • bynk.types.form_uncodable — Form.decode or Form.encode names a type that is not a record of form fields (a String, Int, Bool, Decimal, an enum, or a refined or opaque type over one, optionally in an Option or a List).
  • bynk.types.function_at_boundary — A function type appeared in a serialisable or boundary position (a record field, sum payload, service/agent handler signature, capability operation signature, agent state field, or agent key); functions cannot serialise or cross a boundary.
  • bynk.types.guard_not_bool — A match-arm if guard is not a Bool expression.
  • bynk.types.headers_at_boundary — RequestHeaders appears where a value is stored or sent: a field of a type, or a boundary such as a call, a message or an agent.
  • bynk.types.held_at_boundary — A held value (Connection[F]) appears in a serialisable or boundary position — a held resource is built and disposed in place, never persisted or sent across a boundary (§2.9, real-time track slice 2).
  • bynk.types.held_not_comparable — A held value (Connection[F]) is compared with ==/!= — held values have identity, not value-equality (§2.9.3, real-time track slice 2).
  • bynk.types.if_branch_mismatch — The branches of an if have different types.
  • bynk.types.if_non_bool_cond — An if condition is not a Bool.
  • bynk.types.if_without_else_requires_unit — An if with no else branch has a non-unit then-branch; the missing else defaults to (), so the branch must be () or Effect[()].
  • bynk.types.interpolation_non_scalar — An interpolation hole holds a value with no string form.
  • bynk.types.invalid_regex — A Matches predicate, or a regex method’s pattern (containsRegex, …), contains an invalid regular expression or malformed inline flags.
  • bynk.types.inverted_range — An InRange predicate has its bounds inverted.
  • bynk.types.is_base_mismatch — An is refinement check is applied to a value of the wrong base type.
  • bynk.types.is_literal_pattern — A literal was used on the right of is; is tests type/refinement, not value equality (use ==).
  • bynk.types.is_non_sum — is was applied to a value that is not a sum type.
  • bynk.types.is_range_pattern — A range pattern was used directly on the right of is; is tests type/refinement, not value ranges (use match, a guard or InRange).
  • bynk.types.is_refined_pattern — A refined (where) pattern was used on the right of is; refined patterns are match-only.
  • bynk.types.is_unknown_variant — is names a variant the type does not have.
  • bynk.types.json_uncodable — A Json.encode/Json.decode target type cannot pass through the typed JSON codec (functions, effects, streams or a type that carries one, bynk.crypto keys, error builtins).
  • bynk.types.key_at_boundary — A bynk.crypto SigningKey or VerifyKey appears in a storable or boundary-crossing position — a key is held non-extractable and lives for the call that imported it, never persisted, logged or sent (standard-library K4).
  • bynk.types.key_not_orderable — A sortBy/sortByDescending/min/max key function does not return an orderable type. The key must be an Ord type, on a List and on a storage Query alike.
  • bynk.types.lambda_mismatch — A lambda’s parameter count, parameter annotations, or body type do not match the expected function type.
  • bynk.types.let_annotation_mismatch — A let value does not match its type annotation.
  • bynk.types.list_element_mismatch — A list-literal element has a different type from the list’s element type.
  • bynk.types.list_pattern_on_non_list — A list pattern is matched against a value that is not a List (a record, sum, base type, Set or Map).
  • bynk.types.match_arm_mismatch — A match arm has a different type from the others.
  • bynk.types.match_non_sum_discriminant — match was applied to a value that is not a sum type.
  • bynk.types.method_arity — A method was called with the wrong number of arguments.
  • bynk.types.method_not_found — Called a method the type does not have.
  • bynk.types.method_on_non_named_type — A method was called on a built-in type that has no methods.
  • bynk.types.mixed_pattern_bindings — A pattern mixes named and positional bindings.
  • bynk.types.negative_length — A length predicate was given a negative value.
  • bynk.types.never_inferred — An unannotated let or <- binding has a type that is, or contains, the bottom type (never returns) because its value only faults (a faulting lambda bound this way included); the type cannot be written in source, so an annotation is needed.
  • bynk.types.no_numeric_coercion — Int, Float and Decimal were mixed without an explicit conversion — in an operation, a comparison or refinement bounds.
  • bynk.types.non_exhaustive_match — A match does not cover every value.
  • bynk.types.not_codable — A type is instantiated at a Codable-bounded parameter (of a generic function, or of a capability operation) but is outside the domain Json.decode accepts: top-level (), a function, Effect, Query, a Stream or a type that carries one, a connection, the HTTP and queue result types, Asset, request headers, token claims, or an actor (constrained-generics slice 3).
  • bynk.types.not_comparable — A value compared with ==/!= contains a function, Effect, or Query somewhere inside it — those have no value equality, so the type is not equality-supporting (type-system §2.3.5, #1652).
  • bynk.types.not_keyable — A Map key, Set element, or distinct/distinctBy/groupBy/join key, or an argument to a Key-bounded parameter, is not Key. String, Int, Bool, Instant, Duration, Bytes, Option/List of a key type, refined and opaque types over them, and records, sums and enums made only of key types are; a Float is never one, at any depth, because NaN is not equal to itself (constrained-generics slice 2).
  • bynk.types.not_orderable — A value is ordered (<, <=, >, >=), or passed to an Ord-bounded parameter, but its type is not Ord. Int, Float, String, Duration, Instant, Bytes, Option/List of an orderable type, refined types over those, and types that declare derives Ord are; adding derives Ord is offered as a fix that is never applied automatically, because it makes declaration order significant (constrained-generics slice 1).
  • bynk.types.ok_value_mismatch — An Ok payload has the wrong type.
  • bynk.types.opaque_raw_outside — .raw on an opaque type was used outside its defining commons.
  • bynk.types.opaque_unsafe_outside — .unsafe on an opaque type was used outside its defining context.
  • bynk.types.or_pattern_binding_mismatch — An or-pattern’s alternatives don’t all bind the same set of names.
  • bynk.types.or_pattern_type_mismatch — An or-pattern’s alternatives give a shared binding different types (or refinements).
  • bynk.types.pattern_arity — A pattern binds the wrong number of payload fields.
  • bynk.types.pattern_type_mismatch — A pattern’s type does not match the matched value.
  • bynk.types.polynomial_regex — A Matches pattern can split the same text between repetitions, so matching time grows polynomially with input length, and no length predicate bounds the input small enough for its degree; a regex method’s pattern has no bound to excuse it.
  • bynk.types.polynomial_regex_capped — Warning A Matches pattern’s matching time grows polynomially with input length, but a MaxLength or Length predicate bounds the input small enough for its degree (warning).
  • bynk.types.predicate_base_mismatch — A predicate does not apply to the type’s base (e.g. a string predicate on an Int).
  • bynk.types.query_at_boundary — A Query type appears in a storable or boundary-crossing position — a query is built and executed in place, never persisted or sent (ADR 0115).
  • bynk.types.question_error_mismatch — ? propagates an error type incompatible with the function’s.
  • bynk.types.question_on_non_result — ? was applied to a non-Result value.
  • bynk.types.question_option_outside_http — ? lifts an Option only inside a handler returning HttpResult (None becomes NotFound); elsewhere use .okOr(err).
  • bynk.types.question_outside_result — ? used in a function that does not return a Result.
  • bynk.types.range_pattern_on_non_int — A range pattern (lo..hi) was matched against a scrutinee that is not an Int.
  • bynk.types.record_pattern_on_non_record — A record pattern names a type that is not a record (a sum, enum, refined or opaque type, or a built-in).
  • bynk.types.regex_not_literal — A regex method’s pattern (matchesRegex, containsRegex, findRegex, findAllRegex, replaceRegex, splitRegex) is not a string literal, so its ReDoS check cannot run at compile time.
  • bynk.types.rejection_at_boundary — BoundaryRejection appears where a value is stored or sent: a field of a type, or a boundary such as a call, a message or an agent.
  • bynk.types.request_cookies_at_boundary — RequestCookies appears where a value is stored or sent: a field of a type, or a boundary such as a call, a message or an agent.
  • bynk.types.request_query_at_boundary — RequestQuery appears where a value is stored or sent: a field of a type, or a boundary such as a call, a message or an agent.
  • bynk.types.return_mismatch — A returned value does not match the declared return type.
  • bynk.types.rounding_mode_position — RoundingMode.<mode> was used outside the mode argument of a Decimal’s round or div. A mode is read where the rounding happens and is not a first-class value (#2622).
  • bynk.types.select_tail_has_select — A D1, Postgres or MySql select[T] or firstAs[T] statement does not start at FROM (for example it begins with SELECT, WITH or a parenthesis); the compiler writes the SELECT and column list from T.
  • bynk.types.sequence_needs_result — sequenceAll/sequenceTry was called on a list whose elements are not Results. They collect a List[Result[T, E]].
  • bynk.types.some_value_mismatch — A Some payload has the wrong type.
  • bynk.types.sql_not_literal — A D1 or Postgres statement’s SQL (the first argument of all, first, run, select or firstAs, or the sql of a SqlStatement or a PgStatement) is neither a string literal nor a bare reference to a String constant bound to one, so data could be spliced into it instead of bound as a SqlValue or PgValue parameter (standard-library P4c, Hyperdrive H1 and H3).
  • bynk.types.sql_row_shape — Json.decodeSql[T]’s (or select[T]’s, firstAs[T]’s) T is not a SQL row: a record whose fields are Int, Float, String, Bool or Bytes (or a refined or opaque type over one, or an Option of either), or a List of such records (standard-library P4c). A Postgres row may also hold a Decimal or an Instant (Hyperdrive H3).
  • bynk.types.sql_statement_at_boundary — A bynk.cloudflare SqlStatement, PgStatement or MySqlStatement appears in a storable or boundary-crossing position, or as a Json codec target — a statement from outside would carry SQL that was never a literal (standard-library P4c).
  • bynk.types.stream_at_boundary — A Stream type, or a record or sum carrying one in a field, appears in a storable or boundary-crossing position — a stream is a live value-over-time source, never persisted or sent across a boundary (real-time track slice 0; #2623 admits it in capability signatures and record fields).
  • bynk.types.stream_not_comparable — A Stream value is compared with ==/!= — a stream is a live value-over-time source, not a comparable value (real-time track slice 0).
  • bynk.types.type_mismatch — An operator or built-in method got an operand of a type it does not accept, or two operands that had to match did not.
  • bynk.types.uninferable_element_type — An empty [] (or List.empty() / Map.empty()) has no expected type to infer its element type from.
  • bynk.types.unknown_annotation — An annotation after a refinement is not @example.
  • bynk.types.unknown_field — Referenced a field the record type does not declare.
  • bynk.types.unknown_pattern_field — A pattern names a field the variant does not have.
  • bynk.types.unknown_rounding_mode — A Decimal round or div was not given a rounding mode written RoundingMode.<mode>; the modes are Down, Up, Floor, Ceiling, HalfUp, HalfDown and HalfEven (#2622).
  • bynk.types.unknown_static_member — A name after HttpResult. that is not one of its variants. An unknown member of a type you declared is bynk.resolve.unknown_static_member.
  • bynk.types.unknown_variant_in_pattern — A pattern names a variant the sum type does not have.
  • bynk.types.unreachable_arm — A match arm is unreachable.
  • bynk.types.variant_arity — A variant constructor got the wrong number of arguments for its payload fields (a pattern with the wrong number of bindings is bynk.types.pattern_arity).
  • bynk.types.variant_missing_payload — A variant requiring a payload was used without one.
  • bynk.types.variant_payload_mismatch — A variant payload has the wrong type.
  • bynk.uses.name_conflict — Two commons a unit uses declare the same type, function, constant, asset or embed; or a value crosses between a unit’s code and an imported declaration’s position whose type the unit shadows; or a reference names an import the unit’s own declaration shadows.
  • bynk.uses.self_reference — A commons uses itself.
  • bynk.uses.target_is_context — uses targets a context instead of a commons.
  • bynk.uses.unknown_commons — uses names a commons that does not exist.
  • bynk.requires.conflicting_range — Two adapter binding … requires { … } entries give different version ranges for one npm package.
  • bynk.requires.unapproved — A reached adapter of a git or registry dependency requires an npm package, at a range, that the project hasn’t approved in bynk.lock; review it and run bynk approve <package>.
  • bynk.requires.unpinned_dependency — An adapter binding … requires { … } entry has an unpinned version range.