project-brain 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -197,7 +197,7 @@ Unlike the `/brain-*` commands above, these have no CLI equivalent. They are **h
197
197
 
198
198
  `project-brain setup` installs them into each registered tool's global skills directory (`~/.claude/skills/`, `~/.codex/skills/`, or the shared `~/.agents/skills/`). Opt out with `project-brain setup --no-skills` (`--no-brain-audit` still works as an alias).
199
199
 
200
- **Both are offered, not scheduled.** Nothing invokes them for you and nothing fires on commit — you decide when. `brain-audit` runs discovery, proposes an audit module set, and waits for you to confirm before loading anything: 49 modules exist, and loading all of them every time is what makes an audit expensive. `brain-okf` proposes the type, title, and anchor and waits before creating a file, because whether an insight deserves a permanent home is your call, not the assistant's.
200
+ **Both are offered, not scheduled.** Nothing invokes them for you and nothing fires on commit — you decide when. `brain-audit` runs discovery, proposes an audit module set, and waits for you to confirm before loading anything: 50 modules exist, and loading all of them every time is what makes an audit expensive. `brain-okf` proposes the type, title, and anchor and waits before creating a file, because whether an insight deserves a permanent home is your call, not the assistant's.
201
201
 
202
202
  Setup never overwrites a skill directory it did not create. Ownership is proven per directory, so your own hand-written `brain-okf/` is left untouched — and reported — while `brain-audit/` upgrades beside it.
203
203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-brain",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "description": "Local-first MCP server that gives AI tools semantic memory of your codebase.",
6
6
  "author": "jcsoftdev",
@@ -49,11 +49,11 @@
49
49
  "zod": "^4.4.3"
50
50
  },
51
51
  "optionalDependencies": {
52
- "project-brain-darwin-arm64": "0.23.0",
53
- "project-brain-linux-x64": "0.23.0",
54
- "project-brain-linux-arm64": "0.23.0",
55
- "project-brain-windows-x64": "0.23.0",
56
- "project-brain-windows-arm64": "0.23.0"
52
+ "project-brain-darwin-arm64": "0.24.0",
53
+ "project-brain-linux-x64": "0.24.0",
54
+ "project-brain-linux-arm64": "0.24.0",
55
+ "project-brain-windows-x64": "0.24.0",
56
+ "project-brain-windows-arm64": "0.24.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/bun": "latest",
@@ -4,7 +4,7 @@ description: "Trigger: audit this project, comprehensive audit, full codebase au
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: jcsoftdev
7
- version: "2.2"
7
+ version: "2.3"
8
8
  generator: project-brain
9
9
  ---
10
10
 
@@ -53,7 +53,7 @@ The single most likely failure of this audit is not missing a defect — it is r
53
53
 
54
54
  | Tier | Established by | Severity ceiling |
55
55
  |---|---|---|
56
- | `executed` | A command was run and its output read. Reserved — no module in this skill executes anything today. | Critical |
56
+ | `executed` | A command was run and its output read. Only `runtime.md` reaches this tier, only when the user enabled execution, and only with the command and its exit code recorded. | Critical |
57
57
  | `traced` | A structural proof from project-brain: `trace_path`, `find_callers`, `find_callees`, or `impact` showing the path exists, or provably does not. | Critical |
58
58
  | `read` | A cited `file:line` whose content was actually read, quoted or paraphrased faithfully. | High |
59
59
  | `inferred` | A pattern, a naming smell, or an absence with no probe run against it. | Medium |
@@ -70,6 +70,20 @@ The counterweight, because this rule cuts both ways: **a clean result is only va
70
70
 
71
71
  This matters more than it looks. Measured precision for frontier models on security review runs 29-42%, so most raw findings are false — but the same research finds that **models miss far more than they invent**, and that a report with fewer findings reads as more accurate precisely when it is least accurate. That is the precision paradox: the audit that missed everything and the audit that found nothing look identical on the page. Suppressing a real finding is the failure this skill is worst at noticing in itself.
72
72
 
73
+ ## Execution
74
+
75
+ **This audit reads. It does not run anything unless the user says so, in this session, for this run.**
76
+
77
+ Every other module in this skill is static, and that is a promise the user relies on: pointing an audit at a repository must not be a way to execute its code. The `Runtime` module is the single exception, and it is off unless three conditions all hold.
78
+
79
+ 1. **The user enabled it explicitly.** Not a default, not inferred from a project type, not carried over from a previous run, and not implied by confirming the module set. `Runtime` is offered separately from every other module, after the rest are chosen, and the offer states plainly what running it means: the project's code will execute on this machine.
80
+ 2. **The project declares the command.** `Runtime` runs what the repository already tells its own contributors to run — a script in the manifest, a step in a CI workflow, a documented command. **It never invents one.** This is the constraint that makes execution defensible: the audit runs what the authors already run, and the audit's own judgement is not what decides that a command is safe.
81
+ 3. **The command is not destructive.** A declared script whose name or body deploys, publishes, migrates, seeds, resets, or deletes is never run on inference. If a finding genuinely needs one, name it, say why, and let the user run it themselves.
82
+
83
+ Refusing execution is always a valid answer and costs the audit only the `executed` tier. Every module already declares what it cannot see from source in its `Out of static reach` section; with execution off, those items are reported as Coverage Gaps exactly as they were before. **The static audit is complete without this module** — `Runtime` closes gaps, it does not fill holes.
84
+
85
+ A finding at `executed` tier records the exact command, its exit code, and the output line that supports it. Without those three it is not `executed`; it is an `inferred` finding wearing a tier that lets it reach Critical, which is worse than an honest `inferred`. And a green run proves only that the project's own checks pass, which is as strong as those checks are — `tooling-baseline.md` is what measures that, and the two modules are read together or neither is worth much.
86
+
73
87
  ## Refutation
74
88
 
75
89
  The Evidence Contract governs how a finding is established. This section governs whether it survives.
@@ -180,6 +194,7 @@ The `Reference` column is the exact filename under `references/` — load that f
180
194
  | | Documentation | `documentation.md` |
181
195
  | | Prompt/Spec Gap | `prompt-spec-gap.md` |
182
196
  | Linter, formatter, type-checker, test-runner, or scanner config present **or conspicuously absent** | Tooling Baseline | `tooling-baseline.md` |
197
+ | **User enabled execution** — never proposed by detection alone, see `## Execution` | Runtime | `runtime.md` |
183
198
  | Project is a git repository | Repo History | `repo-history.md` |
184
199
  | Statically or gradually typed language | Type Safety | `type-safety.md` |
185
200
  | Server framework or API routes present | Backend | `backend.md` |
@@ -245,6 +260,7 @@ The absence gates (`Observability`, `Testing`, `Design System`, `Type Safety`, `
245
260
  | Locale files / translation keys | `search_code` for a locales directory or the translation function |
246
261
  | OpenAPI / GraphQL / protobuf / shared types | `search_code` for `openapi`, `.graphql`, `.proto`, or a shared-types package |
247
262
  | Hot path or measurable workload | `repo_map`'s top-ranked symbols, plus any loop over unbounded input |
263
+ | Runnable commands the project declares | manifest scripts, CI workflow steps, and documented commands in the README. This establishes what `Runtime` *could* run and is worth recording even when execution stays off — a project that declares none cannot be verified by running it, which is itself worth saying |
248
264
  | Tooling configuration | `search_code` for the tool config filenames of the detected stack — linter, formatter, type checker, test runner, pre-commit framework, scanner. **Absence fires the gate**: a project whose tooling checks nothing is one where every defect this audit finds was invisible to automation, and that changes which other modules are worth running |
249
265
  | Git repository | a `.git` directory — the module reads history, so a shallow clone is `undetermined`, not `not applicable` |
250
266
  | Statically or gradually typed language | `get_architecture` language, plus a type-checker config (`tsconfig.json`, `mypy.ini`, `pyrightconfig.json`, `go.mod`) — the module audits the *escape hatches* from that checker, so a language with no checker configured is itself the finding |
@@ -265,12 +281,13 @@ The absence gates (`Observability`, `Testing`, `Design System`, `Type Safety`, `
265
281
  1. Discovery — stack, architecture, feature map, via the routing table.
266
282
  2. Apply gates → proposed module set with per-module rationale.
267
283
  3. **Present the proposal and wait for confirmation.** Report the token implication of the chosen set.
268
- 4. For each confirmed module, read only its `references/<module>.md`, then verify against real code — project-brain first, `Read` only to confirm lines it points at. **Run the probe each check names.** A check whose probe was not run produces no finding, not an `inferred` one.
269
- 5. Collect findings using the schema above, each with its evidence tier and its ruled-out alternative. Leave `Refutation` empty; step 7 fills it.
270
- 6. **Present the Refutation Manifest and wait** — findings collected, how many are eligible at Medium or above, how many are left raw below threshold, how many refuters that means, and the resolved mode with model ids where they are known. Answers are `all`, `critical+high only`, or `none`. A user who replied `refute all` at step 3 has pre-authorised this; print the manifest as a notice and continue. `none` stamps every finding `declined by user` — it does not silently skip the stage.
271
- 7. Refute. One subagent per eligible finding, fresh context, the brief and nothing else. Escalate to a second refuter only on `undetermined` at Critical or High, telling it which probes were already inconclusive.
272
- 8. Apply the verdicts: drop `refuted` findings into the ledger, reduce `weakened` ones to the severity the refuter named, cap `undetermined` at Medium, and record the mode on every finding. Deduplicate here — the refuters could not, having each seen one finding.
273
- 9. Record every module's `Out of static reach` items that mattered — they become Coverage Gaps, not silent omissions.
284
+ 4. **Offer `Runtime` separately, after the module set is settled, and wait.** State that enabling it executes the project's code on this machine, list the declared commands it would run, and name the ones it will not touch. Declining is normal and costs only the `executed` tier. Never fold this into step 3 — a user confirming twenty static modules has not consented to run anything.
285
+ 5. For each confirmed module, read only its `references/<module>.md`, then verify against real code — project-brain first, `Read` only to confirm lines it points at. **Run the probe each check names.** A check whose probe was not run produces no finding, not an `inferred` one.
286
+ 6. Collect findings using the schema above, each with its evidence tier and its ruled-out alternative. Leave `Refutation` empty; step 8 fills it.
287
+ 7. **Present the Refutation Manifest and wait** — findings collected, how many are eligible at Medium or above, how many are left raw below threshold, how many refuters that means, and the resolved mode with model ids where they are known. Answers are `all`, `critical+high only`, or `none`. A user who replied `refute all` at step 3 has pre-authorised it; print the manifest as a notice and continue. `none` stamps every finding `declined by user` — it does not silently skip the stage.
288
+ 8. Refute. One subagent per eligible finding, fresh context, the brief and nothing else. Escalate to a second refuter only on `undetermined` at Critical or High, telling it which probes were already inconclusive.
289
+ 9. Apply the verdicts: drop `refuted` findings into the ledger, reduce `weakened` ones to the severity the refuter named, cap `undetermined` at Medium, and record the mode on every finding. Deduplicate here — the refuters could not, having each seen one finding.
290
+ 10. Record every module's `Out of static reach` items that mattered — they become Coverage Gaps, not silent omissions.
274
291
 
275
292
  ## Output Contract
276
293
 
@@ -0,0 +1,83 @@
1
+ # Runtime
2
+
3
+ Does the project's own tooling actually pass right now? Gate: the user explicitly enables execution, **and** the project declares at least one runnable command. The `executed` tier has sat in the Evidence Contract since this skill defined its tiers, reserved with no module to fill it — this is that module. It runs now, and only when both conditions hold together; either alone leaves it gated off.
4
+
5
+ Every other module in this skill reasons from source alone — a defect it reports is a claim about what the code would do, never a claim about what it did. This module is the one exception, and the exception is narrow: with the user's consent, it runs the commands the project's own authors already run — the script named `test` in `package.json`, a documented `typecheck`/`lint`/`build` target, a command already invoked by a CI workflow — and reads what actually happened. It does not repeat `tooling-baseline.md`'s inventory of what a project declares versus what CI enforces; it consumes that inventory to decide what is safe to run, then reports the result of running it. It does not repeat `testing.md`'s reading of test source either — that module tells you what a suite claims to prove and what shape its assertions take; this module tells you whether the suite the project already trusts currently passes.
6
+
7
+ The constraint carries no exceptions: **this module runs only commands the project itself already declares.** It never invents a command, installs a dependency, reaches the network beyond what a declared command already does on its own, touches a production system, or runs a script whose name implies mutation (`deploy`, `publish`, `migrate`, `seed`, `reset`, `clean`) without the user naming that exact script. A command not already declared somewhere does not get run speculatively — its absence is the finding, under Establish what the project declares, not a gap this module fills by guessing.
8
+
9
+ **Every finding from this module records the exact command, its exit code, and the relevant output line — that triple is what makes it `executed` rather than a better-dressed `inferred`.** "The tests fail" with no command, no exit code, and no failing assertion quoted has not earned the tier it claims; report it as `inferred` instead, because an unverifiable `executed` finding is worse than an honest one — the tier alone would let it reach Critical.
10
+
11
+ **A green run is evidence that the project's own checks pass, and it is exactly as strong as those checks are — nothing more.** Cross-reference `tooling-baseline.md`, which measures that strength directly: a green test run against a suite that only asserts `toBeTruthy()`, or a green lint run against a ruleset with its real rules disabled, is a true statement about a weak instrument. State which is true before citing a pass as reassurance.
12
+
13
+ ## Establish what the project declares
14
+
15
+ - [ ] Locate the declared command surface before running anything — read `package.json` scripts, a `Makefile`, a documented `just`/`task` runner, or the CI workflow's own step list, cross-referencing `tooling-baseline.md`'s inventory rather than re-deriving it. Record the exact command string for each of test, typecheck, lint, and build; this module runs nothing it cannot cite from one of these sources.
16
+ - [ ] A category with no declared command ends the module for that category — state plainly which of test/typecheck/lint/build had nothing to run, and never substitute a guessed invocation. `npm test` on a project with no `test` script is npm's own fallback failure, not a declared command.
17
+ - [ ] Read the command's body or documented prerequisites before running it — an undeclared required env var or an expected service on a fixed port fails the run for reasons unrelated to the code under audit, and reporting that failure as a code defect misattributes it.
18
+ - [ ] Where a category has two candidate commands — a root script and a per-package one in a monorepo, or a local one that diverges from CI's — run the one `tooling-baseline.md`'s Declared-versus-enforced findings show CI actually invokes, not merely the one that exists.
19
+
20
+ ## Execution safety
21
+
22
+ - [ ] Every command runs under a timeout, and the value used is recorded in the finding. No industry default exists to defer to — of the harnesses with a public execution model, only Claude Code documents a numeric figure (120s soft, 600s hard); state the bound this run used rather than assuming a reader knows it.
23
+ - [ ] Network access during the run is scoped to what the declared command itself needs. A test suite reaching out during a run neither described nor requested by its own configuration is a finding in its own right — cross-reference `security.md` — not something silently permitted because the run was allowed to start.
24
+ - [ ] Nothing in the run writes outside the checked-out working tree — cross-reference `testing.md`'s isolation checks (`homedir()`, a hardcoded absolute path). A suite that fails this check is not executed to completion; its failure mode is reported and the run stops there.
25
+ - [ ] A script whose name implies mutation (`deploy`, `publish`, `migrate`, `seed`, `reset`, `clean`) is recorded under Establish what the project declares but never executed on the strength of appearing there — only on the user naming that exact script by name.
26
+ - [ ] State begins clean before every run: a frozen install (`npm ci`, `pnpm install --frozen-lockfile`, or the project's equivalent) against the committed lockfile, not a reused `node_modules`. Note whether a build cache was warm or cold — a result measured against drifted dependencies or a stale cache is evidence about that drift, not about the code.
27
+
28
+ ## The cheap ladder
29
+
30
+ - [ ] Typecheck first. Record exit code and, on failure, the error count. A failing typecheck makes every later step's findings suspect — code that does not typecheck may not build or behave the way the suite assumes — so treat this failure as gating, not as one finding among several.
31
+ - [ ] Lint second, after typecheck. Record exit code and violation count. A lint failure does not gate the remaining steps the way a typecheck failure does, but a ruleset the project itself enforces and currently fails is `tooling-baseline.md`'s declared-versus-enforced gap made concrete, and belongs cited there too.
32
+ - [ ] Build third. Record exit code and, on failure, the first fatal error. A failing build means every other finding this audit makes about wiring or flow completion (`flow-integrity.md`) describes code that cannot currently ship — say so explicitly rather than letting those findings stand unqualified.
33
+ - [ ] State the ladder's stopping point plainly. If typecheck fails, say whether lint and build were still attempted or skipped, and why — a module that silently stops after step one looks identical to one that never attempted steps two and three.
34
+
35
+ ## The suite
36
+
37
+ - [ ] Run the declared test command once. Record exit code, wall-clock duration, and the pass/fail/skip counts from the runner's own summary line — this is the module's core `executed` finding, and every other check in this section refines it.
38
+ - [ ] Name skipped and pending tests, not just their count — `search_code` the source for `.skip`/`xit`/`xdescribe`, then confirm the run's own output reports the same number. A mismatch means the skip markers moved since whatever baseline the project last recorded.
39
+ - [ ] A committed `.only`/`fit`/`fdescribe` is a finding independent of whether the run currently passes — it silences the rest of the suite for every contributor who runs it locally, and a CI run would show a misleadingly small pass count if it slipped past review.
40
+ - [ ] Repeat the run **ten times** against an unchanged tree. Ten is not arbitrary — it is the threshold Google's own flaky-test infrastructure uses to reclassify a passing-after-failure test as flaky (Luo et al., FSE 2014). Report the observed rate (`n/10`) rather than a bare "flaky" label.
41
+ - [ ] Where the runner supports randomised or reversed ordering, run it once out of committed order and diff the result against the unshuffled run. iDFlakies (ICST 2019) found roughly half of real flaky tests are order-dependent — invisible to a suite that only ever runs in the order it is committed in.
42
+ - [ ] Where a coverage script is separately declared, run it and read the number for exactly what it proves: which lines executed at least once. Kochhar, Lo, Lawall & Nagappan (*IEEE Transactions on Reliability* 66(4), 2017) found coverage has an insignificant correlation with post-release defects — the number is real and measured, but it is evidence of exercised lines, never of correctness, and must never be reported as the latter.
43
+ - [ ] Cross-reference the coverage run's per-file breakdown against symbols `complexity.md`/`reachability.md` already flagged as high-blast-radius — a 0% line on one of those is a sharper, measured version of an existing finding, not a new one.
44
+
45
+ ## What execution closes
46
+
47
+ - [ ] `testing.md` lists "whether the suite actually passes right now" as beyond its static reach — the run above closes it directly. Cite the exit code, not a restatement.
48
+ - [ ] `testing.md` also lists real flake rate and whether a flagged order-dependency pattern has ever actually failed as unreachable statically — the repeat and shuffled-order runs close both, bounded by what ten repeats and one reorder can show. A clean result there is flake-free at that sampled rate, not flake-free forever.
49
+ - [ ] `tooling-baseline.md` lists "whether a committed report's zero findings reflect a genuinely clean pass or a scanner matching nothing" as unreachable statically — rerunning the same scanner now and diffing against the committed report closes it: an identical zero is corroboration, a fresh non-zero means the committed report was stale or the scanner regressed.
50
+ - [ ] Where a browser-driving command is separately declared — an axe-core CI script, a Lighthouse CI run — treat it as its own declared command under Establish what the project declares and run it the same way; its result is bounded, see What execution still does not settle, but it is real measurement where none existed before.
51
+
52
+ ## What execution still does not settle
53
+
54
+ - [ ] A green run proves the project's own checks pass and nothing beyond what those checks were written to catch. Restate this in the finding itself, not only here — a green `executed` result inherits every blind spot `tooling-baseline.md` already found in what the tooling actually enforces.
55
+ - [ ] Mutation score, behaviour under real production traffic, environment-dependent flakiness (a different CI runner, timezone, locale), and whether a mocked seam faithfully reproduces its real dependency all stay out of reach — none are observable from a local run, however many times repeated.
56
+ - [ ] An axe-core run, where declared, is bounded at roughly 57% of real-world accessibility issues per Deque's own study of over 2,000 audits — a different and larger figure than the share of WCAG success criteria automatable, which is smaller and commonly conflated with it. The rest still needs `accessibility.md`'s manual checks.
57
+ - [ ] A Lighthouse or Core Web Vitals lab run, where declared, is `executed`-tier for the single run it performed and nothing beyond — usable as a regression check against a prior run, never as proof of a real-world pass. It cannot measure INP at all (INP requires a genuine user interaction) and only partially observes CLS, so it never substitutes for the field data `performance.md` already lists as out of reach.
58
+ - [ ] Rendering correctness, the keyboard walk, and real screen-reader output stay out of reach entirely unless the project separately declares a browser-driving command; this module does not open a browser on its own initiative.
59
+
60
+ ## Out of static reach
61
+
62
+ - Whether a result holds on infrastructure other than the one this ran on — a different OS, CPU architecture, or language/runtime version can behave differently against an identical lockfile.
63
+ - Real-world flake rate beyond the sampled repeat count — ten repeats bounds a claim, it does not eliminate a rarer failure mode.
64
+ - Whether a currently-green suite would still be green against a change the project has not made yet; this module reports the present state of the tree, not a prediction.
65
+ - Whether the commands this module ran are the ones a human contributor actually runs day to day, versus a stale or aspirational script nobody invokes.
66
+ - Anything requiring a live third-party network dependency, a paid API, or a production credential this module is barred from reaching.
67
+
68
+ ## Severity guidance
69
+
70
+ | Situation | Severity |
71
+ |---|---|
72
+ | Declared build fails | Critical |
73
+ | Declared test suite fails on the current tree | Critical |
74
+ | Committed `.only`/`fit`/`fdescribe` silencing the rest of the suite | High |
75
+ | Declared typecheck fails | High |
76
+ | Test flaky at 2 or more failures in ten repeats, untracked | High |
77
+ | Order-dependent failure surfaced by a reordered run | High |
78
+ | Declared lint fails against the project's own configured ruleset | Medium |
79
+ | Skipped tests present with no tracking issue or comment | Medium |
80
+ | Coverage run confirms 0% on a symbol another module flagged high-blast-radius | Medium |
81
+ | Committed scanner report contradicted by a fresh run of the same scanner | Medium |
82
+ | Test flaky at exactly one failure in ten repeats | Low |
83
+ | Result measured against a stale cache or drifted dependency install | Info |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gate: test files are present **or conspicuously absent**. The absence case is the point — "this project has no tests" is a finding, not a reason to skip the module.
4
4
 
5
- Coverage percentage is not the question, and that is not a stylistic preference — it is what the evidence shows. The largest study to date on real (not injected) defects — Zhang et al., "Code Coverage and Post-release Defects," *IEEE Transactions on Reliability*, 2017, 100 large open-source Java projects — found coverage has an **insignificant correlation** with post-release defect counts. Mutation testing correlates better with real fault detection, because it measures whether the suite would actually catch a change rather than whether a line merely executed, but computing a mutation score means running the suite against generated mutants — out of reach for this module. The question this module *can* answer by reading alone is: **which defects would this suite have caught?** Take the findings from the other modules and ask, for each, why no test failed.
5
+ Coverage percentage is not the question, and that is not a stylistic preference — it is what the evidence shows. The largest study to date on real (not injected) defects — Kochhar, Lo, Lawall & Nagappan, "Code Coverage and Postrelease Defects: A Large-Scale Study on Open Source Projects," *IEEE Transactions on Reliability* 66(4), 2017, pp. 1213-1228 (DOI 10.1109/TR.2017.2727062), across 100 large open-source Java projects — found coverage has an **insignificant correlation** with post-release defect counts. Mutation testing correlates better with real fault detection, because it measures whether the suite would actually catch a change rather than whether a line merely executed, but computing a mutation score means running the suite against generated mutants — out of reach for this module. The question this module *can* answer by reading alone is: **which defects would this suite have caught?** Take the findings from the other modules and ask, for each, why no test failed.
6
6
 
7
7
  There is no universal "correct" shape to check the suite against, either. The classic pyramid (many unit, fewer integration, few end-to-end) and Kent C. Dodds' "testing trophy" (weighted toward integration) are both defensible depending on where a project's defects actually originate — do not flag a project for favouring one over the other. What *is* a real finding is a mismatch between where tests concentrate and where risk concentrates: cross-reference `complexity.md`'s high-blast-radius symbols and `reachability.md`'s boundaries, then `search_code` those symbol names against the test suite. Heavy coverage on trivial code next to none on the central, high-blast-radius symbols is a gap regardless of which shape the suite otherwise resembles.
8
8