Repository navigation
fix(tier3): derive accuracy scores from criterion verdicts - #190
Conversation
Signed-off-by: mavericksea-ai <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the change and its tests; no findings. The new tests fail on main and pass here, and the related test modules pass. The branch needs main merged in to clear a CHANGELOG.md conflict before it can merge.
Signed-off-by: mavericksea-ai <[email protected]>
|
Thanks @rng1995 — merged current Validation on the merged branch:
GitHub now reports the branch as mergeable. The new workflow runs are marked |
Resolve the CHANGELOG.md conflict with NVIDIA#188 and NVIDIA#193 by keeping both sides' Fixed entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Resolve the CHANGELOG.md conflict with NVIDIA#199 by keeping both sides' Fixed entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Resolve the CHANGELOG.md conflict with NVIDIA#203 by keeping both sides' Fixed entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Bring in main through NVIDIA#196 (472c12f), which excludes the inapplicable SKILL_IDENTIFIED criterion from negative-case accuracy and records excluded_criteria/scoring_policy. Conflicts: - CHANGELOG.md: kept every Unreleased ### Fixed entry from both sides; the PR entry now states the applicable-criteria formula. - src/skillevaluator/tier3/eval_core/llm_judge.py and src/skillevaluator/tier3/harbor/templates/eval.py: combined both rules. Complete criteria always determine the score as passing applicable criteria / applicable criteria (5 for positive cases, 4 with SKILL_IDENTIFIED excluded for negative cases); the model's numeric score is used only for score-only payloads, which NVIDIA#196's validator still rejects for negative cases. NVIDIA#196's excluded_criteria/scoring_policy fields are kept. Host and verifier share identical scoring code. Dropped the template's negative-case '"score": 0.8' -> '"score": 1.0' prompt rewrite, which is a no-op now that this PR's example already scores five passes as 1.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The Tier 3 guide said positive cases "retain their existing scoring contract", but this PR changes that contract: complete criterion verdicts now determine accuracy for every case, and the judge's numeric total is only a fallback for positive-case replies without criteria. State the applicable-criteria formula for both positive and negative cases. Pin the combined behaviour in both runtimes: negative cases score passing criteria out of the four applicable ones for every count, whatever the SKILL_IDENTIFIED verdict or model total, and record excluded_criteria/scoring_policy. A docs test guards the wording. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
No conflicts; brings the branch up to date with main after NVIDIA#182. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Re-reviewed after merging main through #196 and #182. Accuracy is now passing applicable criteria divided by applicable criteria in both the host judge and the Harbor verifier: negative cases leave SKILL_IDENTIFIED out of both counts, and the model's own score is used only for score-only replies on positive cases. Host and verifier agree on 34 edge cases, and the Tier 3, reporting and judge suites pass.
Brings the branch up to date with main after NVIDIA#190. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Resolve the CHANGELOG.md conflict with #190 by keeping both sides' Fixed entries. `uv lock --check` passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #182 (Kata Containers backend), #190 (criterion-derived accuracy) and #201 (failed skill-read credit). Conflict: src/skillevaluator/tier3/harbor/runner.py. Main imports Iterable for the new _staged_task_environment_error() check and rejects staged with-skill tasks that the selected environment cannot run. This branch imports Sequence and collects every staged task path so the runtime context can be checked against the publication target. Resolution: import Iterable, Iterator, Mapping and Sequence, and keep both steps for each agent's with-skill tasks. The staged paths are collected first, then main's environment check runs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #77 (publication evidence: required-tier rule, source digest and publication target identity, recognized Tier 1/2 producers, Tier 3 run ID, report-output isolation, runtime binding), #182 (Kata), #196 (target dependency audits, negative-case accuracy, resource usage), #190 (criterion-derived accuracy), #201 (failed skill reads earn no credit) and the third-party notice updates. Conflicts: - CHANGELOG.md: every entry from both sides under one Unreleased Added, Changed, Fixed and Security heading. The PR entry saying NEUTRAL never fails --block-on-agent-eval is dropped for main's PASS-only rule. - THIRD_PARTY_NOTICES.md: no generator exists, so merged by hand: the Base row lists Packaging (main) and regex (PR); both the OpenClaw fixture and the Unicode data notices are kept. - docs/ci-integration.mdx, cli-reference.mdx, tier1-validation.mdx, tier3-live-evaluation.mdx: both sides' rows and text. The blocking Tier 3 rule is main's (only a completed PASS with complete coverage passes); the PR's regression, partial-run and gated-skip wording stays. Kata and Hermes rows are both kept. The dependency audit text describes the merged audit below. - cli.py: the PR's target resolution and plugin dispatch, with main's publication_name, report-output isolation (on the resolved content root, plugins included), pre-Tier 1 autopilot generation, sanitized Tier 3 skip reasons, repo-context exclusions and expected_skill_name. - deduplication/utils/skill_collector.py: the PR's descriptor-anchored collector; generated files are matched with main's matches_filesystem_name, since main renamed the constant to BENCHMARK.md. - evaluation/tier3_report.py: the PR's dataset source and HTML helper, with main's persisted publication target, skill name and agent seconds. - reporting/base.py, cli.py, console_ui.py, json_reporter.py: main's publication assessment, skip-reason and display hardening, with the PR's plugin helpers and run-status rows. The PR's lift-basis line is limited to finite in-range scores. - reporting/html.py and templates/report.html.j2: the PR's run-status cards and rows with main's publication badge, cleanly-skipped filter and data-attribute handlers. A completed Tier 3 card can only become more conservative from main's evidence status. _results_to_dict takes an optional run status. - reporting/markdown.py: the PR's run-status headline and rows, with main's publication status line, Validators Run and advisory-skip rows, and main's inline, code-span and number hardening. - reporting/benchmark.py: the PR's run-status card and plugin card. The skill card's verdict and each Tier Status row are the more conservative of the run status and main's publication assessment (_publication_evidence_tier_status keeps main's row rules whole). Main's metadata lines (source digest, Tier 3 run ID, Tier 2 policy) and text hardening are kept. - tier1/commands.py: main's per-check producer stamps and target binding on the PR's plugin flow. Skill-scoped plugin checks scan skills/ but bind the plugin root. - tier2/commands.py, tier3/commands.py: imports and keyword arguments from both sides. - tier3/eval_core/atif_helpers.py, llm_judge.py, harbor/templates/eval.py: the PR's tool-call iteration and N/A judges, with main's is_error marking and skill-identification applicability on accuracy. - tier3/harbor/report_data.py: imports from both sides. - tier3/harbor/runner.py: main's Docker-engine env modes and repo-context exclusions in the PR's shared task inputs. Every arm's staged tasks are checked for publication-target binding. - validators/base.py, schema.py: main's filesystem-aware exclusions with the PR's plugin-tree pruning. - validators/dependencies.py: the PR's no-install engine for requirements, npm, container and MCP pins, with main's #196 rules. pyproject.toml follows main's static PEP 621 contract; anything it cannot audit is INCOMPLETE. pip-audit evidence is validated strictly and missing or failed evidence is INCOMPLETE in every run. Clean runs record success details and per-target dependency_coverage. - tests/reporting/test_advisory_skip_verdict.py: main's Markdown counts. - tests/reporting/test_reporters.py: both sides' new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
* fix(tier3): derive accuracy scores from criterion verdicts Signed-off-by: mavericksea-ai <[email protected]>
* docs(tier3): describe criterion-derived accuracy scoring Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #77 (publication evidence: required-tier rule, source digest and publication target identity, recognized Tier 1/2 producers, Tier 3 run ID, report-output isolation, runtime binding), #182 (Kata), #196 (target dependency audits, negative-case accuracy, resource usage), #190 (criterion-derived accuracy), #201 (failed skill reads earn no credit) and the third-party notice updates. Conflicts: - CHANGELOG.md: every entry from both sides under one Unreleased Added, Changed, Fixed and Security heading. The PR entry saying NEUTRAL never fails --block-on-agent-eval is dropped for main's PASS-only rule. - THIRD_PARTY_NOTICES.md: no generator exists, so merged by hand: the Base row lists Packaging (main) and regex (PR); both the OpenClaw fixture and the Unicode data notices are kept. - docs/ci-integration.mdx, cli-reference.mdx, tier1-validation.mdx, tier3-live-evaluation.mdx: both sides' rows and text. The blocking Tier 3 rule is main's (only a completed PASS with complete coverage passes); the PR's regression, partial-run and gated-skip wording stays. Kata and Hermes rows are both kept. The dependency audit text describes the merged audit below. - cli.py: the PR's target resolution and plugin dispatch, with main's publication_name, report-output isolation (on the resolved content root, plugins included), pre-Tier 1 autopilot generation, sanitized Tier 3 skip reasons, repo-context exclusions and expected_skill_name. - deduplication/utils/skill_collector.py: the PR's descriptor-anchored collector; generated files are matched with main's matches_filesystem_name, since main renamed the constant to BENCHMARK.md. - evaluation/tier3_report.py: the PR's dataset source and HTML helper, with main's persisted publication target, skill name and agent seconds. - reporting/base.py, cli.py, console_ui.py, json_reporter.py: main's publication assessment, skip-reason and display hardening, with the PR's plugin helpers and run-status rows. The PR's lift-basis line is limited to finite in-range scores. - reporting/html.py and templates/report.html.j2: the PR's run-status cards and rows with main's publication badge, cleanly-skipped filter and data-attribute handlers. A completed Tier 3 card can only become more conservative from main's evidence status. _results_to_dict takes an optional run status. - reporting/markdown.py: the PR's run-status headline and rows, with main's publication status line, Validators Run and advisory-skip rows, and main's inline, code-span and number hardening. - reporting/benchmark.py: the PR's run-status card and plugin card. The skill card's verdict and each Tier Status row are the more conservative of the run status and main's publication assessment (_publication_evidence_tier_status keeps main's row rules whole). Main's metadata lines (source digest, Tier 3 run ID, Tier 2 policy) and text hardening are kept. - tier1/commands.py: main's per-check producer stamps and target binding on the PR's plugin flow. Skill-scoped plugin checks scan skills/ but bind the plugin root. - tier2/commands.py, tier3/commands.py: imports and keyword arguments from both sides. - tier3/eval_core/atif_helpers.py, llm_judge.py, harbor/templates/eval.py: the PR's tool-call iteration and N/A judges, with main's is_error marking and skill-identification applicability on accuracy. - tier3/harbor/report_data.py: imports from both sides. - tier3/harbor/runner.py: main's Docker-engine env modes and repo-context exclusions in the PR's shared task inputs. Every arm's staged tasks are checked for publication-target binding. - validators/base.py, schema.py: main's filesystem-aware exclusions with the PR's plugin-tree pruning. - validators/dependencies.py: the PR's no-install engine for requirements, npm, container and MCP pins, with main's #196 rules. pyproject.toml follows main's static PEP 621 contract; anything it cannot audit is INCOMPLETE. pip-audit evidence is validated strictly and missing or failed evidence is INCOMPLETE in every run. Clean runs record success details and per-target dependency_coverage. - tests/reporting/test_advisory_skip_verdict.py: main's Markdown counts. - tests/reporting/test_reporters.py: both sides' new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Summary
Accuracy judges currently accept a model-supplied total even when their complete five-criterion verdicts imply a different score. The Harbor prompt itself gives all five criteria as true alongside 0.8. In a two-case fixture this changes accuracy lift from the rubric's +0.10 to −0.10.
Compute accuracy from complete criterion verdicts in both runtimes, retain the legacy score-only fallback, and correct the prompt example. Add regressions for each possible criterion count, both runtimes, compatibility paths and lift direction.
Closes #189.
Verification
Rechecked after merging main at
098f96ainto this branch (294a822):make lint— passes; repository-wideruff check .also passesmake test— 11,295 passed; two failures also reproduce on unmodified main at098f96a; 20 skipped, 9 deselectedmake build— wheel and sdist built; source/package boundary and public benchmark checks passThe two remaining local failures are
test_cli_surface_matches_goldenandtest_cli_reporter_consoles_print_emoji_codes_literally(CLI surface comparison and console line wrapping). Both reproduce unchanged on unmodified main under the same environment. Live/integration tests were excluded by the repository's default test configuration.Original before/after validation: the 14 failing-before regressions pass after the fix; six compatibility cases pass both before and after. Offline reproduction also confirmed the issue in an independently installed v0.5.0 Git release.
Release Impact
CHANGELOG.md