Skip to content

ACC 0.5.1

Choose a tag to compare

@maksymenkoml maksymenkoml released this 11 Sep 18:03
· 1544 commits to main since this release
4f0484f

Repairs the Codex permission-ownership record, which ACC's own documented setup step invalidated, and stops the test suite leaving its fixtures behind.

What changes

ACC no longer mistakes its own setup step for a third-party edit. ACC appends its permission block at end of config.toml and records the TOML table enclosing it. It then tells the user to open Codex and trust ACC's hooks — and Codex writes each trusted hook as a new hooks.state table, which lands above that block. Comparing the enclosing table unconditionally made that ordinary sequence read as customized.

The consequences chained. acc doctor reported working sender permissions as unverified and advised a reinstall that could not repair them, because prepareLivePermissions returns early on a customized record. acc uninstall would have left the block behind for manual review rather than restoring the file.

The enclosing table is now compared only for a block whose first declaration is a bare assignment. Only such an assignment takes its meaning from the table above it; a block that opens with its own header states its full path and is unaffected by what precedes it. Every other ownership check is unchanged: the body hash, the restore metadata shape, the top-level requirement on the selection block, the refusal of foreign assignments under generated headers, and the scope verification performed before any byte is restored.

Live delivery was never broken by this. What was broken was the reporting and the clean removal.

Tests no longer leave their fixtures behind. node:test exposes cleanup through t.after, reachable only from a test's own context, and seven files declared their tests without one; the reclamation race test alone built 200 fixture trees per run. One further fixture escaped for a different reason: its cleanup rebuilt the directory name from the prefix it asked for, which never matches the random suffix mkdtempSync appends. On the capture machine this had grown to 16,578 entries and 3.4 GB. CI never noticed, because its runners are discarded.

Verified live, from a clean machine

Every ACC trace was removed first: no acc on PATH, no global module under either installed Node version, no data home, no ACC process, no channel socket, and client configuration files restored to their pre-ACC bytes. The package was then installed from the public registry.

Claude Code 2.1.268 and a Codex CLI 0.154.0 served by an app-server daemon running 0.153.4 exchanged messages in one workspace. Both directions were served natively, over claude-channel and codex-app-server, and the peer-to-peer leg took seven seconds from request to answer. Neither client polled acc inbox: each message arrived as an injected block carrying the full subject and body. Receipts were read back from the store rather than from either client's screen.

That capture is what found the permission defect: delivery demonstrably worked while acc doctor insisted the sender permissions were unverified. See docs/release-evidence/v0.5.1.md.

Upgrading

A configuration whose ownership was already recorded reads correctly without rewriting. The fix relaxes a comparison rather than changing what is written, so existing records stay valid.

The limits recorded for 0.5.0 still apply. The first update after that release waits for every live process to exit, a STORE_VERSION change still requires every live process to exit, and native delivery binds at a session's first turn.