Skip to content

tests: pin the adapter lookup-index populations with a read-only probe - #711

Closed
luisleo526 wants to merge 2 commits into
mainfrom
tests/adapter-lookup-index-counts
Closed

luisleo526 wants to merge 2 commits into
mainfrom
tests/adapter-lookup-index-counts

Conversation

@luisleo526

Copy link
Copy Markdown
Collaborator

Adds a read-only probe and a test that pin the populations of the adapter's lookup indexes.

  • src/source/pine_adapter_probe.hpp declares a read-only reader; pine_adapter.cpp defines it (size() and const iteration only, no allocation or mutation). The header is not installed and the library is built with hidden visibility, so the reader is not reachable from a run.
  • tests/test_adapter_lookup_index_counts.cpp drives the adapter, keeps an independent command ledger as its model, and compares the model with the probe at each read point (with nonzero-population checks and no literal expectations).
  • No behaviour change: 912 insertions, 0 deletions.

Draft: it rides the next engine merge train, which rebases it on main and runs the full checks and the parity sweep.

🤖 Generated with Claude Code

luisleo526 and others added 2 commits November 2, 2026 18:42
Add a read-only reader over the Pine adapter's lookup indexes
(probe_lookup_index, in a source-layer header that is not installed) and a
test that pins how many keys and ids the indexes hold for four streams:
cohort sides, unbound legs, legs by origin and immediate closes.

Every expected count is computed from the commands the test itself issues
and a named retention rule, for two input populations and several read
points, including a read after a later position cycle. The reader only
calls size() and iterates by const reference; the adapter change is the
include and the reader, nothing else.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Brings the branch up to date with main (87 files, mostly tests and CI). The
branch's own paths do not overlap with anything main changed except
tests/CMakeLists.txt, which this branch does not edit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@luisleo526

Copy link
Copy Markdown
Collaborator Author

Merged via #717 (squash 8d0f9e7), which carries this change. Closing; the branch is kept.

@luisleo526 luisleo526 closed this Nov 2, 2026
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