Tighten commit approval workflow
This commit is contained in:
@@ -71,6 +71,10 @@ This file defines how to operate and maintain the ATVM workspace in `/home/aw/co
|
||||
- Default all ATVM automation runs to watcher-backed execution unless the operator explicitly says to run without watcher.
|
||||
- After starting an ATVM automation run, report the exact executed `cmc-templates.py` and `run-sorry-cypress.py` commands.
|
||||
- Treat git/commit requests as a separate approval gate.
|
||||
- Treat commit-related wording such as `commit it`, `make the commit`, `create a git`, `give me a commit`, or close variations as a request to prepare the commit for review, not as approval to run `git add` or `git commit`.
|
||||
- Before any local `git add` or `git commit`, show the repo path, current branch, exact files to stage, and exact commit message.
|
||||
- Only run `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`.
|
||||
- Follow `/home/aw/code/cds/atvm/git-guide.md` for ATVM git command drafting and commit-request handling, including the rule that the controller `e2e cypress` repo behavior only applies when the operator explicitly asks for the `e2e cypress` repo or a close variation, the rule to draft plain git commands rather than SSH-wrapped controller login commands unless explicitly requested, the SSH-prefixed push example requirement for that repo, and the rule that phrases such as `create me a git`, `create a git`, `create a git description`, `make me a git`, `make a git`, `make me a git description`, `create me a git description`, and close variations are prepare-only until the operator explicitly approves the displayed commit command.
|
||||
- Never execute `git push` from the assistant for this workspace.
|
||||
- After creating a local commit for the explicitly requested `e2e cypress` controller repo, stop and give the operator the exact manual SSH-prefixed push command reference from `git-guide.md`, unless they explicitly ask for a different remote or branch.
|
||||
|
||||
Reference in New Issue
Block a user