test_extracting_items_that_match_no_member_is_refused

Tests › tests/test_grader.py

passed Passed in the packaged run.

What this test is for

Why it exists

**THE HARNESS ALREADY PUBLISHED THIS FAILURE AND NOTHING NOTICED.** A trailing `:796` kept an answer's `src/facade/external_bridge.cpp:796` from equalling the member's `src/facade/external_bridge.cpp`, so a cell that named 4 of 7 members correctly scored 0 of 8 set decisions, and the precision detail printed four MEMBER paths as "not in the set".

Given

  1. mark = Mark( text="every file that creates a thread", type="set", weight=2, members=[{"value": "src/facade/external_bridge.cpp"}, {"value": "src/mcp/health.cpp"}], extract="List the files.", )
  2. monkeypatch.setattr( score, "ask", lambda *_a, **_k: judge.Reply(text="ITEMS:\nsrc\\facade\\other_thing.cpp\nEND"), )
→

When

  1. out = score.score_set(mark, "an answer", "claude-sonnet-4-5-20250929", samples=1)
  2. all(d.hit is None for d in out)
→

Then

  1. ✓ all(d.hit is None for d in out) holds
  2. ✓ out[0].detail contains "key mismatch"

tests/test_grader.py:679 · its file's page

What it checks (2)

  1. assert all(d.hit is None for d in out), ( f"a total member mismatch was scored instead of refused: {[(d.mark, d.hit) for d in out]}" ) observes all
  2. assert "key mismatch" in out[0].detail, f"the refusal does not say why: {out[0].detail!r}" observes score_set via out

Where the product reaches it

  • dossier → _rank_enum_over_mirror → _class_side_is_only_enum_mirrors → all (flow)

Call flow

test_extracting_items_that_match_no_member_is_refused→score_set→all

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_extracting_items_that_match_no_member_is_refused · 2 checksallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.