Skip to content

Instrument the facility goal (and fix the matcher that made it read zero) - #28

Merged
ly-wang19 merged 1 commit into
mainfrom
claude/session-close-hook
Sep 7, 2026
Merged

ly-wang19 merged 1 commit into
mainfrom
claude/session-close-hook

Conversation

@ly-wang19

Copy link
Copy Markdown
Owner

eval/facility.py reports the L0-L4 ladder from real signal, plus engram-watch --install-hook for the SessionEnd hook that unblocks L1.

The matcher correction matters on its own: MCP tools are named mcp__engram__engram_recall in transcripts, so every ad-hoc engram_recall grep reported zero reads. Real history is 171 calls across 19 sessions. A test pins the prefix strip — reverting it drops L2 to 0.

First reading: L1 fails on lag (p50 3.2 days vs a 60s goal), not coverage (77.4%). The report also flags that the write target and the read target are currently two different memories.

The open question is no longer accuracy — it is whether anything depends on
this memory. That was never measured, and the ad-hoc measurement was wrong:
MCP tools appear in transcripts as mcp__engram__engram_recall, so grepping
engram_recall reported zero reads and confirmed the premise it was meant to
test. The real history is 171 calls across 19 sessions.

eval/facility.py reports the L0-L4 ladder from real signal only: coverage and
ingest lag by source, a structural tool-call matcher with an mcp__ prefix
strip (reverting it drops L2 to 0, and a test pins that), a control count so a
broken matcher cannot masquerade as a finding, supersession rate, and recall
reach labelled as the ceiling it is. L3 usefulness prints NOT MEASURED rather
than inventing a proxy, and L4 says it needs a human. Counts and rates only —
no memory content, no paths.

First reading: L1 fails on lag, not coverage — 77.4% closed but p50 3.2 days
against a 60s goal, and the report states the watcher's 15-45m floor cannot
reach it while a session-end hook can. It also detects that the write target
and the read target are two different memories.

engram-watch --install-hook writes that SessionEnd hook, with dry-run, backup
and an uninstall that leaves every other hook byte-identical.
@ly-wang19
ly-wang19 merged commit 809089b into main Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants