8000 docs(policy): v2.x gets all bug fixes; every binding releases in lock-step (#943, #945) by adityamukho · Pull Request #956 · 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
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
14 changes: 8 additions & 6 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## Supported Versions

The latest minor release of the current major line gets all fixes. After the
next major version ships, the previous major line gets security and
data-integrity fixes for 12 months. The full policy is in
[PHILOSOPHY.md](../PHILOSOPHY.md#support-policy).
The latest minor release of the current major line gets all fixes. v2.x gets
all bug fixes, but no new features, until 12 months after v3.0.0 (not a 3.0.0
prerelease) ships. A 3.0.0 prerelease gets fixes in the next prerelease only.
The full policy is in [PHILOSOPHY.md](../PHILOSOPHY.md#support-policy).

| Version | Supported |
| ------- | --------- |
| 2.x (latest release) | ✅ Until 12 months after v3.0.0 ships |
| 3.0.0 prereleases (`-alpha`, `-beta`, `-rcN`) | ✅ Fixes go into the next prerelease; no backports to an earlier prerelease |
| 2.x (latest release) | ✅ All bug fixes until 12 months after v3.0.0 ships |
| 1.x | ❌ |
| 0.x | ❌ |

Expand Down Expand Up @@ -39,7 +40,8 @@ This is a solo-maintained project. I will make a best-effort response:
- **Assessment**: within 14 days
- **Fix or mitigation**: timeline depends on severity and complexity

If a fix is warranted, it will be released as a patch version and a
If a fix is warranted, it will be released as a patch version of each supported
line (or in the next 3.0.0 prerelease), and a
[GitHub Security Advisory](https://github.com/project-minigraf/minigraf/security/advisories)
will be published.

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Documentation

- Update the support policy: v2.x gets all bug fixes, but no new features, until 12 months after v3.0.0 final ships (not a prerelease); every binding, including Tier 2, publishes every core release, including prereleases, in lock-step, and a binding that cannot publish blocks the release (#943, #945).

## v2.0.12 — 2026-11-18

Patch release on the v2.x line under the [support policy](PHILOSOPHY.md#support-policy): a `BrowserDb` (IndexedDB) durability fix, for a failed flush that left the store with a meta referencing missing pages and later writes reporting success without persisting (#894). File format is unchanged (v7). No API changes; two error codes, `STG-046` and `STG-048`, are registered. Upgrading is recommended for every v2.x user who runs `BrowserDb` against IndexedDB. Native v2.x behavior is unchanged.
Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ Ordinary aggregates on v2 are `count`, `count-distinct`, `sum`, `sum-distinct`,
**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 data-integrity patch: queries see whole transactions (#554), one state per query (#555), no half-written checkpoint reads (#558). **v2.0.5** (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):
- **v2.x** (`main`, format v7) now gets only data-integrity and security fixes as patch releases (v2.0.3 is the first); v2.0.2 was the last planned v2.x release.
- **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, query profiler #185, set membership predicates #316 and UniFFI `PreparedQuery`/UDF registration #181/#180; [v3.0.0 milestone](https://github.com/project-minigraf/minigraf/milestone/1)) is developed on the long-lived `v3` branch. 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.
- **v3.next** (the release after v3.0.0) holds new features (lag/lead #182, sliding row frames #183, rule persistence #241).
- 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 stay open until the fix is in a published release (CONTRIBUTING.md).
- Support policy and tiers: PHILOSOPHY.md §7 and §10. v2.x gets data-integrity and security fixes for 12 months after v3.0.0. Tier 1 = Rust + Python; other bindings are Tier 2.
- 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; other bindings are Tier 2. Every binding publishes every core release, including prereleases; a binding that cannot publish blocks the release.

## Testing Conventions

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Releases are managed by the project maintainer. The process is documented in iss
3. `cargo check --workspace` passes cleanly
4. All affected docs synced (see `CLAUDE.md` — "Keep documentation synchronized")
5. Tag pushed — CI publishes to crates.io, PyPI, npm, and Maven Central automatically
6. Tier 1 bindings (Python) released alongside the core release; Tier 2 bindings follow on a best-effort schedule (see [support tiers](PHILOSOPHY.md#support-tiers))
6. Every binding, including Tier 2, publishes every core release in lock-step, including prereleases; a binding that cannot publish blocks the release until it is fixed or successfully re-dispatched (see [support tiers](PHILOSOPHY.md#support-tiers))
7. Known-issues issue updated, and `data-integrity`/`corruption`/`durability` issues fixed by this release closed with a link to it (see above)

## Code of Conduct
Expand Down
11 changes: 6 additions & 5 deletions PHILOSOPHY.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,22 +230,23 @@ This section is a policy, not a promise of a frozen format. Minigraf has changed

| Release line | Gets | For how long |
|---|---|---|
| Latest minor of the current major (today: 2.0.x) | All fixes: bugs, data integrity, security | Until the next release |
| Previous major, after the next major's `.0` release | Data-integrity and security fixes only, as patch releases | 12 months after the next major's `.0` release |
| Latest minor of the current stable major (2.0.x until v3.0.0 final ships) | All fixes: bugs, data integrity, security | Until the next release |
| v2.x (specific policy) | All bug fixes, including data integrity and security, as patch releases; no new features | Until 12 months after v3.0.0 final ships |
| Previous major, except v2.x, after the next major's `.0` final release | Data-integrity and security fixes only, as patch releases | 12 months after the next major's `.0` final release |
| Older lines | Nothing | — |

When v3.0.0 ships, v2.x gets data-integrity and security fixes for 12 months after that date. A data-integrity fix that needs a format change cannot ship on the older line; in that case the older line gets a documented workaround and the issue stays listed as a known issue until the line leaves support. #371 is the current example.
v2.x gets all bug fixes, including data-integrity and security fixes, from now until 12 months after v3.0.0 final ships. No new features land on v2.x. The 12-month clock starts at v3.0.0 final, not a prerelease. A data-integrity fix that needs a format change cannot ship on the older line; in that case the older line gets a documented workaround and the issue stays listed as a known issue until the line leaves support. #371 is the current example.

Data-integrity bugs stay visible until they are fixed in a published release; see the known-issues process in [CONTRIBUTING.md](CONTRIBUTING.md#known-issues-and-data-integrity-bugs).

#### Support tiers

"Supported" depends on which binding and which platform. Tier 1 is what the project tests and releases together; Tier 2 is built and smoke-tested but released on a best-effort schedule.
"Supported" depends on which binding and which platform. Every binding, including Tier 2, releases in lock-step with core and publishes every core release, including prereleases. A binding that cannot publish blocks the release until it is fixed or successfully re-dispatched. Tiers differ in testing and support: Tier 1 is fully tested; Tier 2 is experimental, built and smoke-tested in its own repo.

| Tier | Bindings | What it means |
|---|---|---|
| **Tier 1** | Rust crate (`minigraf`), Python (`minigraf` on PyPI) | Full test suite in CI. Released at the same time as every core release. Data-integrity fixes land here first. |
| **Tier 2 (experimental)** | Node.js, browser WASM, WASI, Java/JVM, Android, Swift (iOS/macOS), C | Built and smoke-tested in its own repo. Released on a best-effort schedule, possibly after the core release. |
| **Tier 2 (experimental)** | Node.js, browser WASM, WASI, Java/JVM, Android, Swift (iOS/macOS), C | Built and smoke-tested in its own repo. Released at the same time as every core release, including prereleases. |

A binding moves to Tier 1 when real users need it: issues from outside users, or known dependents. No binding is removed by being Tier 2.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Bugs present in the current release, with affected versions, workarounds and fix

- Two values of the same attribute for one entity written in a single `transact` (or retracted in a single `retract`) can read back as one value ([#371](https://github.com/project-minigraf/minigraf/issues/371)). Write or retract each value of a multi-valued attribute in its own call. The fix changes the file format and ships in v3.0.0.

v2.x gets data-integrity and security fixes for 12 months after v3.0.0 ships. See the [support policy](PHILOSOPHY.md#support-policy).
v2.x gets all bug fixes, including data-integrity and security fixes, but no new features, until 12 months after v3.0.0 final ships. Prereleases do not start that clock. See the [support policy](PHILOSOPHY.md#support-policy).

## Quick Start

Expand Down Expand Up @@ -151,7 +151,7 @@ No other database offers this combination:
| iOS / macOS | 2 (experimental) | `.xcframework` via Swift Package Manager ([minigraf-swift](https://github.com/project-minigraf/minigraf-swift)) | see [docs](https://project-minigraf.github.io/minigraf-docs/latest/use-cases/) |
| C / FFI | 2 (experimental) | header + tarball on [minigraf-c releases](https://github.com/project-minigraf/minigraf-c/releases) | see [docs](https://project-minigraf.github.io/minigraf-docs/latest/use-cases/) |

**Tier 1** bindings are fully tested and released at the same time as every core release. **Tier 2** bindings are built and smoke-tested, released on a best-effort schedule, and experimental. A binding moves to Tier 1 when real users need it. Tier 1 operating systems and filesystems are Linux (ext4, xfs), macOS (APFS) and Windows (NTFS) on local disk; NFSv4 is supported with caveats, and NFSv3 `nolock` is unsupported for multiple writers. Details: [support tiers](PHILOSOPHY.md#support-tiers).
Every binding, including Tier 2, releases in lock-step with core and publishes every core release, including prereleases. A binding that cannot publish blocks the release. **Tier 1** bindings are fully tested. **Tier 2** bindings are experimental, built and smoke-tested in their own repos. A binding moves to Tier 1 when real users need it. Tier 1 operating systems and filesystems are Linux (ext4, xfs), macOS (APFS) and Windows (NTFS) on local disk; NFSv4 is supported with caveats, and NFSv3 `nolock` is unsupported for multiple writers. Details: [support tiers](PHILOSOPHY.md#support-tiers).

**Embedded graph memory for agents, mobile, and the browser — SQLite's simplicity + Datomic's temporal model.**

Expand Down
6 changes: 3 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Shipped:
- Indexed queries return correct results with more than 65,535 uncheckpointed facts (#445)
- The transaction counter no longer rewinds when reopening next to an already-checkpointed WAL (#447)

Further v2.x releases are data-integrity and security patches only.
Further v2.x releases carry 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).

---

Expand All @@ -152,7 +152,7 @@ Shipped:

**Known issue on all v2.x releases:** same-transaction multi-valued facts read back as one value (#371, #287). The fix needs format v8 and ships in v3.0.0. Workaround: write or retract each value of a multi-valued attribute in its own `transact`/`retract` call. All v2.x known issues are listed in the pinned issue #421.

**After v3.0.0 ships,** v2.x gets data-integrity and security fixes for 12 months ([support policy](PHILOSOPHY.md#support-policy)).
v2.x gets all bug fixes, including data-integrity and security fixes, but no new features, until 12 months after **v3.0.0 final ships**; prereleases do not start that clock ([support policy](PHILOSOPHY.md#support-policy)).

---

Expand Down Expand Up @@ -285,7 +285,7 @@ When evaluating features, ask:

## Current Focus

- v2.x maintenance on `main`: data-integrity and security fixes only
- 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)
- Ecosystem work tracked in [`minigraf-examples`](https://github.com/project-minigraf/minigraf-examples)
Expand Down
Loading
0