@exaudeus/workrail 3.27.0 → 3.29.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 (160) hide show
  1. package/dist/console/assets/{index-FtTaDku8.js → index-BZ6HkxGf.js} +1 -1
  2. package/dist/console/index.html +1 -1
  3. package/dist/manifest.json +3 -3
  4. package/docs/README.md +57 -0
  5. package/docs/adrs/001-hybrid-storage-backend.md +38 -0
  6. package/docs/adrs/002-four-layer-context-classification.md +38 -0
  7. package/docs/adrs/003-checkpoint-trigger-strategy.md +35 -0
  8. package/docs/adrs/004-opt-in-encryption-strategy.md +36 -0
  9. package/docs/adrs/005-agent-first-workflow-execution-tokens.md +105 -0
  10. package/docs/adrs/006-append-only-session-run-event-log.md +76 -0
  11. package/docs/adrs/007-resume-and-checkpoint-only-sessions.md +51 -0
  12. package/docs/adrs/008-blocked-nodes-architectural-upgrade.md +178 -0
  13. package/docs/adrs/009-bridge-mode-single-instance-mcp.md +195 -0
  14. package/docs/adrs/010-release-pipeline.md +89 -0
  15. package/docs/architecture/README.md +7 -0
  16. package/docs/architecture/refactor-audit.md +364 -0
  17. package/docs/authoring-v2.md +527 -0
  18. package/docs/authoring.md +873 -0
  19. package/docs/changelog-recent.md +201 -0
  20. package/docs/configuration.md +505 -0
  21. package/docs/ctc-mcp-proposal.md +518 -0
  22. package/docs/design/README.md +22 -0
  23. package/docs/design/agent-cascade-protocol.md +96 -0
  24. package/docs/design/autonomous-console-design-candidates.md +253 -0
  25. package/docs/design/autonomous-console-design-review.md +111 -0
  26. package/docs/design/autonomous-platform-mvp-discovery.md +525 -0
  27. package/docs/design/claude-code-source-deep-dive.md +713 -0
  28. package/docs/design/console-cyberpunk-ui-discovery.md +504 -0
  29. package/docs/design/console-execution-trace-candidates-final.md +160 -0
  30. package/docs/design/console-execution-trace-candidates.md +211 -0
  31. package/docs/design/console-execution-trace-design-candidates-v2.md +113 -0
  32. package/docs/design/console-execution-trace-design-review.md +74 -0
  33. package/docs/design/console-execution-trace-discovery.md +394 -0
  34. package/docs/design/console-execution-trace-final-review.md +77 -0
  35. package/docs/design/console-execution-trace-review.md +92 -0
  36. package/docs/design/console-performance-discovery.md +415 -0
  37. package/docs/design/console-ui-backlog.md +280 -0
  38. package/docs/design/daemon-architecture-discovery.md +853 -0
  39. package/docs/design/daemon-design-candidates.md +318 -0
  40. package/docs/design/daemon-design-review-findings.md +119 -0
  41. package/docs/design/daemon-engine-design-candidates.md +210 -0
  42. package/docs/design/daemon-engine-design-review.md +131 -0
  43. package/docs/design/daemon-execution-engine-discovery.md +280 -0
  44. package/docs/design/daemon-gap-analysis.md +554 -0
  45. package/docs/design/daemon-owns-console-plan.md +168 -0
  46. package/docs/design/daemon-owns-console-review.md +91 -0
  47. package/docs/design/daemon-owns-console.md +195 -0
  48. package/docs/design/data-model-erd.md +11 -0
  49. package/docs/design/design-candidates-consolidate-dev-staleness.md +98 -0
  50. package/docs/design/design-candidates-walk-cache-depth-limit.md +80 -0
  51. package/docs/design/design-review-consolidate-dev-staleness.md +54 -0
  52. package/docs/design/design-review-walk-cache-depth-limit.md +48 -0
  53. package/docs/design/implementation-plan-consolidate-dev-staleness.md +142 -0
  54. package/docs/design/implementation-plan-walk-cache-depth-limit.md +141 -0
  55. package/docs/design/layer3b-ghost-nodes-design-candidates.md +229 -0
  56. package/docs/design/layer3b-ghost-nodes-design-review.md +93 -0
  57. package/docs/design/layer3b-ghost-nodes-implementation-plan.md +219 -0
  58. package/docs/design/list-workflows-latency-fix-plan.md +128 -0
  59. package/docs/design/list-workflows-latency-fix-review.md +55 -0
  60. package/docs/design/list-workflows-latency-fix.md +109 -0
  61. package/docs/design/native-context-management-api.md +11 -0
  62. package/docs/design/performance-sweep-2026-04.md +96 -0
  63. package/docs/design/routines-guide.md +219 -0
  64. package/docs/design/sequence-diagrams.md +11 -0
  65. package/docs/design/subagent-design-principles.md +220 -0
  66. package/docs/design/temporal-patterns-design-candidates.md +312 -0
  67. package/docs/design/temporal-patterns-design-review-findings.md +163 -0
  68. package/docs/design/test-isolation-from-config-file.md +335 -0
  69. package/docs/design/v2-core-design-locks.md +2746 -0
  70. package/docs/design/v2-lock-registry.json +734 -0
  71. package/docs/design/workflow-authoring-v2.md +1044 -0
  72. package/docs/design/workflow-docs-spec.md +218 -0
  73. package/docs/design/workflow-extension-points.md +687 -0
  74. package/docs/design/workrail-auto-trigger-system.md +359 -0
  75. package/docs/design/workrail-config-file-discovery.md +513 -0
  76. package/docs/docker.md +110 -0
  77. package/docs/generated/v2-lock-closure-plan.md +26 -0
  78. package/docs/generated/v2-lock-coverage.json +797 -0
  79. package/docs/generated/v2-lock-coverage.md +177 -0
  80. package/docs/ideas/backlog.md +3927 -0
  81. package/docs/ideas/design-candidates-mcp-resilience.md +208 -0
  82. package/docs/ideas/design-review-findings-mcp-resilience.md +119 -0
  83. package/docs/ideas/implementation_plan.md +249 -0
  84. package/docs/ideas/third-party-workflow-setup-design-thinking.md +1948 -0
  85. package/docs/implementation/02-architecture.md +316 -0
  86. package/docs/implementation/04-testing-strategy.md +124 -0
  87. package/docs/implementation/09-simple-workflow-guide.md +835 -0
  88. package/docs/implementation/13-advanced-validation-guide.md +874 -0
  89. package/docs/implementation/README.md +21 -0
  90. package/docs/integrations/claude-code.md +300 -0
  91. package/docs/integrations/firebender.md +315 -0
  92. package/docs/migration/v0.1.0.md +147 -0
  93. package/docs/naming-conventions.md +45 -0
  94. package/docs/planning/README.md +104 -0
  95. package/docs/planning/github-ticketing-playbook.md +195 -0
  96. package/docs/plans/README.md +24 -0
  97. package/docs/plans/agent-managed-ticketing-design.md +605 -0
  98. package/docs/plans/agentic-orchestration-roadmap.md +112 -0
  99. package/docs/plans/assessment-gates-engine-handoff.md +536 -0
  100. package/docs/plans/content-coherence-and-references.md +151 -0
  101. package/docs/plans/library-extraction-plan.md +340 -0
  102. package/docs/plans/mr-review-workflow-redesign.md +1451 -0
  103. package/docs/plans/native-context-management-epic.md +11 -0
  104. package/docs/plans/perf-fixes-design-candidates.md +225 -0
  105. package/docs/plans/perf-fixes-design-review-findings.md +61 -0
  106. package/docs/plans/perf-fixes-new-issues-candidates.md +264 -0
  107. package/docs/plans/perf-fixes-new-issues-review.md +110 -0
  108. package/docs/plans/prompt-fragments.md +53 -0
  109. package/docs/plans/ui-ux-workflow-design-candidates.md +120 -0
  110. package/docs/plans/ui-ux-workflow-discovery.md +100 -0
  111. package/docs/plans/ui-ux-workflow-review.md +48 -0
  112. package/docs/plans/v2-followup-enhancements.md +587 -0
  113. package/docs/plans/workflow-categories-candidates.md +105 -0
  114. package/docs/plans/workflow-categories-discovery.md +110 -0
  115. package/docs/plans/workflow-categories-review.md +51 -0
  116. package/docs/plans/workflow-discovery-model-candidates.md +94 -0
  117. package/docs/plans/workflow-discovery-model-discovery.md +74 -0
  118. package/docs/plans/workflow-discovery-model-review.md +48 -0
  119. package/docs/plans/workflow-source-setup-phase-1.md +245 -0
  120. package/docs/plans/workflow-source-setup-phase-2.md +361 -0
  121. package/docs/plans/workflow-staleness-detection-candidates.md +104 -0
  122. package/docs/plans/workflow-staleness-detection-review.md +58 -0
  123. package/docs/plans/workflow-staleness-detection.md +80 -0
  124. package/docs/plans/workflow-v2-design.md +69 -0
  125. package/docs/plans/workflow-v2-roadmap.md +74 -0
  126. package/docs/plans/workflow-validation-design.md +98 -0
  127. package/docs/plans/workflow-validation-roadmap.md +108 -0
  128. package/docs/plans/workrail-platform-vision.md +420 -0
  129. package/docs/reference/agent-context-cleaner-snippet.md +94 -0
  130. package/docs/reference/agent-context-guidance.md +140 -0
  131. package/docs/reference/context-optimization.md +284 -0
  132. package/docs/reference/example-workflow-repository-template/.github/workflows/validate.yml +125 -0
  133. package/docs/reference/example-workflow-repository-template/README.md +268 -0
  134. package/docs/reference/example-workflow-repository-template/workflows/example-workflow.json +80 -0
  135. package/docs/reference/external-workflow-repositories.md +916 -0
  136. package/docs/reference/feature-flags-architecture.md +472 -0
  137. package/docs/reference/feature-flags.md +349 -0
  138. package/docs/reference/god-tier-workflow-validation.md +272 -0
  139. package/docs/reference/loop-optimization.md +209 -0
  140. package/docs/reference/loop-validation.md +176 -0
  141. package/docs/reference/loops.md +465 -0
  142. package/docs/reference/mcp-platform-constraints.md +59 -0
  143. package/docs/reference/recovery.md +88 -0
  144. package/docs/reference/releases.md +177 -0
  145. package/docs/reference/troubleshooting.md +105 -0
  146. package/docs/reference/workflow-execution-contract.md +998 -0
  147. package/docs/roadmap/README.md +22 -0
  148. package/docs/roadmap/legacy-planning-status.md +103 -0
  149. package/docs/roadmap/now-next-later.md +70 -0
  150. package/docs/roadmap/open-work-inventory.md +389 -0
  151. package/docs/tickets/README.md +39 -0
  152. package/docs/tickets/next-up.md +76 -0
  153. package/docs/workflow-management.md +317 -0
  154. package/docs/workflow-templates.md +423 -0
  155. package/docs/workflow-validation.md +184 -0
  156. package/docs/workflows.md +254 -0
  157. package/package.json +3 -1
  158. package/spec/authoring-spec.json +61 -16
  159. package/workflows/workflow-for-workflows.json +252 -93
  160. package/workflows/workflow-for-workflows.v2.json +188 -77
