Commit 77e0d3e
feat: session tracking, schema improvements, SDK upgrade, test infrastructure (#70)
* feat: add session retrospective skill and run manifest tracking
Introduces structured post-implementation analysis — a /session-retrospective
skill that evaluates schema effectiveness, delegation alignment, note quality,
plan-to-execution fit, and friction across five dimensions. Includes run manifest
instructions in the shared orchestrator output style for durable session telemetry,
and a retrospective nudge after implementation completions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: improve session-retrospective skill robustness
Address issues found during skill review: remove hardcoded absolute
paths, add early exit for empty sessions, expand trigger description,
simplify terminal advancement, and add recency filter to fallback mode.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: upgrade MCP Kotlin SDK from 0.8.4 to 0.9.0
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: adopt ClientConnection and kotlin-sdk-testing from MCP SDK 0.9.0
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: enforce note schema gates on cascade-to-TERMINAL transitions
Cascade auto-completion previously bypassed gate enforcement, allowing
parent items with schema tags to reach TERMINAL with required notes
unfilled. Now cascade-to-TERMINAL checks all required notes (matching
the "complete" trigger behavior). Schema-free parents cascade freely.
Also extracts buildMissingNotesArray() to NoteSchemaJsonHelpers and
replaces inline filledKeys computation with buildFilledKeys() across
all three gate-check paths.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: document local-first squash flow in implement skill and CLAUDE.md
Update the /implement skill to reflect the local-first git workflow:
branches stay local, squash-merge into local main, and PRs are batched.
Align CLAUDE.md git workflow section to match.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: schema improvement — role validation, AdvanceItemTool consolidation
- Add VALID_SCHEMA_ROLES validation in YamlNoteSchemaService.parseEntry()
to catch typos and invalid role values at config load time (warns + skips)
- Consolidate AdvanceItemTool response fields to use shared
computePhaseNoteContext() instead of manual NoteSchemaJsonHelpers calls
- Remove findGuidancePointer() and buildNoteProgress() from
NoteSchemaJsonHelpers (now gate-check helpers only)
- Add plugin-change schema to config.yaml (gitignored, local only)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor(test): create shared test infrastructure — TestBase, fixtures, and helpers
Add reusable test utilities under current/src/test/.../test/:
- TestFixtures.kt: makeItem(), blocksDep(), makeNote(), JSON param helpers, response extractors
- BaseRepositoryTest.kt: H2 in-memory DB base class with createPersistedItem/Note/Dependency
- MockRepositoryProvider.kt: MockK-based RepositoryProvider factory with context() builder
- TestNoteSchemaService.kt: In-memory NoteSchemaService with FEATURE_IMPLEMENTATION/BUG_FIX presets
- TestInfrastructureTest.kt: 27 validation tests covering all shared infrastructure
Migrated SQLiteWorkItemRepositoryTest to extend BaseRepositoryTest as proof of concept.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: broaden retrospective nudge to cover all terminal transition paths
The retrospective nudge previously only fired after complete_tree, missing
single-item runs that reach terminal via advance_item. Updated the nudge
condition to trigger on any terminal transition during an /implement run,
with single-item, multi-item, and fallback detection rules.
Also: minor AdvanceItemTool optimization — derive existingKeys from
notesByKey instead of a separate .map() pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: replace session manifest with distributed session-tracking notes
The monolithic run manifest (stored as a CC session task) had a 100%
creation failure rate. Replace it with distributed `session-tracking`
notes on each work item, enforced by schema gates.
- Add default schema fallback to YamlNoteSchemaService (one-line change)
- Add session-tracking note to feature-implementation, bug-fix, and
plugin-change schemas in config.yaml
- Create new `default` schema as catch-all for untagged items
- Rewrite session-retrospective skill to aggregate distributed notes
- Remove manifest section from workflow-orchestrator output style
- Add lightweight delegation-metadata pattern for orchestrator-side data
- Simplify retrospective nudge (remove manifest references)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add feature-task schema for lighter child work item gates
Split feature work into two schema tiers: feature-implementation for the
parent container (full spec, holistic review with /simplify) and feature-task
for child work items (task-scope, task-level review). Plugin skills updated
to remain generic — they reference config.yaml for schema discovery rather
than hardcoding specific tag names.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3bf0e67 commit 77e0d3e
File tree
17 files changed
+1009
-188
lines changed- .claude/skills
- feature-implementation
- implement
- session-retrospective
- claude-plugins/task-orchestrator
- output-styles
- skills
- create-item
- manage-schemas/references
- post-plan-workflow
- current/src
- main/kotlin/io/github/jpicklyk/mcptask/current
- application/tools/workflow
- infrastructure/config
- test/kotlin/io/github/jpicklyk/mcptask/current
- infrastructure
- config
- database/repository
- test
17 files changed
+1009
-188
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
35 | 48 | | |
36 | 49 | | |
37 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
38 | 53 | | |
39 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
40 | 57 | | |
41 | | - | |
| 58 | + | |
42 | 59 | | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
46 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
47 | 66 | | |
48 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
49 | 72 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
55 | 77 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 78 | + | |
61 | 79 | | |
62 | 80 | | |
63 | 81 | | |
64 | 82 | | |
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
68 | | - | |
69 | | - | |
| 86 | + | |
| 87 | + | |
70 | 88 | | |
71 | | - | |
72 | | - | |
| 89 | + | |
| 90 | + | |
73 | 91 | | |
74 | 92 | | |
75 | 93 | | |
76 | | - | |
| 94 | + | |
77 | 95 | | |
78 | 96 | | |
79 | 97 | | |
| |||
82 | 100 | | |
83 | 101 | | |
84 | 102 | | |
85 | | - | |
86 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
87 | 106 | | |
88 | 107 | | |
89 | 108 | | |
90 | 109 | | |
91 | 110 | | |
92 | | - | |
93 | | - | |
| 111 | + | |
| 112 | + | |
94 | 113 | | |
95 | 114 | | |
96 | 115 | | |
97 | 116 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
104 | 123 | | |
105 | | - | |
| 124 | + | |
106 | 125 | | |
107 | 126 | | |
108 | 127 | | |
| |||
166 | 185 | | |
167 | 186 | | |
168 | 187 | | |
169 | | - | |
| 188 | + | |
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
| |||
178 | 197 | | |
179 | 198 | | |
180 | 199 | | |
181 | | - | |
| 200 | + | |
182 | 201 | | |
183 | 202 | | |
184 | 203 | | |
| |||
202 | 221 | | |
203 | 222 | | |
204 | 223 | | |
205 | | - | |
206 | 224 | | |
207 | 225 | | |
208 | 226 | | |
| |||
243 | 261 | | |
244 | 262 | | |
245 | 263 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | 264 | | |
255 | 265 | | |
256 | 266 | | |
| |||
287 | 297 | | |
288 | 298 | | |
289 | 299 | | |
290 | | - | |
| 300 | + | |
291 | 301 | | |
292 | | - | |
| 302 | + | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
297 | 307 | | |
298 | 308 | | |
299 | | - | |
| 309 | + | |
300 | 310 | | |
301 | 311 | | |
302 | 312 | | |
| |||
312 | 322 | | |
313 | 323 | | |
314 | 324 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | 325 | | |
322 | 326 | | |
323 | | - | |
| 327 | + | |
324 | 328 | | |
325 | | - | |
326 | 329 | | |
327 | | - | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
333 | | - | |
334 | | - | |
335 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
336 | 339 | | |
337 | 340 | | |
338 | 341 | | |
| |||
Lines changed: 8 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
123 | 71 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 72 | + | |
129 | 73 | | |
130 | 74 | | |
131 | 75 | | |
132 | | - | |
| 76 | + | |
133 | 77 | | |
134 | 78 | | |
135 | 79 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments