Skip to content

Telo v0.109.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 16:57
3fe9d3d

Packages

Package Version
@telorun/cli 0.109.0
@telorun/analyzer 0.109.0
@telorun/cel 0.109.0
@telorun/debug-ui 0.6.5
@telorun/debug-wire 0.4.3
@telorun/ide-support 0.109.0
@telorun/k8s-runner 0.18.0
@telorun/kernel 0.109.0
@telorun/language-host 0.2.0
@telorun/language-server 0.109.0
@telorun/runner-core 0.17.0
@telorun/sdk 0.109.0
@telorun/templating 0.109.0

Minor

The telo version a module is edited against is the version it runs on. A session request may name, per application, the telo release it runs on (telo on each entry of apps, or on the request for a single-app session), and a runner advertising features.teloVersions runs exactly that version — never a substitute. What can be known without fetching anything is refused before a session exists: 400 telo_version_unavailable carries { app, version, reason }; a version sent to a runner that does not advertise the feature is 400 telo_version_unsupported; text that is not a release version, or a session where only some apps name one, is 400 invalid_telo_version. Fetching the version — an image pull, a release download — happens inside the session's start, with progress on its stream, and a fetch that fails is that session's failed start carrying the reason. — cli, debug-wire, k8s-runner, kernel, language-host, runner-core

  • docker-runner and k8s-runner run that application's container on <RUNNER_TELO_IMAGE_REPOSITORY>:<version>-<RUNNER_TELO_IMAGE_VARIANT> (default telorun/node:<version>-slim; chart session.teloImages). Which versions may run is the image source's own rule on both; the k8s base-image catalog is the menu config.image is picked from and gates nothing else. An unreleased build identity (X+unreleased) has no published image: it runs on RUNNER_TELO_UNRELEASED_IMAGE where the operator set one and is refused, naming that variable, otherwise. The runner's own workspace container never follows an application's version — it stays on the operator's kernel image (RUNNER_IMAGE, new on docker-runner). config.image and config.pullPolicy are deprecated: a client naming no version still sends them and gets the old behaviour, the advertised schema marks both deprecated: true and requires neither, and a request naming a version beside either is 400 invalid_config. How a version's image is pulled is the operator's — RUNNER_PULL_POLICY (missing | always | never, default missing; chart session.teloImages.pullPolicy), which also governs the runner's own workspace container. A failed start's status now carries the daemon's own message beside the stage.
  • telo runner runs its own version as itself and any other as that release's standalone binary for the platform — downloaded while the session starts, verified against the release's checksums.txt, cached per version. A cached binary is rehashed against the digest recorded when it was written, which detects a damaged file (the digest sits beside it, so this is not tamper protection). Another build's unreleased identity is refused up front; a failed download names its cause: no release or no binary for the platform, the HTTP status, a missing or non-matching checksum, no writable cache directory.
  • The runtime says which version it is. Kernel.Starting carries { telo } (X, or X+unreleased for a build made while X is pending; the kernel's own generated TELO_RUNTIME_VERSION), and the runner passes it on as telo on that generation's run started event. The runner compares nothing.
  • Studio sends the version the language session reports for the module being run (LanguageRouter.statusOf(uri), new in @telorun/language-host), shows a runner's refusal in the run dock with the runner's own reason, shows each application's reported version beside its generation, and warns — without stopping the run — when the runtime reports a different version than was asked for, or when the module has moved to another version since the run started. A module with no engine cannot be run until its version is resolved. The runner settings form leaves out every property its schema marks deprecated.

RunnerBackend gains the optional supplyTelo(version, config), BackendAppSpec carries telo, and ServerDeps.validateConfig is now a ConfigGate, told whether the request names a version.

The telo version picker no longer says whether a version's engine is cached (describeVersionMark in @telorun/language-host, so in Studio and the VS Code extension alike): it changes nothing a reader would choose by, and "cached" is not a word every reader of that menu knows.

An engine built before its release is shown as X (local), where it read X (unreleased build) — in the status label, the version picker and every sentence built from them (describeEngineVersion).

@telorun/language-host gains describeAcceptance(mark) and an acceptance: false option on describeVersionMark, for a host that marks acceptance with an icon rather than in the row's text, as Studio's menu now does.

Also in this change, and not version alignment:

  • A run's files sit in the session where the editor holds them, relative to the workspace root (Studio's run bundle). An application at <root>/apps/todo/telo.yaml is now apps/todo/telo.yaml in the session workspace — entryRelativePath included — where a single-app run used to be rooted at the application's own directory. The agent's sync writes the editor's whole tree into the same volume relative to that root, and the two layouts disagreeing deleted a running app's files on the first agent turn. A relative path an app takes from an env value now resolves against the workspace root rather than the app's directory; !module-path is unaffected.
  • Deleting an application in Studio stops its running session and drops its runs, and a save ends the session of an application that has vanished some other way, instead of failing every save with Entry module not found.
  • docker-runner's watch session passes telo's options before the manifest path. They came after it, where every token is the application's, so an application declaring no arguments refused --watch, --inspect and --no-open at load.
  • Replacing a docker watch session's app set pulls the new images before removing the running containers, so a pull that fails leaves the session as it was.
  • Studio's agent panel opens as a draft when no agent is reachable, creating the conversation on the agent a send then launches — the first send no longer fails with ERR_CONVERSATION_NOT_FOUND — and draws no summary card for a turn that changed no file, ran nothing and was not reverted.
  • Studio's telo version menu lists the ten newest minor releases with each one's other versions nested, puts a row's description under its title, marks acceptance with an icon, and its label reads Telo X with (auto) when Auto chose the version.
  • The capability document gains config.supersededByTelo — the config properties a request leaves out once it names a version — and a release older than MIN_SUPERVISABLE_TELO (0.95.0, the oldest verified by execution) is refused before a session exists.

