Skip to content

Show Run metrics and missing signals in Console details - #1151

Merged
JacobStephens2 merged 1 commit into
issue-981from
issue-1040
Oct 23, 2026
Merged

JacobStephens2 merged 1 commit into
issue-981from
issue-1040

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Show retained Run metrics in Command details using the existing show --json data. Preserve recorded zeroes and distinguish unavailable signals:

 Command details
   Run metrics
     Recorded values, stage times and finding counts
-    Unavailable signals: None
+    Unavailable signals: Missing

Closes #1040

Evidence

  • Before: cargo test --test console metrics::peek_shows_retained_run_metrics_and_marks_missing_signals -- --exact failed because unavailable Security, Spec and Usual range signals rendered as None.
    After: the same route test passes, including equality with show --json and visible recorded zeroes.
  • npm test --prefix console: 60 passed, including complete, partial and older records at 1440 px and 390 px; both the page and details remain within the viewport width.
  • cargo check --locked and cargo fmt --check: passed.
  • /usr/bin/time -p scripts/affected-tests origin/issue-981: all 44 site browser tests passed. The local Rust run was stopped after the same head passed the full suite in CI, reusing that result per docs/testing.md. The selector ran for 1462.46 seconds including compilation (Rust compilation: 2m 17s); this is an interrupted local run, not a full-suite timing.
  • CI for ad65dce: all checks passed, including the full cargo test suite, clippy, formatting, and both browser suites.

Test seams

  • Console /peek HTTP route paired with thirdshift show --json for retained Run metrics.
  • Browser interaction with Command details at desktop and 390 px widths for present, partial and missing Run metrics.

Review coverage

Independent Standards and Spec reviews against issue-981, pinned to its fetched commit d8ef257e0cebc480b866c484b5ecb486e9d51956: 0 findings on each axis. Both reviewers read all eight changed files. Unread changed files: none. Generated-output exclusions: none.

Unaddressed findings

Standards

None.

Spec

None.

Security

None. Guidance-mode review of d8ef257...HEAD: presentation-only metrics wording (None to Missing inside run metrics) plus tests and docs; no new source, sink, endpoint, or auth change. A local probe rendering schema-valid run metrics carrying an inert script string through /peek confirmed the output stays HTML-escaped, and the existing route and escaping tests pass. No introduced findings; nothing fixed.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Presentation and tests only; retained metrics and the CLI schema stay unchanged.

Blast Radius: Console

Unavailable Run metric values use clearer wording in Command details. Site descriptions document the behavior.

Built with codex · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit dbaed56 into issue-981 Oct 23, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1040 branch October 23, 2026 13:14
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