@tgoodington/intuition 9.3.0 → 9.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tgoodington/intuition",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "Domain-adaptive workflow system for Claude Code: prompt, outline, assemble specialist teams, detail with domain experts, build with format producers, test code output. Supports v8 compat (design, engineer, build) and v9 specialist workflows with 14 domain specialists and 6 format producers.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -77,6 +77,8 @@ Read these files:
77
77
  3. ALL files in `{context_path}/blueprints/*.md` — specialist blueprints.
78
78
  4. `{context_path}/outline.md` — approved plan with acceptance criteria.
79
79
  5. `{context_path}/scratch/*-decisions.json` (all specialist decision logs) — decision tiers and chosen options.
80
+ 6. `{context_path}/prompt_brief.md` — Commander's Intent, success criteria, non-negotiables (for Vision Alignment in report).
81
+ 7. `{context_path}/vision-review.md` (if exists) — flagged items from detail's vision review that build should address.
80
82
 
81
83
  From team_assignment.json, extract:
82
84
  - `specialist_assignments` — which specialist owns which tasks
@@ -317,6 +319,20 @@ Write the build report to `{context_path}/build_report.md` AND display a summary
317
319
 
318
320
  [If no test deliverables were found in any blueprint, write "No test deliverables found in blueprints."]
319
321
 
322
+ ## Vision Alignment
323
+ [Read `{context_path}/prompt_brief.md` — extract Success Criteria and Commander's Intent non-negotiables. Map each to the produced output.]
324
+
325
+ | Success Criterion | Addressed By | Status |
326
+ |---|---|---|
327
+ | [criterion from brief] | [output file(s) + task that covers it] | Covered / Gap |
328
+
329
+ **Non-negotiables check:**
330
+ | Non-negotiable | Assessment |
331
+ |---|---|
332
+ | [quality from Commander's Intent] | Met — [evidence] / Concern — [why] |
333
+
334
+ [If `{context_path}/vision-review.md` exists and contains flagged items for build, list them here with how they were handled during production.]
335
+
320
336
  ## Issues & Resolutions
321
337
  - [Any problems encountered and how they were resolved]
322
338
 
@@ -400,11 +400,52 @@ Triggers when Step 8d finds no remaining specialists.
400
400
 
401
401
  **9a. Conflict detection.** Spawn a haiku Task subagent: "Read all blueprint files in `{context_path}/blueprints/`. Compare for: contradictory decisions, overlapping file modifications with conflicting changes, inconsistent interface assumptions, and duplicated work. Write findings to `{context_path}/blueprint-conflicts.md`. If no conflicts, write 'No conflicts detected.'" Wait for completion. If conflicts found, present to user via AskUserQuestion and resolve before continuing.
402
402
 
403
- **9b. Completeness gate.** For each blueprint, verify: all 9 mandatory sections present and non-empty, Open Items section has no unresolved items (only [VERIFY]/execution-time items allowed), Acceptance Mapping addresses every acceptance criterion, Producer Handoff references a valid producer. If any fail, report specific failures and stop.
403
+ **9b. Vision review.** Skip this step if only 1 specialist completed (no cross-specialist seams to check).
404
404
 
405
- **9c. Update state.** Read `.project-memory-state.json`. Target active context. Set: `status` → `"building"`, `workflow.detail.completed` → `true`, `workflow.detail.completed_at` → current ISO timestamp, `workflow.build.started` `true`. Set on root: `last_handoff` → current ISO timestamp, `last_handoff_transition` → `"detail_to_build"`. Write back.
405
+ For multi-specialist projects, spawn a sonnet Task subagent:
406
406
 
407
- **9d. Route.** "All blueprints complete. Conflict check [passed/resolved]. Run `/clear` then `/intuition-build`"
407
+ "Read these files:
408
+ 1. `{context_path}/prompt_brief.md` — extract Commander's Intent (desired end state, non-negotiables, boundaries) and Success Criteria
409
+ 2. `{context_path}/outline.md` — extract the task list and acceptance criteria
410
+ 3. For each blueprint in `{context_path}/blueprints/`: read the Approach section (Section 3) and Acceptance Mapping section (Section 6) only — skip the full deliverable specs
411
+
412
+ Then evaluate the blueprints AS A WHOLE against the original vision:
413
+
414
+ **Coverage check:** Is every success criterion from the prompt brief addressed by at least one blueprint's Acceptance Mapping? List any unaddressed criteria.
415
+
416
+ **Seam check:** Are there handoff points between specialists where neither blueprint takes ownership? Look for: data or output from one specialist that another specialist's blueprint assumes exists but doesn't specify who creates it. Look for user-facing flows that cross specialist boundaries without explicit coordination.
417
+
418
+ **Intent alignment:** Do the collective approaches honor the non-negotiables from Commander's Intent? If the intent says 'simple and fast,' are any blueprints introducing complexity that conflicts? If the intent says 'professional and polished,' are all blueprints consistent with that quality bar?
419
+
420
+ **Consistency check:** Do blueprints that touch overlapping areas use consistent terminology, assumptions, and conventions?
421
+
422
+ Do NOT second-guess individual specialist domain decisions — that is their expertise. Focus only on the holistic picture: does the sum of these designs deliver the original vision?
423
+
424
+ Write findings to `{context_path}/vision-review.md`. Use this format:
425
+ - **Coverage**: [PASS or list gaps]
426
+ - **Seams**: [PASS or list gaps with which specialists are involved]
427
+ - **Intent Alignment**: [PASS or list concerns with specific non-negotiable references]
428
+ - **Consistency**: [PASS or list inconsistencies]
429
+ - **Overall**: PASS | CONCERNS — [one-sentence summary]
430
+
431
+ If everything passes, write 'Vision review passed — all blueprints align with Commander's Intent.'"
432
+
433
+ Wait for completion. If concerns are found, present each finding to the user via AskUserQuestion:
434
+ - Header: "Vision Review"
435
+ - Question: "[Finding summary]. How should we handle this?"
436
+ - Options vary by finding type:
437
+ - Coverage gap: "Add to [specialist]'s blueprint" / "Accept the gap" / "This needs a new task"
438
+ - Seam gap: "Assign to [specialist A]" / "Assign to [specialist B]" / "Flag for build"
439
+ - Intent drift: "Revise [specialist]'s approach" / "It's fine — intent is still met"
440
+ - Inconsistency: "Flag for producers to align" / "It's intentional"
441
+
442
+ If the user wants a blueprint revised, update `{context_path}/detail_brief.md` for that specialist and loop back to Step 5 for a focused re-run. If flagging for build, append the finding to `{context_path}/vision-review.md` with the resolution so build can reference it.
443
+
444
+ **9c. Completeness gate.** For each blueprint, verify: all 9 mandatory sections present and non-empty, Open Items section has no unresolved items (only [VERIFY]/execution-time items allowed), Acceptance Mapping addresses every acceptance criterion, Producer Handoff references a valid producer. If any fail, report specific failures and stop.
445
+
446
+ **9d. Update state.** Read `.project-memory-state.json`. Target active context. Set: `status` → `"building"`, `workflow.detail.completed` → `true`, `workflow.detail.completed_at` → current ISO timestamp, `workflow.build.started` → `true`. Set on root: `last_handoff` → current ISO timestamp, `last_handoff_transition` → `"detail_to_build"`. Write back.
447
+
448
+ **9e. Route.** "All blueprints complete. Conflict check [passed/resolved]. Vision review [passed/resolved]. Run `/clear` then `/intuition-build`"
408
449
 
409
450
  ## VOICE
410
451