Forensics report

From event4u-app/agent-config · View interactive version

Forensics report is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when a release review needs machine-derived evidence from git history — hotspot risk and change-coupling analyzers. Triggers on 'hotspot', 'what changes together', 'release forensics'.

How to use this skill

Skill file

forensics-report

When to use

wanted alongside the human review: "which files are the risk hotspots in

this release", "what changes together", "release forensics".

history actually shows (change-coupling across module lines).

worth attention; it never passes or fails anything.

NOT for runtime performance hotspots (route to performance-analysis).

Procedure

  1. Pick the range — the previous release tag to HEAD (vPREV..HEAD) or a

released pair (vPREV..vNEW). Pin the range explicitly; a floating range

breaks determinism.

  1. Run the report:

```bash

npx tsx node_modules/@event4u/agent-config/src/scripts/forensics_report.ts --range vPREV..vNEW --out report.json

```

Two deterministic, git-log-based analyzers run, read-only and offline:

per file over the range.

per file pair.

  1. Optionally feed the release findings ledger: add

--findings-out findings.json, then ingest via

```bash

npx tsx node_modules/@event4u/agent-config/src/scripts/check_finding_dispositions.ts --ingest findings.json --release X.Y.Z

```

which appends to the existing ledger at

agents/evidence/release-findings/<version>.json. Emitted findings are

kind: correctness with severity: low|medium — non-blocking for the

release gate by construction.

  1. Read the results:

quality verdict. A frequently changed complex file can be exactly right

as it is; the score says "look here", not "this is bad".

i.e. a contradiction between intended and actual boundaries. This is a

finding CLASS to discuss, not a failure.

Output format

  1. Lead with the scanned denominator (scanned.commits / scanned.files, including skipped bulk commits) — a reader must be able to judge the sample before the findings.
  2. Present hotspots and coupling as ranked tables with the score interpretation line ("a place to look, not a quality verdict") attached.
  3. When --findings-out was used, state the ingest command and the ledger path the findings landed in.

Deterministic JSON with these fields:

| Field | Meaning |

|---|---|

| mode | analyzer mode the run used |

| range | the pinned rev-range analyzed |

| scanned | commit/file counts, including skipped bulk commits |

| params | thresholds and normalization parameters in effect |

| hotspots[] | per-file hotspot entries (path, frequency, complexity, score) |

| coupling[] | file-pair coupling entries (paths, co-change ratio) |

| boundary_contradictions[] | cross-module coupling hits above threshold |

Findings emitted via --findings-out conform to

review-findings.schema.json (shipped with the package; kind: correctness,

severity: low|medium).

Gotchas

max_commit_files files (default 50) are skipped by the coupling analyzer

and counted in the report's scanned section.

appear as two separate paths, splitting their history across both.

"since today" or a date-relative range does not.

Do NOT

in docs/CLAIMS.md (forensics-pack-value) decides promotion or closure;

until then the output stays advisory.

frequency and complexity, not correctness or craftsmanship.

kind: security|claim — that would block the release gate, which this

analyzer must never do.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.