session-memory: error-body mining into digest (WP-0006 T01)

build_digest now extracts normalized error fingerprints + samples from failed
events (error kind + failing tool_result bodies) into a durable error_snippets
list — paths/numbers/uuids/addrs stripped so the same error collapses to one
fingerprint with a count; Python traceback header skipped in favour of the real
exception line. Durable in Tier 2 (survives Tier 1 eviction). SCHEMA_VERSION ->
2 (re-ingest needed to populate). 7 new tests; suite 95/95 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 12:45:01 +02:00
parent dbd212d2b1
commit 97379e9658
4 changed files with 160 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ event/blob bodies already ingested.
```task
id: AGENTIC-WP-0006-T01
status: todo
status: done
priority: high
state_hub_task_id: "136a0a73-61c2-4390-876c-de3880a967e6"
```