The analyzer's CEL half now runs on @telorun/cel; @marcbachmann/cel-js is no longer a dependency of it. The editor's CEL symbols read the new engine's types with it, so completion and hover answer what telo check resolves, and the engine bundle declares @telorun/cel among the workspace packages it inlines. — analyzer, ide-support, language-server

A module's own names are NAMESPACES on the environment a site is read against. Resolution used to be a rewrite applied to a parsed tree after the fact; a qualified call is now a node of its own, produced as the expression is READ over the name set, so every walk — access chains, the unused-declaration pass, the durable-nondeterminism pass, a callable's derived flags, a rule's condition — sees the resolved shape instead of re-deriving it. A namespace is declared open, with each reachable callable's declared result and no parameter list: whether a call reaches a function at all, and whether its arity and arguments fit, rest on the export gate, the dependency edge and a JSON Schema per parameter, which is FUNCTION_UNRESOLVED / _NOT_EXPORTED / _NOT_CALLABLE / _ARITY_MISMATCH / _ARGUMENT_MISMATCH — the analyzer's own verdicts, withheld by the engine by construction rather than suppressed after the fact.

A name a module declares that CEL cannot read as a namespace is filtered, not refused. A module name, an import alias and a library's metadata.name are YAML scalars nothing lexes where they are written — which is what INVALID_NAME / INVALID_TYPE_NAME exist to report — so a set reaching the engine routinely holds my-module, and the engine refuses such a set whole. Letting that throw would turn one reportable name into a crash losing every other diagnostic in the file.

Reading never throws and never discards what it read, so a try { parse } catch is now a check for one ranged diagnostic, and a scalar an author is mid-way through typing keeps its longest-prefix tree. Three verdict MESSAGES are the engine's own words now, with the same codes: an undeclared field reads "dbb" is not declared here (declared: db), an operator with no overload no "+" is declared over int, string, and a repair the checker builds writes CEL's own string quoting (a.b.startsWith("x")).

A branded CEL value is a plain object, so two structural walks stopped asking the prototype. precompileDoc and the plain-literal decoder rebuilt a container from its entries, which drops the symbol a duration, a uint or a timestamp carries its brand under — silently turning a decoded duration into a pair of numbers — where the class instance they were written against came back untouched. Both now ask isCelRecord.

steps is registered as a closed record rather than a named type with an in operator of its own, since a record is a map with named keys and the standard library's K in map<K, V> already answers '<step>' in steps.

An expression is never evaluated at or above a reference slot — one rule, one static code, one runtime code, one shared reader for the position set. — analyzer, kernel

TEMPLATE_REF_COMPUTED is renamed REF_SLOT_COMPUTED and begins firing at a second position it never covered: an expression at or above a reference slot of a RESOURCE, in a field the kind evaluates at creation. A Telo.Provider's whole root is implicitly compile-eval and providers in the standard library declare reference slots (OpenAI.EmbeddingModel.request, OpenAI.ImageModel.request), so a !cel written above one was accepted by every static check — a legal eval site, no concrete reference site left beneath it — and the kernel then expanded it at create() and left data at a use: call slot. The template-body message keeps its wording and its "forward it verbatim with a bare self.<path>" repair; the resource-level one drops that half, a resource having no enclosing instance to forward from.

The runtime half is ERR_REF_SLOT_COMPUTED, raised at both expansion sites the kernel owns — a template body's self-expansion and the compile-eval expansion every resource's create() performs — before evaluating, and from the same reader the static verdict uses, so the refused positions are the reported positions by construction. It names the resource (and, for a template child, the owning template instance and the entry), the expression's path as written, the reference-slot pattern it holds, and the repair. Phase-5 injection still leaves a non-reference value at a reference site untouched and ctx.resolveRef still refuses one at dereference as ERR_REF_UNRESOLVED; that backstop is unchanged, and being lazy and conditional is why it could not be the refusal.

