mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
docs(agents): require per-push confirmation for default branches
This commit is contained in:
1 parent
2d2f2ca7c6
commit
7b1b8f6382
1 file changed
+5
-4
+5
-4
@@ -71,10 +71,11 @@ one program does not merge them into a single action.
|
||||
|
||||
For an impactful change, follow these steps in order, scaled to its risk:
|
||||
|
||||
1. **Authorize.** Agents MUST get authorization for the exact target and action. It covers only that
|
||||
target, including follow-up actions of the same kind in the task (e.g. more pushes to the PR
|
||||
branch the user asked for): "deploy to staging" does not cover production or shared resources
|
||||
like IAM and DNS. If the target is unclear, ask.
|
||||
1. **Authorize.** Agents MUST get authorization for the exact target and action. It covers repeating
|
||||
that action on that target for the requested changes only (e.g. more pushes to the PR branch the
|
||||
user asked for); never for default branches: confirm with the user before every push to
|
||||
main/master. "Deploy to staging" does not cover production or shared resources like IAM and DNS.
|
||||
If the target is unclear, ask.
|
||||
2. **Confirm the target** with read-only commands (e.g. current cloud account, kube context,
|
||||
Terraform workspace, git remote and branch). Specify the destination and applicable context,
|
||||
region, and namespace explicitly. Defaults and directory names are not evidence. Reuse earlier
|
||||
|
||||
Reference in new issue
Block a user