Skip to content

feat(cli): render full ThreatMap.v1 dataflow in findings show - #16

Merged
bx33661 merged 1 commit into
mainfrom
feat/threat-map-rich-render
Jun 18, 2026
Merged

feat(cli): render full ThreatMap.v1 dataflow in findings show#16
bx33661 merged 1 commit into
mainfrom
feat/threat-map-rich-render

Conversation

@bx33661

@bx33661 bx33661 commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

Completes the read side of the ThreatMap.v1 pipeline to match the producer merged in #15. `renderThreatMap` collapsed each path to a single `[source] -> [sink]` line, discarding the `transforms` (the actual dataflow), per-path `confidence`, bypassable guards, and the `summary` block — all of which `omv threat-map init` now writes.

  • Multi-line rendering per path: source → each transform → sink → guard (present/missing, `bypassable`), `confidence` in the path header.
  • Optional `summary` line (path_count, confirmed_paths, highest_confidence).
  • `describeThreatNode` surfaces `location` alongside the label.

Validation

  • `npm run build` green
  • `npm test` — 37/37 (updated pinned read test + new transforms/confidence/summary test)
  • `npm run validate` green
  • Smoke-tested the rendered output via `omv findings show`.

renderThreatMap collapsed each path to a single [source] -> [sink] line,
discarding the transforms (the actual dataflow), per-path confidence,
bypassable guards, and the summary block that omv threat-map init now
writes. Complete the read side to match the producer:

- Multi-line rendering per path: source, each transform, sink, guard
  (present/missing, bypassable flag), confidence in the path header.
- Optional summary line (path_count, confirmed_paths, highest_confidence).
- describeThreatNode now surfaces location alongside the label.
- Updated the pinned read test to the richer format and added a test
  covering transforms, confidence, bypassable guard, and summary.

37 tests pass; full validate green.
@bx33661
bx33661 merged commit 51f0a92 into main Jun 18, 2026
2 checks passed
@bx33661
bx33661 deleted the feat/threat-map-rich-render branch June 18, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant