8000 Merge main into v3 before the 3.0.0-alpha (#930) by adityamukho · Pull Request #951 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
099da8d
test(index): cover lookup_vaet_ref with a fixed unit test (#571)
adityamukho Oct 13, 2026
d604cc4
fuzz: minimized corpus for main (weekly cmin) (#563)
github-actions[bot] Oct 13, 2026
6e73421
fuzz(datalog_eval): skip inputs whose patterns join to a cross produc…
adityamukho Oct 13, 2026
1765aae
release: v2.0.6
adityamukho Oct 14, 2026
d3e5ad1
docs(claude): merge main into v3 once, at the v3.0.0 cut (#583)
adityamukho Oct 14, 2026
b848f39
fuzz(datalog_eval): count partial bindings in the join guard (#597) (…
adityamukho Oct 15, 2026
28f4a4e
fix(prepared): keep a literal :as-of / :valid-at when binding slots (…
adityamukho Oct 15, 2026
4bfdde4
fix(magic-sets): guard a rule only by demand every call site supplies…
adityamukho Oct 16, 2026
c21168f
fix(or): join an or sharing no variable with earlier clauses as a cro…
adityamukho Oct 16, 2026
2d2e5d7
release: v2.0.7
adityamukho Oct 16, 2026
228a087
fix(not-join): :db/valid-at binds the query's valid time on the per-r…
adityamukho Oct 16, 2026
f8306cb
fix(rules): bind the query's valid time for :db/valid-at in rule defi…
adityamukho Oct 18, 2026
dcbc19e
fix(or): seed an or branch whose expression reads an outer variable (…
adityamukho Oct 18, 2026
e72febd
fix(query): run an expression reading an or-bound variable after the …
adityamukho Oct 19, 2026
ff5b601
fuzz: minimized corpus for main (weekly cmin) (#632)
github-actions[bot] Oct 19, 2026
3565de3
fix(rules): stratify a rule above a not/or rule it calls (#628) (#634)
adityamukho Oct 19, 2026
92aa82a
fix(rules): repeat a stratum that recurses through a not/or rule (#63…
adityamukho Oct 19, 2026
72650b0
fix(or): an or branch meets a keyword value as the entity it names (#…
adityamukho Oct 20, 2026
fc89da4
release: v2.0.8
adityamukho Oct 20, 2026
5f364ab
fix(parser): reject a fact with more than four elements, PRS-108 (#64…
adityamukho Oct 20, 2026
f851222
test(parser): backport the parser vs grammar verifier to v2.x (#643) …
adityamukho Oct 20, 2026
f3fa882
docs(grammar): document line comments and Unicode identifiers (#650) …
adityamukho Oct 20, 2026
8cce509
docs(spec): binding consumer tests per PR, release and publish (#662)
adityamukho Oct 20, 2026
b1f86e4
docs(plan): binding consumer tests (#664)
adityamukho Oct 20, 2026
cb8756e
fix(rules): a pseudo-attribute in a rule body reads the stored fact (…
adityamukho Oct 20, 2026
f7ea990
fix(browser): BrowserDb errors carry their error code (#673) — backpo…
adityamukho Oct 21, 2026
e434148
release: v2.0.9
adityamukho Oct 21, 2026
efe2609
fix(prepared): prepared queries use the database's rule limits (#679)…
adityamukho Oct 21, 2026
9179fd0
test(storage): Kani proofs of encode_value (#627) — backport (#691)
adityamukho Oct 22, 2026
45ac8c5
ci(crash-kill): run v3's nightly rounds with test-oracle (#687) (#695)
adityamukho Oct 23, 2026
f9fefac
ci(crash-kill): print the cargo features the run uses (#697)
adityamukho Oct 23, 2026
47569c1
fix(wal): replay WAL entries of more than 1,000,000 facts (#686) — ba…
adityamukho Oct 23, 2026
8965c63
ci(coverage): one coverage workflow, whole-crate floors raised (#702)
adityamukho Oct 23, 2026
ce9ec33
ci: one lint job, one advisory check, docs.rs build on both targets (…
adityamukho Oct 23, 2026
e8b4e13
fix(query): float constants match equal floats only (#706) — backport…
adityamukho Oct 23, 2026
b64fe4f
docs(storage): state where encode_value puts NaN (#688) — backport (#…
adityamukho Oct 23, 2026
8e91e66
release: v2.0.10
adityamukho Oct 23, 2026
82788d4
ci(crash-kill): pass test-hooks where Cargo.toml defines it (#551) (#…
adityamukho Oct 23, 2026
a87cba9
docs(test-coverage): group regression tests by area (#718)
adityamukho Oct 23, 2026
ccedb12
docs: the v3.1.0 milestone is now v3.next (#725)
adityamukho Oct 23, 2026
3539e03
docs(roadmap): move v3.0.0-milestone features into v3.0.0 scope (#733)
adityamukho Oct 24, 2026
b3b3975
fix(db): checkpoint inside a WriteTransaction returns INT-001 instead…
adityamukho Oct 24, 2026
0440705
fix(query): expression = / != equate a keyword with a ref to its enti…
adityamukho Oct 24, 2026
5936773
fix(types): -0.0 and 0.0 hash alike, so a rule call's 0.0 returns -0.…
adityamukho Oct 24, 2026
f73a445
chore(fuzz): ignore fuzz/target and fuzz/Cargo.lock, as on v3 (#758)
adityamukho Oct 25, 2026
709be06
release: v2.0.11
adityamukho Oct 26, 2026
50cff87
fuzz: minimized corpus for main (weekly cmin) (#767)
github-actions[bot] Oct 26, 2026
c2c5ec3
ci: cap scheduled Kani proof concurrency (#693) (#783)
adityamukho Oct 29, 2026
c8ae841
ci: schedule v3 storage interleaving checks from main (#760) (#787)
adityamukho Oct 29, 2026
4a77092
docs: correct v2 aggregate support and retire redundant tracker (#790)
adityamukho Oct 29, 2026
4830eab
fuzz: backport scope-aware evaluator guard (#802) (#805)
adityamukho Nov 3, 2026
cabd3e2
fuzz: minimized corpus for main (weekly cmin) (#803)
github-actions[bot] Nov 3, 2026
7221104
ci(bench): verify benchmark selection and reporting provenance (P17 m…
adityamukho Nov 3, 2026
dcd337f
ci(bench): route row-frame shortlist in scheduled workflow (#813)
adityamukho Nov 3, 2026
d9a51ad
ci(bench): route v3 prepared query suite (Refs #776) (#814)
adityamukho Nov 3, 2026
c72d9d1
ci(bench): route v3 history and retraction shortlist (Refs #776) (#809)
adityamukho Nov 3, 2026
e82e874
ci(bench): route v3 fact logs and offline imports (Refs #776) (#825)
adityamukho Nov 3, 2026
662fd51
ci: route v3 memory acceptance from default-main schedule (Refs #776 …
adityamukho Nov 3, 2026
4d65022
ci: schedule P16 binding benchmarks from main (#833)
adityamukho Nov 3, 2026
e7923eb
ci: enforce named v3 acceptance tests and RSS evidence (#837) (#849)
adityamukho Nov 4, 2026
25fd6fb
ci: preserve independent v3 benchmark history (#840) (#853)
adityamukho Nov 5, 2026
c8205cf
ci: register the #865 WAL replay test in main's acceptance verifier (…
adityamukho Nov 7, 2026
fcfe479
ci: run the #863 nightly candidate acceptance suite on v3 (#879)
adityamukho Nov 7, 2026
7c94758
fuzz: minimized corpus for main (weekly cmin) (#880)
github-actions[bot] Nov 10, 2026
26d1579
Merge pull request #893 from project-minigraf/fix/884-rust-quick-start
adityamukho Nov 14, 2026
82e1ea5
ci: pass explicit helper path to nightly lock suites (#887, #888)
adityamukho Nov 13, 2026
7833f0e
Merge pull request #897 from project-minigraf/bot/fuzz-corpus-main
github-actions[bot] Nov 17, 2026
19fd080
ci: ignore the chrono unmaintained advisory until it is replaced (#90…
adityamukho Nov 17, 2026
cbdd0d0
fix(browser): fail the IndexedDB handle after a failed flush and sett…
adityamukho Nov 1 8000 8, 2026
d5204f6
fix(browser): make the wasm32 browser library clippy-clean and lint i…
adityamukho Nov 18, 2026
55dca5e
ci(browser): run the BrowserDb tests in Firefox, Chrome and Safari on…
adityamukho Nov 18, 2026
cbd56af
release: v2.0.12 (#907)
adityamukho Nov 18, 2026
8ef9d46
ci(release): build aarch64-apple-darwin on macos-15 (#908)
adityamukho Nov 18, 2026
b2ad8c2
ci(bench): add JVM and WASI binding nightly lanes to the shared workf…
adityamukho Nov 19, 2026
d54711c
Merge pull request #918 from project-minigraf/fix/pid-ns-helper-looku…
adityamukho Nov 26, 2026
6335f26
Merge pull request #915 from project-minigraf/bot/fuzz-corpus-main
github-actions[bot] Nov 26, 2026
1ace3bd
docs(readme): fix the Maven coordinate and temporal_reasoning link (#…
adityamukho Nov 30, 2026
ea6604d
Merge main into v3 before the 3.0.0-alpha (#930)
adityamukho Nov 30, 2026
b42a84b
Merge main into v3 (#930): pick up the #934 README fix on main
adityamukho Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ On `v3`, ordinary sum/sum-distinct skip nonnumbers and min/max compare all non-n

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`.

**v2.0.5 released** (2026-10-11) — short-file open refused with STG-045 (#506), commit after a torn WAL entry no longer lost, WAL-007 (#513); backported rule-query `max_results` (#528), all-checkpointed WAL removal (#457) and `usize::MAX` close-time save (#476); weekly soak test (#392), real coverage gates (#396). **v2.0.4** (2026-10-08) — `BrowserDb` IndexedDB flush returns an error for an unreadable dirty page (#470); golden-file v7 corpus (#391) and SIGKILL committed-data crash test (#384). **v2.0.3** (2026-10-06) — data-integrity patch under the support policy: indexed queries with >65,535 uncheckpointed facts (#445), tx counter rewound on reopen next to an already-checkpointed WAL (#447). **v2.0.2** (2026-09-27) — last planned v2.x feature/fix release: query fixes (#297, #405, #407, #410), directory fsync (#389), point-query/attribute-scan/checkpoint perf mitigations (#323, #381, #315), CI policy checks (#395), support policy and tiers (#397, #399, #400). **v2.0.1** (2026-09-25) fixed index rebuild on open (#370). **v2.0.0** introduced kernel file locking (#317, #304), structured runtime error codes (#277), `OpenOptions` `#[non_exhaustive]`, and an MSRV of Rust 1.89. See `CHANGELOG.md` for the full rationale and release history.
**v2.0.12 released** (2026-11-18) — `BrowserDb` IndexedDB flushes are atomic and ordered, abort-only failures reject, and a failed handle refuses later durable work with STG-046; STG-048 names the failed IndexedDB write and DOM exception (#894). Format v7 and the public API are unchanged. **v2.0.11** (2026-10-26) — expression `=` / `!=` equates a keyword with a ref to its entity (#744), float-literal rule calls return `-0.0` rows in every run (#750), and `checkpoint` inside a `WriteTransaction` returns `INT-001` instead of deadlocking (#734). **v2.0.10 released** (2026-10-23) — WAL entries of more than 1,000,000 facts replay (#686), float constants match equal floats only (#706), prepared queries use the database's rule limits (#679); Kani proofs of `encode_value` backported (#627). **v2.0.9** (2026-10-21) — a pseudo-attribute in a rule body reads the stored fact (#661), a fact of more than four elements is rejected with PRS-108 (#649), `BrowserDb` rejections carry their error code (#673); every binding package is consumer-tested before and after publishing. **v2.0.8** (2026-10-20) — query data-integrity patch: `:db/valid-at` in `not-join` bodies and rule definitions (#615, #617), `or` branches with outer-variable expressions, `or`-bound expression variables and keyword/entity joins (#620, #625, #637), rules calling or recursing through a `not`/`or` rule (#628, #633). **v2.0.7** (2026-10-16) — prepared queries keep a literal `:as-of`/`:valid-at` (#603), rule calls with a literal argument return every row (#608), an `or` sharing no variable returns its cross product (#610). **v2.0.6** (2026-10-14) — concurrent-query dat 8000 a-integrity patch: queries see whole transactions (#554), one state per query (#555), no half-written checkpoint reads (#558). **v2.0.5 released** (2026-10-11) — short-file open refused with STG-045 (#506), commit after a torn WAL entry no longer lost, WAL-007 (#513); backported rule-query `max_results` (#528), all-checkpointed WAL removal (#457) and `usize::MAX` close-time save (#476); weekly soak test (#392), real coverage gates (#396). **v2.0.4** (2026-10-08) — `BrowserDb` IndexedDB flush returns an error for an unreadable dirty page (#470); golden-file v7 corpus (#391) and SIGKILL committed-data crash test (#384). **v2.0.3** (2026-10-06) — data-integrity patch under the support policy: indexed queries with >65,535 uncheckpointed facts (#445), tx counter rewound on reopen next to an already-checkpointed WAL (#447). **v2.0.2** (2026-09-27) — last planned v2.x feature/fix release: query fixes (#297, #405, #407, #410), directory fsync (#389), point-query/attribute-scan/checkpoint perf mitigations (#323, #381, #315), CI policy checks (#395), support policy and tiers (#397, #399, #400). **v2.0.1** (2026-09-25) fixed index rebuild on open (#370). **v2.0.0** introduced kernel file locking (#317, #304), structured runtime error codes (#277), `OpenOptions` `#[non_exhaustive]`, and an MSRV of Rust 1.89. See `CHANGELOG.md` for the full rationale and release history.

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.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ It runs after aggregates and windows, before ordering and pagination (#493).

## Demo

See a working implementation of **temporal reasoning** with Minigraf at [github.com/adityamukho/temporal_reasoning](https://github.com/adityamukho/temporal_reasoning) — an AI agent that uses Minigraf's bi-temporal model to store, correct, and audit beliefs.
See a working implementation of **temporal reasoning** with Minigraf at [github.com/project-minigraf/temporal_reasoning](https://github.com/project-minigraf/temporal_reasoning) — an AI agent that uses Minigraf's bi-temporal model to store, correct, and audit beliefs.

The **[time travel visualizer](https://project-minigraf.github.io/minigraf-visualizer/)** runs Minigraf in your browser and draws its history. Step through transactions, move the valid-time cursor, and see each fact version on a bitemporal map. It opens `.graph` files too. For example, see [a salary that was recorded wrong and then corrected](https://project-minigraf.github.io/minigraf-visualizer/#sample=careers&tx=7&e=:alice&view=map).

Expand Down Expand Up @@ -296,7 +296,7 @@ Published as [`@minigraf/browser`](https://www.npmjs.com/package/@minigraf/brows

### For Python / Node.js / Java / C

Language bindings ship as `minigraf` on PyPI, `minigraf` on npm (Node.js native addon), `io.github.adityamukho:minigraf-jvm` on Maven Central, and a C header + prebuilt shared library on GitHub Releases. See the [Use Cases](https://project-minigraf.github.io/minigraf-docs/latest/use-cases/).
Language bindings ship as `minigraf` on PyPI, `minigraf` on npm (Node.js native addon), `io.github.project-minigraf:minigraf-jvm` on Maven Central, and a C header + prebuilt shared library on GitHub Releases. See the [Use Cases](https://project-minigraf.github.io/minigraf-docs/latest/use-cases/).

## Scope

Expand Down
89 changes: 88 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,93 @@ Completed releases and their implementation details live in the [CHANGELOG](CHAN

---

## v2.0.12 — BrowserDb Flush Patch (released 2026-11-18)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- `BrowserDb` IndexedDB flushes are atomic, settle on abort and, after a failure, ref 8000 use later durable work with `STG-046`; `STG-048` names the failed write (#894)
- Browser library linted on `wasm32-unknown-unknown` in CI; `BrowserDb` tests run in Firefox, Chrome and Safari (#905, #906)

---

## v2.0.11 — Query and Write-Transaction Patch (released 2026-10-26)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- An expression's `=` and `!=` equate a keyword with a ref to the entity it names, as patterns and joins do (#744)
- A rule call with `0.0` returns `-0.0` rows in every run; equal zero floats hash alike (#750)
- `checkpoint` inside a `WriteTransaction` returns `INT-001` instead of deadlocking; `prepare` and `PreparedQuery::execute` enforce the same guard (#734)

---

## v2.0.10 — WAL and Float-Constant Data-Integrity Patch (released 2026-10-23)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- WAL entries of more than 1,000,000 facts replay, so the transaction and every later one survive a crash or close without a checkpoint (#686)
- A float constant in a pattern matches equal floats only, not every float within `f64::EPSILON` (#706)
- Prepared queries use the database's `max_derived_facts` and `max_results` (#679)
- Kani proofs of the value encoding, backported from v3.0.0 (#627)

---

## v2.0.9 — Rule and Parser Data-Integrity Patch (released 2026-10-21)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- A pseudo-attribute in a rule body reads the stored fact's valid time and tx metadata (#661)
- A fact of more than four elements is rejected with `PRS-108` instead of being stored truncated (#649)
- `BrowserDb` rejections carry their error code (#673)
- Every binding package is installed and used before it is published and again after; the check fixed packaging bugs in the Node, Android, Swift, C, Java and WASM 2.0.8 packages

---

## v2.0.8 — Query Data-Integrity Patch (released 2026-10-20)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- A `:db/valid-at` pattern in a `not-join` body (#615) or a rule definition (#617) binds the query's valid time
- An `or` / `or-join` branch whose expression reads an outer variable matches (#620)
- An expression reading a variable only an `or` binds keeps its rows (#625)
- An `or` / `or-join` branch meets a keyword value as the entity it names (#637)
- A rule calling a rule with `not`, `not-join`, `or` or `or-join` gets all its rows (#628), and recursion through such a rule returns all its rows (#633)

---

## v2.0.7 — Query Patch (released 2026-10-16)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- A prepared query keeps a literal `:as-of`, `:valid-at` or `:any-valid-time` (#603)
- Rule queries with a literal argument return every row (#608)
- An `or` that shares no variable with the earlier clauses returns its cross product (#610)

---

## v2.0.6 — Concurrent-Query Patch (released 2026-10-14)

File format stays v7 and the public API does not change. Details are in the [CHANGELOG](CHANGELOG.md).

Shipped:

- A query on another thread sees each committed transaction whole (#554)
- All patterns of one query read the same state of the database (#555)
- A query during a checkpoint no longer misses committed facts or sees part of a transaction (#558)

---

## v2.0.5 — Data-Integrity Patch (released 2026-10-11)

File format stays v7. Two new error codes (`STG-045`, `WAL-007`); no other API changes. Details are in the [CHANGELOG](CHANGELOG.md).
Expand Down Expand Up @@ -246,4 +333,4 @@ See [GitHub Issues](https://github.com/project-minigraf/minigraf/issues) for spe

---

**Last updated**: October 2026 — v2.0.5, a data-integrity 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 — 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.
Loading
Loading
0