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 }}
git-hooks: format-fixable finding blocks once under lefthook parallel: true #16911
The git-hooks installer renders each format/lint plugin's format and lint entries as separate jobs, in order. A consumer whose lefthook config sets parallel: true runs lint alongside format, so a finding that format would have fixed blocks the commit once before the fix lands. PR #16715 recorded this under "Deferred" (markdown-format; the same shape applies to every format/lint plugin, as for python-format).
Done when
Under parallel: true, a format-fixable finding does not block the commit: for example the installer renders format and lint as one job, or marks lint to run after format, whichever lefthook supports.
A fixture with parallel: true covers one format/lint plugin.
Source: workshop 06 close-out audit (unit M follow-up).
Size: Small
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: lib/git-hooks/install.mjs (lefthookSnippet), lib/git-hooks/install.test.mjs, and the vendored copies regenerated by the shared-copies script; read by consumers who install git hooks by the copy-based path.
Reversible: yes; revert the change and regenerate the copies.
Open questions: none
Decision recorded by the owner (2026-11-20, #16911 (comment)) settles the open questions. What is left after #17147: the copy-based installer should render a plugin's pre-commit format and lint entries as one piped group job (format first, then lint), with a parallel: true fixture covering one format/lint plugin. The fixture should show that a format-fixable finding does not block the commit and that an unfixable one still does.
Not admitted to the issue lane: merged pull request #17147 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
melodic-automation-lanes commented on Nov 18, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Each format/lint plugin's shipped lefthook pre-commit config runs its format job before its lint job even when the consumer sets parallel: true, so a format-fixable finding no longer blocks the commit.
Acceptance criteria
plugins/markdown-format/git-hooks/lefthook-remote.yml no longer lists format and lint as two independent top-level jobs; it wraps them in one lefthook group job with piped: true (or an equivalent ordering lefthook supports), format first and lint second.
The same ordering change is applied to the other plugins that ship a format plus lint pair in git-hooks/lefthook-remote.yml: python-format, javascript-format, bash-format, powershell-format.
Plugins with only one of the two entries (go-format format only; actionlint and spelling lint only) are left unchanged.
plugins/markdown-format/git-hooks/lefthook-remote.test.sh gains a case that sets parallel: true in the consumer lefthook config and commits a file with a format-fixable lint finding; the commit passes and the committed blob is the formatted one.
The parallel: true case still blocks a finding that format cannot fix, naming markdown-format-remote-lint in the output.
The existing non-parallel cases in that test (format, skip-keeps, lint block, clean pass) still pass.
Job names markdown-format-remote-format and markdown-format-remote-lint remain addressable by the harness's lr_skip and lr_skip_keeps helpers, or those helpers and their calls are updated so the existing skip assertions pass.
The plugin's lefthook-remote.test.sh passes when run from the repository, and the other touched plugins' lefthook-remote.test.sh files pass.
Each touched plugin's CHANGELOG.md has an entry describing the ordering change.
External state: none
Dependencies
PR #17025 (one lefthook remote per plugin) is closed and its merge state is not shown here; confirm the remote lefthook-remote.yml files it ships are on the base branch, since this work edits them.
Related open issue #16959 may touch the same hook jobs; check for conflicts on lefthook-remote.yml before merging.
.base/plugins/markdown-format/git-hooks/lefthook-remote.yml:1: pre-commit lists markdown-format-remote-format and markdown-format-remote-lint as two separate jobs, with no group, piped or parallel setting.
.base/plugins/markdown-format/git-hooks/lefthook-remote.test.sh:1: the e2e test has no parallel: true case; it covers format, skip-keeps, a lint block, and a clean pass.
.base/plugins/guardrails/git-hooks/lefthook-remote.yml:8: a comment already discusses behavior with and without parallel: true, so consumers use it.
.base/lib/git-hooks/install.test.mjs:2097: group jobs already appear in the installer tests.
Glob of .base/plugins/*/git-hooks: python-format, javascript-format, bash-format, powershell-format and markdown-format ship format and lint entries; go-format, actionlint and spelling ship one entry.
Not read, so unverified: lefthook's docs on group jobs with piped: true. I could not fetch them because lefthook's domain is outside the allowed list. The implementer should check them.
Automated refinement by the lanes App. Intake triages the issue again with it.
Pull request #17147 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.
6 remaining items
melodic-automation-lanes commented on Nov 21, 2026
The work-resolve-issue run that agent-ready started waited in its slot past a change to its lane workflow files on main, so it stopped before any model turn. The run's report-outcome removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44843924488, the work-resolve-issue run that agent-ready started, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-21T00:29:23Z. work-unblock has now removed and added agent-ready back to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or the kill-switch wait.
Activity
github-actions commentedon Nov 18, 2026
The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
github-actions commentedon Nov 18, 2026
Size: Small
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: lib/git-hooks/install.mjs (lefthookSnippet), lib/git-hooks/install.test.mjs, and the vendored copies regenerated by the shared-copies script; read by consumers who install git hooks by the copy-based path.
Reversible: yes; revert the change and regenerate the copies.
Open questions: none
Decision recorded by the owner (2026-11-20, #16911 (comment)) settles the open questions. What is left after #17147: the copy-based installer should render a plugin's pre-commit format and lint entries as one piped group job (format first, then lint), with a
parallel: truefixture covering one format/lint plugin. The fixture should show that a format-fixable finding does not block the commit and that an unfixable one still does.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 18, 2026
Not admitted to the issue lane: merged pull request #17147 names it with
Refs:after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is**Decision recorded.**saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 18, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Each format/lint plugin's shipped lefthook pre-commit config runs its format job before its lint job even when the consumer sets parallel: true, so a format-fixable finding no longer blocks the commit.
Acceptance criteria
External state: none
Dependencies
Related work
Sources read
Automated refinement by the lanes App. Intake triages the issue again with it.
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"798c7f20adb1e9d9eeec2445df79af4d973d078cb859afe4b6cd7c6a299d8242","body_sha256":"0f5b3a3f9d2924955de596a70816b2caa6fd4cf8740a9d7b03074af4b8bf7854"}
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"798c7f20adb1e9d9eeec2445df79af4d973d078cb859afe4b6cd7c6a299d8242","body_sha256":"0f5b3a3f9d2924955de596a70816b2caa6fd4cf8740a9d7b03074af4b8bf7854"}
github-actions commentedon Nov 18, 2026
melodic-automation-lanes commentedon Nov 18, 2026
Pull request #17147 merged with
Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removedstatus: readyandagent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it atstatus: confirmedfor a check of what that pull request left, until a**Decision recorded.**comment says what is left or someone closes it.6 remaining items
melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"798c7f20adb1e9d9eeec2445df79af4d973d078cb859afe4b6cd7c6a299d8242","body_sha256":"0f5b3a3f9d2924955de596a70816b2caa6fd4cf8740a9d7b03074af4b8bf7854"}
github-actions commentedon Nov 21, 2026
github-actions commentedon Nov 21, 2026
melodic-automation-lanes commentedon Nov 21, 2026
The work-resolve-issue run that
agent-readystarted waited in its slot past a change to its lane workflow files on main, so it stopped before any model turn. The run's report-outcome removed and addedagent-readyback to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.melodic-automation-lanes commentedon Nov 21, 2026
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44843924488, the work-resolve-issue run that
agent-readystarted, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-21T00:29:23Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or thekill-switchwait.github-actions commentedon Nov 21, 2026
github-actions commentedon Nov 21, 2026