kyro-ai 3.2.3 → 3.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.
Files changed (92) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +14 -1
  3. package/WORKFLOW.yaml +1 -1
  4. package/dist/cli/app.d.ts.map +1 -1
  5. package/dist/cli/app.js +9 -0
  6. package/dist/cli/app.js.map +1 -1
  7. package/dist/cli/artifacts/json.d.ts +8 -0
  8. package/dist/cli/artifacts/json.d.ts.map +1 -0
  9. package/dist/cli/artifacts/json.js +18 -0
  10. package/dist/cli/artifacts/json.js.map +1 -0
  11. package/dist/cli/artifacts/paths.d.ts +9 -0
  12. package/dist/cli/artifacts/paths.d.ts.map +1 -0
  13. package/dist/cli/artifacts/paths.js +36 -0
  14. package/dist/cli/artifacts/paths.js.map +1 -0
  15. package/dist/cli/artifacts/schema.d.ts +102 -0
  16. package/dist/cli/artifacts/schema.d.ts.map +1 -0
  17. package/dist/cli/artifacts/schema.js +157 -0
  18. package/dist/cli/artifacts/schema.js.map +1 -0
  19. package/dist/cli/commands/artifact-doctor.d.ts +8 -0
  20. package/dist/cli/commands/artifact-doctor.d.ts.map +1 -0
  21. package/dist/cli/commands/artifact-doctor.js +246 -0
  22. package/dist/cli/commands/artifact-doctor.js.map +1 -0
  23. package/dist/cli/commands/doctor.d.ts +1 -1
  24. package/dist/cli/commands/doctor.d.ts.map +1 -1
  25. package/dist/cli/commands/doctor.js +5 -2
  26. package/dist/cli/commands/doctor.js.map +1 -1
  27. package/dist/cli/commands/repair.d.ts +4 -0
  28. package/dist/cli/commands/repair.d.ts.map +1 -0
  29. package/dist/cli/commands/repair.js +271 -0
  30. package/dist/cli/commands/repair.js.map +1 -0
  31. package/dist/cli/commands/scope.d.ts +2 -0
  32. package/dist/cli/commands/scope.d.ts.map +1 -0
  33. package/dist/cli/commands/scope.js +113 -0
  34. package/dist/cli/commands/scope.js.map +1 -0
  35. package/dist/cli/commands/tui.js +3 -3
  36. package/dist/cli/commands/tui.js.map +1 -1
  37. package/dist/cli/help.d.ts.map +1 -1
  38. package/dist/cli/help.js +35 -2
  39. package/dist/cli/help.js.map +1 -1
  40. package/dist/cli/options.d.ts.map +1 -1
  41. package/dist/cli/options.js +17 -0
  42. package/dist/cli/options.js.map +1 -1
  43. package/dist/cli/types.d.ts +2 -0
  44. package/dist/cli/types.d.ts.map +1 -1
  45. package/docs/cli.md +28 -0
  46. package/docs/kyro-adapter-architecture-redesign.md +987 -0
  47. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/kyro.json +11 -0
  48. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  49. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  50. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  51. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  52. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/index.json +15 -0
  53. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  54. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  55. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/state.json +11 -0
  56. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/kyro.json +11 -0
  57. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  58. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  59. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  60. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  61. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/index.json +15 -0
  62. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  63. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  64. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/state.json +10 -0
  65. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/kyro.json +11 -0
  66. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  67. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  68. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/index.json +15 -0
  69. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  70. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/state.json +11 -0
  71. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/kyro.json +11 -0
  72. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  73. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  74. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  75. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  76. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/index.json +15 -0
  77. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  78. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  79. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/state.json +11 -0
  80. package/fixtures/artifact-integrity/valid/.agents/kyro/kyro.json +11 -0
  81. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  82. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  83. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  84. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  85. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/index.json +15 -0
  86. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  87. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  88. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/state.json +11 -0
  89. package/package.json +6 -2
  90. package/scripts/check-artifact-fixtures.mjs +56 -0
  91. package/skills/sprint-forge/assets/modes/ad3c-cycle.md +89 -0
  92. package/skills/sprint-forge/assets/modes/execute-task.md +5 -3
