Roadmap
What comes next for jlens, and what is not planned. Finished plans, one paragraph per release, are in the roadmap history, and every change in the changelog. A plan’s table lists its items, one row each: what it delivers, when it is done, and its state. The rows are in the order of the work: the items done or moved, by date, then the pending ones in the order they will run. An item keeps the number it was given, so a late item can come before a lower number.
Priorities
Three principles order the work after 0.2:
- The core is a library for custom integrations. Applications embed
jlens-corein their own pipelines. It must stay small and decoupled, let the application set every limit, never panic, and change its API only on purpose. - The CLI is a tool for automation and AI agents. It never prompts, it gives the same output for the same input, and it has one documented machine-readable contract: what goes to standard output, what goes to standard error, and what each exit code means.
- Editors come after. The language server is done; the VS Code extension is 0.15.
For ad-hoc JSON queries, jq remains the usual tool. jlens is for JSONata that will run
somewhere else, such as a rules engine or a jsonata-js service. It checks those expressions,
tests them and explains their results before they ship.
0.37: what adopters need before they evaluate
The applications adopting jlens judge it with what this plan delivers, and what they report then
shapes 0.38. #4, #5 and #7 come from an outside review of the code at 7b69a6e, its claims checked
before they were listed (one, a hang of $formatInteger in words, was false), and #11, #12,
#19, #20 and the reader’s gaps in #9 were candidates of the same review, taken on 2026-11-27:
#19 because applications will load schemas that their own users send, #20 because it slows the
crate that 0.36’s UTF-16 searches were made for. #8 is the one feature of jsonata-js
2.3.0 that 0.36 left out. #9 and #10 come from applications built on jlens: their editors list a
schema’s fields by walking it by hand, and corporate pages set a Content-Security-Policy that the
guide does not mention. #13 follows from #9: when a schema’s new version renames or moves fields,
the expressions stored against the old one are rewritten from a table of paths that the
application builds from the two lists. #14 measures what the WebAssembly module, grown by a
quarter since 0.27, is made of, for 0.38’s ADR. #21 comes from a second outside review, of the
code at 285e0b7: #13’s rewrite could change what an expression means, so it is fixed before
the release; that review’s other findings open 0.38. #3, from 0.36 #8’s review, lets the release
workflow follow the channels’ tiers. #1, #2 and #6 are now 0.38’s. #15 opens the plan and #16 to
#18 close it, as in every release. Between them the rows run from the fixes to the features, and
#3 comes just before the release that first uses it. As in 0.36, an item names in its status the
choices it made that the maintainer has not reviewed.
| # | Item | Done when | Status |
|---|---|---|---|
| 15 | The dependencies at their newest versions and the upstream watch, before the rest | The dependencies of step 1 of the release checklist, Dependabot’s pull requests merged and the pins it does not see (such as TypeScript for the check of types.d.ts, and ovsx); stacker (#155, #156), regress after 371ab39 and jsonata-js (npm after 2.3.0, main after 361156d, pull request #875, whose monthNameCase.json is vendored once it merges) checked; what they bring becomes an item of this plan or is recorded with the reason it waits | done on 2026-11-27: nothing to update. Cargo (also in fuzz/) and every direct dependency were at their newest releases, as were npm (no advisories), TypeScript, ovsx, binaryen, Maven, its plugins and Wrapper, JUnit, the actions’ majors and maturin. One exception: vscode-languageclient 12.0.0, a major published that day with no release notes yet, waits out Dependabot’s three-day cooldown and goes to step 1 of the release checklist at #16. The upstreams had not moved: stacker (#155, #156 open), regress (still 371ab39, crates.io 0.12.0), jsonata-js (main 361156d, npm 2.3.0, #875 open at fcb4471 with no review) |
| 4 | The C API and the Java package under threads and failures | Each reproduced by a test before it is fixed: a document freed while an idle pool thread still caches its text (documents.rs’s FOUND), so that no thread sweeps its conversions; Bindings.close during an evaluation, whose host function then throws IllegalStateException; critical(false) on BUFFER_* downcalls that lock and free; BUFFER_FREE outside a try/finally; Json.java and Read.java, recursive, over a value 1,000 levels deep at -Xss128k; Options.NATIVE, which never evicts, so that after 64 distinct options (a now per call) every other one makes and frees its native object per evaluation | done on 2026-11-27, each reproduced by a test that failed first: a thread’s conversions are kept by the document’s handle and swept when the table’s count of removals moves, so no thread holds a document’s text between its calls; an evaluation’s Host keeps its bindings’ functions from its start; no downcall is critical any more (a System.gc() waited 163 ms for a sweep of 170 ms inside one); replies and new buffers are freed in a finally; Json and Read use stacks of their own; Options keeps 64 native objects with a second chance, each freed by the Cleaner once no evaluation holds it. Choices not reviewed by the maintainer: Read.Fields compares, hashes and prints by its JSON form (toString is now Fields[{...}]); the three buffer calls lost critical, not only the one that frees, as each sweeps and locks: measured on the M1 with java-compare ab, no case slower past the mark, JSON text within ±0.8%, path on a Document 5.6% faster (finding the conversion by handle), host-function calls not timed (docs/notes/perf-0.37.md); the garbage-collection test is timed, skipped when the sweep takes under 80 ms; options let go are freed by the garbage collector, not at once |
| 5 | No allocation past the size limits | $replace checks max_string_length while it builds its result; the review’s other cases (filter_items, $split, $pad, $join on wasm32, $fromMillis) checked, and fixed where they allocate past a limit | done on 2026-11-27: each allocated past its limit, measured by an allocation probe (20-390 MB built against limits of 100,000 bytes or 1,000 to 10,000 items) and now stops at it: $replace in its three loops and inside $0 and groups, $split and $match (also past the review’s list) counted as they push, $pad before it builds, $join’s sum without overflow, $fromMillis as each marker is written; a filter whose predicate repeats a position was not limited at all (a test that failed first). ab on the M1: a check per piece made $replace 7-13% slower, one per match with the error out of line brings it within 1.3% (docs/notes/perf-0.37.md). Such a filter now fails with U1001 where it gave a result past max_array_length: approved by the maintainer on 2026-11-27 |
| 12 | No Python code inside a critical section | Free-threaded Python: source.rs writes a list’s item while it holds the list’s critical section, and writing it may call the item’s own methods (a Mapping’s, a subclass’s), which may suspend that section; reproduced by a test on free-threaded CPython before it is fixed, or shown not to happen and the reason written beside the code | done on 2026-11-27: it happened, reproduced by a test that failed on CPython 3.15 and 3.15t: an int subclass beyond 64 bits was read by its own __float__ (PyFloat_AsDouble), a str subclass with a lone surrogate by its own encode, and code there that changed the container made the read fail with U1004, or panic in a dictionary (PyO3’s iterator); both now call the built-in type’s function (int.__float__, str.encode with "utf-16", which also skips the codec registry’s search function, written in Python). The other reads were checked and the reasons written in source.rs: types told apart by their flags, collections only between bytecodes since 3.12; left, on GIL builds only, a metaclass’s __name__ in an error message on 3.10 and a collection at an allocation on 3.10 and 3.11. Only rare values take a new path, so not measured. Choice not reviewed by the maintainer: such an int subclass gives the float of its value, not what its __float__ returns, as json.dumps writes its value |
| 11 | The workflows hardened | Every action of .github/workflows pinned by commit SHA, its version in a comment, kept up to date by Dependabot’s github-actions updates; concurrency on the workflows that a newer push makes stale (not on release.yml); an unknown xtask subcommand fails with its usage instead of exiting 0; actionlint clean | done on 2026-11-27: every external action of the eleven workflows pinned at the commit of their newest tag in their major (pypa/gh-action-pypi-publish at v1.14.3, not its branch release/v1), and actionlint’s download script at the commit of v1.7.12; dtolnay/rust-toolchain, which has no tags, at a commit of master with toolchain: as its input, and no longer ignored by Dependabot; concurrency only on ci.yml, whose runs on a pull request cancel the one before them (pages.yml had its own, and the other workflows run on a schedule, a tag, a release or by hand); cargo xtask with an unknown command or none exits 1, help prints the usage. Choices not reviewed by the maintainer: runs on main are never cancelled, each commit in a group of its own, since release.yml needs the run of the tagged commit and one shared group would cancel a waiting run; whether Dependabot moves a pin with no tag (dtolnay/rust-toolchain) is seen at its first weekly run, and step 1 of the release checklist now names it otherwise |
| 10 | Serving the module: a Content-Security-Policy and its size in the WebAssembly guide | The guide says which directive a page needs to compile the module ('wasm-unsafe-eval' in script-src), what fails without it and how the error reads, tried in a browser with the header set; and how to serve it small: the .wasm with brotli (about 470 KiB at 0.36.0, against 637 KiB with gzip), jlens.js with the .wasm beside it, compiled while it downloads, rather than jlens.global.js, whose module in base64 compresses worse and is compiled only once it has all arrived | done on 2026-11-27: the guide’s “Serving the module” says it, each policy tried with its header in Edge 158 and Firefox 160 against jlens.js and jlens.global.js: without 'wasm-unsafe-eval' both reject with a CompileError, whose text in each browser the guide quotes; a connect-src that leaves out the module’s origin makes jlens.js fail to fetch it, and jlens.global.js fetches nothing. Measured on today’s build: the .wasm 640 KiB with gzip, 471 KiB with brotli at quality 11 and 540 KiB at 5 (a server’s usual level on the fly), jlens.global.js 920 and 652 KiB; also Content-Type: application/wasm, without which the module is compiled only once it has arrived. The guide’s sizes of 0.27 (535 KiB, 745 KiB, 3.4 MB unpacked) corrected. No code changed. Choice not reviewed by the maintainer: the guide gives the sizes as 0.37’s, from a build before the release, which #16 refreshes |
| 8 | Template strings, as jsonata-js 2.3.0 reads them (pull request #860) | «...{expr}...» parsed and evaluated as in 2.3.0, with its escapes and nesting, and its errors’ codes; "a" & «x» is “ax”; the 69 cases that use them (68 of the group template-strings and function-eval/case009) in the baseline (1,970 of 1,972, the other two the overrides of a lone surrogate); the lexer, the parser’s limits and the property tests, the language server and the VS Code grammar (which tokenizes the suite), the book’s syntax pages and compatibility.md’s row removed; “JSONata 2.2” in the READMEs and the introduction becomes 2.3 | done on 2026-11-27: the lexer reads them as jsonata-js does, with a stack of open templates that counts the braces of each expression, and the parser builds a NodeKind::Template of text and expressions, each part’s value cast as & casts it and the size limit checked as each is added; 1,970 of 1,972 in the baseline, template-strings/case048 ({1/0}) through an override, as jlens fails with D1001 at the division where jsonata-js’s cast fails with D3001 (the row of an overflow to infinity in compatibility.md). Recovery keeps the parts read, with jsonata-js’s codes and positions; templates nested 5,000 deep fail with U1001; the property tests (20,000 cases) and the differential generator make them, 5,000 cases with no difference. The language service completes, hovers and checks inside their expressions and nothing in their text, and signature help counts their braces; the VS Code grammar scopes them (string.template, meta.template.expression) and pairs «»; the book’s operators page has a section, and the 2.2s became 2.3. Not measured: the lexer checks for a template at each token and the evaluator has one more kind of node, which #16’s ab and #17 cover. Choices not reviewed by the maintainer: string literals take 2.3.0’s escapes too, so a \ at the end is S0103 (it was S0101) and \u with fewer than four digits there S0104; NodeKind gains a variant, which breaks an exhaustive match outside the crate; the status lines of the README and the introduction, which name 0.36, are left to #18 |
| 7 | A regular expression literal compiled once per expression | Kept in Compiled by node, with no key cloned each time the node is evaluated; the two fixed patterns of datetime.rs (parse_iso8601, words_to_number) compiled once, not per call; ab on the M1 | done on 2026-11-27: each compiled pattern is kept in Compiled, by node, filled by the first evaluation that meets it on any thread and found by the node’s address, so that a tree $eval parsed never takes another’s; each evaluation keeps its own by node id, with no key copied; an invalid pattern is not kept. The two patterns of datetime.rs are statics. ab on the M1, evaluate and document modes: regex 15-16% faster, $toMillis without a picture 92% and $parseInteger in words 35% (cases added for the run), every other case within ±1.7%. The first version, its code out of eval_inner, made group-by and shipping rule 9-10% slower, aligned builds too: eval_inner’s frame changed, so the code is inlined there (docs/notes/perf-0.37.md). No choice for the maintainer to review: behaviour and errors unchanged |
| 20 | jlens-regress’s utf16 feature without a slower search of &str | The feature turns off the prefix search of &str searches (upstream 542243a, skipped), so a crate that enables it for 0.36’s interruptible UTF-16 searches makes every other search slower: measured, then the prefix search kept for &str with the feature on, or 542243a ported; cargo test -p jlens-regress --features utf16; released as jlens-regress’s own version | done on 2026-11-27: measured on the M1, &str searches with the feature were up to 128 times slower (literal, no match), as they tried every position. 542243a, 3e43472 (the interrupt in place of the budget), c57833c and 851f87b ported, each in a commit of its own; they gave &[u16] a start predicate in code units (48-90% faster with a literal or a small class first) and &str its predicate back, but the feature keeps literals as chars, which the byte predicate skipped (literal still 12 times slower): a char now gives its UTF-8 bytes there, a run taken whole, a change of the fork’s own. With the feature, &str searches are within 8% of the build without it, but literal +30% (its program matches char by char); without it, every case within ±1.2%. The benchmark also searches UTF-16 (JLENS_REGRESS_UTF16). jlens-regress 0.35.2 (docs/notes/perf-0.37.md). Choices not reviewed by the maintainer: the char predicate, which upstream lacks, only under the feature, so that the default build stays upstream’s; UTF-16 searches whose predicate is \w or \S 3.5-5.5% slower, upstream’s scan kept as written |
| 9 | The fields of a schema, listed | The language service lists a schema’s fields: each path with its type, whether it is required, its label and description, its allowed values and its open domain, as completion and hover know them, and the field’s own x- keywords as written, which jlens does not read (such as an application’s stable key for the field), overrides applied and hidden fields left out, so that an application builds its list of attributes, or matches the fields of two versions of a schema, without walking it; in Rust, Wasm and Java, with an example in each guide; first, the gaps of the JSON Schema reader that the list would show, each with a test: allOf’s required, required without properties, closed tuples | done on 2026-11-27: the reader’s gaps first (commit 7626b55): a field that one branch of allOf required was optional where another listed it, properties beside a $ref replaced what it said of a field, and a required with no properties beside it was not read; now a branch of allOf or a $ref’s target hands up what it requires without listing it, a field required and listed nowhere is a field of unknown shape (it got W0201), and in anyOf a field is required where every branch requires it. A tuple closed by false was written back with its items as the rest, which opens it: Shape::max_items keeps the bound, read from maxItems too, and the export writes "items": false. Then Schema::fields and LanguageService::fields (ListedField), jlens_service_fields in the C API and service.fields() in Java and WebAssembly: each path with its type summary as completion shows it, its types, required, label, description, values and closed, domain, format and extensions, a JSON Schema’s x- keywords that jlens does not read, now kept on Shape::extensions and written back (those of a $ref‘s place before its target’s); hidden fields left out with what is under them; fixtures/fields/cases.json pins the JSON for every package; a property checks the list against what uses gives for a whole read, under random overrides. Not measured: no evaluation code changed; uses now shares its walk with the list (walk in uses.rs), which keeps the shapes written at each place too. Choices not reviewed by the maintainer: the list is of the input’s schema only, not of the variables’; in the order of the paths, as uses, not the schema’s own order; with $ and the items (lines[]) as entries, and no entry per position of a tuple; no CLI command and nothing in Python, which has no schema service; an enum with no type stayed of unknown type outside anyOf (changed before #16 at the maintainer’s request: such an enum or const now has the types of its values everywhere); maxItems is read everywhere but the typing does not use it (an index past a closed tuple is still typed as every item); unknown x-jlens-* keywords are kept as extensions; overrides cannot set extensions; a field required by a schema that gives no type is not added, as nothing is known of that value |
| 13 | Paths renamed in an expression | Given a table of paths, old to new, the language service rewrites an expression: only the steps that read a renamed path change, found as uses finds them (relative paths in a predicate, a parent kept in a variable, the same name under another parent left alone), the rest of the text kept as written, a new name that needs them in backquotes; the answer gives the rewritten text, each edit with its range, and the places it cannot rewrite safely, where a field is named as data ($lookup with a string, *, **, $keys, $sift); in Rust, Wasm and Java, tests over the cases above and property tests; the schema guide shows a schema’s new version migrated: changes, the table (built from the two versions’ fields(), matched by a key of the application’s in extensions, as #9 lists them), the rewrite and the check with uses | done on 2026-11-27: the analysis of the reads, when asked (Expression::sites_with, reads::Sites), keeps each name that reads a field with the places it may read, and each value used whole with the operand that uses it; an object the expression builds gets a place of its own there only, so that a step over it and a renamed field is not renamed. LanguageService::rename, jlens_service_rename in the C API and service.rename(...) in Java and WebAssembly check the table (a path it cannot read, a field moved to another parent, renamed twice, two renamed to one path, a name with a backquote fail) and replace each step whose every place is renamed alike; unsure lists the rest with its reason: whole (a value holding a renamed field used whole: $keys, $sift, *, **, a lambda’s or an undeclared host function’s argument, the input of a transform), string ($lookup with a string), mixed, lost ($eval, too many places). fixtures/rename/cases.json pins the JSON, spans in UTF-16, for every package; the property tests check that an empty table gives the text back, that the rewritten text parses, and that with nothing unsure it gives on the input with its keys renamed what the expression gave (both its checks failed under mutation); the schema, Java and WebAssembly guides migrate a rule to a new version: changes, the table from the two versions’ fields(), the rename and the check with uses. Not measured: no evaluation code changed; the analysis notes its node as it goes, two stores a node, and an expression against a Document runs it once when compiled. Choices not reviewed by the maintainer: the input’s fields only, not the variables’; any value above a renamed field used whole is listed, $count(lines) and $exists(customer) too, which read no name; $lookup with a string is listed, not rewritten, as the definition says; the result of the expression is not listed, though an object it returns holds the new name; a table entry that keeps its name may be left out or given; a bad table fails with a message (String in Rust, U2005 with the token renames in the C API and Java, TypeError in WebAssembly, which takes the text, not an Expression, as uses takes reads); nothing in the CLI or Python |
| 19 | Fuzzing what applications send to the language service | Targets in fuzz/ for loading a JSON Schema, for parse_cut and for #13’s rewrite, seeded by cargo xtask fuzz-seed and run by the weekly workflow; the rewrite’s properties also in the property tests: an empty table gives the text back, and a rewritten expression parses; what they find fixed, each with a test | done on 2026-11-27: three targets, each checking what must hold of its answer, not only that it does not panic. json_schema reads a JSON document as a JSON Schema (which also refers to itself under another URI) and as a sample: what is written back reads again, and as itself the second time; the listed fields read back from their JSON form, and the service knows each listed path. parse_cut checks that a document cut by what an expression reads is the value cut, and gives the expression’s result or error code as the whole one does. rename checks that an empty table gives the text back, that the edits make the text and that it parses, and, renaming every field the expression reads, that with nothing unsure the result on the input with its keys renamed is the same. Seeded from the suite and the schemas and tables of fixtures/, in the weekly workflow; run 10 minutes each in WSL with no failure (313,462, 218,393 and 217,130 runs). Found and fixed, before the first run: a name that begins with «, written without backquotes by completion, rename, uses and fields, opened a template string since #8 (a test in rename.rs). The two properties of the definition were already in the property tests (#13). Choices not reviewed by the maintainer: a name that holds a backquote, which JSONata cannot write, is still listed by fields with a path that does not read back, as uses documents, and the target does not check its path; in rename’s comparison, a field called as a function fails with T1005 or T1007 where its name is a built-in’s, before its arguments are evaluated, and once renamed with T1006 or T1008 or with an error of its arguments, so the target asks only that it fail (it took the codes as the same until #16’s two runs of the workflow found min(it%ms{k:v}.[H]) and count([/a/- /b/]), whose arguments fail with T2002 and T2001 once renamed); it does not compare a result that holds an object, which keeps the new names, as the property test does not |
| 14 | What the WebAssembly module is made of | The gzipped .wasm grew from 518 KiB at 0.27 to 640 KiB at 0.36, its budget raised twice, mostly with the language service: measured by crate and by part (twiggy, or a build without the language service), so that 0.38’s ADR 0015 decides with the numbers whether a page that only evaluates gets a module without it; the gzipped size of each release written in its performance notes, and a raise of the budget given its reason there | done on 2026-11-27, in docs/notes/perf-0.37.md: each release’s module since 0.20 from its npm package, and 0.37’s commits built one by one; the two large steps were 0.33’s schemas (+47.9 KiB) and 0.34’s types (+33.4 KiB), and 0.37 adds 35.7 KiB, half of it rename (+17.8 KiB once the module exports it), so that HEAD is 673 KiB, about 6.5 KiB under the budget. Built without the language service, the module is 505 KiB gzipped (374 KiB with brotli), a quarter less; with evaluation alone, 476 KiB. By crate, jlens-schema and what it brings are that quarter; regress with its Unicode tables (about 38.5 KiB gzipped) and jlens-core the rest. The release checklist now writes the size and any raise’s reason in the plan’s notes, and the budget’s comment points there. No code changed. Choices not reviewed by the maintainer: no second module and no Cargo feature, left to 0.38’s ADR 0015; rename‘s size left as it is (its two stable sorts are about 6.8 KB of code before wasm-opt); the notes’ sizes from Python’s zlib, up to 1.5 KiB under what cargo xtask wasm prints |
| 3 | The release workflow’s tiers | The github job of release.yml waits only for the tier-1 channels of 0.36 #8 and the binaries it attaches, so that a failed container or vscode job no longer holds the draft, and with it Homebrew and Scoop; tried on a tag of a fork or a dry run before the release that first uses it | done on 2026-11-27: the job waits for crates, npm, pypi, maven and binaries; tried in a scratch repository on a stub of the workflow (the same jobs, needs and if, each step passing or failing), beside the 0.36 graph as a control: with npm-cli, container and vscode failing the draft runs (0.36: skipped), with crates failing it is skipped in both, and run by hand it drafts in both. Not reviewed: the draft may now come before the tier-2 jobs end, so release step 6 waits for the whole run before publishing it |
| 21 | Paths renamed without changing what the expression means | 0.37 #13’s rewrite, as the review of 285e0b7 found it, each case a test that fails first: a name taken out of its backquotes is kept in them where the next character continues a name (`a`and b gave xand b, which does not parse, and `a`or(b) gave xor(b), a call, with nothing unsure); a step written as a string (customer."name") renamed, not Lost; a path that may be an object the expression built (group-by, $clone, $sift, $spread, $match, a transform, a function’s result) unsure as Mixed; parse_path and Table::new reject a backquote left unmatched and leading dots; hover and W0201 give the name’s range as written, backquotes and quotes included, never inside a character (`café` gave 0..5), with a property that every range falls on character boundaries; the rename’s fuzz target keeps its table whole past 64 fields, or stops before it is cut; the gzipped .wasm within its budget (6 KiB left at 285e0b7) | done on 2026-11-28, each case a test that failed first: a name keeps its backquotes where the text beside it is a name’s character; sites_with takes a step written as a string from its start to its token’s end; the result of a group-by, of a function of the expression’s or the application’s, of a built-in whose signature may give an object ($sift, $spread, $match, $lookup…), of * and **, a lambda’s parameters and $reduce’s accumulator are objects the analysis does not follow (built), only when sites are recorded, so reads and the cut do not change; parse_path rejects a stray backquote and an empty name, which shape_at and the overrides follow; hover and W0201 take the name’s token, with a property on character boundaries; the fuzz target gives up past 64 fields. The rename property, given a group-by beside a renamed parent, finds the old analysis’s rewrite; 20,000 cases of the schema’s properties and both fuzz corpora pass. The gzipped .wasm: 690,047 bytes, 6.1 KiB under its budget |
| 16 | The plan’s code checked whole, and the release’s measure | On the Ryzen, which need not be idle: the robustness properties with PROPTEST_CASES=100000 and cargo xtask differential with 20,000 cases, on the final code; the sizes of the JAR and of the gzipped .wasm against 0.36.0’s, written as #14 says, and the WebAssembly guide’s table of sizes (#10) from the release’s build. The fuzz workflow on the final code once the maintainer has pushed it (or its targets run in WSL until then). On the M1: the performance page’s tables, and cargo xtask ab against 0.36.0, with jsonata-js 2.3.0 as the control (the other engines only where their version changed) | done on 2026-11-28: the differential with 20,000 cases and the regex one, none differing (at 4e93221; the evaluation has not changed since); the robustness properties with PROPTEST_CASES=100000, at 285e0b7 and, for jlens-schema and jlens-lsp, again after #21; on the M1, cargo xtask ab, python.py ab and cargo xtask java-compare ab against 0.36.0 and the performance page’s tables (d050038), with jsonata-js 2.3.0, jsonata-python and jsonata-java as the controls, each within 4.6% of its 0.36.0 column: regex 7 to 18% faster on every platform (#7), $toMillis of an ISO text 88%, and WebAssembly’s regex over a long text 4% slower, in two steps of about 2% (#5, #20), left; the sizes on the final code: the gzipped .wasm 673.9 KiB (+5.7%), the JAR 11,865,124 bytes (+5.4%), and the guide’s table of sizes; the fuzz workflow, 600 s per target, at 3de4de0, every target passing. vscode-languageclient 12.0.0 waits out Dependabot’s cooldown (until 2026-11-30) and goes to step 1 of #18’s checklist |
| 17 | The release’s x86_64 check, on the Ryzen | When the plan changed the evaluation (#7, #8, #12) without measuring every such change on x86_64: cargo xtask ab v0.36.0 HEAD natively under Windows and python.py ab under WSL, into docs/notes/perf-0.37.md; otherwise left out, and the reason written there | done on 2026-11-28 at 91abf60, as #5, #7 and #8 were measured on the M1 alone: natively regex 10 to 12% faster in every mode; filter + aggregate against a Document +11%, level when built aligned (layout); the shipping rule +2 to +5%, aligned too, with no step past the floor along the plan’s commits and on the M1 within 2.9%. In Python regex 12 to 14% faster and nothing slower past +2.7%. Nothing for the page or before the release |
| 18 | Release 0.37.0 | The release checklist, the first with #3’s tiers; the channels checked; the status lines of the README and of the book’s introduction with the suite after #8; the plan leaves the roadmap for a paragraph of the roadmap history | prepared on 2026-11-28, not yet tagged: the dependencies current (cargo update moved nothing, here and in fuzz/; npm audit clean in editors/vscode and benches/compare; no Dependabot proposal or alert open), except vscode-languageclient 12.0.0, a major published on 2026-11-27 that waits out Dependabot’s cooldown (until 2026-11-30) for 0.38’s first item; upstream as #15 left it (stacker two commits for other platforms, #155 and #156 open; regress 371ab39; jsonata-js main 361156d, npm 2.3.0, #875 open at fcb4471); the version in the snippets, the issue template and the extension, the suite’s 1,970 of 1,972 in the README and the introduction, the changelog’s section and the history’s paragraph; before the tag, cargo package, wasm-test --require-browser --example, npm pack --dry-run, fmt, clippy with warnings as errors, the workspace tests, gen-docs --check, doc-check, the book’s examples against jsonata-js (251, none differing), cargo doc, cargo xtask java and cargo deny; Maven Central holds 11 releases of November, of the 24 allowed |
Candidates from the same review, not planned: the type checker (~> with a transform, a host
function’s declared result), the language server (code actions, its cache dropped on any .json
change), the CLI (--var, - for stdin, --ndjson flushed per line), and the Python package
(a seed of 2^64 reported as negative, counts read as usize, Self from typing_extensions in
the stub).
0.38: what the Java adoption shows
The applications in Java adopting jlens evaluate it with 0.37’s features first. What they report
then decides how a result is kept for later rules and which gaps the API’s inventory lists. #1 and
#2 came from 0.36 through 0.37, and #3 from 0.37’s outside review. #4 to #13 come from the outside
review of the code at 285e0b7, its claims checked before they were listed: one was false (a
value parse_cut skips is read without recursion by serde_json), and a few are left out below.
The fixes come first, as they need no report. The rest of the plan, its
habitual items among them, is drafted when it starts.
| # | Item | Done when | Status |
|---|---|---|---|
| 4 | Signatures and arrays within the limits | A signature is matched in polynomial time, with no recursion per parameter (twenty n+ and forty arguments meant 7·10^10 calls, and a million n? overflowed the stack); a group-by’s items and * count against max_array_length (both gave results past it); ^ keeps the keys of each term as it reaches them, not items × terms slots up front; a..b checks the limit before it builds the range, and fails past 2^53, where it gave wrong numbers ([1e20..1e20] gave [9223372036854776000]; jsonata-js fails), the difference in compatibility.md; each case a test that fails first, ab on the M1 for the signature | planned |
| 5 | Shared values walked within the limits | A value made of the same arrays many times over ($a := [$a, $a], forty times in a short expression) is walked by $boolean, $keys, $lookup, $spread, *, = and $distinct and ** within timeout, max_steps and the cancel token (depth 22 ran 430 ms against a 5 ms timeout, each level doubling it); = compares a pair of shared nodes once; ab on the M1, as these walks are on common paths | planned |
| 6 | A predicate or group on a block binds in the block | ($x := 1; ((1)[$x := 2]); $x) gives 1 as in jsonata-js, not 2, and so the group ({...}) and the predicate of a lambda: mark_frame reads the stages and the group of a block or lambda; the cases in the differential tests’ generator; mark_frame’s comment moved back to it | planned |
| 7 | The C API and the Java package, second pass | Each reproduced by a test before it is fixed, or shown not to happen: a List whose size() throws makes $count give a buffer’s handle (Reader.read answers a failed LENGTH with -1); a host function’s exception kept for later after the outermost call cleared FAILURES, or before its call began; FOUND_BINDINGS, FOUND_EXPRESSIONS and FOUND_OPTIONS swept as #4 of 0.37 sweeps DOCUMENTS; Options’ eviction with a hand that persists; Reads.fromJson strict as JSON (spaces, trailing text, unknown fields, escapes and numbers); AuditNode’s equals and hashCode without recursion | planned |
| 8 | The Python and WebAssembly packages, second pass | Each reproduced by a test before it is fixed: register_function and __clear__ drop the functions they replace after the lock (a __del__ that evaluates deadlocked); the limits read inside the dict’s critical section; a getter or Proxy that throws while bindings, a function’s length or an error’s message are read leaves no host frame behind (imports with catch); the fallback to JSON.stringify for more than 16 items calls no toJSON a second time | planned |
| 9 | Checks, the CLI and the docs | CI runs jlens-regress’s unit and doc tests with utf16, not only tests and interrupt; the npm job of release.yml checks the tag against the workspace’s version, as the other publishing jobs do; the fuzz corpus keyed by run attempt too; xtask wasm honours CARGO_TARGET_DIR; eval --now -1000 accepted; schema reads a file named with [ as itself; word_values built once; explain_node and Shape::observe through stack::grow; conformance.md’s overrides and count of kinds, cli.md’s synopsis, CONTRIBUTING.md’s last check, value.rs’s 128 levels and jlens-capi’s U2005 tokens (renames) brought up to date | planned |
| 10 | jlens-regress with no unsafe path, and its UTF-16 literal search | uppercase’s cfg! turned the right way (the fork’s own change, reported upstream); positions by index (index-positions) measured with ab and turned on, or ADR 0009’s claim that no unsafe path runs corrected; a literal searched in UTF-16 in linear time, or within the interrupt; cargo test -p jlens-regress --features utf16; released as jlens-regress’s own version | planned |
| 11 | The JSON Schema reader, second pass | Each a test that fails first: the items of a closed tuple read as either position (either, not merge: a false W0206 and W0209); a $ref with % in it read back as itself; required and properties beside a $ref kept; allOf merges minItems, hidden, the bounds and the examples, and items inherited; x-jlens-hidden on a definition honoured; nothing indexed inside x- keywords | planned |
| 12 | The language server and the VS Code extension, second pass | A completion inside backquotes shown by VS Code (filter_text); "schema": "../x.json" in jlens.json followed; completion and signature help in templates («, », \{, regular expression literals); field paths written by field_insert; the grammar reads .<<...>> and . before a regular expression; autoCloseBefore, wordPattern and the quotes inside «{...}» | planned |
| 1 | An evaluation’s result kept as a Document | In the core, the C API and Java: a result used as the input or a variable of later evaluations with no conversion, such as an index of a record’s items by key built once for many rules; measured against the index built by each rule | planned; waits for the adoption’s reports |
| 2 | ADR 0015 proposed: what 1.0 will promise | Item #1 of the deferred plan below, with no change to the API: the inventory of public items and contracts, each stable, hidden or #[non_exhaustive], and the gaps adopters logged (host function context, offset conversion, a diagnostic’s details as data, a quick fix as data, such as W0215’s rewrite, the fields of an AST node that a visual builder reads, typed in types.d.ts or said to be hidden); the errors of jlens-schema, a String today (JsonSchema::load, Uses::from_json, 0.37 #13’s rename), or a type of their own; whether a page that only evaluates gets a WebAssembly module without the language service, from 0.37 #14’s measure; the ADR left proposed for the maintainer | planned; waits for the adoption’s reports |
| 3 | Unknown evaluation options in Wasm | { timeot: 100 } fails as in Rust, Python and Java, or the difference documented; decided with #2, as failing may break a caller | planned; with #2 |
| 13 | evaluate(null) in Wasm | null as the input is JSON’s null, as in jsonata-js, evaluateJson("null") and new Document(null), not “no input” as wasm-bindgen reads an Option (the JS suite itself passes null for no input), or the difference documented; decided with #2, as the change may break a caller | planned; with #2 |
Candidates from the same review, not planned: a frame kept by cyclic without a closure
(unmeasured), audit::describe and snippet (cosmetic), unionReads given arrays (serde reads a
struct from one), jar.yml‘s set -eu (a failed apk add fails the step anyway), and the
release builds’ container images by floating tag and rustup by curl | sh.
In exploration: a regular expression engine of jlens’s own
jlens-regress is a backtracker. A catastrophic pattern runs within the evaluation’s limits
(ADR 0009), but it still runs to them. Its positions are code
points, which jlens converts to UTF-16. On the engine’s benchmark, V8 is 2 to 11 times faster.
An engine of jlens’s own could find a match in linear time wherever the pattern allows it: an
automaton finds the match, and the backtracker is left only to extract its groups, or to run
the patterns that need it (backreferences, lookarounds). It would also have the interrupt and
UTF-16 positions built in, with no unsafe.
This is research, not a release. The work lives apart from jlens-core, and the corpus, the
differential test and the benchmark of 0.22 measure it. It ends in a decision: an ADR that adopts
the engine in place of jlens-regress, or drops it. Adopted, the swap becomes a release of its
own.
| # | Stage | Done when | Status |
|---|---|---|---|
| 1 | The linear-time path on the patterns it can take, with the interrupt and UTF-16 positions | Its share of the corpus’s patterns and their answers, against V8’s | |
| 2 | Every pattern: the backtracker for the rest | The corpus (19,108 cases) and cargo xtask regex-differential with 20,000 cases clean, or each difference recorded with its reason | |
| 3 | Speed and limits, against jlens-regress and V8 | The engine’s benchmark and interrupt_cost; catastrophic patterns timed | |
| 4 | The decision | An ADR: the engine replaces jlens-regress, or is dropped, with the measurements |
Deferred: an API to keep, toward 1.0
After twenty releases, nothing says which parts of jlens are meant to last. cargo semver-checks runs in CI, but before 1.0 it only asks for a new minor version, and
jlens-core exposes workspace plumbing (stack, debug, the AST’s internals) next to its API.
This work decides what 1.0 will promise, breaks the API once to get there, and writes the
promise down. It takes the number of the next release when it starts. Applications built on jlens are separate projects: they use jlens-core as any
application does, and what they lack comes back here as general features.
Deferred until applications built on jlens have used it: what to keep stable is decided from what they needed, missed or worked around, not guessed beforehand. They have now, and #1 starts as 0.38 #2; the rest waits for the ADR.
| # | Deliverable | Definition of done | Status |
|---|---|---|---|
| 1 | ADR 0015, what 1.0 promises: what is stable, hidden or #[non_exhaustive], below | The ADR accepted, with the list of changes that #2 to #4 make | proposed in 0.38 #2 |
| 2 | jlens-core changes as ADR 0015 says, in one breaking batch | cargo semver-checks reports only the intended breaks; the changelog has a migration section; the crate guide’s snippets updated | |
| 3 | jlens-schema and jlens-lsp changes as ADR 0015 says | As #2 | |
| 4 | The contracts outside Rust, as ADR 0015 says: the Wasm API, the Python package, the Java package, the JSON of audits and jlens.json; a test pins each, so that a change shows in review | Tests that fail on an unintended change of each contract | |
| 5 | A stability page in the book, from ADR 0015, and the rules for changing a stable item in CONTRIBUTING.md | doc-check green; the page linked from the introduction | |
| 6 | A source that fails with a JSONata code, below; a change to public traits, so it goes with #2’s batch | The same input nested too deep fails with the same code from every input and package; a cycle stays U1004 | |
| 7 | The release that breaks once. 1.0.0 follows when ADR 0015’s criterion is met | The release checklist, with the migration notes in the release notes |
#1, what ADR 0015 decides. Exploration: list the public items of jlens-core, jlens-schema
and jlens-lsp (rustdoc JSON or cargo public-api) and the contracts outside Rust: the Wasm API
(types.d.ts), the Python package, the CLI (ADR 0008), the JSON of audits and explanations,
jlens.json, the error codes. For each item: stable, hidden (#[doc(hidden)], pub(crate)) or
#[non_exhaustive] where it may grow. What semver covers and what it does not (messages, Display,
Debug, performance, jsonata-js quirks), the MSRV policy, deprecations.
#6, a source that fails with a JSONata code. Found by 0.26 #9: Source and Sources fail with
a message, which the core always turns into U1004, so input nested more than 1,000 levels deep
fails with U1001 as JSON text and with U1004 as Java objects or a C API host’s values, read as
the expression goes; the C API also gives one message for a cycle and for deep input, as it cannot
tell them apart. The error type of the reading methods carries a code (U1004 by default, U1001
for nesting), and each source says which limit it met; in the C API, a node inside itself that the
host does not report (the Java Reader does) is seen as deep input. The WebAssembly package has the
same gap for its exceptions: it keeps the first one a level throws, which since 0.27 #6, where a
level may be read in case it is needed
(ADR 0010), may not
be the level that stopped the evaluation. A change to public traits, so it goes with #2’s batch. Done when:
the same input nested too deep fails with the same code from JSON text, a Document, Python,
JavaScript and Java values and a C API host; a cycle that the host or package detects stays U1004;
the exception rethrown in WebAssembly is that of the level that failed; tests in each package.
Not planned
- Asynchronous functions. A host function that returns a promise fails with
U1002, and jlens does not plan to change that. Supporting it needs an evaluator that can suspend, which would slow down every evaluation, and only WebAssembly would gain from it: a Rust host function can block. An application can fetch what its functions need before evaluating. Should real use call for it, the cheaper way is anevaluateAsyncthat stops at the first promise, awaits the pending ones and evaluates again with their results. - Validating documents against a schema.
jlens-schemareads a JSON Schema to help people write expressions: completion, hover and diagnostics of the expression. It does not check that a document follows the schema, which JSON Schema validators do. The diagnostics hold for documents that follow their schema; an application that cannot trust its documents validates them first, or checks the type of each result. - Compiling an expression to its host’s code. jsonata-jvm-compiler and jsonata2js translate an expression to Java or JavaScript and let the host’s JIT compile it, which makes them faster where an expression does much work per item. Rust has no compiler at run time: compiling when the application is built would serve only expressions known then, and generating WebAssembly would help that package alone, where a Content-Security-Policy allows it. jlens lowers what each node costs in the core instead (0.32), which every package gains from.