@iceinvein/agent-skills 0.25.0 → 0.27.0
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/README.md +14 -5
- package/dist/cli/index.js +913 -239
- package/package.json +2 -1
- package/skills/index.json +4 -4
- package/skills/magpie/README.md +24 -6
- package/skills/magpie/SKILL.md +35 -18
- package/skills/magpie/bin/magpie.ts +28 -0
- package/skills/magpie/package.json +1 -1
- package/skills/magpie/references/critic.md +2 -2
- package/skills/magpie/references/peer-review.md +7 -7
- package/skills/magpie/references/proof.md +2 -2
- package/skills/magpie/scripts/__tests__/peer-run.test.ts +231 -0
- package/skills/magpie/scripts/__tests__/preflight.test.ts +22 -1
- package/skills/magpie/scripts/__tests__/setup-cmd.test.ts +14 -0
- package/skills/magpie/scripts/__tests__/skill-lint.test.ts +45 -4
- package/skills/magpie/scripts/peer-run.ts +146 -0
- package/skills/magpie/scripts/preflight.ts +20 -20
- package/skills/magpie/scripts/setup-cmd.ts +7 -1
- package/skills/magpie/skill.json +21 -3
- package/skills/sluice/SKILL.md +24 -7
- package/skills/sluice/evals/README.md +4 -3
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/case.yaml +4 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/fixture.sh +304 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/every-task-done.md +7 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/sluice-fired.md +5 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/task-list-completed.md +7 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/task-list-created.md +8 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/prompt.md +13 -0
- package/skills/sluice/evals/rules.json +9 -0
- package/skills/sluice/references/deep-channel.md +52 -25
- package/skills/sluice/references/finish.md +2 -2
- package/skills/sluice/references/intent.md +1 -1
- package/skills/sluice/references/status.md +18 -7
- package/skills/sluice/references/test-first.md +12 -0
- package/skills/sluice/scripts/board-index.sh +59 -37
- package/skills/sluice/scripts/board.sh +72 -40
- package/skills/sluice/scripts/host.sh +60 -0
- package/skills/sluice/scripts/postinstall.sh +3 -3
- package/skills/sluice/scripts/run-stats.sh +41 -3
- package/skills/sluice/scripts/session-start.sh +75 -17
- package/skills/sluice/scripts/status.sh +9 -5
- package/skills/sluice/scripts/stop-guard.sh +101 -37
- package/skills/sluice/scripts/transcript.sh +221 -0
- package/skills/sluice/skill.json +28 -4
package/skills/sluice/SKILL.md
CHANGED
|
@@ -31,9 +31,10 @@ Two subsystems is `main`; the third is what makes it `deep`.
|
|
|
31
31
|
`deep` stops: once for design sign-off before code, once for the plan and
|
|
32
32
|
pre-flight together before Task 1. A stop ends your turn.
|
|
33
33
|
|
|
34
|
-
A choice that is your partner's to make goes to them through
|
|
35
|
-
wherever the harness has it, at a stop or
|
|
36
|
-
your recommendation first, not a paragraph
|
|
34
|
+
A choice that is your partner's to make goes to them through the question tool
|
|
35
|
+
(`## Hosts` names it per host) wherever the harness has it, at a stop or
|
|
36
|
+
between them: options to pick from, your recommendation first, not a paragraph
|
|
37
|
+
or a lettered list to reply to.
|
|
37
38
|
Asking is not itself a stop, however many options it carried, because the
|
|
38
39
|
answer comes back to you and the run never left your hands. So at a stop, ask
|
|
39
40
|
with the tool, then end the turn once the answers are in.
|
|
@@ -73,7 +74,7 @@ One line each. Read the reference only on friction: the moment you notice
|
|
|
73
74
|
yourself wanting to skip the rule, or arguing that this one is the exception.
|
|
74
75
|
|
|
75
76
|
- **Agree intent** before building. One question at a time, through
|
|
76
|
-
|
|
77
|
+
the question tool. Propose approaches with a recommendation, not a survey.
|
|
77
78
|
`main` agrees in a message, `deep` writes it down. `references/intent.md`
|
|
78
79
|
- **Test first.** The test comes before the code; run it while it should
|
|
79
80
|
still be failing, then write the least code that turns it green. Skip that
|
|
@@ -129,7 +130,7 @@ Design to `docs/specs/YYYY-MM-DD-<topic>.md`, plan to
|
|
|
129
130
|
`docs/plans/YYYY-MM-DD-<topic>.md`, unless the repo has a convention or
|
|
130
131
|
your partner states a preference. Get the design signed off before code. When
|
|
131
132
|
the design's shape turns on a fork only your partner can settle, ask that one
|
|
132
|
-
question through
|
|
133
|
+
question through the question tool, with your recommendation, before the design
|
|
133
134
|
is written. `references/deep-channel.md` has the test for what counts.
|
|
134
135
|
|
|
135
136
|
Read the repo before the walk and before any fork question: prior designs, the
|
|
@@ -162,7 +163,9 @@ approval is not one.
|
|
|
162
163
|
The run's state goes in `.sluice/run.json`, written a command at a time by
|
|
163
164
|
`scripts/status.sh`. That is what makes the breakdown readable from outside the
|
|
164
165
|
session running it: a statusline segment while it runs, `status.sh show` after a
|
|
165
|
-
compaction, and neither costing your partner a turn to ask.
|
|
166
|
+
compaction, and neither costing your partner a turn to ask. Where the session has
|
|
167
|
+
`TaskCreate` and `TaskUpdate`, the rows are mirrored into its task list as well, a view of
|
|
168
|
+
`run.json` rather than a second record. `references/status.md`
|
|
166
169
|
|
|
167
170
|
**Read `references/deep-channel.md` before you write the plan.** It carries the
|
|
168
171
|
plan format, the pre-flight questions, the run record, the dispatch rules and
|
|
@@ -209,7 +212,7 @@ instead of to the branch at large.
|
|
|
209
212
|
|
|
210
213
|
Pre-flight rides in that same stop: which flagged tasks get a reviewer, which
|
|
211
214
|
mechanical ones the plan marked for low effort, and whether the work runs
|
|
212
|
-
in a worktree. Ask them through
|
|
215
|
+
in a worktree. Ask them through the question tool, one question each with the
|
|
213
216
|
counts in the options, never as a paragraph or a lettered list, then end the
|
|
214
217
|
turn on the answers. Task 1 opens on their next
|
|
215
218
|
instruction, and an answer that already carries one is that instruction. A
|
|
@@ -255,3 +258,17 @@ The test is whether that pipeline governs the work in front of you, not whether
|
|
|
255
258
|
a plugin is installed. A repo whose own instructions mandate the sequence rules
|
|
256
259
|
this router out exactly as the plugin does, with the plugin disabled or absent.
|
|
257
260
|
Stand down and say so once, in the same breath you would have named a channel.
|
|
261
|
+
|
|
262
|
+
## Hosts
|
|
263
|
+
|
|
264
|
+
The rest of this skill and its references name a tool by what it does: the
|
|
265
|
+
question tool, dispatch a subagent, the explorer, the worktree. This table is
|
|
266
|
+
the one place that says what each is called on each host.
|
|
267
|
+
|
|
268
|
+
| | Claude Code | Codex | Antigravity |
|
|
269
|
+
|---|---|---|---|
|
|
270
|
+
| Question tool | `AskUserQuestion` | `request_user_input`: at most three options a question, recommendation first, and at most three questions a call, so a longer set goes out in successive calls | `ask_question` |
|
|
271
|
+
| Dispatch a subagent | the Agent tool | `spawn_agent`, then `wait_agent` | `invoke_subagent` |
|
|
272
|
+
| Explorer | the Explore agent | `spawn_agent` told to read and write nothing (Codex shows no built-in explorer type) | `invoke_subagent` told to read and write nothing |
|
|
273
|
+
| Low effort | `subagent_type: sluice-implementer-low` (`sluice:sluice-implementer-low` under a plugin install) | `spawn_agent` with `reasoning_effort: "low"` and `fork_turns: "none"`: Codex takes an effort override only with `fork_turns: "none"`, and only when skill instructions ask, which this row is | not available: the task runs at the session's effort, and pre-flight says so |
|
|
274
|
+
| Worktree | the harness's worktree tool; cut by hand under `.claude/worktrees/` | `git worktree add` under `.sluice/worktrees/` | `Workspace: branch` for implementers, `git worktree add` under `.sluice/worktrees/` for the controller |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# sluice evals
|
|
2
2
|
|
|
3
|
-
Twenty-
|
|
3
|
+
Twenty-six cases for `claude plugin eval`. Eighteen pin the routing decision: which
|
|
4
4
|
channel the run names, and whether the behaviour that channel owes actually
|
|
5
|
-
happened.
|
|
5
|
+
happened. Eight pin what a deep run does after pre-flight, where the question is
|
|
6
6
|
no longer which channel but whether the run keeps going.
|
|
7
7
|
|
|
8
8
|
| Case | Signal under test | What it pins |
|
|
@@ -36,11 +36,12 @@ Execution, where the run is already past both stops:
|
|
|
36
36
|
| `deep-run-decides-a-non-blocking-choice` | A task leaves a choice open and says either is fine | Decided, written into the record, no task blocked, no decision list at the end |
|
|
37
37
|
| `deep-run-waits-for-a-running-agent` | Every task goes to an implementer agent | A `T2:` labelled dispatch; the handback comes after the last result |
|
|
38
38
|
| `deep-run-fans-out` | Three disjoint tasks under a worktree-per-implementer answer | Three dispatches in one message, then the flip; each task's files merged back into the run's own tree; also the baseline for a time-budget A/B |
|
|
39
|
+
| `deep-run-mirrors-the-task-list` | The same run, in a session with the task tools | One task-list entry per row; each remaining task completed in the list as its row reaches done |
|
|
39
40
|
| `deep-run-hunts-after-the-flip` | Every task done, the flip included | bug-hunter on the plan diff against the spec before the final review; the proven off-by-one fixed test-first; a Hunt section in the record |
|
|
40
41
|
|
|
41
42
|
## Running
|
|
42
43
|
|
|
43
|
-
Twenty-
|
|
44
|
+
Twenty-five cases scaffold a small Node repo and then change it, so they need the
|
|
44
45
|
scaffold flag and a tool grant. Pin the model, because the eval child does not
|
|
45
46
|
inherit it, and pin the judge, because `--model` does not reach it and the
|
|
46
47
|
`llm` graders otherwise run on Haiku. From the repo root:
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# A deep run stopped exactly where the two stops are already behind it: design
|
|
3
|
+
# signed off, plan validated, pre-flight answered, Task 1 landed. What is left
|
|
4
|
+
# is execution, which is the part that must not stop.
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
mkdir -p src/cli tests docs/plans .sluice
|
|
8
|
+
|
|
9
|
+
cat > package.json <<'JSON'
|
|
10
|
+
{
|
|
11
|
+
"name": "shipit",
|
|
12
|
+
"version": "1.2.0",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "node --test \"tests/*.test.js\""
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
JSON
|
|
19
|
+
|
|
20
|
+
# Task 1, already landed: the sink exists and nothing routes through it yet.
|
|
21
|
+
cat > src/cli/progress.js <<'JS'
|
|
22
|
+
export function createSink({ quiet }) {
|
|
23
|
+
return {
|
|
24
|
+
write(line) {
|
|
25
|
+
if (!quiet) {
|
|
26
|
+
console.log(line);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
JS
|
|
32
|
+
|
|
33
|
+
cat > tests/progress.test.js <<'JS'
|
|
34
|
+
import assert from "node:assert/strict";
|
|
35
|
+
import { test } from "node:test";
|
|
36
|
+
import { createSink } from "../src/cli/progress.js";
|
|
37
|
+
|
|
38
|
+
test("a loud sink prints the line", () => {
|
|
39
|
+
const lines = [];
|
|
40
|
+
const sink = createSink({ quiet: false });
|
|
41
|
+
const restore = console.log;
|
|
42
|
+
console.log = (line) => lines.push(line);
|
|
43
|
+
try {
|
|
44
|
+
sink.write("-> build");
|
|
45
|
+
} finally {
|
|
46
|
+
console.log = restore;
|
|
47
|
+
}
|
|
48
|
+
assert.deepEqual(lines, ["-> build"]);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
test("a quiet sink swallows the line", () => {
|
|
52
|
+
const lines = [];
|
|
53
|
+
const sink = createSink({ quiet: true });
|
|
54
|
+
const restore = console.log;
|
|
55
|
+
console.log = (line) => lines.push(line);
|
|
56
|
+
try {
|
|
57
|
+
sink.write("-> build");
|
|
58
|
+
} finally {
|
|
59
|
+
console.log = restore;
|
|
60
|
+
}
|
|
61
|
+
assert.deepEqual(lines, []);
|
|
62
|
+
});
|
|
63
|
+
JS
|
|
64
|
+
|
|
65
|
+
cat > src/cli/args.js <<'JS'
|
|
66
|
+
export function parseArgs(argv) {
|
|
67
|
+
return { dryRun: argv.includes("--dry-run") };
|
|
68
|
+
}
|
|
69
|
+
JS
|
|
70
|
+
|
|
71
|
+
cat > tests/args.test.js <<'JS'
|
|
72
|
+
import assert from "node:assert/strict";
|
|
73
|
+
import { test } from "node:test";
|
|
74
|
+
import { parseArgs } from "../src/cli/args.js";
|
|
75
|
+
|
|
76
|
+
test("dry run is read off the argv", () => {
|
|
77
|
+
assert.deepEqual(parseArgs(["--dry-run"]), { dryRun: true });
|
|
78
|
+
});
|
|
79
|
+
JS
|
|
80
|
+
|
|
81
|
+
cat > src/cli/deploy.js <<'JS'
|
|
82
|
+
const STEPS = ["build", "upload", "activate"];
|
|
83
|
+
|
|
84
|
+
export function deploy(args) {
|
|
85
|
+
const { dryRun } = args;
|
|
86
|
+
|
|
87
|
+
for (const step of STEPS) {
|
|
88
|
+
console.log(`-> ${step}`);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
console.log(dryRun ? "dry run: 3 steps skipped" : "deployed: 3 steps");
|
|
92
|
+
}
|
|
93
|
+
JS
|
|
94
|
+
|
|
95
|
+
cat > tests/deploy.test.js <<'JS'
|
|
96
|
+
import assert from "node:assert/strict";
|
|
97
|
+
import { test } from "node:test";
|
|
98
|
+
import { deploy } from "../src/cli/deploy.js";
|
|
99
|
+
|
|
100
|
+
function capture(run) {
|
|
101
|
+
const lines = [];
|
|
102
|
+
const restore = console.log;
|
|
103
|
+
console.log = (line) => lines.push(line);
|
|
104
|
+
try {
|
|
105
|
+
run();
|
|
106
|
+
} finally {
|
|
107
|
+
console.log = restore;
|
|
108
|
+
}
|
|
109
|
+
return lines;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
test("dry run skips the steps and says so", () => {
|
|
113
|
+
const lines = capture(() => deploy({ dryRun: true }));
|
|
114
|
+
assert.equal(lines.at(-1), "dry run: 3 steps skipped");
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
test("a full deploy reports every step", () => {
|
|
118
|
+
const lines = capture(() => deploy({ dryRun: false }));
|
|
119
|
+
assert.deepEqual(lines, ["-> build", "-> upload", "-> activate", "deployed: 3 steps"]);
|
|
120
|
+
});
|
|
121
|
+
JS
|
|
122
|
+
|
|
123
|
+
cat > docs/plans/2026-09-20-quiet-flag.md <<'MD'
|
|
124
|
+
# Plan: quiet-flag
|
|
125
|
+
|
|
126
|
+
## Goal
|
|
127
|
+
|
|
128
|
+
`deploy --quiet` suppresses the three per-step progress lines and leaves the
|
|
129
|
+
final summary line untouched. Every other deploy output is unchanged.
|
|
130
|
+
|
|
131
|
+
## Architecture
|
|
132
|
+
|
|
133
|
+
Progress lines go through a sink instead of `console.log`. The sink is built
|
|
134
|
+
from the parsed flags and handed to `deploy`, so `deploy` never asks whether it
|
|
135
|
+
is quiet. The summary line does not go through the sink.
|
|
136
|
+
|
|
137
|
+
## Ground Rules
|
|
138
|
+
|
|
139
|
+
- Commit message convention: `<type>(<scope>): <subject>`, subject lower case,
|
|
140
|
+
no trailing full stop, no attribution trailers and no tool footers.
|
|
141
|
+
- Test runner: `npm test`, which runs `node --test "tests/*.test.js"`.
|
|
142
|
+
- Node built-ins only. No dependency may be added to package.json.
|
|
143
|
+
- Every test asserts on captured output lines, never on internal state.
|
|
144
|
+
|
|
145
|
+
### Task 1: progress sink
|
|
146
|
+
|
|
147
|
+
**Contract:** Needs: none | Offers: `createSink({ quiet: boolean }) -> { write(line: string): void }`
|
|
148
|
+
**Touches:** src/cli/progress.js (new) | tests/progress.test.js (new)
|
|
149
|
+
|
|
150
|
+
- [x] Add a test asserting a sink built with `quiet: false` prints the line it is given -> the test fails because src/cli/progress.js does not exist
|
|
151
|
+
- [x] Add a test asserting a sink built with `quiet: true` prints nothing -> it fails for the same reason
|
|
152
|
+
- [x] Write `createSink` returning an object with a `write` method that prints unless `quiet` -> `npm test` green
|
|
153
|
+
|
|
154
|
+
### Task 2: quiet flag parsing
|
|
155
|
+
|
|
156
|
+
**Contract:** Needs: none | Offers: `parseArgs(argv: string[]) -> { dryRun: boolean, quiet: boolean }`
|
|
157
|
+
**Touches:** src/cli/args.js (edit) | tests/args.test.js (test)
|
|
158
|
+
|
|
159
|
+
- [ ] Add a test asserting `parseArgs(["--quiet"])` returns `{ dryRun: false, quiet: true }` -> the new test fails
|
|
160
|
+
- [ ] Add a test asserting `parseArgs([])` returns `{ dryRun: false, quiet: false }` -> it fails on the missing key
|
|
161
|
+
- [ ] Read `--quiet` off argv alongside `--dry-run`, and update the existing dry-run test to expect `{ dryRun: true, quiet: false }` now that the key exists -> `npm test` green
|
|
162
|
+
|
|
163
|
+
### Task 3: route progress through the sink
|
|
164
|
+
|
|
165
|
+
**Contract:** Needs: `createSink({ quiet: boolean }) -> { write(line: string): void }` | Offers: `deploy(args: { dryRun: boolean }, sink?: { write(line: string): void }) -> void`
|
|
166
|
+
**Touches:** src/cli/deploy.js (edit) | tests/deploy.test.js (test)
|
|
167
|
+
|
|
168
|
+
- [ ] Add a test passing a recording sink to `deploy` and asserting the three `-> <step>` lines arrive on the sink -> the new test fails because deploy takes no sink
|
|
169
|
+
- [ ] Give `deploy` an optional second parameter `sink`, defaulting to `createSink({ quiet: false })` so `deploy(args)` still prints, and send each `-> <step>` line to `sink.write` -> the new test passes
|
|
170
|
+
- [ ] Keep the summary line on `console.log` and keep both original deploy tests, which call `deploy(args)` with no sink, asserting the exact lines `dry run: 3 steps skipped` and `deployed: 3 steps` -> `npm test` green
|
|
171
|
+
|
|
172
|
+
### Task 4: turn quiet on
|
|
173
|
+
|
|
174
|
+
**Contract:** Needs: `parseArgs(argv: string[]) -> { dryRun: boolean, quiet: boolean }`, `createSink({ quiet: boolean }) -> { write(line: string): void }`, `deploy(args: { dryRun: boolean }, sink?: { write(line: string): void }) -> void` | Offers: `main(argv: string[]) -> void`
|
|
175
|
+
**Touches:** src/cli/main.js (new) | tests/main.test.js (test)
|
|
176
|
+
**Flips:** the three progress lines become suppressible; before this task `--quiet` parses and changes nothing
|
|
177
|
+
|
|
178
|
+
- [ ] Add a test asserting `main(["--quiet"])` prints only `deployed: 3 steps` -> it fails because src/cli/main.js does not exist
|
|
179
|
+
- [ ] Add a test asserting `main([])` prints the three step lines and then `deployed: 3 steps` -> it fails for the same reason
|
|
180
|
+
- [ ] Write `main` to call `parseArgs`, build the sink from `quiet`, and call `deploy` with both -> `npm test` green
|
|
181
|
+
MD
|
|
182
|
+
|
|
183
|
+
cat > docs/plans/2026-09-20-quiet-flag-record.md <<'MD'
|
|
184
|
+
# Run record: quiet-flag
|
|
185
|
+
|
|
186
|
+
## Pre-flight
|
|
187
|
+
|
|
188
|
+
- Review: tier 3 only. Task 4 is the flip and is the one task that gets a reviewer.
|
|
189
|
+
- Effort: this session's effort for every task. None of the three remaining tasks was marked mechanical.
|
|
190
|
+
- Workspace: shared tree. Tasks run serially, so no worktree was cut.
|
|
191
|
+
|
|
192
|
+
## Log
|
|
193
|
+
|
|
194
|
+
- Task 1, progress sink: landed. `createSink` written with both tests green.
|
|
195
|
+
Inert by design, nothing routes through it yet.
|
|
196
|
+
MD
|
|
197
|
+
|
|
198
|
+
cat > .sluice/run.json <<'JSON'
|
|
199
|
+
{
|
|
200
|
+
"schema": 1,
|
|
201
|
+
"topic": "quiet-flag",
|
|
202
|
+
"channel": "deep",
|
|
203
|
+
"started": "2026-09-23T06:14:07Z",
|
|
204
|
+
"plan": "docs/plans/2026-09-20-quiet-flag.md",
|
|
205
|
+
"record": "docs/plans/2026-09-20-quiet-flag-record.md",
|
|
206
|
+
"tasks": [
|
|
207
|
+
{
|
|
208
|
+
"id": 1,
|
|
209
|
+
"status": "done",
|
|
210
|
+
"name": "progress sink",
|
|
211
|
+
"tier": 2,
|
|
212
|
+
"offers": [
|
|
213
|
+
"boolean",
|
|
214
|
+
"createSink",
|
|
215
|
+
"line",
|
|
216
|
+
"quiet",
|
|
217
|
+
"string",
|
|
218
|
+
"void",
|
|
219
|
+
"write"
|
|
220
|
+
],
|
|
221
|
+
"touches": [
|
|
222
|
+
"src/cli/progress.js",
|
|
223
|
+
"tests/progress.test.js"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": 2,
|
|
228
|
+
"status": "todo",
|
|
229
|
+
"name": "quiet flag parsing",
|
|
230
|
+
"tier": 1,
|
|
231
|
+
"offers": [
|
|
232
|
+
"argv",
|
|
233
|
+
"boolean",
|
|
234
|
+
"dryRun",
|
|
235
|
+
"parseArgs",
|
|
236
|
+
"quiet",
|
|
237
|
+
"string"
|
|
238
|
+
],
|
|
239
|
+
"touches": [
|
|
240
|
+
"src/cli/args.js",
|
|
241
|
+
"tests/args.test.js"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": 3,
|
|
246
|
+
"status": "todo",
|
|
247
|
+
"name": "route progress through the sink",
|
|
248
|
+
"tier": 1,
|
|
249
|
+
"needs": [
|
|
250
|
+
"createSink",
|
|
251
|
+
"write"
|
|
252
|
+
],
|
|
253
|
+
"offers": [
|
|
254
|
+
"args",
|
|
255
|
+
"boolean",
|
|
256
|
+
"deploy",
|
|
257
|
+
"dryRun",
|
|
258
|
+
"line",
|
|
259
|
+
"sink",
|
|
260
|
+
"string",
|
|
261
|
+
"void",
|
|
262
|
+
"write"
|
|
263
|
+
],
|
|
264
|
+
"touches": [
|
|
265
|
+
"src/cli/deploy.js",
|
|
266
|
+
"tests/deploy.test.js"
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"id": 4,
|
|
271
|
+
"status": "todo",
|
|
272
|
+
"name": "turn quiet on",
|
|
273
|
+
"tier": 3,
|
|
274
|
+
"flips": true,
|
|
275
|
+
"needs": [
|
|
276
|
+
"createSink",
|
|
277
|
+
"deploy",
|
|
278
|
+
"parseArgs",
|
|
279
|
+
"write"
|
|
280
|
+
],
|
|
281
|
+
"offers": [
|
|
282
|
+
"argv",
|
|
283
|
+
"main",
|
|
284
|
+
"string",
|
|
285
|
+
"void"
|
|
286
|
+
],
|
|
287
|
+
"touches": [
|
|
288
|
+
"src/cli/main.js",
|
|
289
|
+
"tests/main.test.js"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"updated": "2026-09-23T06:14:07Z",
|
|
294
|
+
"preflight": {
|
|
295
|
+
"review": "tier3",
|
|
296
|
+
"effort": "0 of 3 low",
|
|
297
|
+
"workspace": "shared"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
JSON
|
|
301
|
+
|
|
302
|
+
git init --quiet
|
|
303
|
+
git add -A
|
|
304
|
+
git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat(progress): add the quiet-aware progress sink"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-run-mirrors-the-task-list
|
|
3
|
+
description: A deep run past pre-flight, in a session that has the task tools, mirrors its run.json rows into the harness task list and completes each task there as the row reaches done.
|
|
4
|
+
tags: [deep, execution, scaffold, write]
|
|
5
|
+
max_turns: 80
|
|
6
|
+
timeout_seconds: 2400
|
|
7
|
+
# Naming the task tools here is also what offers them: Claude Code withholds
|
|
8
|
+
# them on current models unless the session opts in.
|
|
9
|
+
allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, TaskCreate, TaskUpdate, TaskList, TaskGet]
|
|
10
|
+
expected_outcome: One task-list entry per run.json row, each remaining task marked completed in the list as its row reaches done, and every row done in run.json.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Plan's signed off and pre-flight's answered, it's all in `.sluice/run.json`. Go.
|
|
@@ -382,6 +382,14 @@
|
|
|
382
382
|
"cases": [
|
|
383
383
|
"deep-run-waits-for-a-running-agent"
|
|
384
384
|
]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"id": "deep-mirrors-rows-into-the-task-list",
|
|
388
|
+
"states": "references/deep-channel.md: The run record",
|
|
389
|
+
"origin": "README.md",
|
|
390
|
+
"cases": [
|
|
391
|
+
"deep-run-mirrors-the-task-list"
|
|
392
|
+
]
|
|
385
393
|
}
|
|
386
394
|
],
|
|
387
395
|
"sandboxSensitive": [
|
|
@@ -390,6 +398,7 @@
|
|
|
390
398
|
"deep-run-fans-out",
|
|
391
399
|
"deep-run-finishes-every-task",
|
|
392
400
|
"deep-run-hunts-after-the-flip",
|
|
401
|
+
"deep-run-mirrors-the-task-list",
|
|
393
402
|
"deep-run-survives-a-milestone",
|
|
394
403
|
"deep-run-waits-for-a-running-agent",
|
|
395
404
|
"fast-leaves-an-unrelated-red-test-alone",
|
|
@@ -127,6 +127,23 @@ review mark or a ratified effort already recorded is left alone and a tier is on
|
|
|
127
127
|
ever raised, so resuming after a compaction cannot rewind the run, and an
|
|
128
128
|
`active` row survives it whether or not its agent did.
|
|
129
129
|
|
|
130
|
+
Where the session has `TaskCreate` and `TaskUpdate`, mirror the rows into the
|
|
131
|
+
harness task list, which is the progress your partner sees in the session
|
|
132
|
+
without a statusline or a question. One `TaskCreate` per row right after the
|
|
133
|
+
import, and again for every row when a session picks up a run its own list has
|
|
134
|
+
never seen (a new session or a resume starts with an empty list), each named
|
|
135
|
+
`T<id>: <name>` and created in the status the row already holds. Then a
|
|
136
|
+
`TaskUpdate` in the same message as each flip: `active` and `review` are in progress, `done` is completed, `todo` is
|
|
137
|
+
pending, and `blocked` stays in progress with the reason put in its
|
|
138
|
+
description. The list is a view of `run.json`, not a second record: on any
|
|
139
|
+
disagreement `run.json` is right and the list is corrected to it, and nothing
|
|
140
|
+
outside this session can read the list, which is why the board, the hooks and
|
|
141
|
+
`show` never look at it. Where the tools are absent, skip this without
|
|
142
|
+
remark: Claude Code offers them on current models only with
|
|
143
|
+
`CLAUDE_CODE_ENABLE_TODO_TOOLS=1` set before the session starts, which installing
|
|
144
|
+
this skill with the bunx CLI under global activation (the default) sets unless
|
|
145
|
+
the key already has a value.
|
|
146
|
+
|
|
130
147
|
The record is the other file, and it holds what a status cannot: the reason
|
|
131
148
|
review went the way it did, the reason a task was downshifted, the reason the
|
|
132
149
|
workspace answer went that way, any finding belonging to a task other than the
|
|
@@ -183,7 +200,7 @@ partner can settle, one whose answer changes the design's shape (where state
|
|
|
183
200
|
lives, what shares it, which process owns it) rather than a value the design can
|
|
184
201
|
leave as config, ask it as one question with your recommendation before the
|
|
185
202
|
design is written, and write the design on the answer. Ask it with
|
|
186
|
-
|
|
203
|
+
the question tool where there is one, which returns the answer without ending
|
|
187
204
|
the turn; without one, the question is a stop of its own, and the design is
|
|
188
205
|
written, to its file, on the next turn. A design drafted across both branches of
|
|
189
206
|
a fork doubles the reading and still has to be rewritten. Anything you can
|
|
@@ -219,7 +236,7 @@ Ask for three things, each cited by path:
|
|
|
219
236
|
3. **Stated constraints.** Repo instructions, CI gates, the test runner and its
|
|
220
237
|
conventions, and release steps that the design or its plan will answer to.
|
|
221
238
|
|
|
222
|
-
Dispatch it
|
|
239
|
+
Dispatch it to the explorer, a read-only subagent, where the harness has one, for the
|
|
223
240
|
reason the reviewer is dispatched: the file dumps fill its context instead of
|
|
224
241
|
yours, and you only need what it concluded. Where there is no dispatch, it is
|
|
225
242
|
your own read, with the same three questions. Either way the findings go into
|
|
@@ -244,7 +261,7 @@ The spec has a fixed shape, because the intent check reads it by section:
|
|
|
244
261
|
```
|
|
245
262
|
|
|
246
263
|
`## Intent` holds the request quoted verbatim, each question asked through
|
|
247
|
-
|
|
264
|
+
the question tool with the answer it got, and a table mapping each ask to the
|
|
248
265
|
`D<n>` decisions that deliver it, or to `## Out of scope` with the reason.
|
|
249
266
|
Decisions are headed `### D<n>. <title>`, which is what `plan.sh validate`
|
|
250
267
|
reads. Out of scope is its own section and never a numbered decision, because
|
|
@@ -348,7 +365,7 @@ review: your own read is weaker, and your partner should know it was yours.
|
|
|
348
365
|
## Pre-flight
|
|
349
366
|
|
|
350
367
|
Design signed off, plan written, nothing built yet. Before Task 1, stop once
|
|
351
|
-
and settle three things with your partner. Ask them with
|
|
368
|
+
and settle three things with your partner. Ask them with the question tool,
|
|
352
369
|
one question per decision, your recommendation as the first option and the
|
|
353
370
|
counts in the option text: what you are after is a decision, and a wall of
|
|
354
371
|
considerations asks them to extract the decision from it first. A lettered
|
|
@@ -386,7 +403,9 @@ ratification rather than a fresh judgment, and it carries the count: six of
|
|
|
386
403
|
nine at low effort and three at this session's, take it, put everything at the
|
|
387
404
|
session's effort, or name the exceptions. The count is what your partner
|
|
388
405
|
prices. "I will use low effort where it fits" prices nothing, and it also
|
|
389
|
-
arrives after the tokens are spent.
|
|
406
|
+
arrives after the tokens are spent. On a host with no low-effort dispatch
|
|
407
|
+
(the `## Hosts` table in SKILL.md), the count says so: the marked tasks run
|
|
408
|
+
at the session's effort there.
|
|
390
409
|
|
|
391
410
|
**Workspace, commits and concurrency.** One worktree for the plan, one per
|
|
392
411
|
concurrent implementer, or straight onto the current branch; and with it who
|
|
@@ -402,7 +421,9 @@ your partner needs in front of them. Implementing onto main or master needs
|
|
|
402
421
|
their say-so and this is where you get it. Known friction in a worktree for this
|
|
403
422
|
repo, a lint target that resolves through a symlink, a build that needs its own
|
|
404
423
|
install, belongs in the option text where it can affect the answer, not in a
|
|
405
|
-
footnote after they have chosen.
|
|
424
|
+
footnote after they have chosen. Where a sandbox refuses `git worktree add`
|
|
425
|
+
(Codex under `workspace-write`, Antigravity's terminal sandbox), say so in the
|
|
426
|
+
question and make working in the main tree the option.
|
|
406
427
|
|
|
407
428
|
That question settles where the implementers run, not whether a task may be
|
|
408
429
|
dispatched at all, and the shared-tree and current-branch options have to say
|
|
@@ -419,9 +440,12 @@ down to a single question is still a stop.
|
|
|
419
440
|
|
|
420
441
|
**Write the answers down before Task 1's first edit, in the tree the work runs
|
|
421
442
|
in.** The order on the instruction that follows the stop: cut the worktree
|
|
422
|
-
first, when that was the answer,
|
|
423
|
-
|
|
424
|
-
|
|
443
|
+
first, when that was the answer, as the Worktree row of the `## Hosts` table in
|
|
444
|
+
SKILL.md says. Where that is the harness's own worktree tool, it puts this
|
|
445
|
+
session inside it; where it is `git worktree add`, the session stays where it
|
|
446
|
+
was, so work from that path. Either way everything below is issued from the
|
|
447
|
+
worktree, and issued from the main tree instead it lands in the tree the work
|
|
448
|
+
is not in. A fresh
|
|
425
449
|
worktree branches from the remote's default branch, so nothing uncommitted or
|
|
426
450
|
unpushed in the main tree comes across, and `docs/` may not exist there yet.
|
|
427
451
|
Move the design and plan into it yourself, each into its own directory since
|
|
@@ -545,12 +569,13 @@ reads the run state rather than the plan: it sees what has actually landed.
|
|
|
545
569
|
in one tree contend on the git index and on `HEAD` even when their files
|
|
546
570
|
never meet. One worktree per concurrent implementer, or run them serially.
|
|
547
571
|
Those worktrees cost something, which is why pre-flight asks rather than
|
|
548
|
-
assumes. Where
|
|
549
|
-
one yourself, `git worktree add -b <plan-branch>-t<n>
|
|
550
|
-
|
|
572
|
+
assumes. Where dispatching a subagent refuses its own worktree isolation, cut
|
|
573
|
+
each one yourself, `git worktree add -b <plan-branch>-t<n>
|
|
574
|
+
<worktree dir>/<topic>-t<n> <plan-branch>`, name the path in that task's
|
|
551
575
|
brief as the only tree it works in, and merge each branch back once its task
|
|
552
|
-
lands. Keep them
|
|
553
|
-
|
|
576
|
+
lands. Keep them in the host's worktree directory in the repo (the
|
|
577
|
+
`## Hosts` table in SKILL.md), or under `.sluice/worktrees/` where the host
|
|
578
|
+
has none: permissions scoped to the project cover that path, and a
|
|
554
579
|
sibling directory outside it can leave the implementer's Write and Edit
|
|
555
580
|
denied. A refused isolation flag has not
|
|
556
581
|
taken the worktree away, only the tool's way of cutting it, so falling back
|
|
@@ -566,12 +591,14 @@ reads the run state rather than the plan: it sees what has actually landed.
|
|
|
566
591
|
- **The flip runs alone.** Nothing goes concurrent with the task carrying
|
|
567
592
|
`Flips`. The invariant it establishes is what later tasks are checked
|
|
568
593
|
against, and whatever landed beside it was checked against nothing.
|
|
569
|
-
- Isolate the workspace before a multi-task plan
|
|
570
|
-
|
|
594
|
+
- Isolate the workspace before a multi-task plan, as the Worktree row of the
|
|
595
|
+
`## Hosts` table in SKILL.md says. Where the host has a worktree tool, use
|
|
596
|
+
it, not `git worktree` yourself. That tool moves this session into the
|
|
571
597
|
worktree, which `git worktree add` does not: cut by hand, the files are
|
|
572
598
|
isolated and the session is still in the tree they came from, so every bare
|
|
573
599
|
`git`, build and test command you run lands in the wrong one. Enter it by
|
|
574
|
-
path if it already exists.
|
|
600
|
+
path if it already exists. Where it is `git worktree add`, work from that
|
|
601
|
+
path: run every command there, since nothing moves the session for you. Isolating through the harness's tool puts this
|
|
575
602
|
session in worktree mode, which by the cap above makes concurrent
|
|
576
603
|
implementers serial for the whole run, so pre-flight's workspace question
|
|
577
604
|
says so in the option text. Implementing straight onto main or
|
|
@@ -592,12 +619,13 @@ reads the run state rather than the plan: it sees what has actually landed.
|
|
|
592
619
|
- **The plan and pre-flight decide the effort, not the moment of dispatch.** A
|
|
593
620
|
task with no `Effort` line goes out on this session's model and effort, and a
|
|
594
621
|
downshift that was neither marked nor ratified is a saving your partner never
|
|
595
|
-
agreed to. A task ratified at `Effort: low` goes out
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
`
|
|
599
|
-
|
|
600
|
-
|
|
622
|
+
agreed to. A task ratified at `Effort: low` goes out on the
|
|
623
|
+
low-effort row of the `## Hosts` table in SKILL.md. On Claude Code that is
|
|
624
|
+
`sluice-implementer-low`, the agent sluice installs with `effort: low` and
|
|
625
|
+
`model: inherit`, because a Claude dispatch takes a model and no effort, so
|
|
626
|
+
an agent definition is the one place its effort can be set. On Codex the
|
|
627
|
+
dispatch carries the effort itself, and on Antigravity the task runs at the
|
|
628
|
+
session's effort. Reviewers are the
|
|
601
629
|
other half of that rule: a review never runs below the effort that built the
|
|
602
630
|
task, so the review of an `Effort: low` task goes out on this session's
|
|
603
631
|
effort and never on the low agent.
|
|
@@ -698,8 +726,7 @@ something stronger would be promising what is already in use. What a tier buys
|
|
|
698
726
|
is a dispatch. The one effort rule that holds across all of them is that a
|
|
699
727
|
review never runs below the effort that built the task, so tiers 1 and 2 over
|
|
700
728
|
an `Effort: low` task go out at this session's effort rather than on
|
|
701
|
-
|
|
702
|
-
plugin install).
|
|
729
|
+
the low-effort row of `## Hosts`.
|
|
703
730
|
|
|
704
731
|
**Where the repo carries review tiering of its own, this table governs.** It is
|
|
705
732
|
the more specific of the two: wired into `Flips`, the `Effort` marks and the
|
|
@@ -23,7 +23,7 @@ Confirm the base branch instead of assuming it; untangling a wrong merge
|
|
|
23
23
|
costs far more than asking would have.
|
|
24
24
|
|
|
25
25
|
With the suite green and the base confirmed, put exactly three options to
|
|
26
|
-
your partner through
|
|
26
|
+
your partner through the question tool, with the run ledger in the message
|
|
27
27
|
above them so the choice is made against
|
|
28
28
|
what the work actually cost rather than against your account of it;
|
|
29
29
|
`references/meter.md` owns that. Say in one clause whether the work was
|
|
@@ -59,7 +59,7 @@ the one list of them. In order:
|
|
|
59
59
|
controller stat read plus the final whole-plan pass rather than a per-task
|
|
60
60
|
dispatch" is the accurate line, and it is a coverage level rather than a
|
|
61
61
|
debt. Where nothing was priced, it is a debt and says so.
|
|
62
|
-
5. The three options, asked through
|
|
62
|
+
5. The three options, asked through the question tool, and nothing after them.
|
|
63
63
|
|
|
64
64
|
A `deep` run closes when the work stops being yours to act on: after a local
|
|
65
65
|
merge and its re-run of the suite, or when your partner leaves the branch where
|