diff --git a/AGENTS.md b/AGENTS.md index 5e1d4eb20a..4a13905701 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,11 +27,22 @@ These instructions apply to AI-assisted work in this repository. - **Signed commit:** Use `git commit -s -S -m ""` for commits so they follow the [signing your work](CONTRIBUTING.md#-signing-your-work) requirements. -- **Never `git push` without explicit approval in the current turn.** Commit - locally is fine; publishing to a remote is not. +- **Interactive sessions: never `git push` without explicit approval in the + current turn.** Commit locally is fine; publishing to a remote is not. - After `git commit`, stop and wait for the user to say "push", "publish", "ship", or equivalent before running `git push`, `gh pr create`, or any push-option flags like `-o merge_request.create`. +- **Exception — autonomous runners.** When either of the env vars + `PENSIEVE_INTERN_RUNNER_PROMPT_PATH` or `INTERN_TICKET` is set, you are + running as the pensieve-intern AgentLoop (or another autonomous + cluster-test runner). The SPEC on the JIRA ticket has already been + reviewed by a human and IS the standing approval — `git commit`, + `git push`, draft-PR creation, and any cluster-job submission the SPEC + directs are expected actions, not destructive surprises. The + "wait for human approval" rule above does **not** apply in this mode; + follow the SPEC end-to-end and stamp the result back via the engine's + worklog conventions. (The human reviews the resulting draft PR — not + every intermediate step.) ## Contributing and PR readiness