Skip to content

Commit 0a798c0

Browse files
jwaldripclaudegithub-actions[bot]Jason Waldrip
authored
Ai dlc/haiku rebrand/main (#138)
* elaborate(haiku-rebrand): initialize discovery log * elaborate(haiku-rebrand): define intent * elaborate(haiku-rebrand): draft unit-01-mechanical-rebrand * elaborate(haiku-rebrand): draft unit-02-studio-stage-architecture * elaborate(haiku-rebrand): draft unit-03 and unit-04 * elaborate(haiku-rebrand): add architecture spec and visualization as discovery artifacts * elaborate(haiku-rebrand): expand discovery with rename map and artifact references * elaborate(haiku-rebrand): expand all units with detailed specifications Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * elaborate(haiku-rebrand): re-decompose into 12 units with full specifications Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * elaborate(haiku-rebrand): add knowledge architecture — guides in stages, outputs in intents * elaborate(haiku-rebrand): replace knowledge with input/output architecture — outputs/ directory, scope-based persistence, inputs in frontmatter Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * elaborate(haiku-rebrand): qualified inputs, plan-phase-only loading, unit-level references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): resolve all spec inconsistencies from PR review passes 1-4 - architecture-spec.md: default studio software → ideation (3 occurrences) - architecture-spec.md: viz filename ai-dlc-architecture-v2.html → architecture-viz.html - architecture-spec.md: STUDIO.md schema example stage list [design,product,dev] → full 6-stage list - architecture-spec.md: intent frontmatter stages example corrected to match software studio - architecture-spec.md: FSM mode names single/multi-stage → continuous/discrete throughout - architecture-spec.md: Collapse Operation fields updated to reference current schema (no criteria_guidance, artifact_types, available_workflows) - architecture-spec.md: hat reference plugin/hats/*.md → inline STAGE.md ## sections - architecture-spec.md: unit path .haiku/{slug}/ → .haiku/intents/{slug}/ in hat layering table - architecture-spec.md: Single-Stage Execution description rewritten (removes dissolved workflow references) - architecture-spec.md: {name} → {intent-slug} in all output location templates - unit-05: review stage REVIEW-REPORT.md scope stage → intent (deliver stage reads it as input) - unit-05: {name} → {intent-slug} in output location templates and scope table - unit-06: intent paths .haiku/{slug}/ → .haiku/intents/{slug}/ (3 occurrences) - unit-06: {name} → {intent-slug} in output persistence paths - unit-07: add unit-01-lib-hooks-rename to depends_on (calls hku_* functions from unit-01) - unit-08: add unit-04-studio-infrastructure to depends_on (calls hku_get_active_studio/hku_resolve_studio) - unit-08: add _HKU_ADAPTER_SOURCED guard to _persistence_dispatch to avoid re-sourcing on every call - unit-09: replace local Mac path with concrete git clone instruction for haiku-method repo - unit-12: replace local Mac path with concrete git clone instruction for haiku-method paper - discovery.md: {name} → {intent-slug} in output location templates and scope table Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * fix(haiku-rebrand): resolve all spec inconsistencies from PR review passes 1-4 - architecture-spec.md line 14: .ai-dlc/studios/ → .haiku/studios/ - Hat layering table: rename Single-Stage/Multi-Stage columns to Continuous/Discrete - Hat layering table: {slug} → {intent-slug} in unit path template - Line 309: "single-stage mode"/"multi-stage mode" → "continuous mode"/"discrete mode" - Section heading: Multi-Stage Execution → Discrete Mode Execution - Intent frontmatter comment: "empty for single-stage" → "empty for continuous mode" - Unit References example: {name} → {intent-slug} in knowledge paths * feat(haiku-rebrand): support multi-value review gates for autopilot compatibility Allow `review` field to be a string or string[] in STAGE.md. Arrays declare multiple available modes — first is the default, autopilot selects the most permissive non-external option. Product and security stages now use `[external, ask]` so autopilot can proceed via the ask path while external review remains available for normal runs. Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * fix(haiku-rebrand): resolve all spec inconsistencies from PR review pass 5 - unit-06: backward compat default studio software → ideation - discovery.md: "simple list" → "qualified references" with example - unit-04: hku_resolve_stage_inputs comment reflects direct qualified lookup - unit-08: add mkdir -p to _persistence_filesystem_create_review; fix all flat .haiku/{slug}/ paths to nested .haiku/intents/{slug}/ in filesystem adapter - unit-05: stale review mode values in success criteria → [external,ask] - unit-12: intent/unit paths in CLAUDE.md table → .haiku/intents/{slug}/ - architecture-spec.md: backwards compat note clarifies "legacy mode" means no settings file (pre-H·AI·K·U), distinct from the ideation default Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * fix(haiku-rebrand): correct default studio in unit-06 success criteria (software → ideation) * fix(haiku-rebrand): fix unit paths (stage-level), flat paths, and stale terminology - unit-01: rename target .ai-dlc/{slug}/ → .haiku/intents/{slug}/ (units live under stages) - unit-12: unit path .haiku/intents/{slug}/unit-NN-*.md → .haiku/intents/{slug}/stages/{stage}/units/unit-NN-*.md - architecture-spec.md: FSM diagram 'disciplines' → 'stage definitions' - architecture-spec.md: custom stage example 'dev' → 'development' Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * feat(haiku-rebrand): add unit-13 legacy AI-DLC intent migration spec Adds a dedicated unit for migrating incomplete AI-DLC intents to H·AI·K·U format. Covers physical migration (directory move, frontmatter field mapping, unit-to-stage placement) and elaborative migration (gap stage analysis for inception/operations/security, optional plan-phase execution for new stages). Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * fix(haiku-rebrand): resolve all spec inconsistencies from PR review pass 7 - unit-13: fix backward-compat symlink to replace original dir with backup+symlink (old: ln to .haiku-migrated suffix, new: mv to .pre-haiku-backup then ln at original path) - unit-13: add unit-01-lib-hooks-rename to depends_on (calls hku_* functions from unit-01) - unit-13: specify plugin/hooks/session-start.sh as definitive detection hook location (removes ambiguous "or" that left placement undefined) - unit-13: make migration_date dynamic — use <current-date> placeholder instead of hardcoded 2026-04-02; add success criterion requiring runtime date (not hardcoded) - unit-06: add hku_run_plan_phase() to State Tracking section — unit-13 needs to invoke plan-only execution without triggering build/review/gate phases - unit-03: definitively use plugin/lib/migrate.sh (remove ambiguous "or config.sh") and update Domain Entities to list migrate.sh as a separate file - unit-03: add Boundaries note clarifying that intent directory migration is owned by unit-13, not unit-03 Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * fix(haiku-rebrand): resolve all spec inconsistencies from PR review pass 7 - architecture-spec.md: clarify legacy mode = no settings file (not omitted studio field) - unit-07: add ideation studio fallback in hku_resolve_hat_instructions for legacy projects * fix(haiku-rebrand): resolve all spec inconsistencies from PR review pass 8 Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * fix(haiku-rebrand): resolve all spec inconsistencies from PR review pass 8 * fix(haiku-rebrand): resolve all spec inconsistencies from PR review pass 9 - unit-13: fix symlink target to use relative path (../\.haiku/intents/{slug}) so it resolves correctly from within .ai-dlc/ directory - unit-13: standardize {slug} → {intent-slug} placeholder in MIGRATION-PLAN.md frontmatter (both provenance field and plan example) - architecture-spec.md: fix resolve_active_stages comment/description to say "legacy mode (no settings file)" instead of "single-stage" / "no studio configured" - architecture-spec.md: update custom security STAGE.md example from `review: external` to `review: [external, ask]` matching built-in stage and recommended pattern for autopilot compatibility Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> * status: initialize iteration state for haiku-rebrand * status: mark unit-01-lib-hooks-rename as in_progress, hat: planner * status: advance hat for unit-01-lib-hooks-rename → builder * refactor(haiku-rebrand): rename all identifiers in plugin/lib/*.sh and plugin/hooks/*.sh Rename categories: - dlc_ → hku_ (36 functions + 4 private) - get_ai_dlc_config → get_haiku_config, export_ai_dlc_config → export_haiku_config - aidlc_ → haiku_ (17 telemetry functions + 2 private) - _AIDLC_ → _HAIKU_ (6 telemetry variables) - _DLC_ → _HKU_ (13 guard variables) - AI_DLC_ → HAIKU_ (8 environment variables) - ai_dlc.* → haiku.* (15 telemetry event names) - .ai-dlc/ → .haiku/ (path references) - ai-dlc/ → haiku/ (branch prefixes) - ai-dlc: → haiku: (error/log message prefixes) - AI-DLC → H·AI·K·U (display text in comments and output) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: advance hat for unit-01-lib-hooks-rename → reviewer * status: mark unit-01-lib-hooks-rename as completed * status: mark wave 1 units (02, 03, 04) as in_progress, hat: planner * status: advance wave 1 units (02, 03, 04) → builder * refactor(haiku-rebrand): update schemas, types, and add settings migration - settings.schema.json: $id/title/description → haiku, add studio field - 19 provider schemas: $id → haiku.dev - New plugin/lib/migrate.sh: settings/providers/knowledge migration - config.sh: auto-trigger migration on load Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor(haiku-rebrand): rename all ai-dlc references in skills, metadata, and providers - ai-dlc: → haiku: (command triggers, frontmatter, cross-skill invocations) - "ai-dlc: " → "haiku: " (commit message prefixes) - .ai-dlc/ → .haiku/ (path references) - AI-DLC → H·AI·K·U (user-facing display text) - H•AI•K•U → H·AI·K·U (normalize bullet to middle dot) - plugin.json: name, description, keywords updated - Provider docs: description and path references updated Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(haiku-rebrand): create studio infrastructure layer - plugin/lib/studio.sh: 6 functions for studio resolution and validation - plugin/lib/stage.sh: 6 functions for stage resolution within studios - plugin/studios/ideation/: universal lifecycle (4 stages) - plugin/studios/software/: development lifecycle (6 stages) - STUDIO.md and STAGE.md schemas with frontmatter - Output doc stubs in each stage's outputs/ directory Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: advance wave 1 units (02, 03, 04) → reviewer * status: unit-02 rejected by reviewer, back to builder (retry 1) * fix(haiku-rebrand): rename ai-dlc references in subskill SKILL.md files Missed in initial pass: 8 subskill files in elaborate/ and execute/ - /ai-dlc: → /haiku: (command references) - Skill("ai-dlc:") → Skill("haiku:") (invocations) - .ai-dlc/ → .haiku/ (paths) - AI-DLC → H·AI·K·U (display text) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: unit-03 rejected by reviewer, back to builder (retry 1) * status: unit-02 back to reviewer after fix * fix(haiku-rebrand): update remaining ai-dlc references in parser.ts - Log prefixes: [ai-dlc/shared] → [haiku/shared] - JSDoc: .ai-dlc → .haiku - Parameter: aiDlcDir → haikuDir Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: unit-03 back to reviewer after fix * status: mark unit-04-studio-infrastructure as completed * status: mark unit-03-schemas-types-settings as completed * status: mark unit-02-skills-metadata-rename as completed * status: mark wave 2 units (05, 09) as in_progress, hat: planner * status: advance wave 2 units (05, 09) → builder * feat(haiku-rebrand): add deployment infrastructure for haikumethod.ai - Terraform: GCP Cloud DNS zone with GitHub Pages records - website/public/CNAME for custom domain - .gitignore updated for Terraform files - MCP DNS placeholder (disabled by default) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(haiku-rebrand): create full stage definitions for ideation and software studios - 10 STAGE.md files with hats, review modes, inputs, per-hat guidance - 15 output docs with scope, location, format, content guidance - Ideation: research → create → review → deliver - Software: inception → design → product → development → operations → security Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: advance wave 2 units (05, 09) → reviewer * status: mark unit-09-deploy-config as completed * status: mark unit-05-stage-definitions as completed * status: mark wave 3 units (06, 10) as in_progress, hat: planner * status: advance wave 3 units (06, 10) → builder * feat(haiku-rebrand): create unified stage orchestrator - plugin/lib/orchestrator.sh: stage loop (plan->build->adversarial->persist->gate) - plugin/skills/new/SKILL.md: /haiku:new command - plugin/skills/run/SKILL.md: /haiku:run command - Updated autopilot, state.sh, elaborate, execute for stage-based flow - Deprecation aliases for /haiku:elaborate and /haiku:execute Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(haiku-rebrand): rewrite website for H·AI·K·U business audience - Homepage: lifecycle visualization, domain profiles, principles - /methodology: 4-phase lifecycle deep dive - /methodology/[phase]: per-phase pages with cross-domain examples - /studios: domain profile pages - Design system: gray→stone, blue→teal, Inter font - Navigation restructured for methodology-first experience Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: advance wave 3 units (06, 10) → reviewer * status: mark unit-06-stage-orchestrator as completed * status: mark unit-10-website-homepage-methodology as completed * status: mark wave 4 units (07, 08, 11, 13) as in_progress, hat: planner * status: advance wave 4 units (07, 08, 11, 13) → builder * feat(haiku-rebrand): add persistence abstraction with git and filesystem adapters - plugin/lib/persistence.sh: interface + dispatch by studio persistence.type - plugin/lib/adapters/git.sh: git adapter (commit, branch, merge, PR) - plugin/lib/adapters/filesystem.sh: filesystem adapter (cp, mkdir) - Updated orchestrator, skills, and hooks to use persistence layer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(haiku-rebrand): add legacy intent migration system - plugin/lib/migrate.sh: 5 new functions for intent migration - plugin/skills/migrate/SKILL.md: interactive /haiku:migrate command - inject-context.sh: detect legacy intents on session start - Symlink backward-compat, software studio assumption, opt-in gap planning Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor(haiku-rebrand): dissolve hats and workflows into stage-based resolution - hat.sh: resolve hats from STAGE.md sections instead of standalone files - Removed plugin/hats/ directory (16 files) — content lives in STAGE.md - Removed plugin/workflows.yml — stages define their own hat sequences - Updated hooks, skills, and dag.sh for stage-based hat resolution Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(haiku-rebrand): rewrite developer docs for H·AI·K·U - 6 new docs: getting-started, cli-reference, studios, stages, persistence, migration - Concepts rewrite with stage-based model - AI-DLC → H·AI·K·U terminology across all 24 existing docs - Updated sidebar sections, navigation mega menu, and docs landing page - Hats reorganized by stage within studios - Workflows rewritten as studios & stages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: advance wave 4 units (07, 08, 11, 13) → reviewer * status: mark unit-13-legacy-intent-migration as completed * status: mark unit-07-dissolve-hats-workflows as completed * status: mark unit-08-persistence-abstraction as completed * status: mark unit-11-website-developer-docs as completed * status: mark unit-12 as in_progress, hat: planner * status: advance unit-12 → builder * docs(haiku-rebrand): sync CLAUDE.md, paper, and terminology for H·AI·K·U - CLAUDE.md: full rewrite with studios/stages/persistence terminology - sync-check.md: updated for studio/stage architecture - Paper: haiku-method.md as canonical, ai-dlc-2026.md archived - Website: paper references updated Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: advance unit-12 → reviewer * status: unit-12 rejected, back to builder (retry 1) * fix(haiku-rebrand): update stale advance/SKILL.md references in CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * status: unit-12 back to reviewer after fix * status: mark unit-12-claude-md-paper-sync as completed * status: mark intent haiku-rebrand as completed * fix(haiku-rebrand): address PR review pass 9 findings - migrate.sh: fix symlink relative path for backward compat - Issues 2-5 (architecture-spec.md terminology, unit-13 placeholder, security example) already resolved in prior passes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): address PR review implementation findings - inject-context.sh: default studio "software" → "ideation" (lines 403, 406) - inject-context.sh: remove stale ACTIVE_STAGE="development" default - inject-context.sh: fix /ai-dlc:reset → /haiku:reset - inject-context.sh: flat unit-*.md path → stages/*/units/unit-*.md (nested) - CLAUDE.md: review_gate: → review: field name in concept-to-impl table - orchestrator.sh: fix dead loop in hku_persist_stage_outputs (now copies output files to scope-based target directories) - studio.sh: replace bare printf JSON construction with jq for safe escaping - git.sh: repo_root uses git rev-parse --show-toplevel (canonical, not worktree-list heuristic) - git.sh: checkout failure before merge now returns 1 (not silently proceeds on wrong branch) Co-authored-by: Jason Waldrip <jason@waldrip.net> * fix(haiku-rebrand): address implementation review findings - inject-context.sh: fix 2 stale intent paths (.haiku/* → .haiku/intents/*) - inject-context.sh: fix discovery.md display path to use .haiku/intents/ - inject-context.sh: replace all /ai-dlc: with /haiku: (14 occurrences) - inject-context.sh: fix default studio/stage from software/development to ideation/research - inject-context.sh: fix team name prefix from ai-dlc to haiku - git.sh: fix repo_root resolution inside worktrees with fallback - git.sh: remove silent auto-commit of .gitignore, emit warning instead - stage.sh: fix input scope resolution for cross-stage outputs (project/stage/intent) - hat.sh: fix defaults from software/development to ideation/research - filesystem.sh: fix glob on empty workspace (star-copy → dot-copy) - migrate.sh: add input validation for yq expression interpolation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(haiku-rebrand): website content overhaul - Replace remaining AI-DLC copy with H·AI·K·U language across 38 files - New blog post: Introducing H·AI·K·U — covers the why, what, and philosophy - New /how-it-works page with technical deep-dive into stage loops, hats, DAG-based unit management, persistence adapters, and knowledge architecture - Studio-first language throughout — Software studio instead of AI-DLC - Command references updated from /ai-dlc:* to /haiku:* - Path references updated from .ai-dlc/ to .haiku/ - Feed titles, metadata, and SEO updated to H·AI·K·U branding - Navigation updated with How It Works link Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): address implementation review findings (pass 10) - inject-context.sh: fix reconciliation block unit paths (lines 96, 112, 118) from flat "$reconcile_dir"/unit-*.md to nested "$reconcile_dir"/stages/*/units/unit-*.md — without this, post-merge auto-completion of intents would silently find zero units - sync-check.md: restore HEAD version (working tree had uncommitted revert to pre-rebrand content with old plugin/hats/ and Pass terminology) - enforce-iteration.sh: replace remaining /ai-dlc:execute and /ai-dlc:reset references in user-visible echo output with /haiku:execute and /haiku:reset - redirect-plan-mode.sh: update plan mode block message from /ai-dlc:elaborate to /haiku:elaborate throughout - workflow-guard.sh: update guard warning from /ai-dlc:execute to /haiku:execute - subagent-context.sh: update team communication note from /ai-dlc:execute to /haiku:execute - elaborate/SKILL.md: update /ai-dlc:advance reference to /haiku:advance - release-notes/SKILL.md: update skill name and all command examples from /ai-dlc:release-notes to /haiku:release-notes Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): thorough AI-DLC → H·AI·K·U sweep across all website content Exhaustive search-and-replace of all remaining AI-DLC references in website source files. Updated blog posts, docs, templates, paper paths, and component text. Package identifiers (thebushidocollective/ai-dlc), domain URLs (ai-dlc.dev), migration docs, and archived paper content preserved as intentional references. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): fix remaining flat .haiku/{slug}/ paths to .haiku/intents/{slug}/ - dag.sh: git history lookups use nested intent paths - design-blueprint.sh: intent directory resolution - run-visual-comparison.sh: screenshot output paths - resolve-design-ref.sh: prior-iteration screenshot paths - enforce-iteration.sh: blocker/state path references in output messages - subagent-context.sh: all state path references in agent instructions - templates/page.tsx: domain ai-dlc.dev -> haikumethod.ai and nested intent paths Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): fix remaining flat intent paths in lib files - dag.sh: update git-history intent lookups from .haiku/$slug/ to .haiku/intents/$slug/ (lines 713, 729, 760, 788). Also fix studio defaults from "software" to "ideation" (lines 736, 767, 795). Fix stale path comment and variable name (after_ai_dlc → after_haiku). - design-blueprint.sh: intent_dir flat .haiku/${intent_slug} → .haiku/intents/${intent_slug} (line 253) - run-visual-comparison.sh: output_dir flat .haiku/$intent_slug/ → .haiku/intents/$intent_slug/ (line 315) - resolve-design-ref.sh: three flat path fixes (lines 330, 370, 608) and one stale function name dlc_state_load → hku_state_load (line 615) Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): fix remaining AI-DLC branding and stale flat path docs - inject-context.sh: template path placeholders use .haiku/intents/{intent-slug}/state/ - enforce-iteration.sh: template path placeholders use .haiku/intents/{intent-slug}/state/ - subagent-context.sh: rename section headers/comments from AI-DLC to H·AI·K·U - subagent-hook.sh: update comment from AI-DLC to H·AI·K·U - quality-gate.sh: update comment from AI-DLC to H·AI·K·U - workflow-guard.sh: update comment from AI-DLC to H·AI·K·U - state.sh: fix header comment path (missing intents/ prefix) - haiku.sh: remove stale "AI-DLC" reference in header Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): fix stale flat path comments in design-blueprint.sh Update comment docs to use .haiku/intents/{intent_slug}/ (nested form) matching the established path convention throughout the codebase. Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): fix flat unit-*.md paths in dag.sh and subagent-context.sh All unit file lookups now use the nested path structure: stages/*/units/unit-*.md instead of the old flat: unit-*.md Affected functions in dag.sh (12 occurrences): - find_ready_units, find_ready_units_for_pass, find_in_progress_units - find_blocked_units, find_completed_units, get_dag_status_table - get_dag_summary, is_dag_complete, validate_dag And subagent-context.sh (2 occurrences): - Unit status guard check (ls) - Fallback unit list loop Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): update domain constants to haikumethod.ai and fix templates - constants.ts/feed.ts: SITE_URL → haikumethod.ai, SITE_NAME → H·AI·K·U - Deduplicate SITE_URL imports (blog, robots, sitemap use constants.ts) - layout.tsx: Plausible analytics domain → haikumethod.ai, import from constants - templates/README.md: correct domain and directory structure (stages/{stage}/units/) - templates/page.tsx: update quick setup paths and unit description - pass.sh: update header comment as legacy compat shim Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): fix remaining AI-DLC branding in website constants and dag.sh defaults * fix(haiku-rebrand): fix flat haiku paths and ai-dlc branch refs in skill files - All .haiku/${slug}/ paths → .haiku/intents/${slug}/ - All .haiku/{slug}/ doc paths → .haiku/intents/{slug}/ - All unit-*.md globs → stages/*/units/unit-*.md (nested structure) - All ai-dlc/${slug}/main branch refs → haiku/${slug}/main - dag.sh: all 12 unit-*.md iteration globs updated to stages/*/units/ - subagent-context.sh: 2 flat unit-*.md references updated Affected skill files: elaborate, execute, advance, followup, adopt, operate, resume, reflect, reset, cleanup, refine, quick, seed, fundamentals, integrate, wireframes, adversarial-review, discover, ticket-sync, knowledge-synthesize, backpressure Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): fix remaining flat haiku path references - followup/SKILL.md: .haiku/{new-slug}/ → .haiku/intents/{new-slug}/ - context-monitor.sh: .haiku/{intent-slug}/state/ → .haiku/intents/{intent-slug}/state/ Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): fix stale .haiku/ example paths in wireframes and adopt skills Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com> * fix(haiku-rebrand): fix branch names, labels, schemas, and remaining ai-dlc references - elaborate/execute/followup/adopt SKILL.md: ai-dlc/ → haiku/ branch names - operate SKILL.md: K8s/Docker/systemd labels use haiku namespace - advance SKILL.md: stderr prefix updated to haiku: - plugin.json: homepage → haikumethod.ai - 5 provider schemas: $id → haikumethod.ai - pass.sh: LEGACY COMPATIBILITY SHIM notice in header - templates: ai-dlc-example → haiku-example directory + page.tsx + README.md - capture-interface.md: AI-DLC → H·AI·K·U, .ai-dlc → .haiku/intents path - adopt SKILL.md: .haiku/$SLUG → .haiku/intents/$SLUG paths Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(website): add 6th failure mode card + center deep dive icons * feat(website): add elaboration section + visual continuous/discrete + fix hat descriptions - New 'Elaboration: The Human-AI Handshake' section before stage loop - Visual pipeline diagrams for continuous/discrete modes with gate indicators - Fix: each stage runs its own hat sequence, not always plan→build→review - Gate legend with color coding * feat(website): visual command walkthrough — /haiku:new and /haiku:run - Replaced monospace text dumps with visual cards and pipeline diagrams - /haiku:new: 4-step cards (describe→discover→decompose→approve) with human/AI/collaborative badges - /haiku:run: stage pipeline visualization + 3-step internal mechanics - Removed /haiku:execute — /haiku:run handles everything - Delivery callout after final stage * feat(website): review modes explained with examples + discrete handoff clarity - Replaced terse legend with full Review Modes Explained section - auto/ask/external each get a card with description, context, and concrete example - Discrete mode callout: every stage boundary = external handoff between people - Explains how ask is internal (same user) vs external (different person/team) * fix(haiku-rebrand): address pass 15 — stale function calls, paths, and branding across skills + website - All dlc_*/aidlc_* → hku_*/haiku_* across 20+ SKILL.md files (208+ replacements) - get_ai_dlc_config → get_haiku_config in advance/SKILL.md (10 occurrences) - .ai-dlc/ → .haiku/ paths in intent discovery, worktrees, knowledge, settings, studios - .ai-dlc/{slug}/ → .haiku/intents/{slug}/ for intent paths - Default studio/stage → ideation/research in execute/SKILL.md - Team names ai-dlc- → haiku- prefix in execute, resume, fail skills - Branch names ai-dlc/ → haiku/ in elaborate, advance, integrate, cleanup, reflect - /tmp/ai-dlc-workspace-* → /tmp/haiku-workspace-* in elaborate - PR footer links ai-dlc.dev → haikumethod.ai in execute, advance, release-notes - MCP server name ai-dlc-review → haiku-review in dashboard - Website: install commands ai-dlc@ → haiku@ in quick-start, getting-started, installation, blog - Website: robots.txt, marketplace.json, settings-template.yml fully rebranded - README.md fully rewritten for H·AI·K·U branding - Migrate skill preserved (intentional legacy .ai-dlc/ references) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(website): show security review gate + delivery progression in pipeline viz * fix(website): clarify /haiku:new flow — intent creation + first stage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(website): inception gate auto, security multi-value gate, install command - Inception stage gate: ask -> auto to match STAGE.md review: auto - Security stage gateLabel: show multi-value nature (ask in autopilot) - Security hat sequence: reviewer -> security-reviewer to match STAGE.md - Install command: ai-dlc@ -> haiku@ across all website pages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor(haiku-rebrand): restructure hats into per-stage files + cleanup - Removed orphan plugin/studios/software/stages/dev/ directory - Fixed 7 stale AI-DLC references in elaborate subskills - Restructured all 10 stages: hats extracted from STAGE.md into hats/*.md - hat.sh: file-based resolution with STAGE.md fallback - STAGE.md files now contain only metadata, guidance, and criteria Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: remove hat.sh STAGE.md fallback — hats resolve from files only Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(haiku-rebrand): enrich stage inputs — development/operations/security now pull from all upstream stages - development: +inception/discovery, +design/design-brief, +design/design-tokens - operations: +inception/discovery, +product/behavioral-spec - security: +inception/discovery, +product/data-contracts, +development/architecture * fix: design-brief scope stage → intent — development needs to read it * fix: runbook and threat-model → project scope — they accumulate across intents * fix(haiku-rebrand): remove all han/han.guru references — H·AI·K·U is a Claude Code plugin - Installation: claude /plugin install (not npx han) - No han CLI dependency - han.guru URLs → haikumethod.ai - han keep → .haiku/ file-based state - Community links updated - Resume skill examples use generic slugs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(docs): H·AI·K·U works in Claude Code AND Cowork, not Code-only Update all generic "Claude Code" references across docs, blog posts, papers, and TSX components to reflect that H·AI·K·U is a Claude plugin that works in both Claude Code and Cowork sessions. Product-name references in attribution, citations, and feature-specific contexts are preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: CLAUDE.md and architecture-spec hat references — file-based hats, not inline Both files described hats as "inline in STAGE.md" with "no standalone hat files." The implementation uses `stages/{stage}/hats/{hat}.md` files. Updated all references to reflect the file-based hat architecture: CLAUDE.md sync discipline, key file locations, concept mapping, terminology table, and hierarchy notes; architecture-spec file structure diagrams, hat layering table, bolt cycle diagram, sub-skill parameterization table, custom stage/studio examples, and migration path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(docs): remove ai-dlc install refs, han companion plugins — H·AI·K·U has native quality gates Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(docs): update all hat documentation to file-based model Replace all references to "inline hats in STAGE.md" with the actual file-based approach: hats live at stages/{stage}/hats/{hat}.md. - website/content/docs/hats.md: fix description line - website/content/docs/stages.md: rewrite "Hats Within Stages" section, update custom stage creation example to show separate hat files - website/content/docs/migration.md: fix backwards terminology row (was: "hats now inline in STAGE.md" — the opposite of truth), fix workflow→studio comparison, fix breaking changes entry - website/content/docs/concepts.md: fix stage constraints description - website/content/docs/getting-started.md: fix two inline hat references - website/content/papers/haiku-method.md: fix Studios as Profiles and Stage Orchestration sections - .ai-dlc/haiku-rebrand/unit-07: align spec with file-based implementation (hku_resolve_hat_instructions reads hat files, not STAGE.md sections; remove hku_extract_hat_section criterion that was never implemented) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: all inline-hat references → file-based hats across docs, paper, specs, and skills - docs: hats.md, concepts.md, workflows.md, stages.md, migration.md updated - paper: haiku-method.md updated - skills: fundamentals, subagent-context updated - unit specs: 05, 07, 11, 12 updated for accuracy - sync-check.md restored (recurring regression) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Jason Waldrip <jwaldrip@users.noreply.github.com> Co-authored-by: Jason Waldrip <undefined@users.noreply.github.com>
1 parent 0302696 commit 0a798c0

File tree

373 files changed

+25029
-7701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+25029
-7701
lines changed

.ai-dlc/haiku-rebrand/architecture-spec.md

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

.ai-dlc/haiku-rebrand/architecture-viz.html

Lines changed: 604 additions & 0 deletions
Large diffs are not rendered by default.

.ai-dlc/haiku-rebrand/discovery.md

Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
1+
---
2+
intent: haiku-rebrand
3+
created: 2026-04-02T19:46:00Z
4+
status: active
5+
---
6+
7+
# Discovery Log: H·AI·K·U Rebrand
8+
9+
Elaboration findings from the April 2, 2026 architecture design session.
10+
11+
## Architecture Decision: Studio/Stage/Persistence Model
12+
13+
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.
14+
15+
### Core Concepts
16+
17+
- **Studio** — a named lifecycle for a specific domain. Declares stage order and persistence layer.
18+
- **Stage** — a lifecycle phase. Plans, builds, and reviews its own work. Defines its own hats (roles). One STAGE.md contains everything.
19+
- **Persistence** — how work is saved. Git for software, Notion for content, filesystem for generic. The studio declares its type.
20+
- **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}`).
21+
22+
### Architecture Decision: Unified Stage Loop
23+
24+
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.
25+
26+
### Architecture Decision: Hats in Stages
27+
28+
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.
29+
30+
### Architecture Decision: Default Ideation Studio
31+
32+
Every project has a studio. The default is "ideation" with universal stages: research → create → review → deliver. Domain-specific studios (software, marketing) specialize this.
33+
34+
### Architecture Decision: Review Gates
35+
36+
Every stage runs automatically. The review gate controls what happens AFTER: auto (advance immediately), ask (pause for user), external (request team review / PR).
37+
38+
### Architecture Decision: Continuous vs Discrete
39+
40+
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.
41+
42+
### Architecture Decision: Persistence Abstraction
43+
44+
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.
45+
46+
### Architecture Decision: Product Review is `[external, ask]`
47+
48+
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.
49+
50+
## Codebase Context
51+
52+
**Stack:** TypeScript, Bash (shell scripts), Next.js 15 (website), Markdown (specs/docs)
53+
**Architecture:** Claude Code plugin (plugin/), static website (website/), methodology paper
54+
**Conventions:** YAML frontmatter in markdown, SKILL.md for skill definitions, shell libraries in plugin/lib/
55+
56+
## What Dissolves
57+
58+
- `plugin/hats/` directory — hats move into STAGE.md files
59+
- `plugin/workflows.yml` — stages define their own hat sequences
60+
- Workflow selection sub-skill — not needed
61+
- `phases/ELABORATION.md` and `phases/EXECUTION.md` — stage body is context for everything
62+
- The elaborate/execute command split — replaced by unified stage loop
63+
- Software-only assumption — persistence adapters make it domain-agnostic
64+
65+
## What Already Changed (This Session)
66+
67+
- `pass` renamed to `stage` across all plugin files, hooks, schemas, types
68+
- `plugin/passes/``plugin/stages/` (then further into studios)
69+
- Stage definitions created with input/output model (inputs in frontmatter, outputs/ directory)
70+
- Studio infrastructure: studio.sh, stage.sh, STUDIO.md
71+
- Built-in software studio with design/product/dev stages
72+
- STUDIO-SPEC.md written
73+
- HTML architecture visualization (3 versions in Downloads)
74+
75+
## Design Artifacts
76+
77+
These artifacts capture the full architecture design and are included in this intent for historical reference:
78+
79+
- **`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.
80+
- **`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.
81+
82+
## Architecture Decision: Input/Output Architecture
83+
84+
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).
85+
86+
### Inputs
87+
88+
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.
89+
90+
```yaml
91+
---
92+
name: security
93+
description: Threat modeling and penetration testing
94+
hats: [threat-modeler, red-team, blue-team, reviewer]
95+
review: external
96+
unit_types: [security, backend]
97+
inputs:
98+
- stage: product
99+
output: behavioral-spec
100+
- stage: development
101+
output: code
102+
---
103+
```
104+
105+
The orchestrator resolves each qualified input to the producing stage's output definition, then reads from its persisted location.
106+
107+
### Input Loading: Plan Phase Only
108+
109+
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.
110+
111+
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.
112+
113+
### Unit References
114+
115+
Unit specs get a `## References` section populated during the plan phase:
116+
117+
```markdown
118+
## References
119+
- .haiku/intents/{intent-slug}/knowledge/DISCOVERY.md
120+
- .haiku/intents/{intent-slug}/knowledge/BEHAVIORAL-SPEC.md
121+
```
122+
123+
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.
124+
125+
### Outputs
126+
127+
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.
128+
129+
```
130+
plugin/studios/software/stages/inception/
131+
├── STAGE.md
132+
└── outputs/
133+
└── DISCOVERY.md # scope: intent, format: text
134+
```
135+
136+
### Output Doc Schema
137+
138+
```yaml
139+
---
140+
name: discovery
141+
location: .haiku/intents/{intent-slug}/knowledge/DISCOVERY.md
142+
scope: intent
143+
format: text
144+
required: true
145+
---
146+
147+
# Discovery Output Guide
148+
149+
When exploring the domain, document:
150+
- Every entity and its fields
151+
- Every API endpoint and its behavior
152+
- Architecture patterns and constraints
153+
- Quality gate candidates
154+
```
155+
156+
### Output Scopes
157+
158+
| Scope | Persisted To | Lifespan |
159+
|-------|-------------|----------|
160+
| `project` | `.haiku/knowledge/{name}.md` | Persists across intents |
161+
| `intent` | `.haiku/intents/{intent-slug}/knowledge/{name}.md` | This intent only |
162+
| `stage` | `.haiku/intents/{intent-slug}/stages/{stage}/{name}` | Working context for this stage's units only |
163+
| `repo` | Project source tree | Actual code, configs — permanent |
164+
165+
### Example Output Types
166+
167+
- `ARCHITECTURE.md` — scope: project, format: text (persists to `.haiku/knowledge/`)
168+
- `DISCOVERY.md` — scope: intent, format: text
169+
- `DESIGN-BRIEF.md` — scope: stage, format: text (only for this stage's units)
170+
- `CODE.md` — scope: repo, format: code (actual source files)
171+
- `WIREFRAMES.md` — scope: stage, format: design
172+
173+
### What This Replaces
174+
175+
- No `knowledge/` directory inside stages — replaced by `outputs/`
176+
- No `requires:` or `produces:` fields in STAGE.md frontmatter — replaced by `inputs:` (frontmatter list) and `outputs/` (directory of docs)
177+
- No `output_path:` in knowledge templates — replaced by `location:` with scope-based paths
178+
179+
### Directory Structure
180+
181+
```
182+
.haiku/
183+
├── settings.yml
184+
├── knowledge/ # Project-scoped outputs land here
185+
│ ├── ARCHITECTURE.md
186+
│ └── CONVENTIONS.md
187+
├── studios/ # Custom/override studios
188+
└── intents/
189+
└── {name}/
190+
├── intent.md
191+
├── knowledge/ # Intent-scoped outputs land here
192+
│ ├── DISCOVERY.md ← inception wrote this
193+
│ ├── DESIGN-BRIEF.md ← design stage wrote this
194+
│ └── THREAT-MODEL.md ← security stage wrote this
195+
├── stages/
196+
│ ├── inception/
197+
│ │ ├── state.json
198+
│ │ ├── WORKING-NOTES.md ← stage-scoped output (lives here)
199+
│ │ └── units/
200+
│ ├── design/
201+
│ │ ├── state.json
202+
│ │ └── units/
203+
│ │ ├── unit-01-wireframes.md
204+
│ │ └── unit-02-tokens.md
205+
│ └── development/
206+
│ ├── state.json
207+
│ └── units/
208+
│ ├── unit-01-auth-api.md
209+
│ └── unit-02-frontend.md
210+
└── state.json # { active_stage, mode, studio }
211+
```
212+
213+
## Rename Map (from exploration agent)
214+
215+
### Directories and files to rename
216+
| From | To |
217+
|------|-----|
218+
| `.ai-dlc/` | `.haiku/` |
219+
| `plugin/hats/` | (removed — hats move into STAGE.md) |
220+
| `plugin/workflows.yml` | (removed — stages define hat sequences) |
221+
| `plugin/stages/` | `plugin/studios/{name}/stages/{stage}/STAGE.md` |
222+
| `plugin/passes/` | (already renamed to stages, then into studios) |
223+
224+
### Code identifier renames
225+
| From | To |
226+
|------|-----|
227+
| `dlc_*` functions | `hku_*` functions |
228+
| `aidlc_*` telemetry | `haiku_*` telemetry |
229+
| `_DLC_*` guard vars | `_HKU_*` guard vars |
230+
| `DLC_*` constants | `HKU_*` constants |
231+
| `CLAUDE_PLUGIN_ROOT` | (unchanged — this is a Claude Code convention) |
232+
233+
### Frontmatter field renames
234+
| From | To |
235+
|------|-----|
236+
| `passes:` | `stages:` (already done) |
237+
| `active_pass:` | `active_stage:` (already done) |
238+
| `pass:` | `stage:` (already done) |
239+
240+
### Command renames
241+
| From | To |
242+
|------|-----|
243+
| `/ai-dlc:elaborate` | `/haiku:stage` (or `/haiku:run` for continuous) |
244+
| `/ai-dlc:execute` | (dissolved into stage loop) |
245+
| `/ai-dlc:setup` | `/haiku:setup` |
246+
| `/ai-dlc:autopilot` | `/haiku:run` (continuous mode) |
247+
| `/ai-dlc:review` | `/haiku:review` |
248+
| `/ai-dlc:followup` | `/haiku:followup` |
249+
| `/ai-dlc:quick` | `/haiku:quick` |
250+
| `/ai-dlc:adopt` | `/haiku:adopt` |
251+
| `/ai-dlc:refine` | `/haiku:refine` |
252+
| `/ai-dlc:release-notes` | `/haiku:release-notes` |
253+
| `/ai-dlc:compound` | `/haiku:compound` |
254+
| `/ai-dlc:blockers` | `/haiku:blockers` |
255+
| `/ai-dlc:backpressure` | `/haiku:backpressure` |
256+
| `/ai-dlc:fundamentals` | `/haiku:fundamentals` |
257+
| `/ai-dlc:completion-criteria` | `/haiku:completion-criteria` |
258+
259+
### Files that reference ai-dlc (from exploration)
260+
- **Libraries (plugin/lib/):** config.sh, dag.sh, stage.sh, studio.sh, knowledge.sh, state.sh, deps.sh, parse.sh, design-blueprint.sh, telemetry.sh
261+
- **Hooks (plugin/hooks/):** inject-context.sh, subagent-context.sh, quality-gate.sh, redirect-plan-mode.sh, session-start.sh, stop-hook.sh
262+
- **Skills:** All 20+ SKILL.md files across elaborate, execute, setup, review, etc.
263+
- **Schemas:** settings.schema.json, all provider schemas
264+
- **Types:** shared/src/types.ts
265+
- **Plugin metadata:** .claude-plugin/plugin.json, .claude-plugin/hooks.json
266+
- **Website:** All content in website/content/docs/, website/content/papers/, website/content/blog/
267+
- **Root:** CLAUDE.md, CHANGELOG.md, README.md

.ai-dlc/haiku-rebrand/intent.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
workflow: default
3+
git:
4+
change_strategy: intent
5+
auto_merge: true
6+
auto_squash: false
7+
announcements: [changelog, release-notes]
8+
stages: []
9+
active_stage: ""
10+
iterates_on: ""
11+
created: 2026-04-02
12+
status: completed
13+
epic: ""
14+
quality_gates: [{name: tests, command: "bun test"}, {name: lint, command: "bun run lint"}, {name: typecheck, command: "bun run typecheck"}]
15+
---
16+
17+
# H·AI·K·U Rebrand — From AI-DLC to Domain-Agnostic Lifecycle Orchestrator
18+
19+
## Problem
20+
21+
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.
22+
23+
## Solution
24+
25+
Rebrand AI-DLC to H·AI·K·U and implement a studio/stage/persistence architecture:
26+
27+
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.
28+
29+
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.
30+
31+
3. **Persistence** is abstracted behind the studio. Git (branches, commits, PRs) is the software adapter. Other studios use other adapters (Notion, filesystem, CAD systems).
32+
33+
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.
34+
35+
5. The mechanical rebrand: `.ai-dlc/``.haiku/`, `/ai-dlc:*``/haiku:*`, all references across plugin, paper, website, and docs.
36+
37+
## Domain Model
38+
39+
### Entities
40+
- **Studio** — named lifecycle template. Declares stage order and persistence type. Lives in `plugin/studios/{name}/STUDIO.md` or `.haiku/studios/{name}/STUDIO.md`.
41+
- **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`.
42+
- **Persistence Adapter** — how work is saved/versioned/delivered. Git adapter is the default for software.
43+
- **Intent** — what's being built. Lives in `.haiku/intents/{name}/intent.md`.
44+
- **Unit** — discrete piece of work within a stage. Lives in `.haiku/intents/{name}/stages/{stage}/units/`.
45+
- **Bolt** — one cycle through a stage's hat sequence.
46+
- **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).
47+
- **Review Gate** — auto | ask | external. Controls what happens after a stage completes.
48+
49+
### Relationships
50+
- Studio has many Stages (ordered)
51+
- Studio has one Persistence Adapter
52+
- Stage has many Units
53+
- Stage has many Hats (ordered — the hat sequence IS the build workflow)
54+
- Stage has one Review Gate
55+
- Unit has many Bolts
56+
- Intent references one Studio
57+
- Intent has many Stages (from its studio)
58+
- Stage has many Outputs (declared in `outputs/` directory, persisted by scope)
59+
- Stage has many Inputs (list in frontmatter, resolved from prior stage outputs)
60+
61+
### Data Sources
62+
- Plugin source: `plugin/` directory (skills, hooks, lib, schemas)
63+
- Website: `website/` (Next.js 15 static site)
64+
- Paper: `website/content/papers/ai-dlc-2026.md`
65+
- Settings: `.ai-dlc/settings.yml` (→ `.haiku/settings.yml`)
66+
- Project-scoped outputs: `.haiku/knowledge/` (persist across intents)
67+
- Intent-scoped outputs: `.haiku/intents/{name}/knowledge/` (per-intent)
68+
- Stage-scoped outputs: `.haiku/intents/{name}/stages/{stage}/` (working context)
69+
- Architecture spec: `plugin/skills/elaborate/STUDIO-SPEC.md`
70+
- Architecture viz: `~/Downloads/haiku-architecture-v1.html`
71+
72+
## Success Criteria
73+
- [ ] All `.ai-dlc/` references → `.haiku/` across the entire codebase
74+
- [ ] All `/ai-dlc:*` commands → `/haiku:*`
75+
- [ ] All "AI-DLC" branding → "H·AI·K·U" in user-facing content
76+
- [ ] Default ideation studio created (`plugin/studios/ideation/`)
77+
- [ ] Software studio created (`plugin/studios/software/`) with 6 stages
78+
- [ ] Each stage has STAGE.md with hats, review mode, guidance, inputs list, and outputs/ directory
79+
- [ ] plugin/hats/ directory removed — hats live in STAGE.md
80+
- [ ] plugin/workflows.yml removed — stages define their own hat sequences
81+
- [ ] Unified stage orchestrator skill replaces separate elaborate/execute skills
82+
- [ ] Persistence abstraction with git adapter as default
83+
- [ ] Settings schema updated (studio: field, persistence config)
84+
- [ ] Paper terminology updated (pass → stage, new hierarchy documented)
85+
- [ ] Website docs updated for H·AI·K·U terminology
86+
- [ ] CLAUDE.md terminology table updated
87+
- [ ] All existing tests pass after rebrand
88+
- [ ] Continuous mode (default) works identically to current single-stage behavior
89+
90+
## Context
91+
92+
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.
93+
94+
Key artifacts from the session:
95+
- `plugin/skills/elaborate/STUDIO-SPEC.md` — technical specification
96+
- `~/Downloads/haiku-architecture-v1.html` — interactive visualization
97+
- `~/Downloads/ai-dlc-architecture-v2.html` / `v3.html` — earlier iterations

0 commit comments

Comments
 (0)