Decision records
Architecture decision records (ADRs) capture significant design choices: the context, the decision, and its consequences. They are numbered and never rewritten. A later ADR supersedes an earlier one instead.
| # | Decision | Status |
|---|---|---|
| 0001 | Implement JSONata ourselves, porting jsonata-js 2.2.2 | Accepted |
| 0002 | Use regress for ECMAScript-compatible regular expressions | Accepted |
| 0003 | An explicit value model with Undefined and sequence flags | Accepted |
| 0004 | Audit evaluations through a tracer interface in the evaluator | Accepted |
| 0005 | Carry audit labels in JSONata doc-comments | Accepted |
| 0006 | Host functions with a JSON boundary | Accepted; extended by 0011; amended to look host functions up on a miss |
| 0007 | A language server on the language service, configured by jlens.json | Accepted |
| 0008 | A machine contract for the CLI: --json envelopes, exit codes, stdout for data | Accepted |
| 0009 | Regular expressions stop within the evaluation’s limits, through a fork of regress | Accepted; the fork made permanent by 0020 |
| 0010 | Input documents converted lazily, one level at a time | Accepted |
| 0011 | Host functions call the functions they receive, through a handle that borrows the call | Accepted |
| 0012 | The CLI on npm: a launcher package and one package per platform | Accepted |
| 0013 | The VS Code extension: one package per platform with the release binary | Accepted |
| 0014 | The Python package: PyO3 bindings that mirror the WebAssembly package | Accepted |
| 0016 | The fields an expression reads: an abstract evaluation that gives an upper bound, and its union | Accepted |
| 0017 | Results written straight into another representation, through a builder the core walks | Accepted |
| 0018 | A deterministic step limit: each evaluated node and callback is a step, fast paths charge what they skip, U1006 | Accepted |
| 0019 | Documents serialized straight from Rust values, as serde_json::to_value and Document::new would build them | Accepted |
| 0020 | jlens-regress is jlens’s own fork of regress: upstream fixes ported, not rebased | Accepted |
| 0021 | The Java package: a C API called through Panama, for Java 25 | Accepted; amended to ship before the API work, on what the Sink allocates, and to write maps with what the expression reads (0.26) |
| 0022 | Objects keep their fields in a vector, with an index past 8 fields | Accepted |
| 0023 | The schema and the language service through the C API and in the Java package: a schema and a service by handle, diagnostics as JSON text; no completion, hover or signature help | Accepted |
| 0024 | A recursive schema keeps its $refs as references by name to definitions of the schema, followed where the shapes are read; other $refs are copied in place as before | Accepted; amended by 0025: a target copied too often is kept as a definition too |
| 0025 | A $ref to another document: jlens never fetches, the application gives the documents by URI; a $ref that cannot be followed leaves its place unknown and is reported; a load bounded by the size of its documents | Accepted |
| 0026 | jlens-schema reads JSON Schema itself, into shapes, and infers its own: validators answer questions about a document, not about a place; referencing weighed for $ref and kept apart | Accepted |