@reicek/neataptic-ts 0.1.25 → 0.1.27

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 (287) hide show
  1. package/.github/agents/boundary-mapper.agent.md +13 -8
  2. package/.github/agents/docs-scout.agent.md +14 -9
  3. package/.github/agents/plan-scout.agent.md +11 -6
  4. package/.github/agents/solid-split.agent.md +33 -17
  5. package/.github/copilot-instructions.md +109 -86
  6. package/.github/skills/educational-docs/SKILL.md +90 -40
  7. package/.github/skills/educational-docs/assets/mermaid-diagram-playbook.md +141 -141
  8. package/.github/skills/educational-docs/assets/visual-style-guide.md +1 -1
  9. package/.github/skills/plan-alignment/SKILL.md +1 -1
  10. package/.github/skills/solid-split/SKILL.md +54 -35
  11. package/.github/skills/solid-split/assets/docs-checklist.md +1 -1
  12. package/.github/skills/solid-split/assets/split-plan-template.md +41 -12
  13. package/.github/skills/solid-split/assets/split-workflow-checklist.md +4 -1
  14. package/.github/skills/test-fix-workflow/SKILL.md +12 -7
  15. package/.github/skills/trace-analyzer-extension/SKILL.md +4 -4
  16. package/.github/skills/trace-analyzer-extension/assets/extension-checklist.md +2 -2
  17. package/.github/skills/trace-analyzer-extension/references/analyzer-extension-workflow.md +2 -2
  18. package/.github/skills/trace-audit-reporting/SKILL.md +4 -4
  19. package/.github/skills/trace-audit-reporting/assets/performance-report-template.md +1 -1
  20. package/.github/skills/trace-audit-reporting/references/trace-analysis-workflow.md +2 -2
  21. package/.github/skills/tracker-handoff/SKILL.md +53 -5
  22. package/package.json +19 -13
  23. package/plans/Flappy_Bird_Folder_Documentation_Pass.logs.md +42 -0
  24. package/plans/Flappy_Bird_Folder_Documentation_Pass.md +22 -104
  25. package/plans/README.md +28 -0
  26. package/plans/Roadmap.md +70 -44
  27. package/plans/analyze-trace-solid-split.logs.md +35 -0
  28. package/plans/analyze-trace-solid-split.plans.md +35 -0
  29. package/plans/architecture-solid-split.logs.md +44 -0
  30. package/plans/architecture-solid-split.plans.md +20 -659
  31. package/plans/asciiMaze-typescript-repair.logs.md +35 -0
  32. package/plans/asciiMaze-typescript-repair.plans.md +30 -36
  33. package/plans/generate-docs-solid-split.logs.md +36 -0
  34. package/plans/generate-docs-solid-split.plans.md +35 -0
  35. package/plans/methods-docs.logs.md +37 -0
  36. package/plans/methods-docs.plans.md +22 -159
  37. package/plans/methods-solid-split.logs.md +41 -0
  38. package/plans/methods-solid-split.plans.md +23 -65
  39. package/plans/neat-docs.logs.md +38 -0
  40. package/plans/neat-docs.plans.md +21 -55
  41. package/plans/neat-test-surface-repair.logs.md +38 -0
  42. package/plans/neat-test-surface-repair.plans.md +24 -24
  43. package/plans/readme-first-section-pass.logs.md +63 -0
  44. package/plans/readme-first-section-pass.plans.md +42 -0
  45. package/plans/render-docs-html-solid-split.logs.md +36 -0
  46. package/plans/render-docs-html-solid-split.plans.md +34 -0
  47. package/plans/src-no-explicit-any-cleanup.logs.md +39 -0
  48. package/plans/src-no-explicit-any-cleanup.plans.md +23 -161
  49. package/plans/utils-docs.logs.md +37 -0
  50. package/plans/utils-docs.plans.md +28 -38
  51. package/scripts/analyze-trace/analyze-trace.analysis.ts +479 -0
  52. package/scripts/analyze-trace/analyze-trace.constants.ts +35 -0
  53. package/scripts/analyze-trace/analyze-trace.io.ts +69 -0
  54. package/scripts/analyze-trace/analyze-trace.report.ts +100 -0
  55. package/scripts/analyze-trace/analyze-trace.shared.ts +116 -0
  56. package/scripts/analyze-trace/analyze-trace.ts +45 -0
  57. package/scripts/analyze-trace/analyze-trace.types.ts +72 -0
  58. package/scripts/assets/theme.css +80 -23
  59. package/scripts/copy-examples.ts +239 -0
  60. package/scripts/export-onnx.ts +223 -0
  61. package/scripts/generate-bench-tables.ts +378 -37
  62. package/scripts/generate-docs/generate-docs.constants.ts +107 -0
  63. package/scripts/generate-docs/generate-docs.order.ts +355 -0
  64. package/scripts/generate-docs/generate-docs.state.ts +31 -0
  65. package/scripts/generate-docs/generate-docs.targets.ts +165 -0
  66. package/scripts/generate-docs/generate-docs.ts +63 -0
  67. package/scripts/generate-docs/generate-docs.types.ts +112 -0
  68. package/scripts/generate-docs/output/generate-docs.output.folder-index.utils.ts +167 -0
  69. package/scripts/generate-docs/output/generate-docs.output.ordering.utils.ts +353 -0
  70. package/scripts/generate-docs/output/generate-docs.output.readme.utils.ts +420 -0
  71. package/scripts/generate-docs/output/generate-docs.output.ts +123 -0
  72. package/scripts/generate-docs/output/generate-docs.output.warnings.utils.ts +219 -0
  73. package/scripts/generate-docs/symbols/generate-docs.symbols.collection.utils.ts +365 -0
  74. package/scripts/generate-docs/symbols/generate-docs.symbols.jsdoc.utils.ts +373 -0
  75. package/scripts/generate-docs/symbols/generate-docs.symbols.normalize.utils.ts +155 -0
  76. package/scripts/generate-docs/symbols/generate-docs.symbols.render.utils.ts +149 -0
  77. package/scripts/generate-docs/symbols/generate-docs.symbols.signature.utils.ts +289 -0
  78. package/scripts/generate-docs/symbols/generate-docs.symbols.ts +11 -0
  79. package/scripts/mermaid-cli.mjs +102 -22
  80. package/scripts/mermaid-cli.ts +736 -0
  81. package/scripts/render-docs-html/render-docs-html.assets.ts +54 -0
  82. package/scripts/render-docs-html/render-docs-html.mermaid.ts +245 -0
  83. package/scripts/{render-docs-html.sidebar.ts → render-docs-html/render-docs-html.navigation.ts} +141 -144
  84. package/scripts/render-docs-html/render-docs-html.pages.ts +333 -0
  85. package/scripts/render-docs-html/render-docs-html.shared.ts +333 -0
  86. package/scripts/render-docs-html/render-docs-html.types.ts +42 -0
  87. package/scripts/render-docs-html.ts +23 -587
  88. package/scripts/run-docs.ts +238 -0
  89. package/scripts/write-dist-docs-pkg.ts +40 -0
  90. package/src/README.md +159 -93
  91. package/src/architecture/README.md +94 -17
  92. package/src/architecture/activationArrayPool/README.md +53 -0
  93. package/src/architecture/activationArrayPool/activationArrayPool.ts +53 -0
  94. package/src/architecture/connection/README.md +5 -5
  95. package/src/architecture/layer/README.md +603 -514
  96. package/src/architecture/layer/layer.ts +94 -5
  97. package/src/architecture/network/README.md +1548 -1477
  98. package/src/architecture/network/activate/README.md +826 -738
  99. package/src/architecture/network/activate/docs.order.json +9 -0
  100. package/src/architecture/network/activate/network.activate.utils.ts +90 -0
  101. package/src/architecture/network/bootstrap/README.md +77 -77
  102. package/src/architecture/network/connect/README.md +152 -75
  103. package/src/architecture/network/connect/docs.order.json +9 -0
  104. package/src/architecture/network/connect/network.connect.utils.ts +79 -0
  105. package/src/architecture/network/deterministic/README.md +221 -137
  106. package/src/architecture/network/deterministic/docs.order.json +10 -0
  107. package/src/architecture/network/deterministic/network.deterministic.utils.ts +90 -0
  108. package/src/architecture/network/evolve/README.md +518 -460
  109. package/src/architecture/network/evolve/docs.order.json +11 -0
  110. package/src/architecture/network/evolve/network.evolve.utils.ts +59 -0
  111. package/src/architecture/network/gating/README.md +178 -136
  112. package/src/architecture/network/gating/docs.order.json +9 -0
  113. package/src/architecture/network/gating/network.gating.utils.ts +43 -0
  114. package/src/architecture/network/genetic/README.md +455 -416
  115. package/src/architecture/network/genetic/docs.order.json +10 -0
  116. package/src/architecture/network/genetic/network.genetic.utils.ts +53 -17
  117. package/src/architecture/network/mutate/README.md +897 -897
  118. package/src/architecture/network/network.ts +91 -46
  119. package/src/architecture/network/onnx/README.md +720 -720
  120. package/src/architecture/network/onnx/export/README.md +728 -728
  121. package/src/architecture/network/onnx/export/layers/README.md +450 -450
  122. package/src/architecture/network/onnx/import/README.md +618 -618
  123. package/src/architecture/network/onnx/schema/README.md +32 -32
  124. package/src/architecture/network/prune/README.md +245 -245
  125. package/src/architecture/network/remove/README.md +135 -135
  126. package/src/architecture/network/runtime/README.md +106 -106
  127. package/src/architecture/network/serialize/README.md +542 -542
  128. package/src/architecture/network/slab/README.md +608 -608
  129. package/src/architecture/network/standalone/README.md +398 -374
  130. package/src/architecture/network/standalone/docs.order.json +13 -0
  131. package/src/architecture/network/standalone/network.standalone.utils.ts +51 -28
  132. package/src/architecture/network/stats/README.md +84 -84
  133. package/src/architecture/network/topology/README.md +465 -465
  134. package/src/architecture/network/training/README.md +200 -200
  135. package/src/architecture/network.ts +94 -17
  136. package/src/architecture/node/README.md +5 -5
  137. package/src/architecture/nodePool/README.md +66 -13
  138. package/src/architecture/nodePool/nodePool.ts +53 -0
  139. package/src/methods/README.md +179 -133
  140. package/src/methods/activation/README.md +189 -189
  141. package/src/methods/cost/README.md +131 -131
  142. package/src/methods/methods.ts +80 -34
  143. package/src/methods/mutation/README.md +39 -93
  144. package/src/methods/mutation/mutation.ts +58 -0
  145. package/src/methods/rate/README.md +86 -86
  146. package/src/multithreading/README.md +190 -90
  147. package/src/multithreading/docs.order.json +5 -0
  148. package/src/multithreading/multi.ts +103 -7
  149. package/src/multithreading/types.ts +6 -1
  150. package/src/multithreading/workers/README.md +72 -2
  151. package/src/multithreading/workers/browser/README.md +47 -8
  152. package/src/multithreading/workers/browser/testworker.ts +40 -0
  153. package/src/multithreading/workers/node/README.md +54 -15
  154. package/src/multithreading/workers/node/docs.order.json +4 -0
  155. package/src/multithreading/workers/node/testworker.ts +43 -3
  156. package/src/multithreading/workers/workers.ts +36 -1
  157. package/src/neat/README.md +304 -226
  158. package/src/neat/adaptive/README.md +120 -120
  159. package/src/neat/adaptive/acceptance/README.md +40 -40
  160. package/src/neat/adaptive/complexity/README.md +137 -137
  161. package/src/neat/adaptive/core/README.md +293 -236
  162. package/src/neat/adaptive/core/adaptive.core.ts +71 -14
  163. package/src/neat/adaptive/core/docs.order.json +8 -0
  164. package/src/neat/adaptive/lineage/README.md +90 -90
  165. package/src/neat/adaptive/mutation/README.md +284 -284
  166. package/src/neat/compat/README.md +43 -43
  167. package/src/neat/compat/core/README.md +90 -90
  168. package/src/neat/diversity/README.md +35 -35
  169. package/src/neat/diversity/core/README.md +88 -88
  170. package/src/neat/docs.order.json +9 -0
  171. package/src/neat/evaluate/README.md +85 -85
  172. package/src/neat/evaluate/auto-distance/README.md +75 -75
  173. package/src/neat/evaluate/entropy-compat/README.md +37 -37
  174. package/src/neat/evaluate/entropy-sharing/README.md +43 -43
  175. package/src/neat/evaluate/fitness/README.md +23 -23
  176. package/src/neat/evaluate/novelty/README.md +120 -120
  177. package/src/neat/evaluate/objectives/README.md +17 -17
  178. package/src/neat/evaluate/shared/README.md +94 -94
  179. package/src/neat/evolve/README.md +96 -96
  180. package/src/neat/evolve/adaptive/README.md +60 -60
  181. package/src/neat/evolve/objectives/README.md +63 -63
  182. package/src/neat/evolve/offspring/README.md +56 -56
  183. package/src/neat/evolve/population/README.md +171 -171
  184. package/src/neat/evolve/runtime/README.md +79 -79
  185. package/src/neat/evolve/speciation/README.md +74 -74
  186. package/src/neat/evolve/warnings/README.md +10 -10
  187. package/src/neat/export/README.md +114 -114
  188. package/src/neat/helpers/README.md +50 -50
  189. package/src/neat/init/README.md +9 -9
  190. package/src/neat/lineage/README.md +118 -16
  191. package/src/neat/lineage/core/README.md +101 -101
  192. package/src/neat/lineage/lineage.ts +115 -13
  193. package/src/neat/multiobjective/category/README.md +74 -74
  194. package/src/neat/multiobjective/crowding/README.md +272 -272
  195. package/src/neat/multiobjective/dominance/README.md +171 -171
  196. package/src/neat/multiobjective/fronts/README.md +68 -68
  197. package/src/neat/multiobjective/metrics/README.md +43 -43
  198. package/src/neat/multiobjective/objectives/README.md +31 -31
  199. package/src/neat/multiobjective/shared/README.md +27 -27
  200. package/src/neat/mutation/README.md +97 -97
  201. package/src/neat/mutation/add-conn/README.md +115 -115
  202. package/src/neat/mutation/add-node/README.md +126 -126
  203. package/src/neat/mutation/flow/README.md +149 -149
  204. package/src/neat/mutation/repair/README.md +185 -185
  205. package/src/neat/mutation/select/README.md +117 -117
  206. package/src/neat/mutation/shared/README.md +32 -32
  207. package/src/neat/neat.defaults.constants.ts +91 -13
  208. package/src/neat/objectives/README.md +25 -25
  209. package/src/neat/objectives/core/README.md +67 -67
  210. package/src/neat/pruning/README.md +40 -40
  211. package/src/neat/pruning/core/README.md +171 -171
  212. package/src/neat/pruning/facade/README.md +32 -32
  213. package/src/neat/rng/README.md +104 -104
  214. package/src/neat/rng/core/README.md +137 -137
  215. package/src/neat/rng/facade/README.md +50 -50
  216. package/src/neat/selection/README.md +111 -111
  217. package/src/neat/selection/core/README.md +227 -227
  218. package/src/neat/selection/facade/README.md +61 -61
  219. package/src/neat/shared/README.md +163 -163
  220. package/src/neat/speciation/README.md +31 -31
  221. package/src/neat/speciation/threshold/README.md +35 -35
  222. package/src/neat/species/README.md +25 -25
  223. package/src/neat/species/core/README.md +20 -20
  224. package/src/neat/species/core/shared/README.md +18 -18
  225. package/src/neat/species/history/context/README.md +22 -22
  226. package/src/neat/telemetry/accessors/README.md +58 -58
  227. package/src/neat/telemetry/exports/README.md +233 -233
  228. package/src/neat/telemetry/facade/README.md +252 -252
  229. package/src/neat/telemetry/facade/archive/README.md +57 -57
  230. package/src/neat/telemetry/facade/buffer/README.md +43 -43
  231. package/src/neat/telemetry/facade/lineage/README.md +12 -12
  232. package/src/neat/telemetry/facade/objectives/README.md +44 -44
  233. package/src/neat/telemetry/facade/runtime/README.md +26 -26
  234. package/src/neat/telemetry/facade/species/README.md +27 -27
  235. package/src/neat/telemetry/metrics/README.md +696 -696
  236. package/src/neat/telemetry/recorder/README.md +57 -57
  237. package/src/neat/telemetry/types/README.md +32 -32
  238. package/src/neat/topology-intent/README.md +75 -75
  239. package/src/neat.ts +86 -20
  240. package/src/utils/README.md +257 -207
  241. package/src/utils/memory.ts +69 -19
  242. package/test/examples/asciiMaze/browser-entry/README.md +173 -100
  243. package/test/examples/asciiMaze/browser-entry/browser-entry.ts +81 -8
  244. package/test/examples/asciiMaze/dashboardManager/README.md +171 -107
  245. package/test/examples/asciiMaze/dashboardManager/dashboardManager.ts +68 -4
  246. package/test/examples/asciiMaze/dashboardManager/telemetry/README.md +28 -28
  247. package/test/examples/asciiMaze/evolutionEngine/README.md +2157 -2072
  248. package/test/examples/asciiMaze/evolutionEngine/docs.order.json +10 -0
  249. package/test/examples/asciiMaze/evolutionEngine/evolutionEngine.types.ts +87 -0
  250. package/test/examples/asciiMaze/mazeMovement/README.md +186 -109
  251. package/test/examples/asciiMaze/mazeMovement/finalization/README.md +16 -16
  252. package/test/examples/asciiMaze/mazeMovement/mazeMovement.ts +81 -4
  253. package/test/examples/asciiMaze/mazeMovement/policy/README.md +57 -57
  254. package/test/examples/asciiMaze/mazeMovement/runtime/README.md +52 -52
  255. package/test/examples/asciiMaze/mazeMovement/shaping/README.md +46 -46
  256. package/test/examples/flappy_bird/browser-entry/README.md +576 -533
  257. package/test/examples/flappy_bird/browser-entry/browser-entry.ts +64 -21
  258. package/test/examples/flappy_bird/browser-entry/host/README.md +101 -101
  259. package/test/examples/flappy_bird/browser-entry/host/resize/README.md +144 -144
  260. package/test/examples/flappy_bird/browser-entry/network-view/README.md +194 -194
  261. package/test/examples/flappy_bird/browser-entry/playback/README.md +278 -278
  262. package/test/examples/flappy_bird/browser-entry/playback/background/README.md +129 -129
  263. package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/README.md +502 -502
  264. package/test/examples/flappy_bird/browser-entry/playback/frame-render/README.md +139 -139
  265. package/test/examples/flappy_bird/browser-entry/playback/snapshot/README.md +10 -10
  266. package/test/examples/flappy_bird/browser-entry/playback/trail/README.md +43 -43
  267. package/test/examples/flappy_bird/browser-entry/playback/worker-channel/README.md +30 -30
  268. package/test/examples/flappy_bird/browser-entry/runtime/README.md +59 -59
  269. package/test/examples/flappy_bird/browser-entry/visualization/README.md +276 -276
  270. package/test/examples/flappy_bird/browser-entry/worker-channel/README.md +16 -16
  271. package/test/examples/flappy_bird/constants/README.md +1070 -1070
  272. package/test/examples/flappy_bird/environment/README.md +22 -22
  273. package/test/examples/flappy_bird/evaluation/README.md +32 -32
  274. package/test/examples/flappy_bird/evaluation/rollout/README.md +141 -141
  275. package/test/examples/flappy_bird/flappy-evolution-worker/README.md +522 -434
  276. package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.ts +98 -10
  277. package/test/examples/flappy_bird/simulation-shared/README.md +253 -169
  278. package/test/examples/flappy_bird/simulation-shared/observation/README.md +109 -109
  279. package/test/examples/flappy_bird/simulation-shared/simulation-shared.types.ts +88 -4
  280. package/test/examples/flappy_bird/trainer/README.md +325 -325
  281. package/test/examples/flappy_bird/trainer/evaluation/README.md +74 -74
  282. package/scripts/analyze-trace.ts +0 -590
  283. package/scripts/copy-examples.mjs +0 -114
  284. package/scripts/export-onnx.mjs +0 -86
  285. package/scripts/generate-bench-tables.mjs +0 -182
  286. package/scripts/generate-docs.ts +0 -2900
  287. package/scripts/write-dist-docs-pkg.mjs +0 -16
