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
{{ message }}
Repository navigation
Planner: a script check is skipped when the changed file is named after a ${...} in a template literal #218
narrowGateChecks decides whether a repository-script check (node scripts/x.mjs) can be skipped from the paths the script names (src/planner/script-reads.ts, decideScriptCheck). scanModule collects string literals, but for a template literal it keeps only node.head.text, the text before the first ${…}. Anything after a substitution is never seen.
decision: SKIP reason: "reads only its own code; no changed file there"
With a plain string, `data/${name}.json` or `${dir}/schema.json`, the same change correctly RUNs. Only text after a substitution is lost.
Impact
The check is skipped although the change is exactly the input it validates. That is the unsafe direction for a narrowing decision. `${root}/…` and `${process.cwd()}/…` are common ways to build paths in repository scripts.
Failing test
Added to tests/planner/script-reads.test.ts in the linked PR. Output on main:
✖ runs when a change is named after a template substitution
actual: 'SKIP',
expected: 'RUN',
Activity
fix(planner): read template text after a substitution in script checks (