Skip to content

Fix/design verdicts panel - #40

Merged
vsn411 merged 6 commits into
mainfrom
fix/design-verdicts-panel
Nov 7, 2026
Merged

vsn411 merged 6 commits into
mainfrom
fix/design-verdicts-panel

Conversation

@vsn411

@vsn411 vsn411 commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

What does this change, and why?

Testing

  • pytest tests passes
  • ruff check . passes
  • Added/updated tests for the behavior change

Satyanarayana Vuppala and others added 6 commits November 7, 2026 11:03
Agents write the Design verdict as a full sentence, and the page put the
whole sentence inside a badge: badges don't wrap, so on the architecture
diagram card it ran out of the box, and the Design verdicts panel was a
wrap of long coloured pills in no particular order.

- report/architecture.split_design_verdict: sentence -> (label, reason),
  label from classify_design_verdict so it always matches the badge colour
  (Sound / Sound with conditions / Not sound / Not applicable / Unclear).
- Design verdicts panel: a table of the 5 most recent reviews, newest
  first -- project, label badge, reason (clamped to two lines, full text
  in the tooltip), review date -- with "Latest N of M projects".
- Diagram card: label badge with the reason as wrapping text below it.
- Rows link to the successful review the verdict came from, not the
  project's latest run (which may have failed).
- "Projects not cleanly Sound" compares the label, not the sentence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The "Unreviewed & stale" panel lists only the five most recently
  active projects (by last run), with "Latest N of M" and a link to the
  full table when more exist.
- "By project" ends with a Review status column for every project:
  Current / Stale (Nd) / Trust boundary changed / No successful review,
  from the same stale list the dashboard already computes -- so trimming
  the panel hides nothing.
- unreviewed_and_stale_projects (and boundary-changed rows) now carry
  last_activity_at so lists can be ordered by recency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…TRIDE

- New info_tip macro (_macros.html): a small (i) button in a widget's
  top-right corner that opens a short explanation of what the widget
  shows, where the number comes from, and what to do about it. Built on
  <details>, so it works without inline script under the portal CSP;
  interactive.js keeps one open at a time and closes it on an outside
  click or Escape (focus returns to the button).
- All 12 Threat Modeling widgets get one.
- Model depth mix: each count now carries its name and meaning (Full =
  whole system, Feature-level = one feature or data flow, Lightweight =
  fast checklist pass), the model total, and a hint when lightweight
  models outnumber full ones.
- STRIDE x asset-class matrix: full names for S/T/R/I/D/E (legend and
  hover) and a colour key (none / 1-2 / 3+).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
WebKit always lays a <details> out as a block, so the inline info button
under "Models needing rework" and "Recurring threat patterns" dropped to
its own line. The heading is now a flex row (heading-with-info), which
keeps the button after the last word in every browser.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Threat-modeling cards match that pattern: each widget says what it counts, and a list longer than ten rows scrolls inside the card.

Co-authored-by: Cursor <[email protected]>
Full falsified-assumption and post-build lists move to their own pages, and STRIDE coverage shows one project at a time.

Co-authored-by: Cursor <[email protected]>
@vsn411
vsn411 merged commit a76cb97 into main Nov 7, 2026
2 checks passed
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