Repository navigation
feat(harness-ops): probe ${CLAUDE_EFFORT} in a skill a subagent loads through the Skill tool - #10626
Conversation
…he Skill tool in a subagent Adds behavior-probes case subagent/skill-tool-skill-placeholder-effort and record 14. One capped live run on Claude Code 2.1.310 showed the placeholder expands to the subagent's own effort pin (low), not the session level (medium) that record 13 found for a preloaded skill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 2.1.310 Record 15: the preloaded case still reads the session's medium while the subagent's hook payload reports low, so the Skill-tool and preloaded paths differ on the same version. Record 14 and the changelog fragment cite it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s on 2.1.312 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed No findings. I read the full diff and the PR context, and checked the sibling
|
|
claude-security-review reviewed No security issues found. critical-findings: 0 The change adds a behavior-probes case and two records. The case is
|
Post-merge mutation testingKilled 1, survived 6, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #6908
Summary
Problem:
${CLAUDE_EFFORT}in a skill preloaded into a subagent expands to the session effort, and nobody had probed a skill a subagent loads through the Skill tool. This adds a behavior-probes case for that path and records its live result: the Skill-tool path expands to the subagent's own effort (lowpin, sessionmedium), while the preloaded path still gives the session's level.Fix
subagent/skill-tool-skill-placeholder-effort: a subagent pinnedeffort: low, withtools: Bash, Skilland noskillspreload, loadsprint-effortthrough the Skill tool and runs theecho effort=${CLAUDE_EFFORT}it names. Its scaffold removes the shared preloading agents, so a driver cannot measure the preloaded path by mistake.records.mdgains record 14 (Skill-tool path gives the subagent's level) and record 15 (preloaded control on the same version still gives the session's level), each refreshed on 2.1.312.discovery:researchindiscovery:researcher, reads the session level, andplugins/discovery/reference/parent-contract.mdalready states that ("${CLAUDE_EFFORT}in a preloaded skill is the session's level"). The eight skills that load through the Skill tool get the subagent's level, so none needs a change.Verification
probe.py validate: 42 cases, 0 problems.probe.py run --dry-runon both cases: pass.probe.test.sh: exit 0.python3 -m unittest test_probe: 56 tests OK.expect.jsonwas corrected to the observedeffort=low.probe.py run --live --max-runs 2 --max-cost-usd 4 --keepover both cases: 2 runs, both pass. In the raw stream, the subagent's Skill call returnedLaunching skill: print-effort, then it ranecho effort=low, and no literal${CLAUDE_EFFORT}reached a command. Hookeffort.logshowseffort=lowfor both subagents; the preloaded one ranecho effort=medium.Left out: other subagent-area cases, which this change does not touch.
Related
bugs:scanhunter effort, one of the Skill-tool skills named in fix: skills reading ${CLAUDE_EFFORT} inside a subagent may get the session effort #6908.🤖 Generated with Claude Code