# Changelog

## 0.1.36 - independent join budget and size-boundary verification

- Extend the independent work model to join, including eager arguments,
  runtime arity/types, inclusive invalid-element work, Unicode concatenation
  and composition with reversal, length, pipes and logical operators.
- Preserve all 28,110 earlier probes and add 6,240 boundary probes, with six
  join trace counters. Require 38 model coverage categories in verification.
- Reject executed join prefixes exceeding the model's 65,536-unit domain;
  keep this verification bound separate from the library's actual limits.
- Verify public outputs around 64Ki and the inclusive 16Mi intermediate
  limit, including work/type/size error priority and input preservation.
- Expand the exact-version registry API fixture with these boundaries.
- Keep evaluator semantics and production CLI options unchanged.


## 0.1.35 - bounded JSON conversion work and leaner join

Published on 2026-12-06.

- Charge non-string to_string conversions by their conservative JSON size
  estimate after preflight and before serializing. Repeated aliases pay each
  time. Existing strings keep their identity behavior and AST-only fee.
- Fix a reproducible batch heap exhaustion: 64 escaped conversions of a
  512 Ki-unit NUL payload previously terminated both debug/release processes
  with no replies under 192 MiB; it now returns an isolated max_steps error.
- Keep join's complete work/type/size validation before output construction,
  and remove the temporary string array and per-item string views.
- Add exact-fee, diagnostic-priority, shared-input and batch recovery tests
  and a persistent timed CLI crash regression. Extend the registry fixture.
- Add six string benchmarks. Nine alternating pairs show about 18–19% lower
  time for two measured many-part joins, with stable controls on the local host.


## 0.1.34 - fewer long-number normalization allocations

Published on 2026-12-06.

- Copy significant digits as contiguous slices around the validated decimal
  point instead of building one string fragment per digit. Keep all digits,
  grammar decisions, binary64 rounding and existing work/result limits.
- Add regressions for decimal points inside/outside the significant region,
  threshold budgets, invalid suffixes and compiled-query recovery.
- Extend numerical benchmarks with split-coefficient and integer-coefficient
  cases. Nine alternating baseline/candidate rounds show lower time and RSS
  for the three measured long-significand inputs on the recorded local host.
- Expand independent numeric verification and the reusable registry fixture.


## 0.1.33 - long-number conversion correctness

Published on 2026-12-06.

- Fix exponent truncation/saturation that could turn an overflowing decimal
  into a finite value, or change a long exponent-cancelled value from 1 to 0.1.
- Normalize complete valid long number tokens with a length-aware exponent
  bound; retain every significant digit and delegate boundary rounding to
  the binary64 converter. Keep ordinary short-number representation behavior.
- Apply the repair to to_number, bounded JSON text input and numeric repr
  validation; preserve syntax/error priority, Unicode work charges and batch
  recovery. Do not rewrite quoted strings or keys in JSON documents.
- Extend independent work-budget checks to reverse and to_number, including
  scalar scanning, UTF-16 reversal fees, non-finite errors and array-copy bounds.
- Add public-API, raw-JSON, rounding and registry-consumer regressions.


## 0.1.32 - ordinary function work-budget verification

Published on 2026-12-06.

- Extend the independent model to not_null, type and length, including eager
  argument evaluation and runtime arity/error precedence.
- Verify Unicode scalar length fees separately from UTF-16 equality charges;
  cover container lengths, non-null false/zero/empty values and nested pipes.
- Check 18,741 budget probes and 362 batch neighbors per mode, with 20 model
  coverage categories and four result/error categories.
- Add public-API regressions and extend the version-independent registry
  consumer fixture with function argument and budget recovery cases.
- Keep evaluator semantics and production CLI options unchanged.

## 0.1.31 - reproducible release verification

Published on 2026-12-06.

- Add bounded, source-bound ZIP auditing and safe extraction with explicit
  installed-file comparison and independent failure receipts.
- Add a reusable registry consumer command deriving the exact version and
  API fixture from the audited release source, resolving dependencies before
  byte comparison and debug/release API checks.
- Record tool/release identities and fixture hashes separately; keep previous
  attempts and reject missing installations or ambiguous success markers.
- Run offline release-tool regression tests and the source API fixture in CI;
  keep real registry installation as a post-publication check.
