You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Drop unused Edit from allowed-tools.
- Document the Co-Authored-By trailer in commit-format conventions.
- Tighten the AWS secret-key scan to assignment + 40-char value so
bare references in .env.example don't trip the gate.
- Reorder Phase 6 so gh auth status runs before any temp-file write,
add an existing-PR check that stops with the URL surfaced (no silent
gh pr create failure on re-runs), make the title prefix derive from
classification instead of hard-coded FEAT, and switch cleanup to rm -f.
- Require every '-' placeholder from the PR-body template to be
replaced with prose or a literal TODO before raising.
- Update Section 9 to describe the existing-PR stop behavior.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
— anchors on assignment + a 40-char value so bare references in `.env.example`
92
+
don't trip the gate). On hit:
72
93
1. Print the matched line and the file it came from
73
-
2. Use AskUserQuestion to offer:
74
-
-**Unstage the file** from this ship (`git restore --staged <path>`)
75
-
-**Skip the file from this PR** (leave staged but exclude from commits)
94
+
2. Use AskUserQuestion to offer (both options must call
95
+
`git restore --staged <path>` first — leaving the file staged means it
96
+
*will* be included in the next commit, regardless of which paths you
97
+
`git add` afterwards):
98
+
-**Drop from this PR, keep in working tree** —
99
+
`git restore --staged <path>` (file remains on disk for a future ship)
100
+
-**Drop from this PR and remove from working tree** —
101
+
`git restore --staged <path>` then `rm <path>` (or `git rm <path>` if
102
+
it was tracked) so the secret is no longer present anywhere
76
103
-**Cancel ship entirely**
77
104
3. Do not proceed past Phase 1 until the user picks one
78
105
@@ -106,7 +133,8 @@ After confirmation:
106
133
2. For each planned commit:
107
134
- Stage the relevant files: `git add <path>...` (use `-p` only when a single file
108
135
legitimately needs to be split across commits)
109
-
- Commit with a Conventional Commits message via HEREDOC
136
+
- Commit with a Conventional Commits message via HEREDOC. The HEREDOC
137
+
body must include the `Co-Authored-By` trailer documented in Section 1.
110
138
3.`git push -u origin <branch-name>` (skip if already pushed and up to date)
111
139
112
140
Hard rules:
@@ -126,30 +154,47 @@ Fill each section per the source-of-truth mapping in Section 3.
126
154
Use **descriptive, full-sentence prose** — telegraph bullets are not acceptable.
127
155
Use `TODO` as a marker for any section that can't be filled confidently.
128
156
157
+
Every `-` placeholder from the template must be replaced — either with a
158
+
filled, prose answer or with a literal `TODO`. A bare `-` is never an
159
+
acceptable final value in the rendered body.
160
+
129
161
**Render the full PR body and show it to the user. Wait for confirmation** before raising. Phrase the prompt as a natural question (e.g., "Ready to open the draft PR?"), not as "Confirmation Gate."
130
162
131
163
### Phase 6 — Raise the PR
132
164
133
-
1. Sanitize the branch name (the `feat/`/`fix/` prefix contains a `/`, which
165
+
1. Check `gh auth status`. If it fails, instruct the user to run
166
+
`gh auth login` and stop. Do not retry silently — and do not proceed to
167
+
any of the steps below, so no temp file is left behind.
168
+
2. Check whether a PR for this branch already exists:
0 commit comments