Tighten commit approval workflow

This commit is contained in:
Anthony Wen
2026-07-29 11:35:54 -04:00
parent dbfca7e6eb
commit 556cce9408
3 changed files with 14 additions and 2 deletions
+4 -2
View File
@@ -36,7 +36,7 @@ This file records ATVM-specific git workflow preferences for `/home/aw/code/cds/
- the exact `git commit` command planned for execution
- When a detailed body is warranted, do not reduce the proposed commit to only the short title at execution time.
- Do not run `git commit` immediately after drafting the message.
- Wait for explicit user approval before creating the commit.
- Wait for exact user approval before creating the commit.
- Do not treat a request such as "give me the git commit" or "make the commit" as approval by itself.
- Do not treat a request such as "create a git for me", "show me a proposed git commit", "prepare the commit", or any similar commit-related wording as approval by itself.
- Treat all of the following as approval-gated prepare-only requests, not as permission to run `git commit`:
@@ -50,7 +50,9 @@ This file records ATVM-specific git workflow preferences for `/home/aw/code/cds/
- Treat close variations of those phrases with the same intent the same way.
- If the request means "prepare or create git/commit wording or a commit", ask for approval first before running any commit action.
- Treat every commit-related request as prepare-and-show-only until the operator explicitly approves the commit after seeing the proposed message or exact command.
- Only execute `git commit` after the operator explicitly approves the displayed commit command.
- For commits the assistant would execute locally, show the repo path, current branch, exact files to stage, and exact commit message before running `git add` or `git commit`.
- Only execute `git add` or `git commit` after the operator replies with the exact phrase `approve commit` for the displayed scope and message.
- If the proposed scope or message changes after review, show the updated scope/message and require a new `approve commit`.
- If there is any ambiguity about whether the operator is asking for preparation versus execution, default to not committing.
## Push Requests