@@ -0,0 +1,22 @@
1
+ # Roadmap
2
+
3
+ Use this folder for **curated direction**, not raw idea capture.
4
+
5
+ A roadmap item should usually have:
6
+
7
+ - a clear goal
8
+ - an explanation of why it matters
9
+ - rough constraints or risks
10
+ - a sense of timing or priority
11
+
12
+ ## Rules
13
+
14
+ - Pull ideas in from `docs/ideas/` once they feel strategically important.
15
+ - Keep roadmap docs selective and easy to scan.
16
+ - When an item becomes ready to implement, promote it to `docs/tickets/`.
17
+
18
+ ## Starting point
19
+
20
+ - `docs/roadmap/now-next-later.md`
21
+ - `docs/roadmap/open-work-inventory.md`
22
+ - `docs/roadmap/legacy-planning-status.md`
@@ -0,0 +1,103 @@
1
+ # Legacy Planning Status Map
2
+
3
+ This doc records the status of the **major older planning initiatives and planning surfaces** so contributors can see what is still active, what is finished, and what should no longer shape current planning.
4
+
5
+ ## Status meanings
6
+
7
+ - **done** — the core initiative is effectively delivered
8
+ - **partial** — important parts landed, but meaningful work remains
9
+ - **open** — still largely unimplemented
10
+ - **dropped** — intentionally not planned / not pursuing
11
+ - **parked** — still an idea, but not an active delivery commitment
12
+ - **historical** — no longer relevant for current planning
13
+
14
+ ## Major legacy planning docs
15
+
16
+ | Doc | Status | What it means now | Recommended action |
17
+ | --- | --- | --- | --- |
18
+ | `docs/plans/agentic-orchestration-roadmap.md` | **partial** | Phase 1-style routine/subagent groundwork exists, but composition, adapters, and authorable supplements are still open. | Keep as initiative context, but treat `open-work-inventory` and `now-next-later` as the live priority view. |
19
+ | `implementation_plan.md` | **done** | The prompt-fragments implementation plan is effectively delivered. | Keep as finished initiative context; do not use as active backlog. |
20
+ | `docs/plans/library-extraction-plan.md` | **done** | Core engine extraction is delivered; remaining ideas are follow-on extensions, not a missing core milestone. | Keep as finished initiative context. |
21
+ | `docs/plans/native-context-management-epic.md` | **dropped** | We are not planning to pursue native context management; keeping it in active planning would be misleading. | Do not treat it as roadmap work. |
22
+ | `docs/plans/v2-followup-enhancements.md` | **partial** | Some items are shipped, but progress notifications, stronger verification contracts, and other follow-ups remain open. | Keep as a source initiative doc, but track active work through tickets and roadmap docs. |
23
+ | `docs/generated/v2-lock-closure-plan.md` | **done** | This generated closure plan appears complete. | Keep as completion evidence only. |
24
+ | ~~`docs/implementation/03-development-phases.md`~~ | **deleted** | Was a superseded stub. Old phase model ideas now tracked in `open-work-inventory.md`. | Removed. |
25
+ | ~~`docs/implementation/11-implementation-planning-guide.md`~~ | **deleted** | Was a superseded stub. | Removed. |
26
+ | `docs/plans/workflow-validation-roadmap.md` | **partial** | Canonical roadmap/status doc for the validation initiative. | Prefer this over the old god-tier planning cluster. |
27
+ | `docs/plans/workflow-validation-design.md` | **partial** | Canonical durable design doc for the validation initiative. | Prefer this over the old god-tier design cluster. |
28
+ | `docs/plans/workflow-v2-roadmap.md` | **partial** | Canonical roadmap/status doc for WorkRail v2. | Prefer this over older v2 one-pager/resumption docs. |
29
+ | `docs/plans/workflow-v2-design.md` | **partial** | Canonical durable design doc for WorkRail v2. | Prefer this over older v2 design-resumption docs. |
30
+ | `docs/plans/prompt-fragments.md` | **done** | Canonical finished summary for the prompt fragments feature. | Prefer this over the old design/review/verification doc trio. |
31
+
32
+ ## Validation initiative
33
+
34
+ The older multi-doc validation pack has been replaced by a simpler canonical pair:
35
+
36
+ - `docs/plans/workflow-validation-roadmap.md`
37
+ - `docs/plans/workflow-validation-design.md`
38
+
39
+ ### Initiative status
40
+
41
+ - **Status**: **partial**
42
+ - **Meaning now**:
43
+ - the validation pipeline and registry-centric validation work are largely shipped
44
+ - lifecycle coverage and some closure claims are still not fully normalized
45
+ - the former multi-doc validation pack has been collapsed into two canonical docs
46
+ - **Recommended action**:
47
+ - use `docs/plans/workflow-validation-roadmap.md` for canonical initiative status
48
+ - use `docs/plans/workflow-validation-design.md` for canonical durable design
49
+ - use `docs/roadmap/open-work-inventory.md` for the remaining open work
50
+ - ignore the older validation planning entrypoints for current planning
51
+
52
+ ## Parked legacy ideas worth keeping visible
53
+
54
+ | Idea source | Status | Notes |
55
+ | --- | --- | --- |
56
+ | Marketplace / workflow sharing | **parked** | Should live as an idea until there is clear product pull. See `docs/ideas/backlog.md`. |
57
+ | Cloud adapter direction from `agentic-orchestration-roadmap.md` | **parked** | Keep visible as a future adapter concept, not current roadmap work. |
58
+
59
+ ## Workflow v2 initiative
60
+
61
+ Older overlapping v2 entrypoints were collapsed into:
62
+
63
+ - `docs/plans/workflow-v2-roadmap.md`
64
+ - `docs/plans/workflow-v2-design.md`
65
+
66
+ ### Initiative status
67
+
68
+ - **Status**: **partial**
69
+ - **Meaning now**:
70
+ - core v2 is largely shipped
71
+ - remaining sign-off and follow-up work still exists
72
+ - the old overlapping v2 entrypoints have been collapsed into canonical roadmap/design docs
73
+ - **Recommended action**:
74
+ - use `docs/plans/workflow-v2-roadmap.md` for canonical status
75
+ - use `docs/plans/workflow-v2-design.md` for canonical durable design
76
+ - use `docs/plans/v2-followup-enhancements.md` for detailed remaining follow-up work
77
+
78
+ ## Prompt fragments feature
79
+
80
+ The earlier prompt-fragments design/review/verification stack was collapsed into:
81
+
82
+ - `docs/plans/prompt-fragments.md`
83
+
84
+ ### Initiative status
85
+
86
+ - **Status**: **done**
87
+ - **Meaning now**:
88
+ - the feature is shipped
89
+ - the earlier three-doc sequence was consolidated into one canonical summary
90
+ - **Recommended action**:
91
+ - use `docs/plans/prompt-fragments.md`
92
+
93
+ ## Live docs to prefer
94
+
95
+ - `docs/planning/README.md`
96
+ - `docs/plans/workflow-validation-roadmap.md`
97
+ - `docs/plans/workflow-validation-design.md`
98
+ - `docs/plans/workflow-v2-roadmap.md`
99
+ - `docs/plans/workflow-v2-design.md`
100
+ - `docs/plans/prompt-fragments.md`
101
+ - `docs/roadmap/open-work-inventory.md`
102
+ - `docs/roadmap/now-next-later.md`
103
+ - `docs/tickets/next-up.md`
@@ -0,0 +1,70 @@
1
+ # Now / Next / Later
2
+
3
+ Lightweight cross-cutting roadmap. **This is the single entry point** -- check here first before digging into tickets or plan docs.
4
+
5
+ *Last updated: 2026-04-15*
6
+
7
+ ---
8
+
9
+ ## Now
10
+
11
+ *(nothing actively in progress -- work is in a clean state)*
12
+
13
+ ---
14
+
15
+ ## Next
16
+
17
+ *(groomed, roughly ordered by value -- ready to execute)*
18
+
19
+ 1. **Legacy workflow modernization** -- `exploration-workflow.json` is the highest-priority candidate. `mr-review-workflow.json` and `bug-investigation.json` are next. See `docs/roadmap/open-work-inventory.md` for the full prioritized list and what "modernization" means.
20
+
21
+ ---
22
+
23
+ ## Later
24
+
25
+ *(not yet groomed; rough priority order)*
26
+
27
+ - **Execution trace Layer 3b (ghost nodes)** -- skipped steps shown at 0.25 opacity with `[ SKIPPED ]` badge; requires backend to emit skipped step IDs in trace refs -- needs design + backend confirmation first
28
+ - **Dashboard artifacts** -- replace file-based docs with session-scoped structured outputs rendered in the console; design exists in `workflow-execution-contract.md`
29
+ - **Evict stale repo roots** -- `remembered-roots-store` accumulates forever; stale repos inflate worktree counts. Add TTL eviction. See #241.
30
+ - **Typed SSE events + server-side `.git/` watchers** -- true live worktree updates without polling. See #242.
31
+ - **Authorable response supplements** -- workflow schema surface, validation rules, authoring guidance; design needed first
32
+ - **Declarative composition engine** -- spec-driven workflow assembly from pre-validated routines
33
+ - **Parallel `forEach` execution** -- concurrent loop iterations with result collection
34
+ - **Subagent composition chains** -- chained delegated outputs (researcher → challenger → analyzer)
35
+ - **Enforceable verification contracts** -- structured evidence artifacts replacing prose-only verification criteria
36
+ - **Assessment-gate tiers beyond v1** -- Tier 2: structured redo recipes; Tier 3: assessment-triggered subflows
37
+ - **Workflow rewind / re-scope** -- go back to an earlier checkpoint when scope understanding changes mid-run
38
+ - **Remote references** -- `resolveFrom: "url"` for workflow refs pointing at Confluence, GDocs, etc.
39
+ - **Workflow categories / category-first discovery** -- flat `list_workflows` is growing noisy; category-first browsing with counts and representative titles
40
+ - **Platform evolution** -- discovery, sharing, portable references, MCP resources/prompts (see `docs/plans/workrail-platform-vision.md`)
41
+ - **Multi-tenancy and running-workflow upgrades**
42
+ - **Console cyberpunk polish** -- scanlines, bracket notation for status badges, letter-spacing 0.30em, `//` separators (see `docs/design/console-cyberpunk-ui-discovery.md` for ranked list)
43
+ - **Workflows inventory screen redesign** -- split-pane layout, keyboard-nav item list + persistent detail panel; design-first (see `docs/design/console-ui-backlog.md`)
44
+ - **Equip / unequip workflows from the console** -- `[ EQUIPPED ]` badge, backend toggle endpoint
45
+ - **Forever backward compatibility** -- `workrailVersion` field in workflows, engine version adapters; see `docs/ideas/backlog.md` (high importance, not yet properly designed)
46
+
47
+ ---
48
+
49
+ ## Recently shipped
50
+
51
+ *(moved here to keep Now/Next clean)*
52
+
53
+ - ~~**Execution trace Layer 3a**~~ -- edge cause diamonds on DAG edges, loop bracket in gutter, `[ CAUSE ]` expandable footer on blocked_attempt nodes (#347)
54
+ - ~~**`fix-multi-instance-gaps`**~~ -- three multi-instance HttpServer safety gaps resolved (#346)
55
+ - ~~**GitHub branch protection + pre-push hook**~~ -- server-side rule blocks direct pushes; `.git-hooks/pre-push` added (was missing despite `core.hooksPath` local override); Claude hook updated to catch `:main` refspec syntax (#344)
56
+ - ~~**Console execution trace explainability -- Layers 1 + 2**~~ -- `[ TRACE ]` tab on each RunCard renders chronological decision log; NodeDetailSection routing sections show `[ WHY SELECTED ]`, `[ CONDITIONS EVALUATED ]` with `[ PASS ]`/`[ SKIP ]` badges; contextFacts chip strip in DAG header (#340)
57
+ - ~~**Top-level runCondition tracing**~~ -- `nextTopLevel()` now emits `evaluated_condition` trace entries for each step, explaining why sparse DAGs jump from phase 0 to phase 6; `formatConditionTrace()` produces `SKIP: taskComplexity (equals)` / `PASS: taskComplexity=Medium (not_equals: Small)`
58
+ - ~~**Filter chips cross-contamination fix**~~ -- selecting a source no longer hides/changes tag pill counts; `sourceFilteredWorkflows` / `tagFilteredWorkflows` added to ViewModel state
59
+ - ~~**Windows CI fix**~~ -- duplicate `createFakeStdout` declaration in shutdown-hooks.test.ts resolved; unblocked release pipeline
60
+ - ~~**Trial the quality gate and readiness audit**~~ -- `workflow-for-workflows.v2.json` and `production-readiness-audit.json` exercised extensively on the MVI refactor and MCP stability work; STANDARD/THOROUGH depth validated
61
+ - ~~**Assessment-gate adoption in mr-review-workflow**~~ -- `mr-review-workflow.agentic.v2.json` already has assessmentRefs/assessmentConsequences alongside `bug-investigation`, `coding-task-workflow-agentic.lean.v2`, and `workflow-for-workflows.v2`
62
+ - ~~**Console CPU spiral**~~ -- all three fixes shipped: `change` SSE events no longer invalidate worktrees, enrichWorktree semaphore MAX=8, fs.watch filtered to `.jsonl` writes
63
+ - ~~**Console MVI architecture**~~ -- all 6 views refactored to Repository → UseCases → Reducer → ViewModel → pure presenter; 290+ new tests; `console/CLAUDE.md` documents the pattern (#332)
64
+ - ~~**MCP server stability**~~ -- `wireStdoutShutdown` (EPIPE crash), `clearIfStaleLock` (stale lock after crash), `HttpServer.stop()` idempotency, port exhaustion graceful degradation (#332, #335)
65
+ - ~~**HTTP MCP dev environment**~~ -- nodemon + HTTP transport for local dev; `npm run dev:mcp:watch` (#334)
66
+ - ~~**Worktree scan parallelization**~~ -- parallel filter, lazy workspace dir, reduced subprocess timeout (#325)
67
+ - ~~**Workflow-source setup phase 1**~~ -- rooted team sharing, remembered roots, grouped source visibility (#160–#164)
68
+ - ~~**MCP Roots Protocol**~~ -- per-request workspace anchor resolution, `RootsReader`/`RootsWriter` capability split (#75/#78/#147)
69
+ - ~~**v2 production readiness**~~ -- v2 default-on, feature flag gate removed
70
+ - ~~**Retrieval budget and recovery surface**~~ -- 24 KB recovery budget, 2 KB resume preview, deterministic tiering
@@ -0,0 +1,389 @@
1
+ # Open Work Inventory
2
+
3
+ This is the **normalized inventory** of work that is still open after consolidating the older roadmap and planning docs.
4
+
5
+ It separates:
6
+
7
+ - **active partials** — already started or partially shipped, but not really done
8
+ - **planned but unimplemented** — real initiatives that have not landed yet
9
+ - **ideas / parked directions** — worth keeping visible, but not current delivery commitments
10
+
11
+ Use this as the main source of truth when grooming roadmap items into tickets.
12
+
13
+ For explicit status on the major older planning docs themselves, see `docs/roadmap/legacy-planning-status.md`.
14
+
15
+ ## Active partials
16
+
17
+ ### ~~0. Console performance: CPU spiral from session writes triggering worktree git fan-out~~ (done)
18
+
19
+ - **Status**: complete (all three parts shipped)
20
+ - **What was delivered**:
21
+ 1. `useWorkspaceEvents()` `change` events no longer call `invalidateQueries(['worktrees'])` -- worktrees governed solely by `refetchInterval`. `worktrees-updated` SSE events (background enrichment complete) still invalidate worktrees, which is correct.
22
+ 2. Concurrency semaphore (MAX=8) added to `enrichWorktree` in `src/v2/usecases/worktree-service.ts`
23
+ 3. `fs.watch` callback in console routes now filters to `.jsonl` writes only
24
+ - **Still open** (tracked in Later): TTL eviction for `remembered-roots-store` (#241), typed SSE events + server-side `.git/` watchers (#242)
25
+
26
+ ### ~~1. Retrieval budget and recovery-surface strengthening~~ (done)
27
+
28
+ - **Status**: complete
29
+ - **What was delivered**:
30
+ - explicit retrieval contracts for rehydrate and resume preview surfaces
31
+ - deterministic tiering with `core` vs `tail` retention behavior
32
+ - 24 KB recovery budget, 2 KB resume preview budget
33
+ - stronger behavior tests covering tier dropping, bounded rendering, and usefulness-oriented scenarios
34
+ - design-lock docs and MCP schema updated to match new budget values
35
+ - **Remaining decisions** (parked, not blocking):
36
+ - whether the current tier model needs refinement after more real usage
37
+ - whether checkpoint-related retrieval should follow the same contract pattern later
38
+
39
+ ### ~~2. Clean response formatting and supplement hardening~~ (done)
40
+
41
+ - **Status**: complete
42
+ - **What was done**: the boundary between workflow-authored prompts and runtime-owned response supplements is documented consistently across authoring locks (`authoring.md`), the execution contract (`workflow-execution-contract.md`), and the authoring guide (`authoring-v2.md`). Supplements are runtime-owned today; authorable supplements are tracked as a future typed feature in the Next bucket.
43
+ - **Source docs**:
44
+ - `docs/authoring.md` (lock rules: `keep-boundary-owned-guidance-out-of-step-prompts`, `one-time-supplements-are-policy-not-durable-state`)
45
+ - `docs/authoring-v2.md` (response supplements section)
46
+ - `docs/reference/workflow-execution-contract.md` (response content structure)
47
+ - `docs/plans/agentic-orchestration-roadmap.md` (authorable supplements as future backlog)
48
+
49
+ ### ~~3. V2 production readiness and sign-off~~ (done)
50
+
51
+ - **Status**: complete
52
+ - **What was done**: v2 is default-on (`v2Tools` flag defaults to `true` since 0.9.0). Stale docs referencing `WORKRAIL_ENABLE_V2_TOOLS` as a prerequisite have been updated with historical notes. Planning/roadmap docs no longer assume v2 needs unflagging.
53
+ - **Source docs**:
54
+ - `docs/plans/workflow-v2-roadmap.md`
55
+ - `docs/plans/workflow-v2-design.md`
56
+ - `docs/plans/v2-followup-enhancements.md`
57
+
58
+ ### 4. God-tier validation lifecycle coverage
59
+
60
+ - **Status**: partial
61
+ - **Why it is here**: the validation pipeline and registry validation are largely shipped, but the lifecycle-harness ambition is not fully closed
62
+ - **Still open**:
63
+ - broaden lifecycle coverage beyond the small current set of lifecycle tests
64
+ - decide the realistic target for bundled workflow lifecycle coverage
65
+ - archive or simplify stale operator docs from the god-tier planning stack
66
+ - **Source docs**:
67
+ - `docs/plans/workflow-validation-roadmap.md`
68
+ - `docs/plans/workflow-validation-design.md`
69
+
70
+ ### ~~5. Planning system adoption~~ (done)
71
+
72
+ - **Status**: complete (2026-04-14)
73
+ - **What was delivered**: `now-next-later.md` is the single entry point with accurate Now/Next/Later/Recently-shipped sections. `tickets/next-up.md` has 4 clean groomed tickets. `open-work-inventory.md` reflects actual shipped state. Stale plan docs are no longer the active source of truth.
74
+
75
+ ## Planned but unimplemented
76
+
77
+ ### Composition and middleware engine
78
+
79
+ - **Status**: unimplemented
80
+ - **What is missing**:
81
+ - workflow composition field / assembler
82
+ - auto-injection based on workflow metadata
83
+ - fragment/routine composition as a first-class runtime mechanism
84
+ - **Source doc**: `docs/plans/agentic-orchestration-roadmap.md`
85
+
86
+ ### Adapter intelligence
87
+
88
+ - **Status**: unimplemented
89
+ - **What is missing**:
90
+ - adapter layer for capability-aware behavior
91
+ - schema/runtime variants for delegate vs proxy paths
92
+ - smarter environment/capability-driven instruction selection
93
+ - **Source doc**: `docs/plans/agentic-orchestration-roadmap.md`
94
+
95
+ ### Progress notifications
96
+
97
+ - **Status**: unimplemented
98
+ - **What is missing**:
99
+ - request/handler notification plumbing
100
+ - progress token semantics
101
+ - design resolution for notification sending and node counting
102
+ - **Source doc**: `docs/plans/v2-followup-enhancements.md`
103
+
104
+ ### Console execution trace and engine explainability
105
+
106
+ - **Status**: unimplemented
107
+ - **What is missing**:
108
+ - console DTOs that expose engine-level decisions alongside DAG nodes/edges
109
+ - a run-level trace/explanation surface for `selected_next_step`, condition evaluation, loop entry/exit, and important run context
110
+ - UX that distinguishes authoring phases from actual created execution nodes so fast paths do not look like missing steps
111
+ - a clear console story for why the engine skipped, branched, or fast-pathed instead of only what node was created next
112
+ - **Why it is here**:
113
+ - the engine already records decision and context events, but the console currently projects mostly node/edge state
114
+ - this creates real user confusion when legitimate workflow behavior looks like a broken DAG
115
+ - recent console work proved that a node-only view is not sufficient for understanding execution
116
+ - **Source docs**:
117
+ - `docs/ideas/backlog.md`
118
+ - `docs/plans/workrail-platform-vision.md`
119
+ - `docs/reference/workflow-execution-contract.md`
120
+ - `docs/design/v2-core-design-locks.md`
121
+
122
+ ### Enforceable verification contracts
123
+
124
+ - **Status**: unimplemented
125
+ - **What is missing**:
126
+ - structured, enforceable verification outputs rather than instruction-only verification prose
127
+ - stronger evidence-oriented contract surfaces
128
+ - **Source doc**: `docs/plans/v2-followup-enhancements.md`
129
+
130
+ ### Evidence validation contracts
131
+
132
+ - **Status**: unimplemented
133
+ - **What is missing**:
134
+ - replacing prose-heavy validation criteria with stronger typed evidence artifacts where appropriate
135
+ - **Source doc**: `docs/plans/v2-followup-enhancements.md`
136
+
137
+ ### Parallel `forEach` execution
138
+
139
+ - **Status**: unimplemented
140
+ - **What is missing**:
141
+ - concurrent iteration execution model
142
+ - semantics for result collection, ordering, and failure handling
143
+ - **Source doc**: `docs/plans/v2-followup-enhancements.md`
144
+
145
+ ### Subagent composition chains
146
+
147
+ - **Status**: unimplemented
148
+ - **What is missing**:
149
+ - chained subagent result flows such as researcher → challenger → analyzer
150
+ - explicit composition model for delegated routines
151
+ - **Source doc**: `docs/plans/v2-followup-enhancements.md`
152
+
153
+ ### Content coherence and linked references
154
+
155
+ - **Status**: implemented (core slices 1–4, 6 complete; slice 5 project-attached refs deferred)
156
+ - **What was delivered**:
157
+ - `StepContentEnvelope` typed intermediate representation for agent-visible content categories
158
+ - `WorkflowReference` declarations on `WorkflowDefinition` + `workflow.schema.json`
159
+ - structural validation, compile-time hash inclusion, start-time async I/O resolution with injectable port
160
+ - reference delivery as a dedicated MCP content item (start=full, rehydrate=compact, advance=none)
161
+ - metaGuidance clarification (JSDoc + schema distinguishing it from references)
162
+ - shared `resolveRefsAndBuildEnvelope` helper, parallel resolution, discriminated union types
163
+ - **What remains**:
164
+ - project-attached references via `.workrail/references.json` with drift detection (future)
165
+ - validate more real bundled workflows with `references`, beyond the newly added `production-readiness-audit.json` rubric reference
166
+ - **Source doc**: `docs/plans/content-coherence-and-references.md`
167
+
168
+ ### Authorable response supplements
169
+
170
+ - **Status**: unimplemented
171
+ - **What is missing**:
172
+ - workflow schema surface
173
+ - validation rules
174
+ - contributor-facing authoring guidance
175
+ - strong guardrails against authority dilution
176
+ - **Source docs**:
177
+ - `docs/plans/agentic-orchestration-roadmap.md`
178
+ - `docs/ideas/backlog.md`
179
+
180
+ ### Assessment-gate follow-up consequences
181
+
182
+ - **Status**: partial
183
+ - **What was delivered**:
184
+ - workflow-level assessment declarations and step-level assessment refs / consequence declarations
185
+ - boundary validation and canonical normalization for assessment artifacts on the existing output path
186
+ - durable `assessment_recorded` and `assessment_consequence_applied` events plus projections
187
+ - retryable same-step follow-up blocking with engine-owned framing and semantic guidance
188
+ - one real bundled workflow pilot in `workflows/bug-investigation.agentic.v2.json`
189
+ - **What remains**:
190
+ - broader adoption in a higher-value workflow, with `workflows/mr-review-workflow.agentic.v2.json` as the clearest next target
191
+ - product UX calibration around follow-up wording and consequence visibility in a more widely used workflow
192
+ - later-tier follow-up behavior beyond the narrow v1 same-step retry model
193
+ - **Why it is here**:
194
+ - the engine feature is now real, but adoption is still intentionally narrow
195
+ - the next decision is about rollout and workflow fit, not core engine feasibility
196
+ - **Source docs**:
197
+ - `docs/ideas/backlog.md`
198
+ - `docs/plans/mr-review-workflow-redesign.md`
199
+
200
+ ### Legacy workflow modernization
201
+
202
+ - **Status**: partial / in progress
203
+ - **Recently shipped**:
204
+ - `workflows/workflow-for-workflows.v2.json` now supports both creating a new workflow and modernizing an existing one (`#152`, from issue `#151`)
205
+ - `workflows/workflow-for-workflows.v2.json` has now also been redesigned into a deeper workflow-quality gate with explicit effectiveness targeting, quality architecture, state-economy audit, execution simulation, adversarial review, redesign looping, and final trust handoff
206
+ - `workflows/production-readiness-audit.json` was added and then tightened into an evidence-driven readiness review with readiness hypothesis, neutral fact packet, reviewer families, contradiction handling, blind-spot confidence capping, and explicit `security_performance` coverage
207
+ - **Active focus now**:
208
+ - validate the redesigned quality gate and readiness audit on real tasks, then tune `STANDARD` vs `THOROUGH` depth and ceremony from evidence
209
+ - next highest-value modernization candidate remains `workflows/exploration-workflow.json`
210
+ - **Why it is here**:
211
+ - several bundled workflows are still authored in older styles
212
+ - many are not `.v2` or `.lean.v2` variants
213
+ - several do not yet use the newer authoring features and patterns now treated as the modern baseline in `docs/authoring.md`
214
+ - **Modern baseline to migrate toward**:
215
+ - current v2/lean structure where appropriate
216
+ - `metaGuidance` and `recommendedPreferences`
217
+ - `references` for authoritative companion material where useful
218
+ - `templateCall` / routine injection instead of repeating large prompt blocks
219
+ - `promptFragments` for conditional branches instead of near-duplicate prompts
220
+ - tighter loop-control wording and newer evidence-oriented review / verification structure
221
+ - **Highest-priority bundled workflows to revamp**:
222
+ - `workflows/exploration-workflow.json`
223
+ - `workflows/adaptive-ticket-creation.json`
224
+ - `workflows/mr-review-workflow.json`
225
+ - `workflows/mr-review-workflow.agentic.json`
226
+ - `workflows/bug-investigation.json`
227
+ - `workflows/bug-investigation.agentic.json`
228
+ - `workflows/design-thinking-workflow.json`
229
+ - `workflows/design-thinking-workflow-autonomous.agentic.json`
230
+ - `workflows/documentation-update-workflow.json`
231
+ - `workflows/document-creation-workflow.json`
232
+ - **Additional older bundled workflows to review for modernization**:
233
+ - `workflows/intelligent-test-case-generation.json`
234
+ - `workflows/learner-centered-course-workflow.json`
235
+ - `workflows/presentation-creation.json`
236
+ - `workflows/personal-learning-materials-creation-branched.json`
237
+ - `workflows/scoped-documentation-workflow.json`
238
+ - `workflows/relocation-workflow-us.json`
239
+ - `workflows/workflow-diagnose-environment.json`
240
+ - **Lower priority / already more modern**:
241
+ - `workflows/coding-task-workflow-agentic.v2.json` — superseded by the lean v2 variant as the current modern example
242
+ - `workflows/workflow-for-workflows.json` — older large-form version; `workflow-for-workflows.v2.json` is now the deeper quality-gate path
243
+ - `workflows/cross-platform-code-conversion.v2.json` — already v2 and already uses several modern authoring features
244
+ - `workflows/bug-investigation.agentic.v2.json`
245
+ - `workflows/mr-review-workflow.agentic.v2.json`
246
+ - **What “modernization” should mean here**:
247
+ - do not mechanically rename files to `.v2` or `.lean`
248
+ - instead, review each workflow for real migration value against the current authoring guide and engine capabilities
249
+ - prefer high-value conversions first: workflows that are widely used, prompt-heavy, repetitive, or still missing modern review / routine / reference structure
250
+ - **Source docs**:
251
+ - `docs/authoring.md`
252
+ - `docs/ideas/backlog.md`
253
+
254
+ ### Workflow-source setup phase 1
255
+
256
+ - **Status**: implemented (phase-1 rooted-sharing slice delivered across `#160`–`#164`)
257
+ - **What now exists**:
258
+ - discovery-sensitive workflow surfaces require and use explicit `workspacePath`
259
+ - WorkRail remembers repo/workspace roots at user scope
260
+ - request-scoped workflow discovery recursively loads repo/module `.workrail/workflows/` under remembered roots
261
+ - `list_workflows` / `inspect_workflow` expose source-aware visibility for built-in, personal, legacy project, rooted-sharing, and external workflows
262
+ - legacy `./workflows` overlap with rooted-sharing now carries minimal precedence / migration explanation
263
+ - **What is intentionally deferred**:
264
+ - generalized guided install for arbitrary third-party sources
265
+ - full canonical source catalog work
266
+ - final long-term `.workrail/*` config ownership split
267
+ - **Verification / evidence**:
268
+ - focused workflow-source setup tests cover request-rooted discovery, remembered roots persistence, visibility outputs, and MCP schema contracts
269
+ - current local verification passed with `npm run build` plus focused vitest coverage
270
+ - **Source docs**:
271
+ - `docs/plans/workflow-source-setup-phase-1.md`
272
+ - `docs/plans/workrail-platform-vision.md`
273
+
274
+ ### Multi-tenancy
275
+
276
+ - **Status**: unimplemented
277
+ - **What is missing**:
278
+ - tenant/workspace isolation model beyond current local/workspace scoping
279
+ ### Running-workflow upgrades
280
+
281
+ - **Status**: unimplemented
282
+ - **What is missing**:
283
+ - workflow migration story for running sessions across schema/definition changes
284
+
285
+ ## Ideas / parked directions
286
+
287
+ ### Marketplace and workflow sharing
288
+
289
+ - **Status**: parked idea, partially subsumed by platform vision
290
+ - **Why parked**:
291
+ - parts of external workflow repositories / plugin-style loading exist
292
+ - a true marketplace product does not
293
+ - the nearer-term sharing problems (team setup, cross-repo discovery, portable references) are now addressed in the platform vision
294
+ - a true marketplace remains a later-stage concern
295
+ - **Source docs**:
296
+ - `docs/reference/external-workflow-repositories.md`
297
+ - `docs/plans/workrail-platform-vision.md`
298
+
299
+ ### Cloud adapter / cloud execution
300
+
301
+ - **Status**: parked idea
302
+ - **Why parked**:
303
+ - mentioned as future adapter direction, but not currently close to delivery
304
+ - **Source doc**: `docs/plans/agentic-orchestration-roadmap.md`
305
+
306
+ ### Dashboard artifacts (replace file-based docs with session-scoped outputs)
307
+
308
+ - **Status**: designed, unimplemented
309
+ - **Summary**: instead of having agents write markdown files into the repo, agents would submit structured artifacts through `continue_workflow` output payloads. These artifacts are stored per-session and rendered in the console/dashboard. Default: per-step `notesMarkdown` rendering. Explicit: workflow-defined output contracts via `wr.contracts.*` packs with server-side reducers.
310
+ - **What exists**:
311
+ - full design in `workflow-execution-contract.md` (section "Replacing File-Based Docs with Dashboard Artifacts")
312
+ - illustrative examples for `mr-review-workflow` (triage, changed files table, findings, MR comments)
313
+ - output contract enforcement model in v2 (contract packs, blocked node validation)
314
+ - `notesMarkdown` already flows through `continue_workflow`
315
+ - **What is missing**:
316
+ - console/dashboard UI to render artifacts (no UI exists yet)
317
+ - server-side artifact storage and reducers
318
+ - contract pack definitions beyond `wr.contracts.loop_control`
319
+ - migration path for existing workflows that write markdown files
320
+ - **Source doc**: `docs/reference/workflow-execution-contract.md`
321
+
322
+ ### Console engine-trace visibility and phase UX
323
+
324
+ - **Status**: active idea / not yet designed into a ticket
325
+ - **Why parked here**:
326
+ - the console currently emphasizes created nodes but hides the engine choices that explain sparse or surprising DAG shapes
327
+ - workflows still use phase-oriented authoring language, and the console currently does not explain skipped phases or fast-path branches
328
+ - there is likely a real UX redesign here around “execution DAG vs engine trace” rather than a single missing component
329
+ - **What would need design**:
330
+ - whether phases stay visible in the console primary UI or become secondary authoring metadata
331
+ - what run-context variables and decision-trace entries should be elevated into first-class console DTOs
332
+ - how to present trace events without making the run surface noisy
333
+ - whether to use a timeline, annotations, combined run narrative, or separate explainability mode
334
+ - **Source docs**:
335
+ - `docs/ideas/backlog.md`
336
+ - `docs/plans/workrail-platform-vision.md`
337
+
338
+ ### Standup Status Generator workflow
339
+
340
+ - **Status**: idea
341
+ - **Summary**: a workflow that generates daily standup status by aggregating activity across the user's tools (git history, GitLab MRs, Jira tickets, etc.) since the last standup date
342
+ - **What would need design**:
343
+ - tool-agnostic integration discovery (detect available MCP tools at runtime)
344
+ - lightweight persistence for last-standup timestamp
345
+ - output categorization (did / doing / blockers) and configurable format
346
+ - **Source doc**: `docs/ideas/backlog.md`
347
+
348
+ ### Derived / overlay workflows for bundled workflow specialization
349
+
350
+ - **Status**: parked idea, related to platform vision (future phase)
351
+ - **Why parked**:
352
+ - linked references solved workflow-local document pointers, but consumers still cannot specialize a bundled workflow by attaching project-specific docs or guidance without forking it
353
+ - there is likely a real future feature here around "task dev, but with my project’s implementation docs attached" or lightweight derived workflows
354
+ - the shape is still unresolved: this could remain a narrow project-attached references feature or grow into a more general workflow overlay mechanism
355
+ - **What would need design**:
356
+ - whether the additive surface is references only or a broader overlay/derivation model
357
+ - how derived workflow identity, hashing, inspect output, and pinning work without losing determinism
358
+ - how much override power should exist before the feature becomes a hidden forking system
359
+ - **Source docs**:
360
+ - `docs/ideas/backlog.md`
361
+ - `docs/plans/content-coherence-and-references.md`
362
+ - `docs/reference/external-workflow-repositories.md`
363
+ - `docs/plans/workrail-platform-vision.md`
364
+
365
+ ## Recommended grooming order
366
+
367
+ ### Next to groom into tickets
368
+
369
+ 1. **Workflow-source setup phase 1**
370
+ 2. **Assessment-gate adoption in MR review**
371
+ 3. **Composition and middleware engine**
372
+ 4. **Progress notifications**
373
+ 5. **Authorable response supplements** (design first, not direct implementation)
374
+
375
+ ### Recently completed
376
+
377
+ - ~~**Console MVI architecture**~~ (done 2026-04-14 -- all 6 views refactored to Repository → UseCases → Reducer → ViewModel → pure presenter; 290+ tests; console/CLAUDE.md documents the pattern; #332)
378
+ - ~~**MCP server stability**~~ (done 2026-04-14 -- EPIPE crash, stale lock after crash, HttpServer.stop() idempotency, port exhaustion graceful degradation, openDashboard degraded-mode guard; #332 #335)
379
+ - ~~**HTTP MCP dev environment**~~ (done 2026-04-14 -- nodemon + HTTP transport; npm run dev:mcp:watch; #334)
380
+ - ~~**Complete v2 sign-off and cleanup**~~ (done)
381
+ - ~~**Expand lifecycle validation coverage**~~ (done -- auto-walk smoke test)
382
+ - ~~**Finish prompt/supplement boundary alignment**~~ (done)
383
+ - ~~**Content coherence and linked references**~~ (done)
384
+
385
+ ### Keep later
386
+
387
+ 1. **Platform evolution** (discovery, sharing, portable references, MCP resources/prompts) -- see `docs/plans/workrail-platform-vision.md`
388
+ 2. **Multi-tenancy**
389
+ 3. **Running-workflow upgrades**
@@ -0,0 +1,39 @@
1
+ # Tickets
2
+
3
+ Use this folder for **execution-ready work items**.
4
+
5
+ A ticket should answer:
6
+
7
+ - what problem are we solving?
8
+ - what outcome do we want?
9
+ - what is intentionally out of scope?
10
+ - how will we know it is done?
11
+ - how should completion be verified?
12
+
13
+ ## Suggested structure
14
+
15
+ - **Title**
16
+ - **Problem**
17
+ - **Goal**
18
+ - **Acceptance criteria**
19
+ - **Verification**
20
+ - **Non-goals**
21
+ - **Context**
22
+ - **Agent execution note** (optional)
23
+
24
+ ## Promotion rule
25
+
26
+ If you can write clear acceptance criteria and someone could reasonably pick it up and implement it, it should probably live here instead of only in `ideas` or `roadmap`.
27
+
28
+ For the current GitHub-based Phase 1 workflow, prefer the same shape used by the issue template:
29
+
30
+ - **Problem**
31
+ - **Goal**
32
+ - **Acceptance criteria**
33
+ - **Verification**
34
+ - **Non-goals**
35
+ - **Context**
36
+
37
+ ## Starting point
38
+
39
+ - `docs/tickets/next-up.md`