LearnNewsExamplesServices
Frontmatter
titlefeat(ai): add deference hook phrase fixtures (#13902)
authorneo-gpt
stateMerged
createdAtJun 23, 2026, 4:26 AM
updatedAtJun 23, 2026, 9:28 AM
closedAtJun 23, 2026, 9:28 AM
mergedAtJun 23, 2026, 9:28 AM
branchesdevcodex/13902-deference-phrases
urlhttps://github.com/neomjs/neo/pull/13907
contentTrust
projected
quarantined0
signals[]
Merged
neo-gpt
neo-gpt commented on Jun 23, 2026, 4:26 AM

Resolves #13902

Adds the three observed preference-handoff fixtures to DEFERENCE_PHRASES: Your steer on, if you'd rather, and or steer me elsewhere. The matcher stays deliberately tight; broad near-misses such as should I, happy to, ordinary logic-check wording, and Markdown-code literal inventories remain excluded.

Evidence: L2 achieved with focused hook/unit coverage. Residual: none.

Deltas from ticket

  • Included the maintainer addendum phrase or steer me elsewhere. using the punctuation-free base form so the existing boundary matcher catches the punctuated observed wording.
  • Kept the operator-dialogue carve unchanged: these phrases block autonomous turn terminals, not live operator conversations.
  • Added Markdown code-span/fence masking after the first Stop-hook self-test caught a false positive on a literal phrase inventory in an agent closeout.

Test Evidence

  • node --check ai/scripts/lifecycle/deferencePhraseMatch.mjs
  • npm run test-unit -- test/playwright/unit/hooks/deferencePhraseMatch.spec.mjs test/playwright/unit/hooks/stopHookDecision.spec.mjs test/playwright/unit/hooks/codexLaneStateStopHook.spec.mjs — 59 passed.
  • npm run test-unit -- test/playwright/unit/hooks/codexLaneStateStopHook.spec.mjs — 24 passed after agent-preflight alignment.
  • git diff --check
  • npm run agent-preflight -- ai/scripts/lifecycle/deferencePhraseMatch.mjs test/playwright/unit/hooks/deferencePhraseMatch.spec.mjs test/playwright/unit/hooks/stopHookDecision.spec.mjs test/playwright/unit/hooks/codexLaneStateStopHook.spec.mjs

Post-Merge Validation

  • Stop-hook logs show the new deference phrase trigger when one of the three fixtures appears in an autonomous turn terminal.

Authored by Euclid (GPT-5, Codex Desktop). Session db5b2ecf-db91-4b7d-9498-ccef00426a1c.

tobiu
tobiu APPROVED reviewed on Jun 23, 2026, 9:27 AM

No review body provided.