dev-harness-cli 1.1.0 → 2.1.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 +515 -135
- package/cli/commands/checkpoint.mjs +2 -2
- package/cli/commands/config.mjs +12 -12
- package/cli/commands/contract.mjs +10 -10
- package/cli/commands/detect-tool.mjs +3 -3
- package/cli/commands/init.mjs +1 -1
- package/cli/commands/learn.mjs +3 -3
- package/cli/commands/pause.mjs +1 -1
- package/cli/commands/phase.mjs +6 -6
- package/cli/commands/resume.mjs +3 -3
- package/cli/commands/rollback.mjs +6 -6
- package/cli/commands/set-mode.mjs +5 -5
- package/cli/commands/status.mjs +7 -7
- package/cli/commands/validate.mjs +7 -7
- package/cli/commands/worktree.mjs +6 -6
- package/cli/{harness-dev.mjs → dev-harness.mjs} +2 -2
- package/cli/lib/config-registry.mjs +2 -2
- package/cli/lib/constants.mjs +19 -2
- package/cli/lib/contract.mjs +3 -3
- package/cli/lib/gates.mjs +1 -1
- package/cli/lib/help.mjs +28 -28
- package/cli/lib/ralph-inner.mjs +2 -2
- package/cli/lib/ralph-outer.mjs +3 -3
- package/cli/lib/ralph-output.mjs +1 -1
- package/cli/lib/scaffold.mjs +1 -1
- package/cli/lib/state.mjs +1 -1
- package/package.json +13 -4
- package/templates/AGENTS.md +5 -5
- package/templates/ci/github-actions.yml +1 -1
- package/templates/ci/gitlab-ci.yml +1 -1
- package/templates/docs/agents/generator.md +1 -1
- package/templates/docs/agents/simplifier.md +1 -1
- package/templates/docs/phases/build.md +3 -3
- package/templates/docs/phases/define.md +3 -3
- package/templates/docs/phases/plan.md +3 -3
- package/templates/docs/phases/review.md +2 -2
- package/templates/docs/phases/ship.md +3 -3
- package/templates/docs/phases/simplify.md +3 -3
- package/templates/docs/phases/verify.md +2 -2
- package/templates/init.ps1 +1 -1
- package/templates/progress.md +1 -1
package/cli/lib/help.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Help text builder — centralized to keep all formatting in one place.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
const USAGE = `Usage: harness
|
|
5
|
+
const USAGE = `Usage: dev-harness <command> [options]
|
|
6
6
|
|
|
7
7
|
Pipeline commands:
|
|
8
8
|
init Scaffold full harness in current directory
|
|
@@ -53,14 +53,14 @@ Exit codes:
|
|
|
53
53
|
2 Usage error (bad arguments)
|
|
54
54
|
3 Internal error`;
|
|
55
55
|
|
|
56
|
-
const VERSION = '1.
|
|
56
|
+
const VERSION = '1.2.0';
|
|
57
57
|
|
|
58
58
|
// Help text for JSON output
|
|
59
59
|
function buildJsonHelp() {
|
|
60
60
|
return {
|
|
61
61
|
help: true,
|
|
62
62
|
version: VERSION,
|
|
63
|
-
usage: 'harness
|
|
63
|
+
usage: 'dev-harness <command> [options]',
|
|
64
64
|
commands: {
|
|
65
65
|
init: 'Scaffold full harness in current directory',
|
|
66
66
|
status: 'Show current phase + gate state + detected stack',
|
|
@@ -111,12 +111,12 @@ export function versionText(json = false) {
|
|
|
111
111
|
if (json) {
|
|
112
112
|
return JSON.stringify({ version: VERSION });
|
|
113
113
|
}
|
|
114
|
-
return `harness
|
|
114
|
+
return `dev-harness v${VERSION}`;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
// Per-command help text (for `harness
|
|
117
|
+
// Per-command help text (for `dev-harness <command> --help`).
|
|
118
118
|
const COMMAND_HELP = {
|
|
119
|
-
init: `Usage: harness
|
|
119
|
+
init: `Usage: dev-harness init [--stack <name>] [--target <dir>] [--force] [--no-git] [--json]
|
|
120
120
|
|
|
121
121
|
Scaffold a full harness in the target directory:
|
|
122
122
|
- Detects stack (or use --stack)
|
|
@@ -131,7 +131,7 @@ Flags:
|
|
|
131
131
|
--no-git Skip git init
|
|
132
132
|
--json JSON output`,
|
|
133
133
|
|
|
134
|
-
status: `Usage: harness
|
|
134
|
+
status: `Usage: dev-harness status [--target <dir>] [--json]
|
|
135
135
|
|
|
136
136
|
Show current phase, gate state, detected stack, recent lessons, and next action.
|
|
137
137
|
|
|
@@ -139,7 +139,7 @@ Flags:
|
|
|
139
139
|
--target <dir> Project directory (default: cwd)
|
|
140
140
|
--json JSON output`,
|
|
141
141
|
|
|
142
|
-
phase: `Usage: harness
|
|
142
|
+
phase: `Usage: dev-harness phase <name> [--target <dir>] [--git-ops] [--json]
|
|
143
143
|
|
|
144
144
|
Invoke a phase. Valid phases: define, plan, build, verify, simplify, review, ship.
|
|
145
145
|
|
|
@@ -148,7 +148,7 @@ Flags:
|
|
|
148
148
|
--git-ops Execute git reset --hard + clean on retry (fresh context)
|
|
149
149
|
--json JSON output`,
|
|
150
150
|
|
|
151
|
-
validate: `Usage: harness
|
|
151
|
+
validate: `Usage: dev-harness validate [--phase <name>] [--feature <id> --task <id>] [--target <dir>] [--json]
|
|
152
152
|
|
|
153
153
|
Run gate checks for the current (or specified) phase.
|
|
154
154
|
|
|
@@ -159,39 +159,39 @@ Flags:
|
|
|
159
159
|
--target <dir> Project directory (default: cwd)
|
|
160
160
|
--json JSON output`,
|
|
161
161
|
|
|
162
|
-
'set-mode': `Usage: harness
|
|
162
|
+
'set-mode': `Usage: dev-harness set-mode <copilot|autopilot> [--target <dir>] [--json]
|
|
163
163
|
|
|
164
164
|
Switch execution mode. Autopilot requires DEFINE phase or later.`,
|
|
165
165
|
|
|
166
|
-
config: `Usage: harness
|
|
167
|
-
harness
|
|
168
|
-
harness
|
|
166
|
+
config: `Usage: dev-harness config list [--target <dir>] [--json]
|
|
167
|
+
dev-harness config get [key] [--target <dir>] [--json]
|
|
168
|
+
dev-harness config set <key> <value> [--target <dir>] [--json]
|
|
169
169
|
|
|
170
170
|
List all parameters with descriptions, or get/set values via dot-notation.
|
|
171
171
|
Use 'config list' to see all configurable parameters, their current values,
|
|
172
172
|
types, allowed options, and descriptions.
|
|
173
173
|
|
|
174
174
|
Examples:
|
|
175
|
-
harness
|
|
176
|
-
harness
|
|
177
|
-
harness
|
|
178
|
-
harness
|
|
179
|
-
harness
|
|
180
|
-
harness
|
|
175
|
+
dev-harness config list
|
|
176
|
+
dev-harness config list --json
|
|
177
|
+
dev-harness config get gates.enabled
|
|
178
|
+
dev-harness config set gates.enabled true
|
|
179
|
+
dev-harness config set mode autopilot
|
|
180
|
+
dev-harness config set maxRetries 5`,
|
|
181
181
|
|
|
182
|
-
pause: `Usage: harness
|
|
182
|
+
pause: `Usage: dev-harness pause [--target <dir>] [--json]
|
|
183
183
|
|
|
184
184
|
Pause autopilot execution. Autopilot stops after the current phase gate.`,
|
|
185
185
|
|
|
186
|
-
resume: `Usage: harness
|
|
186
|
+
resume: `Usage: dev-harness resume [--target <dir>] [--json]
|
|
187
187
|
|
|
188
188
|
Resume autopilot execution.`,
|
|
189
189
|
|
|
190
|
-
learn: `Usage: harness
|
|
190
|
+
learn: `Usage: dev-harness learn "<message>" [--target <dir>] [--json]
|
|
191
191
|
|
|
192
192
|
Append a lesson to the Lessons section of progress.md.`,
|
|
193
193
|
|
|
194
|
-
contract: `Usage: harness
|
|
194
|
+
contract: `Usage: dev-harness contract <subcommand> [options] [--target <dir>] [--json]
|
|
195
195
|
|
|
196
196
|
Subcommands:
|
|
197
197
|
propose --scope "..." [--exclusions "..."] [--criteria "..."] Generator proposes
|
|
@@ -199,7 +199,7 @@ Subcommands:
|
|
|
199
199
|
status Show contract state
|
|
200
200
|
escalate [--reason "..."] Human adjudication`,
|
|
201
201
|
|
|
202
|
-
worktree: `Usage: harness
|
|
202
|
+
worktree: `Usage: dev-harness worktree <subcommand> [options] [--target <dir>] [--json]
|
|
203
203
|
|
|
204
204
|
Subcommands:
|
|
205
205
|
create <name> Create isolated worktree for a feature
|
|
@@ -207,25 +207,25 @@ Subcommands:
|
|
|
207
207
|
prune Remove orphaned worktrees
|
|
208
208
|
remove <name> Clean up worktree (optionally merge branch)`,
|
|
209
209
|
|
|
210
|
-
rollback: `Usage: harness
|
|
210
|
+
rollback: `Usage: dev-harness rollback <subcommand> [checkpoint] [--target <dir>] [--json]
|
|
211
211
|
|
|
212
212
|
Subcommands:
|
|
213
213
|
list Show available checkpoints
|
|
214
214
|
to <tag> Restore state to a checkpoint
|
|
215
215
|
branch <tag> Branch off a good iteration`,
|
|
216
216
|
|
|
217
|
-
checkpoint: `Usage: harness
|
|
217
|
+
checkpoint: `Usage: dev-harness checkpoint create <label> [--force] [--target <dir>] [--json]
|
|
218
218
|
|
|
219
219
|
Create a manual checkpoint tag (manual/<label>). Requires clean working tree
|
|
220
220
|
unless --force is given.`,
|
|
221
221
|
|
|
222
|
-
'detect-tool': `Usage: harness
|
|
222
|
+
'detect-tool': `Usage: dev-harness detect-tool [--target <dir>] [--json]
|
|
223
223
|
|
|
224
224
|
Scan the project for agent-tool files (CLAUDE.md, .cursorrules, AGENTS.md, etc.)
|
|
225
225
|
and report which coding agents are available. Recommends a tool based on config
|
|
226
226
|
and detected files.`,
|
|
227
227
|
|
|
228
|
-
help: `Usage: harness
|
|
228
|
+
help: `Usage: dev-harness help
|
|
229
229
|
|
|
230
230
|
Show the global help message. Alias for --help.`,
|
|
231
231
|
};
|
package/cli/lib/ralph-inner.mjs
CHANGED
|
@@ -259,7 +259,7 @@ export function runPhase(targetDir, phase, options = {}) {
|
|
|
259
259
|
// Human output
|
|
260
260
|
process.stdout.write(output);
|
|
261
261
|
process.stdout.write(`\n═══════════════════════════════════════\n`);
|
|
262
|
-
process.stdout.write(`Run: harness
|
|
262
|
+
process.stdout.write(`Run: dev-harness validate --feature ${feature.id} --task ${task.id}\n`);
|
|
263
263
|
process.stdout.write(`═══════════════════════════════════════\n`);
|
|
264
264
|
|
|
265
265
|
return {
|
|
@@ -298,7 +298,7 @@ export function runPhase(targetDir, phase, options = {}) {
|
|
|
298
298
|
// Human output
|
|
299
299
|
process.stdout.write(output);
|
|
300
300
|
process.stdout.write(`\n═══════════════════════════════════════\n`);
|
|
301
|
-
process.stdout.write(`Run: harness
|
|
301
|
+
process.stdout.write(`Run: dev-harness validate\n`);
|
|
302
302
|
process.stdout.write(`═══════════════════════════════════════\n`);
|
|
303
303
|
|
|
304
304
|
return {
|
package/cli/lib/ralph-outer.mjs
CHANGED
|
@@ -98,7 +98,7 @@ export function continuePipeline(targetDir, completedPhase, options = {}) {
|
|
|
98
98
|
|
|
99
99
|
if (mode === 'copilot') {
|
|
100
100
|
// Copilot: print instructions for next phase
|
|
101
|
-
const msg = `${completedPhase.toUpperCase()} complete. Next: harness
|
|
101
|
+
const msg = `${completedPhase.toUpperCase()} complete. Next: dev-harness phase ${nextPhase}`;
|
|
102
102
|
if (json) {
|
|
103
103
|
return {
|
|
104
104
|
ok: true,
|
|
@@ -128,7 +128,7 @@ export function continuePipeline(targetDir, completedPhase, options = {}) {
|
|
|
128
128
|
|
|
129
129
|
// Re-check pause before auto-advancing (user may have paused during phase execution)
|
|
130
130
|
if (config.paused) {
|
|
131
|
-
const msg = `Autopilot paused after "${completedPhase}". Run: harness
|
|
131
|
+
const msg = `Autopilot paused after "${completedPhase}". Run: dev-harness resume`;
|
|
132
132
|
if (verbose && !json) {
|
|
133
133
|
process.stdout.write(`\n ⏸ ${msg}\n`);
|
|
134
134
|
}
|
|
@@ -205,7 +205,7 @@ export function continuePipeline(targetDir, completedPhase, options = {}) {
|
|
|
205
205
|
* Run the full autopilot pipeline from current state through SHIP.
|
|
206
206
|
*
|
|
207
207
|
* This is a convenience wrapper — normally autopilot is triggered
|
|
208
|
-
* by calling `harness
|
|
208
|
+
* by calling `dev-harness phase <name>` while in autopilot mode.
|
|
209
209
|
*
|
|
210
210
|
* @param {string} targetDir
|
|
211
211
|
* @param {object} [options]
|
package/cli/lib/ralph-output.mjs
CHANGED
|
@@ -171,7 +171,7 @@ export function buildDeliverableRetryOutput(phase, mode, maxRetries, resetOnRetr
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
out += `\n`;
|
|
174
|
-
out += `When done, run: harness
|
|
174
|
+
out += `When done, run: dev-harness validate\n`;
|
|
175
175
|
if (resetOnRetry) {out += `Git reset on retry: enabled\n`;}
|
|
176
176
|
if (autoCommit) {out += `Auto-commit: enabled\n`;}
|
|
177
177
|
return out;
|
package/cli/lib/scaffold.mjs
CHANGED
|
@@ -418,7 +418,7 @@ export function getVersionFileContent(stack) {
|
|
|
418
418
|
* Return .gitignore content for the given stack.
|
|
419
419
|
*/
|
|
420
420
|
export function getGitignoreContent(stack) {
|
|
421
|
-
return `# Harness runtime state (regenerated by harness
|
|
421
|
+
return `# Harness runtime state (regenerated by dev-harness)
|
|
422
422
|
harness/config.json
|
|
423
423
|
harness/features/feature-list.json
|
|
424
424
|
harness/progress.md
|
package/cli/lib/state.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-harness-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Agent-agnostic software development harness CLI — scaffold, phase orchestration, gate validation for any coding agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"harness
|
|
7
|
+
"dev-harness": "cli/dev-harness.mjs"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"cli/",
|
|
@@ -39,10 +39,19 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"lint": "eslint cli/",
|
|
41
41
|
"lint:fix": "eslint cli/ --fix",
|
|
42
|
-
"check": "node --check cli/harness
|
|
42
|
+
"check": "node --check cli/dev-harness.mjs && echo 'Syntax OK'",
|
|
43
43
|
"test": "node test/run-all.mjs",
|
|
44
44
|
"test:verbose": "node test/run-all.mjs --verbose",
|
|
45
|
-
"postinstall": "node -e \"try{process.stdout.write('harness
|
|
45
|
+
"postinstall": "node -e \"try{process.stdout.write('dev-harness installed. Run: npx dev-harness --help\\n')}catch(e){}\""
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"ajv": "^8.17.1",
|
|
49
|
+
"ink": "^5.1.0",
|
|
50
|
+
"p-retry": "^6.2.1",
|
|
51
|
+
"picocolors": "^1.1.1",
|
|
52
|
+
"react": "^18.3.1",
|
|
53
|
+
"simple-git": "^3.27.0",
|
|
54
|
+
"string-width": "^7.1.0"
|
|
46
55
|
},
|
|
47
56
|
"devDependencies": {
|
|
48
57
|
"@eslint/js": "^10.0.1",
|
package/templates/AGENTS.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
## Quick Start
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
harness
|
|
7
|
-
harness
|
|
8
|
-
harness
|
|
6
|
+
dev-harness status # Where are we?
|
|
7
|
+
dev-harness phase <name> # Invoke a phase
|
|
8
|
+
dev-harness validate # Check gate criteria
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Project
|
|
@@ -50,8 +50,8 @@ All harness-managed files live under `harness/` (except `AGENTS.md` which stays
|
|
|
50
50
|
2. Read `harness/progress.md` + this file before each operation
|
|
51
51
|
3. Commit frequently — each iteration is a checkpoint
|
|
52
52
|
4. If unsure → read the role guide in `harness/docs/agents/`
|
|
53
|
-
5. Never skip gates — run `harness
|
|
54
|
-
6. Fresh context per retry — pass `--git-ops` to `harness
|
|
53
|
+
5. Never skip gates — run `dev-harness validate` after each phase
|
|
54
|
+
6. Fresh context per retry — pass `--git-ops` to `dev-harness phase <name>` to auto-reset the working tree on retry (off by default; agent-agnostic)
|
|
55
55
|
7. **No files in project root** unless they are harness-managed files (listed in Key Files above) or standard project files (README.md, LICENSE, CHANGELOG.md, CONTRIBUTING.md, .gitignore, and the stack config file like package.json/pyproject.toml/Cargo.toml). All source code, tests, scripts, and docs go in subdirectories.
|
|
56
56
|
8. **Structure from the start** — create folders for your work on day one and stick to them. Suggested layout: `src/` (source), `tests/` (tests), `docs/` (documentation), `scripts/` (automation). Do not dump files at root "temporarily" — there is no temporary.
|
|
57
57
|
9. **No orphaned files** — every file you create must have a clear purpose and be referenced by imports, configs, docs, or the build system. If you create a file, wire it in immediately. Delete files you stop using.
|
|
@@ -10,4 +10,4 @@ You implement. You produce artifacts. You self-check.
|
|
|
10
10
|
- In BUILD: implement ONE task at a time, then validate
|
|
11
11
|
- In VERIFY: run the full test suite
|
|
12
12
|
- In SIMPLIFY: adopt the Simplifier persona (see simplifier.md)
|
|
13
|
-
- When done: call `harness
|
|
13
|
+
- When done: call `dev-harness validate`
|
|
@@ -10,4 +10,4 @@ You refactor. You clean. You never change behavior.
|
|
|
10
10
|
- Break long functions (~40 line threshold)
|
|
11
11
|
- Rename unclear variables
|
|
12
12
|
- ⚠ All tests must still pass after your changes
|
|
13
|
-
- Run `harness
|
|
13
|
+
- Run `dev-harness validate` after each feature to confirm gate
|
|
@@ -21,14 +21,14 @@ fresh context. Only when all features pass does the phase gate run.
|
|
|
21
21
|
1. Read `progress.md`, `AGENTS.md`, `sprint-contract.md`.
|
|
22
22
|
2. Pick next feature where `passes === false`.
|
|
23
23
|
3. Implement the feature's tasks.
|
|
24
|
-
4. Run `harness
|
|
24
|
+
4. Run `dev-harness validate --feature <name> --task <id>` per task.
|
|
25
25
|
5. On pass: mark feature `passes: true`, commit, append lesson to `progress.md`.
|
|
26
26
|
6. On fail (≤ `maxRetries`): retry with fresh context (git reset if `--git-ops`).
|
|
27
27
|
7. On fail (> `maxRetries`): escalate to human.
|
|
28
28
|
|
|
29
29
|
## Exit Gate
|
|
30
30
|
|
|
31
|
-
Run `harness
|
|
31
|
+
Run `dev-harness validate` — checks:
|
|
32
32
|
|
|
33
33
|
- `config-exists`
|
|
34
34
|
- `git-repo`
|
|
@@ -38,4 +38,4 @@ Run `harness-dev validate` — checks:
|
|
|
38
38
|
|
|
39
39
|
## Handoff
|
|
40
40
|
|
|
41
|
-
On gate pass: `harness
|
|
41
|
+
On gate pass: `dev-harness phase verify` (Generator → Evaluator).
|
|
@@ -12,7 +12,7 @@ feature list.
|
|
|
12
12
|
|
|
13
13
|
## Entry
|
|
14
14
|
|
|
15
|
-
- `harness-config.json` exists (created by `harness
|
|
15
|
+
- `harness-config.json` exists (created by `dev-harness init`)
|
|
16
16
|
- `AGENTS.md` present in project root
|
|
17
17
|
|
|
18
18
|
## Work
|
|
@@ -40,7 +40,7 @@ feature list.
|
|
|
40
40
|
|
|
41
41
|
## Exit Gate
|
|
42
42
|
|
|
43
|
-
Run `harness
|
|
43
|
+
Run `dev-harness validate` — checks:
|
|
44
44
|
|
|
45
45
|
- `config-exists`
|
|
46
46
|
- `git-repo`
|
|
@@ -48,4 +48,4 @@ Run `harness-dev validate` — checks:
|
|
|
48
48
|
|
|
49
49
|
## Handoff
|
|
50
50
|
|
|
51
|
-
On gate pass: `harness
|
|
51
|
+
On gate pass: `dev-harness phase plan` (Planner → continues as Planner for decomposition).
|
|
@@ -20,11 +20,11 @@ verifiable acceptance criteria. The Sprint Contract is negotiated here.
|
|
|
20
20
|
2. Decompose into features → tasks in `feature_list.json`.
|
|
21
21
|
3. Planner proposes `sprint-contract.md` (scope, criteria, exclusions).
|
|
22
22
|
4. Evaluator reviews; iterate until `**Status:** Agreed`.
|
|
23
|
-
5. Use `harness
|
|
23
|
+
5. Use `dev-harness contract propose` / `contract review --decision <agreed|needs-revision>`.
|
|
24
24
|
|
|
25
25
|
## Exit Gate
|
|
26
26
|
|
|
27
|
-
Run `harness
|
|
27
|
+
Run `dev-harness validate` — checks:
|
|
28
28
|
|
|
29
29
|
- `config-exists`
|
|
30
30
|
- `git-repo`
|
|
@@ -33,4 +33,4 @@ Run `harness-dev validate` — checks:
|
|
|
33
33
|
|
|
34
34
|
## Handoff
|
|
35
35
|
|
|
36
|
-
On gate pass: `harness
|
|
36
|
+
On gate pass: `dev-harness phase build` (Planner → Generator).
|
|
@@ -27,7 +27,7 @@ overall verdict: Accept / Revise / Block.
|
|
|
27
27
|
|
|
28
28
|
## Exit Gate
|
|
29
29
|
|
|
30
|
-
Run `harness
|
|
30
|
+
Run `dev-harness validate` — checks:
|
|
31
31
|
|
|
32
32
|
- `config-exists`
|
|
33
33
|
- `git-repo`
|
|
@@ -39,4 +39,4 @@ Run `harness-dev validate` — checks:
|
|
|
39
39
|
|
|
40
40
|
## Handoff
|
|
41
41
|
|
|
42
|
-
On gate pass: `harness
|
|
42
|
+
On gate pass: `dev-harness phase ship` (committee → release).
|
|
@@ -17,13 +17,13 @@ The release must be reproducible from a clean checkout.
|
|
|
17
17
|
|
|
18
18
|
1. Update `CHANGELOG.md` with version, date, summary.
|
|
19
19
|
2. Bump version in `package.json` / equivalent manifest.
|
|
20
|
-
3. Run full `harness
|
|
20
|
+
3. Run full `dev-harness validate` — all gates must pass.
|
|
21
21
|
4. Tag the release: `git tag -a v<x.y.z> -m "Release x.y.z"`.
|
|
22
22
|
5. Open or merge the PR per project workflow.
|
|
23
23
|
|
|
24
24
|
## Exit Gate
|
|
25
25
|
|
|
26
|
-
Run `harness
|
|
26
|
+
Run `dev-harness validate` — checks:
|
|
27
27
|
|
|
28
28
|
- `config-exists`
|
|
29
29
|
- `git-repo`
|
|
@@ -38,6 +38,6 @@ Run `harness-dev validate` — checks:
|
|
|
38
38
|
|
|
39
39
|
## Handoff
|
|
40
40
|
|
|
41
|
-
On gate pass: pipeline complete. `harness
|
|
41
|
+
On gate pass: pipeline complete. `dev-harness status` reports
|
|
42
42
|
`Pipeline complete after "ship"`. Increment `pipelineIteration` and loop back
|
|
43
43
|
to DEFINE for the next sprint, or stop if the project is done.
|
|
@@ -20,14 +20,14 @@ must not break the feature's acceptance criteria.
|
|
|
20
20
|
1. Read `progress.md` and `AGENTS.md`.
|
|
21
21
|
2. For each feature: review the implementation, propose deletions/renames.
|
|
22
22
|
3. Apply simplifications.
|
|
23
|
-
4. Re-run `harness
|
|
23
|
+
4. Re-run `dev-harness validate --feature <name>` — criteria must still pass.
|
|
24
24
|
5. On pass: commit, append lesson.
|
|
25
25
|
6. On fail (≤ `maxRetries`): revert and retry.
|
|
26
26
|
7. On fail (> `maxRetries`): escalate.
|
|
27
27
|
|
|
28
28
|
## Exit Gate
|
|
29
29
|
|
|
30
|
-
Run `harness
|
|
30
|
+
Run `dev-harness validate` — checks:
|
|
31
31
|
|
|
32
32
|
- `config-exists`
|
|
33
33
|
- `git-repo`
|
|
@@ -37,4 +37,4 @@ Run `harness-dev validate` — checks:
|
|
|
37
37
|
|
|
38
38
|
## Handoff
|
|
39
39
|
|
|
40
|
-
On gate pass: `harness
|
|
40
|
+
On gate pass: `dev-harness phase review` (Simplifier → multi-agent committee).
|
|
@@ -26,7 +26,7 @@ feature's acceptance criteria from the sprint contract and scores it against
|
|
|
26
26
|
|
|
27
27
|
## Exit Gate
|
|
28
28
|
|
|
29
|
-
Run `harness
|
|
29
|
+
Run `dev-harness validate` — checks:
|
|
30
30
|
|
|
31
31
|
- `config-exists`
|
|
32
32
|
- `git-repo`
|
|
@@ -35,4 +35,4 @@ Run `harness-dev validate` — checks:
|
|
|
35
35
|
|
|
36
36
|
## Handoff
|
|
37
37
|
|
|
38
|
-
On gate pass: `harness
|
|
38
|
+
On gate pass: `dev-harness phase simplify` (Evaluator → Simplifier).
|
package/templates/init.ps1
CHANGED
|
@@ -94,4 +94,4 @@ switch ($Stack) {
|
|
|
94
94
|
Write-Host " ✓ Setup verified" -ForegroundColor Green
|
|
95
95
|
|
|
96
96
|
# ── Start ────────────────────────────────────────────────────────────────────
|
|
97
|
-
Write-Host "`nSetup complete. Run: harness
|
|
97
|
+
Write-Host "`nSetup complete. Run: dev-harness phase define" -ForegroundColor Cyan
|