1
Safety and Gates
Jason Walker edited this page 2026-07-06 01:36:36 -04:00

Safety and Gates

Navigation

Prompts express intent; MCP tools enforce safety.

Primary gates

  1. Fail closed — Unknown tasks, missing capability resolution, or profile mismatches block mutations.
  2. Task capability mapgitea_resolve_task_capability must precede gated issue/PR mutations.
  3. Issue lockgitea_lock_issue required before author implementation on a tracked issue.
  4. Head SHA pinning — Reviews and merges refuse when the PR head moved.
  5. Explicit merge confirmationgitea_merge_pr requires confirmation="MERGE PR <n>".
  6. No self-review / self-merge — Authenticated user must differ from PR author for approve/merge.
  7. Review decision lock — Live review mutations require validation-phase dry-run and gitea_mark_final_review_decision.
  8. Redaction — Tokens, passwords, and keychain material never appear in tool output.
  9. Wiki publication (#224)docs/wiki/ and the sync helper are prerequisites only. Closing a wiki issue requires live Gitea Wiki proof on the repo Wiki tab. See Runbooks.