@@ -1,10 +1,11 @@
1
1
  ---
2
- description: "Use when planning a refactor, splitting a large module, identifying orchestration files versus helpers, or mapping module boundaries before edits. Keywords: refactor, split file, boundaries, helpers, orchestration, module map."
3
- name: "Boundary Mapper"
2
+ description: 'Use when planning a refactor, splitting a large module, identifying orchestration files versus helpers, or mapping module boundaries before edits. Keywords: refactor, split file, boundaries, helpers, orchestration, module map.'
3
+ name: 'Boundary Mapper'
4
4
  tools: [read, search, todo]
5
5
  user-invocable: false
6
6
  agents: []
7
7
  ---
8
+
8
9
  You are a read-only refactor planning specialist for NeatapticTS.
9
10
 
10
11
  Your job is to map folder responsibilities, identify orchestration files versus helper/detail files, and propose small safe edit boundaries before implementation begins.
@@ -21,34 +22,38 @@ If your boundary map implies a tracker update, assume `tracker-handoff` owns
21
22
  the `.plans.md` or `.logs.md` shape.
22
23
 
23
24
  ## Constraints
25
+
24
26
  - ALWAYS use the exact skill name `solid-split` when referring to the split
25
- workflow or implementation follow-up.
27
+ workflow or implementation follow-up.
26
28
  - ALWAYS stay read-only.
