docs: add Codex git operation policy

This commit is contained in:
nejimakibird 2026-05-30 06:04:34 +09:00
parent 2a4288f904
commit 0baede8169

View file

@ -107,4 +107,26 @@ Unless explicitly requested, do not:
- Add mobile-specific support
- Add server-side or external network behavior
- Add telemetry or analytics
- Replace the text-first design principle with GUI-first editing
- Replace the text-first design principle with GUI-first editing
## Git operation policy
Codex must not perform remote Git operations.
Allowed:
- inspect repository state with `git status`, `git diff`, `git log`, etc.
- edit files
- run local verification commands such as `npm run build`
- create local commits only when explicitly requested by the user
Not allowed:
- `git push`
- pushing tags
- creating GitHub releases
- merging into `develop` or `main`
- force push
- deleting remote branches
- changing remote repository settings
Codex should stop after local changes, local verification, and local commit if requested.
The user will review and manually perform pushes, tag pushes, merges, and releases.