@harness-engineering/cli 3.0.1 → 4.0.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/dist/agents/personas/harness-pm.yaml +33 -0
- package/dist/agents/skills/claude-code/acceptance-eval/SKILL.md +92 -0
- package/dist/agents/skills/claude-code/acceptance-eval/skill.yaml +54 -0
- package/dist/agents/skills/claude-code/harness-brainstorming/SKILL.md +46 -38
- package/dist/agents/skills/claude-code/harness-brainstorming/skill.yaml +1 -0
- package/dist/agents/skills/claude-code/harness-code-review/SKILL.md +10 -11
- package/dist/agents/skills/claude-code/harness-execution/SKILL.md +59 -26
- package/dist/agents/skills/claude-code/harness-integration/SKILL.md +21 -19
- package/dist/agents/skills/claude-code/harness-maintenance-pipeline/SKILL.md +173 -0
- package/dist/agents/skills/claude-code/harness-maintenance-pipeline/skill.yaml +43 -0
- package/dist/agents/skills/claude-code/harness-onboarding/SKILL.md +2 -0
- package/dist/agents/skills/claude-code/harness-planning/SKILL.md +17 -40
- package/dist/agents/skills/claude-code/harness-pulse/SKILL.md +1 -1
- package/dist/agents/skills/claude-code/harness-roadmap/SKILL.md +17 -0
- package/dist/agents/skills/claude-code/harness-roadmap-pilot/SKILL.md +40 -43
- package/dist/agents/skills/claude-code/harness-verification/SKILL.md +9 -12
- package/dist/agents/skills/claude-code/initialize-harness-project/SKILL.md +112 -126
- package/dist/agents/skills/claude-code/outcome-eval/SKILL.md +1 -0
- package/dist/agents/skills/codex/acceptance-eval/SKILL.md +92 -0
- package/dist/agents/skills/codex/acceptance-eval/skill.yaml +54 -0
- package/dist/agents/skills/codex/harness-brainstorming/SKILL.md +46 -38
- package/dist/agents/skills/codex/harness-brainstorming/skill.yaml +1 -0
- package/dist/agents/skills/codex/harness-code-review/SKILL.md +10 -11
- package/dist/agents/skills/codex/harness-execution/SKILL.md +59 -26
- package/dist/agents/skills/codex/harness-integration/SKILL.md +21 -19
- package/dist/agents/skills/codex/harness-maintenance-pipeline/SKILL.md +173 -0
- package/dist/agents/skills/codex/harness-maintenance-pipeline/skill.yaml +43 -0
- package/dist/agents/skills/codex/harness-onboarding/SKILL.md +2 -0
- package/dist/agents/skills/codex/harness-planning/SKILL.md +17 -40
- package/dist/agents/skills/codex/harness-pulse/SKILL.md +1 -1
- package/dist/agents/skills/codex/harness-roadmap/SKILL.md +17 -0
- package/dist/agents/skills/codex/harness-roadmap-pilot/SKILL.md +40 -43
- package/dist/agents/skills/codex/harness-verification/SKILL.md +9 -12
- package/dist/agents/skills/codex/initialize-harness-project/SKILL.md +112 -126
- package/dist/agents/skills/codex/outcome-eval/SKILL.md +1 -0
- package/dist/agents/skills/cursor/acceptance-eval/SKILL.md +92 -0
- package/dist/agents/skills/cursor/acceptance-eval/skill.yaml +54 -0
- package/dist/agents/skills/cursor/harness-brainstorming/SKILL.md +46 -38
- package/dist/agents/skills/cursor/harness-brainstorming/skill.yaml +1 -0
- package/dist/agents/skills/cursor/harness-code-review/SKILL.md +10 -11
- package/dist/agents/skills/cursor/harness-execution/SKILL.md +59 -26
- package/dist/agents/skills/cursor/harness-integration/SKILL.md +21 -19
- package/dist/agents/skills/cursor/harness-maintenance-pipeline/SKILL.md +173 -0
- package/dist/agents/skills/cursor/harness-maintenance-pipeline/skill.yaml +43 -0
- package/dist/agents/skills/cursor/harness-onboarding/SKILL.md +2 -0
- package/dist/agents/skills/cursor/harness-planning/SKILL.md +17 -40
- package/dist/agents/skills/cursor/harness-pulse/SKILL.md +1 -1
- package/dist/agents/skills/cursor/harness-roadmap/SKILL.md +17 -0
- package/dist/agents/skills/cursor/harness-roadmap-pilot/SKILL.md +40 -43
- package/dist/agents/skills/cursor/harness-verification/SKILL.md +9 -12
- package/dist/agents/skills/cursor/initialize-harness-project/SKILL.md +112 -126
- package/dist/agents/skills/cursor/outcome-eval/SKILL.md +1 -0
- package/dist/agents/skills/gemini-cli/acceptance-eval/SKILL.md +92 -0
- package/dist/agents/skills/gemini-cli/acceptance-eval/skill.yaml +54 -0
- package/dist/agents/skills/gemini-cli/harness-brainstorming/SKILL.md +46 -38
- package/dist/agents/skills/gemini-cli/harness-brainstorming/skill.yaml +1 -0
- package/dist/agents/skills/gemini-cli/harness-code-review/SKILL.md +10 -11
- package/dist/agents/skills/gemini-cli/harness-execution/SKILL.md +59 -26
- package/dist/agents/skills/gemini-cli/harness-integration/SKILL.md +21 -19
- package/dist/agents/skills/gemini-cli/harness-maintenance-pipeline/SKILL.md +173 -0
- package/dist/agents/skills/gemini-cli/harness-maintenance-pipeline/skill.yaml +43 -0
- package/dist/agents/skills/gemini-cli/harness-onboarding/SKILL.md +2 -0
- package/dist/agents/skills/gemini-cli/harness-planning/SKILL.md +17 -40
- package/dist/agents/skills/gemini-cli/harness-pulse/SKILL.md +1 -1
- package/dist/agents/skills/gemini-cli/harness-roadmap/SKILL.md +17 -0
- package/dist/agents/skills/gemini-cli/harness-roadmap-pilot/SKILL.md +40 -43
- package/dist/agents/skills/gemini-cli/harness-verification/SKILL.md +9 -12
- package/dist/agents/skills/gemini-cli/initialize-harness-project/SKILL.md +112 -126
- package/dist/agents/skills/gemini-cli/outcome-eval/SKILL.md +1 -0
- package/dist/agents/skills/tests/interaction-channel.test.ts +64 -0
- package/dist/{agents-md-XOJE5ETA.js → agents-md-7OSNWU52.js} +2 -2
- package/dist/{architecture-JEZPJ725.js → architecture-2XYGJGT3.js} +3 -3
- package/dist/{assess-project-RHXOQNMM.js → assess-project-3KPP2D6M.js} +1 -1
- package/dist/bin/harness-mcp.js +16 -15
- package/dist/bin/harness.js +27 -25
- package/dist/{check-phase-gate-GNDOMS35.js → check-phase-gate-46U5AAXE.js} +4 -3
- package/dist/{chunk-MGUPSE6D.js → chunk-363V6GPR.js} +5 -5
- package/dist/{chunk-HEIMJJI4.js → chunk-6NCREWWM.js} +2 -2
- package/dist/{chunk-XFU6SB2Q.js → chunk-6YXCZV33.js} +2171 -924
- package/dist/{chunk-HWTUUQOW.js → chunk-AK67S3O4.js} +3 -3
- package/dist/{chunk-BYVT5LVO.js → chunk-BV45354Q.js} +3 -3
- package/dist/{chunk-WWEVS7RO.js → chunk-ERILXQBP.js} +1181 -486
- package/dist/{chunk-UX3PQKVZ.js → chunk-FZ4Q73HA.js} +1 -1
- package/dist/{chunk-Z4AWEIBY.js → chunk-GXCPDAS5.js} +3 -3
- package/dist/{chunk-XX4OLNWQ.js → chunk-HMW3C5DP.js} +2 -2
- package/dist/{chunk-PC2R5RUJ.js → chunk-HXMAIVV2.js} +1 -1
- package/dist/{chunk-QBC7DI4Q.js → chunk-IYWT3JJW.js} +1 -1
- package/dist/{chunk-N24HCQA4.js → chunk-KLPX55TI.js} +3015 -1138
- package/dist/{chunk-527G27VI.js → chunk-MSBJ445U.js} +4 -4
- package/dist/{chunk-NWLGL3IR.js → chunk-MYVTYFQD.js} +2 -2
- package/dist/{chunk-KAJOS3BA.js → chunk-PHX45JYN.js} +5 -9
- package/dist/{chunk-6WQCLCBO.js → chunk-S2RQPPL6.js} +1 -1
- package/dist/chunk-SPE7P4GL.js +61 -0
- package/dist/{chunk-YQSYCBAH.js → chunk-TTWNGOBT.js} +6 -6
- package/dist/{chunk-6B6UN6SG.js → chunk-UTJJJDNN.js} +11 -1
- package/dist/{chunk-WWACIIBA.js → chunk-V3ZQUCRH.js} +1 -1
- package/dist/{chunk-GSP2XIVS.js → chunk-VTU3QOJT.js} +48 -4
- package/dist/{chunk-3ISHDWO7.js → chunk-VTUINXWR.js} +1 -1
- package/dist/{chunk-27AJKSQY.js → chunk-WBVCN35T.js} +1 -1
- package/dist/{chunk-ONCPJGHY.js → chunk-WL3O2PKJ.js} +6 -6
- package/dist/{chunk-GGKRA7A7.js → chunk-XFHZ7GCI.js} +1 -1
- package/dist/chunk-Y6SUQC32.js +9 -0
- package/dist/{chunk-DE5U6KOL.js → chunk-ZEYAOYJL.js} +1 -1
- package/dist/{ci-workflow-ORZ4F45F.js → ci-workflow-XJN4UO3Q.js} +2 -2
- package/dist/{dist-LHINSVK4.js → dist-IPVFYGY2.js} +85 -15
- package/dist/{docs-AU3DXFFO.js → docs-RSFZTNPG.js} +3 -3
- package/dist/{engine-6GPWOYQH.js → engine-DJIHY4JT.js} +2 -2
- package/dist/{entropy-VLKDRMRT.js → entropy-EAEKJKRM.js} +2 -2
- package/dist/{feedback-YXYY44ZC.js → feedback-JT5X3DBC.js} +1 -1
- package/dist/{generate-agent-definitions-XIHQPKG3.js → generate-agent-definitions-CC6KED3E.js} +4 -4
- package/dist/hooks/adoption-tracker.js +6 -5
- package/dist/hooks/format-check.js +202 -0
- package/dist/hooks/protect-config.js +15 -5
- package/dist/hooks/quality-warner.js +32 -0
- package/dist/hooks/strict-quality-gate.js +48 -0
- package/dist/{index-builder-3AOQ3ZII.js → index-builder-52IJJHJC.js} +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +27 -25
- package/dist/{loader-YAN56MT3.js → loader-UWNVTYBY.js} +2 -2
- package/dist/{mcp-RK3SFVYB.js → mcp-TCLNK7HG.js} +18 -17
- package/dist/{performance-64DPTLLQ.js → performance-R6O3N3UB.js} +3 -3
- package/dist/{review-pipeline-NENG6LW7.js → review-pipeline-MOOWXWSQ.js} +2 -2
- package/dist/{runtime-FFIIRT2T.js → runtime-RIWQUKBQ.js} +2 -2
- package/dist/{security-3PIBN35B.js → security-U76C54W6.js} +1 -1
- package/dist/{skill-executor-MOCUIAYS.js → skill-executor-BGUCAVBU.js} +2 -2
- package/dist/state-events-F44CUUZG.js +25 -0
- package/dist/{validate-7IAF2ES3.js → validate-IUAV7MOU.js} +3 -3
- package/dist/{validate-cross-check-QPSAOZKD.js → validate-cross-check-M2ZM6RFY.js} +2 -2
- package/package.json +7 -7
- package/dist/hooks/quality-gate.js +0 -131
|
@@ -95,44 +95,21 @@ Store the parsed skill list for use in Phase 2 task annotation.
|
|
|
95
95
|
|
|
96
96
|
**Read-only constraint:** Steps 1-6 above are research and analysis. Do not propose task structure, file organization, or implementation approaches during SCOPE. Record what must be true (observable truths) and what you do not know (uncertainties). Solutions belong in DECOMPOSE.
|
|
97
97
|
|
|
98
|
-
When scope is ambiguous,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: "B) Defer Y to a follow-up plan",
|
|
116
|
-
pros: ["Keeps current plan focused", "Ship sooner"],
|
|
117
|
-
cons: ["Y remains unhandled", "May need rework when Y is added"],
|
|
118
|
-
risk: "low",
|
|
119
|
-
effort: "low"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
label: "C) Update the spec first",
|
|
123
|
-
pros: ["Design is complete before planning", "No surprises during execution"],
|
|
124
|
-
cons: ["Blocks planning until spec is updated", "Extra round-trip"],
|
|
125
|
-
risk: "low",
|
|
126
|
-
effort: "medium"
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
recommendation: {
|
|
130
|
-
optionIndex: 1,
|
|
131
|
-
reason: "Keeping the current plan focused reduces risk. Y can be addressed in a follow-up.",
|
|
132
|
-
confidence: "medium"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
})
|
|
98
|
+
When scope is ambiguous, ask in plain text in your reply. **Do NOT route this through `emit_interaction`, `AskUserQuestion`, or any tool.** `emit_interaction` records the prompt but does not display it to the human — the client collapses the call to "Called harness" and the rendered text only returns to the model. `AskUserQuestion` is Claude-Code-only and caps headers at 12 chars / 4 options. Plain text in your own message is the only channel that reliably reaches the human across every tool (Claude Code, Cursor, Codex, Gemini CLI).
|
|
99
|
+
|
|
100
|
+
Present the choice as a markdown table so tradeoffs are scannable, state your recommendation, then STOP and wait for the human's reply:
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
### Decision needed: The spec mentions X but does not define behavior for Y. Should we:
|
|
104
|
+
|
|
105
|
+
| | A) Include Y in this plan | B) Defer Y to a follow-up plan | C) Update the spec first |
|
|
106
|
+
| ---------- | ------------------------------------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------- |
|
|
107
|
+
| **Pros** | Complete feature in one pass; no follow-up coordination | Keeps current plan focused; ship sooner | Design is complete before planning; no surprises during execution |
|
|
108
|
+
| **Cons** | Increases scope and time; may delay delivery | Y remains unhandled; may need rework when Y is added | Blocks planning until spec is updated; extra round-trip |
|
|
109
|
+
| **Risk** | Medium | Low | Low |
|
|
110
|
+
| **Effort** | High | Low | Medium |
|
|
111
|
+
|
|
112
|
+
**Recommendation:** B) Defer Y to a follow-up plan (confidence: medium) — keeping the current plan focused reduces risk; Y can be addressed in a follow-up.
|
|
136
113
|
```
|
|
137
114
|
|
|
138
115
|
#### EARS Requirement Patterns
|
|
@@ -223,7 +200,7 @@ Report progress: `**[Phase 2/4]** DECOMPOSE — mapping file structure and creat
|
|
|
223
200
|
**Estimated total:** 8 tasks, ~33 minutes
|
|
224
201
|
```
|
|
225
202
|
|
|
226
|
-
**Approval gate:**
|
|
203
|
+
**Approval gate:** Ask in plain text in your reply — do NOT route this through `emit_interaction` or `AskUserQuestion` (they do not display to the human; `emit_interaction` collapses to "Called harness" and `AskUserQuestion` is Claude-Code-only). Ask directly: "Approve skeleton direction?" and wait. If approved, proceed to step 3. If rejected, revise and re-present.
|
|
227
204
|
|
|
228
205
|
3. **Decompose into atomic tasks.** Each task must:
|
|
229
206
|
- Be completable in 2-5 minutes, fit in a single context window
|
|
@@ -313,7 +290,7 @@ Report progress: `**[Phase 2/4]** DECOMPOSE — mapping file structure and creat
|
|
|
313
290
|
|
|
314
291
|
10. **Write session summary (if session is known).** Call `writeSessionSummary` with skill, status, plan path, keyContext, nextStep. Skip if no session slug.
|
|
315
292
|
|
|
316
|
-
11. **Request plan sign-off
|
|
293
|
+
11. **Request plan sign-off in plain text.** Ask directly in your reply — do NOT route this through `emit_interaction` or `AskUserQuestion` (the human will not see it; `emit_interaction` collapses to "Called harness" and `AskUserQuestion` is Claude-Code-only). Present the plan path, task count, and time estimate, then ask: "Proceed? (yes/no)" and wait for the reply.
|
|
317
294
|
|
|
318
295
|
12. **Suggest transition to execution.** After approval, call `emit_interaction` with type: `transition`, `completedPhase: "planning"`, `suggestedNext: "execution"`, `requiresConfirmation: true`. Include `qualityGate` with checks: plan-written, harness-validate, observable-truths-traced, human-approved. If confirmed: invoke harness-execution. If declined: stop (handoff already written).
|
|
319
296
|
|
|
@@ -35,7 +35,7 @@ Read `references/interview.md` for the SMART pushback rules and the READ-WRITE-D
|
|
|
35
35
|
- If `name` is non-null, confirm it as the product name; otherwise prompt.
|
|
36
36
|
- For each `keyMetric`, walk it through the SMART bar in step 4.
|
|
37
37
|
|
|
38
|
-
2. **Pick the lookback default.**
|
|
38
|
+
2. **Pick the lookback default.** Ask in plain text — present numbered options `["24h", "7d", "30d", "custom"]` and wait (do NOT use `emit_interaction`/`AskUserQuestion`; the human won't see it — it renders only to the model and the client collapses the call to "Called harness"). Default `24h` per spec.
|
|
39
39
|
|
|
40
40
|
3. **Identify the primary engagement event** (e.g. `session_started`). Apply the SMART bar. If the user can't name one, set `null` and add a pending entry. Record the event name in `primaryEvent`.
|
|
41
41
|
|
|
@@ -25,6 +25,23 @@ If the human has not seen and approved the milestone groupings and feature list,
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
+
### Storage mode: monolith vs sharded
|
|
29
|
+
|
|
30
|
+
The roadmap has two physical layouts, auto-detected (not configured) by the presence of `docs/roadmap.d/`:
|
|
31
|
+
|
|
32
|
+
- **Monolith** — a single `docs/roadmap.md` aggregate is canonical (legacy default).
|
|
33
|
+
- **Sharded** — per-row shards `docs/roadmap.d/<slug>.md` (plus `_meta.md`) are canonical, and `docs/roadmap.md` is a generated `merge=ours` aggregate. New `harness init` projects are sharded by default.
|
|
34
|
+
|
|
35
|
+
In sharded mode a write patches a **single shard** (conflict-free by construction) and **regenerates the aggregate** — so when committing a roadmap change, stage both `docs/roadmap.d/` and the regenerated `docs/roadmap.md`. Read/write only through `manage_roadmap` / the `RoadmapStore`; never parse the aggregate for content (read-source invariant R, ADR 0050). Subcommands:
|
|
36
|
+
|
|
37
|
+
- `harness roadmap shard` — adopt sharding (split the monolith into shards), reversible with `harness roadmap unshard` (semantic round-trip).
|
|
38
|
+
- `harness roadmap regen` — regenerate the aggregate from the shards (the fix when `harness validate` warns the aggregate has drifted).
|
|
39
|
+
- `harness roadmap reconcile` — offline merge-triggered auto-done (flip closed-issue rows to `done`).
|
|
40
|
+
|
|
41
|
+
**Stop hand-marking rows `done`** — rows reach `done` automatically when the implementing PR merges (auto-done reconciler; see knowledge [`merge-triggered-auto-done.md`](../../../../docs/knowledge/roadmap/merge-triggered-auto-done.md)). See also the adoption guide [`docs/guides/roadmap-sharding.md`](../../../../docs/guides/roadmap-sharding.md).
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
28
45
|
### Command: `--create` -- Bootstrap Roadmap
|
|
29
46
|
|
|
30
47
|
#### Phase 1: SCAN -- Discover Artifacts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Harness Roadmap Pilot
|
|
2
2
|
|
|
3
|
-
> AI-assisted selection of the next highest-impact unblocked roadmap item. Scores candidates, recommends one,
|
|
3
|
+
> AI-assisted selection of the next highest-impact unblocked roadmap item. Scores candidates, recommends one, and transitions to the appropriate next skill. Selection does NOT assign — the `assignee` field names who is _executing_, and is written at execution start (harness-execution), not at selection.
|
|
4
4
|
|
|
5
5
|
## When to Use
|
|
6
6
|
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
### Iron Law
|
|
16
16
|
|
|
17
|
-
**Never
|
|
17
|
+
**Never transition without the human confirming the recommendation first. Selection never writes `assignee`.**
|
|
18
18
|
|
|
19
|
-
Present the ranked candidates, the AI reasoning, and the recommended pick. Wait for explicit confirmation before
|
|
19
|
+
Present the ranked candidates, the AI reasoning, and the recommended pick. Wait for explicit confirmation before transitioning. The `assignee` field means _who is executing_ and is claimed at execution start by harness-execution — picking an item must NOT mark it assigned (an early assignee makes the item look human-claimed and the orchestrator silently skips it).
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -133,28 +133,27 @@ Ask the human in plain text (matching the `y/n/pick another` example above). Do
|
|
|
133
133
|
- If **pick another**: ask which candidate number, then proceed with that pick.
|
|
134
134
|
- If **no**: stop. No changes made.
|
|
135
135
|
|
|
136
|
-
### Phase 4:
|
|
136
|
+
### Phase 4: TRANSITION -- Hand Off to the Next Skill
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
**Do NOT write the `assignee` field here.** Selection picks the item; it does not
|
|
139
|
+
claim it. harness-execution claims the item (`status=in-progress` + `assignee`) at
|
|
140
|
+
execution start. Writing an assignee at selection makes the orchestrator treat the
|
|
141
|
+
item as already-claimed and silently skip it (the bug this skill must not reintroduce).
|
|
142
|
+
The item stays `planned`/`backlog` with `Assignee: —` and remains orchestrator-eligible.
|
|
139
143
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
- This updates the feature's `Assignee` field with assignment history tracking
|
|
150
|
-
- Automatically triggers external sync (GitHub Issues) if tracker config exists in `harness.config.json`
|
|
151
|
-
- External sync is fire-and-forget — errors are logged but do not block the assignment
|
|
144
|
+
**Sharded mode + auto-done.** When the claim is later written (at execution start),
|
|
145
|
+
in sharded mode (`docs/roadmap.d/` present) it patches the **single row's shard**
|
|
146
|
+
and appends an assignment record to the shared `_meta.md`, then regenerates the
|
|
147
|
+
`docs/roadmap.md` aggregate — stage both. And there is **no manual done-marking
|
|
148
|
+
step**: a row reaches `done` automatically when the implementing PR merges
|
|
149
|
+
(merge-triggered auto-done via `External-ID`; the reconciler clears the assignee per
|
|
150
|
+
RMH005). See knowledge [`merge-triggered-auto-done.md`](../../../../docs/knowledge/roadmap/merge-triggered-auto-done.md).
|
|
152
151
|
|
|
153
|
-
|
|
152
|
+
1. Determine the transition target:
|
|
154
153
|
- If the feature has a `spec` field (non-null): transition to `harness:autopilot`
|
|
155
154
|
- If the feature has no `spec`: transition to `harness:brainstorming`
|
|
156
155
|
|
|
157
|
-
|
|
156
|
+
2. Present the transition to the human via `emit_interaction`:
|
|
158
157
|
|
|
159
158
|
```json
|
|
160
159
|
emit_interaction({
|
|
@@ -163,16 +162,16 @@ Ask the human in plain text (matching the `y/n/pick another` example above). Do
|
|
|
163
162
|
transition: {
|
|
164
163
|
completedPhase: "roadmap-pilot",
|
|
165
164
|
suggestedNext: "<brainstorming|autopilot>",
|
|
166
|
-
reason: "Feature '<name>'
|
|
165
|
+
reason: "Feature '<name>' selected and ready for <brainstorming|execution>",
|
|
167
166
|
artifacts: ["docs/roadmap.md"],
|
|
168
167
|
requiresConfirmation: true,
|
|
169
|
-
summary: "
|
|
168
|
+
summary: "Selected '<name>'. <Spec exists -- ready for autopilot|No spec -- needs brainstorming first>. (Not assigned — harness-execution claims it at execution start.)",
|
|
170
169
|
qualityGate: {
|
|
171
170
|
checks: [
|
|
172
171
|
{ "name": "roadmap-parsed", "passed": true },
|
|
173
172
|
{ "name": "candidate-scored", "passed": true },
|
|
174
173
|
{ "name": "human-confirmed", "passed": true },
|
|
175
|
-
{ "name": "assignment-
|
|
174
|
+
{ "name": "no-assignment-at-selection", "passed": true }
|
|
176
175
|
],
|
|
177
176
|
allPassed: true
|
|
178
177
|
}
|
|
@@ -180,7 +179,7 @@ Ask the human in plain text (matching the `y/n/pick another` example above). Do
|
|
|
180
179
|
})
|
|
181
180
|
```
|
|
182
181
|
|
|
183
|
-
|
|
182
|
+
3. Run `harness validate`.
|
|
184
183
|
|
|
185
184
|
---
|
|
186
185
|
|
|
@@ -190,19 +189,18 @@ Ask the human in plain text (matching the `y/n/pick another` example above). Do
|
|
|
190
189
|
- **`loadProjectRoadmapMode` / `loadTrackerClientConfigFromProject` / `createTrackerClient`** -- Resolve `roadmap.mode` and obtain a `RoadmapTrackerClient` for file-less mode. Import from `@harness-engineering/core`.
|
|
191
190
|
- **`scoreRoadmapCandidatesForMode`** -- Mode-aware scoring entry point. Import from `@harness-engineering/core`. In file-backed mode delegates to `scoreRoadmapCandidates`; in file-less mode routes through `scoreRoadmapCandidatesFileLess` (priority + createdAt sort, FR-S3).
|
|
192
191
|
- **`scoreRoadmapCandidates`** -- Underlying file-backed scoring algorithm. Prefer `scoreRoadmapCandidatesForMode` from the skill; direct callers in file-backed-only code paths can still use this.
|
|
193
|
-
- **`
|
|
194
|
-
- **`emit_interaction`** -- Used for the skill transition at the end. Transitions to `harness:brainstorming` (no spec) or `harness:autopilot` (spec exists).
|
|
192
|
+
- **`emit_interaction`** -- Used for the skill transition at the end. Transitions to `harness:brainstorming` (no spec) or `harness:autopilot` (spec exists). This skill does NOT call `manage_roadmap update` to assign — the `assignee` field is owned by harness-execution (claim at execution start), enforced by RMH005 (`assignee ≠ null ⟺ in-progress`).
|
|
195
193
|
- **`STRATEGY.md` alignment (Phase 2 step 1a)** -- When present at repo root and valid, loaded via `validateStrategy` + `parseStrategyDoc` + `asStrategyDoc` from `@harness-engineering/core`. Applied as a bounded tiebreaker bonus (max `+0.75`) only when candidates score within `0.05` on the base formula. Boundary: roadmap-pilot READS; `harness-strategy` WRITES. Never modify `STRATEGY.md` from this skill.
|
|
196
|
-
- **`harness validate`** -- Run after
|
|
194
|
+
- **`harness validate`** -- Run after the transition is presented.
|
|
197
195
|
|
|
198
196
|
## Success Criteria
|
|
199
197
|
|
|
200
198
|
1. Roadmap is parsed and unblocked planned/backlog items are scored
|
|
201
199
|
2. Scoring uses two-tier sort: explicit priority first, then weighted score
|
|
202
200
|
3. AI reads top candidates' specs and provides recommendation with reasoning
|
|
203
|
-
4. Human confirms before
|
|
204
|
-
5.
|
|
205
|
-
6.
|
|
201
|
+
4. Human confirms before the transition is made
|
|
202
|
+
5. Selection does NOT write the `assignee` field (no assignment, no history record, no external assignee sync) — the pick stays `planned`/`backlog` and orchestrator-eligible
|
|
203
|
+
6. The `assignee` field is owned by harness-execution, which claims at execution start; RMH005 enforces `assignee ≠ null ⟺ in-progress`
|
|
206
204
|
7. Transition routes to brainstorming (no spec) or autopilot (spec exists)
|
|
207
205
|
8. When a pulse report exists, the recommendation rationale cites pulse signal for any top-3 candidate whose area is referenced in the pulse Headlines or Followups.
|
|
208
206
|
9. When `STRATEGY.md` is present and valid AND two candidates score within `0.05` on the base formula, the recommendation rationale cites strategy-alignment as the tiebreaker. The bonus never overrides a meaningful base-score difference.
|
|
@@ -211,12 +209,13 @@ Ask the human in plain text (matching the `y/n/pick another` example above). Do
|
|
|
211
209
|
|
|
212
210
|
## Rationalizations to Reject
|
|
213
211
|
|
|
214
|
-
| Rationalization | Reality
|
|
215
|
-
| ----------------------------------------------------------------------------------------------------------------------- |
|
|
216
|
-
| "The top-scored candidate is obviously correct, so I can
|
|
217
|
-
| "
|
|
218
|
-
| "
|
|
219
|
-
| "
|
|
212
|
+
| Rationalization | Reality |
|
|
213
|
+
| ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
214
|
+
| "The top-scored candidate is obviously correct, so I can transition without asking the human" | The Iron Law: never transition without the human confirming the recommendation first. |
|
|
215
|
+
| "I'll write the assignee now so the pick is recorded / the user is credited" | Selection never writes `assignee`. An assignee means _in-progress_ (set by harness-execution at execution start). Writing it at selection makes the orchestrator silently skip the item — the exact bug this skill must not reintroduce. |
|
|
216
|
+
| "Affinity data is not available so the scoring is degraded -- I should just pick the first planned item" | Proceed without affinity scoring by zeroing out the affinity weight. Position and dependents signals still produce meaningful rankings. |
|
|
217
|
+
| "The feature has no spec, but I can skip brainstorming and jump straight to planning since the summary is clear enough" | No spec routes to brainstorming, spec exists routes to autopilot. A one-line roadmap summary is not a spec. |
|
|
218
|
+
| "STRATEGY.md exists, so I should let it override the top-scored candidate when alignment is clear" | The alignment bonus is bounded (max `+0.75`) and only fires when base scores are within `0.05`. It is a tiebreaker, not a hard filter — a clearly higher-scored item still wins. |
|
|
220
219
|
|
|
221
220
|
## Examples
|
|
222
221
|
|
|
@@ -252,25 +251,23 @@ Proceed? (y/n/pick another)
|
|
|
252
251
|
|
|
253
252
|
Human confirms **y**.
|
|
254
253
|
|
|
255
|
-
**Phase 4:
|
|
254
|
+
**Phase 4: TRANSITION**
|
|
256
255
|
|
|
257
256
|
```
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
Roadmap updated: docs/roadmap.md
|
|
261
|
-
External sync: github:harness-eng/harness#43 assigned (automatic)
|
|
257
|
+
Graph Connector stays planned, Assignee: — (not assigned at selection).
|
|
258
|
+
harness-execution will claim it (status=in-progress + assignee) at execution start.
|
|
262
259
|
|
|
263
260
|
Transitioning to harness:autopilot (spec exists)...
|
|
264
261
|
```
|
|
265
262
|
|
|
266
263
|
## Gates
|
|
267
264
|
|
|
268
|
-
- **No
|
|
269
|
-
- **No
|
|
265
|
+
- **No transition without human confirmation.** The CONFIRM phase must complete with explicit approval before transitioning.
|
|
266
|
+
- **No assignment at selection.** This skill never writes the `assignee` field — that field means _who is executing_ and is claimed at execution start by harness-execution. Writing it here would make the orchestrator silently skip the item.
|
|
270
267
|
- **No scoring without a parsed roadmap.** If `docs/roadmap.md` does not exist or fails to parse, stop with an error.
|
|
271
268
|
|
|
272
269
|
## Escalation
|
|
273
270
|
|
|
274
271
|
- **When no unblocked candidates exist:** Inform the human. Suggest reviewing blocked items to see if blockers can be resolved, or adding new features via `harness-roadmap --add`.
|
|
275
272
|
- **When affinity data is unavailable:** Proceed without affinity scoring (weight falls to 0 for all candidates). Note this in the output.
|
|
276
|
-
- **When
|
|
273
|
+
- **When the human asks you to assign the item to them at selection:** Explain that the `assignee` field means _who is executing_ and is claimed at execution start by harness-execution; assigning at selection makes the orchestrator silently skip the item (enforced by RMH005). Proceed with the transition instead.
|
|
@@ -174,19 +174,16 @@ Use severity markers for critical findings: `**[CRITICAL]**` for blocking issues
|
|
|
174
174
|
|
|
175
175
|
### Verification Sign-Off
|
|
176
176
|
|
|
177
|
-
After producing the report, request acceptance:
|
|
177
|
+
After producing the report, request acceptance in plain text. Ask in plain text in your reply — do NOT route this through `emit_interaction`, `AskUserQuestion`, or any tool. `emit_interaction` records the prompt but does not display it to the human (the client collapses the call to "Called harness" and the rendered text only returns to the model); `AskUserQuestion` is Claude-Code-only and caps headers at 12 chars / 4 options. Plain text in your own message is the only channel that reliably reaches the human across every tool (Claude Code, Cursor, Codex, Gemini CLI). Present it as:
|
|
178
178
|
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
risk: "<low if PASS, high if gaps remain>"
|
|
188
|
-
}
|
|
189
|
-
})
|
|
179
|
+
```markdown
|
|
180
|
+
Verification report: <VERDICT>. Accept and proceed?
|
|
181
|
+
|
|
182
|
+
Context: <N artifacts checked, N gaps found>
|
|
183
|
+
Impact: Accepting proceeds to code review. Declining requires gap resolution.
|
|
184
|
+
Risk: <low if PASS, high if gaps remain>
|
|
185
|
+
|
|
186
|
+
Proceed? (yes/no)
|
|
190
187
|
```
|
|
191
188
|
|
|
192
189
|
### Handoff and Transition
|