aios-core 4.3.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.aios-core/core/code-intel/code-intel-client.js +19 -5
  2. package/.aios-core/core/code-intel/hook-runtime.js +186 -0
  3. package/.aios-core/core/code-intel/index.js +2 -0
  4. package/.aios-core/core/code-intel/providers/code-graph-provider.js +8 -0
  5. package/.aios-core/core/code-intel/providers/provider-interface.js +9 -0
  6. package/.aios-core/core/code-intel/providers/registry-provider.js +515 -0
  7. package/.aios-core/core/doctor/checks/code-intel.js +95 -21
  8. package/.aios-core/core/doctor/checks/hooks-claude-count.js +15 -4
  9. package/.aios-core/core/doctor/checks/ide-sync.js +24 -7
  10. package/.aios-core/core/synapse/memory/memory-bridge.js +17 -43
  11. package/.aios-core/core/synapse/memory/synapse-memory-provider.js +201 -0
  12. package/.aios-core/data/entity-registry.yaml +836 -812
  13. package/.aios-core/data/workflow-chains.yaml +156 -0
  14. package/.aios-core/development/agents/aios-master.md +17 -10
  15. package/.aios-core/development/agents/analyst.md +17 -10
  16. package/.aios-core/development/agents/architect.md +17 -10
  17. package/.aios-core/development/agents/data-engineer.md +17 -10
  18. package/.aios-core/development/agents/dev.md +17 -10
  19. package/.aios-core/development/agents/devops.md +22 -10
  20. package/.aios-core/development/agents/pm.md +17 -10
  21. package/.aios-core/development/agents/po.md +17 -10
  22. package/.aios-core/development/agents/qa.md +17 -10
  23. package/.aios-core/development/agents/sm.md +17 -10
  24. package/.aios-core/development/agents/squad-creator.md +18 -9
  25. package/.aios-core/development/agents/ux-design-expert.md +16 -9
  26. package/.aios-core/development/tasks/apply-qa-fixes.md +7 -0
  27. package/.aios-core/development/tasks/architect-analyze-impact.md +8 -1
  28. package/.aios-core/development/tasks/brownfield-create-story.md +7 -0
  29. package/.aios-core/development/tasks/build-autonomous.md +7 -0
  30. package/.aios-core/development/tasks/create-deep-research-prompt.md +7 -0
  31. package/.aios-core/development/tasks/create-next-story.md +7 -0
  32. package/.aios-core/development/tasks/create-suite.md +7 -0
  33. package/.aios-core/development/tasks/dev-develop-story.md +8 -0
  34. package/.aios-core/development/tasks/execute-checklist.md +7 -0
  35. package/.aios-core/development/tasks/github-devops-github-pr-automation.md +7 -0
  36. package/.aios-core/development/tasks/github-devops-pre-push-quality-gate.md +7 -0
  37. package/.aios-core/development/tasks/po-close-story.md +7 -0
  38. package/.aios-core/development/tasks/qa-create-fix-request.md +7 -0
  39. package/.aios-core/development/tasks/qa-fix-issues.md +7 -0
  40. package/.aios-core/development/tasks/qa-gate.md +8 -0
  41. package/.aios-core/development/tasks/qa-review-story.md +8 -0
  42. package/.aios-core/development/tasks/release-management.md +7 -0
  43. package/.aios-core/development/tasks/spec-critique.md +8 -0
  44. package/.aios-core/development/tasks/spec-gather-requirements.md +7 -0
  45. package/.aios-core/development/tasks/spec-write-spec.md +5 -0
  46. package/.aios-core/development/tasks/validate-next-story.md +7 -0
  47. package/.aios-core/install-manifest.yaml +105 -89
  48. package/.aios-core/product/templates/ide-rules/claude-rules.md +48 -0
  49. package/package.json +1 -1
  50. package/packages/installer/src/config/templates/core-config-template.js +25 -0
  51. package/packages/installer/src/wizard/ide-config-generator.js +24 -3
  52. package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +15 -5
  53. package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +3 -3
  54. package/packages/installer/tests/unit/doctor/doctor-checks.test.js +68 -9
