Skip to content

fix(hooks): avoid directory-only harness reminders - #4

Merged
jeffhamons merged 1 commit into
jefffrom
codex/audit-improvements-20261010
Oct 10, 2026
Merged

jeffhamons merged 1 commit into
jefffrom
codex/audit-improvements-20261010

Conversation

@jeffhamons

Copy link
Copy Markdown
Owner

A script such as python3 /tmp/codex-harness-audit/audit_parser.py previously triggered the Ringer reminder because a parent directory contained “harness”. Restrict the heuristic to the executed script basename and its argument boundary, including extension-bearing directory cases. Provider matching, advisory inline authorization, active-run suppression, edit counters and dedupe remain unchanged. Arbitrary heredocs/provider strings remain outside this narrow lexical fix.

Validation: all12 focused nudge tests pass using isolated temporary HOME/RINGER_HOME. Nine benign-directory negative subcases fail against the old hook. Independent gpt-6-astra/high review is CLEAN after correcting an extension-directory boundary finding; the reviewer separately ran12 tests and1,680 regex cases. AST comparison confirms HARNESS_RE is the sole production change. No provider/model trials or installed state used by tests. Existing CI runs normally.

Reviewed hook SHA25663198fba46f8f774415dc25fe0e3389ec98f9ca4368bde7bb0f96de53d33f988 and test SHA2568671e887daf19b30fe5491d606b285584e7bfcba97a87070fc12cf10287443f5. Rollback is an ordinary revert of this commit; no hook definition/trust or permissions change.

@jeffhamons
jeffhamons merged commit 715b00b into jeff Oct 10, 2026
2 of 3 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