test_depth_above_the_bound_is_refused_not_clamped

Tests › tests/test_subject_surface.py

passed Passed in the packaged run.

What this test is for

Why it exists

REFUSED, for the reason every cap on this surface refuses: a clamped depth answers three hops to a request for eight and reports no difference, which is the silent-degradation failure the `_limited` disclosures exist to convert into a measurement.

Given

  1. —
→

When

  1. tools.dossier("app_run", depth=q.MAX_SUBJECT_DEPTH + 1)
  2. tools.dossier("app_run", depth=0)
→

Then

  1. ✓ raises ValueError
  2. ✓ raises ValueError

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

Look up one name: everything the index holds about it · 5 of 226 steps

… 92 earlier steps

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pytry (line 1219)tryopt (line 1181)optdossier93. db → 93… 1 call not run94. _batched_dossiers → _repo_or_none94_repo_or_none95. _repo_or_none → repo95repo96. repo → _route96_route97. _batched_dossiers → _budget_batch97_budget_batch

… 33 steps between

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesopt (line 1715)optopt (line 1012)optdossier131. _answered → 131… 2 calls not run132. dossier → disclose_overflow132disclose_overflow133. dossier → subject_payload133subject_payload▶ test enters134. subject_payload → dossier134dossier135. dossier → connect135connect136. dossier → identity_rowids136identity_rowids

… 77 steps between

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyother filesother filesother filesother filesopt (line 285)optdossier214. _expand_neighbor → _make_node214_make_node215. subject_payload → _flatten_subject215_flatten_subject216. dossier → db216db▶ test enters217. dossier → _repo_or_none217_repo_or_none218–219. dossier → _answered218_answered +1 more

… 7 later steps

tests/test_subject_surface.py:400 · its file's page

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.

Also reaches 3 requirements

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