package page→ /base/human-gate.md
pages/base/human-gate.md
18 lines, 991 B. As a page.
- ---
- type: Page
- title: "The \"human approves\" gate"
- gated:
- - {pattern: '\b(npm|bun|pnpm|yarn)\s+publish\b', why: 'publishing a package for everyone'}
- - {pattern: '\bgh\s+(pr|issue|release)\s+create\b', why: 'publishing on GitHub'}
- - {pattern: '\bgh\s+(pr|issue)\s+(comment|review)\b', why: 'a message to people on GitHub'}
- - {pattern: '\bgit\s+push\b[^;&|]*\s(--force|-f)\b', why: 'rewriting history on the server'}
- - {pattern: '\bsendmail\b', why: 'a letter to people'}
- ---
- # The "human approves" gate
- Commands that an agent runs only after a person's "yes". The `gated` field in the header: `pattern` is a regular expression over the text of a Bash command, `why` is what this action is for a person.
- The list is edited by the owner of the project. An empty list (`gated: []`) holds nothing. If the page does not exist, the package list applies, the same as the default here.
- How approval goes is on the page [Approvals](/work/approvals.md). The norms are HG-R01 and HG-R02.