Repository navigation
fix(tier3): exclude failed skill reads from execution credit - #201
Conversation
Signed-off-by: YMuskrat <[email protected]>
Signed-off-by: YMuskrat <[email protected]>
Signed-off-by: YMuskrat <[email protected]>
Signed-off-by: YMuskrat <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 3 findings (0 P1, 1 P2, 2 P3); 3 posted inline.
Signed-off-by: YMuskrat <[email protected]>
Signed-off-by: YMuskrat <[email protected]>
Require matching tool result IDs before treating a read as failed. Respect shell -- delimiters and stdin operands when identifying isolated reads. Cover both host and verifier, including actual shell output and Claude log conversion. Validation: 571 focused tests passed; make lint and make build passed. Full-suite attempts stalled in this environment on both this branch and unchanged main; a full-suite pass is not claimed. Signed-off-by: YMuskrat <[email protected]>
128e184 to
943c655
Compare
chrisknvidia
left a comment
There was a problem hiding this comment.
Reviewed 943c655869b052ac2db6f0d6764cb7f93b837745: not ready to merge. The failed native Skill-call handling and OpenCode fallback/changelog comments are addressed. The compound-read comment is only partially addressed: a real brace-expanded multi-file read still loses successfully earned skill credit. I added the reproduced P2 case to the existing thread to avoid duplicating it: #201 (comment).
Verification: 2,715 focused tests passed with Harbor 0.24.0. The remaining regression was independently reproduced with real Bash stdout/stderr through both native Harbor and fallback Claude converters, then both host and verifier graders, and compared with main. No live provider/agent E2E or full-suite pass is claimed. Current-head CI has 15 successful checks; Python 3.12 and Python 3.13 test jobs remain in progress at this review.
A single shell operand such as `cat skills/{demo-skill,missing}/SKILL.md`
or `cat skills/*/SKILL.md` can expand into several files. The command
prints SKILL.md and then exits 1 for the other file, but it was counted
as one isolated read, so the failure removed activation, workflow and
routing credit.
A shell failure now cancels a read only when the operand has no brace,
glob, `$` or backtick, so it names exactly one file. Expanding operands
keep their previous credit. Tilde paths still count as one file, since
tilde expansion always yields one path. Host checks and the Harbor
verifier share the rule, and both are covered by a real brace-expansion
run.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
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]>
Keep the structured-content helpers from main alongside the failed-read error helper. The merged code preserves the shell-expansion fix from 7481975. Validation: 500 focused tests passed; make lint and make build passed. The full test attempt timed out after 90 seconds, so no full-suite pass is claimed. Signed-off-by: YMuskrat <[email protected]>
|
Thank you for the review, appreciated. I Merged the latest main and sorted out the changelog/import conflicts. Kept both changelog entries and #203's structured-answer helpers, with the shell-expansion fix from The combined version passed 500 focused tests, lint and the package build. The full suite hit the 90s time limit here, so I'm not claiming a full pass. Added the DCO sign-off to the cleanup commit and checked that all non-merge commits are signed off. |
Resolve the CHANGELOG.md conflict with NVIDIA#196 by keeping both sides' Fixed entries. 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 at 866abb0. All three review threads are addressed: failed isolated SKILL.md reads and failed Skill calls lose credit, compound or expanding shell reads keep their credit, and failed reads in rebuilt OpenCode trajectories are flagged, with host and verifier in parity. The merges with main kept #203's structured-content helpers. The full local suite and all 17 CI checks 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]>
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): exclude failed skill reads from execution credit * fix(tier3): match verifier credit to explicit skill-read results * test(tier3): cover failed skill reads, retries and result ownership * docs: note failed-read grading correction * fix(tier3): handle compound shell reads and failed skill tools * fix(tier3): retain read credit for unrelated errors and extra operands * style(tier3): tidy merged ATIF helper imports Signed-off-by: YMuskrat <[email protected]> Signed-off-by: YMuskrat <[email protected]>
* fix(tier3): keep read credit when a shell path can expand 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
A
Readof the expected SKILL.md currently earns a 1.0 execution score even when Claude explicitly reports that the file does not exist. Preserveis_erroras Harbor-compatible result metadata, carry it through tool normalization with call ownership intact, and exclude explicitly failed document reads from activation, workflow and routing credit in the host and standalone verifier.Successful reads and retries retain their credit, including instruction text that discusses errors. Only results matched to the tool call can mark it as failed. Compound reads and extra file operands (including dash-prefixed files after
--and stdin-) keep their previous credit.Closes #200
Latest verification: 571 focused tests passed. This includes host/verifier regressions for unrelated error results and real shell reads that print SKILL.md before another file fails.
Verification
make lint(passed)make test(attempted; stalled and interrupted, not a full pass)make build(wheel and source distribution passed)Verified with the locked dependencies on Python 3.12.
make lintandmake buildpassed. Full-suite attempts had failures and then stalled in this environment on both this branch and unchanged main (098f96a); both were interrupted. The latest full suite is not claimed green, and its failures have not been fully compared.Release Impact