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
install-gate's refusal describes the machinery, not the hazard: a double-quoted backtick is command substitution, and the message never says so #501
Not a false positive — but the refusal does not say why, and that is what makes it read like one
Reported as a false positive: git commit -qam "… naming the permission \deployment:env:view` …"` was blocked with
kit install-gate: BLOCKED — cannot reduce to a triage target: indirect-bin:`deployment:env:view`
— run `kit triage` manually, or install via `kit pkg <eco>:<name>` (fail-closed)
The gate is right. Backticks inside double quotes are command substitution in POSIX shell, so that command does not commit that text — it tries to execute deployment:env:view and splices its output into the message. Measured:
$ bash -c 'echo "... naming the permission `deployment:env:view` ..."'
bash: deployment:env:view: command not found
... naming the permission ...
The permission name is silently deleted from the message. Single quotes are literal:
$ bash -c "echo 'before \`printf SUBSTITUTED\` after'"
before `printf SUBSTITUTED` after
So indirectInstall (src/install-gate.ts:815) did exactly its job: argv0 is an unresolvable command substitution and an install/runner verb is present, so it cannot verify what would run and fails closed. Reproduced on 6.6.5 and 6.7.0:
`deployment:env:view` install foo
→ BLOCKED — cannot reduce to a triage target: indirect-bin:`deployment:env:view`
The actual defect: the message teaches the wrong lesson
The refusal names a triage target and offers kit triage / kit pkg, both of which are nonsense for this command. It never mentions the substitution. So the operator's reasonable conclusion is "the gate mis-parsed my commit message", and the workaround they reach for — write the message to a file and use -F — hides a command that would have committed a message with a hole in it. The gate prevented a real silent corruption and got read as a bug, because the diagnostic described the machinery instead of the hazard.
Proposed
When the blocked token comes from a command substitution inside double quotes, say so and give the fix: single quotes, or -F <file>. Something like:
kit install-gate: BLOCKED — `deployment:env:view` inside double quotes is COMMAND
SUBSTITUTION: the shell would run it and splice its output into the argument, silently
dropping the text. Use single quotes, or git commit -F <file>.
Keep fail-closed. This is not a request to allow the pattern — it is a request that the refusal name the hazard it caught, so the operator learns the shell semantics rather than routing around the gate.
Worth checking whether the same generic wording covers other non-install hazards the gate legitimately blocks; a refusal that misdescribes what it found trains people to distrust it.
Activity
chore(memory): the assert-or-label rule, and the gate/cache split (#506)
chore(release): 6.8.0 (#516)