Skip to content

fix(reporting): align scoped verdicts and trial accounting - #351

Merged
rng1995 merged 13 commits into
mainfrom
naren/reporting-status-accounting
Nov 6, 2026
Merged

rng1995 merged 13 commits into
mainfrom
naren/reporting-status-accounting

Conversation

@rng1995

@rng1995 rng1995 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Final CLI and HTML summaries can disagree about approval, tier counts, or trial coverage. Use one immutable final-render projection for command outcome, separate publication eligibility, scoped agent scores, tier counts, and recorded per-condition coverage.

  • Reuse the existing verdict and gate helpers; classify required and advisory results individually, including mixed tiers and standalone Tier 3.
  • Exclude N/A from executed-check denominators; preserve explicit skips, unavailable counters, and retained rows as observed evidence.
  • Prefer recorded counters before preview truncation, guard malformed mode values, and apply one cumulative legacy traversal allowance.
  • Add optional keyword-only presentation context without changing existing callers, canonical JSON, report_scope semantics, or emit_reports()'s boolean result.

Foundation for #352 and #353; #350 is independent. The approved implementation plan is committed in repository documentation.

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 failure/incomplete precedence, advisory gates, emitted-tier classification, skips/N/A, bounded coverage, payload immutability, and JSON/return compatibility. Regressions demonstrate malformed mode crashes and mixed-gate accounting before the fixes. The latest owner-focused selection passed 281 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
rng1995 marked this pull request as ready for review November 6, 2026 02:52
rng1995 and others added 4 commits November 5, 2026 18:53
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]>
@rng1995
rng1995 marked this pull request as draft November 6, 2026 03:57
@rng1995
rng1995 marked this pull request as ready for review November 6, 2026 04:27

@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 scoped status and coverage aggregation and how the reports render it. Nothing blocking: scoped verdicts and trial counts now agree across terminal, Markdown and HTML, and the tests pin the mixed-scope cases. I merged main into the branch to clear the conflict.

chrisknvidia and others added 2 commits November 6, 2026 07:36
Resolve the CHANGELOG.md conflict: main and this PR each started a
"### Changed" list under Unreleased after 0.8.0. Keep one heading, with
main's CI redaction entry (#348) first and this PR's entries after it.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995
rng1995 merged commit dd27412 into main Nov 6, 2026
22 checks passed
@rng1995
rng1995 deleted the naren/reporting-status-accounting branch November 6, 2026 19:04

@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 4 issues: 2 P2 and 2 P3. All four are fixed in 2633b3e. Each new test fails on the previous head and passes now.

# Severity Finding Fix
F1 P2 Trial coverage ignored the producer's skip markers. A --skip-baseline run (mode with_skill_only, with no without_skill condition) showed "baseline scored trials unavailable", and an advisory Tier 3 skip showed both arms as unavailable. trial_coverage treats an arm the mode leaves out as skipped. When the payload's execution_status is skipped, it treats both arms as skipped. The terminal drops the coverage line when Tier 3 is skipped or not run.
F2 P2 A standalone Tier 3 report.html has no gating metadata. When the verdict was FAIL, it showed a green "Passed required checks" header beside a "Changes required" Tier 3 tile. In tier3 scope with no gating recorded, a failed or incomplete Tier 3 status sets the header.
F3 P3 Terminal N/A rows kept the old detail text (N/A │ 1 checks passed). A cleanly skipped not-applicable check lost its reason. Executed tier lines split mid-count at 60 columns. N/A rows show the recorded skip reason or the success detail. Tier and coverage lines print with soft_wrap=True.
F4 P3 test_final_render_context.py read the report without an encoding, which decodes as cp1252 in the Windows job. It now reads with encoding="utf-8".

New tests in tests/reporting/test_final_render_context.py:

  • test_producer_one_arm_mode_marks_the_missing_arm_skipped
  • test_advisory_tier3_skip_reports_skipped_arms_not_unavailable_counts
  • test_standalone_tier3_report_header_follows_failing_tier3_verdict
  • test_not_applicable_rows_show_their_recorded_reason
  • test_executed_tier_counts_stay_on_one_line_at_narrow_widths

rng1995 added a commit that referenced this pull request Nov 6, 2026
Resolve the CHANGELOG.md conflict: keep main's Unreleased "### Changed"
entries, including the verdict and trial accounting entry (#351), first
and this PR's entries after them.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 added a commit that referenced this pull request Nov 6, 2026
Resolve the CHANGELOG.md conflict: keep main's Unreleased "### Changed"
entries, including the verdict and trial accounting entry (#351), first
and this PR's entries after them.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 added a commit that referenced this pull request Nov 6, 2026
…gation

Bring in main up to 0205909, the commit before #351 was squash-merged.
No conflicts.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 added a commit that referenced this pull request Nov 6, 2026
…with -s ours

#351 was squash-merged as dd27412. This branch already contains #351's
final head 9e092ff, and the squash commit's tree is identical to merging
9e092ff into its parent 0205909, which this branch now also contains.
Recording the squash as merged with -s ours therefore adds no content and
drops none; it only stops main's copy of #351 from conflicting with the
copy this branch already has.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 added a commit that referenced this pull request Nov 6, 2026
Bring in main up to 0205909, the commit before #351 was squash-merged.
No conflicts.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 added a commit that referenced this pull request Nov 6, 2026
#351 was squash-merged as dd27412. This branch already contains #351's
final head 9e092ff, and the squash commit's tree is identical to merging
9e092ff into its parent 0205909, which this branch now also contains.
Recording the squash as merged with -s ours therefore adds no content and
drops none; it only stops main's copy of #351 from conflicting with the
copy this branch already has.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[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