Repository navigation
fix(reporting): correct Tier 3 failure, verdict and lift wording in reports and docs - #561
Conversation
…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
left a comment
There was a problem hiding this comment.
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.
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
left a comment
There was a problem hiding this comment.
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.
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]>
|
Review follow-up on 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. |
…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]>
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]>
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
failure: a job whose statistics miss a trial ends its failure withtrial <label> recorded ExceptionType: message, but the exception pattern only matched a type at the start or after:. The notice'sfailurewasnull, or the type of a later error, live and from a saved run, althoughdocs/reports.mdxpromises the first Harbor exception type. The pattern now also matches a type right afterrecorded.docs/reports.mdxsaid 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.comparison_basis.contributing_attemptsis 0, and otherwise that the loaded results cannot confirm the comparison.docs/reports.mdxsays when each note applies. The CHANGELOG gets a new Unreleased entry; the released 0.9.0 entry is unchanged.docs/reports.mdxsaid a failed run keepsneutral, which the HTML labels Changes required, without saying which report keeps it. The HTML reports show a failed run's verdict asfail, also in the Tier 3 payload they embed. The standalone Tier 3report.htmland avalidate --block-on-agent-evalreport label it Changes required; a defaultvalidate --tier3report, where Tier 3 is advisory, labels it Failed (advisory), and its command status follows the required tiers. Thetier3object of avalidate --tier3JSON report keepsneutralwhen 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_scorestays set and that object records the verdict the scores give,passorfail; an error that begins with an agent's name marks that agentfailed. A failed run whose budget left planned attempts not run recordsincompletethere, 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.expected_outputdocs:docs/tier3-live-evaluation.mdxsaidtier3 PATHandinit-harbor-taskreject an emptyexpected_output. They reject it only in a{"skill_name", "evals"}dataset; a flat JSON or YAML list,{"cases": [...]}or anyevals.jsonlis legacy, accepts it and leavesaccuracyandgoal_accuracyN/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
failwhile the report labels the verdict Incomplete. This PR documents the label and the JSONtier3object and does not change that payload.Tests
validate --tier3with and without--block-on-agent-evalon 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 thetier3 PATHdataset step andinit-harbor-taskon each dataset shape.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.pyandtests/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/reportingplus 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 intests/tier3/test_baseline_timeouts.py) also fail on main 5978061 locally.ruff check,ruff format --checkof the changed Python files and the OSS boundary scan pass.git merge-tree --write-treeof this branch against main d41ec54 is clean.🤖 Generated with Claude Code