There was no kernel half before this. The run failed — when it failed at all — on the CEL dependency's own internal refusal of a live instance inside a map literal, text that named nothing an author could act on and that Telo did not own. The agreement suite pinned that text, so swapping the CEL engine turned both of its runtime rows green with the defect still in place; pinning a dependency's internal error as a Telo refusal is what let the regression hide.

Keyed on provenance, never on shape: a reference slot legitimately holds a {kind, name} reference, a live instance, an inline declaration, a value-branch scalar and — at a type slot — raw JSON Schema, all of which still create and run unchanged. The one exemption is a bare self.<path>, which a template body navigates rather than evaluates. Where validate-references would add a second, shapeless verdict about the same line (must have string 'kind' and 'name' fields), it now reads the same set and stays quiet — a slot the kind never evaluates still reports there.

A resource or referrer rule is no longer reported as defective for a subject nothing showed it, and one evaluation-time failure is one diagnostic. — analyzer

An absent pointer stays absent in what a resolve: rule reads. The resolver short-circuits a pointer that resolves to nothing by handing back the absent value, and the rewriter wrote the key regardless — so after resolve: [/nodes, /relationships] on a store declaring no relationships:, the subject carried a relationships key that existed and held nothing. self.?relationships answered present, .orValue([]) yielded nothing, and the comprehension over it got a non-collection range: a rule whose optional-field guard was exactly right reported as a defect in the rule, over the consumer's manifest. The field now stays absent, which is the line in:'s subject walk and the peers binder already drew ("an absent collection is an empty one"), so all three subject views agree — absent means absent, never a present key holding nothing. Seven of the eight RESOURCE_RULE_INVALID warnings a census over 1196 manifests reported fell to this, every one a GraphSql.Store omitting relationships:; the stores writing relationships: [] explicitly always evaluated, and both now answer the same.

A rule is not evaluated over a declaration its slot refuses, and reports nothing. Where a reference names a resource of a kind the slot does not accept, the resource is already refused at that very slot (REFERENCE_KIND_MISMATCH) and the condition would read fields off a shape it was never shown — a language slot pointed at an orientation model, whose declaration carries no code. The binding fails with the new kind-refused reason, decided with the reference check's own acceptance rule, and that reason is reported by nothing — not RESOURCE_RULE_SKIPPED / REFERRER_RULE_SKIPPED, because coverage did not vary invisibly here and a second diagnostic about the rule's internals blames the kind's author for the manifest author's mistake. The eighth warning was this.

An evaluation-time rule failure is one diagnostic per rule, where the reader can act on it. A rule that throws on a subject the static check could not foresee, or that exhausts its 50 ms budget, reported per site: one upstream defect produced 107 diagnostics across 99 lines, every one pointing at a line the reader does not own and cannot fix. It is now reported once per (declaring kind, rule code) per analysis, anchored where the reader can act on it, with its severity following from whether that reader can fix it: a warning at the imports: entry that brought the kind in, since a consumer cannot change a dependency's rule and an error there would block telo check on a line they do not own; an error at the rule's own declaration (schema.x-telo-resource-rules[<n>] / schema.x-telo-referrer-rules[<n>]) for a kind of the workspace's own modules, where the reader is the author and a declared rule that cannot run is checking nothing. The first site it was seen at is named in the message as the example. A diagnostic count that grows with the consumer's manifest size for a single upstream defect is noise whose cost is superlinear in the thing being checked, not an actionable error. Both rule families take it through the half they already share.

CEL evaluation is faster than the engine it replaces on every expression shape measured, and two public surfaces of @telorun/cel change to get there. — cel

An implementation takes its call context first and its arguments positionally, up to CALL_SITE_DIRECT_ARITY (4, the widest arity any registration declares), where it previously took an array of values and then the context. That is the contract a host's registerFunction implementation and a CelCatalogHandlers entry are written against. Both backends now pick a call-site entry point (call0 … call4) from the arity they have, so a call allocates nothing and its monomorphic guard is a field compare per argument rather than a loop over an array; the array form remains for a call written wider than any signature may be. A signature past the bound is refused where it is registered, with the new CelEngineError code signature_too_wide — an implementation could otherwise only be called with its tail dropped. The arity of a call is still the source's: '42'.replace('2', '1', 1, false) is five values and answers no_matching_overload naming the types it was handed.

A map's entries are keyed by each key's own typed value rather than by a s/n/b-prefixed canonical text: a string or a bool is itself, and an int, a uint and a whole double are all the bigint CEL equality makes them. Every guarantee the prefix carried is unchanged — one container holds CEL's four key types, 1 and 1u are one key while "1" is another, __proto__ round-trips as data, a double that is not whole is no key — because a Map compares a key by type as well as by value. CelMap.entries is therefore keyed by the new CelMapKey (string | bigint | boolean), celMapFromEntries takes its entries flat (key, value, key, value) instead of as pairs, and mapKeyIdentity is no longer exported: what identifies an entry is the entries map's own business, and a host reads a map through the member-read seam and walks entries for the pairs.

