Skip to content

Clarify Tier 2 comparison scopes and expose complete Harbor evidence - #354

Merged
rng1995 merged 15 commits into
naren/reporting-workspace-navigationfrom
naren/reporting-evidence-views
Nov 6, 2026
Merged

rng1995 merged 15 commits into
naren/reporting-workspace-navigationfrom
naren/reporting-evidence-views

Conversation

@rng1995

@rng1995 rng1995 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Tier 2 summaries conflate within-skill and catalog comparisons, and report surfaces hide retained Harbor jobs. Separate recorded comparison scopes and expose all available evidence without inventing measurements or attribution.

  • Provide Within this skill / Across skills sections, scoped KPIs, similarity matches, and distinct completed-zero, skipped, not-run, unavailable, and N/A states.
  • Preserve typed completion metadata, catalog self-exclusion, pairwise semantics, and recorded context reduction.
  • Expose all normalized jobs across HTML, compact/detailed CLI, standalone Tier 3, and separate Markdown list items; retain recorded names, fallback job labels, legacy pairs, and run-level analysis.
  • Safely merge raw uploads with canonical jobs, preserve run metadata, and fill missing analysis only for the same validated job URL.
  • Surface existing validated provenance and retain nullable both-condition resources, omission counts, charts, searches, recommendations, and complete downloads.

Stacked on #352 (naren/reporting-workspace-navigation), which depends on #351. #350 and #353 are independent sibling changes verified together in integration.

Scoring formulas, thresholds, publication policy, exit codes, command-line options, artifact filenames, canonical JSON, redaction, and report-size limits are preserved. No internal integrations or plugin-specific implementation were copied.

Verification

  • Familiar with the Contributing Guidelines; all commits signed off.
  • Added focused regressions and updated report documentation.
  • Root self-review and independent review; all confirmed findings fixed and re-reviewed.
  • Final assembled focused selection: 381 passed.
  • Ran make test on the final combined source; result below.
  • make lint and make build passed; wheel/source archives and package metadata verified.
  • Fern validation: zero errors and the existing unauthenticated redirects warning; OSS source/archive and public benchmark checks passed.
  • No credentials, private datasets, proprietary benchmark content, or internal integrations added.

Final assembled make test: 24,962 passed, 35 skipped, no failures, in 348.53 seconds on Python 3.14 with four workers and repository default marker exclusions. Exact clean integration: 25fd11aaf18033b5fdc287e83c0431a69acb34f3.

Actual installed-wheel verification covered 1440, 761, 760, 421 and 390px layouts in both themes, generous text spacing, paired provenance, mixed required/advisory summaries, section/agent links, print/no-JavaScript and keyboard behavior. The latest evidence delta passed 24 fixture observations; the final chart delta passed 14 browser/offline/native-CSP cases, including collapsed and missing-runtime data links, JSON downloads and 16 painted chart observations. No runtime/CSP errors, page-wide overflow or network attempts were observed. Shared navigation assets match the six-scenario verified source; broad earlier layout/evidence matrices were retained rather than needlessly repeated.

Current-head GitHub checks are not all complete; this PR remains draft. The PR checks tab shows live status.

Review

Reviewed scope/completion accounting, nullable measurements, URL validation/escaping, deduplication, provenance, and all output paths. Regressions first demonstrated malformed-upload crashes, metadata loss, and missing complementary analysis links. The fix preserves canonical names/analysis, input immutability, and no cross-job attribution. The latest owner-focused selection passed 306 tests.

All five PR discussions and review threads were checked: there are no review comments or unresolved threads. The combined changes were validated in isolated integration 25fd11aaf18033b5fdc287e83c0431a69acb34f3 without merging any PR into main. Leave open for human review.

Release Impact

  • Updated CHANGELOG.md.

rng1995 and others added 14 commits November 5, 2026 15:21
Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	CHANGELOG.md
#	src/skillevaluator/reporting/templates/report_ui.css.j2
…obs honest

Review follow-ups for the evidence views:

- A Tier 2 scope with no result and no recorded stage now reads "Not run
  by this command." instead of four "Unavailable" KPIs, so default
  validate reports no longer imply missing across-skills evidence.
- A collection index with fewer than two entries is not applicable
  rather than a completed zero-match comparison.
- Insufficient content no longer also gets the "coverage is incomplete"
  note; that note now needs an unfinished, non-skipped check.
- The across-skills KPI is "Similarity matches", since it counts every
  similarity finding, not only duplicates.
- A run-level Harbor analysis link that matches no job is listed as
  "Run analysis" instead of an invented numbered job, and a legacy
  job_url/analysis_url pair stays one job.
- The terminal panel normalizes the engine's Harbor "uploads" shape, and
  non-list jobs/evidence_links no longer crash display normalization.
- Markdown lists each Harbor job as its own item so CommonMark does not
  merge them into one paragraph.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the new Tier 2 comparison-scope view, its completeness and count rules, and the Harbor evidence rendering. Nothing blocking: counts match the underlying comparisons, and partial scopes are labelled as partial.

…nce-views

Resolve CHANGELOG.md by keeping both Unreleased entries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review findings and fixes

An independent review of this PR found 8 issues: 1 P2 and 7 P3. Seven are fixed in 2aaad41, and F7 is left as designed. Each new test fails on the previous head and passes now.

# Severity Finding Fix
F1 P2 Both Tier 2 scopes always rendered, so a scope the command never runs showed four "Unavailable" KPIs. Every default validate report implied missing across-skills evidence. A scope with no members and no recorded stage reads "Not run by this command." and has no KPI dashboard.
F2 P3 A pairwise index with one entry counted as a completed zero-match comparison. An index with fewer than two entries, and no catalog comparison, counts as not applicable.
F3 P3 Insufficient content produced two contradictory notes. The "coverage is incomplete" note now needs an unfinished check that wasn't skipped.
F4 P3 "Duplicate findings" counted every similarity finding, including SIMILAR and LOOSELY_RELATED. The across-skills KPI is now labelled "Similarity matches".
F5 P3 A Harbor analysis link that matched no job became an extra numbered job. It is listed as an unnumbered "Run analysis" link after the jobs, and a legacy job_url/analysis_url pair stays one job.
F6 P3 The standalone agent-eval terminal panel read harbor_viewer.jobs from the raw engine result, which uses uploads. The panel normalizes the uploads shape first. Non-list jobs and evidence_links values are ignored instead of crashing.
F7 P3 EvaluatedSourceConflict aborts HTML rendering. Not changed. source_identity.recorded_evaluated_source documents fail-closed behaviour: a run whose evaluated source conflicts publishes nothing rather than guess.
F8 P3 Markdown joined the Harbor job lines with single newlines, so CommonMark merged Runtime and every job into one paragraph. Each job is its own list item: - **name:** [Harbor logs](…) · [Harbor analysis](…).

Tests were updated in tests/reporting/test_evidence_views.py and tests/reporting/test_reporters.py, and five new tests were added.

@rng1995
rng1995 marked this pull request as ready for review November 6, 2026 19:10
@rng1995
rng1995 merged commit 82e27c6 into naren/reporting-workspace-navigation Nov 6, 2026
22 checks passed
@rng1995
rng1995 deleted the naren/reporting-evidence-views branch November 6, 2026 19:10
rng1995 added a commit that referenced this pull request Nov 7, 2026
* Align report status and recorded execution accounting

Signed-off-by: Narendran Raghavan <[email protected]>

* Preserve explicit Tier 3 skips in shared evidence display

Signed-off-by: Narendran Raghavan <[email protected]>

* Bound shared report coverage traversal cumulatively

Signed-off-by: Narendran Raghavan <[email protected]>

* Improve HTML report navigation and accessible reading modes

Signed-off-by: Narendran Raghavan <[email protected]>

* Fix report fragment reloads and clarify verdict hierarchy

Signed-off-by: Narendran Raghavan <[email protected]>

* Clarify skipped report counts across CI terminal widths

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): derive emitted tabs from recorded result tiers

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): bind dynamic tier navigation in trusted static script

