You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address codex review of P1/P2 — regex guards, route fallback, health invalidation
A codex review (run via run.mjs) flagged 8 issues; this fixes the real ones:
- HIGH (route.mjs): a roster load failure on the ROUTING path now degrades to
a safe native fallback decision again (exit 0) instead of exit 1 — callers
must always get a decision. --validate still hard-errors (exit 1).
- HIGH (tags.txt injection): the negative lookbehinds guarded only the first
alternative, so "inject dependencies into the process" still matched. Added
a forward guard to the verb-form branch so DI phrasing no longer trips Opus.
- MEDIUM (tags.txt hooking): the P0 tightening dropped real RE targets; restored
hook(ing/ed) the function|render|call|syscall|address|… while still excluding
the generic "hook into the API" integration phrase.
- MEDIUM (run.mjs cost): charge from outChars only, matching roster.json's
"per 1000 output chars" note (was in+out).
- MEDIUM (run.mjs / backends.mjs): invalidateHealth() is now actually called on
a backend's no-usable-output hop, so a stale "healthy" verdict is dropped and
the next call re-probes (the API was previously dead code).
- MEDIUM (validate-config.mjs): malformed routes were filtered out before the
name check; now only genuine {_comment} markers are skipped, so empty/missing
route names are reported.
- LOW (tags.txt deps-bump/i18n): tightened deps-bump to avoid "update package
documentation"; broadened i18n to catch "localize the UI" / "add translations".
Verified by execution: 22 routing/validation behavioral checks pass, full
suite 88/88 green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@@ -87,8 +87,8 @@ codegen code ?gen(eration)?|generate (the )?code
87
87
unit-test unit test|write tests?|test cases?|\bjest\b|\bpytest\b|test coverage
88
88
fixture fixture|mock data|test data|seed data|sample data
89
89
docs-write (writ|updat|add|generat|creat|author).{0,30}(docs?|documentation|readme|jsdoc|docstrings?|changelog)|document (the )?(api|module|function|code)
90
-
i18n \bi18n\b|internationali(z|s)ation|locali(z|s)ation|translat.{0,15}(strings?|\bui\b|text|copy)|add locale support
91
-
deps-bump (bump|upgrade|update).{0,20}(the )?(version|dependenc(y|ies)|package)|upgrade .{0,20} to v?\d|bump .{0,20} to v?\d
deps-bump (bump|upgrade) (the )?(dependenc(y|ies)|package|\bdep\b|version)|(bump|upgrade) .{0,30} to v?\d|update (the )?(dependenc(y|ies)|package(\.json)?)\b(?! (doc|comment))
0 commit comments