Beside those, a member read of a record's own string-keyed entry asks what the container is once instead of three times, and a comprehension no longer copies the list it ranges over.

Measured against @marcbachmann/cel-js (medians of 25 alternating rounds, 10k evaluations each, one process): a string comparison 1.13× faster emitted and 1.08× closure; a three-term guard building a URL 1.30× and 1.26×; a filter with a nested exists building a five-key map literal per element 1.20× and 1.07×. The emitted backend had been 1.32×–1.47× slower than cel-js on those same expressions, which is the defect this closes — transpilation that cost more than interpreting.

EMITTER_FORMAT_GENERATION is 2: the emitted text changes for every call in every tree and for every map literal, so a module cached under generation 1 is recompiled rather than run.

A faster alternative was measured and refused: a typeof-keyed table of operator implementations beside the runtime library reaches 1.68× on the guard expression, and is global, outside the environment digest, and consults no registry on a hit — so a host that registers its own == over two strings gets the standard library's answer back on every call. A replaceable standard library is what the package exists for. The new tests/call-site-identity.test.ts holds every call the registry lists to answering the same cold as warm, and a site driven through several argument types to answering as a site that never ran, so a re-introduced table fails on its first run.


@telorun/sdk's value domain is @telorun/cel. Duration and UnsignedInt — the two classes every Telo package and controller obtained from the SDK — are gone, and with them the realm probe that asserted the engine's copy of them was the SDK's. A CEL value says what it is under Symbol.for("telo.cel.value"), which is the same symbol in every copy, so two independently loaded engines agree about a duration or a uint with nothing deduplicated and nothing to assert. In their place the SDK re-exports the engine's own vocabulary: celUint / isCelUint, celDurationFromNanos / isCelDuration / durationNanos / formatDuration / parseDuration, celTimestamp / isCelTimestamp, and isCelRecord. The fields are the ones they were (.value, .seconds, .nanos); new and instanceof are not. There is one duration constructor and it takes total nanoseconds, so a duration outside CEL's range cannot be built — it answers the range error instead. A CEL duration no longer renders itself: String(duration) was "5400s" and is now [object Object], so formatDuration is what writes one.

ValueTypeBinding.constructor is now holds, a predicate. A brand has no constructor to test, and a predicate covers both kinds of identity — a host class answers with instanceof, a branded value by its type key. A live binding now declares a placeholder too, because building a stand-in belongs to the binding, which is the only thing that knows what the value is.

isCelRecord is the companion every structural walk needs. A branded value is a plain object, so a walk that decided "is this a container to descend into?" by testing the prototype now descends into a duration and rebuilds it without its brand — where a class instance was returned untouched. The kernel's BigInt schema view was the first such walk and now asks the value domain instead; the rest of the walks are a sweep this change does not finish.

durationNanosFromText is new on @telorun/cel: CEL's duration grammar with no range applied. The grammar and the range are separate questions and a reader outside CEL has the same grammar with a different range — protobuf's google.protobuf.Duration reaches ±10,000 years, which cannot be held in an int64 of nanoseconds at all, so the typed frame and the cel-duration plain encoding cannot go through parseDuration and would otherwise restate the grammar. parseDuration is now that function plus CEL's range check.

@telorun/cel joins REALM_COLLAPSE_NAMES, and the bundle builder's refusal of a controller that inlined the CEL engine is deleted. That guard existed because values were typed by constructor, so an inlined copy's Duration was foreign to the kernel's; it is not any more. What a second copy still duplicates is everything the engine holds — its registry, its environments and their caches, the emitted-module store's keys — which is why it is collapsed rather than left alone.


@marcbachmann/cel-js is gone from the repository, and @telorun/cel is what every package runs on. The engine was built alongside it and consumed by nothing; this is the cutover.

@telorun/templating no longer declares a CEL function or classifies a CEL verdict. Telo's 67 functions and their 86 signatures ship inside the engine as data plus implementations, so cel/catalog.ts — 1,455 lines of table — and cel/json-prefix-scan.ts are deleted, and registerFunctionCatalog is what the dialect is. Removed from the package's surface: CEL_FUNCTIONS, CelFunctionInfo, CelFunctionDoc, CelFunctionCategory, deriveSignatures, functionIndex, resolveModuleCalls. celFunctionCatalog() now re-exports the engine's one listing surface (its entries carry signatures, category, summary, deterministic, hostBacked, checksLiteralArguments), moduleCallNames(root) is new, and auditCalls gained a trailing checked? parameter while its diagnostics, unresolved and argumentIssues are now always empty — the engine decides every call verdict itself.

