From 632c99eda24ddb1eae35373dfabbb59543bd0494 Mon Sep 17 00:00:00 2001 From: Aditya Mukhopadhyay Date: Mon, 30 Nov 2026 14:38:45 +0530 Subject: [PATCH] docs: sync ROADMAP.md and CLAUDE.md with the finished v3.0.0 milestone (#932) The v3.0.0 section reads as completed work for the 3.0.0-alpha, closed items are no longer described as pending, v1-v6 refusal is in the past tense, the status line names v2.0.12 and the alpha in preparation, and the #865/#861 gaps are recorded as closed. Closes #932. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh --- CLAUDE.md | 15 ++++++++------ README.md | 2 +- ROADMAP.md | 48 ++++++++++++++++++++++--------------------- docs/TEST_COVERAGE.md | 6 +++--- 4 files changed, 38 insertions(+), 33 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 14d108f21d..c2a92c294e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -25,7 +25,8 @@ changes no code, tests or nightly routes. The [#843 failure-path map](docs/benchmarks/843-failure-correctness/README.md) ties the failure paths excluded from nightly timing to 138 correctness tests with their error and data invariants. It changes no code, tests or nightly -routes; the heavy WAL replay test gap is #865. +routes. #865 closed the heavy WAL replay gap with the passing +`one_million_fact_wal_entry_replays_on_open` acceptance test. The [#841 manual shape sweep](docs/benchmarks/841-shape-sweeps/README.md) records native sort/window, set, UUID, recursive-control and sustained-reader @@ -253,7 +254,7 @@ Auto-migrates v7 → v8 on open (spec §9, with a backup meta page). v1–v6 are **2213 tests** (2190 active, 23 ignored; unit + integration + example + doc). Browser-only inventory is separate: #925 adds eight wasm tests (103 main-thread / 136 dedicated-worker tests in total); see `docs/testing/925-browser-incoming-refs.md` for execution results. #936 adds one browser golden-migration test to each. Engine answers once checked by the executor are frozen in `tests/answers/` (#551). The #924 Rust 1.99.1 dist binary is 1,250,568 bytes (+3,808 from the v3 base), below the 1,280,000-byte gate; [verification and acceptance mapping](docs/testing/924-incoming-refs.md). See `docs/TEST_COVERAGE.md` for the full per-file breakdown. -The #760 deterministic storage suite adds three native unit tests in a separate `--cfg minigraf_shuttle` build, outside the default count. Run only `graph::storage::deterministic::` with that cfg; ordinary unit tests do not enter its scheduler. `deterministic-schedules.yml` runs relevant v3 PRs on Linux/macOS/Windows plus Linux MSRV, and larger nightly/manual searches with replay artifacts. The identical main workflow activates the v3 schedule after both PRs merge. See `docs/testing/deterministic-schedules.md` for scope, controls and findings. +The #760 deterministic storage suite adds three native unit tests in a separate `--cfg minigraf_shuttle` build, outside the default count. Run only `graph::storage::deterministic::` with that cfg; ordinary unit tests do not enter its scheduler. `deterministic-schedules.yml` runs relevant v3 PRs on Linux/macOS/Windows plus Linux MSRV, and larger nightly/manual searches with replay artifacts. The identical workflow on `main` schedules the v3 runs. See `docs/testing/deterministic-schedules.md` for scope, controls and findings. **Testing conventions** — see the Testing Conventions section below before writing any tests. @@ -261,6 +262,8 @@ On v3, ordinary `avg` skips nil/nonnumeric values and divides the exact rounded ## Current Maintainer Context +**The latest release is v2.0.12; v3.0.0-alpha is in preparation on `v3`.** The feature and correctness work is complete; the remaining milestone items are release tasks and documentation. + On `v3`, ordinary sum/sum-distinct skip nonnumbers and min/max compare all non-nil types by the window total order (#789). Empty-query conventions and all-nil min/max group dropping are preserved; INT-041/043/044 are deprecated for these paths. #781 expands Ordered Aggregate to sum/avg, fixed-scalar extrema and Integer/nil sum-distinct, with safe effective tuples and retained Sort for :with. Ordinary avg shipped in #777. On `v3`, expression `=` / `!=` resolves literal keywords once per operator (#774), including nested expressions and substituted prepared slots. Dynamic values do not populate the cache. This is a performance-only change, with no v2.x backport; see `docs/benchmarks/774-expression-keywords.md`. @@ -270,10 +273,10 @@ On `v3`, expression `=` / `!=` resolves literal keywords once per operator (#774 Current plan (see `ROADMAP.md` and the milestones): - **In-memory ancestors (#723)**: eligible positive three-pattern delta runs retain an entity-first alternative with the same `Old`/`Delta`/`Full` ranges and separately planned head slots. Each round can select it when the committed dictionary is empty, the source relation has at most 128 rows and no stored records, and a capped AEVT count favors entity probes over building an uncached pending value map. Populated committed generations keep AVET probes. No additional write-time index. - **v2.x** (`main`, format v7) gets all bug fixes, including data-integrity and security fixes, as patch releases, but no new features, until 12 months after v3.0.0 final ships (not a prerelease). -- **v3.0.0** (format v8 and data integrity, plus `:limit` #306, optional `:distinct` output #493, `lag`/`lead` #182, sliding row frames #183, set membership predicates #316 and prepared queries in every binding #181, UDF registration in every binding #180; [v3.0.0 milestone](https://github.com/project-minigraf/minigraf/milestone/1)) is developed on the long-lived `v3` branch. All v3 PRs target `v3`; `main` stays untouched. CI runs on PRs to `v3` the same as on PRs to `main`. Do not merge `main` into `v3` routinely: `main` only gets backports of fixes already on `v3`. Shared CI and workflow changes land on both branches as separate PRs. Just before the v3.0.0 cut, merge `main` into `v3` once (merge commit; source conflicts resolved to `v3`, `main`'s v2.0.x CHANGELOG sections brought over) so the cut is a fast-forward. At the first v3 release, the current `main` is copied to `v2` and `v3` becomes the new `main`. -- **Input order (#641)** targets v3.0.0 in three slices: committed scalar Sort omission, one-group count/count-distinct and partition-at-a-time windows are implemented in the dependent PRs for `v3`. The reviewed design, fallback scope and acceptance gates are in `docs/superpowers/specs/2026-10-28-641-input-order-design.md`. -- **Scalar key decoder proofs (#693)** target v3.0.0 before the release cut. The pure decoder refactor preserves key bytes and INT-049 behavior; Kani covers round trips and bounded malformed inputs. The approved design and CI limits are in `docs/superpowers/specs/2026-10-29-693-decoder-proofs.md`. -- **v3.next** (the release after v3.0.0) holds the query profiler (#185) and rule persistence (#241). OPFS `BrowserDb` (#441) shipped on `v3` for v3.0.0 at Tier 2; its benchmark is an explicit exclusion carried to v3.next (#844). +- **v3.0.0** (format v8 and data integrity, plus `:limit` #306, optional `:distinct` output #493, `lag`/`lead` #182, sliding row frames #183, set membership predicates #316 and prepared queries in every binding #181, UDF registration in every binding #180; [v3.0.0 milestone](https://github.com/project-minigraf/minigraf/milestone/1)) is implemented on the long-lived `v3` branch for the alpha. Until the branch move, all v3 PRs target `v3`; `main` remains the v2.x maintenance line. CI runs on PRs to `v3` the same as on PRs to `main`. Do not merge `main` into `v3` routinely: `main` only gets backports of fixes already on `v3`. Shared CI and workflow changes land on both branches as separate PRs. The pre-release `main` → `v3` merge is complete (#930), including the v2.0.x CHANGELOG sections. Before the alpha is tagged, rename `main` to `v2.x` and `v3` to `main` (#937). +- **Input order (#641)** is complete on `v3`: committed scalar Sort omission, one-group count/count-distinct and partition-at-a-time windows. The reviewed design, fallback scope and acceptance gates are in `docs/superpowers/specs/2026-10-28-641-input-order-design.md`. +- **Scalar key decoder proofs (#693)** are complete on `v3`. The pure decoder refactor preserves key bytes and INT-049 behavior; Kani covers round trips and bounded malformed inputs. The approved design and CI limits are in `docs/superpowers/specs/2026-10-29-693-decoder-proofs.md`. +- **v3.next** (the release after v3.0.0) holds the query profiler (#185) and rule persistence (#241). OPFS `BrowserDb` (#441) is implemented on `v3` and is Tier 2 in the 3.0.0 release; its benchmark is an explicit exclusion carried to v3.next (#844). - Known v2.x data issue: same-transaction multi-valued facts (#371). Fix ships in v3.0.0. All v2.x known issues are listed in pinned issue #421 (`known-issue` label); `data-integrity`/`corruption`/`durability` issues fixed in a v2.x patch stay open until that patch is published; issues fixed on the unreleased `v3` branch close on merge (closing keywords do not fire on `v3`, so close them with `gh issue close`) and stay listed in #421 (CONTRIBUTING.md). - Support policy and tiers: PHILOSOPHY.md §7 and §10. v2.x gets all bug fixes, but no new features, until 12 months after v3.0.0 final ships; prereleases do not start that clock. Tier 1 = Rust + Python + browser WASM (from v3.0.0); other bindings are Tier 2. Every binding publishes every core release, including prereleases; a binding that cannot publish blocks the release. diff --git a/README.md b/README.md index 759d4642e2..48f14feaed 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ isolate. It adds no nightly benchmark. The [failure-path correctness map](docs/benchmarks/843-failure-correctness/README.md) (#843) ties invalid inputs, callback errors, corruption, failed-handle refusal, v1–v6 refusal and heavy WAL replay to the correctness tests that check their -error codes and data. It adds no nightly benchmark; a heavy-replay test gap is #865. +error codes and data. It adds no nightly benchmark; #865 closed the heavy-replay gap with the passing `one_million_fact_wal_entry_replays_on_open` acceptance test. The [manual shape sweep](docs/benchmarks/841-shape-sweeps/README.md) (#841) examines native sort/window, set and UUID shapes, recursive controls, and diff --git a/ROADMAP.md b/ROADMAP.md index 8cf99b1430..51dd41e0c9 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -158,19 +158,21 @@ v2.x gets all bug fixes, including data-integrity and security fixes, but no new --- -## v3.0.0 — File Format v8 and Data Integrity +## v3.0.0 — File Format v8 and Data Integrity (alpha in preparation) + +The feature and correctness work below is complete on `v3` for **3.0.0-alpha**; it is not yet released. The open milestone items are release preparation: version bump (#929), branch move (#937), performance-envelope refresh or exception (#942), nightly routing (#940), release pipeline (#938, #939), and documentation (#931–#933). - Bounded typed incoming references (#924): core Rust transaction APIs implemented, with separate link/record limits, exact scalar Ref matching and target-local access in every storage layer. The JVM bindings and docs-site deliverables are merged. The measurement report shows no median regression above 5% on any of 65 IDs in either round; see [acceptance evidence](docs/testing/924-incoming-refs.md). -- Incoming-reference binding parity (#925): core browser `BrowserWriteTransaction.incomingRefs` implemented with exact JS budgets, typed complete/exhausted outcomes and callback reentry guards; remaining binding, wasm package and docs-site PRs are separate deliverables. +- Incoming-reference binding parity (#925; done): `BrowserWriteTransaction.incomingRefs` implements exact JS budgets, typed complete/exhausted outcomes and callback reentry guards. The remaining native bindings, binding template, WASM package and docs-site PRs are merged. The WASI package remains a REPL without transaction handles. -**v3.0.0 supports file format v8 only.** Fixing #287/#371 (`EavtKey`/`AevtKey` carry no value bytes, so same-transaction multi-values collapse) bumps the format from v7 to v8. Support for v1–v6 is dropped at the same time. The v1–v6 → v7 auto-migration code in `persistent_facts.rs` can be removed when cutting this release; a v7→v8 migration replaces it. Any database opened at least once under a v1.x release will already be on v7; there are no known users on older formats. Every other layout change this release needs goes into v8 too, so there is no separate v9. +**v3.0.0 writes file format v8 and automatically migrates v7.** The v8 keys include value bytes, fixing the same-transaction multi-value collapse in #287/#371. The v1–v6 → v7 auto-migration code has been removed; v1–v6 files are refused with `STG-028` and left unchanged. Open those files with v2.x first to migrate them to v7. Read-only open reads v7 without migrating. All layout changes for this release are in v8. -This was the GitHub milestone named “2.0” before v2.0.0 used that version number for the kernel-locking and structured-error-code breaking changes; it was consequently renumbered to v3.0.0. It is developed on the long-lived `v3` branch; every v3 pull request targets `v3` and `main` is left untouched. At the first v3 release the current `main` is copied to a `v2` branch and `v3` becomes the new `main`. +This was the GitHub milestone named “2.0” before v2.0.0 used that version number for the kernel-locking and structured-error-code breaking changes; it was consequently renumbered to v3.0.0. Until the branch move, every v3 pull request targets `v3`; `main` remains the v2.x maintenance line. Before the alpha is tagged, `main` is to be renamed to `v2.x` and `v3` to `main` (#937). -Scope — format and storage integrity: +Completed — format and storage integrity: - v8 index keys with value bytes and v7→v8 migration (#371, #287; done on `v3`) -- Kani proofs that the format-v8 scalar key decoders invert their encoders and reject bounded malformed inputs without panicking (#693; targeted before v3.0.0, with no format change) +- Kani proofs that the format-v8 scalar key decoders invert their encoders and reject bounded malformed inputs without panicking (#693; done on `v3`, with no format change) - v8 storage format, done on `v3` in five PRs (#374, #434, #388, #433): - per-page CRC32, page id and generation on every page (#388); - two alternating meta pages; crash-atomic, copy-on-write checkpoints whose cost follows the change (#374, #434); @@ -184,40 +186,40 @@ Scope — format and storage integrity: - In a `WriteTransaction`, the last statement that writes a fact decides it, so reads inside the transaction match the commit; `LogWriter` keeps the same rules, with `API-020` for an assertion and retraction of one fact in one transaction (#477; done on `v3`) - `btree_page` fuzz target that reaches node decoding (#375; done on `v3` with #387: page targets rebuilt on real v8 files) -Scope — query API: +Completed — query API: -- Align ordinary aggregate value handling with windows (#789; implemented for v3.0.0): sum/sum-distinct skip nonnumbers; min/max accept all non-nil types and mixed numbers. Preserve empty-query and all-nil min/max group-drop behavior. Ordinary avg is #777; ordered-group expansion remains #781. +- Ordinary aggregate value handling matches windows (#789; done on `v3`): sum/sum-distinct skip nonnumbers; min/max accept all non-nil types and mixed numbers. Empty-query and all-nil min/max group-drop behavior is preserved. Ordinary avg (#777) and ordered-group expansion (#781) are also implemented. - Selective in-memory ancestor joins avoid building a whole-attribute value map (#723; implemented for eligible three-pattern recursive bodies). Populated committed generations keep AVET probes; general in-memory value joins remain unchanged. - Optional `:distinct` result tuples, preserving bag output by default (#493; done on `v3`) - `lag` and `lead` window functions for the previous/next row within an ordered partition (#182; v3.0.0) - Bounded sliding row frames, `:rows N preceding`, for window aggregates (#183; v3.0.0, implemented on `v3`; builds on #182). [#836 audit evidence](docs/benchmarks/836-exclusions/README.md) retains the 110 wider cases as manual/deferred; it does not expand nightly coverage. -- Cursor API: `Minigraf::query` and `PreparedQuery::query` return an owned `Cursor` that delivers rows in batches, with the answer fixed at open (#432; Rust API done on `v3`). The binding cursor objects follow. Behind the cursor, the streaming engine (#473) runs every query and produces rows as they are pulled: patterns, expressions and pseudo-attributes (#544), joins and `:db/valid-at` (#545), `not` and `or` (#546), aggregates and windows (#547), rules (#548), and transaction reads (#550); the executor's query path is gone (#551; done on `v3`). Operators do not spill: memory follows operator state, with an opt-in per-query limit (`QRY-012`, #549). +- Cursor API: `Minigraf::query` and `PreparedQuery::query` return an owned `Cursor` that delivers rows in batches, with the answer fixed at open (#432; done on `v3`, including binding cursor objects in #462). Behind the cursor, the streaming engine (#473) runs every query and produces rows as they are pulled: patterns, expressions and pseudo-attributes (#544), joins and `:db/valid-at` (#545), `not` and `or` (#546), aggregates and windows (#547), rules (#548), and transaction reads (#550); the executor's query path is gone (#551; done on `v3`). Operators do not spill: memory follows operator state, with an opt-in per-query limit (`QRY-012`, #549). - Projected UUID lookup batches walk dense DICT ranges (#530; implemented on `v3`), keeping temporary memory bounded to a batch and query-cache charges in projection order. -- Native `:limit N`, `:order-by` and `:offset`, with a top-k `Sort` whose memory follows `N` (#306; done on `v3`, with the 10M-fact acceptance tests moved from #473; spec `docs/superpowers/specs/2026-10-24-limit-order-by-design.md`). #641 targets v3.0.0 in three slices: snapshot-bound order proofs and Sort omission for committed scalar ranges, then one-group count/count-distinct and partition-at-a-time windows. All three slices are implemented in the dependent #641 PRs for `v3`. #781 extends ordered grouping to sum/avg, fixed-scalar min/max, Integer/nil sum-distinct, and effective tuples reducible to one ordered Integer/Boolean slot plus scalar constants/repetitions, including hidden `:with` keys. Every `:with` Sort is retained. Unproved keys/arguments, callbacks, `collect-set`, rules and aggregate+window queries retain full-input evaluation. Compatible built-in windows with one proved nonconstant partition key hold one partition and bounded batches; unpartitioned/incompatible windows, aggregate queries, callbacks and `collect-set` retain full-input evaluation. See `docs/superpowers/specs/2026-10-28-641-input-order-design.md` and `docs/superpowers/specs/2026-10-29-781-ordered-aggregate-design.md`. -- Fact-log iterator: `Minigraf::fact_log(&FactFilter)` streams every fact version (assertions and retractions, with `tx_count`, `tx_id` and valid-time bounds) in transaction order or storage order, filtered by attribute, attribute prefix, entity and tx range, with memory bounded by a window rather than the database (#430; Rust API done on `v3`). An open log pins its generation: checkpoints run but do not reuse its pages (#543; `API-013` deprecated). A raw log writer (#431) completes the extract-transform-load path; the binding objects follow with #462. -- Read-only open: `OpenOptions::read_only` takes a shared lock, so several readers can hold a file at once, writes nothing to the file or its WAL (a WAL is applied in memory, a v7 file is read without migrating), and refuses writes with `API-014` (#429; Rust API done on `v3`). The bindings' `open_with_options` follows. -- Raw log writer: `LogWriter` builds a new database from `FactRecord`s with their `tx_count`, `tx_id`, valid-time windows and assertion flags kept, gaps allowed (a purged transaction stays a hole for `:as-of`), at `.partial` renamed into place by `finish` (#431; Rust API done on `v3`). Completes extract (#429, #430), transform, load. The binding objects follow. +- Native `:limit N`, `:order-by` and `:offset`, with a top-k `Sort` whose memory follows `N` (#306; done on `v3`, with the 10M-fact acceptance tests moved from #473; spec `docs/superpowers/specs/2026-10-24-limit-order-by-design.md`). #641 is complete on `v3`: snapshot-bound order proofs and Sort omission for committed scalar ranges, one-group count/count-distinct and partition-at-a-time windows. #781 extends ordered grouping to sum/avg, fixed-scalar min/max, Integer/nil sum-distinct, and effective tuples reducible to one ordered Integer/Boolean slot plus scalar constants/repetitions, including hidden `:with` keys. Every `:with` Sort is retained. Unproved keys/arguments, callbacks, `collect-set`, rules and aggregate+window queries retain full-input evaluation. Compatible built-in windows with one proved nonconstant partition key hold one partition and bounded batches; unpartitioned/incompatible windows, aggregate queries, callbacks and `collect-set` retain full-input evaluation. See `docs/superpowers/specs/2026-10-28-641-input-order-design.md` and `docs/superpowers/specs/2026-10-29-781-ordered-aggregate-design.md`. +- Fact-log iterator: `Minigraf::fact_log(&FactFilter)` streams every fact version (assertions and retractions, with `tx_count`, `tx_id` and valid-time bounds) in transaction order or storage order, filtered by attribute, attribute prefix, entity and tx range, with memory bounded by a window rather than the database (#430; done on `v3`, including native binding objects). An open log pins its generation: checkpoints run but do not reuse its pages (#543; `API-013` deprecated). A raw log writer (#431) completes the extract-transform-load path. +- Read-only open: `OpenOptions::read_only` takes a shared lock, so several readers can hold a file at once, writes nothing to the file or its WAL (a WAL is applied in memory, a v7 file is read without migrating), and refuses writes with `API-014` (#429; done on `v3`). Native bindings expose `open_with_options` (#465). +- Raw log writer: `LogWriter` builds a new database from `FactRecord`s with their `tx_count`, `tx_id`, valid-time windows and assertion flags kept, gaps allowed (a purged transaction stays a hole for `:as-of`), at `.partial` renamed into place by `finish` (#431; done on `v3`, including native binding objects). Completes extract (#429, #430), transform, load. -Scope — features: +Completed — features: -- OPFS-backed persistent mode for `BrowserDb`: a sync access handle in a dedicated Worker, no in-memory buffer; IndexedDB stays the main-thread backend. Starts at Tier 2 inside the Tier 1 browser binding until it has shipped (#441; done on `v3`; its benchmark is an explicit exclusion carried to v3.next by #844) +- OPFS-backed persistent mode for `BrowserDb`: a sync access handle in a dedicated Worker, no in-memory buffer; IndexedDB stays the main-thread backend. OPFS is Tier 2 in the 3.0.0 release, inside the Tier 1 browser binding (#441; done on `v3`; its benchmark is an explicit exclusion carried to v3.next by #844) - Set values `#{...}`, the set predicates `in?`/`not-in?`/`any-in?`/`all-in?`/`none-in?` and `collect-set` (#316; done on `v3`: core, `BrowserDb` set binds, and set values in Python, Java, Android, Swift, Node.js, C and the browser/WASI packages on their `v3` branches) - Prepared queries in every binding (#181; done on `v3`: core, `BrowserDb.prepare`, and Python, Java, Android, Swift, Node.js and C on their `v3` branches) -- UDF registration in every binding: the UniFFI ones, C, Node and the browser `BrowserDb` (#180; core done on `v3`: fallible UDFs, `QRY-014`, registry snapshot and re-entry; the bindings follow) +- UDF registration in every binding: the UniFFI ones, C, Node and the browser `BrowserDb` (#180; done on `v3` in core and every binding: fallible UDFs, `QRY-014`, registry snapshot and re-entry) - `OpenOptions` exposed over UniFFI through `open_with_options`, so embedders can suppress the close-time checkpoint (#322; done on `v3` in every binding with #465) -Scope — release-gate testing and documentation: +Completed — testing and documentation: - Deterministic storage schedules (#760; v3.0.0): [suite and findings](docs/testing/deterministic-schedules.md) cover batch visibility, snapshot cutoffs and checkpoint publication. Focused native/MSRV PR checks and larger nightly/manual searches retain replay artifacts; the workflow-only main companion enables the v3 nightly schedule. Whole-database simulation remains out of scope. - Golden-file compatibility corpus for every format version (#391; done on `v3`: six v7 files from 2.0.3 checked after migration, seven v8 files frozen at `23aa57c`) - SIGKILL crash test that checks committed data through EAVT, AEVT and full scan (#384; done on `v3`: `tests/crash_kill_test.rs`, 100 rounds per OS nightly) - Model-based test of transact/retract/checkpoint/reopen (#385; done on `v3`: `tests/model_based_test.rs`, 30,000 cases nightly) -- Wider property tests: file-backed, batched, retracts, temporal, joins (#386) +- Wider property tests: file-backed, batched, retracts, temporal, joins (#386; done on `v3`: `tests/property_test.rs`) - Persistent fuzz corpus and an operation-sequence target (#387; done on `v3`: corpus caching, weekly `cmin`, the v8 page targets, and the `ops_sequence` and `corrupt_file` targets) -- Fault injection across save/WAL/recovery (#390) +- Fault injection across save/WAL/recovery (#390; done on `v3`: `src/fault_matrix.rs`) - Long-running soak test at scale (#392; done on `v3`: `tests/soak_test.rs`, 10M facts and a 5-hour churn weekly, alternating `main` and `v3`) - Benchmarks at 100K–10M facts and a published performance envelope (#394; on `v3`: `examples/perf_envelope.rs`, results in `docs/BENCHMARKS.md`; follow-ups #528–#532, with #532 superseded by #551's removal of repeated committed-fact net-assert; [audit and measurements](docs/benchmarks/532-net-assert-audit.md)) - Acceptance evidence for memory/scaling (#837): named-test and Linux RSS gates, nonlinear/multistratum recursion and custom chunk bounds; [validation status](docs/benchmarks/837-acceptance-gaps.md) @@ -225,7 +227,7 @@ Scope — release-gate testing and documentation: - Nightly runtime expansion (#858): 14 Java/JVM and 3 WASI IDs run nightly ([contract](docs/BINDING_BENCHMARKS.md)). The Swift/iOS simulator and Android emulator were qualified against physical Device Farm runs and rejected for every case ([report](docs/benchmarks/858-mobile-qualification/REPORT.md)), so no mobile lane exists; a physical-device lane is costed there but not scheduled. The platform restriction from #839 applies only to that accepted manual evidence task. - Manual migration evidence (#838): native v7-to-v8 through 200k facts; Chromium/Firefox/WebKit through 20k facts, with separate read-only/reopen controls and bounded post-migration cursor churn. [Results, frozen fixtures and exclusions](docs/benchmarks/838-migration/README.md); no new nightly route or sustained-pin bound. - Semantic permutations (#842): [correctness-target map and control limits](docs/benchmarks/842-semantic-permutations/README.md) for X07. The exclusion stands; no nightly route or acceptance gate is added. -- Failure paths (#843): [correctness-target map](docs/benchmarks/843-failure-correctness/README.md) for X08. The exclusion stands; the heavy WAL replay test gap is #865. +- Failure paths (#843): [correctness-target map](docs/benchmarks/843-failure-correctness/README.md) for X08. The benchmark exclusion stands; #865 closed the heavy WAL replay gap with the passing `one_million_fact_wal_entry_replays_on_open` acceptance test. - Release-cut feature re-audit (#844): [every production change since the measured revision, with its benchmark disposition](docs/bench-coverage-v3.md#release-cut-feature-re-audit-844), at v3 head `33b4b165c`. OPFS (#441) is excluded and carried to v3.next with the profiler (#185) and rule persistence (#241); no nightly route or gate changes. - Manual shape evidence (#841): [native shape sweeps, recursive controls and sustained-reader experiments](docs/benchmarks/841-shape-sweeps/README.md), with explicit input, timeout and attribution limits. The small-nightly recommendation is separate from execution; this audit adds no nightly route or release-acceptance gate. - Expression keyword/ref equality (#774; on `v3`): resolve literal keywords once per operator, with memory bounded by the expression. [Measurements and regression coverage](docs/benchmarks/774-expression-keywords.md); performance-only, with no v2.x backport. @@ -324,8 +326,8 @@ When evaluating features, ask: ## Current Focus - v2.x maintenance on `main`: all bug fixes, including data-integrity and security fixes, but no new features, until 12 months after v3.0.0 final ships (not a prerelease) -- v3.0.0 (format v8 and data integrity) on the `v3` branch, then v3.next features -- Production readiness for high-stakes deployments, tracked in the [v3.0.0 milestone](https://github.com/project-minigraf/minigraf/milestone/1) +- v3.0.0-alpha release preparation on `v3`: the feature and correctness work is complete; remaining release tasks are tracked in the [v3.0.0 milestone](https://github.com/project-minigraf/minigraf/milestone/1) +- v3.next features after v3.0.0 - Ecosystem work tracked in [`minigraf-examples`](https://github.com/project-minigraf/minigraf-examples) - Developer tools tracked in `minigraf-inspector` and `minigraf-visualizer` @@ -333,4 +335,4 @@ See [GitHub Issues](https://github.com/project-minigraf/minigraf/issues) for spe --- -**Last updated**: November 2026 — v2.0.12, a `BrowserDb` flush patch on v2.x, is the current release; v3.0.0 work, including the file-format v8 fix for #287/#371, is developed on the long-lived `v3` branch and merges into `main` at the v3.0.0 cut. +**Last updated**: November 2026 — v3.0.0-alpha in preparation. diff --git a/docs/TEST_COVERAGE.md b/docs/TEST_COVERAGE.md index 047624a034..88ccd6a816 100644 --- a/docs/TEST_COVERAGE.md +++ b/docs/TEST_COVERAGE.md @@ -187,9 +187,9 @@ simulator and on the Android emulator, so no mobile lane is enabled **#843 failure-path map**: [138 curated correctness tests](benchmarks/843-failure-correctness/README.md) (35 cells; 5 tests exist only in the `test-hooks` build) cover the failure paths excluded from -nightly timing, with their error-code and data invariants. Gaps: no `Minigraf::open` replay of -one heavy WAL entry (#865) and no test of the fixed recursion round bound (planned in #861). -No test is added; the inventory above is unchanged. +nightly timing, with their error-code and data invariants. The two gaps found then are closed: +#865 added the `one_million_fact_wal_entry_replays_on_open` acceptance test, and the #861 round +limit is tested in `tests/limit_keywords_test.rs`. This audit itself added no test. **#842 semantic permutation map**: [128 curated correctness tests](benchmarks/842-semantic-permutations/README.md) (130 targets in 29 cells; 17 tests exist only in the `test-hooks` build) cover the numeric, bind,