@@ -17,6 +17,10 @@ subagents. Keep parent-thread updates to concise progress and clickable URLs.
1717- Use full-history forks so every subagent inherits the orchestrator's model
1818 and ** xhigh reasoning effort** . Never print, record, or disclose model
1919 identifiers; redact subprocess banners and diagnostics before reporting.
20+ - Begin every full-history child assignment with its explicit role and agent
21+ identity, require inherited ** xhigh reasoning effort** , and forbid
22+ ` create_goal ` , visualizations, ` spawn_agent ` , or nested agents. Children
23+ return evidence to the orchestrator; never downgrade their model or effort.
2024- Treat a request to run this workflow as authority to create lightweight,
2125 issue-scoped isolated Git worktrees and ` codex/issue-<id> ` branches, review,
2226 fix, refactor, commit, push, create/update PRs, land eligible changes,
@@ -67,6 +71,7 @@ subagents. Keep parent-thread updates to concise progress and clickable URLs.
6771 mutate the shared checkout while sibling workers are active. Once isolated
6872 worktrees exist, independent issue owners edit, inspect, and verify in
6973 parallel within their own checkout.
74+
70756 . Keep all ** 64** inherited high-effort agents available, but distinguish idle
7176 agents from active local tool users. Start with bounded waves of ** 4–8**
7277 concurrently active code/test workers and continuously reduce or expand that
@@ -185,6 +190,74 @@ Choose outcomes in this order:
185190- Do not edit ` CHANGELOG.md ` ; capture user impact, issue/PR references, and
186191 human credit in the PR body or commit message.
187192
193+ ## Hard issue-closure gate
194+
195+ An issue stays open unless every step below passes. Similar wording, adjacent
196+ tests, merged PR dates, contributor suggestions, and confident review summaries
197+ are not closure proof.
198+
199+ 1 . Write down the reporter's exact ** primary symptom** , desired user-visible
200+ outcome, every separately affected surface, reported version/build SHA, and
201+ all proposed alternatives. An optional mitigation or diagnostic suggestion
202+ does not replace the reported primary outcome.
203+ 2 . Personally trace both shipped and current behavior end to end: entry point,
204+ canonical owner, caller, callee, dependency contract, sibling surfaces, and
205+ existing tests. Reproduce the exact reported failure on the affected build
206+ and prove the same user action succeeds on current ` main ` . Use a runnable
207+ product or boundary-level regression; a nearby unit test, revised error text,
208+ or an unexecuted source inspection is insufficient.
209+ 3 . Prove Git ancestry rather than inferring it from dates:
210+
211+ ``` bash
212+ git merge-base --is-ancestor " $fix_sha " " $current_main_sha "
213+ git merge-base --is-ancestor " $fix_sha " " $reported_build_or_tag_sha "
214+ git tag --contains " $fix_sha "
215+ ```
216+
217+ The fix must be an ancestor of current ` main ` . Compare it against ** each**
218+ affected exact build/tag, account for diverged release branches, and identify
219+ the first containing release when known. A merge before a release date does
220+ not prove inclusion in that release. If the fix was already in an affected
221+ build, assume the report still reproduces until a later causal fix is proved.
222+
223+ 4 . Classify the candidate honestly: root-cause repair, mitigation, diagnostic
224+ improvement, unsupported contract, workaround, or product decision. Never
225+ close because a suggested fallback landed if the primary action still fails,
226+ any reported surface remains broken, an owner hold exists, or documented
227+ behavior requires an unresolved maintainer/security/product decision.
228+ 5 . Require a ** different, independent subagent with inherited xhigh reasoning**
229+ to challenge the investigator's closure packet. The challenger personally
230+ verifies the primary outcome, every affected surface, runtime owner and
231+ contract, release ancestry, and before/after proof. The investigator cannot
232+ self-approve; only a separate authorized closure coordinator may grant the
233+ mutation after both reviewers agree. Any disagreement means ** leave open** .
234+ 6 . Immediately recheck live GitHub state, labels/owner holds, current ` main ` ,
235+ and exact proof. Do not close on stale state, an incomplete source map, an
236+ indirect main-only test, changed wording without changed behavior, or any
237+ unresolved facet. In ** one sentence** , the closure comment must state the
238+ exact fixed behavior, fix SHA/PR, first containing version when known, and
239+ before/after evidence.
240+ 7 . If a closure is challenged or an incorrectly closed issue is reopened,
241+ ** pause all closure mutations** . Audit earlier closures, correct the public
242+ record, reopen proven mistakes, and resume only after explicit root
243+ authorization. Continue safe investigation and verified code-fix work.
244+
245+ Required evidence map:
246+
247+ ``` text
248+ Primary symptom -> expected outcome -> every reported surface -> affected build/tag
249+ Entry -> caller -> canonical owner -> callee -> dependency -> sibling -> boundary proof
250+ Fix SHA -> current-main ancestry -> each affected-build ancestry -> containing release
251+ Affected-build failure -> current-main success -> independent challenge -> coordinator grant
252+ ```
253+
254+ Reject example: a remote command fails because its explicit working directory
255+ does not exist on the target host. A merged change that only replaces a vague
256+ spawn error with an accurate invalid-directory diagnostic is useful, but the
257+ command still fails. If the primary expected outcome is successful execution,
258+ leave the issue open; changing that explicit-directory contract may need an
259+ owner decision.
260+
188261## Verify behavior and obtain two independent reviews
189262
190263For every non-trivial production change:
@@ -253,9 +326,9 @@ moves:` item with real evidence or an explicit reason for skipping it.
253326- Keep owner/security/auth/config/public-SDK/protocol/persistent-state/product
254327 decisions outside autonomous landing when the relevant guide requires owner
255328 judgment. Continue with the next issue instead of blocking the whole sweep.
256- - Close a fixed issue only after live rechecking its open state and matching
257- the original symptoms to current-main proof. Cite the merged PR/commit and
258- ask the reporter to reopen if it still reproduces on the current version .
329+ - Close a fixed issue only after the complete ** Hard issue-closure gate ** ,
330+ independent challenger sign-off, coordinator grant, and fresh live recheck.
331+ Cite the exact causal PR/commit and first containing release when known .
259332- Never close merely because a repro is difficult, the report is inconvenient,
260333 the behavior might be intentional, or the PR is stale. Product-decision and
261334 won't-implement closures require maintainer judgment.
0 commit comments