@@ -18,15 +18,22 @@ activation-instructions:
18
18
  - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
19
19
  - STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
20
20
  - STEP 3: |
21
- Activate using .aios-core/development/scripts/unified-activation-pipeline.js
22
- The UnifiedActivationPipeline.activate(agentId) method:
23
- - Loads config, session, project status, git config, permissions in parallel
24
- - Detects session type and workflow state sequentially
25
- - Builds greeting via GreetingBuilder with full enriched context
26
- - Filters commands by visibility metadata (full/quick/key)
27
- - Suggests workflow next steps if in recurring pattern
28
- - Formats adaptive greeting automatically
29
- - STEP 4: Display the greeting returned by GreetingBuilder
21
+ Display greeting using native context (zero JS execution):
22
+ 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + permission badge from current permission mode (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
23
+ 2. Show: "**Role:** {persona.role}"
24
+ - Append: "Story: {active story from docs/stories/}" if detected + "Branch: `{branch from gitStatus}`" if not main/master
25
+ 3. Show: "📊 **Project Status:**" as natural language narrative from gitStatus in system prompt:
26
+ - Branch name, modified file count, current story reference, last commit message
27
+ 4. Show: "**Available Commands:**" list commands from the 'commands' section above that have 'key' in their visibility array
28
+ 5. Show: "Type `*guide` for comprehensive usage instructions."
29
+ 5.5. Check `.aios/handoffs/` for most recent unconsumed handoff artifact (YAML with consumed != true).
30
+ If found: read `from_agent` and `last_command` from artifact, look up position in `.aios-core/data/workflow-chains.yaml` matching from_agent + last_command, and show: "💡 **Suggested:** `*{next_command} {args}`"
31
+ If chain has multiple valid next steps, also show: "Also: `*{alt1}`, `*{alt2}`"
32
+ If no artifact or no match found: skip this step silently.
33
+ After STEP 4 displays successfully, mark artifact as consumed: true.
34
+ 6. Show: "{persona_profile.communication.signature_closing}"
35
+ # FALLBACK: If native greeting fails, run: node .aios-core/development/scripts/unified-activation-pipeline.js sm
36
+ - STEP 4: Display the greeting assembled in STEP 3
30
37
  - STEP 5: HALT and await user input
31
38
  - IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
32
39
  - DO NOT: Load any other agent files during activation
@@ -37,7 +44,7 @@ activation-instructions:
37
44
  - CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
38
45
  - When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
39
46
  - STAY IN CHARACTER!
40
- - CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
47
+ - CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. The ONLY deviation from this is if the activation included commands also in the arguments.
41
48
  agent:
42
49
  name: River
43
50
  id: sm
@@ -18,25 +18,34 @@ activation-instructions:
18
18
  - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
19
19
  - STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
20
20
  - STEP 3: |
21
- Activate using .aios-core/development/scripts/unified-activation-pipeline.js
22
- The UnifiedActivationPipeline.activate(agentId) method:
23
- - Loads config, session, project status, git config, permissions in parallel
24
- - Detects session type and workflow state sequentially
25
- - Builds greeting via GreetingBuilder with full enriched context
26
- - Filters commands by visibility metadata (full/quick/key)
27
- - Suggests workflow next steps if in recurring pattern
21
+ Display greeting using native context (zero JS execution):
22
+ 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + permission badge from current permission mode (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
23
+ 2. Show: "**Role:** {persona.role}"
24
+ - Append: "Story: {active story from docs/stories/}" if detected + "Branch: `{branch from gitStatus}`" if not main/master
25
+ 3. Show: "📊 **Project Status:**" as natural language narrative from gitStatus in system prompt:
26
+ - Branch name, modified file count, current story reference, last commit message
27
+ 4. Show: "**Available Commands:**" list commands from the 'commands' section above that have 'key' in their visibility array
28
+ 5. Show: "Type `*guide` for comprehensive usage instructions."
29
+ 5.5. Check `.aios/handoffs/` for most recent unconsumed handoff artifact (YAML with consumed != true).
30
+ If found: read `from_agent` and `last_command` from artifact, look up position in `.aios-core/data/workflow-chains.yaml` matching from_agent + last_command, and show: "💡 **Suggested:** `*{next_command} {args}`"
31
+ If chain has multiple valid next steps, also show: "Also: `*{alt1}`, `*{alt2}`"
32
+ If no artifact or no match found: skip this step silently.
33
+ After STEP 4 displays successfully, mark artifact as consumed: true.
34
+ 6. Show: "{persona_profile.communication.signature_closing}"
35
+ # FALLBACK: If native greeting fails, run: node .aios-core/development/scripts/unified-activation-pipeline.js squad-creator
28
36
  - Formats adaptive greeting automatically
29
- - STEP 4: Display the greeting returned by GreetingBuilder
37
+ - STEP 4: Greeting already rendered inline in STEP 3 — proceed to STEP 5
30
38
  - STEP 5: HALT and await user input
31
39
  - IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
32
40
  - DO NOT: Load any other agent files during activation
33
41
  - ONLY load dependency files when user selects them for execution via command or request of a task
42
+ - EXCEPTION: STEP 5.5 may read `.aios/handoffs/` and `.aios-core/data/workflow-chains.yaml` during activation
34
43
  - The agent.customization field ALWAYS takes precedence over any conflicting instructions
35
44
  - CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
36
45
  - MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
37
46
  - When listing tasks/templates or presenting options during conversations, always show as numbered options list
38
47
  - STAY IN CHARACTER!
39
- - CRITICAL: On activation, execute STEPS 3-5 above (greeting, introduction, project status, quick commands), then HALT to await user requested assistance
48
+ - CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. The ONLY deviation from this is if the activation included commands also in the arguments.
40
49
  agent:
41
50
  name: Craft
42
51
  id: squad-creator
@@ -23,15 +23,22 @@ activation-instructions:
23
23
  - STEP 2: Adopt the hybrid persona (Sally + Brad Frost)
24
24
 
25
25
  - STEP 3: |
26
- Activate using .aios-core/development/scripts/unified-activation-pipeline.js
27
- The UnifiedActivationPipeline.activate(agentId) method:
28
- - Loads config, session, project status, git config, permissions in parallel
29
- - Detects session type and workflow state sequentially
30
- - Builds greeting via GreetingBuilder with full enriched context
31
- - Filters commands by visibility metadata (full/quick/key)
32
- - Suggests workflow next steps if in recurring pattern
33
- - Formats adaptive greeting automatically
34
- - STEP 4: Display the greeting returned by GreetingBuilder
26
+ Display greeting using native context (zero JS execution):
27
+ 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + permission badge from current permission mode (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
28
+ 2. Show: "**Role:** {persona.role}"
29
+ - Append: "Story: {active story from docs/stories/}" if detected + "Branch: `{branch from gitStatus}`" if not main/master
30
+ 3. Show: "📊 **Project Status:**" as natural language narrative from gitStatus in system prompt:
31
+ - Branch name, modified file count, current story reference, last commit message
32
+ 4. Show: "**Available Commands:**" list commands from the 'commands' section above that have 'key' in their visibility array
33
+ 5. Show: "Type `*guide` for comprehensive usage instructions."
34
+ 5.5. Check `.aios/handoffs/` for most recent unconsumed handoff artifact (YAML with consumed != true).
35
+ If found: read `from_agent` and `last_command` from artifact, look up position in `.aios-core/data/workflow-chains.yaml` matching from_agent + last_command, and show: "💡 **Suggested:** `*{next_command} {args}`"
36
+ If chain has multiple valid next steps, also show: "Also: `*{alt1}`, `*{alt2}`"
37
+ If no artifact or no match found: skip this step silently.
38
+ After STEP 4 displays successfully, mark artifact as consumed: true.
39
+ 6. Show: "{persona_profile.communication.signature_closing}"
40
+ # FALLBACK: If native greeting fails, run: node .aios-core/development/scripts/unified-activation-pipeline.js ux-design-expert
41
+ - STEP 4: Greeting already rendered inline in STEP 3 — proceed to STEP 5
35
42
  - STEP 5: HALT and await user input
36
43
  - IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
37
44
  - DO NOT: Load any other agent files during activation
@@ -338,3 +338,10 @@ This task is complete when:
338
338
  - ✅ All tests pass (linting, unit, integration)
339
339
  - ✅ Story file is updated with changes
340
340
  - ✅ Code is ready for QA re-review
341
+
342
+ ## Handoff
343
+ next_agent: @qa
344
+ next_command: *review {story-id}
345
+ condition: Fixes applied, ready for re-review
346
+ alternatives:
347
+ - agent: @dev, command: *run-tests, condition: Need to verify fixes pass tests first
@@ -824,4 +824,11 @@ module.exports = AnalyzeImpactTask;
824
824
  - Sanitize component paths and modification descriptions
825
825
  - Ensure approval workflow cannot be bypassed for critical changes
826
826
  - Validate output file paths for report generation
827
- - Log all high-risk modification attempts for audit
827
+ - Log all high-risk modification attempts for audit
828
+
829
+ ## Handoff
830
+ next_agent: @analyst
831
+ next_command: *research {topic}
832
+ condition: Complexity class is STANDARD or COMPLEX (research needed)
833
+ alternatives:
834
+ - agent: @pm, command: *write-spec, condition: Complexity class is SIMPLE (skip research)
@@ -354,4 +354,11 @@ The story creation is successful when:
354
354
  - Always prioritize existing system integrity
355
355
  - When in doubt about integration complexity, use brownfield-create-epic instead
356
356
  - Stories should take no more than 4 hours of focused development work
357
+
358
+ ## Handoff
359
+ next_agent: @po
360
+ next_command: *validate-story-draft {story-id}
361
+ condition: Brownfield story created from assessment
362
+ alternatives:
363
+ - agent: @sm, command: *draft, condition: Need additional stories from same assessment
357
364
 
@@ -190,3 +190,10 @@ The AutonomousBuildLoop emits these events for monitoring:
190
190
  ---
191
191
 
192
192
  _Task file for Story 8.1 - Coder Agent Loop_
193
+
194
+ ## Handoff
195
+ next_agent: @qa
196
+ next_command: *review {story-id}
197
+ condition: Autonomous build completed successfully
198
+ alternatives:
199
+ - agent: @dev, command: *build-resume {story-id}, condition: Build failed, needs resume
@@ -496,4 +496,11 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
496
496
  - Balance comprehensiveness with focus
497
497
  - Document assumptions and limitations clearly
498
498
  - Plan for iterative refinement based on initial findings
499
+
500
+ ## Handoff
501
+ next_agent: @pm
502
+ next_command: *write-spec
503
+ condition: Research complete (research.json created)
504
+ alternatives:
505
+ - agent: @architect, command: *analyze-impact, condition: Research reveals higher complexity than expected
499
506
 
@@ -782,3 +782,10 @@ Use the primary agent from "Specialized Agent Assignment" to determine which sel
782
782
  - Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `aios-core/tasks/validate-next-story`
783
783
 
784
784
  **ClickUp Integration Note:** This task now includes Epic verification (Section 5.1), ClickUp story task creation (Section 5.3), and automatic frontmatter updates (Section 5.4). Stories are created as subtasks of their parent Epic in ClickUp's Backlog list. If Epic verification or ClickUp sync fails, the story file will still be created locally with a warning message.
785
+
786
+ ## Handoff
787
+ next_agent: @po
788
+ next_command: *validate-story-draft {story-id}
789
+ condition: Story status is Draft
790
+ alternatives:
791
+ - agent: @dev, command: *develop {story-id}, condition: Story already validated by PO
@@ -281,4 +281,11 @@ Creates multiple related components in a single batch operation with dependency
281
281
  - Supports atomic creation (all or nothing)
282
282
  - Transaction log enables rollback functionality
283
283
  - Dependency resolution ensures correct creation order
284
+
285
+ ## Handoff
286
+ next_agent: @dev
287
+ next_command: *run-tests
288
+ condition: Test suite created, ready for execution
289
+ alternatives:
290
+ - agent: @qa, command: *review {story-id}, condition: Tests written as part of review
284
291
  - Preview functionality helps prevent mistakes
@@ -914,3 +914,11 @@ Found 5 technical decisions needed.
914
914
  - **Decision Logs**: Persisted in `.ai/decision-log-{story-id}.md` for future reference and review
915
915
  - **Educational Value**: Interactive mode explanations help developers learn framework patterns
916
916
  - **Scope Drift Prevention**: Pre-flight mode eliminates mid-development ambiguity
917
+
918
+ ## Handoff
919
+ next_agent: @qa
920
+ next_command: *review {story-id}
921
+ condition: Story status is Ready for Review
922
+ alternatives:
923
+ - agent: @qa, command: *gate {story-id}, condition: Quick gate decision needed
924
+ - agent: @dev, command: *apply-qa-fixes, condition: Self-identified issues during dev
@@ -299,3 +299,10 @@ The LLM will:
299
299
  - Execute the complete checklist validation
300
300
  - Present a final report with pass/fail rates and key findings
301
301
  - Offer to provide detailed analysis of any section, especially those with warnings or failures
302
+
303
+ ## Handoff
304
+ next_agent: @qa
305
+ next_command: *review {story-id}
306
+ condition: Checklist completed with all items passing
307
+ alternatives:
308
+ - agent: @dev, command: *develop {story-id}, condition: Checklist found blocking issues
@@ -711,3 +711,10 @@ github:
711
711
  - Gracefully handles missing story file
712
712
  - Uses GitHub CLI for reliability
713
713
  - Repository context from detector
714
+
715
+ ## Handoff
716
+ next_agent: @po
717
+ next_command: *close-story {story-id}
718
+ condition: PR merged successfully
719
+ alternatives:
720
+ - agent: @dev, command: *apply-qa-fixes, condition: PR review requested changes
@@ -851,3 +851,10 @@ Called via `@github-devops *pre-push` command.
851
851
  - Security scan is mandatory (TR-3.14.11)
852
852
  - User always has final approval
853
853
  - Detailed logging for troubleshooting
854
+
855
+ ## Handoff
856
+ next_agent: @devops
857
+ next_command: *push
858
+ condition: All quality checks PASS
859
+ alternatives:
860
+ - agent: @dev, command: *run-tests, condition: Quality checks FAIL, needs fixes
@@ -425,3 +425,10 @@ updated_at: 2026-02-05
425
425
  - `validate-next-story.md` - Validates story before implementation (START)
426
426
  - `po-close-story.md` - Closes story after merge (END)
427
427
  - `po-backlog-review.md` - Review backlog for sprint planning
428
+
429
+ ## Handoff
430
+ next_agent: @sm
431
+ next_command: *draft
432
+ condition: Story closed, next story in epic available
433
+ alternatives:
434
+ - agent: @po, command: *backlog-review, condition: Sprint review needed before next story
@@ -621,3 +621,10 @@ This task is complete when:
621
621
  - Constraints section present
622
622
  - File follows template structure
623
623
  ```
624
+
625
+ ## Handoff
626
+ next_agent: @dev
627
+ next_command: *fix-qa-issues
628
+ condition: QA_FIX_REQUEST.md generated
629
+ alternatives:
630
+ - agent: @dev, command: *apply-qa-fixes, condition: Simple fixes, no structured request needed
@@ -683,3 +683,10 @@ metadata:
683
683
  - quality-assurance
684
684
  - development
685
685
  ```
686
+
687
+ ## Handoff
688
+ next_agent: @qa
689
+ next_command: *review {story-id}
690
+ condition: All QA_FIX_REQUEST issues resolved
691
+ alternatives:
692
+ - agent: @dev, command: *run-tests, condition: Verify fixes pass before re-review
@@ -419,4 +419,12 @@ Gate: CONCERNS → qa.qaLocation/gates/{epic}.{story}-{slug}.yml
419
419
  - Always write to standard path
420
420
  - Always update story with gate reference
421
421
  - Clear, actionable findings
422
+
423
+ ## Handoff
424
+ next_agent: @devops
425
+ next_command: *push
426
+ condition: QA gate verdict is PASS
427
+ alternatives:
428
+ - agent: @dev, command: *apply-qa-fixes, condition: QA gate verdict is FAIL or CONCERNS
429
+ - agent: @po, command: *close-story {story-id}, condition: QA gate verdict is WAIVED
422
430
 
@@ -703,4 +703,12 @@ After review:
703
703
 
704
704
  - **No Action Required**: The sync happens transparently when using story-manager utilities. If sync fails, story file is still saved locally with a warning message.
705
705
 
706
+ ## Handoff
707
+ next_agent: @dev
708
+ next_command: *apply-qa-fixes
709
+ condition: QA verdict is REJECT
710
+ alternatives:
711
+ - agent: @devops, command: *push, condition: QA verdict is APPROVE
712
+ - agent: @dev, command: *fix-qa-issues, condition: Structured fix from QA_FIX_REQUEST.md
713
+
706
714
  - **Manual Sync**: If needed, use: `npm run sync-story -- --story {epic}.{story}`
@@ -750,3 +750,10 @@ Migration: Replace /v1/users with /v2/users in API calls.
750
750
 
751
751
  - `ci-cd-configuration` - Set up CI to run before releases
752
752
  - `pr-automation` - Help users create PRs with proper commit formats
753
+
754
+ ## Handoff
755
+ next_agent: @po
756
+ next_command: *close-story {story-id}
757
+ condition: Release published successfully
758
+ alternatives:
759
+ - agent: @devops, command: *cleanup, condition: Post-release branch cleanup needed
@@ -593,3 +593,11 @@ metadata:
593
593
  - quality-gate
594
594
  - qa
595
595
  ```
596
+
597
+ ## Handoff
598
+ next_agent: @architect
599
+ next_command: *plan
600
+ condition: Critique verdict is APPROVED
601
+ alternatives:
602
+ - agent: @pm, command: *write-spec, condition: Critique verdict is NEEDS_REVISION
603
+ - agent: @architect, command: *analyze-impact, condition: Critique verdict is BLOCKED
@@ -543,3 +543,10 @@ metadata:
543
543
  - sdd-adoption
544
544
  inspiration: GitHub Spec-Kit 9-category taxonomy
545
545
  ```
546
+
547
+ ## Handoff
548
+ next_agent: @architect
549
+ next_command: *analyze-impact
550
+ condition: Requirements gathered (requirements.json created)
551
+ alternatives:
552
+ - agent: @pm, command: *write-spec, condition: SIMPLE complexity, skip assessment
@@ -529,3 +529,8 @@ metadata:
529
529
  - documentation
530
530
  - prompt-engineering
531
531
  ```
532
+
533
+ ## Handoff
534
+ next_agent: @qa
535
+ next_command: *critique-spec {story-id}
536
+ condition: Spec written (spec.md created)
@@ -462,4 +462,11 @@ Provide a structured validation report including:
462
462
  - **NO-GO**: Story requires fixes before implementation
463
463
  - **Implementation Readiness Score**: 1-10 scale
464
464
  - **Confidence Level**: High/Medium/Low for successful implementation
465
+
466
+ ## Handoff
467
+ next_agent: @dev
468
+ next_command: *develop {story-id}
469
+ condition: Story status is Approved (GO decision)
470
+ alternatives:
471
+ - agent: @sm, command: *draft, condition: Story rejected (NO-GO), needs rework
465
472