Repository navigation
Description
What happened?
On main f32c884 (0.5.0), a Claude Read call for the expected SKILL.md receives perfect skill-execution credit even when the result has is_error: true and reports that the file does not exist. The log fallback drops the explicit failure flag, normalization also drops Harbor's native extra.tool_result_is_error, and activation/workflow/routing checks credit the requested path.
Proposed fix
Preserve explicit Claude failure metadata in the fallback trajectory and normalized tool call, respecting source_call_id ownership. Ignore explicitly failed instruction reads in the three positive checks in both host and verifier. Successful retries and ordinary skill content discussing errors should continue to receive credit. Prepared tests cover those controls and real Harbor ATIF result metadata.
Reproduction steps
With SkillEvaluator installed, this runs offline:
import json
from skillevaluator.tier3.eval_core.atif_helpers import extract_tool_calls_as_dicts
from skillevaluator.tier3.eval_core.checks import score_skill_execution, check_routing
from skillevaluator.tier3.eval_core.log_converters import synthetic_trajectory_from_claude_stream_jsonl
events = [
{"type": "assistant", "message": {"content": [{
"type": "tool_use", "id": "read-1", "name": "Read",
"input": {"file_path": "/skills/demo-skill/SKILL.md"},
}]}},
{"type": "user", "message": {"content": [{
"type": "tool_result", "tool_use_id": "read-1", "is_error": True,
"content": "Error: File does not exist.",
}]}},
]
trajectory = synthetic_trajectory_from_claude_stream_jsonl("\n".join(json.dumps(e) for e in events))
calls = extract_tool_calls_as_dicts(trajectory)
print(score_skill_execution(calls, "demo-skill"))
print(check_routing(calls, "demo-skill"))Actual: activation 1.0, workflow order 1.0, skill execution 1.0 and routing 1.0. Expected: a failed read cannot prove successful activation, an instruction read before execution, or successful routing.
The standalone Harbor verifier has the same behavior.
SkillEvaluator version or commit
f32c884 (0.5.0)
Environment
Linux, Python 3.12, Harbor 0.24.0, repository locked dependencies. Offline reproduction; no model calls or credentials required.
Before submitting
- I agree to follow this project's Code of Conduct
- I have searched the open issues and found no duplicate of this report
Activity