Skip to content

fix(reporting): correct Tier 3 failure, verdict and lift wording in reports and docs - #561

Merged
rng1995 merged 30 commits into
mainfrom
naren/fix-reporting-wording-followups
Nov 16, 2026
Merged

rng1995 merged 30 commits into
mainfrom
naren/fix-reporting-wording-followups

Conversation

@rng1995

@rng1995 rng1995 commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #376, #407, #411, #414, #417 and #418. Several Tier 3 report labels and docs sentences on main say something the code does not do. This names the exception Harbor recorded under a failed job in the coverage notice, and corrects the Not applicable dimension row, the no-lift card note and two docs sentences. Main d41ec54 is merged.

Changes

  • Coverage notice failure: a job whose statistics miss a trial ends its failure with trial <label> recorded ExceptionType: message, but the exception pattern only matched a type at the start or after : . The notice's failure was null, or the type of a later error, live and from a saved run, although docs/reports.mdx promises the first Harbor exception type. The pattern now also matches a type right after recorded.
  • Not applicable dimension row: the HTML dimension table and docs/reports.mdx said the agent's verdict stays NEUTRAL, but a scored dimension below 0.40 still makes the agent FAIL. The row and both docs sentences now say only that the agent cannot PASS, and the row adds a period after a reason that lacks one.
  • No-lift card note: a card with no lift said no comparable result remains even when the loaded results could not show it. It now says that only when comparison_basis.contributing_attempts is 0, and otherwise that the loaded results cannot confirm the comparison. docs/reports.mdx says when each note applies. The CHANGELOG gets a new Unreleased entry; the released 0.9.0 entry is unchanged.
  • Failed-run verdict docs: docs/reports.mdx said a failed run keeps neutral, which the HTML labels Changes required, without saying which report keeps it. The HTML reports show a failed run's verdict as fail, also in the Tier 3 payload they embed. The standalone Tier 3 report.html and a validate --block-on-agent-eval report label it Changes required; a default validate --tier3 report, where Tier 3 is advisory, labels it Failed (advisory), and its command status follows the required tiers. The tier3 object of a validate --tier3 JSON report keeps neutral when the run's collected results record the failure, for example when one of several agents fails. When the execution backend reports a failure after the agents scored, summary.overall_score stays set and that object records the verdict the scores give, pass or fail; an error that begins with an agent's name marks that agent failed. A failed run whose budget left planned attempts not run records incomplete there, and the HTML reports label it Incomplete. The docs now say so. The CHANGELOG entry under Unreleased Documentation gives the rule and leaves the detail to Reports & Results.
  • Empty expected_output docs: docs/tier3-live-evaluation.mdx said tier3 PATH and init-harbor-task reject an empty expected_output. They reject it only in a {"skill_name", "evals"} dataset; a flat JSON or YAML list, {"cases": [...]} or any evals.jsonl is legacy, accepts it and leaves accuracy and goal_accuracy N/A. The docs and an Unreleased Documentation entry now say so.

#560 also changes report.html.j2, tier3_coverage.py, docs/reports.mdx, the CHANGELOG and several of these test files, so whichever of the two merges second needs to keep these corrections rather than take the other side of those files.

Known limitation: for a failed run whose budget left planned attempts not run, the Tier 3 payload an HTML report embeds still records fail while the report labels the verdict Incomplete. This PR documents the label and the JSON tier3 object and does not change that payload.

Tests

  • Tests run validate --tier3 with and without --block-on-agent-eval on a run with a failed peer, a run without a valid Tier 3 source, a scored run the backend marks failed and a failed run stopped by its budget, and check the JSON verdict, the HTML labels and the documented text. Another runs both the tier3 PATH dataset step and init-harbor-task on each dataset shape.
  • In tests/reporting/test_tier3_incomplete_arms.py, tests/reporting/test_dimension_explanations.py, tests/reporting/test_tier3_completed_agent_docs.py, tests/test_judge_lift_integrity.py and tests/test_harbor_scaffold_transactions.py, 31 test cases fail on main 5978061 and pass on this branch: main gives 32 failed and 152 passed, this branch 1 failed and 183 passed. The remaining failure, test_validate_tier3_writes_the_same_report_pair, also fails on main in this local environment (installed Harbor 0.24.0; the project pins 0.25.0).
  • tests/reporting plus 15 other test files covering the changed modules, the CI and packaging checks, and the tests that read the changed docs or CHANGELOG: 3568 passed, 2 skipped. The 6 failures (the test above, the Harbor environment kwarg contract and four tests in tests/tier3/test_baseline_timeouts.py) also fail on main 5978061 locally.
  • ruff check, ruff format --check of the changed Python files and the OSS boundary scan pass.
  • git merge-tree --write-tree of this branch against main d41ec54 is clean.

