Repository navigation
impl(039): Bedrock rank, part b, the rules and Bedrock swap test - #424
Conversation
AI review (no-findings)Reviewing the four changed paths for bugs, security issues, and inconsistencies.
Loopback server ( Hardcoded credential strings: Fixture lookup Hit count assertion Selection assertions: Verified against the rules formula
No concrete defects found. {"head": "21278a209d5069dbe83d14f965940a6f8e422e21", "verdict": "no-findings", "findings": []}Subject: a46ccf7...21278a2, diff digest 15ae1be067b22aceb878d5cdad941efa36d7632d44db1cbe568b0fd8f875a502, 1 call(s). An AI comment is not an approval. |
21278a2 to
686b68c
Compare
AI review (no-findings)Reading through the four changed files:
No bugs, security issues, or governance inconsistencies found. {"head": "686b68cd20da574d1f42ffc77fe9019f6ac710f8", "verdict": "no-findings", "findings": []}Subject: f94b716...686b68c, diff digest 15ae1be067b22aceb878d5cdad941efa36d7632d44db1cbe568b0fd8f875a502, 1 call(s). An AI comment is not an approval. |
Amends approved spec 039's Verification section now that the Bedrock `rank` increment has landed. For the owner to ratify before this is armed. - The paragraph "Externally blocked until spec 030 is complete" is reworded: the offline Bedrock items owner decision A-49 moves to the Bedrock `rank` increment (section 5's `structured_output: none` row, the fixtures on both wires for the three modes, the swap test, 3.18 item 1) are delivered by #422 and #424 and declared. - The `verify:cli` block gains `cargo test -p rustev-bedrock --locked --test ranking --test rank_swap`. - The optional paid live Bedrock `rank` smoke (Decision 18) stays outside declared verification; no live call is part of it. Nothing else in the approved text changes. Derived shards refreshed. Verification (local): `cargo test -p rustev-bedrock --locked --test ranking --test rank_swap`, `spec-spine verify 039`, `make gate`, `scripts/check-authored-content.sh`, `spec-spine couple`.
Amends approved spec 039's Verification section now that the Bedrock `rank` increment has landed. For the owner to ratify before this is armed. - The paragraph "Externally blocked until spec 030 is complete" is reworded: the offline Bedrock items owner decision A-49 moves to the Bedrock `rank` increment (section 5's `structured_output: none` row, the fixtures on both wires for the three modes, the swap test, 3.18 item 1) are delivered by #422 and #424 and declared. - The `verify:cli` block gains `cargo test -p rustev-bedrock --locked --test ranking --test rank_swap`. - The optional paid live Bedrock `rank` smoke (Decision 18) stays outside declared verification; no live call is part of it. Nothing else in the approved text changes. Derived shards refreshed. Verification (local): `cargo test -p rustev-bedrock --locked --test ranking --test rank_swap`, `spec-spine verify 039`, `make gate`, `scripts/check-authored-content.sh`, `spec-spine couple`.
Amends approved spec 039's Verification section now that the Bedrock `rank` increment has landed. For the owner to ratify before this is armed. - The paragraph "Externally blocked until spec 030 is complete" is reworded: the offline Bedrock items owner decision A-49 moves to the Bedrock `rank` increment (section 5's `structured_output: none` row, the fixtures on both wires for the three modes, the swap test, 3.18 item 1) are delivered by #422 and #424 and declared. - The `verify:cli` block gains `cargo test -p rustev-bedrock --locked --test ranking --test rank_swap`. - The optional paid live Bedrock `rank` smoke (Decision 18) stays outside declared verification; no live call is part of it. Nothing else in the approved text changes. Derived shards refreshed. Verification (local): `cargo test -p rustev-bedrock --locked --test ranking --test rank_swap`, `spec-spine verify 039`, `make gate`, `scripts/check-authored-content.sh`, `spec-spine couple`.
Spec 039, Bedrock
rankincrement (owner decision A-49), part b: the swap test. Stacked on #422 (part a, the admission).One definition (pointwise
rankover a filtered pool,selectk 2 backfilled from the pool's exact order,backfill_all) runs throughrustev-runtimewith capture twice: with spec 005's rules backend (3.14) and with the Bedrock adapter answering from documented-shape SYNTHETIC fixtures on a loopback Converse endpoint (fixtures/rank/swap-answers.json). No network, no paid call.recommendthrough the same rule with the same policy trace. Per-position origins are asserted, including a case where every Bedrock answer lacksscore, sobackfill_allfills both positions from the exact order.rustev evalunder one dataset (gold relevance), adapter and configuration: the spec 004 report, spec 041's ranking measures (precision@2,ndcg@2,mrr,backfill@p1,backfill@p2) underrustev.evaluator-config/3, and spec 029 repeat reports (replay, n 2).rustev eval --repeat-configevaluates each run without the adapter's measures (crates/rustev-cli/src/repeat.rscallsevaluate_with_cases, notevaluate_measured_with_cases), so it refuses a version 3 configuration withAdapter. The repeat here runs under the same configuration at version 2; the gap is recorded in 039's record and left to its owner, outside this lane.Spec: 039 implementation record gains a dated paragraph;
RANKING_ACCEPTANCE.mdmaps the swap row.Verification (local):
cargo test -p rustev-bedrock --locked(all suites),cargo clippy -p rustev-bedrock --all-targets -- -D warnings,cargo fmt --check,make gate.