ariadna 1.3.0 → 2.0.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.
- checksums.yaml +4 -4
- data/ariadna.gemspec +0 -1
- data/data/agents/ariadna-codebase-mapper.md +34 -722
- data/data/agents/ariadna-debugger.md +44 -1139
- data/data/agents/ariadna-executor.md +75 -396
- data/data/agents/ariadna-planner.md +78 -1215
- data/data/agents/ariadna-roadmapper.md +55 -582
- data/data/agents/ariadna-verifier.md +60 -702
- data/data/ariadna/templates/config.json +8 -33
- data/data/ariadna/workflows/debug.md +28 -0
- data/data/ariadna/workflows/execute-phase.md +31 -513
- data/data/ariadna/workflows/map-codebase.md +20 -319
- data/data/ariadna/workflows/new-milestone.md +20 -365
- data/data/ariadna/workflows/new-project.md +19 -880
- data/data/ariadna/workflows/plan-phase.md +24 -443
- data/data/ariadna/workflows/progress.md +20 -376
- data/data/ariadna/workflows/quick.md +19 -221
- data/data/ariadna/workflows/roadmap-ops.md +28 -0
- data/data/ariadna/workflows/verify-work.md +23 -560
- data/data/commands/ariadna/add-phase.md +11 -22
- data/data/commands/ariadna/debug.md +11 -143
- data/data/commands/ariadna/execute-phase.md +12 -30
- data/data/commands/ariadna/insert-phase.md +7 -14
- data/data/commands/ariadna/map-codebase.md +16 -49
- data/data/commands/ariadna/new-milestone.md +12 -25
- data/data/commands/ariadna/new-project.md +22 -26
- data/data/commands/ariadna/plan-phase.md +13 -22
- data/data/commands/ariadna/progress.md +16 -6
- data/data/commands/ariadna/quick.md +9 -11
- data/data/commands/ariadna/remove-phase.md +9 -12
- data/data/commands/ariadna/verify-work.md +14 -19
- data/data/skills/rails-backend/API.md +138 -0
- data/data/skills/rails-backend/CONTROLLERS.md +154 -0
- data/data/skills/rails-backend/JOBS.md +132 -0
- data/data/skills/rails-backend/MODELS.md +213 -0
- data/data/skills/rails-backend/SKILL.md +169 -0
- data/data/skills/rails-frontend/ASSETS.md +154 -0
- data/data/skills/rails-frontend/COMPONENTS.md +253 -0
- data/data/skills/rails-frontend/SKILL.md +187 -0
- data/data/skills/rails-frontend/VIEWS.md +168 -0
- data/data/skills/rails-performance/PROFILING.md +106 -0
- data/data/skills/rails-performance/SKILL.md +217 -0
- data/data/skills/rails-security/AUDIT.md +118 -0
- data/data/skills/rails-security/SKILL.md +422 -0
- data/data/skills/rails-testing/FIXTURES.md +78 -0
- data/data/skills/rails-testing/SKILL.md +160 -0
- data/data/skills/rails-testing/SYSTEM-TESTS.md +73 -0
- data/lib/ariadna/installer.rb +11 -15
- data/lib/ariadna/tools/cli.rb +0 -12
- data/lib/ariadna/tools/config_manager.rb +10 -72
- data/lib/ariadna/tools/frontmatter.rb +23 -1
- data/lib/ariadna/tools/init.rb +201 -401
- data/lib/ariadna/tools/model_profiles.rb +6 -14
- data/lib/ariadna/tools/phase_manager.rb +1 -10
- data/lib/ariadna/tools/state_manager.rb +170 -451
- data/lib/ariadna/tools/template_filler.rb +4 -12
- data/lib/ariadna/tools/verification.rb +21 -399
- data/lib/ariadna/uninstaller.rb +9 -0
- data/lib/ariadna/version.rb +1 -1
- data/lib/ariadna.rb +1 -0
- metadata +20 -91
- data/data/agents/ariadna-backend-executor.md +0 -261
- data/data/agents/ariadna-frontend-executor.md +0 -259
- data/data/agents/ariadna-integration-checker.md +0 -418
- data/data/agents/ariadna-phase-researcher.md +0 -469
- data/data/agents/ariadna-plan-checker.md +0 -622
- data/data/agents/ariadna-project-researcher.md +0 -618
- data/data/agents/ariadna-research-synthesizer.md +0 -236
- data/data/agents/ariadna-test-executor.md +0 -266
- data/data/ariadna/references/checkpoints.md +0 -772
- data/data/ariadna/references/continuation-format.md +0 -249
- data/data/ariadna/references/decimal-phase-calculation.md +0 -65
- data/data/ariadna/references/git-integration.md +0 -248
- data/data/ariadna/references/git-planning-commit.md +0 -38
- data/data/ariadna/references/model-profile-resolution.md +0 -32
- data/data/ariadna/references/model-profiles.md +0 -73
- data/data/ariadna/references/phase-argument-parsing.md +0 -61
- data/data/ariadna/references/planning-config.md +0 -194
- data/data/ariadna/references/questioning.md +0 -153
- data/data/ariadna/references/rails-conventions.md +0 -416
- data/data/ariadna/references/tdd.md +0 -267
- data/data/ariadna/references/ui-brand.md +0 -160
- data/data/ariadna/references/verification-patterns.md +0 -853
- data/data/ariadna/templates/codebase/architecture.md +0 -481
- data/data/ariadna/templates/codebase/concerns.md +0 -380
- data/data/ariadna/templates/codebase/conventions.md +0 -434
- data/data/ariadna/templates/codebase/integrations.md +0 -328
- data/data/ariadna/templates/codebase/stack.md +0 -189
- data/data/ariadna/templates/codebase/structure.md +0 -418
- data/data/ariadna/templates/codebase/testing.md +0 -606
- data/data/ariadna/templates/context.md +0 -283
- data/data/ariadna/templates/continue-here.md +0 -78
- data/data/ariadna/templates/debug-subagent-prompt.md +0 -91
- data/data/ariadna/templates/phase-prompt.md +0 -609
- data/data/ariadna/templates/planner-subagent-prompt.md +0 -117
- data/data/ariadna/templates/research-project/ARCHITECTURE.md +0 -439
- data/data/ariadna/templates/research-project/FEATURES.md +0 -168
- data/data/ariadna/templates/research-project/PITFALLS.md +0 -406
- data/data/ariadna/templates/research-project/STACK.md +0 -251
- data/data/ariadna/templates/research-project/SUMMARY.md +0 -247
- data/data/ariadna/templates/state.md +0 -176
- data/data/ariadna/templates/summary-complex.md +0 -59
- data/data/ariadna/templates/summary-minimal.md +0 -41
- data/data/ariadna/templates/summary-standard.md +0 -48
- data/data/ariadna/templates/user-setup.md +0 -310
- data/data/ariadna/workflows/add-phase.md +0 -111
- data/data/ariadna/workflows/add-todo.md +0 -157
- data/data/ariadna/workflows/audit-milestone.md +0 -241
- data/data/ariadna/workflows/check-todos.md +0 -176
- data/data/ariadna/workflows/complete-milestone.md +0 -644
- data/data/ariadna/workflows/diagnose-issues.md +0 -219
- data/data/ariadna/workflows/discovery-phase.md +0 -289
- data/data/ariadna/workflows/discuss-phase.md +0 -408
- data/data/ariadna/workflows/execute-plan.md +0 -448
- data/data/ariadna/workflows/help.md +0 -470
- data/data/ariadna/workflows/insert-phase.md +0 -129
- data/data/ariadna/workflows/list-phase-assumptions.md +0 -178
- data/data/ariadna/workflows/pause-work.md +0 -122
- data/data/ariadna/workflows/plan-milestone-gaps.md +0 -256
- data/data/ariadna/workflows/remove-phase.md +0 -154
- data/data/ariadna/workflows/research-phase.md +0 -74
- data/data/ariadna/workflows/resume-project.md +0 -306
- data/data/ariadna/workflows/set-profile.md +0 -80
- data/data/ariadna/workflows/settings.md +0 -145
- data/data/ariadna/workflows/transition.md +0 -493
- data/data/ariadna/workflows/update.md +0 -212
- data/data/ariadna/workflows/verify-phase.md +0 -226
- data/data/commands/ariadna/add-todo.md +0 -42
- data/data/commands/ariadna/audit-milestone.md +0 -42
- data/data/commands/ariadna/check-todos.md +0 -41
- data/data/commands/ariadna/complete-milestone.md +0 -136
- data/data/commands/ariadna/discuss-phase.md +0 -86
- data/data/commands/ariadna/help.md +0 -22
- data/data/commands/ariadna/list-phase-assumptions.md +0 -50
- data/data/commands/ariadna/pause-work.md +0 -35
- data/data/commands/ariadna/plan-milestone-gaps.md +0 -40
- data/data/commands/ariadna/reapply-patches.md +0 -110
- data/data/commands/ariadna/research-phase.md +0 -187
- data/data/commands/ariadna/resume-work.md +0 -40
- data/data/commands/ariadna/set-profile.md +0 -34
- data/data/commands/ariadna/settings.md +0 -36
- data/data/commands/ariadna/update.md +0 -37
- data/data/guides/backend.md +0 -3069
- data/data/guides/frontend.md +0 -1479
- data/data/guides/performance.md +0 -1193
- data/data/guides/security.md +0 -1522
- data/data/guides/style-guide.md +0 -1091
- data/data/guides/testing.md +0 -504
- data/data/templates.md +0 -94
|
@@ -1,493 +0,0 @@
|
|
|
1
|
-
<required_reading>
|
|
2
|
-
|
|
3
|
-
**Read these files NOW:**
|
|
4
|
-
|
|
5
|
-
1. `.ariadna_planning/STATE.md`
|
|
6
|
-
2. `.ariadna_planning/PROJECT.md`
|
|
7
|
-
3. `.ariadna_planning/ROADMAP.md`
|
|
8
|
-
4. Current phase's plan files (`*-PLAN.md`)
|
|
9
|
-
5. Current phase's summary files (`*-SUMMARY.md`)
|
|
10
|
-
|
|
11
|
-
</required_reading>
|
|
12
|
-
|
|
13
|
-
<purpose>
|
|
14
|
-
|
|
15
|
-
Mark current phase complete and advance to next. This is the natural point where progress tracking and PROJECT.md evolution happen.
|
|
16
|
-
|
|
17
|
-
"Planning next phase" = "current phase is done"
|
|
18
|
-
|
|
19
|
-
</purpose>
|
|
20
|
-
|
|
21
|
-
<process>
|
|
22
|
-
|
|
23
|
-
<step name="load_project_state" priority="first">
|
|
24
|
-
|
|
25
|
-
Before transition, read project state:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
cat .ariadna_planning/STATE.md 2>/dev/null
|
|
29
|
-
cat .ariadna_planning/PROJECT.md 2>/dev/null
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Parse current position to verify we're transitioning the right phase.
|
|
33
|
-
Note accumulated context that may need updating after transition.
|
|
34
|
-
|
|
35
|
-
</step>
|
|
36
|
-
|
|
37
|
-
<step name="verify_completion">
|
|
38
|
-
|
|
39
|
-
Check current phase has all plan summaries:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
ls .ariadna_planning/phases/XX-current/*-PLAN.md 2>/dev/null | sort
|
|
43
|
-
ls .ariadna_planning/phases/XX-current/*-SUMMARY.md 2>/dev/null | sort
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**Verification logic:**
|
|
47
|
-
|
|
48
|
-
- Count PLAN files
|
|
49
|
-
- Count SUMMARY files
|
|
50
|
-
- If counts match: all plans complete
|
|
51
|
-
- If counts don't match: incomplete
|
|
52
|
-
|
|
53
|
-
<config-check>
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
cat .ariadna_planning/config.json 2>/dev/null
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
</config-check>
|
|
60
|
-
|
|
61
|
-
**If all plans complete:**
|
|
62
|
-
|
|
63
|
-
<if mode="yolo">
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
⚡ Auto-approved: Transition Phase [X] → Phase [X+1]
|
|
67
|
-
Phase [X] complete — all [Y] plans finished.
|
|
68
|
-
|
|
69
|
-
Proceeding to mark done and advance...
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Proceed directly to cleanup_handoff step.
|
|
73
|
-
|
|
74
|
-
</if>
|
|
75
|
-
|
|
76
|
-
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
77
|
-
|
|
78
|
-
Ask: "Phase [X] complete — all [Y] plans finished. Ready to mark done and move to Phase [X+1]?"
|
|
79
|
-
|
|
80
|
-
Wait for confirmation before proceeding.
|
|
81
|
-
|
|
82
|
-
</if>
|
|
83
|
-
|
|
84
|
-
**If plans incomplete:**
|
|
85
|
-
|
|
86
|
-
**SAFETY RAIL: always_confirm_destructive applies here.**
|
|
87
|
-
Skipping incomplete plans is destructive — ALWAYS prompt regardless of mode.
|
|
88
|
-
|
|
89
|
-
Present:
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
Phase [X] has incomplete plans:
|
|
93
|
-
- {phase}-01-SUMMARY.md ✓ Complete
|
|
94
|
-
- {phase}-02-SUMMARY.md ✗ Missing
|
|
95
|
-
- {phase}-03-SUMMARY.md ✗ Missing
|
|
96
|
-
|
|
97
|
-
⚠️ Safety rail: Skipping plans requires confirmation (destructive action)
|
|
98
|
-
|
|
99
|
-
Options:
|
|
100
|
-
1. Continue current phase (execute remaining plans)
|
|
101
|
-
2. Mark complete anyway (skip remaining plans)
|
|
102
|
-
3. Review what's left
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
Wait for user decision.
|
|
106
|
-
|
|
107
|
-
</step>
|
|
108
|
-
|
|
109
|
-
<step name="cleanup_handoff">
|
|
110
|
-
|
|
111
|
-
Check for lingering handoffs:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
ls .ariadna_planning/phases/XX-current/.continue-here*.md 2>/dev/null
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
If found, delete them — phase is complete, handoffs are stale.
|
|
118
|
-
|
|
119
|
-
</step>
|
|
120
|
-
|
|
121
|
-
<step name="update_roadmap_and_state">
|
|
122
|
-
|
|
123
|
-
**Delegate ROADMAP.md and STATE.md updates to ariadna-tools:**
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
TRANSITION=$(ariadna-tools phase complete "${current_phase}")
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
The CLI handles:
|
|
130
|
-
- Marking the phase checkbox as `[x]` complete with today's date
|
|
131
|
-
- Updating plan count to final (e.g., "3/3 plans complete")
|
|
132
|
-
- Updating the Progress table (Status → Complete, adding date)
|
|
133
|
-
- Advancing STATE.md to next phase (Current Phase, Status → Ready to plan, Current Plan → Not started)
|
|
134
|
-
- Detecting if this is the last phase in the milestone
|
|
135
|
-
|
|
136
|
-
Extract from result: `completed_phase`, `plans_executed`, `next_phase`, `next_phase_name`, `is_last_phase`.
|
|
137
|
-
|
|
138
|
-
</step>
|
|
139
|
-
|
|
140
|
-
<step name="archive_prompts">
|
|
141
|
-
|
|
142
|
-
If prompts were generated for the phase, they stay in place.
|
|
143
|
-
The `completed/` subfolder pattern from create-meta-prompts handles archival.
|
|
144
|
-
|
|
145
|
-
</step>
|
|
146
|
-
|
|
147
|
-
<step name="evolve_project">
|
|
148
|
-
|
|
149
|
-
Evolve PROJECT.md to reflect learnings from completed phase.
|
|
150
|
-
|
|
151
|
-
**Read phase summaries:**
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
cat .ariadna_planning/phases/XX-current/*-SUMMARY.md
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
**Assess requirement changes:**
|
|
158
|
-
|
|
159
|
-
1. **Requirements validated?**
|
|
160
|
-
- Any Active requirements shipped in this phase?
|
|
161
|
-
- Move to Validated with phase reference: `- ✓ [Requirement] — Phase X`
|
|
162
|
-
|
|
163
|
-
2. **Requirements invalidated?**
|
|
164
|
-
- Any Active requirements discovered to be unnecessary or wrong?
|
|
165
|
-
- Move to Out of Scope with reason: `- [Requirement] — [why invalidated]`
|
|
166
|
-
|
|
167
|
-
3. **Requirements emerged?**
|
|
168
|
-
- Any new requirements discovered during building?
|
|
169
|
-
- Add to Active: `- [ ] [New requirement]`
|
|
170
|
-
|
|
171
|
-
4. **Decisions to log?**
|
|
172
|
-
- Extract decisions from SUMMARY.md files
|
|
173
|
-
- Add to Key Decisions table with outcome if known
|
|
174
|
-
|
|
175
|
-
5. **"What This Is" still accurate?**
|
|
176
|
-
- If the product has meaningfully changed, update the description
|
|
177
|
-
- Keep it current and accurate
|
|
178
|
-
|
|
179
|
-
**Update PROJECT.md:**
|
|
180
|
-
|
|
181
|
-
Make the edits inline. Update "Last updated" footer:
|
|
182
|
-
|
|
183
|
-
```markdown
|
|
184
|
-
---
|
|
185
|
-
*Last updated: [date] after Phase [X]*
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
**Example evolution:**
|
|
189
|
-
|
|
190
|
-
Before:
|
|
191
|
-
|
|
192
|
-
```markdown
|
|
193
|
-
### Active
|
|
194
|
-
|
|
195
|
-
- [ ] JWT authentication
|
|
196
|
-
- [ ] Real-time sync < 500ms
|
|
197
|
-
- [ ] Offline mode
|
|
198
|
-
|
|
199
|
-
### Out of Scope
|
|
200
|
-
|
|
201
|
-
- OAuth2 — complexity not needed for v1
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
After (Phase 2 shipped JWT auth, discovered rate limiting needed):
|
|
205
|
-
|
|
206
|
-
```markdown
|
|
207
|
-
### Validated
|
|
208
|
-
|
|
209
|
-
- ✓ JWT authentication — Phase 2
|
|
210
|
-
|
|
211
|
-
### Active
|
|
212
|
-
|
|
213
|
-
- [ ] Real-time sync < 500ms
|
|
214
|
-
- [ ] Offline mode
|
|
215
|
-
- [ ] Rate limiting on sync endpoint
|
|
216
|
-
|
|
217
|
-
### Out of Scope
|
|
218
|
-
|
|
219
|
-
- OAuth2 — complexity not needed for v1
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
**Step complete when:**
|
|
223
|
-
|
|
224
|
-
- [ ] Phase summaries reviewed for learnings
|
|
225
|
-
- [ ] Validated requirements moved from Active
|
|
226
|
-
- [ ] Invalidated requirements moved to Out of Scope with reason
|
|
227
|
-
- [ ] Emerged requirements added to Active
|
|
228
|
-
- [ ] New decisions logged with rationale
|
|
229
|
-
- [ ] "What This Is" updated if product changed
|
|
230
|
-
- [ ] "Last updated" footer reflects this transition
|
|
231
|
-
|
|
232
|
-
</step>
|
|
233
|
-
|
|
234
|
-
<step name="update_current_position_after_transition">
|
|
235
|
-
|
|
236
|
-
**Note:** Basic position updates (Current Phase, Status, Current Plan, Last Activity) were already handled by `ariadna-tools phase complete` in the update_roadmap_and_state step.
|
|
237
|
-
|
|
238
|
-
Verify the updates are correct by reading STATE.md. If the progress bar needs updating, use:
|
|
239
|
-
|
|
240
|
-
```bash
|
|
241
|
-
PROGRESS=$(ariadna-tools progress bar --raw)
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
Update the progress bar line in STATE.md with the result.
|
|
245
|
-
|
|
246
|
-
**Step complete when:**
|
|
247
|
-
|
|
248
|
-
- [ ] Phase number incremented to next phase (done by phase complete)
|
|
249
|
-
- [ ] Plan status reset to "Not started" (done by phase complete)
|
|
250
|
-
- [ ] Status shows "Ready to plan" (done by phase complete)
|
|
251
|
-
- [ ] Progress bar reflects total completed plans
|
|
252
|
-
|
|
253
|
-
</step>
|
|
254
|
-
|
|
255
|
-
<step name="update_project_reference">
|
|
256
|
-
|
|
257
|
-
Update Project Reference section in STATE.md.
|
|
258
|
-
|
|
259
|
-
```markdown
|
|
260
|
-
## Project Reference
|
|
261
|
-
|
|
262
|
-
See: .ariadna_planning/PROJECT.md (updated [today])
|
|
263
|
-
|
|
264
|
-
**Core value:** [Current core value from PROJECT.md]
|
|
265
|
-
**Current focus:** [Next phase name]
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
Update the date and current focus to reflect the transition.
|
|
269
|
-
|
|
270
|
-
</step>
|
|
271
|
-
|
|
272
|
-
<step name="review_accumulated_context">
|
|
273
|
-
|
|
274
|
-
Review and update Accumulated Context section in STATE.md.
|
|
275
|
-
|
|
276
|
-
**Decisions:**
|
|
277
|
-
|
|
278
|
-
- Note recent decisions from this phase (3-5 max)
|
|
279
|
-
- Full log lives in PROJECT.md Key Decisions table
|
|
280
|
-
|
|
281
|
-
**Blockers/Concerns:**
|
|
282
|
-
|
|
283
|
-
- Review blockers from completed phase
|
|
284
|
-
- If addressed in this phase: Remove from list
|
|
285
|
-
- If still relevant for future: Keep with "Phase X" prefix
|
|
286
|
-
- Add any new concerns from completed phase's summaries
|
|
287
|
-
|
|
288
|
-
**Example:**
|
|
289
|
-
|
|
290
|
-
Before:
|
|
291
|
-
|
|
292
|
-
```markdown
|
|
293
|
-
### Blockers/Concerns
|
|
294
|
-
|
|
295
|
-
- ⚠️ [Phase 1] Database schema not indexed for common queries
|
|
296
|
-
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
After (if database indexing was addressed in Phase 2):
|
|
300
|
-
|
|
301
|
-
```markdown
|
|
302
|
-
### Blockers/Concerns
|
|
303
|
-
|
|
304
|
-
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
**Step complete when:**
|
|
308
|
-
|
|
309
|
-
- [ ] Recent decisions noted (full log in PROJECT.md)
|
|
310
|
-
- [ ] Resolved blockers removed from list
|
|
311
|
-
- [ ] Unresolved blockers kept with phase prefix
|
|
312
|
-
- [ ] New concerns from completed phase added
|
|
313
|
-
|
|
314
|
-
</step>
|
|
315
|
-
|
|
316
|
-
<step name="update_session_continuity_after_transition">
|
|
317
|
-
|
|
318
|
-
Update Session Continuity section in STATE.md to reflect transition completion.
|
|
319
|
-
|
|
320
|
-
**Format:**
|
|
321
|
-
|
|
322
|
-
```markdown
|
|
323
|
-
Last session: [today]
|
|
324
|
-
Stopped at: Phase [X] complete, ready to plan Phase [X+1]
|
|
325
|
-
Resume file: None
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
**Step complete when:**
|
|
329
|
-
|
|
330
|
-
- [ ] Last session timestamp updated to current date and time
|
|
331
|
-
- [ ] Stopped at describes phase completion and next phase
|
|
332
|
-
- [ ] Resume file confirmed as None (transitions don't use resume files)
|
|
333
|
-
|
|
334
|
-
</step>
|
|
335
|
-
|
|
336
|
-
<step name="offer_next_phase">
|
|
337
|
-
|
|
338
|
-
**MANDATORY: Verify milestone status before presenting next steps.**
|
|
339
|
-
|
|
340
|
-
**Use the transition result from `ariadna-tools phase complete`:**
|
|
341
|
-
|
|
342
|
-
The `is_last_phase` field from the phase complete result tells you directly:
|
|
343
|
-
- `is_last_phase: false` → More phases remain → Go to **Route A**
|
|
344
|
-
- `is_last_phase: true` → Milestone complete → Go to **Route B**
|
|
345
|
-
|
|
346
|
-
The `next_phase` and `next_phase_name` fields give you the next phase details.
|
|
347
|
-
|
|
348
|
-
If you need additional context, use:
|
|
349
|
-
```bash
|
|
350
|
-
ROADMAP=$(ariadna-tools roadmap analyze)
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
This returns all phases with goals, disk status, and completion info.
|
|
354
|
-
|
|
355
|
-
---
|
|
356
|
-
|
|
357
|
-
**Route A: More phases remain in milestone**
|
|
358
|
-
|
|
359
|
-
Read ROADMAP.md to get the next phase's name and goal.
|
|
360
|
-
|
|
361
|
-
**If next phase exists:**
|
|
362
|
-
|
|
363
|
-
<if mode="yolo">
|
|
364
|
-
|
|
365
|
-
```
|
|
366
|
-
Phase [X] marked complete.
|
|
367
|
-
|
|
368
|
-
Next: Phase [X+1] — [Name]
|
|
369
|
-
|
|
370
|
-
⚡ Auto-continuing: Plan Phase [X+1] in detail
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
Exit skill and invoke SlashCommand("/ariadna:plan-phase [X+1]")
|
|
374
|
-
|
|
375
|
-
</if>
|
|
376
|
-
|
|
377
|
-
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
378
|
-
|
|
379
|
-
```
|
|
380
|
-
## ✓ Phase [X] Complete
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
## ▶ Next Up
|
|
385
|
-
|
|
386
|
-
**Phase [X+1]: [Name]** — [Goal from ROADMAP.md]
|
|
387
|
-
|
|
388
|
-
`/ariadna:plan-phase [X+1]`
|
|
389
|
-
|
|
390
|
-
<sub>`/clear` first → fresh context window</sub>
|
|
391
|
-
|
|
392
|
-
---
|
|
393
|
-
|
|
394
|
-
**Also available:**
|
|
395
|
-
- `/ariadna:discuss-phase [X+1]` — gather context first
|
|
396
|
-
- `/ariadna:research-phase [X+1]` — investigate unknowns
|
|
397
|
-
- Review roadmap
|
|
398
|
-
|
|
399
|
-
---
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
</if>
|
|
403
|
-
|
|
404
|
-
---
|
|
405
|
-
|
|
406
|
-
**Route B: Milestone complete (all phases done)**
|
|
407
|
-
|
|
408
|
-
<if mode="yolo">
|
|
409
|
-
|
|
410
|
-
```
|
|
411
|
-
Phase {X} marked complete.
|
|
412
|
-
|
|
413
|
-
🎉 Milestone {version} is 100% complete — all {N} phases finished!
|
|
414
|
-
|
|
415
|
-
⚡ Auto-continuing: Complete milestone and archive
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
Exit skill and invoke SlashCommand("/ariadna:complete-milestone {version}")
|
|
419
|
-
|
|
420
|
-
</if>
|
|
421
|
-
|
|
422
|
-
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
423
|
-
|
|
424
|
-
```
|
|
425
|
-
## ✓ Phase {X}: {Phase Name} Complete
|
|
426
|
-
|
|
427
|
-
🎉 Milestone {version} is 100% complete — all {N} phases finished!
|
|
428
|
-
|
|
429
|
-
---
|
|
430
|
-
|
|
431
|
-
## ▶ Next Up
|
|
432
|
-
|
|
433
|
-
**Complete Milestone {version}** — archive and prepare for next
|
|
434
|
-
|
|
435
|
-
`/ariadna:complete-milestone {version}`
|
|
436
|
-
|
|
437
|
-
<sub>`/clear` first → fresh context window</sub>
|
|
438
|
-
|
|
439
|
-
---
|
|
440
|
-
|
|
441
|
-
**Also available:**
|
|
442
|
-
- Review accomplishments before archiving
|
|
443
|
-
|
|
444
|
-
---
|
|
445
|
-
```
|
|
446
|
-
|
|
447
|
-
</if>
|
|
448
|
-
|
|
449
|
-
</step>
|
|
450
|
-
|
|
451
|
-
</process>
|
|
452
|
-
|
|
453
|
-
<implicit_tracking>
|
|
454
|
-
Progress tracking is IMPLICIT: planning phase N implies phases 1-(N-1) complete. No separate progress step—forward motion IS progress.
|
|
455
|
-
</implicit_tracking>
|
|
456
|
-
|
|
457
|
-
<partial_completion>
|
|
458
|
-
|
|
459
|
-
If user wants to move on but phase isn't fully complete:
|
|
460
|
-
|
|
461
|
-
```
|
|
462
|
-
Phase [X] has incomplete plans:
|
|
463
|
-
- {phase}-02-PLAN.md (not executed)
|
|
464
|
-
- {phase}-03-PLAN.md (not executed)
|
|
465
|
-
|
|
466
|
-
Options:
|
|
467
|
-
1. Mark complete anyway (plans weren't needed)
|
|
468
|
-
2. Defer work to later phase
|
|
469
|
-
3. Stay and finish current phase
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
Respect user judgment — they know if work matters.
|
|
473
|
-
|
|
474
|
-
**If marking complete with incomplete plans:**
|
|
475
|
-
|
|
476
|
-
- Update ROADMAP: "2/3 plans complete" (not "3/3")
|
|
477
|
-
- Note in transition message which plans were skipped
|
|
478
|
-
|
|
479
|
-
</partial_completion>
|
|
480
|
-
|
|
481
|
-
<success_criteria>
|
|
482
|
-
|
|
483
|
-
Transition is complete when:
|
|
484
|
-
|
|
485
|
-
- [ ] Current phase plan summaries verified (all exist or user chose to skip)
|
|
486
|
-
- [ ] Any stale handoffs deleted
|
|
487
|
-
- [ ] ROADMAP.md updated with completion status and plan count
|
|
488
|
-
- [ ] PROJECT.md evolved (requirements, decisions, description if needed)
|
|
489
|
-
- [ ] STATE.md updated (position, project reference, context, session)
|
|
490
|
-
- [ ] Progress table updated
|
|
491
|
-
- [ ] User knows next steps
|
|
492
|
-
|
|
493
|
-
</success_criteria>
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Check for Ariadna updates via RubyGems, display changelog for versions between installed and latest, obtain user confirmation, and execute clean installation with cache clearing.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<required_reading>
|
|
6
|
-
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
-
</required_reading>
|
|
8
|
-
|
|
9
|
-
<process>
|
|
10
|
-
|
|
11
|
-
<step name="get_installed_version">
|
|
12
|
-
Detect whether Ariadna is installed locally or globally by checking both locations:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
# Check local first (takes priority)
|
|
16
|
-
if [ -f "./.claude/ariadna/VERSION" ]; then
|
|
17
|
-
cat "./.claude/ariadna/VERSION"
|
|
18
|
-
echo "LOCAL"
|
|
19
|
-
elif [ -f ~/.claude/ariadna/VERSION ]; then
|
|
20
|
-
cat ~/.claude/ariadna/VERSION
|
|
21
|
-
echo "GLOBAL"
|
|
22
|
-
else
|
|
23
|
-
echo "UNKNOWN"
|
|
24
|
-
fi
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Parse output:
|
|
28
|
-
- If last line is "LOCAL": installed version is first line, use `--local` flag for update
|
|
29
|
-
- If last line is "GLOBAL": installed version is first line, use `--global` flag for update
|
|
30
|
-
- If "UNKNOWN": proceed to install step (treat as version 0.0.0)
|
|
31
|
-
|
|
32
|
-
**If VERSION file missing:**
|
|
33
|
-
```
|
|
34
|
-
## Ariadna Update
|
|
35
|
-
|
|
36
|
-
**Installed version:** Unknown
|
|
37
|
-
|
|
38
|
-
Your installation doesn't include version tracking.
|
|
39
|
-
|
|
40
|
-
Running fresh install...
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Proceed to install step (treat as version 0.0.0 for comparison).
|
|
44
|
-
</step>
|
|
45
|
-
|
|
46
|
-
<step name="check_latest_version">
|
|
47
|
-
Check RubyGems for latest version:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
gem list ariadna --remote 2>/dev/null | grep ariadna
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**If gem check fails:**
|
|
54
|
-
```
|
|
55
|
-
Couldn't check for updates (offline or gem unavailable).
|
|
56
|
-
|
|
57
|
-
To update manually: `gem update ariadna && ariadna install --global`
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Exit.
|
|
61
|
-
</step>
|
|
62
|
-
|
|
63
|
-
<step name="compare_versions">
|
|
64
|
-
Compare installed vs latest:
|
|
65
|
-
|
|
66
|
-
**If installed == latest:**
|
|
67
|
-
```
|
|
68
|
-
## Ariadna Update
|
|
69
|
-
|
|
70
|
-
**Installed:** X.Y.Z
|
|
71
|
-
**Latest:** X.Y.Z
|
|
72
|
-
|
|
73
|
-
You're already on the latest version.
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Exit.
|
|
77
|
-
|
|
78
|
-
**If installed > latest:**
|
|
79
|
-
```
|
|
80
|
-
## Ariadna Update
|
|
81
|
-
|
|
82
|
-
**Installed:** X.Y.Z
|
|
83
|
-
**Latest:** A.B.C
|
|
84
|
-
|
|
85
|
-
You're ahead of the latest release (development version?).
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Exit.
|
|
89
|
-
</step>
|
|
90
|
-
|
|
91
|
-
<step name="show_changes_and_confirm">
|
|
92
|
-
**If update available**, fetch and show what's new BEFORE updating:
|
|
93
|
-
|
|
94
|
-
1. Fetch changelog from GitHub raw URL
|
|
95
|
-
2. Extract entries between installed and latest versions
|
|
96
|
-
3. Display preview and ask for confirmation:
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
## Ariadna Update Available
|
|
100
|
-
|
|
101
|
-
**Installed:** 1.5.10
|
|
102
|
-
**Latest:** 1.5.15
|
|
103
|
-
|
|
104
|
-
### What's New
|
|
105
|
-
────────────────────────────────────────────────────────────
|
|
106
|
-
|
|
107
|
-
## [1.5.15] - 2026-01-20
|
|
108
|
-
|
|
109
|
-
### Added
|
|
110
|
-
- Feature X
|
|
111
|
-
|
|
112
|
-
## [1.5.14] - 2026-01-18
|
|
113
|
-
|
|
114
|
-
### Fixed
|
|
115
|
-
- Bug fix Y
|
|
116
|
-
|
|
117
|
-
────────────────────────────────────────────────────────────
|
|
118
|
-
|
|
119
|
-
⚠️ **Note:** The installer performs a clean install of Ariadna folders:
|
|
120
|
-
- `commands/ariadna/` will be wiped and replaced
|
|
121
|
-
- `ariadna/` will be wiped and replaced
|
|
122
|
-
- `agents/ariadna-*` files will be replaced
|
|
123
|
-
|
|
124
|
-
(Paths are relative to your install location: `~/.claude/` for global, `./.claude/` for local)
|
|
125
|
-
|
|
126
|
-
Your custom files in other locations are preserved:
|
|
127
|
-
- Custom commands not in `commands/ariadna/` ✓
|
|
128
|
-
- Custom agents not prefixed with `ariadna-` ✓
|
|
129
|
-
- Custom hooks ✓
|
|
130
|
-
- Your CLAUDE.md files ✓
|
|
131
|
-
|
|
132
|
-
If you've modified any Ariadna files directly, they'll be automatically backed up to `ariadna-local-patches/` and can be reapplied with `/ariadna:reapply-patches` after the update.
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
Use AskUserQuestion:
|
|
136
|
-
- Question: "Proceed with update?"
|
|
137
|
-
- Options:
|
|
138
|
-
- "Yes, update now"
|
|
139
|
-
- "No, cancel"
|
|
140
|
-
|
|
141
|
-
**If user cancels:** Exit.
|
|
142
|
-
</step>
|
|
143
|
-
|
|
144
|
-
<step name="run_update">
|
|
145
|
-
Run the update using the install type detected in step 1:
|
|
146
|
-
|
|
147
|
-
**If LOCAL install:**
|
|
148
|
-
```bash
|
|
149
|
-
ariadna install --local
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
**If GLOBAL install (or unknown):**
|
|
153
|
-
```bash
|
|
154
|
-
ariadna install --global
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
Capture output. If install fails, show error and exit.
|
|
158
|
-
|
|
159
|
-
Clear the update cache so statusline indicator disappears:
|
|
160
|
-
|
|
161
|
-
**If LOCAL install:**
|
|
162
|
-
```bash
|
|
163
|
-
rm -f ./.claude/cache/ariadna-update-check.json
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
**If GLOBAL install:**
|
|
167
|
-
```bash
|
|
168
|
-
rm -f ~/.claude/cache/ariadna-update-check.json
|
|
169
|
-
```
|
|
170
|
-
</step>
|
|
171
|
-
|
|
172
|
-
<step name="display_result">
|
|
173
|
-
Format completion message (changelog was already shown in confirmation step):
|
|
174
|
-
|
|
175
|
-
```
|
|
176
|
-
╔═══════════════════════════════════════════════════════════╗
|
|
177
|
-
║ Ariadna Updated: v1.5.10 → v1.5.15 ║
|
|
178
|
-
╚═══════════════════════════════════════════════════════════╝
|
|
179
|
-
|
|
180
|
-
⚠️ Restart Claude Code to pick up the new commands.
|
|
181
|
-
|
|
182
|
-
[View full changelog](https://github.com/glittercowboy/ariadna/blob/main/CHANGELOG.md)
|
|
183
|
-
```
|
|
184
|
-
</step>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
<step name="check_local_patches">
|
|
188
|
-
After update completes, check if the installer detected and backed up any locally modified files:
|
|
189
|
-
|
|
190
|
-
Check for ariadna-local-patches/backup-meta.json in the config directory.
|
|
191
|
-
|
|
192
|
-
**If patches found:**
|
|
193
|
-
|
|
194
|
-
```
|
|
195
|
-
Local patches were backed up before the update.
|
|
196
|
-
Run /ariadna:reapply-patches to merge your modifications into the new version.
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
**If no patches:** Continue normally.
|
|
200
|
-
</step>
|
|
201
|
-
</process>
|
|
202
|
-
|
|
203
|
-
<success_criteria>
|
|
204
|
-
- [ ] Installed version read correctly
|
|
205
|
-
- [ ] Latest version checked via RubyGems
|
|
206
|
-
- [ ] Update skipped if already current
|
|
207
|
-
- [ ] Changelog fetched and displayed BEFORE update
|
|
208
|
-
- [ ] Clean install warning shown
|
|
209
|
-
- [ ] User confirmation obtained
|
|
210
|
-
- [ ] Update executed successfully
|
|
211
|
-
- [ ] Restart reminder shown
|
|
212
|
-
</success_criteria>
|