🤖 Generated with Claude Code

rng1995 and others added 14 commits November 12, 2026 21:57
…r 3 job

When a Harbor job's statistics miss a trial, the collector names the
first trial or step exception Harbor recorded under it as
`trial <label> recorded <Type>: <message>`, and that job failure is the
arm's first error. The coverage notice only looked for an exception type
at the start of an error or after `: `, so a step exception such as
`RewardFileNotFoundError` left `failure` null, and a later typed error
could be named instead of the first one.

Also accept a type that follows ` recorded `. The type still has to be a
CamelCase name ending in Error or Exception and be followed by `:` or the
end of the error, so a typeless recorded message or a trial label shaped
like a type names nothing.

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

The N/A section said `tier3 ./my-skill` and `tier3 init-harbor-task`
reject an empty `expected_output`. Only a `{"skill_name", "evals"}`
dataset is checked for it. A flat dataset (a JSON or YAML list,
`{"cases": [...]}`, or any `evals.jsonl`) loads as legacy, so an empty
or whitespace-only `expected_output` or `ground_truth` is accepted there
and makes `accuracy` and `goal_accuracy` N/A.

Say so, and pin the wording with a test that runs `init-harbor-task` on
each shape.

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

A Not applicable row in the HTML Tier 3 dimension table ended with "It
has no score, so the agent's verdict stays NEUTRAL and cannot PASS.",
and docs/reports.mdx said the same twice. Since #414 an agent with a
scored dimension below 0.40 is FAIL even when another dimension has no
score, so the row contradicted the report's own verdict. The reason
before that sentence also had no closing period.

The row and the docs now say only "It has no score, so the agent cannot
PASS.", the wording docs/tier3-live-evaluation.mdx already uses, and the
row adds the missing period after the reason. A test renders a failing
run with a Not applicable dimension, and a docs test keeps verdict names
out of the reports page's Not applicable sentences. The CHANGELOG entry
also covers the coverage notice fix for an exception Harbor recorded.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/reports.mdx said a failed run keeps `neutral`, "which the HTML
labels Changes required". The HTML labels `neutral` as Neutral. A
failed run reads Changes required because the HTML report turns its
verdict into `fail`, also in the full Tier 3 payload it embeds; only
the run's payload keeps `neutral`.

Say that, and that a successful run's `neutral` verdict reads Neutral.
The completed-agent docs test now checks both runs against the rendered
HTML and the embedded payload.

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

An evaluator card with no lift said its judge-mixed cases left "no
comparable result". The lift is also withheld when the loaded rewards
cannot confirm the comparison, for example when a logical trial's rows
name two cases or `lift.json` records more mixed cases than the rewards
identify. Matching-judge cases can still exist then.

Keep "no comparable result remains" for a card whose comparison basis
records `contributing_attempts` as 0, which needs a complete load. Any
other card with no lift now says "the loaded results cannot confirm the
comparison". Update docs/reports.mdx and the Unreleased CHANGELOG entry
from #418 to match.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Fixed entry for the coverage notice said the collector reports the
job failure as `trial <label> recorded <Type>: <message>`. The job
failure opens with `Harbor evaluation statistics account for N/M
completed trials; `, so that clause is only how it ends. The entry now
says so, and a test checks the live job failure and the entry.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Unreleased entry for the judge-mixed lift note said a card with no
lift says the loaded results cannot confirm the comparison "when they
do not show that no attempt was left to compare". It now says the card
says no comparable result remains when the loaded results show that no
attempt fed the lift, and otherwise that they cannot confirm the
comparison. A test checks that wording in the entry and the matching
docs/reports.mdx paragraph.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The previous wording change left one line of the Unreleased entry for
the judge-mixed lift note over 90 characters. Rewrap the rest of the
paragraph. The text is unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main released 0.9.0, which moved the judge-mixed lift entry into the
released section. Take main's CHANGELOG and add this branch's entries
under Unreleased instead: the recorded job exception in coverage notices,
the Not applicable dimension row, and a new entry for the no-lift card
note rather than an edit to the released one. The CHANGELOG test now
reads the new no-lift entry.

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

