Skip to content

Commit acc5ee9

Browse files
jwaldripclaude
andcommitted
elaborate: define intent and units for methodology-evolution
HAIKU (Human AI Knowledge Unification) — evolving AI-DLC from a software development methodology into a universal human-AI collaboration framework for running any business initiative. 8 units: - HAIKU Foundation (brand, manifesto) - HAIKU Core Plugin (storage abstraction, 4-phase lifecycle) - Operation Phase (/operate skill) - Reflection Phase (/reflect skill) - HAIKU Paper (methodology articulation) - AI-DLC Integration (software profile of HAIKU) - HAIKU Website (haikumethod.ai) - AI-DLC Updates (website + changelog) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ea4bcd0 commit acc5ee9

10 files changed

+1163
-0
lines changed
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
---
2+
intent: methodology-evolution
3+
created: 2026-03-05
4+
status: active
5+
---
6+
7+
# Discovery Log: Methodology Evolution
8+
9+
Elaboration findings persisted during Phase 2.5 domain discovery.
10+
Builders: read section headers for an overview, then dive into specific sections as needed.
11+
12+
13+
## Paper Analysis: ai-dlc-2026.md
14+
15+
**Discovered:** 2026-03-05
16+
17+
### Current Phase Structure
18+
1. **Inception** (Mob Elaboration) — Intent → Units → Completion Criteria → Bolt planning
19+
2. **Construction** (Bolts) — Execute Units via HITL/OHOTL/AHOTL modes, iterate until criteria met
20+
3. **Operations** — Deploy, monitor, autonomous response within runbook boundaries
21+
22+
### Terminology That Must Evolve
23+
| Current (Software) | Needed (Domain-Agnostic) |
24+
|---|---|
25+
| Builder (hat) | Executor / Implementer |
26+
| Construction (phase) | Execution |
27+
| Code, codebase | Artifacts, Deliverables |
28+
| Tests, lint, typecheck | Verification gates, Quality checks |
29+
| Deployment | Release, Operationalization |
30+
| Backpressure | Quality enforcement |
31+
| Commit, branch, PR | Checkpoint, version, review |
32+
33+
### What's Missing
34+
- NO Reflection phase — no structured learning loop
35+
- NO post-deployment review ritual
36+
- NO outcome assessment ("did the Intent achieve its goal?")
37+
- NO organizational learning capture
38+
- Operations outputs are undefined (Inception and Construction have clear artifacts)
39+
- Operations section ends at paper line 1052 with no closure ritual
40+
41+
### What's Already Domain-Agnostic
42+
- The core flow (Intent → Units → Bolts → Checkpoints) is conceptually universal
43+
- Operating modes (HITL/OHOTL/AHOTL) apply to any human-AI collaboration
44+
- The "collapse" of traditional phases is a universal principle
45+
- Completion criteria as a concept work for any domain
46+
47+
### Key Paper Sections for Evolution
48+
- Phase definitions: lines 824-1000
49+
- Operating modes: lines 156-246
50+
- Lifecycle flow/diagram: lines 1056-1088
51+
- Glossary: lines 1390-1410
52+
- Operations: lines 1002-1052
53+
54+
55+
## Plugin Architecture: Core Structure
56+
57+
**Discovered:** 2026-03-05
58+
59+
### Stats
60+
- 14 hats, 17 skills, 4 workflows
61+
- Plugin version: 1.20.6
62+
- Architecture: Hook-based events + han keep state + git worktrees
63+
64+
### Git Dependency Map (PERVASIVE)
65+
- **Worktree isolation**: Intent and unit worktrees for parallel work
66+
- **Branch state**: `han keep` stores iteration.json, scratchpad, blockers on git branches
67+
- **Branch discovery**: `dag.sh` scans `ai-dlc/*` branches for intents
68+
- **Remote sync**: Push/pull/upstream tracking in construct skill
69+
- **Merge strategies**: Unit branches merge to default or intent branch
70+
- **PR creation**: `gh pr create` in advance skill
71+
- **VCS abstraction exists** in config.sh (detects jj vs git) but ONLY git is implemented
72+
73+
### Lifecycle (Currently)
74+
1. `/elaborate` → Write intent.md + unit-*.md to intent worktree
75+
2. `/construct` → DAG-driven loop: planner → builder → reviewer per unit
76+
3. Integrator validates all units → mark intent complete → PR/MR
77+
4. **STOP** — no operation, monitoring, or reflection
78+
79+
### State Storage
80+
- `iteration.json` (han keep on intent branch): hat, status, workflow, unitStates
81+
- `scratchpad.md` (han keep on unit branch): progress notes
82+
- `blockers.md` (han keep on unit branch): blocker context
83+
- `current-plan.md` (han keep on unit branch): planner output
84+
- Filesystem: intent.md + unit-*.md frontmatter (committed to git)
85+
86+
### Quality Gates (Backpressure)
87+
- Autonomous: tests, typecheck, lint, build, security scan
88+
- Enforced via han-plugin.yml Stop hooks
89+
- Builder hat must run checks after every change
90+
- Reviewer validates criteria, not code quality (gates already passed)
91+
92+
### Hats: Domain Analysis
93+
- **Domain-agnostic (11/14)**: planner, builder, reviewer, integrator, red-team, blue-team, observer, hypothesizer, experimenter, analyst, test-writer
94+
- **Software-specific (3/14)**: designer (UI/UX), implementer, refactorer
95+
- Builder hat has discipline-awareness (frontend/backend/docs → different agent types)
96+
97+
### Workflows
98+
- `default`: planner → builder → reviewer
99+
- `adversarial`: planner → builder → red-team → blue-team → reviewer
100+
- `design`: planner → designer → reviewer
101+
- `hypothesis`: observer → hypothesizer → experimenter → analyst
102+
103+
104+
## Config & Settings: Infrastructure Analysis
105+
106+
**Discovered:** 2026-03-05
107+
108+
### Settings Schema
109+
- Location: `plugin/schemas/settings.schema.json`
110+
- Sections: VCS strategy (git/jj), Providers, Mockup format
111+
- Config precedence: intent frontmatter > repo settings > built-in defaults
112+
113+
### Provider System (4 categories)
114+
- **Ticketing**: Jira, Linear, GitHub Issues, GitLab Issues
115+
- **Spec**: Notion, Confluence, Google Docs
116+
- **Design**: Figma
117+
- **Comms**: Slack, Teams, Discord
118+
- Each has a JSON schema, instruction file, and 3-tier loading (built-in → inline → project override)
119+
120+
### State Persistence (han keep)
121+
- Branch-scoped: intent state on intent branch, unit state on unit branch
122+
- Keys: iteration.json, scratchpad.md, blockers.md, current-plan.md, next-prompt.md
123+
- Cross-branch access via --branch flag
124+
- **Entirely git-dependent** — no fallback for non-git environments
125+
126+
### DAG System (dag.sh, 704 lines)
127+
- Declarative dependencies in unit frontmatter `depends_on:`
128+
- Functions: find_ready_units, find_blocked_units, are_deps_completed
129+
- Fast YAML extraction (no subprocess overhead)
130+
- Status flow: pending → in_progress → completed (or blocked)
131+
132+
### Hook System (4 hooks)
133+
- SessionStart: inject-context.sh (652 lines) — loads state, displays context
134+
- SubagentPrompt: subagent-context.sh (300 lines) — scopes context for subagents
135+
- PreToolUse: redirect-plan-mode.sh — intercepts /plan → /elaborate
136+
- Stop: enforce-iteration.sh — checks if work remains, prompts /construct
137+
138+
### Key Infrastructure Files
139+
| File | Lines | Purpose |
140+
|---|---|---|
141+
| plugin/lib/config.sh | 559 | Config loading, VCS detection, provider system |
142+
| plugin/lib/dag.sh | 704 | DAG resolution, unit status tracking |
143+
| plugin/hooks/inject-context.sh | 652 | SessionStart context injection |
144+
| plugin/hooks/subagent-context.sh | 300 | Subagent context scoping |
145+
| plugin/skills/construct/SKILL.md | 1117 | Core construction loop |
146+
| plugin/skills/elaborate/SKILL.md | ~900 | Mob elaboration workflow |
147+
| plugin/skills/advance/SKILL.md | ~150 | Hat progression + merge |
148+
149+
### What Must Change for Git-Optional
150+
1. han keep needs a file-based fallback (folder mode)
151+
2. Worktree isolation needs folder-based alternative (subdirectories?)
152+
3. Branch discovery (dag.sh) needs filesystem-only mode
153+
4. Remote sync (push/pull) must be optional
154+
5. PR/MR creation must be optional
155+
6. Config detection must work without .git directory
156+
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
workflow: default
3+
git:
4+
change_strategy: intent
5+
auto_merge: true
6+
auto_squash: false
7+
announcements: [changelog, release-notes, social-posts, blog-draft]
8+
created: 2026-03-06
9+
status: active
10+
epic: ""
11+
---
12+
13+
# HAIKU: Evolve AI-DLC into a Universal Human-AI Collaboration Framework
14+
15+
## Problem
16+
17+
AI-DLC is a powerful methodology for AI-driven software development, but its concepts (elaboration, construction, quality gates, iterative execution) are fundamentally domain-agnostic. The methodology is artificially limited by software-specific language, git-dependent infrastructure, and the absence of two critical lifecycle phases: Operation (automated management of what was built) and Reflection (learning from outcomes to improve future cycles).
18+
19+
Businesses need a universal framework for running any initiative — software, marketing, strategy, operations — through disciplined human-AI collaboration. The current AI-DLC plugin cannot serve this need because it assumes git, hardcodes tests/lint/types as quality gates, and stops at code delivery with no operational or learning phases.
20+
21+
## Solution
22+
23+
Create **HAIKU** (Human AI Knowledge Unification) — a universal human-AI collaboration framework with a 4-phase lifecycle: Elaboration, Execution, Operation, Reflection. HAIKU is the domain-agnostic core; AI-DLC becomes the software development implementation of HAIKU.
24+
25+
Architecture:
26+
- **HAIKU core plugin** — universal, works in repos (git) and folders (cowork), domain-agnostic hats/gates/workflows
27+
- **AI-DLC plugin** — extends HAIKU with software-specific features (git worktrees, tests/lint/types, PRs, deployment)
28+
- **SWARM** — referenced as the marketing/sales validation of HAIKU's universality
29+
- **haikumethod.ai** — website for the universal framework
30+
31+
## Domain Model
32+
33+
### Entities
34+
- **HAIKU** — The universal framework. Human AI Knowledge Unification. Domain-agnostic methodology for any structured work.
35+
- **Phase** — One of four lifecycle stages: Elaboration, Execution, Operation, Reflection. Each has distinct mechanics, artifacts, and quality gates.
36+
- **Intent** — The thing being accomplished. Domain-agnostic: feature, campaign, strategy, process, research.
37+
- **Unit** — A discrete piece of work within an intent. Has discipline, dependencies, workflow.
38+
- **Bolt** — The iteration cycle an agent runs within a unit.
39+
- **Hat** — A behavioral role (planner, executor, reviewer, etc.). Domain-agnostic.
40+
- **Workflow** — Ordered sequence of hats defining how a unit progresses.
41+
- **Quality Gate** — Configurable verification mechanism. Software: tests/lint/types. Marketing: stakeholder sign-off. Domain-specific.
42+
- **Storage Backend** — How state persists. Git mode (branches/worktrees) or folder mode (subdirectories/files). Auto-detected.
43+
- **Profile** — A domain-specific implementation of HAIKU. AI-DLC (software), SWARM (marketing/sales), future profiles.
44+
- **Operational Plan** — Defines what needs to happen to run/manage what was built. Created during Execution, automated during Operation.
45+
- **Reflection Artifact** — Learnings from a completed cycle. Feeds forward into next iteration and organizational memory.
46+
47+
### Relationships
48+
- HAIKU defines 4 Phases (Elaboration -> Execution -> Operation -> Reflection -> loop)
49+
- Profiles implement HAIKU for specific domains (AI-DLC for software, SWARM for marketing)
50+
- Intent contains Units (DAG-ordered by dependencies)
51+
- Unit is executed through Bolts, each wearing a Hat from its Workflow
52+
- Quality Gates validate during Execution (domain-configurable)
53+
- Execution produces an Operational Plan alongside the deliverable
54+
- Operation follows the Operational Plan automatically
55+
- Reflection produces Reflection Artifacts that feed into: (a) next version of same Intent, (b) organizational memory
56+
- Storage Backend auto-detects: git repo -> git mode, plain folder -> folder mode
57+
58+
### Data Sources
59+
- **AI-DLC Plugin** (`plugin/`) — 14 hats, 17 skills, 4 hooks, 2 core libs (~2500 lines), 4 workflows
60+
- **Paper** (`website/content/papers/ai-dlc-2026.md`) — Current methodology (~1400 lines)
61+
- **Website** (`website/`) — Next.js 15 App Router, static export
62+
- **Settings/Schemas** (`plugin/schemas/`) — Configuration validation, 8 provider schemas
63+
- **Discovery log** (`.ai-dlc/methodology-evolution/discovery.md`) — Detailed technical findings from elaboration
64+
65+
### Data Gaps
66+
- No HAIKU core plugin exists — must be built from scratch (informed by AI-DLC patterns)
67+
- No Operation phase implementation — conceptual in paper, zero code
68+
- No Reflection phase — not in paper, not in plugin
69+
- No folder-based storage — han keep is entirely git-dependent
70+
- No domain-agnostic quality gate configuration
71+
72+
## Success Criteria
73+
- [ ] HAIKU framework is defined: Human AI Knowledge Unification, with 4-phase lifecycle
74+
- [ ] HAIKU methodology paper articulates Elaboration, Execution, Operation, Reflection with domain-agnostic language
75+
- [ ] HAIKU core plugin works in both git repos and plain folders (auto-detect)
76+
- [ ] Quality gates are configurable per domain, not hardcoded to tests/lint/typecheck
77+
- [ ] `/reflect` skill produces reflection artifacts that feed forward into next iteration and org memory
78+
- [ ] `/operate` skill reads operational plans and automates tasks
79+
- [ ] AI-DLC plugin extends or depends on HAIKU core for software-specific features
80+
- [ ] Existing AI-DLC git-based workflows function identically (backward compatibility)
81+
- [ ] Reflection and Operation phases are opt-in (teams can use Elaboration + Execution only)
82+
- [ ] Custom quality gates and hats definable per-project without modifying plugin core
83+
- [ ] Website at haikumethod.ai reflects the universal methodology
84+
- [ ] Paper includes non-software domain examples (marketing/SWARM validation)
85+
- [ ] All existing tests pass
86+
- [ ] Announcements generated: changelog, release notes, social posts, blog draft
87+
88+
## Context
89+
- HAIKU name: Human AI Knowledge Unification. Domain: haikumethod.ai
90+
- Japanese-inspired, bushido-adjacent: disciplined structure, intentional form (like haiku poetry)
91+
- SWARM (Scope Workstreams Accountability Results Memory) — a friend's marketing framework that independently validated the same 4-phase pattern
92+
- AI-DLC terminology preserved: Intent (epic), Unit (ticket/story), Bolt (sprint iteration)
93+
- Discovery log contains detailed technical analysis of current plugin architecture, paper content, and config system
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
status: pending
3+
depends_on: []
4+
branch: ai-dlc/methodology-evolution/01-haiku-foundation
5+
discipline: documentation
6+
workflow: ""
7+
ticket: ""
8+
---
9+
10+
# unit-01: HAIKU Foundation
11+
12+
## Description
13+
Establish the HAIKU brand identity and create the foundational manifesto that all other units reference. HAIKU = Human AI Knowledge Unification. This unit produces the core document that defines what HAIKU is, why it exists, and how it relates to domain-specific implementations like AI-DLC (software) and SWARM (marketing/sales).
14+
15+
## Discipline
16+
documentation
17+
18+
## Domain Entities
19+
- HAIKU (the universal framework)
20+
- Profile (domain-specific implementations)
21+
- Phase (the 4-phase lifecycle)
22+
23+
## Data Sources
24+
- Discovery log at `.ai-dlc/methodology-evolution/discovery.md` — contains detailed analysis of current AI-DLC methodology, paper, and plugin architecture
25+
- SWARM brief from the user's friend — marketing/sales framework that independently validated the 4-phase pattern
26+
27+
## Technical Specification
28+
29+
### New Repository
30+
Create a new repository for HAIKU (e.g., `thebushidocollective/haiku-method` or similar). All HAIKU work happens here, NOT in the AI-DLC repo.
31+
32+
### HAIKU Manifesto (`HAIKU.md` at repo root)
33+
Write the foundational document covering:
34+
- **What is HAIKU**: Human AI Knowledge Unification — a universal framework for human-AI collaboration
35+
- **The 4-phase lifecycle**: Elaboration (define intent) -> Execution (do the work) -> Operation (manage what was built) -> Reflection (learn and evolve)
36+
- **Core principles**: Disciplined structure, iterative refinement, domain-agnostic, learning loops
37+
- **The profile model**: HAIKU is the universal core. Domain-specific profiles implement it:
38+
- AI-DLC = software development profile (git, tests, PRs, deployment)
39+
- SWARM = marketing/sales profile (briefs, campaigns, close-outs)
40+
- Custom profiles for any domain
41+
- **Why "HAIKU"**: Japanese-inspired disciplined structure. Like haiku poetry — constrained form that produces clarity. The unification of human creativity and AI capability.
42+
- **Key terminology**: Intent, Unit, Bolt, Hat, Workflow, Quality Gate, Phase
43+
- **Domain**: haikumethod.ai
44+
45+
### Naming Constants
46+
Create a reference file (`brand/naming.md` or similar) with:
47+
- Full name: HAIKU
48+
- Expanded: Human AI Knowledge Unification
49+
- Tagline (suggest options, user confirms)
50+
- Domain: haikumethod.ai
51+
- Relationship to AI-DLC and SWARM
52+
53+
## Success Criteria
54+
- [ ] New HAIKU repository exists with initial structure
55+
- [ ] HAIKU.md manifesto defines the framework, 4-phase lifecycle, profile model, and terminology
56+
- [ ] Naming constants document exists with brand identity
57+
- [ ] The relationship between HAIKU, AI-DLC, and SWARM is clearly articulated
58+
59+
## Risks
60+
- **Name collision**: Other projects may use "HAIKU" (Haiku OS exists). Mitigation: "HAIKU Method" or "HAIKU Framework" as the full name, "haikumethod.ai" as the domain.
61+
62+
## Boundaries
63+
This unit does NOT build the plugin, write the paper, or create the website. It establishes the identity that all other units build upon.
64+
65+
## Notes
66+
- The HAIKU repo should be initialized with a basic structure: `README.md`, `HAIKU.md`, `brand/`, `plugin/`, `paper/`, `website/`
67+
- Keep the manifesto concise — it's a reference document, not the full paper (that's unit-05)

0 commit comments

Comments
 (0)