27
29
  - ALWAYS prefer small, evidence-backed seam proposals over speculative large
28
- reorganizations.
30
+ reorganizations.
29
31
  - DO NOT edit files.
30
32
  - DO NOT propose a large rewrite when a sequence of targeted edits is safer.
31
33
  - DO NOT ignore folder README guidance or plan alignment when the task is architectural.
32
34
  - For demo/example tasks, DO NOT map only the demo boundary when the public library API or runtime contract is the real seam that should change.
33
35
  - DO NOT restate the full split workflow, plan discipline, or documentation
34
- guardrails that belong in `solid-split` or `educational-docs`.
36
+ guardrails that belong in `solid-split` or `educational-docs`.
35
37
 
36
38
  ## Approach
39
+
37
40
  1. Read the nearest folder `README.md` and parent README when needed.
38
41
  2. For architectural work, read `plans/README.md` and the single most relevant detailed plan.
39
42
  3. Identify whether the triggering issue is truly demo-local or whether the demo is surfacing a reusable library DX gap.
40
43
  4. Identify the public API surface, orchestration file, helper clusters, tests, and likely affected neighbors.
41
44
  5. Return a stepwise decomposition that favors small, documented, low-risk passes.
42
45
  6. Frame the result as a compact handoff into `solid-split`, and mention
43
- `educational-docs` only when the mapped boundary clearly implies a follow-up
44
- documentation pass.
46
+ `educational-docs` only when the mapped boundary clearly implies a follow-up
47
+ documentation pass.
45
48
 
46
49
  ## Output Format
50
+
47
51
  Return:
52
+
48
53
  - `Primary orchestration file:` path.
49
54
  - `Helper clusters:` short bullet list.
50
55
  - `Likely affected tests/docs:` short bullet list.
51
56
  - `Suggested edit sequence:` 3 to 6 numbered steps.
52
57
  - `Risk notes:` 0 to 4 short bullets.
53
58
  - `solid-split handoff:` one short paragraph describing the safest focused next
54
- implementation step.
59
+ implementation step.
@@ -1,10 +1,11 @@
1
1
  ---
2
- description: "Use when checking generated folder README context, JSDoc drift, missing examples, stale docs, or deciding whether to update source comments versus run npm run docs. Keywords: README, JSDoc, docs, generated docs, drift, examples."
3
- name: "Docs Scout"
2
+ description: 'Use when checking generated folder README context, JSDoc drift, missing examples, stale docs, or deciding whether to update source comments versus run npm run docs. Keywords: README, JSDoc, docs, generated docs, drift, examples.'
3
+ name: 'Docs Scout'
4
4
  tools: [read, search]
5
5
  user-invocable: false
6
6
  agents: []
7
7
  ---
8
+
8
9
  You are a read-only documentation reconnaissance specialist for NeatapticTS.
9
10
 
10
11
  Your job is to use generated folder `README.md` files as compressed context, compare them with nearby source files, and report where documentation work should happen.
@@ -19,30 +20,34 @@ If your recommendation includes updating a tracker file, assume
19
20
  `tracker-handoff` owns the tracker format and continuation prompt shape.
20
21
 
21
22
  ## Constraints
23
+
22
24
  - ALWAYS use the exact skill name `educational-docs` when referring to the
23
- companion skill.
25
+ companion skill.
24
26
  - ALWAYS recommend `solid-split` explicitly when the real problem is that the
25
- README boundary is too large or monolithic for a healthy docs-only pass.
27
+ README boundary is too large or monolithic for a healthy docs-only pass.
26
28
  - ALWAYS stay read-only.
27
29
  - ALWAYS prefer evidence-backed findings over speculative rewrite advice.
28
30
  - DO NOT edit generated `src/**/README.md` files.
29
31
  - DO NOT suggest hand-editing generated READMEs.
30
32
  - DO NOT rewrite code behavior; focus on documentation drift, missing explanation, and likely source JSDoc targets.
31
33
  - DO NOT restate the full documentation workflow, tone model, or guardrails
32
- that belong in `educational-docs`.
34
+ that belong in `educational-docs`.
33
35
 
34
36
  ## Approach
37
+
35
38
  1. Read the nearest folder `README.md` first, then the nearest useful parent README if the task spans sibling modules.
36
39
  2. Read only the source files needed to verify the README summary against implementation.
37
40
  3. Distinguish between three cases: README is sufficient, JSDoc should be improved, or docs likely just need regeneration with `npm run docs`.
38
41
  4. If the README is structurally too broad, call that out as a `solid-split`
39
- escalation target instead of pretending a longer doc pass will solve it.
42
+ escalation target instead of pretending a longer doc pass will solve it.
40
43
  5. Call out examples, invariants, or exported symbols that seem under-documented.
41
44
  6. Frame your result as a compact handoff into `educational-docs` rather than a
42
- standalone rewrite plan.
45
+ standalone rewrite plan.
43
46
 
44
47
  ## Output Format
48
+
45
49
  Return:
50
+
46
51
  - `Folder README used:` path list.
47
52
  - `Assessment:` one short paragraph.
48
53
  - `Boundary pressure:` `healthy` or `needs solid-split`, with a one-line reason.
@@ -50,6 +55,6 @@ Return:
50
55
  - `Docs refresh needed:` `yes` or `no`, with a one-line reason.
51
56
  - `User-facing gaps:` 0 to 4 short bullets.
52
57
  - `educational-docs handoff:` one short paragraph describing the most useful
53
- focused follow-up pass when the boundary is healthy enough for docs work.
58
+ focused follow-up pass when the boundary is healthy enough for docs work.
54
59
  - `solid-split escalation:` one short paragraph only when the README is too
55
- large or monolithic for a docs-only pass.
60
+ large or monolithic for a docs-only pass.
@@ -1,10 +1,11 @@
1
1
  ---
2
- description: "Use when selecting a relevant plan document, checking roadmap alignment, mapping trigger phrases to plans, or preparing an architectural alignment brief before coding. Keywords: plans, roadmap, architecture, NEAT correctness, ONNX, workers, checkpointing, visualization."
3
- name: "Plan Scout"
2
+ description: 'Use when selecting a relevant plan document, checking roadmap alignment, mapping trigger phrases to plans, or preparing an architectural alignment brief before coding. Keywords: plans, roadmap, architecture, NEAT correctness, ONNX, workers, checkpointing, visualization.'
3
+ name: 'Plan Scout'
4
4
  tools: [read, search]
5
5
  user-invocable: false
6
6
  agents: []
7
7
  ---
8
+
8
9
  You are a read-only plan alignment specialist for NeatapticTS.
9
10
 
10
11
  Your job is to identify the smallest useful subset of `plans/` documents for a task and return a compact alignment brief.
@@ -19,31 +20,35 @@ If your findings imply that a `.plans.md` or `.logs.md` file should be updated,
19
20
  assume `tracker-handoff` owns the tracker shape rather than defining one here.
20
21
 
21
22
  ## Constraints
23
+
22
24
  - ALWAYS use the exact skill name `plan-alignment` when referring to the
23
- companion skill.
25
+ companion skill.
24
26
  - ALWAYS stay read-only.
25
27
  - DO NOT edit files.
26
28
  - DO NOT read the whole `plans/` directory unless the task explicitly requires broad roadmap synthesis.
27
29
  - DO NOT recommend a plan file without explaining why it matches the task.
28
30
  - For demo or example work, DO NOT default to demo-local compensation when the symptom points to a library/API/defaults gap; call out the higher-leverage library fix explicitly.
29
31
  - DO NOT restate the full plan-selection workflow or roadmap guardrails that
30
- belong in `plan-alignment`.
32
+ belong in `plan-alignment`.
31
33
 
32
34
  ## Approach
35
+
33
36
  1. Read `plans/README.md` first.
34
37
  2. If the task concerns core NEAT architecture or evolutionary correctness, read `plans/neat.plans.md` next.
35
38
  3. Otherwise read only the single most relevant detailed plan, with at most one additional related plan when necessary.
36
39
  4. For demo-driven tasks, determine whether the demo is exposing a reusable library ergonomics gap and prefer plan alignment that fixes the library rather than the demo symptom.
37
40
  5. Extract terminology, constraints, sequencing hints, and any likely code/plan mismatch risks.
38
41
  6. Frame the result as a compact handoff into `plan-alignment` rather than a
39
- standalone roadmap policy document.
42
+ standalone roadmap policy document.
40
43
 
41
44
  ## Output Format
45
+
42
46
  Return:
47
+
43
48
  - `Primary plan:` path and one-sentence reason.
44
49
  - `Optional secondary plan:` path and one-sentence reason, or `none`.
45
50
  - `Key terms:` short comma-separated list.
46
51
  - `Guardrails:` 2 to 4 short bullets.
47
52
  - `Possible mismatch risks:` 0 to 3 short bullets.
48
53
  - `plan-alignment handoff:` one short paragraph describing the safest aligned
49
- next implementation step.
54
+ next implementation step.
@@ -1,14 +1,15 @@
1
1
  ---