The completed-agent section said "The payload keeps `neutral` for a failed
run" in the same sentence that says the payload embedded in the HTML report
records `fail`, so a reader could not tell which payload keeps `neutral`.
Name the `tier3` object of a `validate --tier3` JSON report. The later
lift sentence also said the payload records the failed run's verdict as
`neutral`, which the HTML-embedded payload does not; it now says only that
both payloads keep the lift in `summary.overall_lift`.

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

The branch corrects two docs sentences but recorded neither in the
changelog. Add Unreleased Documentation entries: the live evaluation guide
now limits the empty expected_output rejection to the {"skill_name",
"evals"} dataset, and Reports & Results now says the HTML report and its
embedded Tier 3 payload show a failed run's verdict as fail (Changes
required) while the JSON report's tier3 object keeps neutral. Tests pin
both entries' text and their place under Unreleased Documentation.

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

The docs say both `skillevaluator tier3 ./my-skill` and `tier3 init-harbor-task`
reject an empty `expected_output` only in a {"skill_name", "evals"} dataset.
The test ran only `init-harbor-task`, so a stricter check added only to the
`tier3 PATH` dataset step would not have failed it.

The test now also runs that step on each dataset shape: it accepts the flat
JSON list, `{"cases": [...]}` in .json and .yml, the YAML list and the JSONL
file, rejects the object shape in .json and .yml, and leaves the evals folder
unchanged. The object shape in YAML and `{"cases": [...]}` in .yml are new
cases for both commands.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Take main's CHANGELOG.md and re-add this branch's two Documentation
entries and three Fixed entries under Unreleased.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two tests required their CHANGELOG entries to sit under Unreleased, so a
release that moves Unreleased into a dated section would fail them. They
now find each entry by its opening words in any section, still require
the Documentation subsection, and fail only when the entry sits in 0.9.0
or an older released section.

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

Checked the reworded Tier 3 report texts: the Not applicable dimension row, the judge-mixed No lift note keyed on comparison_basis.contributing_attempts, and the coverage-notice regex that reads the collector's trial <label> recorded Type: message failure. The code holds up: the regex is needed for the Harbor step-exception case and ignores labels shaped like a type, both note branches match their payloads, and the changed tests pass. Both findings are in the new text about a failed run's verdict, which states the rule more broadly than the code behaves.

Findings: 2 P3.

Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
rng1995 and others added 4 commits November 14, 2026 11:08
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…quired

A default `validate --tier3` run keeps Tier 3 advisory, so its report
labels a failed run's `fail` verdict Failed (advisory), and its command
status follows the required tiers. Only the standalone Tier 3 report.html
and the report of a `validate --block-on-agent-eval` run read Changes
required. Reports & Results and the CHANGELOG entry now say so.

The CHANGELOG entry also no longer implies that every failed run keeps
`neutral` in the JSON `tier3` object: a `validate --block-on-agent-eval`
run without a valid Tier 3 source fails before any agent runs and records
`fail` there too.

Tests run `validate --tier3` with and without --block-on-agent-eval, and
without a valid Tier 3 source, and check the texts against its reports.

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

The `tier3` object of a `validate --tier3` JSON report keeps `neutral`
when the run's collected results record the failure, for example when
one of several agents fails. When the execution backend reports a
failure after the agents scored, such as a Harbor job that exits with an
error after its trials, the run is marked failed but the payload keeps
those scores, its `summary.overall_score` and the verdict they give,
such as `pass` or `fail`, in advisory and blocking runs alike. A
blocking run without a valid Tier 3 source is no longer described as
the only failed run that records `fail` there.

The CHANGELOG entry and Reports & Results now say this, and a test runs
`validate --tier3` on a scored run the backend marks failed to pin the
JSON verdict, the agent status, the HTML labels and the documented text.

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

This is worth merging: I checked the five corrections against current main and each one still fixes something that is wrong there. The coverage notice returns nothing (or the later error) for trial X recorded SomeError: ..., which is what the collector writes for a step exception. The Not applicable row says the verdict stays NEUTRAL although a scored dimension under 0.40 makes the agent FAIL. The No lift card says nothing comparable remains even when the counts were never loaded. And the empty expected_output text only holds for the {skill_name, evals} shape.

