Repository navigation
test(send): launch codex doorbell e2e with --disable hooks - #7406
kunchenguid merged 1 commit into
Conversation
Der Kopf des Tests sagt, jedes Programm werde so gestartet, wie
bin/fm-spawn.sh es startet. Im codex-Zweig von launch_cmd fehlte dabei
--disable hooks, das fm-spawn im crewmate- und scout-Pfad setzt.
Ohne den Schalter parkt codex auf dem Hook-Vertrauensdialog ("N hooks
are new or changed"), dessen Auswahl auf "Review hooks" aufsetzt und der
mit der Tastenebene dieses Werkzeugs nicht beantwortbar ist. Der Lauf
meldet dann die Tuerklingel als nicht befolgt, obwohl er ueber die
Tuerklingel gar nichts ausgesagt hat - und das auf jedem Checkout, weil
schon die projekteigene .codex/hooks.json den Dialog aufzieht.
Dazu eine knappe Zusicherung am Startrezept, damit der Schalter beim
naechsten Umbau nicht wieder still ausfaellt.
|
Kurz zu den Prüfungen: "Behavior portable serial 2" ist ohne Urteil abgebrochen, das ist kein fehlgeschlagener Test - der Shard ist in die 30-Minuten-Grenze gelaufen, und die geänderte Datei liegt gar nicht in diesem Shard, sondern in Shard 9, der grün ist. Die anderen 19 Prüfungen sind grün. Könntest du diesen einen Abschnitt nochmal laufen lassen? Mir fehlt dafür das Recht in diesem Repo. |
|
Speaking as Kun's firstmate: thank you @thelad-dev — clear finding, and the three-run comparison (machine hooks → repo hooks → I read tip Contract-class (mine): restore. The test's own header promises each harness is launched "the way bin/fm-spawn.sh launches it"; for codex it wasn't. No product default changes. VISION.md per rule:
Your logged-in run of the doorbell check with only this flag added ( |
|
Thanks for the re-run - it hit the same wall: the job started 14:30:36Z and was cancelled 15:00:57Z, so exactly 30 minutes again. Same shape on #7408 (started 15:15:33Z, cancelled 15:46:04Z), and So I don't think another re-run clears it. From the logs the shard isn't failing an assertion, it's just running past the limit - on my branch it was mid Happy to leave both sitting until you've decided what to do with it - nothing else needed from my side. |
|
Speaking as Kun's firstmate: this is merged. Thank you @thelad-dev — really appreciate you taking the time on this. |
Intent
Der Live-Tuerklingel-Test startet codex nicht so, wie fm-spawn es startet - deshalb laesst sich die codex-Spur auf keinem Firstmate-Checkout nachweisen. Das wird korrigiert, und der Nachweis, um den Kun in PR 7362 gebeten hat, kommt damit mit.
Befund: tests/fm-send-inbox-doorbell-live-e2e.test.sh sagt im Kopf, jedes Programm werde gestartet "the way bin/fm-spawn.sh launches it". launch_cmd nutzt fuer codex aber nur 'codex --dangerously-bypass-approvals-and-sandbox', waehrend bin/fm-spawn.sh im crewmate/scout-Pfad zusaetzlich '--disable hooks' setzt. Der Grund steht dort im Kommentar und in references/harness/codex.md: der Hook-Vertrauensdialog ist mit der Tastenebene dieses Werkzeugs unbeantwortbar, die Auswahl startet auf "Review hooks" und es gibt keine Pfeilnavigation.
Dreifacher Live-Nachweis auf einer Maschine mit angemeldetem codex, jeweils gegen den Kopf 7c9306d aus PR 7362:
Damit ist auch die in PR 7362 erbetene Zusatzpruefung erledigt: codex-cli 0.163.0 befolgt die neue Tuerklingel-Formulierung.
What Changed
bin/fm-spawn.shby adding--disable hooks, so the check judges the doorbell instead of parking on Codex's hook-trust modal.--disable hooks, failing fast if the flag is dropped again.Risk Assessment
✅ Low: Single-file test fix aligns the codex live doorbell launch with the existing crewmate spawn recipe and adds a local recipe pin; no production code or behavior change beyond the intended harness flags.
Nachweis zum Live-Lauf
Der vollständige Live-Lauf ist nicht in dieser Pipeline gelaufen, sondern auf einem separaten Rechner mit angemeldetem codex, gegen den Kopf 7c9306d aus #7362. Die Ergebniszeile dort:
Davor zwei Läufe auf demselben Rechner ohne
--disable hooks, die beide auf dem Hook-Dialog parkten: einmal auf den Hooks der Maschine, nach deren Entfernen auf den Projekt-Hooks des Repos selbst (.codex/hooks.json).Auf dem Rechner, auf dem die Prüfungen dieses Beitrags liefen, ist kein codex-Konto vorhanden. Der Live-Pfad endet dort an der Anmeldemaske statt am Hook-Dialog - genau dieser Unterschied zeigt, dass die Korrektur greift, aber die Erfolgszeile ist dort nicht reproduzierbar. Auf einem angemeldeten Rechner genügt ein Lauf:
Testing
Exercised spawn hook-layer live guard, spawn dispatch profile, and the doorbell test's real codex launch recipe against installed codex-cli 0.163.0:
--disable hooksturns hooks off and the live doorbell attempt no longer hits the hook-trust modal, but without Codex login this host could not finish the acted+acked doorbell success line the intent asks for.Evidence: Testing notes and evidence index
Source: Testing notes and evidence index
Evidence: Recipe flags disable hooks on real codex
Source: Recipe flags disable hooks on real codex
recipe: codex --dangerously-bypass-approvals-and-sandbox --disable hooks hooks_line: hooks stable false ok - doorbell live-e2e launch_cmd codex leaves hooks disabled on codex-cli codex-cli 0.163.0Evidence: hooks feature with vs without --disable hooks
Source: hooks feature with vs without --disable hooks
FIXED recipe → hooks false; WITHOUT flag → hooks trueEvidence: fm-codex-hook-layer-live-e2e passed
Source: fm-codex-hook-layer-live-e2e passed
ok - codex codex-cli 0.163.0 runs a firstmate crewmate launch with its hook layer disabledEvidence: Live codex doorbell attempt (auth blocked)
Source: Live codex doorbell attempt (auth blocked)
not ok - codex (codex-cli 0.163.0): doorbell not honored within 45s (acted=no acked=no) # pane shows Sign in with ChatGPT, not Hooks need reviewEvidence: tmux pane without --disable hooks
Source: tmux pane without --disable hooks
Evidence: tmux pane with --disable hooks
Source: tmux pane with --disable hooks
Evidence: fm-spawn-dispatch-profile suite
Source: fm-spawn-dispatch-profile suite
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
tests/fm-send-inbox-doorbell-live-e2e.test.sh- The full end-user doorbell proof required by intent (ok - codex ... acted and acked with the mv on a logged-in codex-cli 0.163.0) could not be completed on this gate host:codex login statusis Not logged in, no OPENAI/CODEX API key is present, and the live codex-only run parked on the ChatGPT sign-in screen. Partial proof did succeed: the test's launch_cmd now carries--disable hooks, those flags leave hooks=false on installed codex 0.163.0, fm-spawn crewmate parity still disables hooks, and the live attempt no longer parks on "Hooks need review". Decide whether author-side live transcripts already satisfy PR 7362 or whether a logged-in host must re-run FM_SEND_INBOX_LIVE_E2E=1 FM_SEND_INBOX_LIVE_HARNESSES=codex.bash tests/fm-codex-hook-layer-live-e2e.test.shbash tests/fm-spawn-dispatch-profile.test.shcodex --dangerously-bypass-approvals-and-sandbox --disable hooks features list(hooks=false) vs without flag (hooks=true)Extracted reallaunch_cmdfromtests/fm-send-inbox-doorbell-live-e2e.test.shand verified flags leave hooks disabled on codex-cli 0.163.0Counterfactual: recipe without--disable hookstrips the test's pin messageFM_SEND_INBOX_LIVE_E2E=1 FM_SEND_INBOX_LIVE_HARNESSES=codex FM_SEND_INBOX_LIVE_TIMEOUT=45 bash tests/fm-send-inbox-doorbell-live-e2e.test.sh(failed on sign-in, not hook-trust modal)tmux pane captures of codex with/without--disable hookson this host✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.