Repository navigation
fix(reporting): align scoped verdicts and trial accounting - #351
Merged
Merged
Conversation
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
This was referenced Nov 5, 2026
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
marked this pull request as ready for review
November 6, 2026 02:52
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
November 6, 2026 02:52
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]>
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
marked this pull request as draft
November 6, 2026 03:57
rng1995
marked this pull request as ready for review
November 6, 2026 04:27
chrisknvidia
reviewed
Nov 6, 2026
chrisknvidia
left a comment
Collaborator
There was a problem hiding this comment.
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.
…s-accounting Signed-off-by: Christopher Kevin <[email protected]>
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
commented
Nov 6, 2026
rng1995
left a comment
Collaborator
Author
There was a problem hiding this comment.
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_skippedtest_advisory_tier3_skip_reports_skipped_arms_not_unavailable_countstest_standalone_tier3_report_header_follows_failing_tier3_verdicttest_not_applicable_rows_show_their_recorded_reasontest_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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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
make teston the final combined source; result below.make lintandmake buildpassed; wheel/source archives and package metadata verified.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
25fd11aaf18033b5fdc287e83c0431a69acb34f3without merging any PR into main. Leave open for human review.Release Impact
CHANGELOG.md.