Skip to content

fix(query): bound document integrity verification - #654

Merged
ScriptedAlchemy merged 1 commit into
codex/tracedecay-total-redesign-planfrom
codex/index-document-integrity-seeks
Aug 22, 2026
Merged

fix(query): bound document integrity verification#654
ScriptedAlchemy merged 1 commit into
codex/tracedecay-total-redesign-planfrom
codex/index-document-integrity-seeks

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Outcome

Bounds lexical artifact document-integrity verification by the selected document instead of the full generation.

Changes

  • add covering document-leading indexes for term, exact, and n-gram posting verification
  • bump the durable artifact schema and digest domain to revision 4 so revision-3 artifacts rebuild instead of reopening without the required indexes
  • thread execution control through document-integrity hashing with checkpoints for every selected row
  • prove the three query plans use named indexes with no scan or temporary sort
  • prove one selected document reports zero SQLite full-scan and sort steps against 2,048 unrelated documents
  • prove cancellation during nested hashing leaves finalization progress unchanged

Verification

  • RED: query plan reported SCAN term_postings
  • RED: one selected document reported 2,047 FullscanStep operations
  • GREEN: three focused anti-vacuous tests, 1 passed each
  • GREEN: artifact builder tests, 6 passed
  • GREEN: tracedecay-query lib, 205 passed and 1 manual test ignored
  • GREEN: search quality suite, 42 passed and 1 manual benchmark ignored
  • GREEN: cargo clippy -p tracedecay-query --lib --tests --locked -- -D warnings
  • GREEN: cargo fmt --all -- --check
  • GREEN: git diff --check

Exact base: aa2cc26
Exact head: 5a8bf7c

@changeset-bot

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5a8bf7c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit 5904329 into codex/tracedecay-total-redesign-plan Aug 22, 2026
7 of 13 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a8bf7c295

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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