The two failed-run wording problems raised earlier on this PR are fixed. The CHANGELOG entry no longer says every failed run keeps neutral in the JSON, and the docs now separate the standalone and --block-on-agent-eval reports (Changes required) from the default validate --tier3 report (Failed (advisory)). The new tests run validate --tier3 both ways and check the exit code, hero status, labels and JSON verdict. I ran the ones that import here and they pass; the scaffold and incomplete-arms tests need the Harbor version CI uses, so I could not run those. CI is green and it merges cleanly with main.

Two small things, neither blocking. The failed-run CHANGELOG entry has grown long (inline note). And #560 still has the old wording in the template and in reports.mdx and conflicts with this PR in four files, so whichever of the two lands second needs to keep these fixes rather than take the other side wholesale.

Comment thread CHANGELOG.md Resolved
rng1995 and others added 5 commits November 14, 2026 21:44
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…opped runs

The CHANGELOG entry for the failed-run label correction now gives the
rule: the HTML reports show a failed run's verdict as `fail`, labelled
Changes required in the standalone Tier 3 report.html and in a
`validate --block-on-agent-eval` report, and Failed (advisory) in a
default `validate --tier3` report, while the `tier3` object of the JSON
report can still record `neutral` or the verdict the agents' scores give.
Reports & Results keeps the per-case detail.

A failed run whose budget left planned attempts not run records
`incomplete` in the `tier3` object, and the HTML reports label its
verdict Incomplete; the standalone report's command status reads
Incomplete too. Reports & Results and the entry now say so. A new test
runs that case, for a failed peer agent and for a backend error, through
`validate --tier3` with and without `--block-on-agent-eval`.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The entry now states the rule and points to Reports & Results for the detail: the HTML reports show a failed run as fail, labelled Changes required or Failed (advisory) by gate, while the JSON tier3 object can still carry neutral or the verdict the scores give. The tests pin the shorter wording.

Signed-off-by: Christopher Kevin <[email protected]>
@chrisknvidia

Copy link
Copy Markdown
Collaborator

Review follow-up on b420cd8d516e.

No new source defect confirmed. The prior failed-run wording and CHANGELOG concerns are addressed in the reviewed head. With the pinned Harbor 0.25.0 environment, 134 dimension-explanation/completed-agent/incomplete-arm/judge-lift checks pass. These use generated result/report examples, not a new provider-backed evaluation. Please resolve the current merge conflict and preserve these output corrections when combining with #560, which changes the same reporting surfaces.

rng1995 and others added 6 commits November 16, 2026 02:57
…ollowups

The failed Tier 3 run entry keeps the shorter rule from the branch head and
adds one sentence: a failed run whose budget left planned attempts not run
reads Incomplete instead. The tests that pin the entry take the branch
head's assertions; the budget-stopped test keeps its check of that sentence.

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

For a failed run whose budget left planned attempts not run, only the
Tier 3 quality chip, the overview's verdict card and the command status of
the standalone report.html read Incomplete. The Tier 3 tile still reads
Changes required, or Failed (advisory) when Tier 3 is advisory, and the
payload embedded in the HTML report records fail. Both payloads leave
summary.overall_lift null, so the Skill Lift card reads N/A and Run details
& provenance has no Best-agent lift line.

Reports & Results now says so. The CHANGELOG entry drops its clause that
such a run reads Incomplete instead. The test checks the tile, the verdict
card, the embedded payload and the lift in both reports. Two tests reuse
the existing doc block and CHANGELOG entry helpers instead of copies.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995
rng1995 enabled auto-merge (squash) November 16, 2026 14:50
Main now matches the exception type after " recorded " in coverage notices,
says only that a Not applicable dimension keeps the agent from PASS, and says
when a no-lift card can and cannot confirm the comparison, with their tests
and docs. Keep main's code, template, docs and tests for those and drop this
branch's copies and their CHANGELOG entries.

Keep main's rewrite of the failed-run verdict docs and add the case it does
not cover: a failed run whose budget left planned attempts not run records
incomplete, its Tier 3 quality status reads Incomplete, and both payloads
leave summary.overall_lift null. The CHANGELOG entry and its tests now cover
only that case. The empty expected_output docs fix is unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995
rng1995 merged commit ae8cd10 into main Nov 16, 2026
25 checks passed
@rng1995
rng1995 deleted the naren/fix-reporting-wording-followups branch November 16, 2026 17:04
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