@punks/cli 2.6.0 → 3.0.0-beta.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/AGENTS.md +1 -1
- package/README.md +45 -23
- package/dist/BASELINE_CHANGELOG.md +66 -0
- package/dist/CHANGELOG.md +102 -0
- package/dist/data/scripts/harness-projection/adapters/claude.d.mts +3 -0
- package/dist/data/scripts/harness-projection/adapters/claude.mjs +124 -0
- package/dist/data/scripts/harness-projection/adapters/codex.d.mts +3 -0
- package/dist/data/scripts/harness-projection/adapters/codex.mjs +137 -0
- package/dist/data/scripts/harness-projection/adapters/cursor.d.mts +5 -0
- package/dist/data/scripts/harness-projection/adapters/cursor.mjs +106 -0
- package/dist/data/scripts/harness-projection/adapters/opencode.d.mts +5 -0
- package/dist/data/scripts/harness-projection/adapters/opencode.mjs +100 -0
- package/dist/data/scripts/harness-projection/apply.d.mts +12 -0
- package/dist/data/scripts/harness-projection/apply.mjs +96 -0
- package/dist/data/scripts/harness-projection/core.d.mts +8 -0
- package/dist/data/scripts/harness-projection/core.mjs +239 -0
- package/dist/data/scripts/harness-projection/test-fixtures/application-context-plan.json +27 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +109 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/context-plan.json +150 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/matrix.json +23 -0
- package/dist/data/scripts/harness-projection/test-fixtures/claude/traces.json +15 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +124 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/context-plan.json +150 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/matrix.json +23 -0
- package/dist/data/scripts/harness-projection/test-fixtures/codex/traces.json +15 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/compiler-input.json +93 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/context-plan.json +108 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/matrix.json +19 -0
- package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +54 -0
- package/dist/data/scripts/harness-projection/test-fixtures/mixed-context-plan.json +35 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/compiler-input.json +93 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/context-plan.json +108 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/matrix.json +19 -0
- package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +51 -0
- package/dist/data/scripts/sync-subagents.mjs +1113 -33
- package/dist/data/subagents/manifest.mjs +5 -6
- package/dist/index.js +1375 -62557
- package/dist/skills/agnostic/cli/hi-cli/SKILL.md +22 -15
- package/dist/skills/agnostic/cli/hi-cli/references/commands.md +21 -5
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +87 -55
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +12 -11
- package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +20 -2
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +3 -1
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +6 -0
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +12 -1
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +5 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +7 -0
- package/dist/skills/agnostic/planning/implement-spec/references/runtime-product-validation.md +50 -0
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +7 -5
- package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
- package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
- package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
- package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
- package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
- package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
- package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
- package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
- package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
- package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
- package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
- package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
- package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
- package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
- package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
- package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
- package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
- package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
- package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
- package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
- package/dist/skills/phases/design-phase/phases/grill.md +1 -1
- package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
- package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
- package/dist/skills/phases/review-phase/SKILL.md +3 -2
- package/package.json +1 -1
- package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
- package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
- package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
- package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
- package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
- package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
- package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
- package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
- package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
- package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
- package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
- package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
- package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
- package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
- package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
- /package/dist/skills/frameworks/effect/{effect-authoring/references/effect-atom-patterns.md → effect/references/EFFECT_ATOM.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hi-cli
|
|
3
|
-
description: Operates the Harness Intelligence CLI (`hi`, alias `hint`) and interactively follows scaffold, update, report, upgrade, and post-command handoff
|
|
3
|
+
description: Operates the Harness Intelligence CLI (`hi`, alias `hint`) and interactively follows scaffold, update, report, upgrade, operator-skill, and post-command handoff flows through to completion. Use when a repo contains `.devpunks/` output, when the user mentions `hi scaffold`, `hi update`, `hi report`, `hi upgrade`, `hi operator`, `hint`, or asks what to do after running a Harness CLI command.
|
|
4
4
|
metadata: {"Harness Intelligence":{"entrypoint":true}}
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -21,15 +21,21 @@ hi update --write
|
|
|
21
21
|
hi update --yes
|
|
22
22
|
hi report --help
|
|
23
23
|
hi upgrade --help
|
|
24
|
+
hi operator status
|
|
25
|
+
hi operator update
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
After any command,
|
|
28
|
+
After any command, classify the command result before reading artifacts or acting.
|
|
27
29
|
|
|
28
30
|
## Core Rule
|
|
29
31
|
|
|
30
|
-
`.devpunks/`
|
|
32
|
+
For scaffold init/setup, generated `.devpunks/` artifacts are an active work queue. Follow the scaffold branch through repo-specific authoring and validation.
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
For update, artifact existence is not a trigger. Route only from the current command summary and changed paths. Do not reopen standing specs, regenerate prompts or subagents, scan every skill home, or repeat setup work unless the current update changed the corresponding input.
|
|
35
|
+
|
|
36
|
+
For `hi operator`, inspect only the command result. Never read `.devpunks/` or run scaffold follow-through. See [references/post-command-flow.md](references/post-command-flow.md) for the full operator-skill completion rules.
|
|
37
|
+
|
|
38
|
+
An assigned execution worker runs its bounded command and reports the result. It does not delegate or launch another execution agent.
|
|
33
39
|
|
|
34
40
|
## Interactive Rule
|
|
35
41
|
|
|
@@ -49,7 +55,7 @@ Do not ask for trivial file reads, validation commands, or direct execution of a
|
|
|
49
55
|
|
|
50
56
|
See [references/commands.md](references/commands.md) for command intent and when to use each command.
|
|
51
57
|
|
|
52
|
-
See [references/post-command-flow.md](references/post-command-flow.md) for the
|
|
58
|
+
See [references/post-command-flow.md](references/post-command-flow.md) for the command-specific read order, update routing table, and completion gates.
|
|
53
59
|
|
|
54
60
|
The former backlog scaffold subcommand is not part of current guidance. `hi scaffold init` provides the requirements/backlog skills and initial wiki structure; `hi scaffold setup` provides repo-aware managed scaffold output.
|
|
55
61
|
|
|
@@ -89,15 +95,15 @@ When lint specs suggest Oxlint or hooks suggest Oxfmt, treat migration as a repo
|
|
|
89
95
|
|
|
90
96
|
## Update
|
|
91
97
|
|
|
92
|
-
After `hi update` or `hi update --check`,
|
|
98
|
+
After `hi update` or `hi update --check`, classify the update summary and changed paths before opening generated artifacts.
|
|
93
99
|
|
|
94
100
|
- `--check` reports managed-file drift without writing.
|
|
95
101
|
- `--write` refreshes scaffold-managed assets.
|
|
96
102
|
- `--yes` refreshes scaffold-managed assets without prompting and is the non-interactive apply flag.
|
|
97
103
|
- drift output can include changelog summaries; use them to explain why update/upgrade matters.
|
|
98
|
-
- pack
|
|
104
|
+
- auto-accepted default or detected pack additions follow their affected changed categories only; optional, removal, policy, or surface-shape drift can require a setup decision.
|
|
99
105
|
|
|
100
|
-
|
|
106
|
+
Use the update decision table and completion gate in [references/post-command-flow.md](references/post-command-flow.md).
|
|
101
107
|
|
|
102
108
|
## Report
|
|
103
109
|
|
|
@@ -124,11 +130,12 @@ Upgrade deliberately bypasses package-manager release-age gates for the CLI pack
|
|
|
124
130
|
|
|
125
131
|
Startup update checks are advisory and detached. They should not mutate installs during normal command startup; `hi upgrade` is the explicit update path.
|
|
126
132
|
|
|
127
|
-
##
|
|
133
|
+
## Operator Skill
|
|
134
|
+
|
|
135
|
+
Use `hi operator status|install|update|migrate` to manage the separately installed `hi-cli` operator skill. `hi skills rename` remains a deprecated compatibility alias for `hi operator migrate`.
|
|
136
|
+
|
|
137
|
+
This flow is separate from CLI executable upgrade and project scaffold update. Follow the operator-skill branch in [references/post-command-flow.md](references/post-command-flow.md).
|
|
138
|
+
|
|
139
|
+
## Completion
|
|
128
140
|
|
|
129
|
-
-
|
|
130
|
-
- `.devpunks/specs/**` items were implemented or listed as unresolved.
|
|
131
|
-
- required tools were checked when `.devpunks/required-tools.json` exists.
|
|
132
|
-
- final prompt files and harness mirrors match the handoff contract.
|
|
133
|
-
- subagent manifests were reconciled when specs exist.
|
|
134
|
-
- user decisions were requested for policy-level choices instead of guessed silently.
|
|
141
|
+
Use the branch-specific completion criteria in [references/post-command-flow.md](references/post-command-flow.md). Do not substitute an existence-based checklist.
|
|
@@ -26,21 +26,19 @@ After init, the agent must reconcile pre-existing skills. The command does not d
|
|
|
26
26
|
|
|
27
27
|
Use at session start when `.devpunks/` exists or to preview managed scaffold drift from `.devpunks/scaffold-manifest.json`.
|
|
28
28
|
|
|
29
|
-
Report CLI, baseline, missing, changed, or pack-drift findings. Do not write files. If remediation is accepted,
|
|
29
|
+
Report CLI, baseline, missing, changed, or pack-drift findings. Do not write files. If remediation is accepted, the parent may assign one bounded execution worker for `hi upgrade`, `hi update --write`, or `hi update --yes` under the core execution rule.
|
|
30
30
|
|
|
31
31
|
## `hi update --write`
|
|
32
32
|
|
|
33
33
|
Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.json`.
|
|
34
34
|
|
|
35
|
-
After writing,
|
|
36
|
-
|
|
37
|
-
Also run the agent-owned pre-existing skill reconciliation check. `hi update` does not detect overlaps.
|
|
35
|
+
After writing, follow only the matching update branches in [post-command-flow.md](post-command-flow.md).
|
|
38
36
|
|
|
39
37
|
## `hi update --yes`
|
|
40
38
|
|
|
41
39
|
Use in non-interactive harnesses to apply managed scaffold updates without answering the terminal confirmation prompt.
|
|
42
40
|
|
|
43
|
-
It has the same managed-file apply behavior as `--write`.
|
|
41
|
+
It has the same managed-file apply behavior and branch-sensitive follow-through as `--write`.
|
|
44
42
|
|
|
45
43
|
## `hi report`
|
|
46
44
|
|
|
@@ -74,3 +72,21 @@ The command checks the selected npm dist-tag, detects Bun, pnpm, npm, or Yarn fr
|
|
|
74
72
|
- npm uses `--min-release-age=0`.
|
|
75
73
|
- pnpm uses `npm_config_minimum_release_age=0`.
|
|
76
74
|
- Yarn uses `YARN_NPM_MINIMAL_AGE_GATE=0`.
|
|
75
|
+
|
|
76
|
+
## `hi operator status`
|
|
77
|
+
|
|
78
|
+
Use to report global and project `hi-cli` installations plus legacy `dp-cli` installations without changing them.
|
|
79
|
+
|
|
80
|
+
## `hi operator install`
|
|
81
|
+
|
|
82
|
+
Use to install `hi-cli` when absent. Report both scopes and reload or reactivate `$hi-cli` after success.
|
|
83
|
+
|
|
84
|
+
## `hi operator update`
|
|
85
|
+
|
|
86
|
+
Use to update every detected global or project `hi-cli` installation. Verify each detected copy and reload or reactivate `$hi-cli` after success.
|
|
87
|
+
|
|
88
|
+
## `hi operator migrate`
|
|
89
|
+
|
|
90
|
+
Use to install or update `hi-cli`, then remove detected legacy `dp-cli` installations. Verify every affected scope and reload or reactivate `$hi-cli` after success.
|
|
91
|
+
|
|
92
|
+
`hi skills rename` is a deprecated compatibility alias for `hi operator migrate`.
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Post-Command Flow
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 1. Classify the Result
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Capture the command, mode, summary, and paths changed by this run. Choose one branch: scaffold setup, scaffold init, update, report, upgrade, or operator skill.
|
|
6
|
+
|
|
7
|
+
Existing `.devpunks/` artifacts describe project state. Their existence does not make them current work. Read an artifact only when the active branch or a changed category below points to it.
|
|
8
|
+
|
|
9
|
+
## 2. Read the Active Branch
|
|
10
|
+
|
|
11
|
+
### Scaffold Setup
|
|
12
|
+
|
|
13
|
+
Read available artifacts in this order:
|
|
6
14
|
|
|
7
15
|
1. `.devpunks/AGENT-SYSTEM-PROMPT.md`
|
|
8
16
|
2. `.devpunks/AGENT-HANDOFF.md`
|
|
@@ -11,74 +19,98 @@ When `.devpunks/` exists, read in this order:
|
|
|
11
19
|
5. `.devpunks/settings.json`
|
|
12
20
|
6. `.devpunks/specs/**`
|
|
13
21
|
|
|
14
|
-
If
|
|
22
|
+
If an expected artifact is missing, continue and report it.
|
|
23
|
+
|
|
24
|
+
Artifact meanings:
|
|
25
|
+
|
|
26
|
+
- `AGENT-SYSTEM-PROMPT.md`: next-agent instructions
|
|
27
|
+
- `AGENT-HANDOFF.md`: scaffold summary and follow-up
|
|
28
|
+
- `scaffold-manifest.json`: managed-file and update authority
|
|
29
|
+
- `required-tools.json`: tools implied by selected skills
|
|
30
|
+
- `settings.json`: accepted CLI and baseline pins
|
|
31
|
+
- `specs/prompts/**`: instructions for final prompts, not prompt bodies
|
|
32
|
+
- `specs/lint/**`: lint selection and starter guidance
|
|
33
|
+
- `specs/subagents/**`: desired subagent manifest shape
|
|
34
|
+
|
|
35
|
+
Then:
|
|
36
|
+
|
|
37
|
+
- author the requested root, docs, and workspace guidance plus sibling `CLAUDE.md` symlink mirrors
|
|
38
|
+
- keep `.agents/AGENTS.md` as shared global prompt source and `.agents/skills/` as the main skill directory; only `.claude/skills` mirrors it
|
|
39
|
+
- reconcile the seeded wiki with the real repo boundary before durable docs are written
|
|
40
|
+
- inspect pre-existing skill homes and `.devpunks/pre-existing-skills` when present; keep the HI baseline active for exact IDs, archive replaced evidence, preserve non-overlaps through mirrors, and use `hi report` for semantic overlap
|
|
41
|
+
- reconcile `.agents/subagents/manifest.mjs` with its prompt and generated spec
|
|
42
|
+
- implement applicable lint specs; ask before replacing lint or format policy, scripts, CI, hooks, or docs
|
|
43
|
+
- ask which detected core libraries matter when source context is broad, then inspect only that set
|
|
44
|
+
|
|
45
|
+
Do not stop because generated files exist. Finish applicable repo-authored outputs and validation.
|
|
46
|
+
|
|
47
|
+
### Scaffold Init
|
|
48
|
+
|
|
49
|
+
- inspect the generated requirements skills and seeded wiki root
|
|
50
|
+
- reconcile pre-existing skills with the same exact-ID policy as setup
|
|
51
|
+
- treat the wiki root as provisional and move or refactor it to match the repo
|
|
52
|
+
- do not start requirements discovery by default
|
|
53
|
+
- run `requirements-grill` before `write-backlog` only when the user asks for requirements or backlog generation
|
|
54
|
+
- use `hi scaffold setup` only when the repo is ready for repo-aware setup
|
|
55
|
+
|
|
56
|
+
### Update
|
|
57
|
+
|
|
58
|
+
Read the command summary before any generated artifact. If it reports no diff, report success and stop.
|
|
15
59
|
|
|
16
|
-
|
|
60
|
+
For a diff, classify only paths changed or flagged by this run. If the summary is insufficient, read the matching manifest entries. Read settings only for pin changes. Read a prompt, handoff, tool list, or spec only when its own category changed.
|
|
17
61
|
|
|
18
|
-
|
|
19
|
-
- `.devpunks/AGENT-HANDOFF.md`: human-readable scaffold summary and required follow-up.
|
|
20
|
-
- `.devpunks/scaffold-manifest.json`: source of truth for managed files and update behavior.
|
|
21
|
-
- `.devpunks/required-tools.json`: tools implied by selected skills.
|
|
22
|
-
- `.devpunks/specs/prompts/**`: instructions for final prompt files, not final prompt bodies.
|
|
23
|
-
- `.devpunks/specs/lint/**`: lint asset selection and starter config guidance.
|
|
24
|
-
- `.devpunks/specs/subagents/**`: desired subagent manifest shape.
|
|
62
|
+
Apply every matching row:
|
|
25
63
|
|
|
26
|
-
|
|
64
|
+
| Changed category | Required follow-through |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| Settings or manifest pins only | Confirm accepted pins. The standard fresh drift gate below is the only follow-through. |
|
|
67
|
+
| Skill content; IDs unchanged | Inspect affected skills and active mirrors only. Preserve repo-owned edits. Do not scan every skill home or touch prompts, subagents, packs, or wiki. |
|
|
68
|
+
| Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. Inspect overlap evidence only for those IDs. |
|
|
69
|
+
| `local-edited` conflict | Inspect the flagged path and its relevant snapshot/evidence. Preserve local intent; ask only when project and baseline intent conflict. |
|
|
70
|
+
| Missing or stale path | Confirm the named recreation or deletion and its direct references. Do not audit unrelated managed files. |
|
|
71
|
+
| Prompt spec or prompt input | Reconcile only affected prompt scopes and their mirrors. |
|
|
72
|
+
| Subagent contract input | Reconcile only the generated and final subagent manifests. Do not spawn agents merely to perform reconciliation. |
|
|
73
|
+
| Lint, hook, or script input | Validate the affected config or command. Ask before changing project policy. |
|
|
74
|
+
| Required tools | Check only added, changed, or failed tools. |
|
|
75
|
+
| Source-guide content | Inspect only affected guide files. Do not run `opensrc` unless the user's current task requires that library's source. |
|
|
76
|
+
| Wiki input | Reconcile affected routes or documents against the real repo boundary, then run route- or runtime-targeted validation. |
|
|
77
|
+
| Auto-accepted default or detected pack addition | Follow only the other changed categories caused by that addition. Do not ask or rerun setup. |
|
|
78
|
+
| Optional pack addition, pack removal, policy change, surface reshape, or explicit unresolved setup decision | Ask for the required decision. Run full setup follow-through only when the accepted decision requires repo-authored final outputs. |
|
|
79
|
+
| First adoption or missing/corrupt final output | Run the applicable scaffold setup follow-through. |
|
|
27
80
|
|
|
28
|
-
|
|
81
|
+
After write modes, run targeted validation for the affected category and one fresh `hi check --json` drift gate. Do not rerun `hi update` merely because an earlier command mentioned a possible version race. Rerun once only when `hi check --json` detects new CLI or baseline drift; then run the final `hi check --json` gate.
|
|
29
82
|
|
|
30
|
-
|
|
83
|
+
For `hi update --check`, report the classified preview without writing. A clean preview is complete.
|
|
31
84
|
|
|
32
|
-
|
|
33
|
-
- Reconcile any scaffolded wiki root with the real repo layout before writing durable docs.
|
|
34
|
-
- Reconcile pre-existing skills yourself; commands do not detect overlap. Inspect `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`. If `.devpunks/pre-existing-skills` exists, inspect it as blind pre-command evidence.
|
|
35
|
-
- Exact canonical directory id/name overlap keeps the HI baseline skill active. Archive local evidence under `.devpunks/replaced-skills/<skill-id>/...`, then remove active local copies or mirrors.
|
|
36
|
-
- Preserve non-overlapping local skills and expose them through harness mirrors or symlinks. Use `hi report` when archived local knowledge should be proposed for HI baseline integration; semantic overlap belongs there.
|
|
37
|
-
- Create sibling `CLAUDE.md` symlink mirrors for those neutral prompt files.
|
|
38
|
-
- Keep `.agents/AGENTS.md` as the shared global prompt source.
|
|
39
|
-
- Keep `.agents/skills/` as the main skill directory; only `.claude/skills` mirrors it.
|
|
40
|
-
- Reconcile `.agents/subagents/manifest.mjs` with both `.agents/subagents/manifest.prompt.md` and `.devpunks/specs/subagents/manifest-spec.json`.
|
|
41
|
-
- Use lint specs to produce or update the repo's real lint config when requested.
|
|
42
|
-
- Ask before replacing existing lint/format tooling with Oxlint/Oxfmt. If approved, update scripts, CI/task pipelines, hooks, and docs together.
|
|
43
|
-
- Ask which detected core libraries to inspect when source context is broad; then use `opensrc path <package>` or `opensrc path owner/repo` for only the chosen set.
|
|
85
|
+
### Report
|
|
44
86
|
|
|
45
|
-
|
|
87
|
+
Confirm that the command returned a GitHub issue URL before saying the report was submitted. Return the URL, labels, command, skill pack, and any blocker. Do not duplicate project backlog into Harness reports unless maintainers explicitly promote it.
|
|
46
88
|
|
|
47
|
-
|
|
89
|
+
### Upgrade
|
|
48
90
|
|
|
49
|
-
|
|
50
|
-
- For write modes, confirm `cliVersion` and `baselineVersion` reflect accepted project authority after writes.
|
|
51
|
-
- Verify refreshed files still fit repo shape; handle pack drift intentionally.
|
|
52
|
-
- Apply the same pre-existing skill reconciliation policy as scaffold setup. `hi update` does not detect overlaps; the agent checks the skill homes and `.devpunks/pre-existing-skills` when present, keeps HI baseline active for exact name/id overlaps, preserves non-overlaps through mirrors, and uses `hi report` for semantic overlap or baseline integration proposals.
|
|
91
|
+
Report whether the CLI upgraded, was current, could not detect its install manager, or failed. Include the package manager and command when available. For registry or install-manager failure, give the matching manual reinstall command instead of treating the repo as broken.
|
|
53
92
|
|
|
54
|
-
|
|
93
|
+
### Operator Skill
|
|
55
94
|
|
|
56
|
-
|
|
57
|
-
- Inspect the generated skills and seeded wiki root.
|
|
58
|
-
- Reconcile pre-existing skills yourself using `.agents/skills`, `.claude/skills`, `.codex/skills`, `.cursor/skills`, and `.opencode/skills`; inspect `.devpunks/pre-existing-skills` when present; the command did not detect overlap.
|
|
59
|
-
- Treat the seeded wiki root as provisional until it matches the repo layout.
|
|
60
|
-
- Move, rename, or refactor generated init output when needed so it matches the actual repository.
|
|
61
|
-
- Run `requirements-grill` before `write-backlog` only when the user actually asks for requirements or backlog generation.
|
|
62
|
-
- Use `hi scaffold setup` only after the repo is ready for repo-aware setup.
|
|
95
|
+
Classify `hi operator status`, `install`, `update`, or `migrate` from the command result only. `hi skills rename` is a deprecated compatibility alias for `hi operator migrate` and follows this same branch.
|
|
63
96
|
|
|
64
|
-
|
|
97
|
+
Never read `.devpunks/` artifacts or inspect project files for this branch. Do not scan skill homes, run scaffold or update checks, generate prompts, or delegate again.
|
|
65
98
|
|
|
66
|
-
-
|
|
67
|
-
- Include the issue URL, labels, affected command, affected skill pack, and remaining blocker if creation failed.
|
|
68
|
-
- Do not duplicate project product backlog into Harness reports unless maintainers explicitly promote it.
|
|
99
|
+
Report `hi-cli` and legacy `dp-cli` state for both global and project scopes:
|
|
69
100
|
|
|
70
|
-
|
|
101
|
+
- `status`: report detected installations without changing them
|
|
102
|
+
- `install`: verify the resulting `hi-cli` installation
|
|
103
|
+
- `update`: verify every detected `hi-cli` copy updated successfully
|
|
104
|
+
- `migrate`: verify `hi-cli` was installed or updated in every affected scope and every detected legacy `dp-cli` copy was removed
|
|
71
105
|
|
|
72
|
-
|
|
73
|
-
- Include the package manager and command used when available.
|
|
74
|
-
- If upgrade failed because registry lookup or install-manager detection failed, give the manual reinstall command for Bun, pnpm, npm, or Yarn rather than treating the repo as broken.
|
|
106
|
+
If any action partially fails, return the exact failed Skills CLI command from the command result. After successful `install`, `update`, or `migrate`, tell the agent to reload or reactivate `$hi-cli` before relying on its instructions.
|
|
75
107
|
|
|
76
|
-
##
|
|
108
|
+
## 3. Complete the Branch
|
|
77
109
|
|
|
78
|
-
|
|
110
|
+
- scaffold setup/init: applicable generated instructions are reconciled into final repo outputs; targeted validation ran; unresolved policy choices are named
|
|
111
|
+
- update: only changed categories were handled; the required drift gate is clean, or its remaining findings are reported
|
|
112
|
+
- report: a GitHub issue URL or exact submission blocker is returned
|
|
113
|
+
- upgrade: install manager, command, and outcome are returned
|
|
114
|
+
- operator skill: global and project states are returned; requested actions are verified or the exact failed Skills CLI command is returned; reload/reactivation is requested after successful mutation
|
|
79
115
|
|
|
80
|
-
|
|
81
|
-
- what final files were authored or reconciled
|
|
82
|
-
- report issue URL or upgrade command/result, when relevant
|
|
83
|
-
- what validation ran
|
|
84
|
-
- what remains unresolved, if anything
|
|
116
|
+
Report only artifacts consumed for the active branch, final files changed, validation run, and unresolved items.
|
|
@@ -18,7 +18,7 @@ Use this skill to turn an existing repository into initial Harness wiki context
|
|
|
18
18
|
- If either lane is missing or inaccessible, ask the developer for the backlog location or access path before assuming no backlog exists.
|
|
19
19
|
4. Build and persist the Project Map before asking developer questions.
|
|
20
20
|
5. Run a targeted `requirements-grill` against the Project Map.
|
|
21
|
-
6. After grill
|
|
21
|
+
6. After `$requirements-grill` completes, call `create-spec` to reconstruct evidence-backed specs.
|
|
22
22
|
|
|
23
23
|
For the required Project Map sections, onboarding artifacts, evidence labels, and spec reconstruction rules, read [references/artifact-contract.md](references/artifact-contract.md).
|
|
24
24
|
|
|
@@ -25,6 +25,8 @@ Write and maintain:
|
|
|
25
25
|
- `<wiki-root>/content/docs/project/onboarding/onboarding-grill-status.md`
|
|
26
26
|
- `<wiki-root>/content/docs/project/onboarding/onboarding-grill-log.md`
|
|
27
27
|
|
|
28
|
+
In the onboarding status, persist the current round/frontier, stable question ids and prerequisites, unanswered items, and shared-understanding confirmation.
|
|
29
|
+
|
|
28
30
|
Create or update:
|
|
29
31
|
|
|
30
32
|
- `<wiki-root>/content/docs/project/onboarding/index.mdx`
|
|
@@ -46,8 +48,6 @@ Do not grill every low-risk current-state fact. Carry those into `create-spec` a
|
|
|
46
48
|
|
|
47
49
|
## Reconstructed Specs
|
|
48
50
|
|
|
49
|
-
After grill closure, call `create-spec`.
|
|
50
|
-
|
|
51
51
|
Group reconstructed specs:
|
|
52
52
|
|
|
53
53
|
1. by backlog epic when backlog context exists
|
|
@@ -30,15 +30,16 @@ Create a plan first. Never implement code in this skill.
|
|
|
30
30
|
1. Read repo, git, existing plan, and backlog context before asking questions.
|
|
31
31
|
2. Keep a visible planning control panel in the conversation: locked decisions, open decisions, current graph step, and next step.
|
|
32
32
|
3. Read `references/grill-ambiguity.md` and run `$grilling` as explicit ambiguity reduction.
|
|
33
|
-
4. Update a running decision ledger after every answer so the user never has to reconstruct state from memory.
|
|
34
|
-
5.
|
|
35
|
-
6.
|
|
36
|
-
7.
|
|
37
|
-
8.
|
|
38
|
-
9.
|
|
39
|
-
10. Read `references/
|
|
40
|
-
11. Read `references/
|
|
41
|
-
12. Read `references/
|
|
33
|
+
4. Update a running decision ledger after every response set, processing each answer individually so the user never has to reconstruct state from memory.
|
|
34
|
+
5. After a whole response set is processed, emit any synthesis checkpoint required by `references/grill-ambiguity.md`.
|
|
35
|
+
6. After `$grilling` completes, continue to plan synthesis; backlog sync remains step 12.
|
|
36
|
+
7. If readonly discovery has independent code paths, specs, backlog items, external docs, or hypotheses, read and use `$parallel-research` before final task synthesis.
|
|
37
|
+
8. Research with `opensrc path <package>` or `opensrc path <owner>/<repo>` plus primary-source web docs when current behavior matters.
|
|
38
|
+
9. Locate scoped `AGENTS.md` files for every planned task path, extract `Primary skills here` lists, and load the relevant skill guidance before finalizing task design.
|
|
39
|
+
10. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
|
|
40
|
+
11. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
|
|
41
|
+
12. Read `references/backlog-sync.md` and sync backlog at epic/story level, not one item per plan task.
|
|
42
|
+
13. Read `references/stop-conditions.md` and stop exactly there.
|
|
42
43
|
|
|
43
44
|
## Workflows
|
|
44
45
|
|
|
@@ -46,13 +47,13 @@ Create a plan first. Never implement code in this skill.
|
|
|
46
47
|
|
|
47
48
|
1. Derive host, owner, tracker, and scope from repo state instead of assuming them.
|
|
48
49
|
2. Ask only for missing high-impact inputs such as scope, goal, or backlog target.
|
|
49
|
-
3. Every plan-shaping question must use the exact block: `Decision`, `Recommendation`, `Question`, `Why it matters`.
|
|
50
|
+
3. Every plan-shaping question in each `$grilling` round must use the exact block: `Decision`, `Recommendation`, `Question`, `Why it matters`.
|
|
50
51
|
4. Keep `$grilling`, `$parallel-research`, `$swarm-planner`, `$tdd`, and `$codebase-design` as visible inputs to one planning run; record when `$parallel-research`, `planning-discovery`, or `plan-reviewer` is used or intentionally skipped because the work is not split-friendly or subagents are unavailable.
|
|
51
52
|
5. Scan relevant routed learning artifacts before task synthesis when prior bug knowledge, domain behavior, or project conventions could affect the plan.
|
|
52
53
|
6. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
|
|
53
54
|
7. Use each task's required skill guidance while shaping its scope, dependencies, validation, RED target, and review mode; do not merely list skills after the plan is written.
|
|
54
55
|
8. Assign each task the exact existing skills required by those scoped `Primary skills here` lists, merging all scopes for cross-directory tasks.
|
|
55
|
-
9. Normalize every task with stable ids, `depends_on`, `location`, `description`, `validation`, `status`, `log`, `files edited/created`, owning-story backlog references, `assigned_skills`, `tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields, `codebase_design_notes`, and `
|
|
56
|
+
9. Normalize every task with stable ids, `depends_on`, `location`, `description`, `validation`, `status`, `log`, `files edited/created`, owning-story backlog references, `assigned_skills`, `tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields, `codebase_design_notes`, `review_mode`, `runtime_validation`, `runtime_target`, `runtime_evidence`, and `runtime_cleanup`.
|
|
56
57
|
10. Keep `PLAN.md` self-contained: embed gathered context, relevant code paths, existing patterns, constraints, assumptions, design reasoning, tradeoffs, initial situation, issue, solution shape, findings, research, dependency graph, testing strategy, skill-routing notes, risks, validation gates, unresolved questions, and a resolved decision ledger.
|
|
57
58
|
11. Write enough conceptual reasoning that an executor can implement from `PLAN.md` alone, using supplementary research only when they choose to refresh or deepen context.
|
|
58
59
|
12. For complex work, express the plan as a swarm graph of `Tn` tasks with dependency-aware validation gates, expected outcomes, assertions, or checks that let the executor self-verify before moving on.
|
|
@@ -35,53 +35,32 @@ Before the first question, keep the current state obvious:
|
|
|
35
35
|
|
|
36
36
|
## Question-block contract
|
|
37
37
|
|
|
38
|
-
Every plan-shaping question must contain exactly these headings, in this order:
|
|
38
|
+
Every plan-shaping question in a `$grilling` round must contain exactly these headings, in this order:
|
|
39
39
|
|
|
40
40
|
- `Decision`
|
|
41
41
|
- `Recommendation`
|
|
42
42
|
- `Question`
|
|
43
43
|
- `Why it matters`
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- never replace the `Question` line with only a recommendation
|
|
48
|
-
- never emit an empty or implied question
|
|
49
|
-
- if the block is malformed, regenerate it before continuing
|
|
50
|
-
- keep the recommendation concise and opinionated
|
|
45
|
+
If the block is malformed, regenerate it before continuing.
|
|
51
46
|
|
|
52
47
|
## Grill behavior
|
|
53
48
|
|
|
54
|
-
Use `$grilling` behavior:
|
|
49
|
+
Use `$grilling` as the sole question-scheduling and traversal behavior. This wrapper adds only plan-specific handling:
|
|
55
50
|
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
- keep grilling until every plan-shaping branch is resolved enough to plan safely
|
|
60
|
-
- before recording an unresolved question in the plan, ask the user whether to resolve it now or defer it
|
|
61
|
-
- when the user defers a branch, record the assumption or unresolved question explicitly in the plan with its planning impact
|
|
51
|
+
- apply the question-block contract to each question
|
|
52
|
+
- record a question as unresolved in the plan only when `$grilling` leaves it deferred
|
|
53
|
+
- record its assumption or planning impact explicitly
|
|
62
54
|
|
|
63
55
|
## Decision ledger
|
|
64
56
|
|
|
65
|
-
After
|
|
66
|
-
|
|
67
|
-
- decisions locked
|
|
68
|
-
- assumptions made
|
|
69
|
-
- still-open decisions
|
|
70
|
-
|
|
71
|
-
This ledger must stay visible both in the conversation and in the saved plan artifact.
|
|
57
|
+
After each response set, process every answer individually and update the planning decision ledger from the current `$grilling` state. Keep this ledger visible both in the conversation and in the saved plan artifact.
|
|
72
58
|
|
|
73
59
|
## Synthesis checkpoints
|
|
74
60
|
|
|
75
|
-
|
|
61
|
+
After a whole response set is processed and the decision ledger is updated, emit a checkpoint when either condition is met:
|
|
76
62
|
|
|
77
63
|
- five plan-shaping decisions have been resolved since the last checkpoint
|
|
78
|
-
- the planning exchange
|
|
79
|
-
|
|
80
|
-
A checkpoint must summarize:
|
|
81
|
-
|
|
82
|
-
- current situation
|
|
83
|
-
- decisions locked so far
|
|
84
|
-
- open decisions still blocking the plan
|
|
85
|
-
- whether more questions are actually needed
|
|
64
|
+
- the planning exchange is long enough that the user could lose orientation
|
|
86
65
|
|
|
87
|
-
|
|
66
|
+
Summarize the current situation, locked decisions, open planning blockers, and whether more ambiguity reduction is needed. This checkpoint reports plan-wrapper state only; `$grilling` remains the sole source of frontier scheduling and traversal.
|
|
@@ -22,7 +22,7 @@ Include:
|
|
|
22
22
|
- validation gates per `Tn` task and dependency wave
|
|
23
23
|
- unresolved questions
|
|
24
24
|
|
|
25
|
-
`unresolved questions` is not a hiding place for skipped planning.
|
|
25
|
+
`unresolved questions` is not a hiding place for skipped planning. Include only `$grilling`-deferred, externally blocked, or non-blocking questions, and state why each remains open.
|
|
26
26
|
|
|
27
27
|
## Task contract
|
|
28
28
|
|
|
@@ -50,6 +50,10 @@ Every task must include:
|
|
|
50
50
|
- `green_evidence`
|
|
51
51
|
- `codebase_design_notes`
|
|
52
52
|
- `review_mode`
|
|
53
|
+
- `runtime_validation`
|
|
54
|
+
- `runtime_target`
|
|
55
|
+
- `runtime_evidence`
|
|
56
|
+
- `runtime_cleanup`
|
|
53
57
|
|
|
54
58
|
`backlog_item_id` and `backlog_item_url` reference the owning product-facing story, not a task-owned backlog record.
|
|
55
59
|
|
|
@@ -67,6 +71,16 @@ For behavior-changing code tasks, `tdd_status` must be `required` and the task m
|
|
|
67
71
|
|
|
68
72
|
`codebase_design_notes` must name the relevant module interface, seam, adapter, or test surface when the task changes code structure. Use `not_applicable` only when the task has no codebase-design consequence.
|
|
69
73
|
|
|
74
|
+
`runtime_validation` must be `required` when acceptance crosses a process or infrastructure boundary that automated checks or mocks cannot faithfully prove, including workers, queues, persistence, providers, tracing, deployment wiring, or similar runtime integration. Otherwise use `not_required`.
|
|
75
|
+
|
|
76
|
+
When runtime validation is required:
|
|
77
|
+
|
|
78
|
+
- `runtime_target` names the supported running product surface.
|
|
79
|
+
- `runtime_evidence` names the externally visible result and durable side effect or diagnostic proof required.
|
|
80
|
+
- `runtime_cleanup` defines the provenance identifiers and owned-resource cleanup expectation.
|
|
81
|
+
|
|
82
|
+
Use `not_applicable` for the other runtime fields when `runtime_validation: not_required`. Runtime validation is orthogonal to `review_mode`; a `cli`, `browser`, or `mixed` task may still require it. Execution mechanics are disclosed in [../../implement-spec/references/runtime-product-validation.md](../../implement-spec/references/runtime-product-validation.md).
|
|
83
|
+
|
|
70
84
|
```md
|
|
71
85
|
### T3: Example task
|
|
72
86
|
|
|
@@ -80,7 +94,7 @@ For behavior-changing code tasks, `tdd_status` must be `required` and the task m
|
|
|
80
94
|
- **backlog_item_id**: CP-128
|
|
81
95
|
- **backlog_item_url**: https://linear.app/workspace/issue/CP-128/example-story
|
|
82
96
|
- **relation_mode**: native | body-links
|
|
83
|
-
- **assigned_skills**: [`effect
|
|
97
|
+
- **assigned_skills**: [`effect`, `tdd`]
|
|
84
98
|
- **tdd_status**: required
|
|
85
99
|
- **tdd_target**: First failing public behavior to implement.
|
|
86
100
|
- **red_command**: Exact command expected to fail before implementation.
|
|
@@ -91,4 +105,8 @@ For behavior-changing code tasks, `tdd_status` must be `required` and the task m
|
|
|
91
105
|
- **green_evidence**:
|
|
92
106
|
- **codebase_design_notes**: Interface/seam/adapter/test-surface notes, or not_applicable.
|
|
93
107
|
- **review_mode**: cli | browser | mixed
|
|
108
|
+
- **runtime_validation**: required | not_required
|
|
109
|
+
- **runtime_target**: Supported local API and background worker.
|
|
110
|
+
- **runtime_evidence**: Public response plus correlated persisted state and worker completion.
|
|
111
|
+
- **runtime_cleanup**: Tag fixtures with a unique run id; remove only resources carrying that id.
|
|
94
112
|
```
|
|
@@ -11,7 +11,6 @@ description: Create a SPEC.md file for a new feature, product, or system using t
|
|
|
11
11
|
- **Entrypoint type:** public entrypoint
|
|
12
12
|
- **Upstream:** new idea, feature request, epic/capability issue, or problem statement
|
|
13
13
|
- **Delegates to:** `planning-discovery` for bounded readonly orientation when subagents are available; `$parallel-research` for split-friendly readonly discovery; `$requirements-grill` when discovery leaves meaningful spec-affecting unknowns; `$write-backlog` when the spec objective or grill outcomes change epic/story scope; `spec-reviewer` for a final readonly quality pass when subagents are available
|
|
14
|
-
- **Downstream:** reviewed `SPEC.md`, then usually `create-plan` or `implement-spec`
|
|
15
14
|
- **Entry conditions:** a planning surface can be resolved from routed wiki docs, legacy wiki specs, existing docs, backlog context, or the user's request
|
|
16
15
|
- **Stop conditions:** `SPEC.md` and any existing planning-surface indexes/logs are updated, then wait for user review
|
|
17
16
|
|
|
@@ -29,14 +28,14 @@ Resolve the output root from the repo before writing. Prefer `apps/wiki/content/
|
|
|
29
28
|
4. If backlog context exists, read the parent epic and every child story before asking questions.
|
|
30
29
|
5. If the user did not provide a concrete request, ask for a rough description first.
|
|
31
30
|
6. Read `references/questioning.md` and ask only the lightweight clarifying questions needed to identify whether a grill phase is required.
|
|
32
|
-
7. If draft `Open Questions` would affect spec trust, read `references/grill-phase.md` and run a bounded `$requirements-grill` phase
|
|
31
|
+
7. If draft `Open Questions` would affect spec trust, read `references/grill-phase.md` and run a bounded `$requirements-grill` phase.
|
|
33
32
|
8. If the requested objective, discovery, or grill changes accepted scope, child stories, deferred scope, story wording, or story order, read `references/backlog-sync.md` and run `$write-backlog` to sync the backlog automatically before final drafting.
|
|
34
33
|
9. Read `references/folder-naming.md` to resolve the domain and spec folder path.
|
|
35
34
|
10. Read `assets/SPEC-TEMPLATE.md` and write the spec.
|
|
36
35
|
11. Read `references/spec-quality-bar.md` before saving.
|
|
37
36
|
12. If subagents are available, use `spec-reviewer` for a readonly pass over the draft before user review.
|
|
38
37
|
13. Read `references/wiki-bookkeeping.md` to update the indexes/logs that exist for the resolved planning surface.
|
|
39
|
-
14.
|
|
38
|
+
14. Present the completed spec for user review, then stop.
|
|
40
39
|
|
|
41
40
|
## Workflow
|
|
42
41
|
|
|
@@ -53,7 +52,7 @@ Resolve the output root from the repo before writing. Prefer `apps/wiki/content/
|
|
|
53
52
|
9. Use the template structure exactly, then remove all template scaffolding.
|
|
54
53
|
10. Use `spec-reviewer` to catch invented requirements, missing constraints, vague acceptance criteria, and contradictions before yielding when subagents are available.
|
|
55
54
|
11. Update planning-surface bookkeeping in the same run.
|
|
56
|
-
12.
|
|
55
|
+
12. Present the completed spec for user review, then stop.
|
|
57
56
|
|
|
58
57
|
### Dependency readiness and stack intent
|
|
59
58
|
|
|
@@ -107,5 +106,4 @@ branches unless the user explicitly requests branch setup during the spec turn.
|
|
|
107
106
|
- Domain and folder naming rules: see [references/folder-naming.md](references/folder-naming.md)
|
|
108
107
|
- Acceptance-criteria and quality bar: see [references/spec-quality-bar.md](references/spec-quality-bar.md)
|
|
109
108
|
- Planning surface index/log updates: see [references/wiki-bookkeeping.md](references/wiki-bookkeeping.md)
|
|
110
|
-
- Review closeout and next-step routing: see [references/handoff.md](references/handoff.md)
|
|
111
109
|
- Canonical backlog model: see [../write-backlog/assets/concepts/backlog-model.md](../write-backlog/assets/concepts/backlog-model.md)
|
|
@@ -25,8 +25,8 @@ Follow:
|
|
|
25
25
|
|
|
26
26
|
If grill artifacts exist, read:
|
|
27
27
|
|
|
28
|
-
1.
|
|
29
|
-
2.
|
|
28
|
+
1. `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
29
|
+
2. `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
30
30
|
|
|
31
31
|
## Rules
|
|
32
32
|
|
|
@@ -21,18 +21,14 @@ Follow:
|
|
|
21
21
|
|
|
22
22
|
## Rules
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
- Include a recommended answer and why it is preferred.
|
|
26
|
-
- Inspect repo/docs/backlog first when the answer can be found locally.
|
|
27
|
-
- Force precise choices when multiple interpretations exist.
|
|
28
|
-
- Close, park, or explicitly defer each branch.
|
|
24
|
+
- Follow `$grilling` through `$requirements-grill`; do not define a local interview cadence.
|
|
29
25
|
|
|
30
26
|
## Artifacts
|
|
31
27
|
|
|
32
28
|
For serious sessions, create or reuse:
|
|
33
29
|
|
|
34
|
-
-
|
|
35
|
-
-
|
|
30
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
31
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
36
32
|
|
|
37
33
|
Tiny clarification-only runs do not need durable grill artifacts.
|
|
38
34
|
|
|
@@ -43,5 +39,4 @@ Tiny clarification-only runs do not need durable grill artifacts.
|
|
|
43
39
|
- explicitly deferred branches become `Open Questions`
|
|
44
40
|
- external-validation branches become `Open Questions` with owner/status
|
|
45
41
|
- accepted scope changes must flow through `backlog-sync.md` before final spec drafting
|
|
46
|
-
|
|
47
|
-
Do not write the spec until each discovered branch is closed, parked, or explicitly deferred.
|
|
42
|
+
- after `$requirements-grill` completes, proceed to backlog sync or spec drafting
|
|
@@ -40,6 +40,7 @@ Avoid:
|
|
|
40
40
|
|
|
41
41
|
## Self-review before saving
|
|
42
42
|
|
|
43
|
+
- ensure frontmatter has a non-empty string `title`, especially for specs saved directly in routed Fumadocs trees
|
|
43
44
|
- remove all template scaffolding
|
|
44
45
|
- remove empty or irrelevant sections
|
|
45
46
|
- ensure the document reads cleanly with no ghost instructions
|
|
@@ -56,7 +56,8 @@ That means `implement-spec` itself owns all of the following in parallel mode:
|
|
|
56
56
|
9. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
|
|
57
57
|
10. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
|
|
58
58
|
11. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
|
|
59
|
-
12.
|
|
59
|
+
12. For tasks with `runtime_validation: required`, follow [references/runtime-product-validation.md](references/runtime-product-validation.md) and do not mark them complete without conclusive runtime evidence; an exact blocker keeps the task blocked.
|
|
60
|
+
13. Finish with the shared acceptance audit, manual review checklist, and spec finalization contract.
|
|
60
61
|
|
|
61
62
|
## Stack-aware branch gate
|
|
62
63
|
|
|
@@ -97,6 +98,7 @@ If the user already chose a mode, honor it. If not, choose `sequential` and stat
|
|
|
97
98
|
|
|
98
99
|
- Shared lifecycle, notes contract, tech-debt rules, acceptance audit, finalization: see [references/lifecycle.md](references/lifecycle.md)
|
|
99
100
|
- UI before/after screenshot evidence and PR handoff links: see [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md)
|
|
101
|
+
- Supported-runtime proof and cleanup contract: see [references/runtime-product-validation.md](references/runtime-product-validation.md)
|
|
100
102
|
- Sequential execution specifics: see [references/sequential.md](references/sequential.md)
|
|
101
103
|
- Parallel execution specifics: see [references/parallel.md](references/parallel.md)
|
|
102
104
|
- Parallel plan parsing and wave construction: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
|