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
Align downstream OpenSpec scaffolds with recodee bootstrap (#247)
Sync the setup-managed change and plan helpers to the richer recodee versions and lock the new scaffold shape with install regressions.
Constraint: gx setup should install the same OpenSpec helper behavior already used in recodee
Rejected: Update only templates | runtime/template drift would break parity guarantees
Rejected: Copy the recodee plan scaffold verbatim without fixes | unescaped backticks corrupted generated cleanup text
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Keep scripts/openspec and templates/scripts/openspec in lockstep with frontend mirrors and install tests
Tested: node --test --test-name-pattern OpenSpec test/install.test.js; node --test test/metadata.test.js; node --check bin/multiagent-safety.js; openspec validate agent-codex-sync-recodee-openspec-bootstrap-into-gx-2026-04-21-17-20 --type change --strict; openspec validate --specs; git diff --check
Not-tested: Full npm test suite
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
This change is complete only when **all** of the following are true:
89
+
90
+
- Every checkbox below is checked.
91
+
- The agent branch reaches \`MERGED\` state on \`origin\` and the PR URL + state are recorded in the completion handoff.
92
+
- 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.
93
+
54
94
## 1. Specification
55
95
56
96
- [ ] 1.1 Finalize proposal scope and acceptance criteria for \`${CHANGE_SLUG}\`.
@@ -67,11 +107,11 @@ if [[ ! -f "${CHANGE_DIR}/tasks.md" ]]; then
## 4. Cleanup (mandatory; run before claiming completion)
71
111
72
-
- [ ] 4.1 Finish the agent branch via PR merge + cleanup (\`gx finish --via-pr --wait-for-merge --cleanup\` or \`bash scripts/agent-branch-finish.sh --branch <agent-branch> --base <base-branch> --via-pr --wait-for-merge --cleanup\`).
73
-
- [ ] 4.2 Record PR URL + final \`MERGED\` state in the completion handoff.
74
-
- [ ] 4.3 Confirm sandbox cleanup (\`git worktree list\`, \`git branch -a\`) or capture a \`BLOCKED:\` handoff if merge/cleanup is pending.
112
+
- [ ] 4.1 Run the cleanup pipeline: \`bash scripts/agent-branch-finish.sh --branch ${AGENT_BRANCH} --base dev --via-pr --wait-for-merge --cleanup\`. This handles commit -> push -> PR create -> merge wait -> worktree prune in one invocation.
113
+
- [ ] 4.2 Record the PR URL and final merge state (\`MERGED\`) in the completion handoff.
114
+
- [ ] 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).
75
115
TASKSEOF
76
116
fi
77
117
@@ -89,5 +129,5 @@ The system SHALL enforce ${CAPABILITY_SLUG} behavior as defined by this change.
0 commit comments