Repository navigation
feat(coverage): name configured agents that send no events - #304
Merged
Merged
Conversation
Hook coverage was a file check: a hook entry on disk made an agent `covered`. Codex sat on that line for three months on the dogfood machine, last event 2026-07-16, first because its Windows sandbox could not authenticate (#302) and independently because Codex skips hooks the developer has not approved (#300). Nothing said so. `doctor` now reads the trail index read-only and warns on every configured agent with no event in seven days; `doctor --json` gains `hooks_last_seen` and `hooks_silent`. The heartbeat carries `hooks_silent` and names those agents in its reason, but does not turn `degraded`: an unused agent is silent too, and a beat that degrades for that teaches a fleet to ignore it. Run here the day it was written, it named Codex and passed Cursor, Claude Code and Antigravity. SECURITY.md now states three limits it did not: the ingest-only token lets its holder, Codex's sandbox included, add false host-stamped events; the sandbox cannot write the spool, so its events are lost while the recorder is down; and configured is not recorded. README test count 1870 -> 1884. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 21, 2026
…ved-recently # Conflicts: # CHANGELOG.md # README.md
…ved-recently # Conflicts: # README.md
…ved-recently # Conflicts: # README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #300, #302.
Why
Hook coverage was a file check: if the hook entry existed, the agent was
covered. On the dogfood machine Codex sat on that green line while its last recorded event was 2026-07-16, first because its Windows sandbox could not authenticate (#302, fixed in #303) and independently because Codex skips hooks the developer has not approved (#300). An outside audit put it plainly: configured must never read as observed.What
AuditTrailDB.last_event_by_source(): newest event timestamp per source app.hook_coverage.silent(states, last_seen, now, days=7): configured (covered) agents with no event in the window. Acursor_cloudevent does not vouch for local Cursor.doctor: newhooks_observedcheck, reading the index read-only (mode=ro, never creates it). Warns, naming each silent agent and why it may be silent; OK lists the observed ones. A warning, not a failure: an unused agent is silent too.doctor --jsongainshooks_last_seenandhooks_silent(additive).hooks_silentfield, and the agents named inaction.reason. Deliberately notdegraded, for the same reason the beat already refuses to degrade on an agent that is not installed. A SIEM can alert onheartbeat.hooks_silentwhere silence is unexpected. The field-allowlist privacy test is updated with that justification: agent names only, no timestamps, counts or paths.covereddoes and does not mean.Evidence
Run against the real dogfood index on the day it was written:
14 new tests: the window, never-seen and stale cases, non-configured agents ignored, cloud sources not counted, timestamp forms; doctor names silent agents, warns rather than fails, never creates a missing index, says nothing with no configured agents; the heartbeat names silent agents without degrading and survives an unreadable index.
Checks
Frozen files untouched; fingerprint
15846a0915769d4a. Ruff clean. Full suite locally: the three known local-only failures plus the README count (CI collects two fewer). README count 1870 to 1884.Not in this PR
Codex's approval state itself, which cannot be read from disk, so #300 stays open. A spool the sandbox can write (#302).
🤖 Generated with Claude Code