Skip to content

feat: enroll reviewed Codex hooks for headless agents - #406

Merged
kryptobaseddev merged 1 commit into
mainfrom
feat/headless-codex-hook-enrollment
Nov 30, 2026
Merged

kryptobaseddev merged 1 commit into
mainfrom
feat/headless-codex-hook-enrollment

Conversation

@kryptobaseddev

@kryptobaseddev kryptobaseddev commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Fresh Codex sessions can block on manual hook trust even after AgentMBX setup has wired MCP and hooks. Add agentmbx codex-hooks inspect and explicit enroll --manifest FILE --sha256 DIGEST so a reviewed installation can enroll the four known definitions through Codex's native API and start headlessly afterward.

Enrollment validates the reviewed manifest, source definitions, native hashes and configuration version; it upserts only the four selected trust entries with CAS. It writes a private receipt before mutation, verifies through a fresh process, and reconciles uncertain outcomes read-only before any retry. Unchanged trusted hooks return a no-op. Default setup and --yes do not grant trust; foreign pending hooks still report manual review. Owner policy, device keys and wake/delegation enforcement are unchanged.

Validation at 13eafb294087a7a75fce04f7d145c87507aec528:

  • Canonical targeted remote gate: 12 passed, 0 failed, including definition substitution, stale review/CAS, malformed/unsupported responses, timeout/EOF/close failures, recovery and concurrent drift. The first launch attempt failed before tests because SSH lacked the login PATH; that receipt is retained and the gate's launch environment was corrected in place.
  • Governed standard build, typecheck and check-dist passed. No whole suite ran on the Mac.
  • Independent review: SAFE across six authored files and four generated files; no blocking findings.
  • Real Codex0.172.0 isolated-profile smoke: four untrusted definitions → explicit enrollment → separate fresh inspection trusted → repeat verified no-op. All four CLI exits were0; real config/hooks were unchanged, with no account credentials or model thread used.

The API capability is deliberately pinned to the verified Codex0.172.0 shape. Native definition hashes do not attest executable bytes. Successful enrollment does not establish remote owner delegation or native mailbox idle wake; callers must honor manualReviewRequired for other hooks.

Closes: T770 AC1,AC2,AC3,AC4,AC5,AC6
Related: T186; Axiom T3453.

@kryptobaseddev
kryptobaseddev marked this pull request as ready for review November 30, 2026 00:36
@kryptobaseddev
kryptobaseddev merged commit a966aff into main Nov 30, 2026
6 checks passed
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.

1 participant