Commit 7a3ae08
authored
* fix(next-task): invoke ship:ship via Skill tool instead of Task agent (#230)
Phase 12 was calling Task({ subagent_type: "ship:ship" }) but ship:ship
is a command/skill with no agent definition. The call silently failed,
leaving the workflow stuck after delivery validation with no PR created.
Replace with Skill({ skill: "ship:ship", args: "--state-file ..." }) and
add Skill to allowed-tools in the command frontmatter.
* test(next-task): add regression tests for ship:ship Skill invocation (#230)
Add 4 tests to prevent regression of the Phase 12 fix that changed
ship:ship from Task() to Skill() invocation:
- allowed-tools frontmatter includes Skill
- Phase 12 uses Skill() not Task() for ship:ship
- --state-file argument is passed to ship:ship
- codex adapter SKILL.md mirrors the Skill() fix
* fix(next-task): add await to Skill() call and strengthen regression tests (#230)
Add missing await to the Skill({ skill: "ship:ship", ... }) invocation in
Phase 12 for consistency with codebase style (other Skill() calls use await).
Improve regression tests in next-task-phase11.test.js:
- Assert allowed-tools includes both Skill and Task (not just Skill)
- Tie --state-file assertion to the Skill invocation line (not just anywhere)
- Consolidate duplicate beforeAll file reads into shared describe block
- Add --state-file assertion for Codex adapter parity
- Strengthen negative regex to cover backtick-quoted variant of old bug
- Add fs.existsSync guard on Codex adapter path for clear failure messages
Regenerate Codex adapter to pick up await addition.
* test(next-task): fix test regex to enforce same-line --state-file matching
Replace dotall /s regex with [^\n]* to enforce that --state-file
appears on the same line as the Skill invocation, matching the stated intent.
Move codex adapter existence check from beforeAll to a named test for
clearer Jest failure output when the file is missing.
* fix(next-task): align Skill() key with codebase convention and quote state path
Use name: instead of skill: in Skill() invocation to match the established
convention used across all other Skill() calls in the codebase (learn-agent.md,
learn/SKILL.md, etc.). Both forms are equivalent pseudo-code for the LLM,
but consistency improves readability and avoids confusion.
Quote the stateDir path in args to prevent argument splitting failures when
the worktree path contains spaces: --state-file "${stateDir}/flow.json".
Update regression tests to assert name: key and regenerate Codex adapter.
* docs: add CHANGELOG entry for Phase 12 ship:ship fix (#230)
* chore(next-task): add startPhase('ship') to Phase 12 for resume consistency
Adds workflowState.startPhase('ship') at the start of Phase 12 so the
--resume feature can detect that ship was reached if it fails mid-flight.
Every other phase begins with startPhase(); Phase 12 was the only exception.
Regenerate OpenCode and Codex adapters.
* fix(next-task): use 'shipping' phase name in startPhase() call
'ship' is not a valid PHASES entry in workflow-state.js — the correct
name is 'shipping'. Using 'ship' would throw "Invalid phase: ship"
immediately before the Skill invocation, reintroducing the stuck
workflow. Add regression test to prevent recurrence.
Reported by Codex review on PR #239.
1 parent e2bf664 commit 7a3ae08
File tree
5 files changed
+62
-4
lines changed- __tests__
- adapters
- codex/skills/next-task
- opencode/commands
- plugins/next-task/commands
5 files changed
+62
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
122 | 175 | | |
123 | 176 | | |
124 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
522 | 523 | | |
523 | 524 | | |
524 | | - | |
| 525 | + | |
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
| 369 | + | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
524 | 525 | | |
525 | 526 | | |
526 | | - | |
| 527 | + | |
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| |||
0 commit comments