@ngockhoale/ukit 1.5.19 → 1.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
$ARGUMENTS
|
|
11
11
|
|
|
12
12
|
> **Can be run multiple times.** If the plan or tasks aren't satisfactory after the first run, re-run `/ukit:create-handoff` to refine until the plan is good — as long as no task has been implemented yet.
|
|
13
|
+
> **NO git commit. NO git push.** This phase only writes docs files. No code changes.
|
|
13
14
|
|
|
14
15
|
---
|
|
15
16
|
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
$ARGUMENTS
|
|
9
9
|
_Empty = all `ready` tasks. Or: "TASK-001" for a specific task._
|
|
10
10
|
|
|
11
|
+
> **NO git commit. NO git push. Ever.** AI only makes file changes. Human commits when ready.
|
|
12
|
+
|
|
11
13
|
---
|
|
12
14
|
|
|
13
15
|
## Step 1 — Setup
|
|
@@ -16,11 +18,13 @@ Read `docs/AI_HANDOFF/ACTIVE.md` → get `Base: <BASE>`.
|
|
|
16
18
|
Read `docs/AI_HANDOFF/INDEX.md` → collect `ready` tasks (or specific task from $ARGUMENTS).
|
|
17
19
|
If no ready tasks → report and stop.
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
Verify working tree is clean before starting:
|
|
20
22
|
```bash
|
|
21
|
-
git
|
|
23
|
+
git status # must be clean — no uncommitted changes
|
|
22
24
|
```
|
|
23
25
|
|
|
26
|
+
If working tree is dirty → stop. Ask human to commit or stash first.
|
|
27
|
+
|
|
24
28
|
## Step 2 — Build wave groups
|
|
25
29
|
|
|
26
30
|
Read each `tasks/TASK-xxx.md` for `Dependencies` field:
|
|
@@ -33,15 +37,15 @@ Read each `tasks/TASK-xxx.md` for `Dependencies` field:
|
|
|
33
37
|
|
|
34
38
|
For each wave:
|
|
35
39
|
|
|
36
|
-
### 3a — Create worktrees (from
|
|
40
|
+
### 3a — Create worktrees (from `$BASE`, no extra branch)
|
|
37
41
|
```bash
|
|
38
|
-
git worktree add -b handoff/task-xxx .worktrees/task-xxx
|
|
42
|
+
git worktree add -b handoff/task-xxx .worktrees/task-xxx $BASE
|
|
39
43
|
# (omit -b if branch already exists)
|
|
40
44
|
```
|
|
41
45
|
|
|
42
46
|
### 3b — Run tasks in parallel (one agent/session per task)
|
|
43
47
|
|
|
44
|
-
Each executor
|
|
48
|
+
Each executor works independently in its own worktree — **NO git commit, NO git add**:
|
|
45
49
|
|
|
46
50
|
```
|
|
47
51
|
Read docs/AI_HANDOFF/tasks/TASK-xxx.md
|
|
@@ -55,17 +59,13 @@ TDD — mandatory:
|
|
|
55
59
|
cd .worktrees/task-xxx && <each verification command>
|
|
56
60
|
Paste full output.
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
git -C .worktrees/task-xxx add -A
|
|
60
|
-
git -C .worktrees/task-xxx commit -m "feat(TASK-xxx): <intent>"
|
|
61
|
-
COMMIT_SHA=$(git -C .worktrees/task-xxx rev-parse HEAD)
|
|
62
|
+
DO NOT run: git add, git commit, git push — leave files as-is in worktree.
|
|
62
63
|
|
|
63
64
|
Executor Report (append to task file — do NOT touch INDEX.md):
|
|
64
65
|
## Executor Report
|
|
65
66
|
EXECUTOR_TOOL: <tool>
|
|
66
67
|
EXECUTOR_MODEL: <exact model ID — mandatory>
|
|
67
68
|
EXECUTOR_SUBAGENT: <name or "-">
|
|
68
|
-
COMMIT_SHA: <sha>
|
|
69
69
|
Verification Output: <paste>
|
|
70
70
|
Status: PASS | FAIL
|
|
71
71
|
Note: <issues or "none">
|
|
@@ -74,25 +74,31 @@ Executor Report (append to task file — do NOT touch INDEX.md):
|
|
|
74
74
|
> Claude Code: spawn `feature-implementer` agents in parallel (one per task).
|
|
75
75
|
> Other tools: open each task in separate session with code model.
|
|
76
76
|
|
|
77
|
-
### 3c — Orchestrator:
|
|
77
|
+
### 3c — Orchestrator: copy changes to main + IMMEDIATELY delete worktree
|
|
78
78
|
|
|
79
79
|
For each task that reported back:
|
|
80
80
|
|
|
81
81
|
**PASS + EXECUTOR_MODEL present:**
|
|
82
82
|
```bash
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
WORKTREE=".worktrees/task-xxx"
|
|
84
|
+
|
|
85
|
+
# Copy modified tracked files to main working tree
|
|
86
|
+
git -C "$WORKTREE" diff --name-only | while read f; do
|
|
87
|
+
mkdir -p "$(dirname "$f")"
|
|
88
|
+
cp "$WORKTREE/$f" "$f"
|
|
89
|
+
done
|
|
90
|
+
|
|
91
|
+
# Copy new untracked files
|
|
92
|
+
git -C "$WORKTREE" ls-files --others --exclude-standard | while read f; do
|
|
93
|
+
mkdir -p "$(dirname "$f")"
|
|
94
|
+
cp "$WORKTREE/$f" "$f"
|
|
95
|
+
done
|
|
96
|
+
|
|
97
|
+
# Delete worktree and branch immediately
|
|
98
|
+
git worktree remove "$WORKTREE" --force
|
|
99
|
+
git branch -D handoff/task-xxx
|
|
100
|
+
|
|
101
|
+
# update INDEX.md: status → pending_review
|
|
96
102
|
```
|
|
97
103
|
|
|
98
104
|
**FAIL:**
|
|
@@ -113,31 +119,20 @@ git branch -D handoff/task-xxx
|
|
|
113
119
|
**Worktrees are always deleted immediately** — no exceptions.
|
|
114
120
|
|
|
115
121
|
### 3d — Next wave
|
|
116
|
-
|
|
122
|
+
Create new worktrees from `$BASE`. Repeat 3a–3c.
|
|
117
123
|
|
|
118
|
-
## Step 4 — Finalize:
|
|
124
|
+
## Step 4 — Finalize: verify cleanup
|
|
119
125
|
|
|
120
|
-
All waves complete.
|
|
126
|
+
All waves complete. Verify:
|
|
121
127
|
|
|
122
128
|
```bash
|
|
123
|
-
git
|
|
124
|
-
|
|
125
|
-
#
|
|
126
|
-
git
|
|
127
|
-
|
|
128
|
-
# Delete integration branch
|
|
129
|
-
git branch -D handoff/integration
|
|
130
|
-
|
|
131
|
-
# Safety-net: remove any stray task worktrees/branches
|
|
132
|
-
git worktree list | grep '.worktrees/task-' | awk '{print $1}' | while read wt; do
|
|
133
|
-
name=$(basename "$wt")
|
|
134
|
-
git worktree remove "$wt" --force 2>/dev/null
|
|
135
|
-
git branch -D "handoff/$name" 2>/dev/null
|
|
136
|
-
done
|
|
137
|
-
git worktree prune
|
|
129
|
+
git worktree list # must show only main worktree
|
|
130
|
+
git branch | grep handoff # must be empty
|
|
131
|
+
git status # shows uncommitted changes — this is expected
|
|
132
|
+
git diff --stat # summary of everything that changed
|
|
138
133
|
```
|
|
139
134
|
|
|
140
|
-
All changes are
|
|
135
|
+
All changes are in the **main working tree as uncommitted files**. No branches or worktrees remain.
|
|
141
136
|
|
|
142
137
|
## Step 5 — Report
|
|
143
138
|
|
|
@@ -145,8 +140,8 @@ All changes are now **staged on `$BASE`**. No branches or worktrees remain.
|
|
|
145
140
|
Wave summary:
|
|
146
141
|
Wave 1: TASK-001 [pending_review], TASK-002 [blocked]
|
|
147
142
|
Wave 2: TASK-003 [pending_review]
|
|
148
|
-
All
|
|
149
|
-
|
|
143
|
+
All worktrees and branches removed.
|
|
144
|
+
Uncommitted changes in working tree — human commits when ready.
|
|
150
145
|
```
|
|
151
146
|
|
|
152
147
|
**Next:** switch to strong model → `/ukit:review-handoff`
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
$ARGUMENTS
|
|
9
9
|
_Empty = all `pending_review` tasks. Or: "TASK-001" for a specific task._
|
|
10
10
|
|
|
11
|
+
> **NO git commit. NO git push.** Reviewer only reads and reports. Human decides when to commit.
|
|
12
|
+
|
|
11
13
|
---
|
|
12
14
|
|
|
13
15
|
## Step 1 — Setup
|
|
@@ -16,15 +18,15 @@ Read `docs/AI_HANDOFF/ACTIVE.md` → get `Base: <BASE>`.
|
|
|
16
18
|
Read `docs/AI_HANDOFF/INDEX.md` → collect `pending_review` tasks (or specific task).
|
|
17
19
|
If none → report and stop.
|
|
18
20
|
|
|
19
|
-
Verify
|
|
21
|
+
Verify there are uncommitted changes from implement-handoff:
|
|
20
22
|
```bash
|
|
21
|
-
git status
|
|
22
|
-
git diff --
|
|
23
|
+
git status # should show modified/new files, no handoff branches/worktrees
|
|
24
|
+
git diff --stat # summary of all changes
|
|
23
25
|
```
|
|
24
26
|
|
|
25
|
-
If `git diff
|
|
27
|
+
If `git diff` is empty and `git status` is clean → implement-handoff was not completed. Stop and re-run it.
|
|
26
28
|
|
|
27
|
-
## Step 2 — Review the
|
|
29
|
+
## Step 2 — Review the diff
|
|
28
30
|
|
|
29
31
|
### 2a — Model isolation check (always first)
|
|
30
32
|
|
|
@@ -37,7 +39,7 @@ Read `EXECUTOR_MODEL` from each task file `## Executor Report`.
|
|
|
37
39
|
| missing / blank | any | REFUSE → `changes_requested`: "EXECUTOR_MODEL missing — re-run implement" |
|
|
38
40
|
| "unknown" | present | proceed + NOTES: "executor model unverified — human confirm" |
|
|
39
41
|
|
|
40
|
-
### 2b — Re-run verification
|
|
42
|
+
### 2b — Re-run verification
|
|
41
43
|
|
|
42
44
|
```bash
|
|
43
45
|
<each command from §Verification Commands across all tasks>
|
|
@@ -48,7 +50,8 @@ If any command fails → verdict: `critical_block`. Stop.
|
|
|
48
50
|
### 2c — Review unified diff
|
|
49
51
|
|
|
50
52
|
```bash
|
|
51
|
-
git diff
|
|
53
|
+
git diff # all uncommitted changes vs $BASE
|
|
54
|
+
git status # overview of modified/new/deleted files
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
Review as one unified diff — correctness, regression risk, security, edge cases, maintainability.
|
|
@@ -79,26 +82,20 @@ Set `status = NEXT_STATUS_FOR_INDEX`. Orchestrator writes INDEX, not the reviewe
|
|
|
79
82
|
|
|
80
83
|
Update INDEX.md: all approved tasks → `done`.
|
|
81
84
|
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
git add docs/AI_HANDOFF/
|
|
85
|
-
git commit -m "feat: complete handoff cycle"
|
|
86
|
-
git push origin $BASE
|
|
87
|
-
```
|
|
85
|
+
**DO NOT commit. DO NOT push.** Leave the working tree as-is for human review.
|
|
88
86
|
|
|
89
87
|
Report:
|
|
90
88
|
```
|
|
91
|
-
✅ All tasks approved
|
|
92
|
-
|
|
89
|
+
✅ All tasks approved.
|
|
90
|
+
Uncommitted changes are in the working tree — human commits when ready.
|
|
91
|
+
git diff --stat ← review summary
|
|
92
|
+
git add . && git commit -m "..." ← when ready
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
**Any `changes_requested` or `critical_block`:**
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
git restore --staged .
|
|
100
|
-
```
|
|
101
|
-
Report which tasks need fixes. Executor re-runs `/ukit:implement-handoff TASK-xxx`.
|
|
97
|
+
Report which files need fixes. Executor re-runs `/ukit:implement-handoff TASK-xxx`.
|
|
98
|
+
Changes from the failed task remain in the working tree — executor fixes them in place (no new worktree needed for simple fixes).
|
|
102
99
|
|
|
103
100
|
## Step 4 — Report
|
|
104
101
|
|
|
@@ -106,12 +103,12 @@ Report which tasks need fixes. Executor re-runs `/ukit:implement-handoff TASK-xx
|
|
|
106
103
|
Review summary:
|
|
107
104
|
TASK-001: approved
|
|
108
105
|
TASK-002: changes_requested — see §Discussion
|
|
109
|
-
|
|
106
|
+
Working tree: unchanged — human commits when satisfied
|
|
110
107
|
```
|
|
111
108
|
|
|
112
109
|
**Next:**
|
|
113
|
-
- All approved →
|
|
114
|
-
- Has fixes →
|
|
110
|
+
- All approved → human reviews `git diff` and commits manually.
|
|
111
|
+
- Has fixes → executor re-runs `/ukit:implement-handoff TASK-xxx`
|
|
115
112
|
|
|
116
113
|
> Claude Code: spawn `code-reviewer` (opus) per task for 2a–2d. Orchestrator handles 1, 2e, 3.
|
|
117
114
|
> Other tools: strong model sequentially per task, same steps.
|