Files
Trevin Chow 6fd89c251a fix(ce-setup): detect the retired Codex tool map
check-health never read the Codex home instructions file, so an install
still carrying the retired COMPOUND CODEX TOOL MAP block reported a clean
environment. The Bun-era installer wrote that block and the Bun CLI only
strips it on a re-run, so native marketplace installs keep it indefinitely.

Scan ${CODEX_HOME:-$HOME/.codex}/AGENTS.md for the block, report it with
the other diagnostics, and note it in the verdict so the report does not
read as all-clear. ce-setup offers the removal from a skill-local
reference, stated outside the Phase 2 gate because the file is in the
user's Codex home rather than the checkout.

Detection is one condition -- a standalone BEGIN sentinel line followed by
a standalone END sentinel line -- which decides inline prose mentions,
reversed sentinels, and a stray END before a valid pair without
enumerating them.

Replaces #1570. Refs #1559.

Claude-Session: https://claude.ai/code/session_01KDDrb1CmAhvfRNb49kE3UQ
2026-08-29 01:44:56 -07:00
..