Repository navigation
D-QRY-2: active / static lists and membership history as mask programs - #20
Merged
Merged
Conversation
list::refresh re-evaluates an active list's predicate only where records changed: (prev ∧ ¬changed) ∨ (predicate ∧ changed). Deletes need no special case, the compiled predicate carries live. Static lists: add, remove, members (∧ live). History: added / removed between two stored versions. Every operation is a Quack filter over planes, run by mask-risc. Tests: 40 rounds of updates, inserts and deletes keep the refreshed list equal to a full recomputation and a plain loop; a static list equals a plain set; refresh keeps stored bits outside the changed rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPcakjk7ioQsnasmNDtc5z
The disable run showed it changed nothing: members() conjoins live on every read. It would matter only for reused ordinals, which the store rules out; the invariant is now written on add(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPcakjk7ioQsnasmNDtc5z
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPcakjk7ioQsnasmNDtc5z
AdaWorldAPI
marked this pull request as ready for review
October 10, 2026 16:35
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
AdaWorldAPI
pushed a commit
that referenced
this pull request
Oct 10, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPcakjk7ioQsnasmNDtc5z
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
hubspo-query::listimplements HubSpot lists (H-ADR-5). Each operation returns a Quack filter over planes the caller names, and mask-risc runs it like any other query. No row ids are materialised and no Rust loop walks the population.refresh(predicate, prev, changed)=(prev ∧ ¬changed) ∨ (predicate ∧ changed). The predicate is re-read only where records changed. Deletes need no special case, because the compiled predicate already carrieslive.add,remove, andmembers, which appliesliveon every read.added/removedbetween two stored versions of a list.The invariant this relies on: ordinals are never reused. Records are appended and the base is never rewritten (P-SPARSE-1). A store that reused ordinals would first have to clear a deleted record's bit in every static list. This is written on
add()and on the board.Storing the list masks themselves (which plane, which Lance version) lands with D-STO-1.
Evidence
tests/list_oracle.rs:added/removedequal plain set differences. More than 100 records join and more than 100 leave over the run.Disable runs, each with an asserted patch anchor:
memberswithoutliveaddedcomputesremovedremovekeeps rowsA
livegate insideaddstayed green when disabled, so I removed it:membersalready applieslive.Workspace
fmt,clippy --all-targets --no-deps -D warningsandtestare green. The branch was rebased onmainafter #19 merged. No other HubSPO-rs PR is open.🤖 Generated with Claude Code
https://claude.ai/code/session_01PPcakjk7ioQsnasmNDtc5z
Generated by Claude Code