ShtukbaseStandard
package page→ /base/human-gate.md

pages/base/human-gate.md

18 lines, 991 B. As a page.

  1. ---
  2. type: Page
  3. title: "The \"human approves\" gate"
  4. gated:
  5. - {pattern: '\b(npm|bun|pnpm|yarn)\s+publish\b', why: 'publishing a package for everyone'}
  6. - {pattern: '\bgh\s+(pr|issue|release)\s+create\b', why: 'publishing on GitHub'}
  7. - {pattern: '\bgh\s+(pr|issue)\s+(comment|review)\b', why: 'a message to people on GitHub'}
  8. - {pattern: '\bgit\s+push\b[^;&|]*\s(--force|-f)\b', why: 'rewriting history on the server'}
  9. - {pattern: '\bsendmail\b', why: 'a letter to people'}
  10. ---
  11. # The "human approves" gate
  12. 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.
  13. 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.
  14. How approval goes is on the page [Approvals](/work/approvals.md). The norms are HG-R01 and HG-R02.