ACC 0.1.11: Codex write guard restored and made visible

ACC 0.1.11 restores the Codex write guard that acc uninstall silently switched off, and makes acc doctor report Codex hooks that are not trusted.

Released

Release contents

After acc uninstall followed by acc install, the ACC write guard in Codex was off while every indicator said healthy. ACC 0.1.11 stops removing the record that causes this, and acc doctor now says when Codex does not trust ACC's hooks. This release belongs to the ACC 0.1 line and was released on 2026-08-27.

Who is affected#

Everyone who uses ACC with Codex and ran acc uninstall on 0.1.7, 0.1.8, 0.1.9 or 0.1.10. Their write guard in Codex is off until they upgrade and run acc install. Nothing told them: acc doctor reported the adapter installed, codex plugin list reported the plugin enabled, and Codex printed hook: SessionStart Completed while it executed nothing.

The 0.1.11 release notes say the removal started in 0.1.9. The code shows it started in 0.1.7, in the change that made acc uninstall clear Codex's trust tables. This page uses 0.1.7.

What changed#

The cause. Codex keeps one [hooks.state."<plugin>:…"] table per hook. Each holds a hash that a person has trusted. Codex will not run a hook it has no record for, and it does not say so. ACC 0.1.7 removed those tables on uninstall and called them leftovers that named a removed plugin. The 0.1.7 notes said that a hook whose recorded hash no longer matches still runs, so the removal was tidiness. The check was real, but it changed the record instead of removing it. Nobody tested absence, and absence is the whole mechanism. A test hook that only appended its input to a file showed it: the file stayed empty next to a Completed line.

How the cause was isolated. Three explanations were open: Codex's own upgrade from 0.147 to 0.150, a hash bound to content that ACC rewrites on every install, and the deletion. Writing back the exact hashes captured before the deletion, from an ACC three releases older, revived the guard at once:

Command blocked by PreToolUse hook: file:src/parser.mjs is claimed by alice
file unchanged

That rules out the first two. It also shows the property that turns the fix into a rule. A person grants the record once. It survives ACC upgrades, and nothing ACC writes can put it back. So ACC must never remove it. Uninstall now leaves it alone.

Visibility. 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

This line is an action, not a diagnostic. The first version of the fix put it among the diagnostics, which acc doctor prints only with --json. The text output would have stayed silent for the people the fix was written for. Adapters can now name a step that only a person can take, and it prints where a person reads. Doctor says it only when something is wired, because a warning about hooks that do not exist is how a real warning gets ignored.

Checked on the published package.

  1. After uninstall and install, the Codex trust records stayed at five. Before the fix, they dropped to zero.
  2. A live Codex session with no flags and a guarded claim held by a peer blocked a write to the claimed file, and the file stayed unchanged.
  3. With the trust records removed by hand, doctor printed the action line.
  4. With the trust restored, doctor said nothing about it.

The reversal is written into docs/DESIGN_DECISIONS.md next to the reasoning it overturns, and the changelog quotes the false claim instead of editing it away. The rule that came out of it: to find out whether state is load-bearing, take it away. Changing it tests something else.

What to do#

Upgrade and reinstall:

npm install -g agents-can-communicate
acc install

Then run acc doctor. If it prints start codex once and accept the hook trust prompt, start Codex once in a project and accept the prompt. Accepting is the client's step, and ACC cannot do it for you. Afterwards, the write guard blocks edits to files that another agent has claimed.

Sources#