Two mechanisms disappear with their causes rather than being ported:

  • The call classifier. It existed because the replaced engine reported one sentence for three unrelated mistakes (found no matching overload for 'f(...)'), two of whose readings actively misled — the message named argument types, so the repair for startsWith(key, 'x') looked like a cast when the fix was key.startsWith('x'). The engine decides an unknown name, a name called in the other form, an unknown field, a type no overload takes and a refusal over a literal argument each where its cause is known, with a range and a whole-source fix. So a diagnostic is the engine's, coded, and nothing reads a message. The verdict vocabulary gains CEL_TYPE_ARGUMENT_MISMATCH, FUNCTION_UNRESOLVED, FUNCTION_ARITY_MISMATCH and FUNCTION_ARGUMENT_MISMATCH.
  • The module-call tree rewrite. Alias.fn(x) and obj.method(x) are the same syntax, so templating used to rewrite the parsed tree through internals the replaced engine did not expose: a setMeta('macro', …) redirect, a comprehension macro's alternate winning over macro unless cleared, an rcall's asyncness read off checker state. Three facts about a dependency's internals, each pinned by a test, and the reason it was pinned to an exact version. qcall is now a node of its own, produced by a total pass over the name set, and a parsed expression records the set it was resolved under — so an environment refuses a tree resolved for another site instead of answering a different question about it.

registerValueBrands declares rather than implements. A nominal type's conversions and members are signatures over Self; the replaced engine required a function body per registration, so three stubs existed that a brand's values never reached.

re2js and uuid moved to the engine at the same exact pins the vectors ran against.

Also new on @telorun/cel: durationNanosFromText (the duration grammar with no range applied — see above), and BINDING_FORMS / receiverMacroBinding / namespaceMacroBinding, so a host walking a tree asks the engine which forms bind a name instead of keeping a list of comprehension method names in step with it.

The gate for this cutover is a diagnostic census, not "no manifest was edited." scripts/cel-cutover-census.mjs records every diagnostic telo check reports over every manifest in the repository as (file, line, column, code) — 1,194 manifests, 661 diagnostics, 10 distinct CEL codes — taken before the swap and again after, and diffed. "No manifest was edited" is a proxy that is blind to a verdict that DISAPPEARS: a manifest that reported a warning before and reports nothing after is edited by nobody and is exactly the regression an engine swap causes. A first pass over the 569 real manifests found three CEL diagnostics in all; the 382 negative fixtures under tests/__fixtures__ are where the verdicts live, and without them the census pins the clean half of the corpus and calls it the corpus.


FUNCTION_NAME_RESERVED is removed, cause and all. A Telo.Function could not be named map, filter, all, exists, exists_one or bind, because the engine this replaced expanded <Module>.map(…) as its own macro before a module call could resolve, so most calls to such a function did not parse. Namespace resolution now outranks macro expansion: a call whose receiver is one of the declaring module's names is a qualified call whatever the function is called, and a call on a VALUE is still the macro. Verified by execution over every macro name — each parses as a qualified call with no diagnostic — and Alias.filter(21) is judged like any other module call. The diagnostic, its runtime twin in tests/check-run-agreement.yaml, and its row in docs/reference/diagnostics.md are gone; the fixture's function named filter stays, as evidence that the name is ordinary.

The cutover's gate, and what it found. scripts/cel-cutover-census.mjs records every diagnostic telo check reports over every manifest in the repository as (file, line, column, code) — 1,194 manifests — taken before the swap and again after, and diffed. It exists because "no manifest was edited" is a proxy that cannot see a verdict that DISAPPEARS, which is the regression an engine swap causes. Result: 661 → 775 diagnostics, no code disappeared, and 33 positions lost every diagnostic they had. Each of those was chased rather than accepted:

  • 36 CONTRACT_INPUTS_MISMATCH and 17 SCHEMA_VIOLATION were false positives. The clearest case is modules/openai/tests/tool-choice-request.yaml, where inputs: !cel "steps.request.result" was reported as not satisfying the target's inputType at three steps — and the manifest runs green. A static mismatch against a manifest that executes correctly is a verdict that should not have been there; the engine types the expression honestly and the report is gone. The stand-in cases are the same shape, and one fixture's own comment already said the stand-in should be excused.
  • REFERRER_RULE_INVALID 0 → 99 and RESOURCE_RULE_INVALID 1 → 8 all trace to one published rule and one semantic question — whether an optional member read (a.?b) on a value that holds no members answers absent or an error. That is being decided on its own terms, not patched.

A presence-shaped read over a value that holds no members answers "absent", not an error. a.?b and a[?k] answer optional.none() and has(a.b) answers false wherever a turns out to be a string, a number, a bool, bytes, an instant, a span, null or a value of a host's own named type — where each of the three used to fail the whole evaluation with unsupported_container. That is how a field holding two shapes is discriminated without a type test, which is what the SQL schema module's SQL_ENUM_NOT_DECLARED rule does: it was reporting REFERRER_RULE_INVALID on 99 manifests instead of evaluating, and now evaluates. — cel

The authority is the optional library's own. It enters this engine from cel-go whole, and cel-go's attribute qualification answers "not found" for a receiver that is neither a mapper, a lister nor an indexer whenever the read is a presence test; erroring instead is an explicitly named opt-in (EnableErrorOnBadPresenceTest) which Telo deliberately does not carry — a per-environment switch over what an expression MEANS would let the analyzer and a kernel disagree about one manifest.

Three readings are unchanged, and they are what keeps the loosening from hiding a mistake. An ordinary read of such a member (a.b, a['b'], a[k]) is still unsupported_container; so is the ordinary step of a chain that has already entered optional land (a.?b.c where b holds no members), which is cel-spec's own answer for {true: dyn(0)}[?true].absent; and an unusable key — [?3.1], or a name indexing a list — is still unsupported_key_type in every form, optional included, because it names an entry no container of that shape could hold.

Statically the strictness moves rather than relaxes. An operand whose type is known to hold no members is refused with CEL_TYPE_ERROR ("… holds no members") in the presence forms exactly as in the plain one — .? over a declared string is a mistake the check still states — so the runtime's absence answer is reached only through a dyn the check could not judge. The one thing that becomes legal is a union with at least one member-holding branch: has(x.name) and x.?name over a field declared as a string or an object with name now check clean and type as optional<string>, the member-less branches being the absence case, while the ordinary x.name stays refused. There is no new diagnostic code and no new environment option.

What now silently succeeds and used to be reported: a mistake in the operand chain over a dyn value that turns out to be a scalar — writing x.type.?name where x.?type was meant — is an absent optional instead of an evaluation error. A field typo was already absence, so that is exactly the newly hidden class; the static half above, over any field whose shape a schema declares, is its compensating coverage.

Two of @telorun/cel's diagnostics give a reader back what the engine it replaces told them. — cel

A call on a name nothing registers names the names that would have worked. no(1) was no function named "no" is registered and is now no function named "no" is registered — the closest taking 1 argument: int, abs, avg, bool, dyn in an environment carrying the function catalog: the candidates are the registered names that accept the call's form and arity, at most UNKNOWN_FUNCTION_CANDIDATES (5) of them, ordered by edit distance over the name as written and then by name — a declared bound and a declared order, because the conformance vectors pin the message byte for byte and a selection a second engine cannot reproduce would be a row no port can pass. A name that cannot be written as a call is filtered out, so the operators (!, -, +) are never offered. The message names no command to run: which listing a host offers is the host's, and an engine embedded in a host with no command line would be pointing at nothing. The single rename fix is unchanged and still singular — 'a'.startswith('b') still offers its one rename — because a list of five repairs is not a repair.

A namespace declaration whose type nothing is registered under is a ranged verdict instead of a throw. registerNamespace accepted { name: 'untyped', returns: 'NoSuchType' } by throwing CelTypeExpressionError out of registration, which left a host no path at all: a module function's declared result is data out of someone's manifest, so one author's typo became a crash with no line. Now the declaration is accepted, reads dyn where that type stood, and every call to it carries a ranged CEL_TYPE_ERROR naming it — the same rule an unjudged schema node already follows, reported beside the structural reading by the consumer that knows where the declaration was written. It holds for a withheld-parameter declaration's returns and for a full signature's parameters alike. CelTypeExpressionError keeps what it is actually about — text this grammar cannot read — and the new CelUnknownTypeNameError is what a well-formed expression naming an unregistered type throws for every other caller.

The branded CEL timestamp is Telo's one timestamp value, and a Date is never a Telo value. An instant is { seconds, nanos } in 0001-01-01T00:00:00Z … 9999-12-31T23:59:59.999999999Z, asked with isCelTimestamp and built with celTimestamp(seconds, nanos) or the new celTimestampFromMillis(ms) — the mirror of celDurationFromNanos for a host clock reading. A Date is a foreign host object: it is refused at a Telo.Timestamp slot, at telo check and at creation alike (the stand-in the analyzer substitutes is built from the same binding the kernel asserts with), and a typed frame refuses one at its path, naming the factory to use. A writer producing text for a reader outside the value domain — a log line, a chart label — may still hold one. — cel

One timestamp text, everywhere: RFC 3339 in UTC with a Z and a trimmed fraction. Absent when the instant is whole, otherwise one to nine digits with no trailing zero — CEL's own string(timestamp), which is now the authority for the rfc3339 plain encoding, the google.protobuf.Timestamp frame payload, the plain JSON writer, a log record, an !interpolate hole and a manifest literal. So 2026-01-15T07:30:00Z rather than …00.000Z, and …00.000000001Z is representable where the millisecond floor made it unwritable. A tenth fractional digit is refused rather than rounded, in both directions.

