@haposoft/cafekit 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haposoft/cafekit",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "Claude Code-first spec-driven workflow for AI coding assistants. Bundles CafeKit hapo: skills, runtime hooks, agents, and installer scaffolding.",
|
|
5
5
|
"author": "Haposoft <nghialt@haposoft.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,6 +41,8 @@ Init → Requirements → Design → Tasks
|
|
|
41
41
|
### Auto-Approval Behavior
|
|
42
42
|
- When running the full pipeline end-to-end, follow the auto-approval rules defined in `SKILL.md`.
|
|
43
43
|
- When running a single phase, stop and report status after completion.
|
|
44
|
+
- Normal `/hapo:specs <feature-description>` requests are full pipeline requests.
|
|
45
|
+
- If a pause is required after user review, tell the user to continue with `/hapo:specs resume <feature>` or `/hapo:specs <feature>`.
|
|
44
46
|
|
|
45
47
|
## Scope Lock Protocol (MANDATORY)
|
|
46
48
|
|
|
@@ -102,8 +102,10 @@ Provide output in the language specified in `spec.json` with the following struc
|
|
|
102
102
|
1. **Generated Feature Name**: `feature-name` format with 1-2 sentence rationale
|
|
103
103
|
2. **Project Summary**: Brief summary (1 sentence)
|
|
104
104
|
3. **Created Files**: Bullet list with full paths
|
|
105
|
-
4. **Next Step**: Command block showing `/
|
|
106
|
-
5. **Notes**: Explain
|
|
105
|
+
4. **Next Step**: Command block showing `/hapo:specs resume <feature-name>`
|
|
106
|
+
5. **Notes**: Explain this legacy init command only initialized files. Recommend using `/hapo:specs <feature-description>` for the normal end-to-end CafeKit flow.
|
|
107
|
+
|
|
108
|
+
**Command integrity:** CafeKit continuation uses `/hapo:specs resume <feature-name>`.
|
|
107
109
|
|
|
108
110
|
**Format Requirements**:
|
|
109
111
|
- Use Markdown headings (##, ###)
|
|
@@ -34,6 +34,7 @@ Analyze → Dependency Scan → Complexity Assessment → Init → Evidence Gate
|
|
|
34
34
|
- Each phase (Init → Requirements → Design → Tasks) must complete before the next begins
|
|
35
35
|
- No skipping — don't write design without requirements
|
|
36
36
|
- Exception: simple tasks may merge requirements + design into one step
|
|
37
|
+
- A normal `/hapo:specs <feature-description>` run is an end-to-end spec creation workflow. Do not stop after Init unless the user explicitly asks for init-only behavior.
|
|
37
38
|
|
|
38
39
|
### Scope Rules
|
|
39
40
|
- Respect `scope_lock` absolutely once user has confirmed
|
|
@@ -91,6 +92,8 @@ System auto-analyzes the description:
|
|
|
91
92
|
- If task is simple (small bugfix, config change) → suggest "A spec may not be needed for this. Continue anyway?"
|
|
92
93
|
- If task is complex (multi-module, security/migration related) → auto-activate deep research, ask user 3 scope questions
|
|
93
94
|
- For non-trivial specs, execute the Step 5 Evidence Gate before writing final requirements. Do not design from memory when codebase or current external evidence can answer the question.
|
|
95
|
+
- After user confirms scope, continue through Init → Evidence/Requirements → Design → Tasks → Finalization in the same workflow unless the user explicitly asks for "init only" or "pause after init".
|
|
96
|
+
- If the workflow must pause for manual approval, the continuation command is `/hapo:specs resume <feature>` or `/hapo:specs <feature>`.
|
|
94
97
|
|
|
95
98
|
### When called WITH `--validate` argument
|
|
96
99
|
|
|
@@ -194,7 +197,7 @@ Load: `references/scope-inquiry.md`
|
|
|
194
197
|
- `in_scope`: confirmed scope items
|
|
195
198
|
- `out_of_scope`: excluded items
|
|
196
199
|
- `expansion_policy`: `requires-user-approval`
|
|
197
|
-
-
|
|
200
|
+
- Step 4 itself only initializes files. In a normal `/hapo:specs <feature-description>` run, immediately continue to Step 5 after Init. Stop here only when the user explicitly requested init-only behavior.
|
|
198
201
|
|
|
199
202
|
### Step 5: Evidence Gate, Requirements & Research
|
|
200
203
|
- Read `spec.json` — stop if init hasn't completed
|
|
@@ -43,7 +43,7 @@ These rules override any self-reasoning or optimization the system may attempt:
|
|
|
43
43
|
5. **No false completion.** You MUST NOT set `validation.status = "completed"` or `ready_for_implementation = true` until a reconciliation audit proves the accepted findings and validation decisions are reflected in the physical spec artifacts.
|
|
44
44
|
6. **Provider drift is a real defect.** If the scope changed away from Claude/Anthropic, stale strings like `Claude API`, `Haiku`, or `haiku_reachable` in `requirements.md`, `design.md`, or `tasks/*.md` are validation failures. `research.md` may mention them only as historical comparison.
|
|
45
45
|
7. **Implementation-facing propagation is mandatory.** A decision that affects implementation is NOT considered applied if it only appears in `Risk Assessment`, `validate-log.md`, or `red-team-report.md`. It must update at least one of: `requirements.md`, `Canonical Contracts & Invariants`, `Objective`, `Constraints`, `Implementation Steps`, `Completion Criteria`, or `Task Test Plan & Verification Evidence`.
|
|
46
|
-
8. **CafeKit command dialect only.** Validation output MUST use `/hapo:develop <feature>` as the implementation handoff.
|
|
46
|
+
8. **CafeKit command dialect only.** Validation output MUST use `/hapo:develop <feature>` as the implementation handoff.
|
|
47
47
|
9. **CafeKit task filename convention only.** Task files MUST use `tasks/task-R{N}-{SEQ}-<slug>.md` with two-digit `SEQ` (for example `tasks/task-R0-01-project-scaffolding.md`). Files like `tasks/R0-1-project-scaffolding.md` are legacy/foreign format; rename them and update `spec.json.task_files`, `spec.json.task_registry`, and dependency references before passing validation.
|
|
48
48
|
|
|
49
49
|
---
|
|
@@ -231,7 +231,6 @@ Before declaring validation complete:
|
|
|
231
231
|
- stale provider strings remain after a provider change
|
|
232
232
|
- delete-data/privacy artifacts mix multiple canonical policies
|
|
233
233
|
- any task path fails the CafeKit `tasks/task-R{N}-{SEQ}-<slug>.md` naming convention
|
|
234
|
-
- any output or report suggests `/sdd:execute-spec`, `/sdd:*`, `/work`, `/code`, or any non-CafeKit implementation command
|
|
235
234
|
- `spec.json.updated_at`, `timestamps.review_done`, or `timestamps.validation_done` do not reflect the final reviewed state
|
|
236
235
|
4. Only after the audit passes may you:
|
|
237
236
|
- set `spec.json.validation.status = "completed"`
|