test_the_vendored_disclosure_is_bounded¶
Tests › tests/test_scope.py
What this test is for
Why it exists
gh#37: an EXCLUDE list grew to ~390 entries and overflowed a client's reply limit. A disclosure that names every matching tree repeats that on a repository vendoring many libraries. Name a few, COUNT the rest, so the reader still learns the true size.
Verifies REQ-DDB-PIPE-014
Given
root = tmp_path / "mono"for i in range(12): _src(root, f"pkg{i}/vendor/lib.c")
When
reason = sc.whole_repo_scope(root).reason
Then
- ✓ reason contains "look vendored"
- ✓ reason contains "12 trees"
- ✓ reason.count("/vendor") is at most 5
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.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 20 of 142 steps
… 114 later steps
4 more
- Build, refresh and check the index · 20 of 153 steps
- clew — `main` (clew/cli.py) · 20 of 400 steps
- Build this wiki from the index · 2 of 400 steps
- `main` (clew/guard/main.py) · 2 of 357 steps
tests/test_scope.py:781 · its file's page
What it checks (3)
assert "look vendored" in reason, f"precondition: nothing was disclosed: {reason}"observeswhole_repo_scopeviareasonassert "12 trees" in reason, f"the true count was lost when summarising: {reason}"observeswhole_repo_scopeviareasonassert reason.count("/vendor") <= 5, f"the disclosure was not bounded: {reason}"observeswhole_repo_scopeviareason
Where the product reaches it
main→propose_main→propose→build_context→derive_scope→whole_repo_scope(flow)
Call flow
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-014 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured