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
Make the force-push rule in AGENTS.md and the guardrails hook allow the same forms #15940
Refs #15663 (the map decision this implements; map #15651).
Depends on
none: on the frontier now
Outcome
The force-push rule in AGENTS.md and the guardrails hook that enforces it allow the same forms. Today the prose allows only a lease pinned to a full SHA, while the hook also accepts --force-with-lease --force-if-includes.
Demo: for each force-push form, the hook's verdict matches what AGENTS.md says about it.
Source: her correct skill (cursor/plugins, MIT, pstack/skills/correct/SKILL.md:30): keep each rule paired with what enforces it.
Decisions
Owner, 2026-11-13: align the two; found while inventorying checkable rules.
The pinned lease is there so a peer's newer commit fails the push instead of being overwritten. Judge the extra form against that reason: narrow the hook if it does not protect a peer's commit, or widen the prose if it does.
The hook is a guard against our own actors, not a security control.
Key interfaces
The guardrails plugin's dangerous-git hook and its tests.
The AGENTS.md stop list entry on force pushes.
Done when
The hook and AGENTS.md accept exactly the same force-push forms, and the pull request body gives the reason for the direction chosen.
The hook's tests cover each form, allowed and blocked.
The hook's block message names the allowed form.
The pull request body names this repository's dogfooding step.
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Understood: the AGENTS.md force-push rule allows only a lease pinned to a full SHA, while the guardrails dangerous-git hook also accepts --force-with-lease --force-if-includes. The work is to make both accept exactly the same forms. That means judging the extra form against the reason for the pinned lease, then narrowing the hook or widening the prose. It also means adding tests for each allowed and blocked form, making the block message name the allowed form, and having the PR body give the reason and name the dogfooding step.
Nothing is missing. The issue gives the intended outcome and done-when, and the direction is left to evidence under the recorded owner decision. I found no duplicate among the open issues and no merged pull request that already covers this.
Owner decision, 2026-11-13 ("go with recommendations", to the question restated in full): narrow the hook. The direction this item left open is settled.
The guardrails dangerous-git hook blocks --force-with-lease --force-if-includes, a lease with no pinned commit. The only allowed force push is a lease pinned to the full SHA (and whatever AGENTS.md already states for a branch that must not exist yet, if it states that).
AGENTS.md stays as written. No force-push form is added to it.
Reason: the owner's standing rule is "never ... a lease without the SHA", in AGENTS.md and in his own instructions; narrowing keeps one rule everywhere and loosens nothing.
Pull request 15958 widened the prose instead and is closed unmerged. The Done-when list is unchanged; its first item is now met by changing the hook, not the prose.
Refinement from the owner, 2026-11-13: narrow the hook "as long as it is valid, and always right, and isn't unnecessary friction."
Checked against that condition:
Valid: AGENTS.md allows only the pinned lease, and nothing in this repository outside the guardrails hook, its test and its README uses the unpinned form, so blocking it here costs no documented workflow.
Not always right for other users of the plugin: git-push, --force-with-lease documents --force-if-includes as git's own mitigation for an unpinned lease when a background fetch moved the remote-tracking ref ("will verify if updates from the remote-tracking refs that may have been implicitly updated in the background are integrated locally before allowing a forced update"). A hard block in a shipped hook would take a documented-safe form away from every consumer with no way to turn it back on.
So the build is a guardrails option, not a hard-coded block: the shipped default keeps today's behavior (the form stays allowed), and this repository sets the option strict, so here the hook blocks the unpinned form and agrees with AGENTS.md. AGENTS.md is not edited.
The lanes App's pull request #15958 for this issue was closed without merging. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage, which decides what work is left and admits it again.
Activity
github-actions commentedon Nov 13, 2026
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Understood: the AGENTS.md force-push rule allows only a lease pinned to a full SHA, while the guardrails dangerous-git hook also accepts
--force-with-lease --force-if-includes. The work is to make both accept exactly the same forms. That means judging the extra form against the reason for the pinned lease, then narrowing the hook or widening the prose. It also means adding tests for each allowed and blocked form, making the block message name the allowed form, and having the PR body give the reason and name the dogfooding step.Nothing is missing. The issue gives the intended outcome and done-when, and the direction is left to evidence under the recorded owner decision. I found no duplicate among the open issues and no merged pull request that already covers this.
Automated triage. A maintainer reviews it.
github-actions commentedon Nov 13, 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).
melodic-automation-lanes commentedon Nov 13, 2026
{"v":1,"actor_id":337595936,"title_sha256":"ba2ab44aedbf7be62029551e514739c4f1af49a576820beabd76768142c27873","body_sha256":"9ab53f67c43830523e63d6fb4923738373596333a065035608ecd0a82c07a74b"}
github-actions commentedon Nov 13, 2026
kyle-sexton commentedon Nov 13, 2026
Owner decision, 2026-11-13 ("go with recommendations", to the question restated in full): narrow the hook. The direction this item left open is settled.
--force-with-lease --force-if-includes, a lease with no pinned commit. The only allowed force push is a lease pinned to the full SHA (and whateverAGENTS.mdalready states for a branch that must not exist yet, if it states that).AGENTS.mdstays as written. No force-push form is added to it.AGENTS.mdand in his own instructions; narrowing keeps one rule everywhere and loosens nothing.Pull request 15958 widened the prose instead and is closed unmerged. The Done-when list is unchanged; its first item is now met by changing the hook, not the prose.
kyle-sexton commentedon Nov 13, 2026
kyle-sexton commentedon Nov 13, 2026
Refinement from the owner, 2026-11-13: narrow the hook "as long as it is valid, and always right, and isn't unnecessary friction."
Checked against that condition:
AGENTS.mdallows only the pinned lease, and nothing in this repository outside the guardrails hook, its test and its README uses the unpinned form, so blocking it here costs no documented workflow.--force-with-leasedocuments--force-if-includesas git's own mitigation for an unpinned lease when a background fetch moved the remote-tracking ref ("will verify if updates from the remote-tracking refs that may have been implicitly updated in the background are integrated locally before allowing a forced update"). A hard block in a shipped hook would take a documented-safe form away from every consumer with no way to turn it back on.So the build is a guardrails option, not a hard-coded block: the shipped default keeps today's behavior (the form stays allowed), and this repository sets the option strict, so here the hook blocks the unpinned form and agrees with
AGENTS.md.AGENTS.mdis not edited.fix(guardrails): drop options from the unpinned-lease key
melodic-automation-lanes commentedon Nov 13, 2026
The lanes App's pull request #15958 for this issue was closed without merging. work-unblock removed
status: readyandagent-ready, so the hourly triage sweep sends it back to intake triage, which decides what work is left and admits it again.