Skip to content

[BUG]: Failed SKILL.md reads receive full activation, workflow and routing credit #200

Closed

Description

@YMuskrat

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

Activity

  1. added
    bug
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions