Skip to content

ux(human): make the summary header match the finding taxonomy — split unknown classes, canonical tokens, shown/total denominator #4322

Closed

Description

@EffortlessSteven

Part of #4316 (epic(ux)). Verified on main @ 54e867a9e, 2026-09-27. Classification: verified_current. All-state search summary header unknown, summary taxonomy: no prior owner.

Problem

The per-run denominator line — the only place a human sees class totals — diverges from the product's core taxonomy in three ways (crates/ripr/src/output/human.rs:150-160):

Summary: {} probe(s), {} exposed, {} weak, {} unrevealed, {} no path, {} unknown
  1. Three unknown classes collapse into one bucket: static_unknown + infection_unknown + propagation_unknown are summed (lines 157-159). A mixed run (3 infection + 5 propagation) is indistinguishable from 8 of either — yet the distinction is exactly what tells the user which discriminator machinery is missing, and JSON keeps them separate.
  2. Header tokens diverge from finding vocabulary: the header says weak and unrevealed where findings say weakly_exposed and reachable_unrevealed. Grepping the header tokens against finding lines (or the spec vocabulary) fails.
  3. No shown/total denominator: probes does not reconcile with visible findings when --suppression-policy removes some (buckets decrement, probes does not; the suppressed count only appears later in the policy block). A reader summing the header cannot tell whether counts are pre- or post-suppression.

Verified behaviorally on fixtures/all_no_path_disclosure: Summary: 1 probe(s), 0 exposed, 0 weak, 0 unrevealed, 1 no path, 0 unknown — vocabulary mismatch visible on any run.

Expected

Per-class denominators with canonical tokens and an explicit shown/total, e.g.:

Summary: 1 probe(s), 0 exposed, 0 weakly_exposed, 0 reachable_unrevealed, 1 no_static_path, 0 infection_unknown, 0 propagation_unknown, 0 static_unknown; 1 of 1 finding(s) shown

(or a two-line layout if the line grows too wide — the constraint is class-exactness and the shown/total disclosure, not one line).

Acceptance

  • Header names all seven classes with canonical tokens.
  • A shown/total finding denominator is present and reflects suppression.
  • Affected human goldens re-blessed in the same PR; JSON untouched.
  • cargo xtask goldens check + cargo xtask dogfood green.

Non-goals

  • No JSON schema change; no classification semantics change; no badge/receipt formats (they have their own contracts).

Identity: EffortlessMetrics/ripr-swarm, branch main, source SHA 54e867a9e, observed 2026-09-27. Confidence: high (code + behavior verified).

Activity

  1. EffortlessSteven commented on Sep 30, 2026

    @EffortlessSteven
    MemberAuthor

    Delivered by #4934 (squash-merged to main as 9f89f6c8f; branch deleted; synced onto #4924's landed base a2c403d06 via merge 5505a51cb). All four acceptance boxes verified this session:

    • Header names all seven classes with canonical tokens — render_header_summary renders exposed, weakly_exposed, reachable_unrevealed, no_static_path, infection_unknown, propagation_unknown, static_unknown (unknowns split, no summed bucket); pinned by summary_header_names_every_class_with_its_canonical_token, whose per-class distinct counts bind token and position and whose ExposureClass::as_str() loop fails if a class is renamed or added without extending the header. Rendered witness: actual human.txt for all_no_path_disclosure reads Summary: 1 probe(s), 0 exposed, 0 weakly_exposed, 0 reachable_unrevealed, 1 no_static_path, 0 infection_unknown, 0 propagation_unknown, 0 static_unknown; 1 of 1 finding(s) shown — the issue's expected sketch verbatim.
    • Shown/total denominator present and reflects suppression — per-class buckets count unsuppressed findings; summary.findings stays the total; ; {shown} of {total} finding(s) shown appended. Pinned by summary_header_shown_total_denominator_reflects_suppression (; 1 of 2 finding(s) shown with one suppressed finding).
    • Human goldens re-blessed in the same PR; JSON untouched — 275 human.txt + 73 human-full.txt (where human-full goldens exist) one-line Summary swaps + bless CHANGELOGs; no check.json in the delta.
    • gates green — on the synced head 5505a51cb: cargo test -p ripr --lib human:: 115 passed / 0 failed; cargo fmt --check clean; cargo clippy -p ripr --all-targets -- -D warnings clean; cargo xtask goldens check exit 0 (624 comparisons pass, 0 drift, violations "None detected"); cargo xtask dogfood exit 0. Hosted required check Ripr Rust Small Result pass on that head (run 36763705867); review threads resolved with dispositions (0 unresolved at merge).

    Review residual (non-acceptance): the worktree replay-note shorthand flagged on both PRs is recorded as a follow-up on #4321's reconciliation comment. Parent epic #4316 remains open for the rest of the family.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions