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
Guardex already maintains the canonical agent contract in AGENTS.md, but fresh setup left Claude Code without a root CLAUDE.md entrypoint. This makes setup and doctor create a CLAUDE.md symlink to AGENTS.md only when the path is absent, while preserving any existing Claude guidance unchanged.
Constraint: Existing root CLAUDE.md files must not be overwritten.
Rejected: Copy AGENTS.md into CLAUDE.md | duplicated guidance would drift.
Confidence: high
Scope-risk: narrow
Directive: Keep AGENTS.md as the canonical managed guidance surface; CLAUDE.md should stay a pointer unless the user already owns it.
Tested: node --test --test-name-pattern "CLAUDE.md|setup provisions workflow files" test/setup.test.js
Tested: openspec validate agent-codex-codex-task-2026-05-13-00-50 --type change --strict
Tested: openspec validate --specs
Not-tested: Full node --test test/setup.test.js still has unrelated baseline failures documented in openspec tasks.md.
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Co-authored-by: OmX <omx@oh-my-codex.dev>
This change is complete only when **all** of the following are true:
4
+
5
+
- Every checkbox below is checked.
6
+
- The agent branch reaches `MERGED` state on `origin` and the PR URL + state are recorded in the completion handoff.
7
+
- If any step blocks (test failure, conflict, ambiguous result), append a `BLOCKED:` line under section 4 explaining the blocker and **STOP**. Do not tick remaining cleanup boxes; do not silently skip the cleanup pipeline.
8
+
9
+
## Handoff
10
+
11
+
- Handoff: change=`agent-codex-codex-task-2026-05-13-00-50`; branch=`agent/codex/codex-task-2026-05-13-00-50`; scope=`gx setup creates CLAUDE.md link to AGENTS.md`; action=`continue this sandbox or finish cleanup after a usage-limit/manual takeover`.
12
+
- Copy prompt: Continue `agent-codex-codex-task-2026-05-13-00-50` on branch `agent/codex/codex-task-2026-05-13-00-50`. Work inside the existing sandbox, review `openspec/changes/agent-codex-codex-task-2026-05-13-00-50/tasks.md`, continue from the current state instead of creating a new sandbox, and when the work is done run `gx branch finish --branch agent/codex/codex-task-2026-05-13-00-50 --base dev --via-pr --wait-for-merge --cleanup`.
13
+
14
+
## 1. Specification
15
+
16
+
-[x] 1.1 Finalize proposal scope and acceptance criteria for `agent-codex-codex-task-2026-05-13-00-50`.
17
+
-[x] 1.2 Define normative requirements in `specs/codex-task/spec.md`.
18
+
19
+
## 2. Implementation
20
+
21
+
-[x] 2.1 Implement scoped behavior changes.
22
+
-[x] 2.2 Add/update focused regression coverage.
23
+
24
+
## 3. Verification
25
+
26
+
-[x] 3.1 Run targeted project verification commands.
- Full `node --test test/setup.test.js` ran the new cases successfully, but the suite still has unrelated baseline failures in hook redirect, older git `worktree --orphan`, masterplan path, disabled OpenSpec slug, and Colony package rename expectations.
29
+
-[x] 3.2 Run `openspec validate agent-codex-codex-task-2026-05-13-00-50 --type change --strict`.
30
+
-[x] 3.3 Run `openspec validate --specs`.
31
+
32
+
## 4. Cleanup (mandatory; run before claiming completion)
33
+
34
+
-[ ] 4.1 Run the cleanup pipeline: `gx branch finish --branch agent/<your-name>/<branch-slug> --base dev --via-pr --wait-for-merge --cleanup`. This handles commit -> push -> PR create -> merge wait -> worktree prune in one invocation.
35
+
-[ ] 4.2 Record the PR URL and final merge state (`MERGED`) in the completion handoff.
36
+
-[ ] 4.3 Confirm the sandbox worktree is gone (`git worktree list` no longer shows the agent path; `git branch -a` shows no surviving local/remote refs for the branch).
0 commit comments