8000 feat: OpenOptions::allow_overrides gate (#869) by adityamukho · Pull Request #873 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

feat: OpenOptions::allow_overrides gate (#869) - #873

Merged
adityamukho merged 3 commits into
v3from
feat/869-allow-overrides
Nov 6, 2026
Merged

adityamukho merged 3 commits into
v3from
feat/869-allow-overrides

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Refs #869, #862

Implements the allow_overrides gate from the #862 spec (§1, §2), following docs/superpowers/plans/2026-11-06-869-allow-overrides.md (in this PR).

What changes

The default list allows every keyword that worked before, so no existing query changes.

Tests

  • tests/allow_overrides_test.rs (6): defaults, empty list at all four entry points, replace semantics, refused tx statement leaves tx usable, DEFAULTS read-back/chain/duplicates, file DB not persisted.
  • src/overrides.rs (2 unit): check order, pass cases. 1 doc test on OpenOptions::allow_overrides. 1 wasm_bindgen_test (BrowserDb defaults).
  • Bench machine: plain 2,050 passed / 21 ignored; test-hooks 2,085 / 24; 0 failures (+9 native tests).
  • cargo clippy --all-features -D warnings clean; wasm32 browser lib + unit tests build.

Size

--profile dist: 1,260,848 → 1,263,256 B (+2,408 B), 360 B under the 1,234 KiB gate.

Review

Codex (gpt-6-astra) was skipped: usage limit until 2026-11-11.

Docs site: project-minigraf/minigraf-docs PR to follow (merge after this one).

🤖 Generated with Claude Code

https://claude.ai/code/session_01H2a7QoYX6tc5G3sKVzvLjD

adityamukho and others added 3 commits November 6, 2026 12:24
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QoYX6tc5G3sKVzvLjD
Overridable (MaxDerivedFacts, MaxResults; DEFAULTS allows both) lists
the query keywords that may override a database's settings. A query
using an unlisted keyword is refused with API-025 after parsing, from
execute, query, prepare and WriteTransaction::execute. BrowserDb uses
DEFAULTS. Adds docs/CONFIGURATION.md.

Refs #869, #862

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QoYX6tc5G3sKVzvLjD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QoYX6tc5G3sKVzvLjD
@codecov
codecov Bot commented Nov 6, 2026
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.43750% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/overrides.rs 98.07% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@adityamukho
adityamukho merged commit b79ff1d into v3 Nov 6, 2026
23 checks passed
@adityamukho
adityamukho deleted the feat/869-allow-overrides branch November 6, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0