Repository navigation
Closed
Labels
needs-triageNot yet classified. Floor until a type and one priority tier are set.
Description
Stage 2 of the #1809 ordering decision (recorded on that issue as a delegated-authority decision comment). Filed so the guardrails-scoped item survives #1809 closing with stage 1's PR.
What
Give block-noncanonical-commit.sh an exit 0 on ps::classify_git_command rc=2, following the precedent already present at block-convention-violation.sh:375-383. Per the audit that produced #1809: both guards call ps::classify_git_command with identical arguments, and across a 12-case corpus every commit-guard block was also a dangerous-git block carrying that guard's accurate message — so the coverage cost of the early exit is provably zero, while the current behavior double-blocks with a less accurate message.
Ordering constraints (from #1809's decision)
- Staged separately from marketplace: two unconditional in-place rewriters race on every Write with no defined precedence, nobody sums the always-on per-turn cost, and thirteen CRITICALs need an ordering #1809's stage-1 PR not for size but because guardrails' commit guards carry a dense open surface (guardrails: block-noncanonical-commit on main exits 139 (SIGSEGV) on a wrapped
cdbuiltin in a shell-alias body #1495, guardrails: block-noncanonical-commit resolves the repository at the outer invocation when the nested one determines it #1500, guardrails: block-noncanonical-commit analyzes the wrong repository when a!alias body relocates the process (cd) #1486, guardrails: both git guards recurse into aliases git itself refuses (environment-changing global in a non-shell expansion) #1502) and their changelog/review should not ride a formatter PR. - Separately: the
block-hook-bypass.shwrite-bypass-leak closure must not merge before marketplace: two unconditional in-place rewriters race on every Write with no defined precedence, nobody sums the always-on per-turn cost, and thirteen CRITICALs need an ordering #1809's stage-1 PR does — once typos-format is report-only by default, closing that leak no longer worsens exposure for anyone whose vocabulary the typos dictionary mangles. That constraint is restated here because marketplace: two unconditional in-place rewriters race on every Write with no defined precedence, nobody sums the always-on per-turn cost, and thirteen CRITICALs need an ordering #1809 closes with stage 1.
Related
Metadata
Metadata
Assignees
Labels
needs-triageNot yet classified. Floor until a type and one priority tier are set.
Type
Fields
No fields configured for issues without a type.
Activity
fix(typos-format,markdown-format): single-writer default ends the unc…
kyle-sexton commentedon Jul 31, 2026
Premise challenge — raised by the implementing lane, recommend adjudicating before merge.
The PR implements this issue exactly as decided. But the decision's stated justification does not survive verification, and the residual is real rather than rhetorical.
The precedent is category-mismatched. On
origin/maintoday, four guards callps::classify_git_commandwith identical arguments:block-dangerous-git.sh:1072exit 2block-no-verify.sh:231exit 2block-noncanonical-commit.sh:797exit 2block-convention-violation.sh:375exit 0Three blocking guards hold the fail-closed posture; the one guard that defers is the content gate — and it defers precisely because content is not its call to make when nothing was parsed. This issue cites that content gate as the precedent for changing a blocking guard.
"Coverage cost is provably zero" is false, not merely overclaimed. Each guard carries its own kill switch. The configuration
block_dangerous_git_enabled=false+block_no_verify_enabled=false+block_noncanonical_commit_enabled=truenow allows a git-shaped unparsable PowerShell commit through. Under a default install, and under any configuration retaining either sibling, coverage is unchanged — that narrower claim is what the PR and CHANGELOG state, and the contract test pins the residual at exactly that width so it cannot silently widen.Independent corroboration: the in-flight wrapper-argv lane (#1814) reaches the opposite conclusion on the neighbouring
hook::git_resolve_indexrc-2 surface, writing the doctrine explicitly intoblock-dangerous-gitandblock-no-verify— "Each blocking guard holds this posture itself (per-hook kill switches mean none may delegate it to a sibling)." Different code path, same guards, same reasoning.Deferred alternative, named not built. If adjudication keeps fail-closed, the complaint that actually motivated this item — a double block whose second message names a commit shape the guard never read — is fixable by message accuracy rather than deletion: give
block-noncanonical-commit(andblock-no-verify, which shares the same misfittingps::print_unparsable_block_message) an unparsable message that describes what was observed, the wayblock-dangerous-gitalready does. That closes the UX defect with zero coverage change.Raised here rather than only in the PR body because the decision lives on this issue.
fix(guardrails): land the `tool` description fix in the four sibling …