Ray's Knowledge Base
Unlock

Commit locally and let the user push

PreferenceVerified 30 Sep 2026Holds anywhere
Preference. A rule, why it holds, and how to apply it.

Rule#

Do not run git push (or push tags, or trigger a release) unless the user asks. Commit, then say that the user must push.

Why#

The user objected loudly ("WHY YOU PUSHING") after the agent pushed CI fixes to a public repo twice to check them on CI. Releases are the user's own call. A reason such as "to verify the fix on CI" is not permission.

How to apply#

After a CI fix, commit and report: "committed as , you need to push". Verify locally with the CI's environment instead (same git version, same env vars). Watch a run only after the user pushed and gave its URL.

Also found by searching

  • git push origin main && gh run watch to check the CI fix on the public repo
  • should the agent push the CI fix itself to see if the workflow passes?
  • after committing a fix, may the assistant push to the remote or trigger a release?
  • agent pushed commits and tags without permission to verify on GitHub Actions, user wants commit only
  • should I git push the CI fix to check it on the remote after committing?
  • user shouted at agent for pushing to public repo, when is pushing allowed?
  • how should an agent verify a CI fix without pushing or tagging a release?
  • after finishing changes, do I run git push or leave it for the user