mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 08:51:01 +01:00
- Subagents that outlived /clear land in a new session's subagents/ dir with no meta: borrow the spawning session's agent-<id>.meta.json, else the first prompt line. Clears the $35.93 '?' row; no launch lacked a description. - bash_tokens_per_call rose 41% with Bash tokens/day flat (cheap calls fell 28%). Compare bash_tokens_per_day and bash_big_result_share (results >2k) instead; the Large-Bash lever keys on the share. Tool counters grouped in ToolPayloads. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TjyHmRrjZssaxXDWcGuCeQ
16 lines
1.3 KiB
JSON
16 lines
1.3 KiB
JSON
{
|
|
"title": "token_audit: label every subagent; Bash metric per day + big-result share",
|
|
"objective": "The weekly audit must attribute every subagent dollar to a task label (no '?'/'unknown' rows) and must not report a Bash-output regression that is only a shrinking call count. Success: the 2026-10-04..10-10 window renders with no '?'/'unknown' subagent rows, and the snapshot compares bash_tokens_per_day and bash_big_result_share instead of bash_tokens_per_call.",
|
|
"acceptance_criteria": [
|
|
"Subagent files continued in a post-/clear session borrow the spawning session's agent-<id>.meta.json; otherwise the first prompt line labels them; never '?'",
|
|
"extra_metrics emits bash_tokens_per_day and bash_big_result_share (results > 2000 tokens); COMPARED uses them",
|
|
"The Large-Bash lever keys on bash_big_result_share > 0.25",
|
|
"token_audit tests pass at 100% branch coverage"
|
|
],
|
|
"out_of_scope": [
|
|
"De-duplicating the 8 API calls that appear in both the original and continuation subagent file",
|
|
"A PreToolUse guard against whole-file cat/sed (needs settings.json, user's call)"
|
|
],
|
|
"verifier": "python3 -m pytest python_pkg/token_audit --cov=python_pkg/token_audit --cov-branch; python3 -m python_pkg.token_audit --since <10-04 14:13 UTC> --no-write --recommend"
|
|
}
|