Commit 52c5b35
feat(workflow): config-driven status labels with query response support (#71)
* 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>
* feat(workflow): add config-driven status labels and surface in query responses
Add StatusLabelService for trigger-to-label auto-mapping on role transitions.
Labels are configured in .taskorchestrator/config.yaml (status_labels section)
with hardcoded defaults as fallback. Label precedence: hardcoded resolution
(cancel/reopen) > config-driven > null.
Changes:
- NEW: StatusLabelService interface + NoOpStatusLabelService defaults
- NEW: YamlStatusLabelService reads config with AGENT_CONFIG_DIR support
- Wire label resolution into AdvanceItemTool, CompleteTreeTool (including cascade)
- Surface statusLabel in QueryItemsTool search, overview, and get responses
- Add statusLabel to toMinimalJson and toFullJson serializers
- 23 new tests: YamlStatusLabelService (11), AdvanceItemTool (6),
CompleteTreeTool (2), QueryItemsTool (4) — covering config-driven labels,
cascade labels, label precedence, block/resume, and query responses
- Update workflow-guide.md and api-reference.md documentation
- Enforce explicit model parameter in delegation table (plugin/skill update)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 77e0d3e commit 52c5b35
File tree
18 files changed
+805
-20
lines changed- .claude/skills/implement
- claude-plugins/task-orchestrator/output-styles
- current
- docs
- src
- main/kotlin/io/github/jpicklyk/mcptask/current
- application
- service
- tools
- compound
- items
- workflow
- infrastructure/config
- interfaces/mcp
- test/kotlin/io/github/jpicklyk/mcptask/current
- application/tools
- compound
- items
- workflow
- infrastructure/config
- test
18 files changed
+805
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
470 | 516 | | |
471 | 517 | | |
472 | 518 | | |
| |||
573 | 619 | | |
574 | 620 | | |
575 | 621 | | |
576 | | - | |
| 622 | + | |
577 | 623 | | |
578 | 624 | | |
579 | 625 | | |
| |||
649 | 695 | | |
650 | 696 | | |
651 | 697 | | |
652 | | - | |
| 698 | + | |
653 | 699 | | |
654 | 700 | | |
655 | 701 | | |
| |||
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | | - | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
310 | 312 | | |
311 | 313 | | |
312 | 314 | | |
| 315 | + | |
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
| |||
371 | 374 | | |
372 | 375 | | |
373 | 376 | | |
| 377 | + | |
| 378 | + | |
374 | 379 | | |
375 | | - | |
| 380 | + | |
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
| |||
395 | 400 | | |
396 | 401 | | |
397 | 402 | | |
| 403 | + | |
398 | 404 | | |
399 | 405 | | |
400 | 406 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| |||
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
| 534 | + | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
252 | 254 | | |
253 | | - | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
319 | | - | |
| 321 | + | |
| 322 | + | |
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
| |||
327 | 330 | | |
328 | 331 | | |
329 | 332 | | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
| 428 | + | |
424 | 429 | | |
425 | 430 | | |
426 | 431 | | |
| |||
475 | 480 | | |
476 | 481 | | |
477 | 482 | | |
478 | | - | |
| 483 | + | |
479 | 484 | | |
480 | 485 | | |
481 | 486 | | |
| |||
486 | 491 | | |
487 | 492 | | |
488 | 493 | | |
| 494 | + | |
489 | 495 | | |
490 | 496 | | |
491 | 497 | | |
| |||
0 commit comments