Repository navigation
v0.1.11 — the client's hook trust is not litter
Install or upgrade:
npm install -g agents-can-communicate@0.1.11
acc installIf you use ACC with Codex and have run acc uninstall at any point since 0.1.9, your write guard there is currently off. Nothing told you: acc doctor reported the adapter installed, codex plugin list reported the plugin enabled, and the client printed hook: SessionStart Completed while executing nothing. Upgrading and running acc install restores it.
What went wrong
Codex keeps one [hooks.state."<plugin>:…"] table per hook, holding a hash it has trusted. It will not run a hook it has no record for, and it does not say so.
0.1.9 removed those tables on uninstall, calling them litter naming a plugin that was gone. Its release notes say:
Checked before touching them: a hook whose recorded hash no longer matches still runs, so this is tidiness rather than repair.
The check was real. The conclusion was wrong, because it perturbed the record instead of removing it. Absence was never tested — and absence is the whole mechanism. Proven by replacing ACC's hook with a two-line script that only appends its stdin to a file: an empty file, beside a Completed line.
How we know it was the sole cause
Three explanations were live: the client's own 0.147 → 0.150 upgrade, a hash bound to content ACC rewrites on every install, or the deletion. Writing back the exact hashes captured before the deletion — from an ACC three releases older — revived the guard immediately:
Command blocked by PreToolUse hook: file:src/parser.mjs is claimed by alice
file unchanged
That kills both alternatives at once and establishes the property that makes this a rule rather than a patch: the record is granted once, by a person, survives ACC upgrades, and nothing ACC writes can put it back. So it is never ACC's to remove.
The other half: it has to be visible
acc doctor now says when a client's hooks are untrusted, because every other indicator reads healthy while nothing runs:
store healthy; 0 live; protection none; 3 of 4 adapter(s) installed
start codex once and accept the hook trust prompt # its hooks run nothing until then
That is an action, not a diagnostic. The first version of this fix put it in diagnostics, which acc doctor renders only under --json — so on the very machine it was written for, the text output would have stayed silent and the guard would have stayed off. Adapters can now name something only a person can carry out, and it prints where a person reads. It is said only when something is wired: a warning about hooks that do not exist is how a real one gets ignored.
Verified on the published artifact
1. uninstall → install (the pair that used to disarm it):
trust records 5 → 5 → 5 (before: 5 → 0)
2. a live Codex session, no flags, guarded claim held by a peer:
Command blocked by PreToolUse hook: file:src/parser.mjs is claimed by alice2
hook: PreToolUse Blocked file unchanged
3. trust removed by hand — what a person sees:
start codex once and accept the hook trust prompt
4. trust restored: doctor says nothing about it
Recorded rather than quietly replaced
The reversal is written into DESIGN_DECISIONS.md beside the reasoning it overturns, and the changelog quotes 0.1.9's false claim instead of editing it away — with the generalisation this cost a release to learn:
To find out whether state is load-bearing, take it away. Changing it tests something else.
Record
| Built from | 8d9c8a7 |
| Tarball | agents-can-communicate-0.1.11.tgz, 147 KB, 111 entries |
| sha256 | 0eec8874230233671aad83313b5f4030bc67a6b915ea0140d1e912ef4ac7d0ac |
Digest verified by downloading the tarball back from the registry. 945 tests passing, 0 failing.