fallow icon indicating copy to clipboard operation
fallow copied to clipboard

Allow higher evidence limits for type-coupling queries

Open samaluk opened this issue 1 month ago • 1 comments

Problem

Fallow 3.33.1's sidecar protocol hard-caps evidence_limit at 40, rejects larger values, and has no CLI/config override. A project-wide advisory type-coupling report can therefore fail strict completeness solely because its output is truncated.

Observed in a TypeScript monorepo with the following command:

pnpm exec fallow health --type-aware --type-coupling \
  --type-aware-require complete --format json --quiet

All six configured projects report complete. The coupling response reports 82 total evidence items / 42 evidence-limit omissions. health-findings passes, but type-aware-require fails and the command exits 1.

In an in-memory experiment, calling the internal analyzer with evidenceLimit: 1000 returned all 82 items with status: complete and no omissions. No application or installed package files were changed.

Proposed solution

Expose a bounded CLI/config evidence limit, or increase the coupling default/maximum. Preserve strict completeness for required project evidence.

Alternatives considered

best-effort exits 0 with the same omissions, but relaxes completeness for all type-aware evidence in that command.

samaluk avatar Oct 17 '26 13:10 samaluk

Thanks for the clear report and the in-memory experiment with a larger limit. v3.34.1 contains the change (npm install [email protected]).

A type-coupling report is one report for the whole project, so it now carries up to 10,000 evidence items. Symbol, impact and API-surface results keep the limit of 40. With your command, fallow health --type-aware --type-coupling --type-aware-require complete, a report of 82 items is no longer cut, so a complete analysis is reported as complete. You need no new flag or config key. Above 10,000 items, the report stays partial with the evidence-limit reason, and complete still fails the run.

BartWaardenburg avatar Oct 18 '26 07:10 BartWaardenburg