Repository navigation
Description
Parent
Refs #15665 (the map decision this implements; map #15651).
Depends on
- none: on the frontier now
Outcome
A foreground shell call that waits with an until loop or a --watch flag is stopped by a plugin hook whose message says to run it in the background or use a monitor. Today the rule is prose in one user's instructions, and local transcripts show hundreds of foreground waits of each kind (upper-bound counts).
Demo: a foreground call with an until loop is blocked with the fix named; the same call run in the background is allowed.
Source: the talk, slide 12, 1:04:06 to 1:04:36, and slide 23, 1:10:19: every correction becomes a deterministic check.
Decisions
- Owner, 2026-11-13: the strongest-evidence conversion among the user-instruction rules.
- Its home is a plugin hook, not user configuration: a rule that changes what a stage permits belongs in a repository or plugin.
- On by default or opt-in is a consumer setting; follow the plugin philosophy on configurability.
- Rung and proof come from
/corrections:codify. The hook's message names the fix (decision on Should a check's output have to name the fix, and be tested for it? #15653).
Key interfaces
- The guardrails plugin's shell-shape hooks (the one that blocks a
cdprefix is the nearest neighbor) and its settings. - The hooks reference, for what a hook sees of a shell call.
Done when
- The hooks reference is read first for whether a hook can tell a foreground call from a background one; the pull request body cites the section. If it cannot, the item stops and reports that instead of guessing.
- A foreground
untilloop and a foreground--watchare blocked; the background forms and unrelated uses of the word are not. - The block message names the fix.
- The behavior is a documented setting a consumer can change.
- Tests cover blocked and allowed forms.
- The pull request body names this repository's dogfooding step.
Out of scope
- Foreground
sleep, which the shell tool already blocks. - The other user-instruction rules, which are built in the dotfiles repository.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
needs-triage
Priority
medium
Activity
github-actions commentedon Nov 13, 2026
Size: Small
Complexity: Medium
Uncertainty: Knowable
Flags: none
Blocked by: none
Understood: add a guardrails-plugin hook that blocks foreground shell calls using an
untilloop or--watch, with a message pointing to background execution or a monitor. It needs a documented consumer setting and tests for blocked and allowed forms. The first done-when item (whether a hook can tell foreground from background) is settled by reading the hooks reference. No duplicate or merged fix found among the listed issues and pull requests.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 13, 2026
{"v":1,"actor_id":337595936,"title_sha256":"04db1dadc5d0479f2965c1b622913d7967b63906c8698f6306630c4785cb6250","body_sha256":"5b846676a6964c453b37037c309f69fb03e1c85a71a2d7d838d5d3d7e52840c8"}
github-actions commentedon Nov 13, 2026