- Pin CI Python 3.13.17, which has official Ubuntu 26.04 builds; record the
  interpreter actually used by local verification.
- Keep evaluator semantics and production CLI options unchanged.

## 0.1.30 - short-circuit work-budget verification

Published on 2026-12-06.

- Extend the independent budget model to logical operators, negation and pipes,
  preserving JSON operand values, JMESPath truthiness and changed pipe contexts.
- Check 9,366 boundary probes per mode and record executed/skipped branches
  and result categories; add public-API budget and recovery regressions.
- Reject unmodeled extra root fields and unpaired UTF-16 surrogates in replay
  data. Normalize JSON wire values before computing expectations, including -0.
- Split replay batches by bounded input and response estimates so deep JSON
  results cannot confuse output exhaustion with the modeled work budget.
- Keep evaluator semantics and production CLI options unchanged.

## 0.1.29 - model-based work-budget verification

Published on 2026-12-06.

- Add an independent recursive work model with canonical semantic results,
  deterministic generated inputs and hand-checked boundaries.
- Check 3,129 budget probes and 206 batch neighbors per build mode.
- Add test-only public-API harness, bounded replay, corpus fingerprints and
  fail-closed tooling checks; integrate artifact isolation and evidence into CI.
- Package the earlier empty-object regression and benchmark additions.
  Evaluation semantics are unchanged.

### Empty-object traversal verification

- Add exact-budget, ancestor-sibling, shared-empty mutation and membership
  recovery regressions.
- Add batch/isolated empty-object equality and first-missing-key benchmarks.
- Retain the published 0.1.28 runtime after comparing traversal candidates.

## 0.1.28 - single-member object comparisons

Published on 2026-12-06.

- Compare a single object member without storing a continuation cursor.
  Preserve left-key UTF-16 charges before lookup and existing ancestor traversal.
- Cover empty, Unicode, long and special-name keys, shared-reference work,
  depth rejection and query recovery.
- Add direct/deep object, first-match, validation-control and missing-key benchmarks.

## 0.1.27 - singleton array comparisons

Published on 2026-12-06.

- Compare the only child of a singleton array without storing a continuation
  cursor, preserving every pair visit and work charge.
- Add deep sibling, mixed-candidate, precise-budget and input-depth recovery
  regressions, plus deep validation/first-match and direct equality workloads.

## 0.1.26 - array membership scratch

Published on 2026-12-06.

- Reuse a comparison stack within one array `contains` call. Each candidate
  starts with an empty logical stack and retains the existing work charges,
  short-circuit order and error categories.
- Keep scratch local to the function call; compiled queries and later searches
  retain no scratch state.
- Add scalar, empty, early/late match, missing, object and deep membership
  benchmarks, plus exact-budget and failure-recovery regressions.

## 0.1.25 - structural equality cursors

Published on 2026-12-06. Includes the accumulated verification additions below.

- Reuse one cursor per open container when comparing JSON values.
  Pair visits, string/key work charges and short-circuit order are preserved.
- Add wide-array/object, nested-array and first/last mismatch benchmarks,
  plus exact-budget and shared-reference recovery regressions.

### Map and projection benchmarks

- Add flat/nested map, nested projection, zero-result-budget and early-error
  performance workloads with expected output checks.
- Keep reference diagnostics ahead of result-budget failures in map regressions.

### Materialized result limits

- Check exact cumulative result budgets for duplicate object keys,
  intermediate arrays, filtered projections and shared container literals.
- Cover zero-result budgets and query/batch recovery after result exhaustion.

### Cumulative batch output limits

- Test exact and one-unit-adjacent size and expanded-node response budgets,
  including escaped Unicode keys and shared result data.
- Verify a full 10,000-item batch can serialize bounded error replies after
  the successful responses have used their full size budget.

### Long quoted field names

- Exercise quoted field names at the source-character limit, escaped control
  characters, supplementary Unicode and the batch compilation reuse threshold.
- Refresh the README unit-test count to match current verification.

### Wide object verification

- Add benchmarks for validation and serialization of 60,000-member objects
  with Unicode and escaped punctuation in keys.
- Check expanded-node accounting for shared objects and recovery after a
  cyclic mutation in a wide object.

## 0.1.24 - JSON value traversal