The millisecond floor is gone from the spec, not just from the code. kernel/specs/durable-execution.md §6.3 stated it and gave Node's host Date as its reason in the same breath; the timestamp payload is now the duration's rule, and §6.6's vectors carry a nanosecond instant as a value.

Two pins that name the frame's payload grammar move with it: the recorded-value codec version is 2, and version 1 is still READ under its own grammar (exactly three fractional digits) so a run parked before this change resumes rather than being stranded; the controller-protocol generation is telo-5 (4 is withdrawn, having named the millisecond payload and never been spoken by any carrier). The emitter's format generation is untouched — no emitted text changes.

The Rust half lands with it: kernel/rust / sdk/rust carry the nanosecond Timestamp and the same canonical text, over the one shared vector file both halves read.

One seam a CEL value crosses on its way out to a host reader, and every boundary goes through it. A map has two representations in the value domain — a CelMap, whose entries are keyed by each key's own typed value so one container holds CEL's four key types and no key can ever be a property name, and the plain object a host hands one over as. hostValueOf (@telorun/sdk) converts the first into the second, recursively and by identity where nothing moved, and is applied at each boundary rather than restated at any: the result of a compiled value, a module function's arguments, a host-backed catalog function's arguments. A map with an int, uint or bool key is left exactly as it is, because a plain object cannot hold one and converting would collapse the four key types to text. It converts the map representation and nothing else — a uint, an instant, a duration and bytes cross unchanged, since a host reader of a typed slot must receive the value its contract declares. — kernel, sdk

Every host reader of a map now reads one through the value domain rather than through instanceof Map. A host Map is not a CEL value, and nothing had been moved with the representation: the plain-JSON writer wrote a map as its carrier ({"entries":{}}) at every boundary read outside Telo — an HTTP body, a log line, CLI JSON — and the typed frame could neither write one nor read one back, so a durable journal could not record a map and now refuses a host Map by name, which is what finds a controller still building one. celMapFromEntries is the only way a controller builds a map with a non-string key, and isCelMap the only way a reader recognises one; both are on the SDK's surface beside isCelUint / isCelDuration.

Four consequences a manifest can see:

  • A module function receives its arguments as data. WebSearch.sealCursor('searxng', {'query': 'q'}, '1-0') reached the callable as {"query":{"entries":{}}} and was refused for a property its author had written (ERR_INPUT_INVALID), which also hid every engine's own ERR_INVALID_INPUT behind it.
  • json(dyn) writes the value, not its representation. The host handler behind it writes through the plain-JSON writer — the one writer for a reader that is not a Telo runtime — so json({'a': 1}) is {"a":1} rather than {"entries":{}}. Four other forms move with it, each to the one plain form its type declares: a uint to its decimal digits rather than {"value":"7"}, bytes to base64url, an instant to RFC 3339, a duration to its 5400s text, a map with non-string keys keyed by each key's text (the protobuf JSON rule, with a key two of them would share refused rather than dropped).
  • A log attribute and the debug wire carry a map's contents, where both put {entries: {}} on the wire for every map.
  • An !interpolate hole that holds a map says so, both representations alike, rather than naming the host class of whichever carrier it was.

A host hands a map over as a plain object, and the boundary of that is the prototype. Object.prototype or null is a map; an object carrying a prototype of its own is not, however data-like it looks, because the member-read seam resolves a key against a value's own entries and cannot tell a bag from an instance with methods — which is what stops a computed key (request.query[k]) from ever reaching length, call or constructor. The engine deliberately does not widen to meet a host object: the host converts at its own boundary, and modules/http-server now does so for the transport's query and parameter bags, whose prototype is its parser's own.

An engine change invalidated controller bundles that are already published, and the repair is on the side that ships with the engine. @telorun/sdk is external to a controller bundle and collapsed to the running kernel's own copy, so a module's published artifact imports whatever SDK the kernel carries. Two consequences of the value domain reached every app with such an artifact in its lock file, and neither can be fixed by a requires: telo: floor — the floor would have to have been declared in an artifact that is already published. — kernel, sdk

A host's own bag is brought into the value domain where it enters an activation. request, inputs, item and every other binding a controller hands over is a CEL binding, so each member of it has to BE a CEL value; the member-read seam resolves a string key against an object whose prototype is Object.prototype or null and answers "this value holds no members" for anything else, never performing a host property read — which is what stops a computed key (request.query[k]) from reaching a prototype, a method or constructor. Fastify's query parser builds each bag as a null-prototype object, so request.query.name answered 500 on every handler. Measured: no published http-server carries the module-side repair (0.32.0, 0.33.0 and 0.34.0 all lack it), so the kernel is the only side that can reach them.