Signed-off-by: Narendran Raghavan <[email protected]>

* test(reporting): keep recorded-tier regression within PR1 scope

Signed-off-by: Narendran Raghavan <[email protected]>

* Improve spacing and reading rhythm across HTML reports

Signed-off-by: Narendran Raghavan <[email protected]>

* Measure wrapped navigation and pair provenance fields

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): honour producer arm skips and standalone Tier 3 verdicts

Review follow-ups for the status and accounting changes:

- Trial coverage reads the payload-level skip markers. A --skip-baseline
  run (mode "with_skill_only") omits the baseline condition, and an
  advisory Tier 3 skip has execution_status "skipped" with no agents.
  Both previously reported "scored trials unavailable"; they now report
  the arm as skipped, and the terminal summary omits the coverage line
  for a skipped Tier 3.
- A standalone Tier 3 report has no gating metadata, so a failing or
  incomplete Tier 3 verdict now drives the header, which had turned green
  beside a "Changes required" tile.
- Terminal N/A rows show their recorded reason instead of "1 checks
  passed" or "Skipped (see warnings)", and tier/coverage lines soft-wrap
  so counts are not split at narrow CI widths.
- Read the projection report as UTF-8 for the Windows job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): open sections at their top and keep focus and dark mode accessible

Review follow-ups for the navigation changes:

- Fragment routing sends whole tiers (#tab-tierN) to activateReportTier
  and sidebar sections (#report-workspace, the skip link and brand link)
  to a shared section opener that scrolls to the top. Only evidence is
  centred; centring a container taller than the viewport put the skip
  link's target mid-report.
- The hero reason line counts required failures only and lists advisory
  failures on their own line, so "Passed required checks" no longer sits
  above "1 failed". A clean run shows no reason line.
- No-JS system dark mode mirrors the 25 hard-coded [data-theme="dark"]
  overrides, which left light cards under light text; a test keeps the
  two sets in sync.
- The agent deep link focuses the named agent panel, not the aria-hidden
  scroll anchor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

* Treat malformed trial modes as unavailable evidence

Signed-off-by: Narendran Raghavan <[email protected]>

* Project required and advisory adverse counts per result

Signed-off-by: Narendran Raghavan <[email protected]>

* Keep required reasons and agent-link focus precise

Signed-off-by: Narendran Raghavan <[email protected]>

* Keep no-JavaScript severity colors aligned with theme tokens

Signed-off-by: Narendran Raghavan <[email protected]>

* Clarify Tier 2 comparison scopes and expose complete Harbor evidence (#354)

* Clarify Tier 2 evidence scopes and expose every Harbor job

Signed-off-by: Narendran Raghavan <[email protected]>

* Mark catalog metrics inapplicable outside catalog comparisons

Signed-off-by: Narendran Raghavan <[email protected]>

* Require recorded comparison evidence for Tier 2 completion

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): keep artifact labels neutral and space tier2 scope links

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): say when a Tier 2 scope was not run and keep Harbor jobs honest

Review follow-ups for the evidence views:

- A Tier 2 scope with no result and no recorded stage now reads "Not run
  by this command." instead of four "Unavailable" KPIs, so default
  validate reports no longer imply missing across-skills evidence.
- A collection index with fewer than two entries is not applicable
  rather than a completed zero-match comparison.
- Insufficient content no longer also gets the "coverage is incomplete"
  note; that note now needs an unfinished, non-skipped check.
- The across-skills KPI is "Similarity matches", since it counts every
  similarity finding, not only duplicates.
- A run-level Harbor analysis link that matches no job is listed as
  "Run analysis" instead of an invented numbered job, and a legacy
  job_url/analysis_url pair stays one job.
- The terminal panel normalizes the engine's Harbor "uploads" shape, and
  non-list jobs/evidence_links no longer crash display normalization.
- Markdown lists each Harbor job as its own item so CommonMark does not
  merge them into one paragraph.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

* Merge uploaded Harbor links without replacing retained evidence

Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Christopher Kevin <[email protected]>
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.

2 participants