Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
86d3d79
elaborate(haiku-rebrand): initialize discovery log
jwaldrip Apr 2, 2026
d71fd1d
elaborate(haiku-rebrand): define intent
jwaldrip Apr 2, 2026
d093626
elaborate(haiku-rebrand): draft unit-01-mechanical-rebrand
jwaldrip Apr 2, 2026
fed94da
elaborate(haiku-rebrand): draft unit-02-studio-stage-architecture
jwaldrip Apr 2, 2026
9604833
elaborate(haiku-rebrand): draft unit-03 and unit-04
jwaldrip Apr 2, 2026
9fc02d9
elaborate(haiku-rebrand): add architecture spec and visualization as …
jwaldrip Apr 2, 2026
54d4842
elaborate(haiku-rebrand): expand discovery with rename map and artifa…
jwaldrip Apr 2, 2026
cac6f99
elaborate(haiku-rebrand): expand all units with detailed specifications
jwaldrip Apr 2, 2026
5a78bb7
elaborate(haiku-rebrand): re-decompose into 12 units with full specif…
jwaldrip Apr 2, 2026
1ccd06e
elaborate(haiku-rebrand): add knowledge architecture — guides in stag…
jwaldrip Apr 2, 2026
ac32d7b
elaborate(haiku-rebrand): replace knowledge with input/output archite…
jwaldrip Apr 2, 2026
36152ab
elaborate(haiku-rebrand): qualified inputs, plan-phase-only loading, …
jwaldrip Apr 2, 2026
2c0b996
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
bc63827
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
c2f9f01
feat(haiku-rebrand): support multi-value review gates for autopilot c…
github-actions[bot] Apr 2, 2026
59bbbc9
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
b0ff819
fix(haiku-rebrand): correct default studio in unit-06 success criteri…
github-actions[bot] Apr 2, 2026
457aaf1
fix(haiku-rebrand): fix unit paths (stage-level), flat paths, and sta…
github-actions[bot] Apr 2, 2026
feef35f
feat(haiku-rebrand): add unit-13 legacy AI-DLC intent migration spec
github-actions[bot] Apr 2, 2026
9d22175
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
aa5b03d
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
0b6df6c
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
b7a98f7
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
8bd58c3
fix(haiku-rebrand): resolve all spec inconsistencies from PR review p…
github-actions[bot] Apr 2, 2026
11a95f3
status: initialize iteration state for haiku-rebrand
jwaldrip Apr 3, 2026
a2ab3a4
status: mark unit-01-lib-hooks-rename as in_progress, hat: planner
jwaldrip Apr 3, 2026
4ce9452
status: advance hat for unit-01-lib-hooks-rename → builder
jwaldrip Apr 3, 2026
f1e15f6
refactor(haiku-rebrand): rename all identifiers in plugin/lib/*.sh an…
jwaldrip Apr 3, 2026
f2ae1eb
status: advance hat for unit-01-lib-hooks-rename → reviewer
jwaldrip Apr 3, 2026
9dcb961
status: mark unit-01-lib-hooks-rename as completed
jwaldrip Apr 3, 2026
7c6c145
Merge unit-01-lib-hooks-rename into intent branch
jwaldrip Apr 3, 2026
1c255ce
status: mark wave 1 units (02, 03, 04) as in_progress, hat: planner
jwaldrip Apr 3, 2026
99bf932
status: advance wave 1 units (02, 03, 04) → builder
jwaldrip Apr 3, 2026
481e161
refactor(haiku-rebrand): update schemas, types, and add settings migr…
jwaldrip Apr 3, 2026
8656cef
refactor(haiku-rebrand): rename all ai-dlc references in skills, meta…
jwaldrip Apr 3, 2026
521217a
feat(haiku-rebrand): create studio infrastructure layer
jwaldrip Apr 3, 2026
90462a8
status: advance wave 1 units (02, 03, 04) → reviewer
jwaldrip Apr 3, 2026
4ff9cae
status: unit-02 rejected by reviewer, back to builder (retry 1)
jwaldrip Apr 3, 2026
956603a
fix(haiku-rebrand): rename ai-dlc references in subskill SKILL.md files
jwaldrip Apr 3, 2026
26f9e9a
status: unit-03 rejected by reviewer, back to builder (retry 1)
jwaldrip Apr 3, 2026
4183e2b
status: unit-02 back to reviewer after fix
jwaldrip Apr 3, 2026
1680f44
fix(haiku-rebrand): update remaining ai-dlc references in parser.ts
jwaldrip Apr 3, 2026
abd7d54
status: unit-03 back to reviewer after fix
jwaldrip Apr 3, 2026
77d5658
status: mark unit-04-studio-infrastructure as completed
jwaldrip Apr 3, 2026
127deae
Merge unit-04-studio-infrastructure into intent branch
jwaldrip Apr 3, 2026
53f8259
status: mark unit-03-schemas-types-settings as completed
jwaldrip Apr 3, 2026
0596271
Merge unit-03-schemas-types-settings into intent branch
jwaldrip Apr 3, 2026
4e8c2bf
status: mark unit-02-skills-metadata-rename as completed
jwaldrip Apr 3, 2026
69e02c6
Merge unit-02-skills-metadata-rename into intent branch
jwaldrip Apr 3, 2026
b9eff37
status: mark wave 2 units (05, 09) as in_progress, hat: planner
jwaldrip Apr 3, 2026
36d576a
status: advance wave 2 units (05, 09) → builder
jwaldrip Apr 3, 2026
1e2fba1
feat(haiku-rebrand): add deployment infrastructure for haikumethod.ai
jwaldrip Apr 3, 2026
0ab24b1
feat(haiku-rebrand): create full stage definitions for ideation and s…
jwaldrip Apr 3, 2026
e0f85f2
status: advance wave 2 units (05, 09) → reviewer
jwaldrip Apr 3, 2026
0277be0
status: mark unit-09-deploy-config as completed
jwaldrip Apr 3, 2026
66100fb
Merge unit-09-deploy-config into intent branch
jwaldrip Apr 3, 2026
bd6e32f
status: mark unit-05-stage-definitions as completed
jwaldrip Apr 3, 2026
e271eb9
Merge unit-05-stage-definitions into intent branch
jwaldrip Apr 3, 2026
4ba867f
status: mark wave 3 units (06, 10) as in_progress, hat: planner
jwaldrip Apr 3, 2026
7d7cf7c
status: advance wave 3 units (06, 10) → builder
jwaldrip Apr 3, 2026
d7cf7c4
feat(haiku-rebrand): create unified stage orchestrator
jwaldrip Apr 3, 2026
9d9b8d5
feat(haiku-rebrand): rewrite website for H·AI·K·U business audience
jwaldrip Apr 3, 2026
4b466a7
status: advance wave 3 units (06, 10) → reviewer
jwaldrip Apr 3, 2026
7ea8e5e
status: mark unit-06-stage-orchestrator as completed
jwaldrip Apr 3, 2026
f548a55
Merge unit-06-stage-orchestrator into intent branch
jwaldrip Apr 3, 2026
ad7c37b
status: mark unit-10-website-homepage-methodology as completed
jwaldrip Apr 3, 2026
6520356
Merge unit-10-website-homepage-methodology into intent branch
jwaldrip Apr 3, 2026
641bc47
status: mark wave 4 units (07, 08, 11, 13) as in_progress, hat: planner
jwaldrip Apr 3, 2026
91e9a84
status: advance wave 4 units (07, 08, 11, 13) → builder
jwaldrip Apr 3, 2026
ce0196a
feat(haiku-rebrand): add persistence abstraction with git and filesys…
jwaldrip Apr 3, 2026
3ab65e2
feat(haiku-rebrand): add legacy intent migration system
jwaldrip Apr 3, 2026
0cdae87
refactor(haiku-rebrand): dissolve hats and workflows into stage-based…
jwaldrip Apr 3, 2026
90cba28
feat(haiku-rebrand): rewrite developer docs for H·AI·K·U
jwaldrip Apr 3, 2026
f4b6df6
status: advance wave 4 units (07, 08, 11, 13) → reviewer
jwaldrip Apr 3, 2026
2488ac5
status: mark unit-13-legacy-intent-migration as completed
jwaldrip Apr 3, 2026
a8dec94
Merge unit-13-legacy-intent-migration into intent branch
jwaldrip Apr 3, 2026
d3a3231
status: mark unit-07-dissolve-hats-workflows as completed
jwaldrip Apr 3, 2026
fec59c1
Merge unit-07-dissolve-hats-workflows into intent branch
jwaldrip Apr 3, 2026
ff6864a
status: mark unit-08-persistence-abstraction as completed
jwaldrip Apr 3, 2026
ed11987
Merge unit-08-persistence-abstraction into intent branch
jwaldrip Apr 3, 2026
c48a140
status: mark unit-11-website-developer-docs as completed
jwaldrip Apr 3, 2026
8c8da76
Merge unit-11-website-developer-docs into intent branch
jwaldrip Apr 3, 2026
7648839
status: mark unit-12 as in_progress, hat: planner
jwaldrip Apr 3, 2026
52d0a68
status: advance unit-12 → builder
jwaldrip Apr 3, 2026
7a11bed
docs(haiku-rebrand): sync CLAUDE.md, paper, and terminology for H·AI·K·U
jwaldrip Apr 3, 2026
273f1b3
status: advance unit-12 → reviewer
jwaldrip Apr 3, 2026
35a8c44
status: unit-12 rejected, back to builder (retry 1)
jwaldrip Apr 3, 2026
1939bcd
fix(haiku-rebrand): update stale advance/SKILL.md references in CLAUD…
jwaldrip Apr 3, 2026
de163ef
status: unit-12 back to reviewer after fix
jwaldrip Apr 3, 2026
c7dec60
status: mark unit-12-claude-md-paper-sync as completed
jwaldrip Apr 3, 2026
6fb74b0
Merge unit-12-claude-md-paper-sync into intent branch
jwaldrip Apr 3, 2026
07e2aec
status: mark intent haiku-rebrand as completed
jwaldrip Apr 3, 2026
27956ad
Merge remote-tracking branch 'origin/main' into ai-dlc/haiku-rebrand/…
jwaldrip Apr 3, 2026
c668a5a
fix(haiku-rebrand): address PR review pass 9 findings
jwaldrip Apr 3, 2026
1b6236d
fix(haiku-rebrand): address PR review implementation findings
github-actions[bot] Apr 3, 2026
c08c7a2
fix(haiku-rebrand): address implementation review findings
jwaldrip Apr 3, 2026
cfd5e8d
feat(haiku-rebrand): website content overhaul
jwaldrip Apr 3, 2026
0ebad86
fix(haiku-rebrand): address implementation review findings (pass 10)
github-actions[bot] Apr 3, 2026
7a16baa
fix(haiku-rebrand): thorough AI-DLC → H·AI·K·U sweep across all websi…
jwaldrip Apr 3, 2026
739f6c0
fix(haiku-rebrand): fix remaining flat .haiku/{slug}/ paths to .haiku…
jwaldrip Apr 3, 2026
70b788a
fix(haiku-rebrand): fix remaining flat intent paths in lib files
github-actions[bot] Apr 3, 2026
5933027
fix(haiku-rebrand): fix remaining AI-DLC branding and stale flat path…
github-actions[bot] Apr 3, 2026
421c6c6
fix(haiku-rebrand): fix stale flat path comments in design-blueprint.sh
github-actions[bot] Apr 3, 2026
0407eb8
fix(haiku-rebrand): fix flat unit-*.md paths in dag.sh and subagent-c…
github-actions[bot] Apr 3, 2026
f30987b
fix(haiku-rebrand): update domain constants to haikumethod.ai and fix…
jwaldrip Apr 3, 2026
16991ef
fix(haiku-rebrand): fix remaining AI-DLC branding in website constant…
github-actions[bot] Apr 3, 2026
01ac055
fix(haiku-rebrand): fix flat haiku paths and ai-dlc branch refs in sk…
github-actions[bot] Apr 3, 2026
1b3d1e5
fix(haiku-rebrand): fix remaining flat haiku path references
github-actions[bot] Apr 3, 2026
f460844
fix(haiku-rebrand): fix stale .haiku/ example paths in wireframes and…
github-actions[bot] Apr 3, 2026
11dfcec
Merge branch 'ai-dlc/haiku-rebrand/main' of github.com:TheBushidoColl…
jwaldrip Apr 3, 2026
d0c41e6
fix(haiku-rebrand): fix branch names, labels, schemas, and remaining …
jwaldrip Apr 3, 2026
385b248
fix(website): add 6th failure mode card + center deep dive icons
jwaldrip Apr 3, 2026
e6e519b
feat(website): add elaboration section + visual continuous/discrete +…
jwaldrip Apr 3, 2026
56de392
feat(website): visual command walkthrough — /haiku:new and /haiku:run
jwaldrip Apr 3, 2026
d7f621c
feat(website): review modes explained with examples + discrete handof…
jwaldrip Apr 3, 2026
c8f2d69
fix(haiku-rebrand): address pass 15 — stale function calls, paths, an…
jwaldrip Apr 3, 2026
d4d7ef9
fix(website): show security review gate + delivery progression in pip…
jwaldrip Apr 3, 2026
c0433bc
fix(website): clarify /haiku:new flow — intent creation + first stage
jwaldrip Apr 3, 2026
e6c2953
fix(website): inception gate auto, security multi-value gate, install…
jwaldrip Apr 3, 2026
5c8dde4
refactor(haiku-rebrand): restructure hats into per-stage files + cleanup
jwaldrip Apr 3, 2026
b46511e
refactor: remove hat.sh STAGE.md fallback — hats resolve from files only
jwaldrip Apr 3, 2026
84ec466
fix(haiku-rebrand): enrich stage inputs — development/operations/secu…
jwaldrip Apr 3, 2026
596f606
fix: design-brief scope stage → intent — development needs to read it
jwaldrip Apr 3, 2026
3131231
fix: runbook and threat-model → project scope — they accumulate acros…
jwaldrip Apr 3, 2026
b0909a6
fix(haiku-rebrand): remove all han/han.guru references — H·AI·K·U is …
jwaldrip Apr 3, 2026
587f132
fix(docs): H·AI·K·U works in Claude Code AND Cowork, not Code-only
jwaldrip Apr 3, 2026
b0c9efa
fix: CLAUDE.md and architecture-spec hat references — file-based hats…
jwaldrip Apr 3, 2026
35c4dea
fix(docs): remove ai-dlc install refs, han companion plugins — H·AI·K…
jwaldrip Apr 3, 2026
88bf358
fix(docs): update all hat documentation to file-based model
github-actions[bot] Apr 3, 2026
bf5d4f8
fix: all inline-hat references → file-based hats across docs, paper, …
jwaldrip Apr 3, 2026
c7d08b0
Merge branch 'ai-dlc/haiku-rebrand/main' of github.com:TheBushidoColl…
jwaldrip Apr 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
674 changes: 674 additions & 0 deletions .ai-dlc/haiku-rebrand/architecture-spec.md

Large diffs are not rendered by default.

604 changes: 604 additions & 0 deletions .ai-dlc/haiku-rebrand/architecture-viz.html

Large diffs are not rendered by default.

267 changes: 267 additions & 0 deletions .ai-dlc/haiku-rebrand/discovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
---
intent: haiku-rebrand
created: 2026-04-02T19:46:00Z
status: active
---

# Discovery Log: H·AI·K·U Rebrand

Elaboration findings from the April 2, 2026 architecture design session.

## Architecture Decision: Studio/Stage/Persistence Model

The AI-DLC system is being rebranded and rearchitected as H·AI·K·U — a domain-agnostic lifecycle orchestration system. The key insight: all structured work flows through stages of planning, building, and reviewing. Software development is one lifecycle; marketing, hardware, legal are others.

### Core Concepts

- **Studio** — a named lifecycle for a specific domain. Declares stage order and persistence layer.
- **Stage** — a lifecycle phase. Plans, builds, and reviews its own work. Defines its own hats (roles). One STAGE.md contains everything.
- **Persistence** — how work is saved. Git for software, Notion for content, filesystem for generic. The studio declares its type.
- **Outputs** — scope-based persistence. Each stage declares outputs in an `outputs/` directory with frontmatter docs. Scopes: `project` (persists across intents), `intent` (this intent only), `stage` (working context), `repo` (actual source files). Inputs are qualified references in STAGE.md frontmatter, each specifying the producing stage and output name (e.g. `{stage: inception, output: discovery}`).

### Architecture Decision: Unified Stage Loop

The elaborate/execute separation is eliminated. Each stage internally: plan → build → adversarial review → review gate. The user doesn't switch between /elaborate and /execute. A stage just runs.

### Architecture Decision: Hats in Stages

Hats (roles) move from plugin/hats/ directory into each STAGE.md. The hat sequence defined in the stage IS the build workflow. No separate workflows.yml. Security stage is always adversarial because its hats are threat-modeler → red-team → blue-team → reviewer.

### Architecture Decision: Default Ideation Studio

Every project has a studio. The default is "ideation" with universal stages: research → create → review → deliver. Domain-specific studios (software, marketing) specialize this.

### Architecture Decision: Review Gates

Every stage runs automatically. The review gate controls what happens AFTER: auto (advance immediately), ask (pause for user), external (request team review / PR).

### Architecture Decision: Continuous vs Discrete

Not "single-stage vs multi-stage." Both modes run through the same stages. Continuous = autopilot drives transitions, user reviews at gates. Discrete = user explicitly invokes each stage. The choice is per-intent.

### Architecture Decision: Persistence Abstraction

Git is the software studio's persistence adapter, not a system-level assumption. The studio declares `persistence: { type: git, delivery: pull-request }`. Other studios use other adapters.

### Architecture Decision: Product Review is `[external, ask]`

The product stage's review gate is `review: [external, ask]` — the first element (`external`) is the default gate for normal `/haiku:run` runs, serving as the go/no-go decision boundary where the team decides whether to actually build the thing. The `ask` element gives autopilot a valid non-blocking path: `/haiku:autopilot` selects `ask` (the most permissive non-`external` option) and overrides it to `auto`, so autopilot can proceed without a hard external gate while the full external review option remains available for human-driven workflows. The same pattern applies to the security stage.

## Codebase Context

**Stack:** TypeScript, Bash (shell scripts), Next.js 15 (website), Markdown (specs/docs)
**Architecture:** Claude Code plugin (plugin/), static website (website/), methodology paper
**Conventions:** YAML frontmatter in markdown, SKILL.md for skill definitions, shell libraries in plugin/lib/

## What Dissolves

- `plugin/hats/` directory — hats move into STAGE.md files
- `plugin/workflows.yml` — stages define their own hat sequences
- Workflow selection sub-skill — not needed
- `phases/ELABORATION.md` and `phases/EXECUTION.md` — stage body is context for everything
- The elaborate/execute command split — replaced by unified stage loop
- Software-only assumption — persistence adapters make it domain-agnostic

## What Already Changed (This Session)

- `pass` renamed to `stage` across all plugin files, hooks, schemas, types
- `plugin/passes/` → `plugin/stages/` (then further into studios)
- Stage definitions created with input/output model (inputs in frontmatter, outputs/ directory)
- Studio infrastructure: studio.sh, stage.sh, STUDIO.md
- Built-in software studio with design/product/dev stages
- STUDIO-SPEC.md written
- HTML architecture visualization (3 versions in Downloads)

## Design Artifacts

These artifacts capture the full architecture design and are included in this intent for historical reference:

- **`architecture-spec.md`** — Full technical specification: file structure, STAGE.md schema, FSM model, execution model, settings, resolution logic, custom stage/studio examples, migration path, backwards compatibility guarantees.
- **`architecture-viz.html`** — Interactive HTML visualization: core lifecycle loop, stage anatomy, software studio pipeline with hats/review/outputs grid, ideation studio (default), marketing studio example, persistence layer comparison, continuous vs discrete modes, knowledge pools, full hierarchy diagram.

## Architecture Decision: Input/Output Architecture

Stages declare their data flow through two mechanisms: **inputs** (qualified references in STAGE.md frontmatter) and **outputs** (self-describing frontmatter docs in an `outputs/` directory within the stage).

### Inputs

Qualified references in STAGE.md frontmatter. Each entry specifies the producing stage and the output name within that stage. A bare slug is ambiguous -- two stages could have outputs with the same name. The `stage` + `output` pair together resolve to the exact persisted location.

```yaml
---
name: security
description: Threat modeling and penetration testing
hats: [threat-modeler, red-team, blue-team, reviewer]
review: external
unit_types: [security, backend]
inputs:
- stage: product
output: behavioral-spec
- stage: development
output: code
---
```

The orchestrator resolves each qualified input to the producing stage's output definition, then reads from its persisted location.

### Input Loading: Plan Phase Only

Inputs are loaded during the **plan phase** of a stage, not the build phase. During planning, the orchestrator loads all stage inputs as context for decomposing work into units and defining criteria. During the build phase, individual units declare their own `## References` section listing the specific artifacts the builder needs -- the full input set is NOT loaded into each builder agent.

This prevents context bloat: a stage might declare 5 inputs, but a given unit only needs 2 of them. The plan phase uses the full picture; the build phase uses only what each unit requires.

### Unit References

Unit specs get a `## References` section populated during the plan phase:

```markdown
## References
- .haiku/intents/{intent-slug}/knowledge/DISCOVERY.md
- .haiku/intents/{intent-slug}/knowledge/BEHAVIORAL-SPEC.md
```

The builder agent reads ONLY these files, not the entire knowledge pool. This section is populated based on what the unit actually needs, derived from the stage inputs and the unit's specific scope of work.

### Outputs

Each stage has an `outputs/` directory containing self-describing frontmatter docs. Each output file declares its name, persistence scope, format, and whether it's required. The body provides guidance for what to produce.

```
plugin/studios/software/stages/inception/
├── STAGE.md
└── outputs/
└── DISCOVERY.md # scope: intent, format: text
```

### Output Doc Schema

```yaml
---
name: discovery
location: .haiku/intents/{intent-slug}/knowledge/DISCOVERY.md
scope: intent
format: text
required: true
---

# Discovery Output Guide

When exploring the domain, document:
- Every entity and its fields
- Every API endpoint and its behavior
- Architecture patterns and constraints
- Quality gate candidates
```

### Output Scopes

| Scope | Persisted To | Lifespan |
|-------|-------------|----------|
| `project` | `.haiku/knowledge/{name}.md` | Persists across intents |
| `intent` | `.haiku/intents/{intent-slug}/knowledge/{name}.md` | This intent only |
| `stage` | `.haiku/intents/{intent-slug}/stages/{stage}/{name}` | Working context for this stage's units only |
| `repo` | Project source tree | Actual code, configs — permanent |

### Example Output Types

- `ARCHITECTURE.md` — scope: project, format: text (persists to `.haiku/knowledge/`)
- `DISCOVERY.md` — scope: intent, format: text
- `DESIGN-BRIEF.md` — scope: stage, format: text (only for this stage's units)
- `CODE.md` — scope: repo, format: code (actual source files)
- `WIREFRAMES.md` — scope: stage, format: design

### What This Replaces

- No `knowledge/` directory inside stages — replaced by `outputs/`
- No `requires:` or `produces:` fields in STAGE.md frontmatter — replaced by `inputs:` (frontmatter list) and `outputs/` (directory of docs)
- No `output_path:` in knowledge templates — replaced by `location:` with scope-based paths

### Directory Structure

```
.haiku/
├── settings.yml
├── knowledge/ # Project-scoped outputs land here
│ ├── ARCHITECTURE.md
│ └── CONVENTIONS.md
├── studios/ # Custom/override studios
└── intents/
└── {name}/
├── intent.md
├── knowledge/ # Intent-scoped outputs land here
│ ├── DISCOVERY.md ← inception wrote this
│ ├── DESIGN-BRIEF.md ← design stage wrote this
│ └── THREAT-MODEL.md ← security stage wrote this
├── stages/
│ ├── inception/
│ │ ├── state.json
│ │ ├── WORKING-NOTES.md ← stage-scoped output (lives here)
│ │ └── units/
│ ├── design/
│ │ ├── state.json
│ │ └── units/
│ │ ├── unit-01-wireframes.md
│ │ └── unit-02-tokens.md
│ └── development/
│ ├── state.json
│ └── units/
│ ├── unit-01-auth-api.md
│ └── unit-02-frontend.md
└── state.json # { active_stage, mode, studio }
```

## Rename Map (from exploration agent)

### Directories and files to rename
| From | To |
|------|-----|
| `.ai-dlc/` | `.haiku/` |
| `plugin/hats/` | (removed — hats move into STAGE.md) |
| `plugin/workflows.yml` | (removed — stages define hat sequences) |
| `plugin/stages/` | `plugin/studios/{name}/stages/{stage}/STAGE.md` |
| `plugin/passes/` | (already renamed to stages, then into studios) |

### Code identifier renames
| From | To |
|------|-----|
| `dlc_*` functions | `hku_*` functions |
| `aidlc_*` telemetry | `haiku_*` telemetry |
| `_DLC_*` guard vars | `_HKU_*` guard vars |
| `DLC_*` constants | `HKU_*` constants |
| `CLAUDE_PLUGIN_ROOT` | (unchanged — this is a Claude Code convention) |

### Frontmatter field renames
| From | To |
|------|-----|
| `passes:` | `stages:` (already done) |
| `active_pass:` | `active_stage:` (already done) |
| `pass:` | `stage:` (already done) |

### Command renames
| From | To |
|------|-----|
| `/ai-dlc:elaborate` | `/haiku:stage` (or `/haiku:run` for continuous) |
| `/ai-dlc:execute` | (dissolved into stage loop) |
| `/ai-dlc:setup` | `/haiku:setup` |
| `/ai-dlc:autopilot` | `/haiku:run` (continuous mode) |
| `/ai-dlc:review` | `/haiku:review` |
| `/ai-dlc:followup` | `/haiku:followup` |
| `/ai-dlc:quick` | `/haiku:quick` |
| `/ai-dlc:adopt` | `/haiku:adopt` |
| `/ai-dlc:refine` | `/haiku:refine` |
| `/ai-dlc:release-notes` | `/haiku:release-notes` |
| `/ai-dlc:compound` | `/haiku:compound` |
| `/ai-dlc:blockers` | `/haiku:blockers` |
| `/ai-dlc:backpressure` | `/haiku:backpressure` |
| `/ai-dlc:fundamentals` | `/haiku:fundamentals` |
| `/ai-dlc:completion-criteria` | `/haiku:completion-criteria` |

### Files that reference ai-dlc (from exploration)
- **Libraries (plugin/lib/):** config.sh, dag.sh, stage.sh, studio.sh, knowledge.sh, state.sh, deps.sh, parse.sh, design-blueprint.sh, telemetry.sh
- **Hooks (plugin/hooks/):** inject-context.sh, subagent-context.sh, quality-gate.sh, redirect-plan-mode.sh, session-start.sh, stop-hook.sh
- **Skills:** All 20+ SKILL.md files across elaborate, execute, setup, review, etc.
- **Schemas:** settings.schema.json, all provider schemas
- **Types:** shared/src/types.ts
- **Plugin metadata:** .claude-plugin/plugin.json, .claude-plugin/hooks.json
- **Website:** All content in website/content/docs/, website/content/papers/, website/content/blog/
- **Root:** CLAUDE.md, CHANGELOG.md, README.md
97 changes: 97 additions & 0 deletions .ai-dlc/haiku-rebrand/intent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
workflow: default
git:
change_strategy: intent
auto_merge: true
auto_squash: false
announcements: [changelog, release-notes]
stages: []
active_stage: ""
iterates_on: ""
created: 2026-04-02
status: completed
epic: ""
quality_gates: [{name: tests, command: "bun test"}, {name: lint, command: "bun run lint"}, {name: typecheck, command: "bun run typecheck"}]
---

# H·AI·K·U Rebrand — From AI-DLC to Domain-Agnostic Lifecycle Orchestrator

## Problem

AI-DLC is a software development lifecycle tool hardcoded to three disciplines (design, product, dev) with a monolithic 2,400-line elaboration skill. It separates "elaboration" (spec) and "execution" (build) as distinct commands. It can't support custom lifecycles — a security team, hardware team, or marketing team has no way to define their own workflow. The system assumes git as the only persistence mechanism.

## Solution

Rebrand AI-DLC to H·AI·K·U and implement a studio/stage/persistence architecture:

1. **Studios** define named lifecycles for any domain. The default "ideation" studio works for every discipline. The "software" studio specializes for software development with stages: inception → design → product → development → operations → security.

2. **Stages** replace the elaborate/execute split. Each stage plans, builds, and reviews its own work internally. Stages define their own hats (roles) — no separate hats directory or workflows file. One STAGE.md per stage contains everything.

3. **Persistence** is abstracted behind the studio. Git (branches, commits, PRs) is the software adapter. Other studios use other adapters (Notion, filesystem, CAD systems).

4. **Continuous vs Discrete** modes let the user choose per-intent: autopilot drives stage transitions (continuous) or user invokes each stage (discrete). Both follow the same pipeline.

5. The mechanical rebrand: `.ai-dlc/` → `.haiku/`, `/ai-dlc:*` → `/haiku:*`, all references across plugin, paper, website, and docs.

## Domain Model

### Entities
- **Studio** — named lifecycle template. Declares stage order and persistence type. Lives in `plugin/studios/{name}/STUDIO.md` or `.haiku/studios/{name}/STUDIO.md`.
- **Stage** — lifecycle phase with hats, review mode, inputs (frontmatter list), and outputs (`outputs/` directory of self-describing docs). Lives in `studios/{name}/stages/{stage}/STAGE.md`.
- **Persistence Adapter** — how work is saved/versioned/delivered. Git adapter is the default for software.
- **Intent** — what's being built. Lives in `.haiku/intents/{name}/intent.md`.
- **Unit** — discrete piece of work within a stage. Lives in `.haiku/intents/{name}/stages/{stage}/units/`.
- **Bolt** — one cycle through a stage's hat sequence.
- **Output** — a self-describing frontmatter doc in a stage's `outputs/` directory. Declares name, location, scope, format, and whether required. Scopes: `project` (`.haiku/knowledge/`), `intent` (`.haiku/intents/{name}/knowledge/`), `stage` (`.haiku/intents/{name}/stages/{stage}/`), `repo` (project source tree).
- **Review Gate** — auto | ask | external. Controls what happens after a stage completes.

### Relationships
- Studio has many Stages (ordered)
- Studio has one Persistence Adapter
- Stage has many Units
- Stage has many Hats (ordered — the hat sequence IS the build workflow)
- Stage has one Review Gate
- Unit has many Bolts
- Intent references one Studio
- Intent has many Stages (from its studio)
- Stage has many Outputs (declared in `outputs/` directory, persisted by scope)
- Stage has many Inputs (list in frontmatter, resolved from prior stage outputs)

### Data Sources
- Plugin source: `plugin/` directory (skills, hooks, lib, schemas)
- Website: `website/` (Next.js 15 static site)
- Paper: `website/content/papers/ai-dlc-2026.md`
- Settings: `.ai-dlc/settings.yml` (→ `.haiku/settings.yml`)
- Project-scoped outputs: `.haiku/knowledge/` (persist across intents)
- Intent-scoped outputs: `.haiku/intents/{name}/knowledge/` (per-intent)
- Stage-scoped outputs: `.haiku/intents/{name}/stages/{stage}/` (working context)
- Architecture spec: `plugin/skills/elaborate/STUDIO-SPEC.md`
- Architecture viz: `~/Downloads/haiku-architecture-v1.html`

## Success Criteria
- [ ] All `.ai-dlc/` references → `.haiku/` across the entire codebase
- [ ] All `/ai-dlc:*` commands → `/haiku:*`
- [ ] All "AI-DLC" branding → "H·AI·K·U" in user-facing content
- [ ] Default ideation studio created (`plugin/studios/ideation/`)
- [ ] Software studio created (`plugin/studios/software/`) with 6 stages
- [ ] Each stage has STAGE.md with hats, review mode, guidance, inputs list, and outputs/ directory
- [ ] plugin/hats/ directory removed — hats live in STAGE.md
- [ ] plugin/workflows.yml removed — stages define their own hat sequences
- [ ] Unified stage orchestrator skill replaces separate elaborate/execute skills
- [ ] Persistence abstraction with git adapter as default
- [ ] Settings schema updated (studio: field, persistence config)
- [ ] Paper terminology updated (pass → stage, new hierarchy documented)
- [ ] Website docs updated for H·AI·K·U terminology
- [ ] CLAUDE.md terminology table updated
- [ ] All existing tests pass after rebrand
- [ ] Continuous mode (default) works identically to current single-stage behavior

## Context

This intent captures the architecture design session from April 2, 2026. The conversation evolved from a simple elaborate skill refactor into a complete rethinking of the system's domain model — discovering that the studio/stage pattern is domain-agnostic and that the elaborate/execute separation was an artifact of software-centric thinking. The "pass" concept was renamed to "stage," hats were dissolved into stages, workflows were dissolved into studios, and persistence was abstracted to support non-software domains.

Key artifacts from the session:
- `plugin/skills/elaborate/STUDIO-SPEC.md` — technical specification
- `~/Downloads/haiku-architecture-v1.html` — interactive visualization
- `~/Downloads/ai-dlc-architecture-v2.html` / `v3.html` — earlier iterations
Loading
Loading