test_the_index_says_when_it_cannot_decide

Tests › tests/test_context_conflicts.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE THIRD OUTCOME. An opaque timeout and a runtime context guard are recorded as UNDECIDABLE, never as clean and never as a conflict: promoting either fabricates a finding, dropping it makes an empty conflict list a claim the index has not earned.

Given

  1. rows = _rows(_run(tmp_path))
  2. opaque = rows[("undecidable_timeout", "k_sem_take", 43)]
2 more
  1. guarded = rows[("guarded_by_isr_predicate", "k_sleep", 45)]
  2. unresolved = rows[("unresolved_lock_identity", "pthread_mutex_lock", 70)]
→

When

  1. —
→

Then

  1. ✓ opaque[0] equals VERDICT_UNDECIDABLE
  2. ✓ opaque[1] equals "cfg->wait"
  3. ✓ guarded[0] equals VERDICT_UNDECIDABLE
  4. ✓ guarded[1] contains "k_is_in_isr"
  5. ✓ unresolved[0] equals VERDICT_UNDECIDABLE

tests/test_context_conflicts.py:147 · its file's page

What it checks (5)

  1. assert opaque[0] == VERDICT_UNDECIDABLE not attributed
  2. assert opaque[1] == "cfg->wait", f"the operand is kept verbatim, got {opaque[1]}" not attributed
  3. assert guarded[0] == VERDICT_UNDECIDABLE not attributed
  4. assert "k_is_in_isr" in guarded[1], f"the guard is shown, not evaluated; got {guarded[1]}" not attributed
  5. assert unresolved[0] == VERDICT_UNDECIDABLE not attributed

Where the product reaches it

Call flow

test_the_index_says_when_it_cannot_decide→_rows→_run

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_the_index_says_when_it_cannot_decide · 5 checks_run_context_db_ensure_threads_tablesREQ-DDB-QUERY-011 · measured_run_context_db_ensure_threads_tablesREQ-DDB-SCHEMA-001 · measured_run_context_db_ensure_threads_tablesREQ-DDB-SCHEMA-007 · measured_runextract_context_conflictsREQ-DDB-SCHEMA-011 · measured
Also reaches 5 requirements

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