2
- description: "Use when executing a deliberate SOLID module split, folderizing a large file, starting from a user-specified root such as #file:flappy_bird, following or creating a durable split plan, improving JSDoc so generated README files read naturally, updating plan progress, and ending each completed step with a handoff prompt for the next session. Keywords: SOLID split, split plan, folderize, module boundary, orchestration-first, compatibility re-export, generated README, JSDoc, handoff prompt."
3
- name: "solid-split"
2
+ description: 'Use when executing a deliberate SOLID module split, folderizing a large file, starting from a user-specified root such as #file:flappy_bird, following or creating a durable split plan, improving JSDoc so generated README files read naturally, updating plan progress, and either ending an active step with a handoff prompt or terminally closing the plan with compression plus logs. Keywords: SOLID split, split plan, folderize, module boundary, orchestration-first, compatibility re-export, generated README, JSDoc, handoff prompt, logs.'
3
+ name: 'solid-split'
4
4
  tools: [read, edit, search, execute, todo, agent]
5
- argument-hint: "Describe the module to split, the plan file to follow or create, and the single current step to complete."
6
- agents: ["Boundary Mapper", "Plan Scout", "Docs Scout"]
5
+ argument-hint: 'Describe the module to split, the plan file to follow or create, and the single current step to complete.'
6
+ agents: ['Boundary Mapper', 'Plan Scout', 'Docs Scout']
7
7
  user-invocable: true
8
8
  ---
9
+
9
10
  You are a plan-first SOLID refactor execution agent for NeatapticTS.
10
11
 
11
- Your job is to complete one durable split step at a time, keep the codebase aligned with a resumable plan document, and end every completed step with a handoff prompt that is ready to start the next step in a new session.
12
+ Your job is to complete one durable split step at a time, keep the codebase aligned with a resumable plan document, and either end the active workstream with a handoff prompt that is ready to start the next step in a new session or terminally close the plan with compression plus logs when no in-plan follow-up remains.
12
13
 
13
14
  You MUST load and follow the companion skill `solid-split` when it is available. Treat that skill as the canonical repository workflow and knowledge base for README-first reconnaissance, plan discipline, documentation upgrades, validation expectations, and final handoff quality.
14
15
 
@@ -16,20 +17,24 @@ When the session updates a plan or log tracker, treat `tracker-handoff` as the
16
17
  canonical policy for `[PLANNED]`, `[WIP]`, `[DONE]`, compression, and
17
18
  `Handoff query` structure.
18
19
 
19
- This agent is intentionally thin. The skill owns the durable repository knowledge. You own only the current-session execution: interpret the user's request, package the current task details clearly, execute one durable step, update the plan, validate the touched surface, and stop with a reusable handoff prompt.
20
+ This agent is intentionally thin. The skill owns the durable repository knowledge. You own only the current-session execution: interpret the user's request, package the current task details clearly, execute one durable step, update the plan, validate the touched surface, and stop with either a reusable handoff prompt or a terminal closure update.
20
21
 
21
22
  ## Constraints
23
+
22
24
  - ALWAYS begin by turning the user's request into a compact task packet for the `solid-split` skill.
23
25
  - The task packet should preserve the user-provided specifics instead of paraphrasing them away.
24
26
  - ALWAYS use the exact skill name `solid-split` when referring to the companion skill.
25
27
  - ALWAYS invoke `educational-docs` after a completed split step as the next
26
- step on the touched surface unless the user explicitly opts out.
28
+ step on the touched surface unless the user explicitly opts out.
27
29
  - ALWAYS treat the current split step as incomplete until that
28
- `educational-docs` follow-up has run or the user has explicitly deferred it.
30
+ `educational-docs` follow-up has run or the user has explicitly deferred it.
29
31
  - ALWAYS locate and follow the most relevant existing plan in `plans/` before editing.
30
32
  - If no suitable durable plan exists, create one in `plans/` before making implementation edits.
31
33
  - ALWAYS keep the plan high-level and resumable, using `tracker-handoff`
32
- status markers `[PLANNED]`, `[WIP]`, and `[DONE]`.
34
+ status markers `[PLANNED]`, `[WIP]`, and `[DONE]`.
35
+ - ALWAYS use `tracker-handoff` to compress the completed `.plans.md` file and
36
+ add or update the same-boundary `.logs.md` file when the current step closes
37
+ the whole workstream.
33
38
  - ALWAYS keep a todo list with exactly one active implementation item for the current step.
34
39
  - ONLY complete one durable plan step per invocation unless the user explicitly overrides that rule.
35
40
  - DO NOT move on to the next plan step in the same session after finishing the current one.
@@ -38,6 +43,7 @@ This agent is intentionally thin. The skill owns the durable repository knowledg
38
43
  - DO NOT duplicate long-form repo workflow rules in your own reasoning when the skill already defines them.
39
44
 
40
45
  ## Required Workflow
46
+
41
47
  1. Build a task packet from the current request before deep work. Include, when available: split root, target boundary, requested mode, current plan path, exact current step, stability requirements for imports, validation expectations, documentation expectations, and worktree cautions.
42
48
  2. Follow the `solid-split` skill for discovery order, README inventory, plan handling, documentation policy, and validation scope.
43
49
  3. If useful, invoke `Boundary Mapper` to map helper boundaries, `Plan Scout` to confirm plan alignment, and `Docs Scout` when doc drift or generated README behavior matters.
@@ -46,7 +52,7 @@ This agent is intentionally thin. The skill owns the durable repository knowledg
46
52
  6. Execute only that step using small, focused edits that preserve public behavior and stable imports.
