Skip to content

Share the ranking skeleton of the three SCIP maps; pin their output (cleanup S5) - #233

Merged
nevermemo merged 4 commits into
mainfrom
refactor/cleanup-s5-scip-query
Oct 24, 2026
Merged

nevermemo merged 4 commits into
mainfrom
refactor/cleanup-s5-scip-query

Conversation

@nevermemo

Copy link
Copy Markdown
Owner

Cleanup S5 pick 2, behaviour-preserving.

  • ImpactMap, ImplementsMap and TestedByMap repeated the same query skeleton: per-seed edges, the drop count, the global sort, dedupe by destination, truncation to the limit, the Partial note, the cost, and hit and evidence construction. One function in lci-maps/src/edge.rs, scip_ranked_hits, now holds it. Each map passes its descriptor, cap, note noun, edge source and evidence detail, and the agent-facing note and detail strings are passed in verbatim.
  • New pins per map, green before the third map moved: the full Partial note, rank, score and first evidence (via, edge, label, detail). A two-seed query pins the dedupe survivor, with the winning seed listed second so the global sort is exercised, plus the exact hit order and the limit-1 truncation.

Not changed here, for a later output-change slice: the Partial note quotes the configured cap while the applied cap is min(cap, 256).

Evidence: cargo test -p lci-maps --lib 571 passed, 3 ignored; traverse_matrix 18/18 (goldens untouched), recipes:: 6/6, run_records:: 5/5 (map-equivalence), navigation:: 144/144; clippy --workspace --all-targets -D warnings and fmt clean. Two review passes checked byte-identity against the old bodies.

🤖 Generated with Claude Code

nevermemo and others added 4 commits October 24, 2026 02:48
ImpactMap::query and ImplementsMap::query repeated the same skeleton:
per-seed edges, the drop count, the global cap, dedupe by destination,
truncation to the request limit, the Partial note, the cost, and the
hit and evidence construction. One function next to cap_edges in
edge.rs, ranked_hits, now holds it; each map passes its descriptor,
cap, note noun, edge source and evidence detail. The agent-facing note
and detail strings are passed in verbatim.

Evidence: cargo test -p lci-maps --lib scip_ 65 passed, 1 ignored,
before and after; traverse_matrix 18/18 (goldens byte-identical);
clippy --workspace --all-targets -D warnings clean; fmt clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestedByMap::query was a third copy of the ranking skeleton (cap
EXPAND_LIMIT, noun "test units", detail "tests the seed at"). It now
calls the shared function, renamed scip_ranked_hits since all three
callers are SCIP maps; its doc says the cap is only reported.

New pins per map, written and green before the move: the full Partial
note, rank, score and the first evidence (via, edge, label, detail),
plus a two-seed query that pins which edge survives the dedupe of a
shared destination and that limit 1 truncates to the first hit.

Evidence: cargo test -p lci-maps --lib 571 passed, 3 ignored, before
and after the move; traverse_matrix 18/18; clippy --workspace
--all-targets -D warnings clean; fmt clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The winning seed is now listed second, so the dedupe tests fail if the
global re-sort by site goes; the limit-10 hit order and the limit-1 hit
are literals instead of self-comparisons.

Evidence: cargo test -p lci-maps --lib 571 passed, 3 ignored; fmt and
clippy -p lci-maps --all-targets -D warnings clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nevermemo
nevermemo merged commit a60923c into main Oct 24, 2026
8 checks passed
@nevermemo
nevermemo deleted the refactor/cleanup-s5-scip-query branch October 24, 2026 00:28
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