8000 Clarify MiniGraf changelog wording by adityamukho · Pull Request #997 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
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
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Known issues for v2.x are in [#421](https://github.com/project-minigraf/minigraf

- **Empty or inverted valid-time windows are rejected** (#436). A `transact` whose effective window for any fact ends at or before it starts fails with the new `API-019`, writes nothing and takes no transaction number. The effective window is the one after defaults, so `(transact {:valid-to "2020-01-01"} ...)` is rejected too: its `:valid-from` is the transaction time. This applies to `execute`, each `WriteTransaction::execute` statement and, with the commit time, `WriteTransaction::commit`, and the browser. Before, such a fact was stored, never matched `:valid-at`, and still showed up under `:any-valid-time`. Files that already hold such facts open and read as before. Supply an effective `valid_to` greater than `valid_from` and handle API-019 without retrying the same invalid window.

- **In a `WriteTransaction`, the last statement that writes a fact decides it** (#477). When several `execute` calls in one `WriteTransaction` write the same `(entity, attribute, value)`, in any mix of `transact` and `retract`, the commit keeps only the records from the last of them. Before, reads inside the transaction already followed statement order, but the commit stamped every record with one transaction number and a retraction always won: a fact retracted and then asserted again read as live before `commit()` and was gone after it. Two windows of one fact in separate statements, which were `API-011`, now commit the later window. `API-011` is limited to one `transact`; `tx.execute()` raises it and stages nothing, and the transaction stays usable. `LogWriter` keeps the same rules (see the log writer entry). Order statements so the intended final assertion, retraction or window is last; use separate transactions when each intermediate version must remain in history.
- **A `WriteTransaction` commits the last write to each fact** (#477). When several `execute` calls in one `WriteTransaction` write the same `(entity, attribute, value)`, in any mix of `transact` and `retract`, the commit keeps only the records from the last of them. Before, reads inside the transaction already followed statement order, but the commit stamped every record with one transaction number and a retraction always won: a fact retracted and then asserted again read as live before `commit()` and was gone after it. Two windows of one fact in separate statements, which were `API-011`, now commit the later window. `API-011` is limited to one `transact`; `tx.execute()` raises it and stages nothing, and the transaction stays usable. `LogWriter` keeps the same rules (see the log writer entry). Order statements so the intended final assertion, retraction or window is last; use separate transactions when each intermediate version must remain in history.

- **A `:find` variable that nothing binds is an error** (#406). A query whose `:find` names a variable that no `:where` clause binds now fails at parse time with the new `PRS-080`, naming the variable, from `execute()`, `query()` and `prepare()`. Before, it returned no results, so a typo in `:find` looked the same as "no matching data". The same check covers a window function's argument, `:partition-by` and `:order-by` variables. A variable counts as bound when it appears in a pattern, a rule call, an expression binding, an `or-join` join vector or every branch of an `or`; one that appears only inside `not`/`not-join`, or a `?_` wildcard, does not. Bind every projected and window variable in the permitted scope, or remove it from the query; handle PRS-080 as a query error.

Expand Down Expand Up @@ -265,7 +265,7 @@ Known issues for v2.x are in [#421](https://github.com/project-minigraf/minigraf

- **Unstable sorts for unique query metadata** (#795). Prepared-query slot names, an `or`'s branch variables and a subplan's imported variables sort with `sort_unstable`: their keys are unique, or, for a join variable named twice, the tied entries are identical, so order and plans are unchanged. Release builds shrink by 1,008 bytes (native CLI), 1,752 bytes (WASI) and 1,886 bytes (browser `--lib`); prepare and planning time is unchanged within noise. No API, dependency or file-format change.

- **Release certified aggregate groups** (#781). Ordered aggregation now includes ordinary `sum`/`avg`, fixed-scalar `min`/`max`, and Integer/nil `sum-distinct`. Effective grouping tuples may include hidden `:with` keys, constants and repetitions when they reduce to one ascending Integer/Boolean dimension; existing single numeric/Boolean keys remain supported. Arguments are certified from constants, metadata or raw attribute history using the pinned reader, with pending/staged data and unsupported origins retaining full-input evaluation. Every `:with` Sort is retained. Limits count emitted groups after min/max drops; a retained Sort still drains its input. Completed groups are released, but one growing distinct group remains linear. Small selective grouped queries pay proof startup cost. Common result-buffer memory failures can precede later unread source failures, as on the existing ordered-count path; registered finalizers retain full-drain behavior. No aggregate semantics, syntax, public API, dependency or storage format changes.
- **Emit completed groups during ordered aggregation** (#781). The aggregation step can emit each completed group once the pinned input proves the grouping order. Ordered aggregation now includes ordinary `sum`/`avg`, fixed-scalar `min`/`max`, and Integer/nil `sum-distinct`. The full grouping key can include hidden `:with` keys, constants, and repeated keys if it reduces to one ascending Integer or Boolean dimension. Existing single numeric and Boolean keys still work. The pinned reader checks the aggregate arguments using constants, metadata, or raw attribute history. Pending or staged data and unsupported argument sources still require reading all input. Every `:with` Sort remains and still reads all of its input. Limits count emitted groups after min/max drops; memory for one growing distinct group still grows linearly. Small selective grouped queries pay proof startup cost. Common result-buffer memory failures can precede later unread source failures, as on the existing ordered-count path; registered finalizers retain full-drain behavior. No aggregate semantics, syntax, public API, dependency or storage format changes.

- **Resolve expression keyword literals once per operator** (#774). `=` and `!=` reuse a literal keyword's entity UUID across input rows, including nested expressions, rule bodies and prepared slots. The cache contains only literals from that expression and is discarded with the operator; dynamic operands retain the existing comparison semantics. No API, dependency or file-format change. See the [measurements](docs/benchmarks/774-expression-keywords.md).

Expand Down Expand Up @@ -359,7 +359,7 @@ Known issues for v2.x are in [#421](https://github.com/project-minigraf/minigraf

- **Manual shape sweep** (#841): [native shape and retention experiments](docs/benchmarks/841-shape-sweeps/README.md) cover sort/window, set and UUID cases, matched recursive controls and sustained pins/FactLogs. The report distinguishes query timings from process RSS and query-meter observations, and retains input rejections, capped attempts and attribution limits. No production, public API or nightly-route change.

- **Regression history and reporting verification** (#840): [durable API/run evidence](docs/benchmarks/840-regression/completion.md) establishes numeric comparisons for all 427 native and 26 binding IDs with at least three independent v3 runs each. Separate main/v3 fixes #853/#854 preserve v3 history across measured main advances. Actual scheduled routes, 16 isolated live notification scenarios, four delivered messages and complete synthetic-resource cleanup are verified. This adds no database runtime behavior or Rust tests; the JVM/WASI lanes and mobile qualification are recorded under #858.
- **Regression history and reporting verification** (#840): The [audit](docs/benchmarks/840-regression/completion.md) verified numeric comparison baselines for all 427 native and 26 binding benchmark IDs, supported by at least three independent v3 workflow runs per ID. Fixes #853/#854 preserve v3 history when the measured main revision changes. The audit also verified scheduled workflow routing, 16 isolated live notification scenarios, four delivered messages, and removal of all synthetic test resources. There are no database runtime changes or new Rust tests. The JVM and WASI workflow jobs and mobile qualification are tracked under #858.

- **Manual migration sweep** (#838): [frozen fixtures, timings and correctness evidence](docs/benchmarks/838-migration/README.md) for native v7-to-v8 migration through 200k facts and Chromium/Firefox/WebKit through 20k facts. Includes nonmigrating native read-only open, v8 reopen and bounded post-migration cursor churn; larger browser cases and sustained pin scaling remain excluded. No production or nightly-route change.

Expand Down Expand Up @@ -1382,7 +1382,7 @@ deferred to post-1.0 backlog).
## v0.15.0 — Temporal Metadata Bindings (2026-04-01)

### Added
- **Temporal pseudo-attributes**: `:db/valid-from`, `:db/valid-to`, `:db/tx-count`, `:db/tx-id`, and `:db/valid-at` are now first-class bindable values in Datalog `:where` patterns
- **Temporal pseudo-attributes**: `:db/valid-from`, `:db/valid-to`, `:db/tx-count`, `:db/tx-id`, and `:db/valid-at` can be used in the attribute position of Datalog `:where` patterns to bind their values to variables.
- `PseudoAttr` enum and `AttributeSpec` wrapper type in `types.rs` — clean type-safe representation for real vs. pseudo attributes in `Pattern`
- `parse_query_pattern` in `parser.rs` — detects `:db/*` keywords in the attribute position; rejects them in entity/value positions (parse error)
- `PatternMatcher::from_slice_with_valid_at` constructor — passes query-level `valid_at` into the matcher
Expand Down
Loading
0