Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

#DecisionStatus
0001Implement JSONata ourselves, porting jsonata-js 2.2.2Accepted
0002Use regress for ECMAScript-compatible regular expressionsAccepted
0003An explicit value model with Undefined and sequence flagsAccepted
0004Audit evaluations through a tracer interface in the evaluatorAccepted
0005Carry audit labels in JSONata doc-commentsAccepted
0006Host functions with a JSON boundaryAccepted; extended by 0011; amended to look host functions up on a miss
0007A language server on the language service, configured by jlens.jsonAccepted
0008A machine contract for the CLI: --json envelopes, exit codes, stdout for dataAccepted
0009Regular expressions stop within the evaluation’s limits, through a fork of regressAccepted; the fork made permanent by 0020
0010Input documents converted lazily, one level at a timeAccepted
0011Host functions call the functions they receive, through a handle that borrows the callAccepted
0012The CLI on npm: a launcher package and one package per platformAccepted
0013The VS Code extension: one package per platform with the release binaryAccepted
0014The Python package: PyO3 bindings that mirror the WebAssembly packageAccepted
0016The fields an expression reads: an abstract evaluation that gives an upper bound, and its unionAccepted
0017Results written straight into another representation, through a builder the core walksAccepted
0018A deterministic step limit: each evaluated node and callback is a step, fast paths charge what they skip, U1006Accepted
0019Documents serialized straight from Rust values, as serde_json::to_value and Document::new would build themAccepted
0020jlens-regress is jlens’s own fork of regress: upstream fixes ported, not rebasedAccepted
0021The Java package: a C API called through Panama, for Java 25Accepted; amended to ship before the API work, on what the Sink allocates, and to write maps with what the expression reads (0.26)
0022Objects keep their fields in a vector, with an index past 8 fieldsAccepted
0023The 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 helpAccepted
0024A 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 beforeAccepted; amended by 0025: a target copied too often is kept as a definition too
0025A $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 documentsAccepted
0026jlens-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 apartAccepted