Exactly one shape converts: prototype-free data, whose prototype is itself prototype-free and carries nothing. A value already readable returns by identity — which covers every branded value, since a brand is a plain object carrying a type key, and rebuilding one from its entries would drop the symbol and turn a duration into a pair of numbers. Everything that keeps a real prototype is left alone: a Date, a Map, a typed array, a Stream, a live resource instance. The test is the prototype's own shape rather than a list of host classes to exclude, and it is deliberately narrow — a controller binding a class instance still reaches the engine's refusal, which is the honest answer, because that value is not a map and no normalization makes it one.

Duration and UnsignedInt are kept as deprecated shims. Removing an exported name breaks every artifact importing it with a SyntaxError at load (Export named 'Duration' not found), which is what record-stream@0.18.0 and @0.19.0 hit. A shim produces a value in the DOMAIN rather than an instance of a class: fromMilliseconds returns the branded value, so what a published controller hands onward is a real CEL duration every reader accepts. The two things the old surface offered and a brand does not are supplied around it — instanceof answers through Symbol.hasInstance, which is isCelDuration, and getMilliseconds() is a non-enumerable own property, so published code reaches it while every walk that reads a value by its entries cannot see it.

The method rides on every duration a published controller can receive, not only on one the shim built: the guard in the published code is if (!(value instanceof Duration)) throw …; return value.getMilliseconds(), so both have to hold for a duration the shim never saw — one decoded from a manifest slot, and one the engine computed from duration('30s'). Answering instanceof without the method only converts the crash into that function's own ERR_INVALID_VALUE. So it is attached at the plain encoding's decode and at hostValueOf, the seam that already exists to say what a CEL value is to a host reader and the one point both paths cross.

Deprecated on arrival; a module moves to celDurationFromNanos / durationNanos / isCelDuration and celUint / isCelUint as it is touched. Duration is measured against published artifacts; UnsignedInt is precautionary, with no recorded consumer, and is shimmed because it was an exported name that was removed.

Nothing about a converted value is cached. A conversion produces a COPY, and the bag it was copied from is a live host object the framework still owns: a route's validator coerces the query in place, and a request guard reads the binding before that happens. Memoizing the copy served the guard's pre-coercion snapshot to the handler, so a boolean query parameter arrived as the string it was parsed as and failed the contract it was declared against — visible only on a route that has a guard, which is why a probe without one answered correctly. Caching a copy of a value someone else mutates is the defect; the conversion is cheap and runs per expression instead.

One adapter turns a host's dispatch table into the engine's namespace seam. A module function's arguments are a host boundary, so they cross hostValueOf — the rule this package already documented and pinned on the compile path. The analyzer kept a second adapter for the table it binds while evaluating a rule condition or a pure function body at telo check, and that one called the bound function with the raw values: a map literal written at a call site arrived as the value domain's map container under telo check and as a plain object at run. The two halves disagreed about what one manifest means, by construction, in the direction nothing reports — a callable's parameters are AJV-checked against its declared params, so the container was refused for a property its author had written. namespaceDispatchOf is now exported from here and is the only adapter either host reaches the seam through; it is pinned directly, in both the shape the analyzer holds a table in and the shape a compiled value does, rather than only through one caller. — templating

celNamespaceNames was duplicated the same way — identical logic in both packages, where this one owns the name set it filters. The analyzer re-exports it instead.

An evaluation-time rule failure is anchored only at an import this workspace owns. The anchor fell back to a dependency's own imports: entry whenever no entry-owned import named the declaring module — a line the reader neither owns nor can change, and not where the defect is either, which is the failure this anchoring was introduced to remove. With no entry-owned import naming the module the diagnostic now stays on the rule's own declaration, which at least names the kind at fault.

Patch

The npm install root provisions the realm packages without running their lifecycle scripts. That install exists to put the kernel's own already-built packages on disk as file: references, so an npm-delivered controller resolves one copy of each and class identity holds across the boundary. None of them has anything to build there — but npm ran their scripts from wherever the kernel happens to live, and @telorun/cel has a prepare that generates its version constant from a repo-relative ../../scripts/. Resolved against a pnpm virtual-store directory inside an installed kernel that path does not exist, so the script failed and took the whole install with it: every npm-delivered controller (image, starlark, embedding) became unloadable in a packaged image while working from a checkout, where the path happens to exist. The failure arrived with @telorun/cel joining the realm set — before it, the one realm package had no prepare. — kernel

The per-controller install keeps its scripts, because a module's own postinstall is how it fetches what it needs.

And @telorun/cel's own prepare no longer fails outside a checkout. --ignore-scripts on the realm install was not enough: the per-controller install re-resolves the same tree and keeps its scripts, because a module's own postinstall is how it fetches what it needs — so the script ran there instead and failed the same way. It generates the engine's version constant from ../../scripts/, which only exists in a checkout; it now runs when that path is there and is a no-op when it is not, which is right for an installed copy that already ships the generated file. A failure of the generator itself still fails the install.


Changelogs: cli · analyzer · cel · debug-ui · debug-wire · ide-support · k8s-runner · kernel · language-host · language-server · runner-core · sdk · templating