haiku-method 2.3.0 → 3.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haiku",
3
- "version": "2.3.0",
3
+ "version": "3.0.0",
4
4
  "description": "H·AI·K·U methodology — universal lifecycle orchestration with hat-based workflows, completion criteria, and automatic context preservation.",
5
5
  "author": {
6
6
  "name": "GigSmart",
package/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.0.0] - 2026-04-30
9
+
10
+ ### Changed
11
+ - `migrate` now requires you to explicitly specify an intent slug or use `--all` instead of inferring the target.
12
+ - `migrate` runs in dry-run mode by default so you can preview changes before applying them with `--execute`.
13
+ - `migrate` will not run on a dirty working tree, preventing accidental data loss.
14
+
8
15
  ## [2.3.0] - 2026-04-30
9
16
 
10
17
  ### Added
package/VALIDATION.md CHANGED
@@ -231,7 +231,7 @@ These must ALWAYS be true regardless of studio, stage, or user action.
231
231
 
232
232
  **Trigger:** User `/clear`s without stop hook, or starts a new session.
233
233
 
234
- - [ ] Session start hook (`inject-context`) reads committed artifacts
234
+ - [ ] First `haiku_run_next` call returns full context (state, active stage/phase/hat/bolt)
235
235
  - [ ] Intent, stage, and unit state reconstructed from frontmatter and state.json
236
236
  - [ ] `haiku_run_next` returns the correct action based on persisted state
237
237
  - [ ] No work is lost — committed artifacts survive context resets
@@ -241,10 +241,14 @@ These must ALWAYS be true regardless of studio, stage, or user action.
241
241
 
242
242
  ## Scenario 10: Migration from AI-DLC
243
243
 
244
- **Trigger:** Repo has `.ai-dlc/` intents, user opens Claude Code session.
244
+ **Trigger:** User invokes `/haiku:migrate` (or runs `haiku migrate` directly). Migration is never automatic — see SessionStart in Scenario 13.
245
245
 
246
- - [ ] `inject-context` hook detects unmigrated `.ai-dlc/` intents
247
- - [ ] `haiku migrate` runs automatically
246
+ - [ ] Bare `haiku migrate` is rejected with a candidate list and usage hint
247
+ - [ ] `haiku migrate <slug>` defaults to dry-run; nothing is written
248
+ - [ ] `haiku migrate <slug> --apply` writes only after user approval (skill enforces dry-run-then-confirm)
249
+ - [ ] `--apply` refuses to run on a dirty git tree unless `--allow-dirty`
250
+ - [ ] `--all` refuses if positional slugs are also passed (contradictory scopes)
251
+ - [ ] Merged sub-intent slugs (e.g. `foo-dev`) are rejected with a hint at the base slug (`foo`)
248
252
  - [ ] Completed intents: migrated as historical records with checked criteria
249
253
  - [ ] Active intents: intent.md + knowledge migrated, stages reset for fresh start
250
254
  - [ ] Migrated intents include `stages:` field from studio definition
@@ -288,8 +292,7 @@ These must ALWAYS be true regardless of studio, stage, or user action.
288
292
  **Trigger:** Various Claude Code lifecycle events.
289
293
 
290
294
  ### SessionStart
291
- - [ ] `inject-context`: auto-migrates `.ai-dlc/` intents, injects full H·AI·K·U context
292
- - [ ] `ensure-deps`: no-op (Node is the only dependency)
295
+ No SessionStart hooks are registered. `inject-context` and `ensure-deps` were removed in `c0357289` — the orchestrator returns equivalent context on the first `haiku_run_next` call, and `.ai-dlc/` migration is now an explicit user action via `/haiku:migrate` (never automatic).
293
296
 
294
297
  ### PreToolUse
295
298
  - [ ] `redirect-plan-mode`: blocks EnterPlanMode, suggests `/haiku:start`