@@ -0,0 +1,89 @@
1
+ # AD3C Cycle — Per-Task Implementation Micro-Cycle
2
+
3
+ Micro-cycle for executing individual tasks within a sprint phase. Each task goes through five steps before closing: **Analyze → Develop → Certify → Correct → Close**.
4
+
5
+ ```
6
+ forge (sprint macro-cycle)
7
+ ├── INIT
8
+ ├── PLAN
9
+ ├── EXECUTE (task by task)
10
+ │ └── AD3C (micro-cycle per task) ← THIS
11
+ │ ├── 1. ANALYZE
12
+ │ ├── 2. DEVELOP
13
+ │ ├── 3. CERTIFY
14
+ │ ├── 4. CORRECT
15
+ │ └── 5. CLOSE
16
+ ├── REVIEW
17
+ └── CLOSE
18
+ ```
19
+
20
+ ## 1. ANALYZE
21
+
22
+ Before touching any code:
23
+
24
+ - List the exact files the task will touch
25
+ - Identify implicit design decisions (new deps? new patterns? existing patterns to extend?)
26
+ - If analysis reveals the task plan is wrong, return to `plan-sprint.md` — do not implement on a broken plan
27
+ - Output: a checklist of files + decisions, written to the sprint markdown
28
+
29
+ ## 2. DEVELOP
30
+
31
+ One coherent intention per task:
32
+
33
+ - Each task produces one atomic change
34
+ - If development reveals work outside the task scope: convert it to technical debt and proceed. Do not expand this task
35
+ - Use existing project patterns. Do not introduce new ones without justification
36
+
37
+ ## 3. CERTIFY
38
+
39
+ Mandatory. Not optional. Run QA on everything the task touched:
40
+
41
+ - **TypeScript**: `tsc --noEmit` or equivalent typecheck
42
+ - **Lint**: project linter on changed files
43
+ - **Tests**: tests related to the changed code
44
+ - **Shell scripts** (if any): `bash -n` + `shellcheck`
45
+ - **JSON/YAML** (if any): validate format
46
+
47
+ Record concrete evidence — the actual command output, not "seems fine".
48
+
49
+ ## 4. CORRECT
50
+
51
+ If CERTIFY failed, do not close:
52
+
53
+ - Fix the specific QA failure
54
+ - Re-run CERTIFY
55
+ - Repeat until it passes, or until you recognize the plan was wrong (return to PLAN)
56
+
57
+ ## 5. CLOSE
58
+
59
+ Checkpoint and continue:
60
+
61
+ - Mark the task as completed in the sprint file
62
+ - Write state.json, update summary files
63
+ - If the task produced a committable change: commit with a descriptive message
64
+ - If the task was research/analysis only: no commit, just checkpoint
65
+
66
+ ## When to relax the cycle
67
+
68
+ | Situation | Action |
69
+ |-----------|--------|
70
+ | 1 file, 1 line change | ANALYZE and DEVELOP collapse. Go straight to CERTIFY |
71
+ | Mechanical refactor (rename, move) | Quick ANALYZE, mechanical DEVELOP, CERTIFY + CLOSE |
72
+ | Exploration / spike | No real CERTIFY. Mark as `[~]` research, checkpoint without commit |
73
+ | CERTIFY takes >30s | Run the fastest meaningful check. Commit, the full build runs in CI |
74
+ | Task touches 5+ files | Split the task first. If unsplittable, checkpoint per file |
75
+
76
+ ## Evidence format
77
+
78
+ Record cycle evidence inline in the sprint markdown:
79
+
80
+ - Pass: `[x] task-name (AD3C: A+D+CERT+CLOSE)`
81
+ - Corrected: `[x] task-name (AD3C: A+D+CERT×2+CORR×2+CLOSE)`
82
+ - Returned to plan: `[>] task-name (AD3C: PLAN→task analysis→returned to PLAN)`
83
+
84
+ ## Design rationale
85
+
86
+ - **ANALYZE before DEVELOP** catches wrong plans before code is written — the cheapest time to catch a mistake
87
+ - **CERTIFY before CLOSE** prevents leaving broken code in the sprint, even temporarily
88
+ - **CORRECT loops** force you to fix or escalate before shipping
89
+ - **Evidence format** makes sprint files auditable without replaying agent memory
@@ -7,13 +7,14 @@ Execute the active sprint task by task while keeping checkpoints cheap and audit
7
7
  1. Read `state.json` and `index.json`.
8
8
  2. Read the active `SPRINT-*.summary.json`.
9
9
  3. Open the active sprint Markdown only for the current phase/task details.
10
- 4. Read `review-task.md` only when validating completed work.
10
+ 4. Read `ad3c-cycle.md` use it as the execution methodology for every task.
11
+ 5. Read `review-task.md` only when validating completed work.
11
12
 
12
13
  ## Workflow
13
14
 
14
15
  1. Set execution metadata in the sprint file when execution starts.
15
16
  2. Process phases in order, and tasks in order unless dependencies require otherwise.
16
- 3. Mark the current task `[~]`, perform the work, run verification, then mark `[x]`, `[!]`, or `[>]`.
17
+ 3. For each task, follow the AD3C cycle (Analyze Develop Certify Correct Close) as specified in `ad3c-cycle.md`.
17
18
  4. Record concrete evidence inline for every task.
18
19
  5. Add an emergent phase only for required work that blocks the sprint objective or would create debt if deferred.
19
20
  6. After each phase, write the sprint file, refresh `SPRINT-*.summary.json`, `index.json`, and `state.json`.
@@ -23,4 +24,5 @@ Execute the active sprint task by task while keeping checkpoints cheap and audit
23
24
  - Do not checkpoint after every task unless the task itself completes the phase.
24
25
  - Do not defer all checkpointing to sprint close.
25
26
  - Do not introduce new project patterns without justification.
26
- - If implementation reveals the plan is wrong, return to `plan-sprint.md`.
27
+ - If AD3C analysis reveals the plan is wrong, return to `plan-sprint.md`.
28
+ - If AD3C correction loop exceeds 3 iterations, escalate: mark task `[!]` and continue to next task.