- Reuse a cursor for each open JSON container during size validation.
  Preserve depth, expanded-node, and output-size limits.

- Add a benchmark that checks a 250,000-element array through the library API.

## 0.1.23 - numeric representation validation

- Use direct string traversal when checking the characters of a preserved
  JSON number. Keep the existing grammar and numeric agreement checks.

- Add a serialization benchmark for preserved decimal and large-integer
  representations.

## 0.1.22 - JSON string budget accounting

- Count existing UTF-16 units once and add only escape overhead when
  checking JSON strings and object keys. The byte transport limit and
  conservative serialized-size budgets are unchanged.

## 0.1.21 - expression handling and CLI reliability

### Expression length checks

- Skip the separate Unicode scalar count when the UTF-16 length proves the
  expression fits. Keep the exact scalar limit and reject oversized queries
  before allocating the tokenization array.

### JSON literal diagnostics

- Report the opening backtick's Unicode scalar offset when a parsed JSON
  literal exceeds the JSON value limits.

### large array indexes and slices

- Accept decimal array indexes and slice components wider than 32 bits
  without constructing arbitrary-precision integers.

### ordering allocations

- Cache expression-reference ordering keys once. Sort indexes in `sort_by`
  and select the best input index directly in `min_by` and `max_by`.

### finite averaging

- Recover a finite `avg` when the running sum overflows. The extra pass is
  counted in the evaluation work budget.

### PowerShell standard input

- Preserve native standard input when the wrapper is invoked directly. An
  explicit empty pipeline sends EOF.

### PowerShell exit status

- Forward native exit codes and stderr through the PowerShell wrapper even
  when the caller's error preferences are set to stop.

### quoted PowerShell arguments

- Preserve quoted JMESPath identifiers and embedded escapes when invoking
  MoonBit through the PowerShell wrapper.

### PowerShell Unicode I/O

- Preserve Unicode JSON piped through the Windows PowerShell wrapper and
  decode native output as UTF-8.

### benchmark sample validation

- Verify that timing samples and work counts belong to the selected benchmark
  case before recording them.

### benchmark build evidence

- Require fresh benchmark and CLI executables, and record their SHA-256 values
  before collecting performance samples.

### final source verification

- Recheck the Git commit and working tree before reporting a successful
  verification run.

### CI source verification

- Check the CI commit against the actual checkout and require a clean working
  tree before running the toolchain.

### CLI build evidence

- Require each verification build to produce a fresh CLI file and record its
  SHA-256 in the build step's report.

### toolchain verification

- Compare the running MoonBit and Node.js versions against `toolchain.json`.
  CI fails early on drift, and local compatibility checks record any differences.

### property-test replays

- Keep original failure cases and full-suite reports intact when replaying
  equality or composition checks. Save each replay's report in its own directory.

### report writes

- Publish verification and conformance reports only after writing complete JSON.
  Remove temporary files after write or replacement errors.

### conformance reports

- Require a matching suite summary for a conformance result and preserve the
  original subprocess error when the summary is missing or invalid.

### subprocess diagnostics

- Retain bounded stdout and stderr excerpts in the verification log and report
  when a subprocess cannot finish, including timeout and output-limit errors.

### conformance cache integrity

- Check cached and downloaded vectors against per-file hashes of the pinned
  upstream revision. Recover from corrupt cache entries with verified downloads.
- Test offline cache hits, recovery through the contents API and failed
  downloads without using the network in CI regression tests.

### early verification failures

- Clear stale suite reports and toolchain evidence before checking Git
  metadata. Cover that failure path in Windows and Ubuntu CI.

### quick start and checked demos

- Organize the English and Chinese READMEs around installation, working
  examples, resource limits and verification.
- Add a CLI demo with asserted results for three scenarios, a per-request
  resource error and invalid outer JSON. Run the demo in both CI build modes.

## 0.1.20 - function error locations

- Report the function-name offset for type, arity and unknown-function errors.
  Resource errors raised during a function can report that call's location.
- Preserve inner function locations and continue using zero-based Unicode
  scalar offsets across the library and CLI.

## 0.1.19 - batch compilation reuse

- Reuse one short, successfully compiled expression within a batch. Each
  request still validates its input and has its own work budget and literal
  copies.
- Cover work-limit recovery, mutable literal isolation, and requests whose
  expressions exceed the reuse slot's size limit.