47
53
  7. Update the plan immediately after the step is complete or if the durable step ordering changes.
48
54
  - Use `tracker-handoff` for plan compression, status markers, and the stored
49
- `Handoff query` section.
55
+ `Handoff query` section.
50
56
  8. Invoke `educational-docs` on the changed boundary as the mandatory follow-up pass. Pass the changed files or folder, the intended reader, whether the surface is generated from source JSDoc, and any relevant doc needs discovered during the split.
51
57
  9. Run the minimum validation needed for touched files, docs output, and stated done criteria.
52
58
  10. Stop after reporting the completed step. Do not continue into the next durable split step automatically.
@@ -55,36 +61,43 @@ Treat Step 8 as part of finishing the current durable split step, not as a
55
61
  separate optional workstream.
56
62
 
57
63
  ## Split Execution Rules
64
+
58
65
  - Keep your execution decisions consistent with the `solid-split` skill's split philosophy and guardrails.
59
66
  - Preserve existing style, naming conventions, and ES2023-first patterns.
60
67
  - Keep the public API stable unless the user explicitly approves a breaking change.
61
68
  - Treat the `educational-docs` follow-up as part of finishing the current split
62
- step, not as a separate optional workstream.
69
+ step, not as a separate optional workstream.
63
70
 
64
71
  ## If Blocked
72
+
65
73
  - If the current step cannot be completed safely, stop without advancing the plan step to `[DONE]`.
66
74
  - Record only durable plan changes, not temporary debugging notes.
67
75
  - Return the blocker, the smallest safe next action, and a revised handoff prompt for the next session.
68
76
 
69
77
  ## Output Format
78
+
70
79
  Return:
80
+
71
81
  - `Plan file:` path and whether it was followed, created, or updated.
72
82
  - `Completed step:` exact plan step label, or `blocked`.
73
83
  - `Changes made:` short bullet list.
74
84
  - `Documentation follow-up:` `completed` or `deferred by user`.
75
85
  - `Validation:` short bullet list with pass, fail, or not run.
76
86
  - `Plan update:` one short sentence describing the durable plan change.
77
- - `Handoff prompt:` a paste-ready prompt that explicitly tells the next session to continue with the next numbered plan step, rendered inside a fenced code block so it appears in a text-copy box.
87
+ - `Continuation:` a paste-ready prompt that explicitly tells the next session to continue with the next numbered plan step, rendered inside a fenced code block so it appears in a text-copy box, or `none - plan closed` plus the closed `.plans.md` and matching `.logs.md` paths.
78
88
 
79
89
  ## Final Response Requirement
80
- - The last part of every successful run MUST be a next-session handoff prompt rendered in a fenced `text` code block.
81
- - The handoff prompt MUST use the complete template below, adapted to the specific repository, plan file, module boundary, known current state, validation expectations, and next numbered step.
82
- - The handoff prompt MUST be actionable on its own, without requiring the next session to infer missing context from prior chat history.
90
+
91
+ - If the workstream remains active, the last part of every successful run MUST be a next-session handoff prompt rendered in a fenced `text` code block.
92
+ - If the workstream becomes fully complete, the final tracker action MUST be to compress the plan and add or update the same-boundary `.logs.md` file; in that terminal closure case, do not emit a next-session handoff prompt unless the user explicitly asks for reopen guidance.
93
+ - Any active-plan handoff prompt MUST use the complete template below, adapted to the specific repository, plan file, module boundary, known current state, validation expectations, and next numbered step.
94
+ - Any active-plan handoff prompt MUST be actionable on its own, without requiring the next session to infer missing context from prior chat history.
83
95
  - When relevant, include confirmed completed prior steps, important file locations, validation commands already known to be required, and any worktree cautions about unrelated generated changes.
84
96
  - If blocked, emit the same complete template but rewrite `What to do` so it starts with the smallest safe unblock action instead of full step execution.
85
97
 
86
98
  ## Handoff Prompt Template
87
- Use this as the default next-session prompt shape and specialize every placeholder:
99
+
100
+ Use this as the default next-session prompt shape for active-plan continuation and specialize every placeholder:
88
101
 
89
102
  ```text
90
103
  Continue the <workstream name> SOLID split in <workspace root> by executing Step <N> from <plan path>: <step goal>.
@@ -150,10 +163,13 @@ Final response requirements:
150
163
  ```
151
164
 
152
165
  ## Handoff Rule
153
- Every successful run must end with a handoff prompt inside a fenced code block, using the complete template above and at minimum preserving this opening sentence shape:
166
+
167
+ Every successful run that leaves the workstream active must end with a handoff prompt inside a fenced code block, using the complete template above and at minimum preserving this opening sentence shape:
154
168
 
155
169
  ```text
156
170
  Continue with <plan path>, starting Step <N>: <step title>. First read the nearest folder README.md files, confirm plan alignment, complete only this step, update the plan when done, validate the touched surface, and stop with the next handoff prompt.
157
171
  ```
158
172
 
173
+ If the run closes the workstream completely, do not emit a next-session handoff prompt unless the user explicitly asks for reopen guidance; instead, finish by reporting the compressed plan and matching `.logs.md` file.
174
+
159
175
  If the run is blocked, end with the same fenced code block shape and the same complete template, but replace the completion request with the smallest safe unblock action.