Findings model + writers (§3.5). Detectors (§3.4, §3.9) record observations
here; the CLI serializes them on exit to JSON (machine), Markdown (human,
mirroring docs/ADVISORY_TEMPLATE.md) and SARIF 2.1.0 (CI / code-scanning).
A finding is a passive observation — recording one NEVER changes what mcpwn
forwards on the wire (Invariant #2). Writers are pure string builders so they
are trivially unit-testable; writeFindingsDir is the only one that touches
disk.
Findings model + writers (§3.5). Detectors (§3.4, §3.9) record observations here; the CLI serializes them on exit to JSON (machine), Markdown (human, mirroring docs/ADVISORY_TEMPLATE.md) and SARIF 2.1.0 (CI / code-scanning).
A finding is a passive observation — recording one NEVER changes what mcpwn forwards on the wire (Invariant #2). Writers are pure string builders so they are trivially unit-testable;
writeFindingsDiris the only one that touches disk.