### performance benchmarks

- Add reproducible JS benchmarks for compilation, compiled search, sorting,
  long strings, serialization, batch queries and full CLI startup.
- Record fixed workload sizes, raw timing samples, build mode, source revision,
  host and toolchain, and peak RSS for library cases.

## 0.1.18 - isolate compiled JSON literals (2026-11-12)

- Keep mutable array and object literals private to each search, including
  nested collections returned through a projection or function.
- Copy each evaluated container literal at most once per search, with copy work
  charged to `max_steps`. Document when results can share caller input.
- Cover mutations of returned values, input revalidation, failure recovery and
  the existing JSON depth limit through the public API.

### unified verification (2026-11-12)

- Use one verification command locally and in CI for strict checks, both JS
  build modes, examples, official conformance and Windows PowerShell smoke.
- Reuse each mode's CLI for conformance and record source, toolchain, counts
  and per-step status in a report that survives early failure.

### MoonBit toolchain compatibility (2026-11-12)

- Update source declarations and generated interfaces for MoonBit
  `0.10.20+65efd5b93`, including the current trait derivation and integer syntax.
- Pin Windows and Ubuntu CI to the same release, record `moon version --all`
  as a CI artifact, and run strict release tests on the JS backend.
- Select the matching local toolchain in the PowerShell wrapper and document the
  compiler requirements for building GitHub main.

### bounded failure reduction (2026-11-11)

- Add a separate reducer for saved equality/composition failures, with attempt
  and time limits, repeat confirmation, stable failure categories and replay output.
- Recompute expectations when supported JSON inputs shrink; preserve expression
  text and opaque fixtures, including requests needed to reproduce batch failures.
- Extract the composition corpus/oracles without changing its fingerprint, and
  retain reducer unit/integration checks plus an injected-defect regression fixture.
- Test tooling only; runtime and published package remain 0.1.17.

### composition verification (2026-11-11)

- Retain a bounded seeded expression generator with independent expected values:
  8,192 combinations plus 15 normative cases in each build mode.
- Check category counts and corpus fingerprints across modes, save replayable
  failures, and include them in CI artifacts. Explicitly assert known reference
  deviations instead of treating a third-party evaluator as an absolute oracle.
- Test tooling only; library and published package remain 0.1.17.

### equality verification (2026-11-11)

- Retain deterministic deep equality, key-order, type distinction and contains
  checks in a standalone Node harness, integrated into both verification modes.
- Record actual query counts; save replayable semantic/process failures and
  upload them with CI evidence. Clear stale receipts on a new run.
- Test tooling only; library and published package remain 0.1.17.

## Documentation audit - 2026-11-10

- Correct stale current-release links and verification counts in both READMEs.
- Record a fresh local verification and 60,384 function/composition comparisons
  per build mode, including reviewed Python reference differences.
- No runtime change or new registry release; published version stays 0.1.17.

## 0.1.17 - 2026-11-06

- Keep projection lexical scope separate from AST shape, so a suffix following
  a parenthesized projection applies to its complete result.
- Respect unary negation binding relative to dot, flatten, filters and indexes,
  while preserving suffixes owned by an active projection.
- Add fixed API examples, compiled-query resource/reuse regressions and 288 CLI
  grouping/precedence cases per build mode. No new evaluator frames or public API.

## 0.1.16 - 2026-11-06

- Tokenize contiguous `[]` as the flatten operator. Reject whitespace-separated
  empty brackets at compile time, including root, postfix, references, filters,
  groups and skipped boolean branches, per the JMESPath bracket-specifier grammar.
- Preserve whitespace around flatten, nonempty brackets and literal bracket text.
- Add lexer/public API regressions and 45 real-process batch-isolation cases in
  each build mode. Parser depth and evaluation/output budgets remain enforced.

## 0.1.15 - 2026-11-04

Reject misplaced expression references during compilation, including in lazy branches, lists and filters. Direct reference arguments continue to support pipes, boolean expressions, grouping inside the reference and nested function calls.

### verification target isolation (2026-11-03)

- explicitly bind every full-verification CLI harness to the debug/release
  artifact built by that run, preventing inherited JMES_CLI_PATH redirection
- record relative CLI artifact paths in the verification receipt
- exercise an intentionally unusable inherited CLI path in both CI jobs;
  standalone harness overrides remain available for testing published packages
