Skip to content

Commit bddce9a

Browse files
NagyViktNagyVikt
andauthored
Auto-finish: agent/codex/takeover-task-7d894129d262-2026-04-24-18-07 (#434)
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
1 parent fd0c8e5 commit bddce9a

4 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
schema: spec-driven
2+
created: 2026-04-24
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Why
2+
3+
- TODO: describe the user/problem outcome this change addresses.
4+
5+
## What Changes
6+
7+
- TODO: summarize the intended behavior and scope.
8+
9+
## Impact
10+
11+
- TODO: call out risks, rollout notes, and affected surfaces.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## ADDED Requirements
2+
3+
### Requirement: agent-codex-takeover-task-7d894129d262-2026-04-24-17-47 behavior
4+
The system SHALL enforce agent-codex-takeover-task-7d894129d262-2026-04-24-17-47 behavior as defined by this change.
5+
6+
#### Scenario: Baseline acceptance
7+
- **WHEN** agent-codex-takeover-task-7d894129d262-2026-04-24-17-47 behavior is exercised
8+
- **THEN** the expected outcome is produced
9+
- **AND** regressions are covered by tests.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Definition of Done
2+
3+
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-takeover-task-7d894129d262-2026-04-24-17-47`; branch=`agent/codex/takeover-task-7d894129d262-2026-04-24-17-47`; scope=`TODO`; action=`continue this sandbox or finish cleanup after a usage-limit/manual takeover`.
12+
- Copy prompt: Continue `agent-codex-takeover-task-7d894129d262-2026-04-24-17-47` on branch `agent/codex/takeover-task-7d894129d262-2026-04-24-17-47`. Work inside the existing sandbox, review `openspec/changes/agent-codex-takeover-task-7d894129d262-2026-04-24-17-47/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/takeover-task-7d894129d262-2026-04-24-17-47 --base main --via-pr --wait-for-merge --cleanup`.
13+
14+
## 1. Specification
15+
16+
- [ ] 1.1 Finalize proposal scope and acceptance criteria for `agent-codex-takeover-task-7d894129d262-2026-04-24-17-47`.
17+
- [ ] 1.2 Define normative requirements in `specs/agent-codex-takeover-task-7d894129d262-2026-04-24-17-47/spec.md`.
18+
19+
## 2. Implementation
20+
21+
- [ ] 2.1 Implement scoped behavior changes.
22+
- [ ] 2.2 Add/update focused regression coverage.
23+
24+
## 3. Verification
25+
26+
- [ ] 3.1 Run targeted project verification commands.
27+
- [ ] 3.2 Run `openspec validate agent-codex-takeover-task-7d894129d262-2026-04-24-17-47 --type change --strict`.
28+
- [ ] 3.3 Run `openspec validate --specs`.
29+
30+
## 4. Cleanup (mandatory; run before claiming completion)
31+
32+
- [ ] 4.1 Run the cleanup pipeline: `gx branch finish --branch agent/codex/takeover-task-7d894129d262-2026-04-24-17-47 --base main --via-pr --wait-for-merge --cleanup`. This handles commit -> push -> PR create -> merge wait -> worktree prune in one invocation.
33+
- [ ] 4.2 Record the PR URL and final merge state (`MERGED`) in the completion handoff.
34+
- [ ] 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

Comments
 (0)