fix(aos): carry Codex hook trust into native shadows #1171

Open
opened 2026-08-21 19:46:33 +00:00 by coilyco-ops · 0 comments
Member

Native shadows stage .codex through session-local symlinks. Codex keys hook trust by the logical session-local hooks.json path, but AOS currently records only the host path, so each new Codex process re-prompts for the Git attribution hook.\n\nReproduce: hooks/list in a launched native shadow reports an untrusted key rooted at the session CODEX_HOME even though the host-path key is trusted.\n\nAcceptance:\n- Trust the exact hook key and hash visible to the newly staged Codex process.\n- Retain the narrow attribution-hook matcher and preserve unrelated hook state.\n- Cover the host-command plus shadow-CODEX_HOME path in tests.

Native shadows stage .codex through session-local symlinks. Codex keys hook trust by the logical session-local hooks.json path, but AOS currently records only the host path, so each new Codex process re-prompts for the Git attribution hook.\n\nReproduce: hooks/list in a launched native shadow reports an untrusted key rooted at the session CODEX_HOME even though the host-path key is trusted.\n\nAcceptance:\n- Trust the exact hook key and hash visible to the newly staged Codex process.\n- Retain the narrow attribution-hook matcher and preserve unrelated hook state.\n- Cover the host-command plus shadow-CODEX_HOME path in tests.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agentic-os#1171
No description provided.