session-memory: infra-overhead + thrash signals (WP-0005 T02)

signals.py: tool_bucket helper + three tool_histogram-based extractors that the
outcome/marker signals were blind to — sig_infra_overhead (hub+task+schema share
of tool calls over threshold), sig_schema_thrash (repeated ToolSearch), and
sig_tool_thrash (one tool dominating). Thresholds in build_context. 8 new tests;
suite 88/88 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 11:12:09 +02:00
parent 70433cda61
commit 21c714e286
3 changed files with 153 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ sessions — fixing the `abandoned` false-positive. Knobs under `[detect]` in
```task
id: AGENTIC-WP-0005-T02
status: todo
status: done
priority: high
state_hub_task_id: "10d57b05-a731-4ece-bf45-f6a98ac77555"
```