Skip to content

5-test-migration (10): map_lookup_dual_dispatch — 4 checks to floor witnesses, module shrunk to 2 residuals - #6150

Merged
briansrls merged 4 commits into
mainfrom
test-migration/map-lookup-dispatch
Jul 2, 2026
Merged

briansrls merged 4 commits into
mainfrom
test-migration/map-lookup-dispatch

Conversation

@briansrls

@briansrls briansrls commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Tenth PR of the 5-test-migration lane. This slice closes only the map_lookup_dual_dispatch module; the lane node stays open.

What

  • New dsl/test/claim/map_lookup_dual_dispatch_witness_test.dag: four marker-discovered test fns — the three map-lookup surfaces (m |> get(k), m[k] index sugar, lookup(m,k) builtin) and the std.graph adjacency-view smoke that consumes map_get end-to-end.
  • Shrink src/v1/tests/src/map_lookup_dual_dispatch_test.rs 175→~75 LOC, 6→2 tests.

Residuals (documented in module header)

Receipts (green-by-execution + perturb→red, layer justified)

  1. Green: claim_batch --entry dsl/test/claim/map_lookup_dual_dispatch_witness_test.dag --functions <all 4> → 4/4 PASS.
  2. Discriminating: the live realization of map lookup is the Rust dual-dispatch chokepoint (raw_map_lookup, v1_interpreter.rs:6256) — no .dag body exists to perturb. A temporary Rust commit forcing it to always miss reds all four witnesses (exit 1), which simultaneously proves the routing claim the v1 tests asserted (every surface goes through the chokepoint). Perturb commit reverted in-branch.
  3. Residual module: 1 passed / 1 ignored; cargo clippy -p v1-compiler-tests --all-targets -- -D warnings green at head.

🤖 Generated with Claude Code

Brian Searls and others added 4 commits July 2, 2026 07:06
(cherry picked from commit e1340d038091c8fad78cc4d8c7bf76d623640609)
…ses, module shrunk to 2 residuals

New dsl/test/claim/map_lookup_dual_dispatch_witness_test.dag carries the
three lookup-surface checks + std.graph adjacency smoke as marker-discovered
test fns. Perturb receipt at the live realization layer: raw_map_lookup
(v1_interpreter.rs:6256, the dual-dispatch chokepoint) forced to always miss
reds all four witnesses (also proving the routing claim). Residuals: the
source-scan bypass wall (pinned harness) and the #[ignore]d empty-list
inference case (pre-existing bug, bucket=inference).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot changed the title 5-test-migration — v1 burn-down: migrate v1 Rust test modules (~90 modules/~939 tests) into floor witnesses so v1 deletes unblock. SMALL PRs, one module/cluster each: re-express discriminating behavior as *_test.dag (marker-discovered, no hand-enrollment), perturb->red proof, delete the v1 module in 5-test-migration (10): map_lookup_dual_dispatch — 4 checks to floor witnesses, module shrunk to 2 residuals Jul 2, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 2, 2026 07:20
@briansrls
briansrls merged commit ea10384 into main Jul 2, 2026
1 of 5 checks passed
@briansrls
briansrls deleted the test-migration/map-lookup-dispatch branch July 2, 2026 15:11
briansrls added a commit that referenced this pull request Jul 3, 2026
Six rows were listing modules as full-debt after they had already
partially or fully migrated (per #6140/#6142/#6143/#6145/#6147/#6150/#6153):
render_repeat, cron_tag, money_carrier_cost_witness are fully deleted
from src/v1/tests/src/lib.rs (removed from table); fn_as_value_test,
witness_option_bridge_test, map_lookup_dual_dispatch_test,
coproduct_reflection_conformance_test shrunk to small pinned residuals
(LOC/test counts corrected against current main).

Co-authored-by: Brian Searls <briansrls@gmail.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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