- no runtime/API/version change; published library remains 0.1.14


### verification tooling (2026-11-01)

- derive report boundary/mutation counts from actual adversarial harness output;
  remove the stale hardcoded count of 33 when 35 checks were being executed
- remove a previous success summary before starting verification, so a failed
  new run cannot leave a stale passed receipt; reject missing/mismatched counts
- add object-key/escaping roundtrip checks in debug/release and compact/pretty
  output, including prototype-like keys, duplicate keys and Unicode/control text
- no runtime/API change; published library version remains 0.1.14


## 0.1.14 - 2026-11-01

- validate caller-supplied Json numeric repr before evaluation and serialization;
  malformed/non-numeric/mismatched representations now return invalid_value
- check the output-size budget before validation and reject non-number alphabet
  before parsing, avoiding construction of arbitrary encoded arrays or objects
- preserve matching numeric spelling, including large-integer precision text;
  equality is based on the stored binary64 value, not new exact arithmetic
- test serialization, nested input rejection, compiled reuse and batch isolation
- this affects programmatically constructed Json values; it is not a demonstrated
  raw-JSON CLI input injection


## 0.1.13 - 2026-11-01

- consistently reject whitespace inside the [?-filter opener at the lexer
  boundary, including root, grouped and expression-reference contexts
- remove the postfix-only duplicate check; keep Unicode diagnostic offsets,
  valid surrounding whitespace and quoted literal content unchanged
- add mixed-batch regressions for malformed filter markers and 30 invalid
  function calls with exact error categories and surviving valid neighbors
- this tightens acceptance of malformed syntax; it is not a crash or new feature


## 0.1.12 - 2026-11-01

- parse complete expression references, including comparison, boolean and pipe
  operators, instead of binding & as tightly as unary negation
- fix valid map/sort_by/min_by/max_by calls incorrectly returning invalid_type
  for fallback keys, comparison mappings and piped transformations
- test nested references, argument delimiters, lazy branches, budget exhaustion
  and compiled-query recovery; retain parser/evaluator depth guards


## 0.1.11 - 2026-11-01

- fix a reproduced process-wide heap abort on an 8,000,000-character reverse
  inside a batch: precharge UTF-16 copy work before allocating the result
- build reversed strings from reverse Unicode iteration without character arrays;
  count string length through a metered iterator with constant extra space
- add constrained-process isolation, Unicode and compiled-query recovery tests
- string length/reverse can now reject large valid inputs with limit_exceeded;
  raising budgets explicitly trades protection for accepted workload size


All notable changes to MoonJMES are recorded here.

## 0.1.10 - 2026-10-31

- meter ordering type scans, comparisons, Unicode iterator advances, sorting
  copies and merge writes against max_steps across all six ordering functions
- use stable bottom-up merge sort so budget errors stop sorting immediately;
  the pinned core sort comparator cannot raise an error
- add long-common-prefix isolation tests, low-budget rejection, recovery and
  unchanged-input tests; compare merge boundaries/ties against independent sorting
- large legitimate sorts can now exhaust the default budget; this is an
  intentional resource-contract tightening, not a wall-clock timeout

## 0.1.9 - 2026-10-30

- reject non-finite scalar results at evaluated expression boundaries, before
  parent functions/comparisons can hide arithmetic or numeric-conversion overflow
- preserve lazy boolean branches and query reuse after an overflow error
- add unit regressions for type/comparison/collection/boolean wrappers and two
  isolated CLI batch cases with successful neighboring requests in both modes
- this tightens the existing finite-JSON policy; IEEE binary64 arithmetic and
  rounding are unchanged, including rejection when avg's running sum overflows

## 0.1.8 - 2026-10-30

- compare string ordering by Unicode code points instead of UTF-16 code units,
  fixing supplementary-plane ordering in sort/min/max and their _by variants
- use character iterators rather than allocating arrays for every comparison
- add regressions for BMP/supplementary boundaries, U+10FFFF, prefixes, empty
  strings, combining sequences, equal-key order and numeric extremes
- no locale collation or Unicode normalization is introduced

## 0.1.7 - 2026-10-30

- handle stdout/stderr stream errors, including closed downstream pipes, with
  exit 2 instead of an unhandled Node exception and internal stack trace
- preserve output-error status if the main query itself succeeds; stderr failure
  cannot recursively fail the stdout diagnostic fallback
- escape control, line-separator and bidi-format characters in CLI diagnostics
  to prevent terminal controls and forged diagnostic lines; JSON stdout is unchanged
- add both-mode real-process checks for read-only descriptors, both streams
  unavailable, a closed output pipe and hostile option text

## 0.1.6 - 2026-10-29

- preflight JSON text before decoder allocation: 8 Mi source units per string
  token, 1,000,000 lexical tokens including duplicate keys, and nesting 1,024
- share public parse_json_bounded across text search, batch CLI and expression
  literals/quoted identifiers; preserve syntax categories and per-item checks
- close the reproduced 12 MB escaped-string decoding failure from 0.1.5 with
  explicit whole-transport errors; also reject excessive object allocation
- test inclusive boundaries, escaped punctuation, malformed JSON, duplicate
  keys and three new constrained-heap transport regressions in both modes
- these are additional input restrictions, not a fixed peak-memory guarantee

## 0.1.5 - 2026-10-29

- reject non-numeric string contents before `to_number` invokes the JSON parser,
  avoiding construction of discarded arrays/objects; exact numeric syntax is
  still validated by the parser, retaining existing whitespace compatibility
- charge numeric-string scanning to the per-query work budget
- add numeric grammar/budget tests and isolated 4.8 MB encoded-object regression
  with valid neighboring requests in both CLI modes under the 192 MiB test heap
- document that the input byte cap is not a peak-memory guarantee for decoding

## 0.1.4 - 2026-10-28

- preserve null inputs in multi-select lists/hashes, including projections and map
- evaluate subexpression functions on null left results, allowing fallbacks and
  propagating type errors instead of silently returning null
- add three semantic unit tests and debug/release CLI regressions beyond the
  pinned official suite; keep parser/evaluator/output guard regressions
- provide a runnable public API example, committed batch input, accurate exit
  and diagnostic contracts, and contributor instructions
- fix quick-start file paths and make PowerShell scenarios independent of the
  caller's directory; verify both example modes and out-of-tree invocation
- align the development-agent setup with CI's pinned MoonBit and Node versions

## 0.1.3 - 2026-10-28

- prevent the reproduced debug evaluator overflow from 255 nested `to_array`
  calls with an execution depth guard independent from AST depth
- bound expanded JSON output, pretty formatting, batch envelopes and aggregate
  batch successes before serialization
- replace recursive JSON equality with iterative, work-budgeted traversal
- check `join` size and object result budgets before allocation/insertion;
  meter reductions and reject non-finite output
- count expression characters before allocating the lexer array and classify
  JSON nesting exhaustion as a resource error
- add public `stringify_bounded`, 20 adversarial subprocess checks and 256
  deterministic grammar mutations in each debug/release run
- clear existing compiler warnings, enforce exact official error categories
  in both modes, add a pinned GitHub API fallback and CI evidence artifacts

## 0.1.2 - 2026-10-19

- validate configurable resource limits and reject excessive parser nesting before recursion grows unchecked
- prevent integer overflow in index parsing and large-stride slices
- enforce result limits before building projected and function-produced arrays,
  and bound CLI reads to 16 MiB
- accept a UTF-8 BOM, report malformed batch JSON clearly, and isolate malformed batch entries
- add real CLI integration checks and clarify the public API and usage examples
- reproduce the September rejection's 4,001-character unary expression in
  three-request batch and single-query modes, in both debug and release CLI
  builds; verify errors do not discard the adjacent successful requests
- test the exact allowed AST depth boundary and a deeply grouped expression

## 0.1.1 - 2026-09-24

- add a complete Simplified Chinese README and installation guide
- add a PowerShell entry point that uses the repository-local MoonBit toolchain
- document the verified GitHub, Mooncakes, CI, and conformance evidence

## 0.1.0 - 2026-09-24

- implement the JMESPath lexer, parser, immutable AST, and bounded evaluator
- implement the standard JMESPath function set and expression references
- expose compiled, one-shot, JSON-text, and isolated batch APIs
- provide a file/stdin CLI, three runnable scenarios, tests, and cross-platform CI
- pass all 892 cases in the pinned official JMESPath compliance suite
