Skip to content

Commit 8389e49

Browse files
committed
docs: clarify git handoff policy
1 parent b1af284 commit 8389e49

3 files changed

Lines changed: 44 additions & 19 deletions

File tree

AGENTS.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,31 @@
1313

1414
| Agent | Role | Authority |
1515
|-------|------|-----------|
16-
| Claude Code | Lead implementation and validation | [CLAUDE.md](CLAUDE.md) |
17-
| OpenAI Codex | Documentation, release readiness, stabilization, and repo hygiene | [CODEX.md](CODEX.md) |
16+
| Claude Code | Lead implementation and validation | [CLAUDE.md](CLAUDE.md) **no git access** |
17+
| OpenAI Codex | Documentation, release readiness, stabilization, repo hygiene, **and all git operations in this repo** | [CODEX.md](CODEX.md) |
1818
| ChatGPT | Strategy, coordination, prompt design, and external review | Support only |
1919
| GitHub Copilot | Development assistance | [COPILOT.md](COPILOT.md) |
2020
| Google Jules | Bounded automated maintenance | [JULES.md](JULES.md) |
2121

22-
**All AI agents in this roster** — Claude Code, OpenAI Codex, GitHub Copilot,
23-
and Google Jules — have full commit, push, and tag authority in this
24-
repository, effective 2026-07-25 by explicit direction from Bradley Potts —
25-
see the Commit Policy section in each agent's own guide
26-
([CLAUDE.md](CLAUDE.md), [CODEX.md](CODEX.md), [COPILOT.md](COPILOT.md),
27-
[JULES.md](JULES.md)). **OpenAI Codex** additionally has release authority:
22+
**Claude Code has no git access in this repository, effective 2026-08-13 by
23+
explicit direction from Bradley Potts.** This revokes and replaces the prior
24+
grant of commit, push, and tag authority to Claude Code described below.
25+
Claude Code must not run any git command — read-only (`git status`, `git
26+
diff`, `git log`) or mutating (`git commit`, `git push`, `git tag`, or any
27+
other) — here. Claude Code's role stops at editing files and validating
28+
changes; it then hands off to Codex (or Bradley Potts) to execute any git
29+
operation. See [CLAUDE.md](CLAUDE.md) "Git Access — Denied" for the
30+
repo-specific statement of this policy.
31+
32+
**OpenAI Codex, GitHub Copilot, and Google Jules** retain full commit, push,
33+
and tag authority in this repository, effective 2026-07-25 by explicit
34+
direction from Bradley Potts — see the Commit Policy section in each agent's
35+
own guide ([CODEX.md](CODEX.md), [COPILOT.md](COPILOT.md),
36+
[JULES.md](JULES.md)). **Codex additionally now executes git operations on
37+
behalf of Claude Code's finished work in this repo** — when Claude Code hands
38+
off a validated, ready-to-commit change, Codex is the agent that runs the
39+
actual `git add`/`commit`/`push`/`tag` commands for it. **OpenAI Codex**
40+
additionally has release authority:
2841
Codex cuts releases autonomously — version bump, changelog versioning,
2942
`v<version>` git tag, and GitHub Release publish via `gh` — for every
3043
release-ready `CHANGELOG.md [Unreleased]` section, without waiting for
@@ -36,11 +49,11 @@ covers git and release operations within each agent's own scope of work as
3649
defined above — it does not expand what any agent is authorized to decide
3750
otherwise. ChatGPT has no repository access and is excluded.
3851

39-
**A commit is not finished until it is pushed.** Every agent in this roster
40-
must push immediately after committing (`git push`, including any needed
41-
`-u`/tags) as part of the same action — never leave a commit sitting local
42-
only. This closes a recurring gap where an agent commits and stops short of
43-
pushing, leaving work stranded on the machine.
52+
**A commit is not finished until it is pushed.** Every agent with git
53+
authority in this roster must push immediately after committing (`git push`,
54+
including any needed `-u`/tags) as part of the same action — never leave a
55+
commit sitting local only. This closes a recurring gap where an agent commits
56+
and stops short of pushing, leaving work stranded on the machine.
4457

4558
**Commit authorship is human-only.** No agent adds itself (or any other AI)
4659
as a commit author or co-author — no `Co-Authored-By: Claude`/`Codex`/

CLAUDE.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@ was not migrated; do not conflate the two. Shared HTTP plumbing beyond that
2222
belongs upstream in `ruby_api_pack_core` — see that repo's own `CLAUDE.md`
2323
before changing anything that looks like generic request/response handling.
2424

25-
## Commit Policy
26-
27-
See [AGENTS.md](AGENTS.md) for the full grant of authority. Claude Code
28-
applies it here: run validation before committing, then stage, commit,
29-
tag, and push without per-action confirmation. `gem push` (RubyGems
30-
publish) stays with Bradley Potts.
25+
## Git Access — Denied
26+
27+
**Claude Code has zero git access in this repo, as part of a companywide
28+
policy.** Claude Code must not run `git commit`, `git push`, `git tag`, or
29+
any other git command — read-only or mutating — here. This supersedes the
30+
prior commit/push/tag grant described in [AGENTS.md](AGENTS.md). OpenAI
31+
Codex now executes all git operations for this repo; see [AGENTS.md](AGENTS.md)
32+
and [CODEX.md](CODEX.md).
33+
34+
When work is ready, Claude Code runs the validation gate described in
35+
[AGENTS.md](AGENTS.md) and then stops short of any git command, handing off
36+
to Codex (or Bradley Potts) with a summary of files changed and validation
37+
performed. `gem push` (RubyGems publish) stays with Bradley Potts.
3138

3239
## Development Workflow
3340

CODEX.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ commit, push, and tag authority for its own scope of work, including
99
cutting the release itself (see "Release Mechanics" below). `gem push`
1010
(RubyGems publish) and merge decisions stay with Bradley Potts.
1111

12+
Claude Code has no git access in this repo. Codex is now also responsible for
13+
executing git operations for Claude Code's handed-off, validated work here —
14+
staging, committing, and pushing it — not just Codex's own
15+
documentation/hygiene commits.
16+
1217
## Default Workflow
1318

1419
1. Inspect the current working tree and preserve unrelated local changes.

0 commit comments

Comments
 (0)