peaks-loop 4.0.0-beta.8 → 4.0.1

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 (1293) hide show
  1. package/CHANGELOG.md +955 -141
  2. package/README-en.md +26 -7
  3. package/README.md +75 -6
  4. package/agents/karpathy-reviewer.md +33 -0
  5. package/bin/peaks.js +1 -1
  6. package/dist/cli/cli-helpers.d.ts +68 -0
  7. package/dist/cli/cli-helpers.js +109 -0
  8. package/dist/cli/commands/_cli-error-envelope.d.ts +19 -0
  9. package/dist/cli/commands/_cli-error-envelope.js +50 -0
  10. package/dist/cli/commands/_register.d.ts +3 -0
  11. package/dist/cli/commands/_register.js +139 -0
  12. package/dist/cli/commands/_super.d.ts +10 -0
  13. package/dist/cli/commands/_super.js +97 -0
  14. package/dist/cli/commands/adapter-commands-s2a.d.ts +34 -0
  15. package/dist/cli/commands/adapter-commands-s2a.js +92 -0
  16. package/dist/cli/commands/adapter-commands.d.ts +30 -0
  17. package/dist/cli/commands/adapter-commands.js +35 -0
  18. package/dist/cli/commands/asset-commands.d.ts +45 -0
  19. package/dist/cli/commands/asset-commands.js +421 -0
  20. package/dist/cli/commands/audit-commands.d.ts +28 -0
  21. package/dist/cli/commands/audit-commands.js +437 -0
  22. package/dist/cli/commands/autonomous-swarm-commands.d.ts +12 -0
  23. package/dist/cli/commands/autonomous-swarm-commands.js +120 -0
  24. package/dist/cli/commands/bee-commands.d.ts +26 -0
  25. package/dist/cli/commands/bee-commands.js +169 -0
  26. package/dist/cli/commands/capability-commands.d.ts +16 -0
  27. package/dist/cli/commands/capability-commands.js +45 -0
  28. package/dist/cli/commands/capability-worker-config-sc-commands.d.ts +3 -0
  29. package/dist/cli/commands/capability-worker-config-sc-commands.js +8 -0
  30. package/dist/cli/commands/changeset-commands.d.ts +13 -0
  31. package/dist/cli/commands/changeset-commands.js +46 -0
  32. package/dist/cli/commands/code-commands.d.ts +90 -0
  33. package/dist/cli/commands/code-commands.js +118 -0
  34. package/dist/cli/commands/code-job-shape-commands.d.ts +9 -0
  35. package/dist/cli/commands/code-job-shape-commands.js +164 -0
  36. package/dist/cli/commands/code-mode-gate-commands.d.ts +9 -0
  37. package/dist/cli/commands/code-mode-gate-commands.js +223 -0
  38. package/dist/cli/commands/code-review-commands.d.ts +34 -0
  39. package/dist/cli/commands/code-review-commands.js +83 -0
  40. package/dist/cli/commands/code-run-command.d.ts +12 -0
  41. package/dist/cli/commands/code-run-command.js +68 -0
  42. package/dist/cli/commands/code-runtime-commands.d.ts +11 -0
  43. package/dist/cli/commands/code-runtime-commands.js +391 -0
  44. package/dist/cli/commands/codegraph-commands.d.ts +3 -0
  45. package/dist/cli/commands/codegraph-commands.js +99 -0
  46. package/dist/cli/commands/compact-command.d.ts +21 -0
  47. package/dist/cli/commands/compact-command.js +304 -0
  48. package/dist/cli/commands/complexity-commands.d.ts +9 -0
  49. package/dist/cli/commands/complexity-commands.js +34 -0
  50. package/dist/cli/commands/config-commands.d.ts +3 -0
  51. package/dist/cli/commands/config-commands.js +149 -0
  52. package/dist/cli/commands/container-commands.d.ts +28 -0
  53. package/dist/cli/commands/container-commands.js +221 -0
  54. package/dist/cli/commands/context-builder-commands.d.ts +11 -0
  55. package/dist/cli/commands/context-builder-commands.js +85 -0
  56. package/dist/cli/commands/context-commands.d.ts +21 -0
  57. package/dist/cli/commands/context-commands.js +255 -0
  58. package/dist/cli/commands/core/artifacts-command.d.ts +3 -0
  59. package/dist/cli/commands/core/artifacts-command.js +62 -0
  60. package/dist/cli/commands/core/binding-commands.d.ts +3 -0
  61. package/dist/cli/commands/core/binding-commands.js +58 -0
  62. package/dist/cli/commands/core/doctor-command.d.ts +11 -0
  63. package/dist/cli/commands/core/doctor-command.js +264 -0
  64. package/dist/cli/commands/core/memory-command.d.ts +3 -0
  65. package/dist/cli/commands/core/memory-command.js +98 -0
  66. package/dist/cli/commands/core/profile-command.d.ts +3 -0
  67. package/dist/cli/commands/core/profile-command.js +9 -0
  68. package/dist/cli/commands/core/proxy-command.d.ts +3 -0
  69. package/dist/cli/commands/core/proxy-command.js +26 -0
  70. package/dist/cli/commands/core/session-command.d.ts +3 -0
  71. package/dist/cli/commands/core/session-command.js +243 -0
  72. package/dist/cli/commands/core/skill-command.d.ts +3 -0
  73. package/dist/cli/commands/core/skill-command.js +303 -0
  74. package/dist/cli/commands/core/standards-command.d.ts +3 -0
  75. package/dist/cli/commands/core/standards-command.js +95 -0
  76. package/dist/cli/commands/core-artifact-commands.d.ts +15 -0
  77. package/dist/cli/commands/core-artifact-commands.js +31 -0
  78. package/dist/cli/commands/cron-commands.d.ts +57 -0
  79. package/dist/cli/commands/cron-commands.js +257 -0
  80. package/dist/cli/commands/cron-scheduler-commands.d.ts +47 -0
  81. package/dist/cli/commands/cron-scheduler-commands.js +284 -0
  82. package/dist/cli/commands/dashboard-commands.d.ts +4 -0
  83. package/dist/cli/commands/dashboard-commands.js +10 -0
  84. package/dist/cli/commands/dashboard-long-run.d.ts +25 -0
  85. package/dist/cli/commands/dashboard-long-run.js +122 -0
  86. package/dist/cli/commands/dashboard-summary.d.ts +12 -0
  87. package/dist/cli/commands/dashboard-summary.js +58 -0
  88. package/dist/cli/commands/dispatch-commands.d.ts +3 -0
  89. package/dist/cli/commands/dispatch-commands.js +715 -0
  90. package/dist/cli/commands/dispatch-from-dag.d.ts +3 -0
  91. package/dist/cli/commands/dispatch-from-dag.js +254 -0
  92. package/dist/cli/commands/doc-commands.d.ts +11 -0
  93. package/dist/cli/commands/doc-commands.js +65 -0
  94. package/dist/cli/commands/ecc-commands.d.ts +30 -0
  95. package/dist/cli/commands/ecc-commands.js +119 -0
  96. package/dist/cli/commands/evolution-commands.d.ts +27 -0
  97. package/dist/cli/commands/evolution-commands.js +393 -0
  98. package/dist/cli/commands/feedback-commands.d.ts +18 -0
  99. package/dist/cli/commands/feedback-commands.js +145 -0
  100. package/dist/cli/commands/final-review-commands.d.ts +31 -0
  101. package/dist/cli/commands/final-review-commands.js +161 -0
  102. package/dist/cli/commands/fixture-commands.d.ts +32 -0
  103. package/dist/cli/commands/fixture-commands.js +91 -0
  104. package/dist/cli/commands/fork-commands.d.ts +16 -0
  105. package/dist/cli/commands/fork-commands.js +163 -0
  106. package/dist/cli/commands/gate-commands.d.ts +3 -0
  107. package/dist/cli/commands/gate-commands.js +239 -0
  108. package/dist/cli/commands/governance-classify-contract-commands.d.ts +21 -0
  109. package/dist/cli/commands/governance-classify-contract-commands.js +273 -0
  110. package/dist/cli/commands/heartbeat-commands.d.ts +3 -0
  111. package/dist/cli/commands/heartbeat-commands.js +206 -0
  112. package/dist/cli/commands/heartbeat-watch-command.d.ts +31 -0
  113. package/dist/cli/commands/heartbeat-watch-command.js +146 -0
  114. package/dist/cli/commands/hook-handle.d.ts +17 -0
  115. package/dist/cli/commands/hook-handle.js +157 -0
  116. package/dist/cli/commands/hooks-commands.d.ts +3 -0
  117. package/dist/cli/commands/hooks-commands.js +272 -0
  118. package/dist/cli/commands/ide-commands.d.ts +25 -0
  119. package/dist/cli/commands/ide-commands.js +42 -0
  120. package/dist/cli/commands/impact-commands.d.ts +15 -0
  121. package/dist/cli/commands/impact-commands.js +62 -0
  122. package/dist/cli/commands/job-commands.d.ts +3 -0
  123. package/dist/cli/commands/job-commands.js +322 -0
  124. package/dist/cli/commands/lease-metrics-commands.d.ts +67 -0
  125. package/dist/cli/commands/lease-metrics-commands.js +231 -0
  126. package/dist/cli/commands/lease-stats-commands.d.ts +65 -0
  127. package/dist/cli/commands/lease-stats-commands.js +107 -0
  128. package/dist/cli/commands/legacy-commands.d.ts +11 -0
  129. package/dist/cli/commands/legacy-commands.js +32 -0
  130. package/dist/cli/commands/log-commands.d.ts +17 -0
  131. package/dist/cli/commands/log-commands.js +64 -0
  132. package/dist/cli/commands/loop-commands.d.ts +27 -0
  133. package/dist/cli/commands/loop-commands.js +262 -0
  134. package/dist/cli/commands/loop-eval-commands.d.ts +20 -0
  135. package/dist/cli/commands/loop-eval-commands.js +526 -0
  136. package/dist/cli/commands/memory-commands.d.ts +23 -0
  137. package/dist/cli/commands/memory-commands.js +129 -0
  138. package/dist/cli/commands/migrate-1-4-1-command.d.ts +11 -0
  139. package/dist/cli/commands/migrate-1-4-1-command.js +34 -0
  140. package/dist/cli/commands/migrate-v2-10-to-v2-11-command.d.ts +20 -0
  141. package/dist/cli/commands/migrate-v2-10-to-v2-11-command.js +52 -0
  142. package/dist/cli/commands/mut-commands.d.ts +20 -0
  143. package/dist/cli/commands/mut-commands.js +235 -0
  144. package/dist/cli/commands/observability-commands.d.ts +22 -0
  145. package/dist/cli/commands/observability-commands.js +201 -0
  146. package/dist/cli/commands/openspec-commands.d.ts +3 -0
  147. package/dist/cli/commands/openspec-commands.js +298 -0
  148. package/dist/cli/commands/perf-audit-commands.d.ts +22 -0
  149. package/dist/cli/commands/perf-audit-commands.js +132 -0
  150. package/dist/cli/commands/perf-commands.d.ts +3 -0
  151. package/dist/cli/commands/perf-commands.js +41 -0
  152. package/dist/cli/commands/playwright-commands.d.ts +95 -0
  153. package/dist/cli/commands/playwright-commands.js +432 -0
  154. package/dist/cli/commands/polyrepo-commands.d.ts +37 -0
  155. package/dist/cli/commands/polyrepo-commands.js +155 -0
  156. package/dist/cli/commands/prd-blocks-commands.d.ts +18 -0
  157. package/dist/cli/commands/prd-blocks-commands.js +50 -0
  158. package/dist/cli/commands/prd-commands.d.ts +18 -0
  159. package/dist/cli/commands/prd-commands.js +143 -0
  160. package/dist/cli/commands/preferences-commands.d.ts +2 -0
  161. package/dist/cli/commands/preferences-commands.js +217 -0
  162. package/dist/cli/commands/project-commands.d.ts +3 -0
  163. package/dist/cli/commands/project-commands.js +253 -0
  164. package/dist/cli/commands/qa-business-review-commands.d.ts +17 -0
  165. package/dist/cli/commands/qa-business-review-commands.js +148 -0
  166. package/dist/cli/commands/qa-commands.d.ts +94 -0
  167. package/dist/cli/commands/qa-commands.js +307 -0
  168. package/dist/cli/commands/release-commands.d.ts +39 -0
  169. package/dist/cli/commands/release-commands.js +323 -0
  170. package/dist/cli/commands/request-commands.d.ts +3 -0
  171. package/dist/cli/commands/request-commands.js +548 -0
  172. package/dist/cli/commands/retrospective-commands.d.ts +12 -0
  173. package/dist/cli/commands/retrospective-commands.js +175 -0
  174. package/dist/cli/commands/reviewer-commands.d.ts +14 -0
  175. package/dist/cli/commands/reviewer-commands.js +64 -0
  176. package/dist/cli/commands/role-commands.d.ts +13 -0
  177. package/dist/cli/commands/role-commands.js +85 -0
  178. package/dist/cli/commands/runtime-commands-helpers.d.ts +7 -0
  179. package/dist/cli/commands/runtime-commands-helpers.js +24 -0
  180. package/dist/cli/commands/runtime-commands.d.ts +52 -0
  181. package/dist/cli/commands/runtime-commands.js +149 -0
  182. package/dist/cli/commands/sc-commands.d.ts +3 -0
  183. package/dist/cli/commands/sc-commands.js +47 -0
  184. package/dist/cli/commands/scan-commands.d.ts +3 -0
  185. package/dist/cli/commands/scan-commands.js +445 -0
  186. package/dist/cli/commands/security-audit-commands.d.ts +23 -0
  187. package/dist/cli/commands/security-audit-commands.js +132 -0
  188. package/dist/cli/commands/sediment-commands.d.ts +80 -0
  189. package/dist/cli/commands/sediment-commands.js +658 -0
  190. package/dist/cli/commands/session-24h-mode.d.ts +26 -0
  191. package/dist/cli/commands/session-24h-mode.js +196 -0
  192. package/dist/cli/commands/session-checkpoint-command.d.ts +10 -0
  193. package/dist/cli/commands/session-checkpoint-command.js +100 -0
  194. package/dist/cli/commands/session-migrate-skill-name.d.ts +17 -0
  195. package/dist/cli/commands/session-migrate-skill-name.js +41 -0
  196. package/dist/cli/commands/session-resume-command.d.ts +11 -0
  197. package/dist/cli/commands/session-resume-command.js +83 -0
  198. package/dist/cli/commands/share-commands.d.ts +36 -0
  199. package/dist/cli/commands/share-commands.js +415 -0
  200. package/dist/cli/commands/skill-conformance-commands.d.ts +9 -0
  201. package/dist/cli/commands/skill-conformance-commands.js +39 -0
  202. package/dist/cli/commands/skill-loop-engineering-readiness-commands.d.ts +67 -0
  203. package/dist/cli/commands/skill-loop-engineering-readiness-commands.js +173 -0
  204. package/dist/cli/commands/skill-search-commands.d.ts +25 -0
  205. package/dist/cli/commands/skill-search-commands.js +71 -0
  206. package/dist/cli/commands/skill-visibility.d.ts +8 -0
  207. package/dist/cli/commands/skill-visibility.js +63 -0
  208. package/dist/cli/commands/slice-commands.d.ts +24 -0
  209. package/dist/cli/commands/slice-commands.js +492 -0
  210. package/dist/cli/commands/slice-integrate-commands.d.ts +11 -0
  211. package/dist/cli/commands/slice-integrate-commands.js +74 -0
  212. package/dist/cli/commands/slice-review-commands.d.ts +23 -0
  213. package/dist/cli/commands/slice-review-commands.js +162 -0
  214. package/dist/cli/commands/smoke-commands.d.ts +21 -0
  215. package/dist/cli/commands/smoke-commands.js +203 -0
  216. package/dist/cli/commands/sop-commands.d.ts +3 -0
  217. package/dist/cli/commands/sop-commands.js +215 -0
  218. package/dist/cli/commands/spill-demo-command.d.ts +7 -0
  219. package/dist/cli/commands/spill-demo-command.js +29 -0
  220. package/dist/cli/commands/statusline-commands.d.ts +15 -0
  221. package/dist/cli/commands/statusline-commands.js +231 -0
  222. package/dist/cli/commands/sub-agent-commands.d.ts +22 -0
  223. package/dist/cli/commands/sub-agent-commands.js +20 -0
  224. package/dist/cli/commands/sub-agent-dispatch-guard.d.ts +55 -0
  225. package/dist/cli/commands/sub-agent-dispatch-guard.js +57 -0
  226. package/dist/cli/commands/sub-agent-shared.d.ts +109 -0
  227. package/dist/cli/commands/sub-agent-shared.js +90 -0
  228. package/dist/cli/commands/swarm-commands.d.ts +13 -0
  229. package/dist/cli/commands/swarm-commands.js +77 -0
  230. package/dist/cli/commands/tech-commands.d.ts +64 -0
  231. package/dist/cli/commands/tech-commands.js +195 -0
  232. package/dist/cli/commands/test-commands.d.ts +47 -0
  233. package/dist/cli/commands/test-commands.js +204 -0
  234. package/dist/cli/commands/understand-commands.d.ts +3 -0
  235. package/dist/cli/commands/understand-commands.js +148 -0
  236. package/dist/cli/commands/upgrade-commands.d.ts +25 -0
  237. package/dist/cli/commands/upgrade-commands.js +154 -0
  238. package/dist/cli/commands/user-touchpoint-commands.d.ts +18 -0
  239. package/dist/cli/commands/user-touchpoint-commands.js +78 -0
  240. package/dist/cli/commands/verdict-aggregate-command.d.ts +14 -0
  241. package/dist/cli/commands/verdict-aggregate-command.js +106 -0
  242. package/dist/cli/commands/vm-commands.d.ts +31 -0
  243. package/dist/cli/commands/vm-commands.js +274 -0
  244. package/dist/cli/commands/workflow-commands.d.ts +3 -0
  245. package/dist/cli/commands/workflow-commands.js +567 -0
  246. package/dist/cli/commands/workflow-plan-commands.d.ts +39 -0
  247. package/dist/cli/commands/workflow-plan-commands.js +163 -0
  248. package/dist/cli/commands/workspace/clean-command.d.ts +14 -0
  249. package/dist/cli/commands/workspace/clean-command.js +49 -0
  250. package/dist/cli/commands/workspace/helpers.d.ts +28 -0
  251. package/dist/cli/commands/workspace/helpers.js +87 -0
  252. package/dist/cli/commands/workspace/init-command.d.ts +139 -0
  253. package/dist/cli/commands/workspace/init-command.js +505 -0
  254. package/dist/cli/commands/workspace/migrate-command.d.ts +11 -0
  255. package/dist/cli/commands/workspace/migrate-command.js +91 -0
  256. package/dist/cli/commands/workspace/reconcile-command.d.ts +14 -0
  257. package/dist/cli/commands/workspace/reconcile-command.js +103 -0
  258. package/dist/cli/commands/workspace-commands.d.ts +18 -0
  259. package/dist/cli/commands/workspace-commands.js +50 -0
  260. package/dist/cli/commands/worktree-auth-commands.d.ts +29 -0
  261. package/dist/cli/commands/worktree-auth-commands.js +652 -0
  262. package/dist/cli/index.d.ts +1 -0
  263. package/dist/cli/index.js +75 -0
  264. package/dist/cli/program.d.ts +5 -0
  265. package/dist/cli/program.js +213 -0
  266. package/dist/hooks/pre-tool-use-sub-agent.d.ts +28 -0
  267. package/dist/hooks/pre-tool-use-sub-agent.js +105 -0
  268. package/dist/lib/render/message-renderer.d.ts +20 -0
  269. package/dist/lib/render/message-renderer.js +80 -0
  270. package/dist/services/24h-mode/decider.d.ts +103 -0
  271. package/dist/services/24h-mode/decider.js +144 -0
  272. package/dist/services/24h-mode/index.d.ts +12 -0
  273. package/dist/services/24h-mode/index.js +12 -0
  274. package/dist/services/24h-mode/state.d.ts +48 -0
  275. package/dist/services/24h-mode/state.js +51 -0
  276. package/dist/services/24h-mode/store.d.ts +27 -0
  277. package/dist/services/24h-mode/store.js +119 -0
  278. package/dist/services/adapter/adapter-registry.d.ts +48 -0
  279. package/dist/services/adapter/adapter-registry.js +186 -0
  280. package/dist/services/adapter/adapter.d.ts +27 -0
  281. package/dist/services/adapter/adapter.js +5 -0
  282. package/dist/services/adapter/auto-adapter.d.ts +11 -0
  283. package/dist/services/adapter/auto-adapter.js +15 -0
  284. package/dist/services/adapter/claude-adapter.d.ts +14 -0
  285. package/dist/services/adapter/claude-adapter.js +40 -0
  286. package/dist/services/adapter/codex-adapter.d.ts +14 -0
  287. package/dist/services/adapter/codex-adapter.js +14 -0
  288. package/dist/services/adapter/copilot-adapter.d.ts +14 -0
  289. package/dist/services/adapter/copilot-adapter.js +14 -0
  290. package/dist/services/artifacts/artifact-lint-service.d.ts +23 -0
  291. package/dist/services/artifacts/artifact-lint-service.js +99 -0
  292. package/dist/services/artifacts/artifact-prerequisites.d.ts +78 -0
  293. package/dist/services/artifacts/artifact-prerequisites.js +491 -0
  294. package/dist/services/artifacts/artifact-service.d.ts +43 -0
  295. package/dist/services/artifacts/artifact-service.js +98 -0
  296. package/dist/services/artifacts/artifact-templates.d.ts +30 -0
  297. package/dist/services/artifacts/artifact-templates.js +302 -0
  298. package/dist/services/artifacts/repair-cycle-service.d.ts +23 -0
  299. package/dist/services/artifacts/repair-cycle-service.js +52 -0
  300. package/dist/services/artifacts/request-artifact-service.d.ts +116 -0
  301. package/dist/services/artifacts/request-artifact-service.js +451 -0
  302. package/dist/services/artifacts/request-artifact-state-helpers.d.ts +51 -0
  303. package/dist/services/artifacts/request-artifact-state-helpers.js +114 -0
  304. package/dist/services/artifacts/workspace-service.d.ts +34 -0
  305. package/dist/services/artifacts/workspace-service.js +272 -0
  306. package/dist/services/audit/artifact-writer.d.ts +93 -0
  307. package/dist/services/audit/artifact-writer.js +303 -0
  308. package/dist/services/audit/audit-goal-service.d.ts +35 -0
  309. package/dist/services/audit/audit-goal-service.js +75 -0
  310. package/dist/services/audit/audit-goal-types.d.ts +40 -0
  311. package/dist/services/audit/audit-goal-types.js +15 -0
  312. package/dist/services/audit/backing-detector.d.ts +24 -0
  313. package/dist/services/audit/backing-detector.js +59 -0
  314. package/dist/services/audit/classifier.d.ts +38 -0
  315. package/dist/services/audit/classifier.js +134 -0
  316. package/dist/services/audit/decision-writer.d.ts +76 -0
  317. package/dist/services/audit/decision-writer.js +217 -0
  318. package/dist/services/audit/enforcers/active-skill-resolver.d.ts +29 -0
  319. package/dist/services/audit/enforcers/active-skill-resolver.js +71 -0
  320. package/dist/services/audit/enforcers/code-ban.d.ts +23 -0
  321. package/dist/services/audit/enforcers/code-ban.js +27 -0
  322. package/dist/services/audit/enforcers/design-draft-confirm.d.ts +24 -0
  323. package/dist/services/audit/enforcers/design-draft-confirm.js +58 -0
  324. package/dist/services/audit/enforcers/lint-audit-regression.d.ts +21 -0
  325. package/dist/services/audit/enforcers/lint-audit-regression.js +86 -0
  326. package/dist/services/audit/enforcers/lint-bee-runtime-contract.d.ts +25 -0
  327. package/dist/services/audit/enforcers/lint-bee-runtime-contract.js +91 -0
  328. package/dist/services/audit/enforcers/lint-catalog-governance.d.ts +32 -0
  329. package/dist/services/audit/enforcers/lint-catalog-governance.js +48 -0
  330. package/dist/services/audit/enforcers/lint-cli-back.d.ts +16 -0
  331. package/dist/services/audit/enforcers/lint-cli-back.js +35 -0
  332. package/dist/services/audit/enforcers/lint-output-style.d.ts +11 -0
  333. package/dist/services/audit/enforcers/lint-output-style.js +94 -0
  334. package/dist/services/audit/enforcers/lint-peaks-code-runtime.d.ts +16 -0
  335. package/dist/services/audit/enforcers/lint-peaks-code-runtime.js +31 -0
  336. package/dist/services/audit/enforcers/lint-peaks-skill-runtime.d.ts +23 -0
  337. package/dist/services/audit/enforcers/lint-peaks-skill-runtime.js +59 -0
  338. package/dist/services/audit/enforcers/lint-peaks-ui-sc-txt-runtime.d.ts +28 -0
  339. package/dist/services/audit/enforcers/lint-peaks-ui-sc-txt-runtime.js +86 -0
  340. package/dist/services/audit/enforcers/lint-prd-artifact-handoff.d.ts +16 -0
  341. package/dist/services/audit/enforcers/lint-prd-artifact-handoff.js +41 -0
  342. package/dist/services/audit/enforcers/lint-prd-source-snapshot.d.ts +27 -0
  343. package/dist/services/audit/enforcers/lint-prd-source-snapshot.js +47 -0
  344. package/dist/services/audit/enforcers/lint-qa-gateguard-and-runtime.d.ts +19 -0
  345. package/dist/services/audit/enforcers/lint-qa-gateguard-and-runtime.js +47 -0
  346. package/dist/services/audit/enforcers/lint-rd-handoff-coverage.d.ts +18 -0
  347. package/dist/services/audit/enforcers/lint-rd-handoff-coverage.js +70 -0
  348. package/dist/services/audit/enforcers/lint-reference-integrity.d.ts +6 -0
  349. package/dist/services/audit/enforcers/lint-reference-integrity.js +83 -0
  350. package/dist/services/audit/enforcers/lint-reference-shape.d.ts +30 -0
  351. package/dist/services/audit/enforcers/lint-reference-shape.js +272 -0
  352. package/dist/services/audit/enforcers/lint-skill-presence-mandatory.d.ts +25 -0
  353. package/dist/services/audit/enforcers/lint-skill-presence-mandatory.js +53 -0
  354. package/dist/services/audit/enforcers/lint-style.d.ts +49 -0
  355. package/dist/services/audit/enforcers/lint-style.js +173 -0
  356. package/dist/services/audit/enforcers/lint-workflow-shape.d.ts +4 -0
  357. package/dist/services/audit/enforcers/lint-workflow-shape.js +100 -0
  358. package/dist/services/audit/enforcers/login-gate.d.ts +23 -0
  359. package/dist/services/audit/enforcers/login-gate.js +40 -0
  360. package/dist/services/audit/enforcers/mock-placement.d.ts +25 -0
  361. package/dist/services/audit/enforcers/mock-placement.js +48 -0
  362. package/dist/services/audit/enforcers/no-root-pollution.d.ts +21 -0
  363. package/dist/services/audit/enforcers/no-root-pollution.js +56 -0
  364. package/dist/services/audit/enforcers/pre-rd-scan.d.ts +22 -0
  365. package/dist/services/audit/enforcers/pre-rd-scan.js +23 -0
  366. package/dist/services/audit/enforcers/prototype-fidelity.d.ts +25 -0
  367. package/dist/services/audit/enforcers/prototype-fidelity.js +75 -0
  368. package/dist/services/audit/enforcers/resume-detection.d.ts +21 -0
  369. package/dist/services/audit/enforcers/resume-detection.js +52 -0
  370. package/dist/services/audit/enforcers/sub-agent-sid.d.ts +25 -0
  371. package/dist/services/audit/enforcers/sub-agent-sid.js +63 -0
  372. package/dist/services/audit/prose-ratio-calculator.d.ts +45 -0
  373. package/dist/services/audit/prose-ratio-calculator.js +52 -0
  374. package/dist/services/audit/red-line-catalog-p2-a.d.ts +15 -0
  375. package/dist/services/audit/red-line-catalog-p2-a.js +458 -0
  376. package/dist/services/audit/red-line-catalog-p2-b.d.ts +19 -0
  377. package/dist/services/audit/red-line-catalog-p2-b.js +225 -0
  378. package/dist/services/audit/red-line-catalog.d.ts +51 -0
  379. package/dist/services/audit/red-line-catalog.js +195 -0
  380. package/dist/services/audit/red-lines-service.d.ts +23 -0
  381. package/dist/services/audit/red-lines-service.js +464 -0
  382. package/dist/services/audit/scanners/openspec-scanner.d.ts +15 -0
  383. package/dist/services/audit/scanners/openspec-scanner.js +55 -0
  384. package/dist/services/audit/scanners/rules-tree-scanner.d.ts +16 -0
  385. package/dist/services/audit/scanners/rules-tree-scanner.js +56 -0
  386. package/dist/services/audit/scanners/skills-tree-scanner.d.ts +17 -0
  387. package/dist/services/audit/scanners/skills-tree-scanner.js +68 -0
  388. package/dist/services/audit/static-service.d.ts +67 -0
  389. package/dist/services/audit/static-service.js +51 -0
  390. package/dist/services/audit/types.d.ts +86 -0
  391. package/dist/services/audit/types.js +13 -0
  392. package/dist/services/audit-independent/index.d.ts +2 -0
  393. package/dist/services/audit-independent/index.js +2 -0
  394. package/dist/services/audit-independent/perf-audit-service.d.ts +151 -0
  395. package/dist/services/audit-independent/perf-audit-service.js +316 -0
  396. package/dist/services/audit-independent/security-audit-service.d.ts +155 -0
  397. package/dist/services/audit-independent/security-audit-service.js +316 -0
  398. package/dist/services/autonomous-swarm/autonomous-swarm-service.d.ts +127 -0
  399. package/dist/services/autonomous-swarm/autonomous-swarm-service.js +446 -0
  400. package/dist/services/changeset/changeset-check-service.d.ts +22 -0
  401. package/dist/services/changeset/changeset-check-service.js +47 -0
  402. package/dist/services/classify/classify-service.d.ts +42 -0
  403. package/dist/services/classify/classify-service.js +122 -0
  404. package/dist/services/classify/classify-types.d.ts +79 -0
  405. package/dist/services/classify/classify-types.js +90 -0
  406. package/dist/services/code/auto-compact-modes.d.ts +30 -0
  407. package/dist/services/code/auto-compact-modes.js +38 -0
  408. package/dist/services/code/auto-compact-orchestrator.d.ts +136 -0
  409. package/dist/services/code/auto-compact-orchestrator.js +423 -0
  410. package/dist/services/code/batch-heartbeat-poller.d.ts +51 -0
  411. package/dist/services/code/batch-heartbeat-poller.js +88 -0
  412. package/dist/services/code/dag-orchestrator.d.ts +157 -0
  413. package/dist/services/code/dag-orchestrator.js +409 -0
  414. package/dist/services/code/emit-handoff.d.ts +49 -0
  415. package/dist/services/code/emit-handoff.js +79 -0
  416. package/dist/services/code/job-shape-decision.d.ts +71 -0
  417. package/dist/services/code/job-shape-decision.js +151 -0
  418. package/dist/services/code/mode-gate.d.ts +163 -0
  419. package/dist/services/code/mode-gate.js +212 -0
  420. package/dist/services/code/post-compact-detector.d.ts +61 -0
  421. package/dist/services/code/post-compact-detector.js +240 -0
  422. package/dist/services/code/status-line-renderer.d.ts +36 -0
  423. package/dist/services/code/status-line-renderer.js +73 -0
  424. package/dist/services/code/step-08-gate.d.ts +90 -0
  425. package/dist/services/code/step-08-gate.js +136 -0
  426. package/dist/services/code/user-touchpoint-classifier.d.ts +44 -0
  427. package/dist/services/code/user-touchpoint-classifier.js +145 -0
  428. package/dist/services/code-review/ecc-bridge.d.ts +148 -0
  429. package/dist/services/code-review/ecc-bridge.js +242 -0
  430. package/dist/services/code-review/ocr-service.d.ts +129 -0
  431. package/dist/services/code-review/ocr-service.js +372 -0
  432. package/dist/services/codegraph/codegraph-process-runner.d.ts +2 -0
  433. package/dist/services/codegraph/codegraph-process-runner.js +93 -0
  434. package/dist/services/codegraph/codegraph-service.d.ts +43 -0
  435. package/dist/services/codegraph/codegraph-service.js +160 -0
  436. package/dist/services/compact/decision-tables.d.ts +66 -0
  437. package/dist/services/compact/decision-tables.js +127 -0
  438. package/dist/services/compact/request-transition-hook.d.ts +20 -0
  439. package/dist/services/compact/request-transition-hook.js +110 -0
  440. package/dist/services/compact/suggest-service.d.ts +74 -0
  441. package/dist/services/compact/suggest-service.js +203 -0
  442. package/dist/services/compact-history/compact-history-service.d.ts +41 -0
  443. package/dist/services/compact-history/compact-history-service.js +62 -0
  444. package/dist/services/compact-statusline/compact-statusline-service.d.ts +16 -0
  445. package/dist/services/compact-statusline/compact-statusline-service.js +83 -0
  446. package/dist/services/complexity/complexity-estimator.d.ts +34 -0
  447. package/dist/services/complexity/complexity-estimator.js +64 -0
  448. package/dist/services/config/config-migration.d.ts +45 -0
  449. package/dist/services/config/config-migration.js +154 -0
  450. package/dist/services/config/config-restore.d.ts +10 -0
  451. package/dist/services/config/config-restore.js +47 -0
  452. package/dist/services/config/config-rollback.d.ts +13 -0
  453. package/dist/services/config/config-rollback.js +26 -0
  454. package/dist/services/config/config-safety.d.ts +40 -0
  455. package/dist/services/config/config-safety.js +359 -0
  456. package/dist/services/config/config-service.d.ts +58 -0
  457. package/dist/services/config/config-service.js +745 -0
  458. package/dist/services/config/config-types.d.ts +117 -0
  459. package/dist/services/config/config-types.js +18 -0
  460. package/dist/services/config/model-routing.d.ts +66 -0
  461. package/dist/services/config/model-routing.js +105 -0
  462. package/dist/services/config/proxy-service.d.ts +21 -0
  463. package/dist/services/config/proxy-service.js +44 -0
  464. package/dist/services/config/sidecar-store.d.ts +25 -0
  465. package/dist/services/config/sidecar-store.js +61 -0
  466. package/dist/services/config/workspace-state-service.d.ts +30 -0
  467. package/dist/services/config/workspace-state-service.js +142 -0
  468. package/dist/services/container/container-lease.d.ts +67 -0
  469. package/dist/services/container/container-lease.js +135 -0
  470. package/dist/services/context/artifact-meta.d.ts +72 -0
  471. package/dist/services/context/artifact-meta.js +105 -0
  472. package/dist/services/context/auto-compact-dispatcher.d.ts +72 -0
  473. package/dist/services/context/auto-compact-dispatcher.js +170 -0
  474. package/dist/services/context/auto-compact-reader.d.ts +51 -0
  475. package/dist/services/context/auto-compact-reader.js +164 -0
  476. package/dist/services/context/auto-compact-types.d.ts +168 -0
  477. package/dist/services/context/auto-compact-types.js +43 -0
  478. package/dist/services/context/build-dispatch-system-prompt.d.ts +75 -0
  479. package/dist/services/context/build-dispatch-system-prompt.js +117 -0
  480. package/dist/services/context/collector.d.ts +24 -0
  481. package/dist/services/context/collector.js +133 -0
  482. package/dist/services/context/context-builder.d.ts +30 -0
  483. package/dist/services/context/context-builder.js +78 -0
  484. package/dist/services/context/context-guard.d.ts +49 -0
  485. package/dist/services/context/context-guard.js +91 -0
  486. package/dist/services/context/context-schema.d.ts +415 -0
  487. package/dist/services/context/context-schema.js +73 -0
  488. package/dist/services/context/doc-retriever.d.ts +26 -0
  489. package/dist/services/context/doc-retriever.js +51 -0
  490. package/dist/services/context/headroom-client.d.ts +34 -0
  491. package/dist/services/context/headroom-client.js +117 -0
  492. package/dist/services/context/headroom-fetcher.d.ts +6 -0
  493. package/dist/services/context/headroom-fetcher.js +28 -0
  494. package/dist/services/context/headroom-prefs.d.ts +46 -0
  495. package/dist/services/context/headroom-prefs.js +34 -0
  496. package/dist/services/context/ide-detect.d.ts +4 -0
  497. package/dist/services/context/ide-detect.js +24 -0
  498. package/dist/services/context/index.d.ts +7 -0
  499. package/dist/services/context/index.js +6 -0
  500. package/dist/services/context/main-session-monitor.d.ts +86 -0
  501. package/dist/services/context/main-session-monitor.js +119 -0
  502. package/dist/services/context/memory-index-reader.d.ts +8 -0
  503. package/dist/services/context/memory-index-reader.js +57 -0
  504. package/dist/services/context/memory-lru-cache.d.ts +12 -0
  505. package/dist/services/context/memory-lru-cache.js +60 -0
  506. package/dist/services/context/memory-preflight-config.d.ts +19 -0
  507. package/dist/services/context/memory-preflight-config.js +25 -0
  508. package/dist/services/context/memory-preflight-service.d.ts +19 -0
  509. package/dist/services/context/memory-preflight-service.js +120 -0
  510. package/dist/services/context/renderer.d.ts +20 -0
  511. package/dist/services/context/renderer.js +30 -0
  512. package/dist/services/context/spillover-store.d.ts +23 -0
  513. package/dist/services/context/spillover-store.js +155 -0
  514. package/dist/services/context/spillover-types.d.ts +18 -0
  515. package/dist/services/context/spillover-types.js +1 -0
  516. package/dist/services/context/threshold.d.ts +35 -0
  517. package/dist/services/context/threshold.js +76 -0
  518. package/dist/services/context/tokenizer.d.ts +12 -0
  519. package/dist/services/context/tokenizer.js +43 -0
  520. package/dist/services/context/types.d.ts +93 -0
  521. package/dist/services/context/types.js +9 -0
  522. package/dist/services/crystallization/crystallization-service.d.ts +256 -0
  523. package/dist/services/crystallization/crystallization-service.js +391 -0
  524. package/dist/services/crystallization/crystallization-store.d.ts +75 -0
  525. package/dist/services/crystallization/crystallization-store.js +193 -0
  526. package/dist/services/crystallization/crystallization-types.d.ts +313 -0
  527. package/dist/services/crystallization/crystallization-types.js +299 -0
  528. package/dist/services/crystallization/evidence-brief-builder.d.ts +237 -0
  529. package/dist/services/crystallization/evidence-brief-builder.js +240 -0
  530. package/dist/services/crystallization/index.d.ts +13 -0
  531. package/dist/services/crystallization/index.js +13 -0
  532. package/dist/services/dashboard/project-dashboard-service.d.ts +91 -0
  533. package/dist/services/dashboard/project-dashboard-service.js +147 -0
  534. package/dist/services/dispatch/await-batch.d.ts +70 -0
  535. package/dist/services/dispatch/await-batch.js +272 -0
  536. package/dist/services/dispatch/batch-counter.d.ts +27 -0
  537. package/dist/services/dispatch/batch-counter.js +102 -0
  538. package/dist/services/dispatch/contract-store.d.ts +63 -0
  539. package/dist/services/dispatch/contract-store.js +157 -0
  540. package/dist/services/dispatch/dispatch-record-writer.d.ts +260 -0
  541. package/dist/services/dispatch/dispatch-record-writer.js +690 -0
  542. package/dist/services/dispatch/heartbeat-truncator.d.ts +26 -0
  543. package/dist/services/dispatch/heartbeat-truncator.js +13 -0
  544. package/dist/services/dispatch/leak-detector.d.ts +11 -0
  545. package/dist/services/dispatch/leak-detector.js +72 -0
  546. package/dist/services/dispatch/slice-dag.d.ts +127 -0
  547. package/dist/services/dispatch/slice-dag.js +244 -0
  548. package/dist/services/dispatch/stage-enum.d.ts +27 -0
  549. package/dist/services/dispatch/stage-enum.js +48 -0
  550. package/dist/services/dispatch/startup-timeout.d.ts +86 -0
  551. package/dist/services/dispatch/startup-timeout.js +97 -0
  552. package/dist/services/dispatch/sub-agent-dispatcher.d.ts +239 -0
  553. package/dist/services/dispatch/sub-agent-dispatcher.js +333 -0
  554. package/dist/services/dispatch/test-tool-detection.d.ts +60 -0
  555. package/dist/services/dispatch/test-tool-detection.js +126 -0
  556. package/dist/services/doc/doc-generator.d.ts +38 -0
  557. package/dist/services/doc/doc-generator.js +122 -0
  558. package/dist/services/doctor/doctor-service/checks/check-id-schema.d.ts +18 -0
  559. package/dist/services/doctor/doctor-service/checks/check-id-schema.js +64 -0
  560. package/dist/services/doctor/doctor-service/checks/codegraph-capability.d.ts +14 -0
  561. package/dist/services/doctor/doctor-service/checks/codegraph-capability.js +69 -0
  562. package/dist/services/doctor/doctor-service/checks/dist-source-version.d.ts +32 -0
  563. package/dist/services/doctor/doctor-service/checks/dist-source-version.js +110 -0
  564. package/dist/services/doctor/doctor-service/checks/gateguard-conflict.d.ts +24 -0
  565. package/dist/services/doctor/doctor-service/checks/gateguard-conflict.js +164 -0
  566. package/dist/services/doctor/doctor-service/checks/l3-memory-health.d.ts +16 -0
  567. package/dist/services/doctor/doctor-service/checks/l3-memory-health.js +57 -0
  568. package/dist/services/doctor/doctor-service/checks/l3-orphan-sessions.d.ts +19 -0
  569. package/dist/services/doctor/doctor-service/checks/l3-orphan-sessions.js +66 -0
  570. package/dist/services/doctor/doctor-service/checks/schema-validity.d.ts +10 -0
  571. package/dist/services/doctor/doctor-service/checks/schema-validity.js +33 -0
  572. package/dist/services/doctor/doctor-service/checks/skill-apply-note.d.ts +20 -0
  573. package/dist/services/doctor/doctor-service/checks/skill-apply-note.js +85 -0
  574. package/dist/services/doctor/doctor-service/checks/skill-existence.d.ts +13 -0
  575. package/dist/services/doctor/doctor-service/checks/skill-existence.js +30 -0
  576. package/dist/services/doctor/doctor-service/checks/skill-name-match.d.ts +10 -0
  577. package/dist/services/doctor/doctor-service/checks/skill-name-match.js +25 -0
  578. package/dist/services/doctor/doctor-service/checks/skill-parse.d.ts +10 -0
  579. package/dist/services/doctor/doctor-service/checks/skill-parse.js +19 -0
  580. package/dist/services/doctor/doctor-service/checks/skill-presence.d.ts +21 -0
  581. package/dist/services/doctor/doctor-service/checks/skill-presence.js +75 -0
  582. package/dist/services/doctor/doctor-service/checks/skill-runbook.d.ts +14 -0
  583. package/dist/services/doctor/doctor-service/checks/skill-runbook.js +47 -0
  584. package/dist/services/doctor/doctor-service/checks/statusline-install.d.ts +14 -0
  585. package/dist/services/doctor/doctor-service/checks/statusline-install.js +32 -0
  586. package/dist/services/doctor/doctor-service/checks/statusline-runtime.d.ts +13 -0
  587. package/dist/services/doctor/doctor-service/checks/statusline-runtime.js +30 -0
  588. package/dist/services/doctor/doctor-service/checks/user-config.d.ts +11 -0
  589. package/dist/services/doctor/doctor-service/checks/user-config.js +27 -0
  590. package/dist/services/doctor/doctor-service/checks/workspace-init.d.ts +16 -0
  591. package/dist/services/doctor/doctor-service/checks/workspace-init.js +34 -0
  592. package/dist/services/doctor/doctor-service/checks/workspace-layout.d.ts +33 -0
  593. package/dist/services/doctor/doctor-service/checks/workspace-layout.js +180 -0
  594. package/dist/services/doctor/doctor-service/index.d.ts +48 -0
  595. package/dist/services/doctor/doctor-service/index.js +254 -0
  596. package/dist/services/doctor/doctor-service/plugin-registry.d.ts +41 -0
  597. package/dist/services/doctor/doctor-service/plugin-registry.js +77 -0
  598. package/dist/services/doctor/doctor-service/report/final-summary.d.ts +20 -0
  599. package/dist/services/doctor/doctor-service/report/final-summary.js +29 -0
  600. package/dist/services/doctor/doctor-service/types.d.ts +245 -0
  601. package/dist/services/doctor/doctor-service/types.js +15 -0
  602. package/dist/services/doctor/doctor-service.d.ts +18 -0
  603. package/dist/services/doctor/doctor-service.js +25 -0
  604. package/dist/services/doctor/index.d.ts +22 -0
  605. package/dist/services/doctor/index.js +22 -0
  606. package/dist/services/env/shell-probe.d.ts +71 -0
  607. package/dist/services/env/shell-probe.js +161 -0
  608. package/dist/services/evolution/evolution-service.d.ts +137 -0
  609. package/dist/services/evolution/evolution-service.js +281 -0
  610. package/dist/services/evolution/evolution-store.d.ts +57 -0
  611. package/dist/services/evolution/evolution-store.js +232 -0
  612. package/dist/services/evolution/evolution-types.d.ts +706 -0
  613. package/dist/services/evolution/evolution-types.js +286 -0
  614. package/dist/services/evolution/independent-evaluator-runner.d.ts +90 -0
  615. package/dist/services/evolution/independent-evaluator-runner.js +106 -0
  616. package/dist/services/evolution/regression-skeptic-runner.d.ts +64 -0
  617. package/dist/services/evolution/regression-skeptic-runner.js +113 -0
  618. package/dist/services/feedback/feedback-promotion-service.d.ts +123 -0
  619. package/dist/services/feedback/feedback-promotion-service.js +300 -0
  620. package/dist/services/final-review/final-review-service.d.ts +22 -0
  621. package/dist/services/final-review/final-review-service.js +52 -0
  622. package/dist/services/final-review/final-review-types.d.ts +42 -0
  623. package/dist/services/final-review/final-review-types.js +18 -0
  624. package/dist/services/final-review/index.d.ts +2 -0
  625. package/dist/services/final-review/index.js +1 -0
  626. package/dist/services/fixture/fixture-capture-service.d.ts +87 -0
  627. package/dist/services/fixture/fixture-capture-service.js +317 -0
  628. package/dist/services/fixture/fixture-sanitize-service.d.ts +117 -0
  629. package/dist/services/fixture/fixture-sanitize-service.js +161 -0
  630. package/dist/services/fixture/index.d.ts +8 -0
  631. package/dist/services/fixture/index.js +8 -0
  632. package/dist/services/fork/fork-sync-state.d.ts +85 -0
  633. package/dist/services/fork/fork-sync-state.js +130 -0
  634. package/dist/services/fuzzy-matching/fuzzy-match-service.d.ts +15 -0
  635. package/dist/services/fuzzy-matching/fuzzy-match-service.js +56 -0
  636. package/dist/services/fuzzy-matching/fzf-pick-service.d.ts +68 -0
  637. package/dist/services/fuzzy-matching/fzf-pick-service.js +158 -0
  638. package/dist/services/fuzzy-matching/types.d.ts +20 -0
  639. package/dist/services/fuzzy-matching/types.js +1 -0
  640. package/dist/services/handoff/handoff-parser.d.ts +28 -0
  641. package/dist/services/handoff/handoff-parser.js +69 -0
  642. package/dist/services/handoff/handoff-types.d.ts +39 -0
  643. package/dist/services/handoff/handoff-types.js +19 -0
  644. package/dist/services/handoff/handoff-writer.d.ts +23 -0
  645. package/dist/services/handoff/handoff-writer.js +30 -0
  646. package/dist/services/hooks/auto-compact-hook-install.d.ts +103 -0
  647. package/dist/services/hooks/auto-compact-hook-install.js +156 -0
  648. package/dist/services/hooks/output.d.ts +92 -0
  649. package/dist/services/hooks/output.js +111 -0
  650. package/dist/services/hooks/presence-marker-detector.d.ts +16 -0
  651. package/dist/services/hooks/presence-marker-detector.js +105 -0
  652. package/dist/services/hooks/worktree-authorization-gate.d.ts +205 -0
  653. package/dist/services/hooks/worktree-authorization-gate.js +492 -0
  654. package/dist/services/ide/adapters/claude-code-adapter.d.ts +18 -0
  655. package/dist/services/ide/adapters/claude-code-adapter.js +103 -0
  656. package/dist/services/ide/adapters/codex-adapter.d.ts +46 -0
  657. package/dist/services/ide/adapters/codex-adapter.js +97 -0
  658. package/dist/services/ide/adapters/cursor-adapter.d.ts +36 -0
  659. package/dist/services/ide/adapters/cursor-adapter.js +84 -0
  660. package/dist/services/ide/adapters/hermes-adapter.d.ts +21 -0
  661. package/dist/services/ide/adapters/hermes-adapter.js +51 -0
  662. package/dist/services/ide/adapters/openclaw-adapter.d.ts +14 -0
  663. package/dist/services/ide/adapters/openclaw-adapter.js +42 -0
  664. package/dist/services/ide/adapters/qoder-adapter.d.ts +25 -0
  665. package/dist/services/ide/adapters/qoder-adapter.js +57 -0
  666. package/dist/services/ide/adapters/tongyi-lingma-adapter.d.ts +16 -0
  667. package/dist/services/ide/adapters/tongyi-lingma-adapter.js +45 -0
  668. package/dist/services/ide/adapters/trae-adapter.d.ts +42 -0
  669. package/dist/services/ide/adapters/trae-adapter.js +83 -0
  670. package/dist/services/ide/adapters/zcode-adapter.d.ts +40 -0
  671. package/dist/services/ide/adapters/zcode-adapter.js +220 -0
  672. package/dist/services/ide/current-model-detector.d.ts +14 -0
  673. package/dist/services/ide/current-model-detector.js +60 -0
  674. package/dist/services/ide/hook-protocol.d.ts +47 -0
  675. package/dist/services/ide/hook-protocol.js +74 -0
  676. package/dist/services/ide/hook-translator.d.ts +72 -0
  677. package/dist/services/ide/hook-translator.js +128 -0
  678. package/dist/services/ide/ide-detector.d.ts +10 -0
  679. package/dist/services/ide/ide-detector.js +19 -0
  680. package/dist/services/ide/ide-registry.d.ts +14 -0
  681. package/dist/services/ide/ide-registry.js +69 -0
  682. package/dist/services/ide/ide-types.d.ts +253 -0
  683. package/dist/services/ide/ide-types.js +2 -0
  684. package/dist/services/ide/resource-profile.d.ts +52 -0
  685. package/dist/services/ide/resource-profile.js +33 -0
  686. package/dist/services/ide/shared/atomic-json.d.ts +15 -0
  687. package/dist/services/ide/shared/atomic-json.js +58 -0
  688. package/dist/services/ide/shared/safe-path.d.ts +11 -0
  689. package/dist/services/ide/shared/safe-path.js +29 -0
  690. package/dist/services/impact/impact-scan-service.d.ts +66 -0
  691. package/dist/services/impact/impact-scan-service.js +197 -0
  692. package/dist/services/job/job-event-emitter.d.ts +30 -0
  693. package/dist/services/job/job-event-emitter.js +5 -0
  694. package/dist/services/job/job-orchestrator.d.ts +50 -0
  695. package/dist/services/job/job-orchestrator.js +104 -0
  696. package/dist/services/job/job-progress-store.d.ts +60 -0
  697. package/dist/services/job/job-progress-store.js +70 -0
  698. package/dist/services/job/job-rotation.d.ts +17 -0
  699. package/dist/services/job/job-rotation.js +30 -0
  700. package/dist/services/job/job-state-store.d.ts +24 -0
  701. package/dist/services/job/job-state-store.js +60 -0
  702. package/dist/services/job/job-types.d.ts +444 -0
  703. package/dist/services/job/job-types.js +87 -0
  704. package/dist/services/job/subagent-job-wrapper.d.ts +35 -0
  705. package/dist/services/job/subagent-job-wrapper.js +30 -0
  706. package/dist/services/job-snapshot/index.d.ts +8 -0
  707. package/dist/services/job-snapshot/index.js +7 -0
  708. package/dist/services/job-snapshot/snapshot.d.ts +7 -0
  709. package/dist/services/job-snapshot/snapshot.js +75 -0
  710. package/dist/services/job-snapshot/types.d.ts +7 -0
  711. package/dist/services/job-snapshot/types.js +1 -0
  712. package/dist/services/karpathy-cost/karpathy-cost-check-service.d.ts +67 -0
  713. package/dist/services/karpathy-cost/karpathy-cost-check-service.js +108 -0
  714. package/dist/services/legacy/legacy-detector.d.ts +34 -0
  715. package/dist/services/legacy/legacy-detector.js +111 -0
  716. package/dist/services/log/log-commands-service.d.ts +54 -0
  717. package/dist/services/log/log-commands-service.js +83 -0
  718. package/dist/services/log/logger.d.ts +103 -0
  719. package/dist/services/log/logger.js +224 -0
  720. package/dist/services/log/redact.d.ts +32 -0
  721. package/dist/services/log/redact.js +89 -0
  722. package/dist/services/log/retention.d.ts +50 -0
  723. package/dist/services/log/retention.js +95 -0
  724. package/dist/services/loop/evaluator-dispatcher.d.ts +50 -0
  725. package/dist/services/loop/evaluator-dispatcher.js +552 -0
  726. package/dist/services/loop/loop-bee-relation-service.d.ts +107 -0
  727. package/dist/services/loop/loop-bee-relation-service.js +211 -0
  728. package/dist/services/loop/loop-bee-relation-store.d.ts +53 -0
  729. package/dist/services/loop/loop-bee-relation-store.js +130 -0
  730. package/dist/services/loop/loop-bee-relation-types.d.ts +118 -0
  731. package/dist/services/loop/loop-bee-relation-types.js +114 -0
  732. package/dist/services/loop/loop-release-service.d.ts +46 -0
  733. package/dist/services/loop/loop-release-service.js +66 -0
  734. package/dist/services/loop/loop-release-store.d.ts +55 -0
  735. package/dist/services/loop/loop-release-store.js +134 -0
  736. package/dist/services/loop/loop-release-types.d.ts +250 -0
  737. package/dist/services/loop/loop-release-types.js +162 -0
  738. package/dist/services/loop/monotonic-guard.d.ts +80 -0
  739. package/dist/services/loop/monotonic-guard.js +232 -0
  740. package/dist/services/loop/monotonic-runner.d.ts +64 -0
  741. package/dist/services/loop/monotonic-runner.js +270 -0
  742. package/dist/services/loop/run-driver.d.ts +70 -0
  743. package/dist/services/loop/run-driver.js +400 -0
  744. package/dist/services/loop/spec-service.d.ts +90 -0
  745. package/dist/services/loop/spec-service.js +497 -0
  746. package/dist/services/memory/llm-reranker.d.ts +174 -0
  747. package/dist/services/memory/llm-reranker.js +284 -0
  748. package/dist/services/memory/memory-search-service.d.ts +93 -0
  749. package/dist/services/memory/memory-search-service.js +117 -0
  750. package/dist/services/memory/project-context-service.d.ts +21 -0
  751. package/dist/services/memory/project-context-service.js +161 -0
  752. package/dist/services/memory/project-memory-service/index/kind-dispatch.d.ts +8 -0
  753. package/dist/services/memory/project-memory-service/index/kind-dispatch.js +253 -0
  754. package/dist/services/memory/project-memory-service/index/ranking.d.ts +6 -0
  755. package/dist/services/memory/project-memory-service/index/ranking.js +171 -0
  756. package/dist/services/memory/project-memory-service/index/search.d.ts +34 -0
  757. package/dist/services/memory/project-memory-service/index/search.js +194 -0
  758. package/dist/services/memory/project-memory-service/index.d.ts +9 -0
  759. package/dist/services/memory/project-memory-service/index.js +24 -0
  760. package/dist/services/memory/project-memory-service/parsers/frontmatter.d.ts +9 -0
  761. package/dist/services/memory/project-memory-service/parsers/frontmatter.js +106 -0
  762. package/dist/services/memory/project-memory-service/parsers/markdown-pure.d.ts +7 -0
  763. package/dist/services/memory/project-memory-service/parsers/markdown-pure.js +96 -0
  764. package/dist/services/memory/project-memory-service/store/atomic-write.d.ts +5 -0
  765. package/dist/services/memory/project-memory-service/store/atomic-write.js +56 -0
  766. package/dist/services/memory/project-memory-service/store/paths.d.ts +8 -0
  767. package/dist/services/memory/project-memory-service/store/paths.js +116 -0
  768. package/dist/services/memory/project-memory-service/types.d.ts +128 -0
  769. package/dist/services/memory/project-memory-service/types.js +9 -0
  770. package/dist/services/memory/project-memory-service.d.ts +1 -0
  771. package/dist/services/memory/project-memory-service.js +20 -0
  772. package/dist/services/migrate-skill-name/migrate.d.ts +17 -0
  773. package/dist/services/migrate-skill-name/migrate.js +152 -0
  774. package/dist/services/migrate-skill-name/schema.d.ts +42 -0
  775. package/dist/services/migrate-skill-name/schema.js +25 -0
  776. package/dist/services/migration/v2-10-to-v2-11-service.d.ts +44 -0
  777. package/dist/services/migration/v2-10-to-v2-11-service.js +190 -0
  778. package/dist/services/migration/v2-10-to-v2-11-types.d.ts +41 -0
  779. package/dist/services/migration/v2-10-to-v2-11-types.js +23 -0
  780. package/dist/services/mode/bypass-tracker.d.ts +4 -0
  781. package/dist/services/mode/bypass-tracker.js +31 -0
  782. package/dist/services/mode/mode-enforcement.d.ts +14 -0
  783. package/dist/services/mode/mode-enforcement.js +84 -0
  784. package/dist/services/observability/aggregation.d.ts +91 -0
  785. package/dist/services/observability/aggregation.js +289 -0
  786. package/dist/services/observability/jsonl-store.d.ts +59 -0
  787. package/dist/services/observability/jsonl-store.js +120 -0
  788. package/dist/services/observability/observability-service.d.ts +161 -0
  789. package/dist/services/observability/observability-service.js +205 -0
  790. package/dist/services/observability/report-formatter.d.ts +42 -0
  791. package/dist/services/observability/report-formatter.js +156 -0
  792. package/dist/services/openspec/artifact-boundary.d.ts +138 -0
  793. package/dist/services/openspec/artifact-boundary.js +150 -0
  794. package/dist/services/openspec/coverage-evidence-reader.d.ts +191 -0
  795. package/dist/services/openspec/coverage-evidence-reader.js +386 -0
  796. package/dist/services/openspec/openspec-archive-service.d.ts +82 -0
  797. package/dist/services/openspec/openspec-archive-service.js +340 -0
  798. package/dist/services/openspec/openspec-bridge-service.d.ts +16 -0
  799. package/dist/services/openspec/openspec-bridge-service.js +76 -0
  800. package/dist/services/openspec/openspec-init-service.d.ts +23 -0
  801. package/dist/services/openspec/openspec-init-service.js +122 -0
  802. package/dist/services/openspec/openspec-propose-from-doctor-service.d.ts +31 -0
  803. package/dist/services/openspec/openspec-propose-from-doctor-service.js +95 -0
  804. package/dist/services/openspec/openspec-render-service.d.ts +38 -0
  805. package/dist/services/openspec/openspec-render-service.js +133 -0
  806. package/dist/services/openspec/openspec-scan-service.d.ts +6 -0
  807. package/dist/services/openspec/openspec-scan-service.js +123 -0
  808. package/dist/services/openspec/openspec-types.d.ts +39 -0
  809. package/dist/services/openspec/openspec-types.js +1 -0
  810. package/dist/services/openspec/openspec-validate-service.d.ts +27 -0
  811. package/dist/services/openspec/openspec-validate-service.js +78 -0
  812. package/dist/services/perf/perf-baseline-service.d.ts +70 -0
  813. package/dist/services/perf/perf-baseline-service.js +214 -0
  814. package/dist/services/polyrepo/polyrepo-dispatcher.d.ts +34 -0
  815. package/dist/services/polyrepo/polyrepo-dispatcher.js +119 -0
  816. package/dist/services/polyrepo/polyrepo-scanner.d.ts +9 -0
  817. package/dist/services/polyrepo/polyrepo-scanner.js +94 -0
  818. package/dist/services/polyrepo/polyrepo-service.d.ts +34 -0
  819. package/dist/services/polyrepo/polyrepo-service.js +49 -0
  820. package/dist/services/polyrepo/polyrepo-types.d.ts +55 -0
  821. package/dist/services/polyrepo/polyrepo-types.js +1 -0
  822. package/dist/services/prd/handoff-auto-regen.d.ts +22 -0
  823. package/dist/services/prd/handoff-auto-regen.js +73 -0
  824. package/dist/services/prd/handoff-service.d.ts +54 -0
  825. package/dist/services/prd/handoff-service.js +142 -0
  826. package/dist/services/prd/handoff-types.d.ts +64 -0
  827. package/dist/services/prd/handoff-types.js +22 -0
  828. package/dist/services/prd/prd-blocks-checker.d.ts +51 -0
  829. package/dist/services/prd/prd-blocks-checker.js +130 -0
  830. package/dist/services/prd/project-scan-bootstrap-service.d.ts +52 -0
  831. package/dist/services/prd/project-scan-bootstrap-service.js +445 -0
  832. package/dist/services/prd/project-scan-reader.d.ts +24 -0
  833. package/dist/services/prd/project-scan-reader.js +150 -0
  834. package/dist/services/prd/project-scan-sediment.d.ts +97 -0
  835. package/dist/services/prd/project-scan-sediment.js +445 -0
  836. package/dist/services/prd/project-scan-types.d.ts +66 -0
  837. package/dist/services/prd/project-scan-types.js +20 -0
  838. package/dist/services/preferences/preferences-service.d.ts +38 -0
  839. package/dist/services/preferences/preferences-service.js +208 -0
  840. package/dist/services/preferences/preferences-types.d.ts +161 -0
  841. package/dist/services/preferences/preferences-types.js +64 -0
  842. package/dist/services/profiles/profile-service.d.ts +6 -0
  843. package/dist/services/profiles/profile-service.js +19 -0
  844. package/dist/services/progress/progress-service.d.ts +125 -0
  845. package/dist/services/progress/progress-service.js +192 -0
  846. package/dist/services/proxy/proxy-service.d.ts +7 -0
  847. package/dist/services/proxy/proxy-service.js +31 -0
  848. package/dist/services/qa/browser-event-logger.d.ts +40 -0
  849. package/dist/services/qa/browser-event-logger.js +54 -0
  850. package/dist/services/qa/browser-restart-detector.d.ts +74 -0
  851. package/dist/services/qa/browser-restart-detector.js +138 -0
  852. package/dist/services/qa/browser-reuse-hint.d.ts +18 -0
  853. package/dist/services/qa/browser-reuse-hint.js +18 -0
  854. package/dist/services/qa/browser-wrapper-service.d.ts +37 -0
  855. package/dist/services/qa/browser-wrapper-service.js +88 -0
  856. package/dist/services/qa/qa-business-review-state.d.ts +47 -0
  857. package/dist/services/qa/qa-business-review-state.js +96 -0
  858. package/dist/services/qa/screenshot-archive-service.d.ts +51 -0
  859. package/dist/services/qa/screenshot-archive-service.js +134 -0
  860. package/dist/services/rd/ast-gate.d.ts +19 -0
  861. package/dist/services/rd/ast-gate.js +71 -0
  862. package/dist/services/rd/impl.d.ts +9 -0
  863. package/dist/services/rd/impl.js +57 -0
  864. package/dist/services/rd/rd-service.d.ts +129 -0
  865. package/dist/services/rd/rd-service.js +440 -0
  866. package/dist/services/rd/reviewer-dispatch-policy.d.ts +122 -0
  867. package/dist/services/rd/reviewer-dispatch-policy.js +148 -0
  868. package/dist/services/rd/standards-diagnostic.d.ts +76 -0
  869. package/dist/services/rd/standards-diagnostic.js +166 -0
  870. package/dist/services/rd/strategic-stage.d.ts +4 -0
  871. package/dist/services/rd/strategic-stage.js +15 -0
  872. package/dist/services/rd/strategy.d.ts +13 -0
  873. package/dist/services/rd/strategy.js +60 -0
  874. package/dist/services/rd/tactical-stage.d.ts +33 -0
  875. package/dist/services/rd/tactical-stage.js +62 -0
  876. package/dist/services/rd/types.d.ts +252 -0
  877. package/dist/services/rd/types.js +47 -0
  878. package/dist/services/rd-swarm/rd-swarm-service.d.ts +60 -0
  879. package/dist/services/rd-swarm/rd-swarm-service.js +93 -0
  880. package/dist/services/recommendations/capability-availability.d.ts +5 -0
  881. package/dist/services/recommendations/capability-availability.js +40 -0
  882. package/dist/services/recommendations/capability-map-service.d.ts +7 -0
  883. package/dist/services/recommendations/capability-map-service.js +131 -0
  884. package/dist/services/recommendations/capability-seed-items.d.ts +2 -0
  885. package/dist/services/recommendations/capability-seed-items.js +139 -0
  886. package/dist/services/recommendations/capability-seed-mappings.d.ts +2 -0
  887. package/dist/services/recommendations/capability-seed-mappings.js +53 -0
  888. package/dist/services/recommendations/capability-seed-sources.d.ts +2 -0
  889. package/dist/services/recommendations/capability-seed-sources.js +34 -0
  890. package/dist/services/recommendations/recommendation-service.d.ts +8 -0
  891. package/dist/services/recommendations/recommendation-service.js +106 -0
  892. package/dist/services/recommendations/recommendation-types.d.ts +129 -0
  893. package/dist/services/recommendations/recommendation-types.js +1 -0
  894. package/dist/services/recommendations/seed-capability-catalog.d.ts +3 -0
  895. package/dist/services/recommendations/seed-capability-catalog.js +3 -0
  896. package/dist/services/refactor/refactor-service.d.ts +9 -0
  897. package/dist/services/refactor/refactor-service.js +36 -0
  898. package/dist/services/release/release-state.d.ts +70 -0
  899. package/dist/services/release/release-state.js +140 -0
  900. package/dist/services/release/version-precheck-service.d.ts +51 -0
  901. package/dist/services/release/version-precheck-service.js +257 -0
  902. package/dist/services/retrospective/retrospective-index.d.ts +37 -0
  903. package/dist/services/retrospective/retrospective-index.js +110 -0
  904. package/dist/services/retrospective/retrospective-search-service.d.ts +55 -0
  905. package/dist/services/retrospective/retrospective-search-service.js +107 -0
  906. package/dist/services/retrospective/retrospective-show.d.ts +40 -0
  907. package/dist/services/retrospective/retrospective-show.js +109 -0
  908. package/dist/services/reviewer/model-family.d.ts +18 -0
  909. package/dist/services/reviewer/model-family.js +70 -0
  910. package/dist/services/reviewer/providers/anthropic.d.ts +2 -0
  911. package/dist/services/reviewer/providers/anthropic.js +61 -0
  912. package/dist/services/reviewer/providers/ollama.d.ts +26 -0
  913. package/dist/services/reviewer/providers/ollama.js +38 -0
  914. package/dist/services/reviewer/providers/openai.d.ts +2 -0
  915. package/dist/services/reviewer/providers/openai.js +63 -0
  916. package/dist/services/reviewer/reviewer-config.d.ts +34 -0
  917. package/dist/services/reviewer/reviewer-config.js +100 -0
  918. package/dist/services/reviewer/reviewer-service.d.ts +56 -0
  919. package/dist/services/reviewer/reviewer-service.js +263 -0
  920. package/dist/services/reviewer/selection-strategies.d.ts +27 -0
  921. package/dist/services/reviewer/selection-strategies.js +53 -0
  922. package/dist/services/role/role-registry.d.ts +38 -0
  923. package/dist/services/role/role-registry.js +83 -0
  924. package/dist/services/runtime/runtime-detector.d.ts +15 -0
  925. package/dist/services/runtime/runtime-detector.js +62 -0
  926. package/dist/services/runtime/runtime-service.d.ts +59 -0
  927. package/dist/services/runtime/runtime-service.js +51 -0
  928. package/dist/services/runtime/vendor-adapter.d.ts +59 -0
  929. package/dist/services/runtime/vendor-adapter.js +1 -0
  930. package/dist/services/runtime/vendors/claude-code.d.ts +7 -0
  931. package/dist/services/runtime/vendors/claude-code.js +39 -0
  932. package/dist/services/runtime/vendors/codex.d.ts +7 -0
  933. package/dist/services/runtime/vendors/codex.js +43 -0
  934. package/dist/services/runtime/vendors/copilot.d.ts +7 -0
  935. package/dist/services/runtime/vendors/copilot.js +40 -0
  936. package/dist/services/sc/index.d.ts +1 -0
  937. package/dist/services/sc/index.js +1 -0
  938. package/dist/services/sc/sc-service.d.ts +131 -0
  939. package/dist/services/sc/sc-service.js +552 -0
  940. package/dist/services/scan/acceptance-coverage-service.d.ts +42 -0
  941. package/dist/services/scan/acceptance-coverage-service.js +140 -0
  942. package/dist/services/scan/api-surface-service.d.ts +69 -0
  943. package/dist/services/scan/api-surface-service.js +239 -0
  944. package/dist/services/scan/archetype-service.d.ts +5 -0
  945. package/dist/services/scan/archetype-service.js +254 -0
  946. package/dist/services/scan/diff-scope-service.d.ts +40 -0
  947. package/dist/services/scan/diff-scope-service.js +198 -0
  948. package/dist/services/scan/existing-system-service.d.ts +7 -0
  949. package/dist/services/scan/existing-system-service.js +300 -0
  950. package/dist/services/scan/file-size-scan.d.ts +23 -0
  951. package/dist/services/scan/file-size-scan.js +68 -0
  952. package/dist/services/scan/karpathy-service.d.ts +60 -0
  953. package/dist/services/scan/karpathy-service.js +228 -0
  954. package/dist/services/scan/libraries-service.d.ts +24 -0
  955. package/dist/services/scan/libraries-service.js +419 -0
  956. package/dist/services/scan/libraries-types.d.ts +59 -0
  957. package/dist/services/scan/libraries-types.js +9 -0
  958. package/dist/services/scan/orphan-service.d.ts +76 -0
  959. package/dist/services/scan/orphan-service.js +538 -0
  960. package/dist/services/scan/scan-types.d.ts +59 -0
  961. package/dist/services/scan/scan-types.js +1 -0
  962. package/dist/services/scan/type-sanity-service.d.ts +23 -0
  963. package/dist/services/scan/type-sanity-service.js +116 -0
  964. package/dist/services/security/safe-settings-path.d.ts +12 -0
  965. package/dist/services/security/safe-settings-path.js +104 -0
  966. package/dist/services/sediment/dispose-confirm.d.ts +9 -0
  967. package/dist/services/sediment/dispose-confirm.js +5 -0
  968. package/dist/services/sediment/json-schema.d.ts +247 -0
  969. package/dist/services/sediment/json-schema.js +26 -0
  970. package/dist/services/sediment/manifest-lint.d.ts +13 -0
  971. package/dist/services/sediment/manifest-lint.js +11 -0
  972. package/dist/services/sediment/pool-paths.d.ts +22 -0
  973. package/dist/services/sediment/pool-paths.js +25 -0
  974. package/dist/services/sediment/pool-read.d.ts +20 -0
  975. package/dist/services/sediment/pool-read.js +73 -0
  976. package/dist/services/sediment/pool-rebuild-index.d.ts +15 -0
  977. package/dist/services/sediment/pool-rebuild-index.js +28 -0
  978. package/dist/services/sediment/pool-write.d.ts +14 -0
  979. package/dist/services/sediment/pool-write.js +25 -0
  980. package/dist/services/sediment/promotion-gate.d.ts +12 -0
  981. package/dist/services/sediment/promotion-gate.js +20 -0
  982. package/dist/services/sediment/types.d.ts +52 -0
  983. package/dist/services/sediment/types.js +1 -0
  984. package/dist/services/session/binding-status-service.d.ts +56 -0
  985. package/dist/services/session/binding-status-service.js +106 -0
  986. package/dist/services/session/binding-store.d.ts +161 -0
  987. package/dist/services/session/binding-store.js +509 -0
  988. package/dist/services/session/caller-binding-service.d.ts +70 -0
  989. package/dist/services/session/caller-binding-service.js +148 -0
  990. package/dist/services/session/caller-id-types.d.ts +77 -0
  991. package/dist/services/session/caller-id-types.js +46 -0
  992. package/dist/services/session/getSessionDir.d.ts +1 -0
  993. package/dist/services/session/getSessionDir.js +27 -0
  994. package/dist/services/session/index.d.ts +6 -0
  995. package/dist/services/session/index.js +7 -0
  996. package/dist/services/session/platform-fallbacks.d.ts +31 -0
  997. package/dist/services/session/platform-fallbacks.js +35 -0
  998. package/dist/services/session/resolve-caller-id.d.ts +57 -0
  999. package/dist/services/session/resolve-caller-id.js +88 -0
  1000. package/dist/services/session/session-binding-bridge.d.ts +76 -0
  1001. package/dist/services/session/session-binding-bridge.js +247 -0
  1002. package/dist/services/session/session-checkpoint-service.d.ts +57 -0
  1003. package/dist/services/session/session-checkpoint-service.js +143 -0
  1004. package/dist/services/session/session-manager.d.ts +168 -0
  1005. package/dist/services/session/session-manager.js +502 -0
  1006. package/dist/services/session/session-resume-service.d.ts +25 -0
  1007. package/dist/services/session/session-resume-service.js +101 -0
  1008. package/dist/services/share/bundle-reader.d.ts +100 -0
  1009. package/dist/services/share/bundle-reader.js +434 -0
  1010. package/dist/services/share/bundle-types.d.ts +392 -0
  1011. package/dist/services/share/bundle-types.js +318 -0
  1012. package/dist/services/share/bundle-writer.d.ts +97 -0
  1013. package/dist/services/share/bundle-writer.js +429 -0
  1014. package/dist/services/share/run-state-contract.d.ts +133 -0
  1015. package/dist/services/share/run-state-contract.js +138 -0
  1016. package/dist/services/signal/cancel-handler.d.ts +14 -0
  1017. package/dist/services/signal/cancel-handler.js +76 -0
  1018. package/dist/services/skill/resume-detector.d.ts +54 -0
  1019. package/dist/services/skill/resume-detector.js +334 -0
  1020. package/dist/services/skill/skill-scheduler.d.ts +40 -0
  1021. package/dist/services/skill/skill-scheduler.js +53 -0
  1022. package/dist/services/skill/skill-search-service.d.ts +93 -0
  1023. package/dist/services/skill/skill-search-service.js +232 -0
  1024. package/dist/services/skillhub/migrations/001-initial.sql +71 -0
  1025. package/dist/services/skillhub/migrations/002-loop-release.sql +32 -0
  1026. package/dist/services/skillhub/migrations/003-loop-bee-relation.sql +35 -0
  1027. package/dist/services/skillhub/migrations/004-loop-bee-extension.sql +65 -0
  1028. package/dist/services/skillhub/migrations/005-evolution-evaluation.sql +81 -0
  1029. package/dist/services/skillhub/migrations/006-crystallization-event.sql +92 -0
  1030. package/dist/services/skillhub/release-diff.d.ts +18 -0
  1031. package/dist/services/skillhub/release-diff.js +38 -0
  1032. package/dist/services/skillhub/release-export.d.ts +8 -0
  1033. package/dist/services/skillhub/release-export.js +31 -0
  1034. package/dist/services/skillhub/release-gc-blobs.d.ts +13 -0
  1035. package/dist/services/skillhub/release-gc-blobs.js +32 -0
  1036. package/dist/services/skillhub/release-import.d.ts +7 -0
  1037. package/dist/services/skillhub/release-import.js +64 -0
  1038. package/dist/services/skillhub/release-retain.d.ts +23 -0
  1039. package/dist/services/skillhub/release-retain.js +94 -0
  1040. package/dist/services/skillhub/sqlite-store.d.ts +22 -0
  1041. package/dist/services/skillhub/sqlite-store.js +63 -0
  1042. package/dist/services/skillhub/tar-runtime.d.ts +21 -0
  1043. package/dist/services/skillhub/tar-runtime.js +91 -0
  1044. package/dist/services/skillhub/types.d.ts +115 -0
  1045. package/dist/services/skillhub/types.js +1 -0
  1046. package/dist/services/skills/hooks-settings-service.d.ts +212 -0
  1047. package/dist/services/skills/hooks-settings-service.js +624 -0
  1048. package/dist/services/skills/skill-conformance-service.d.ts +40 -0
  1049. package/dist/services/skills/skill-conformance-service.js +139 -0
  1050. package/dist/services/skills/skill-presence-service.d.ts +158 -0
  1051. package/dist/services/skills/skill-presence-service.js +474 -0
  1052. package/dist/services/skills/skill-registry.d.ts +18 -0
  1053. package/dist/services/skills/skill-registry.js +69 -0
  1054. package/dist/services/skills/skill-runbook-service.d.ts +11 -0
  1055. package/dist/services/skills/skill-runbook-service.js +128 -0
  1056. package/dist/services/skills/skill-statusline-renderer.d.ts +6 -0
  1057. package/dist/services/skills/skill-statusline-renderer.js +55 -0
  1058. package/dist/services/skills/skill-statusline-service.d.ts +24 -0
  1059. package/dist/services/skills/skill-statusline-service.js +110 -0
  1060. package/dist/services/skills/statusline-settings-service.d.ts +59 -0
  1061. package/dist/services/skills/statusline-settings-service.js +141 -0
  1062. package/dist/services/skills/sync-service.d.ts +86 -0
  1063. package/dist/services/skills/sync-service.js +271 -0
  1064. package/dist/services/slice/calibration-store.d.ts +39 -0
  1065. package/dist/services/slice/calibration-store.js +68 -0
  1066. package/dist/services/slice/cross-pass-edge-merger.d.ts +53 -0
  1067. package/dist/services/slice/cross-pass-edge-merger.js +246 -0
  1068. package/dist/services/slice/granularity-decider.d.ts +37 -0
  1069. package/dist/services/slice/granularity-decider.js +40 -0
  1070. package/dist/services/slice/llm-arbitrator.d.ts +35 -0
  1071. package/dist/services/slice/llm-arbitrator.js +63 -0
  1072. package/dist/services/slice/multi-pass-orchestrator.d.ts +67 -0
  1073. package/dist/services/slice/multi-pass-orchestrator.js +225 -0
  1074. package/dist/services/slice/schema-router.d.ts +44 -0
  1075. package/dist/services/slice/schema-router.js +61 -0
  1076. package/dist/services/slice/slice-archive-service.d.ts +20 -0
  1077. package/dist/services/slice/slice-archive-service.js +111 -0
  1078. package/dist/services/slice/slice-benchmark-service.d.ts +19 -0
  1079. package/dist/services/slice/slice-benchmark-service.js +60 -0
  1080. package/dist/services/slice/slice-check-service.d.ts +2 -0
  1081. package/dist/services/slice/slice-check-service.js +459 -0
  1082. package/dist/services/slice/slice-check-types.d.ts +104 -0
  1083. package/dist/services/slice/slice-check-types.js +28 -0
  1084. package/dist/services/slice/slice-decompose-runners.d.ts +23 -0
  1085. package/dist/services/slice/slice-decompose-runners.js +174 -0
  1086. package/dist/services/slice/slice-decompose-service.d.ts +24 -0
  1087. package/dist/services/slice/slice-decompose-service.js +532 -0
  1088. package/dist/services/slice/slice-decompose-types.d.ts +263 -0
  1089. package/dist/services/slice/slice-decompose-types.js +30 -0
  1090. package/dist/services/slice/slice-integration.d.ts +43 -0
  1091. package/dist/services/slice/slice-integration.js +106 -0
  1092. package/dist/services/slice/slice-pick-service.d.ts +32 -0
  1093. package/dist/services/slice/slice-pick-service.js +75 -0
  1094. package/dist/services/slice/slice-review-state.d.ts +70 -0
  1095. package/dist/services/slice/slice-review-state.js +109 -0
  1096. package/dist/services/slice/slice-topology-types.d.ts +115 -0
  1097. package/dist/services/slice/slice-topology-types.js +20 -0
  1098. package/dist/services/smoke/smoke-paths-state.d.ts +73 -0
  1099. package/dist/services/smoke/smoke-paths-state.js +117 -0
  1100. package/dist/services/sop/gate-enforce-service.d.ts +33 -0
  1101. package/dist/services/sop/gate-enforce-service.js +168 -0
  1102. package/dist/services/sop/sop-advance-service.d.ts +74 -0
  1103. package/dist/services/sop/sop-advance-service.js +115 -0
  1104. package/dist/services/sop/sop-check-service.d.ts +45 -0
  1105. package/dist/services/sop/sop-check-service.js +181 -0
  1106. package/dist/services/sop/sop-paths.d.ts +62 -0
  1107. package/dist/services/sop/sop-paths.js +92 -0
  1108. package/dist/services/sop/sop-registry-service.d.ts +46 -0
  1109. package/dist/services/sop/sop-registry-service.js +89 -0
  1110. package/dist/services/sop/sop-service.d.ts +55 -0
  1111. package/dist/services/sop/sop-service.js +222 -0
  1112. package/dist/services/sop/sop-types.d.ts +95 -0
  1113. package/dist/services/sop/sop-types.js +11 -0
  1114. package/dist/services/standards/ide-aware-standards-service.d.ts +94 -0
  1115. package/dist/services/standards/ide-aware-standards-service.js +91 -0
  1116. package/dist/services/standards/loop-engineering-lint.d.ts +38 -0
  1117. package/dist/services/standards/loop-engineering-lint.js +101 -0
  1118. package/dist/services/standards/loop-engineering-readiness-lint.d.ts +111 -0
  1119. package/dist/services/standards/loop-engineering-readiness-lint.js +248 -0
  1120. package/dist/services/standards/main-session-monitor-ban-hook.d.ts +14 -0
  1121. package/dist/services/standards/main-session-monitor-ban-hook.js +19 -0
  1122. package/dist/services/standards/migrate-claude-rules-service.d.ts +19 -0
  1123. package/dist/services/standards/migrate-claude-rules-service.js +214 -0
  1124. package/dist/services/standards/migrate-service.d.ts +63 -0
  1125. package/dist/services/standards/migrate-service.js +193 -0
  1126. package/dist/services/standards/missing-standards-detector.d.ts +106 -0
  1127. package/dist/services/standards/missing-standards-detector.js +170 -0
  1128. package/dist/services/standards/project-context.d.ts +24 -0
  1129. package/dist/services/standards/project-context.js +314 -0
  1130. package/dist/services/standards/project-standards-service.d.ts +114 -0
  1131. package/dist/services/standards/project-standards-service.js +693 -0
  1132. package/dist/services/tech/tech-change-id-service.d.ts +82 -0
  1133. package/dist/services/tech/tech-change-id-service.js +117 -0
  1134. package/dist/services/tech/tech-service.d.ts +69 -0
  1135. package/dist/services/tech/tech-service.js +299 -0
  1136. package/dist/services/test-cache/test-cache-service.d.ts +70 -0
  1137. package/dist/services/test-cache/test-cache-service.js +175 -0
  1138. package/dist/services/understand/hybrid-types.d.ts +32 -0
  1139. package/dist/services/understand/hybrid-types.js +1 -0
  1140. package/dist/services/understand/understand-hybrid-service.d.ts +10 -0
  1141. package/dist/services/understand/understand-hybrid-service.js +100 -0
  1142. package/dist/services/understand/understand-scan-service.d.ts +28 -0
  1143. package/dist/services/understand/understand-scan-service.js +170 -0
  1144. package/dist/services/understand/understand-types.d.ts +50 -0
  1145. package/dist/services/understand/understand-types.js +1 -0
  1146. package/dist/services/upgrade/1x-detector-service.d.ts +7 -0
  1147. package/dist/services/upgrade/1x-detector-service.js +94 -0
  1148. package/dist/services/upgrade/gitignore-migrate-service.d.ts +56 -0
  1149. package/dist/services/upgrade/gitignore-migrate-service.js +170 -0
  1150. package/dist/services/upgrade/upgrade-service.d.ts +81 -0
  1151. package/dist/services/upgrade/upgrade-service.js +404 -0
  1152. package/dist/services/verdict/envelopes.d.ts +93 -0
  1153. package/dist/services/verdict/envelopes.js +349 -0
  1154. package/dist/services/verdict/verdict-aggregator.d.ts +94 -0
  1155. package/dist/services/verdict/verdict-aggregator.js +112 -0
  1156. package/dist/services/vm/vm-lease.d.ts +40 -0
  1157. package/dist/services/vm/vm-lease.js +137 -0
  1158. package/dist/services/workflow/artifact-paths.d.ts +59 -0
  1159. package/dist/services/workflow/artifact-paths.js +166 -0
  1160. package/dist/services/workflow/autonomous-resume-writer.d.ts +16 -0
  1161. package/dist/services/workflow/autonomous-resume-writer.js +170 -0
  1162. package/dist/services/workflow/pipeline-verify-gate-support.d.ts +47 -0
  1163. package/dist/services/workflow/pipeline-verify-gate-support.js +194 -0
  1164. package/dist/services/workflow/pipeline-verify-service.d.ts +26 -0
  1165. package/dist/services/workflow/pipeline-verify-service.js +273 -0
  1166. package/dist/services/workflow/pipeline-verify-types.d.ts +90 -0
  1167. package/dist/services/workflow/pipeline-verify-types.js +10 -0
  1168. package/dist/services/workflow/plan-reader.d.ts +29 -0
  1169. package/dist/services/workflow/plan-reader.js +174 -0
  1170. package/dist/services/workflow/plan-refresher.d.ts +32 -0
  1171. package/dist/services/workflow/plan-refresher.js +353 -0
  1172. package/dist/services/workflow/plan-trigger-detector.d.ts +55 -0
  1173. package/dist/services/workflow/plan-trigger-detector.js +142 -0
  1174. package/dist/services/workflow/workflow-autonomous-resume-helpers.d.ts +19 -0
  1175. package/dist/services/workflow/workflow-autonomous-resume-helpers.js +300 -0
  1176. package/dist/services/workflow/workflow-autonomous-service.d.ts +4 -0
  1177. package/dist/services/workflow/workflow-autonomous-service.js +306 -0
  1178. package/dist/services/workflow/workflow-autonomous-types.d.ts +114 -0
  1179. package/dist/services/workflow/workflow-autonomous-types.js +21 -0
  1180. package/dist/services/workflow/workflow-loader.d.ts +63 -0
  1181. package/dist/services/workflow/workflow-loader.js +168 -0
  1182. package/dist/services/workflow/workflow-router-service.d.ts +85 -0
  1183. package/dist/services/workflow/workflow-router-service.js +235 -0
  1184. package/dist/services/workflow/workflow-skip-service.d.ts +106 -0
  1185. package/dist/services/workflow/workflow-skip-service.js +209 -0
  1186. package/dist/services/workflow/workflow-spec-lint.d.ts +13 -0
  1187. package/dist/services/workflow/workflow-spec-lint.js +75 -0
  1188. package/dist/services/workflow/workflow-spec-types.d.ts +100 -0
  1189. package/dist/services/workflow/workflow-spec-types.js +13 -0
  1190. package/dist/services/workflow/workflow-spec-yaml.d.ts +17 -0
  1191. package/dist/services/workflow/workflow-spec-yaml.js +88 -0
  1192. package/dist/services/workflow/workflow-spec.d.ts +36 -0
  1193. package/dist/services/workflow/workflow-spec.js +302 -0
  1194. package/dist/services/workflow/workflow-state-store.d.ts +27 -0
  1195. package/dist/services/workflow/workflow-state-store.js +95 -0
  1196. package/dist/services/workspace/claude-settings-template.d.ts +101 -0
  1197. package/dist/services/workspace/claude-settings-template.js +254 -0
  1198. package/dist/services/workspace/migrate-1-4-1-service.d.ts +44 -0
  1199. package/dist/services/workspace/migrate-1-4-1-service.js +195 -0
  1200. package/dist/services/workspace/migrate-service.d.ts +2 -0
  1201. package/dist/services/workspace/migrate-service.js +613 -0
  1202. package/dist/services/workspace/migrate-types.d.ts +127 -0
  1203. package/dist/services/workspace/migrate-types.js +21 -0
  1204. package/dist/services/workspace/reconcile-service.d.ts +188 -0
  1205. package/dist/services/workspace/reconcile-service.js +683 -0
  1206. package/dist/services/workspace/reconcile-types.d.ts +130 -0
  1207. package/dist/services/workspace/reconcile-types.js +13 -0
  1208. package/dist/services/workspace/sid-naming-guard.d.ts +17 -0
  1209. package/dist/services/workspace/sid-naming-guard.js +34 -0
  1210. package/dist/services/workspace/templates/project-scan/audit-output-schema.md +100 -0
  1211. package/dist/services/workspace/templates/project-scan/business-knowledge.md +44 -0
  1212. package/dist/services/workspace/templates/project-scan/index.d.ts +34 -0
  1213. package/dist/services/workspace/templates/project-scan/index.js +60 -0
  1214. package/dist/services/workspace/templates/project-scan/perf-template.md +109 -0
  1215. package/dist/services/workspace/templates/project-scan/security-template.md +99 -0
  1216. package/dist/services/workspace/workspace-claude-settings-materializer.d.ts +45 -0
  1217. package/dist/services/workspace/workspace-claude-settings-materializer.js +194 -0
  1218. package/dist/services/workspace/workspace-clean-service.d.ts +28 -0
  1219. package/dist/services/workspace/workspace-clean-service.js +46 -0
  1220. package/dist/services/workspace/workspace-service.d.ts +177 -0
  1221. package/dist/services/workspace/workspace-service.js +432 -0
  1222. package/dist/services/workspace/workspace-state-service.d.ts +7 -0
  1223. package/dist/services/workspace/workspace-state-service.js +43 -0
  1224. package/dist/services/worktree/worktree-lease.d.ts +170 -0
  1225. package/dist/services/worktree/worktree-lease.js +242 -0
  1226. package/dist/shared/format-md-compact.d.ts +32 -0
  1227. package/dist/shared/format-md-compact.js +297 -0
  1228. package/dist/shared/frontmatter.d.ts +6 -0
  1229. package/dist/shared/frontmatter.js +165 -0
  1230. package/dist/shared/fs-utils.d.ts +4 -0
  1231. package/dist/shared/fs-utils.js +16 -0
  1232. package/dist/shared/incrementing-number.d.ts +23 -0
  1233. package/dist/shared/incrementing-number.js +68 -0
  1234. package/dist/shared/json-schema-mini.d.ts +10 -0
  1235. package/dist/shared/json-schema-mini.js +113 -0
  1236. package/dist/shared/path-safety.d.ts +21 -0
  1237. package/dist/shared/path-safety.js +54 -0
  1238. package/dist/shared/path-utils.d.ts +13 -0
  1239. package/dist/shared/path-utils.js +56 -0
  1240. package/dist/shared/planner-response.d.ts +21 -0
  1241. package/dist/shared/planner-response.js +26 -0
  1242. package/dist/shared/platform.d.ts +6 -0
  1243. package/dist/shared/platform.js +11 -0
  1244. package/dist/shared/process.d.ts +5 -0
  1245. package/dist/shared/process.js +12 -0
  1246. package/dist/shared/stale-policy.d.ts +67 -0
  1247. package/dist/shared/stale-policy.js +85 -0
  1248. package/dist/skills/peaks-maker/index.d.ts +5 -0
  1249. package/dist/skills/peaks-maker/index.js +32 -0
  1250. package/package.json +51 -54
  1251. package/scripts/clean-dist.mjs +31 -1
  1252. package/scripts/copy-templates.mjs +17 -1
  1253. package/scripts/sync-version.mjs +53 -2
  1254. package/skills/bee/peaks-perf-audit/SKILL.md +17 -0
  1255. package/skills/bee/peaks-prd/SKILL.md +16 -0
  1256. package/skills/bee/peaks-prd/test-prompts.json +12 -0
  1257. package/skills/bee/peaks-qa/SKILL.md +16 -1
  1258. package/skills/bee/peaks-qa/references/qa-sub-agent-dispatch.md +22 -0
  1259. package/skills/bee/peaks-qa/test-prompts.json +12 -0
  1260. package/skills/bee/peaks-rd/SKILL.md +29 -20
  1261. package/skills/bee/peaks-rd/references/rd-sub-agent-dispatch.md +39 -0
  1262. package/skills/bee/peaks-rd/test-prompts.json +12 -0
  1263. package/skills/bee/peaks-reviewer/SKILL.md +17 -0
  1264. package/skills/bee/peaks-sc/SKILL.md +16 -0
  1265. package/skills/bee/peaks-security-audit/SKILL.md +17 -0
  1266. package/skills/bee/peaks-txt/SKILL.md +16 -0
  1267. package/skills/bee/peaks-txt/test-prompts.json +12 -0
  1268. package/skills/bee/peaks-ui/SKILL.md +49 -43
  1269. package/skills/bee/peaks-ui/test-prompts.json +12 -0
  1270. package/skills/peaks-code/SKILL.md +54 -109
  1271. package/skills/peaks-code/references/boundaries.md +15 -1
  1272. package/skills/peaks-code/references/cron-scheduler-deployment.md +313 -0
  1273. package/skills/peaks-code/references/external-skill-invocation.md +27 -0
  1274. package/skills/peaks-code/references/lease-dashboard.html +224 -0
  1275. package/skills/peaks-code/references/lease-stats.sample.json +26 -0
  1276. package/skills/peaks-code/references/peaks-worktree-l2-enforcers.md +208 -0
  1277. package/skills/peaks-code/references/periodic-checkpoint.md +4 -4
  1278. package/skills/peaks-code/references/runbook.md +63 -1
  1279. package/skills/peaks-code/references/startup-sequence.md +110 -0
  1280. package/skills/peaks-code/references/step-0-8-gate.md +1 -1
  1281. package/skills/peaks-code/references/sub-agent-dispatch.md +92 -1
  1282. package/skills/peaks-code/references/worktree-governance.md +123 -0
  1283. package/skills/peaks-code/test-prompts.json +12 -0
  1284. package/skills/peaks-doctor/SKILL.md +1 -1
  1285. package/skills/peaks-ide/SKILL.md +1 -1
  1286. package/skills/peaks-solo/SKILL.md +21 -0
  1287. package/skills/peaks-solo/references/triage-decision-table.md +6 -0
  1288. package/skills/peaks-sop/test-prompts.json +17 -0
  1289. package/examples/video-demo/README.md +0 -142
  1290. package/examples/video-demo/out/en-closing-960.png +0 -0
  1291. package/examples/video-demo/out/zh-closing-960.png +0 -0
  1292. package/examples/video-demo/preview/peaks-loop-demo-en.mp4 +0 -0
  1293. package/examples/video-demo/preview/peaks-loop-demo.mp4 +0 -0
package/CHANGELOG.md CHANGED
@@ -1,7 +1,779 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.0.1 — 2026-07-30 (GA release)
4
+
5
+ ### Features
6
+
7
+ - **One super-command CLI surface** (rid-009): `peaks code / audit / doctor / openspec / release / release-pack` replacing 73 leaf commands.
8
+ - **peaks changeset check hard gate** (rid-011): mirrors publish.yml gate-changeset and refuses to publish when `.changeset/*.md` is staged.
9
+ - **peaks release precheck** (rid-010): 4-layer version gate mirroring publish.yml §(A); ships with `tests/unit/release/version-precheck-service.test.ts` (13 cases).
10
+ - **Dynamic workspace subpackage discovery** (rid-014): release-pack.mjs now derives publish order from `packages/*` and `pnpm-workspace.yaml` — adding/removing a subpackage needs no code edit.
11
+ - **Monorepo-wide version lockstep** (rid-015): `scripts/bump-version.mjs` bumps every publishable subpackage in lockstep with root (no more 33→35 CLI_VERSION lag class).
12
+ - **GitHub Release step + tag/version gate** (rid-017): publish.yml now runs `Extract release notes from root CHANGELOG.md` (per-version awk) → `Verify exact tag matches bumped root version` (hard `git describe --tags --exact-match` gate) → `Create GitHub Release` (non-draft, no `--generate-notes`).
13
+ - **5 pure-internal sub-packages folded into `src/services/*`** (rid-016): deleted `peaks-loop-{audit-independent,crystallization,doctor,final-review,job-snapshot}` from `packages/`; behaviour preserved by re-exports.
14
+
15
+ ### Bug fixes
16
+
17
+ - **CLI_VERSION drift closed** (peaks-publish-stale fix): `peaks-loop@<new>` no longer pins a stale `peaks-loop-shared@<old>` thanks to on-disk + tarball-content double guard in `gate-cli-version`.
18
+ - **33→35 npm version-skip regression closed** (AC7): `peaks workspace init` + `bump-version.mjs` are now idempotent when local root equals `dist-tags.latest`.
19
+ - **`workspace:*` protocol leak closed** (release-pack.mjs): every workspace tarball now ships with zero `workspace:` strings; each internal dep is pinned to the registry-safe version matched from the local manifest.
20
+ - **shared auto-bump no longer requires env gate** (sync-version.mjs): the `PEAKS_AUTO_BUMP_SHARED` gate was the Layer 2 root cause of stale local shared tarballs; `bump-version.mjs` is now the single owner.
21
+
22
+ ### Breaking changes
23
+
24
+ - The 73 leaf CLI commands have been collapsed to 5 super-commands (`code / audit / doctor / openspec / release / release-pack`). The pre-4.0.0 leaf commands are no longer present on `$PATH`; all users must migrate. Migration matrix and per-leaf replacement are documented in `docs/cli-migration-4-0-0.md` (added in this release; see link in the GitHub Release page for v4.0.0).
25
+
26
+ ### Patch Changes
27
+
28
+ - **rid-020b (24h mode integration)**: `peaks code run --24h` flag + dashboard long-run support; 10-file diff (+91/-1) including 3 NEW source (`code-run-command.ts` 120 / `dashboard-long-run.ts` 80 / `dashboard-commands.ts` parent) + 2 surgical edits + 2 NEW vitest (12/12 green) + 4 SKILL.md/ref edits.
29
+ - **rid-024 (code-commands split)**: `code-commands.ts` 1058 → 165 lines (≤ 800 cap) + 3 NEW sibling files (`code-mode-gate-commands.ts` 275 / `code-job-shape-commands.ts` 248 / `code-runtime-commands.ts` 460, including moved `readActiveSid` helper); public API preserved.
30
+ - **rid-025 (heartbeat watch + main-session-monitor ban)**: `peaks heartbeat watch --batch-id <id>` top-level CLI + main-session-monitor hard ban via per-symbol PreToolUse hook + scan test; 14 files (8 EDIT + 4 NEW + 3 NEW test).
31
+ - **rid-026 (monotonic jsonl-store)**: 2-file refactor; cycle persistence moved from `cycle-N.json` N-file → single jsonl-store per-session (`monotonic-runner.ts` 280→334) + monotonic-guard test fixtures migrated.
32
+ - **rid-027 (auto-compact partial mode)**: 7 files; `auto-compact-modes.ts` NEW (partial mode 0.70/0.85) + `--mode <mode>` CLI flag + `getAutoCompactMode` helper + 2 NEW tests (36 cases green).
33
+ - **rid-028 (context spillover storage)**: 3 NEW files (minimal scope); `spillover-types.ts` + `spillover-store.ts` + `context-spillover-store.test.ts` (102 lines, 7 cases including traversal regression). `auto-compact-orchestrator.ts` D6.e branch byte-identical preserved.
34
+ - **rid-029 (DAG wave + barrier)**: 4-file diff; `slice-dag.ts` Wave/WaveArtifact types + `dag-orchestrator.ts` `planDispatchWaves`/`runWaveWithArtifacts` + `sub-agent-dispatcher.ts` `dispatchFromWaves` + NEW test (6 cases). Existing `runDag`/`runLayeredDag`/`buildDispatchSpec` byte-identical preserved.
35
+ - **rid-030 (dashboard summary)**: 6 files; `observability-service.ts` 3 new categories (cycle/token-usage/monotonic-trigger) + `aggregation.ts` `aggregateDashboardMetrics` + `peaks dashboard summary` CLI + 2 NEW tests (26 cases green).
36
+ - **rid-031 (dispatcher deprecation)**: `src/services/context/auto-compact-dispatcher.ts` 285 → 249 lines; removed `node:child_process` import + `dispatchShellExec` function; `case 'shell-exec'` replaced with stub (returns same envelope shape pathway).
37
+ - **rid-032 (session spill-demo CLI)**: 5 files; `spill-demo-command.ts` NEW (64 lines, `peaks session spill-demo` opt-in experimental LLM no-context mode demo) + SKILL.md 24h-mode spill/hydrate subsection + 4 NEW vitest cases.
38
+ - **rid-033 (spillover-store lstat defense-in-depth)**: 2-file EDIT; `spillover-store.ts` adds `lstatSync` target symlink check + `assertNotSymlink` helper in `writeRecord` + `hydrate`; closes rid-028 defense-in-depth gap (now 4-layer defense: safe-segment + containment + lstat + entry.isFile).
39
+ - **rid-034 (v2.13.0 contract cleanup + 4.0.0 GA version bump)**: this release. Retired `peaks session auto-compact-hook` CLI surface (v2.13.0 zero-pause contract). Replaced all retired command strings (`peaks session auto-compact --execute` / `peaks code auto-compact --execute` / `peaks context now` / `peaks session auto-compact-hook`) with `peaks compact auto` family across `src/**` + `skills/**`. Fixed 6 stale unit-test assertions (4 openspec self-host-only skipif guards + 1 test-tool-detection regex + 2 qoder resource-profile assertions) and removed `.peaks/_sub_agents/2026-06-23-session-heartbeat-test/` orphan dir. Version bumped to 4.0.0 GA with lockstep `CLI_VERSION` + CHANGELOG + `.changeset/4-0-0-ga.md`. **Note**: `peaks test` vitest-path fix deferred to rid-035.
40
+
41
+ ## 4.0.0-beta.37 — 2026-07-25 (registry conflict bump + version skip)
42
+
43
+ ### Patch Changes
44
+
45
+ - **chore(version)**: skip 4.0.0-beta.36 to land on 4.0.0-beta.37. Reason: 4.0.0-beta.35 was already published to npm by a prior session (2026-07-22T17:10:24Z); our HEAD bumped to 4.0.0-beta.35 in the 4.0.0-beta.35 CHANGELOG entry below (matching that on-disk state) but a `pnpm publish` of 4.0.0-beta.35 would fail as duplicate. The version-skip jump (35 → 37, skipping 36) avoids both the duplicate and the public-36 release, keeping the published beta-37 as the next publishable artifact. The 4.0.0-beta.35 on-disk state stays as the work-record version; the 4.0.0-beta.37 version reflects the registry-publishable state once the user runs `git tag v4.0.0-beta.37 && pnpm publish` per their own workflow. No functional change — just a version number for the next release.
46
+
47
+ - **chore(version)**: `package.json` version 4.0.0-beta.35 → 4.0.0-beta.37. `packages/peaks-loop-shared/src/version.ts` `CLI_VERSION` matches. `pnpm-lock.yaml` resolved via `pnpm install --lockfile-only` (post-commit; user may run if their local lockfile is stale).
48
+
49
+ - **chore(archive)**: 5 OpenSpec proposals retired to `openspec/changes/archive/` via `peaks openspec archive --apply` (commits `3e5ec4e9` + this version bump sequence): `enforce-artifact-boundary-and-coverage`, `add-tech-dry-run-gate`, `add-rd-swarm-dry-run-planner`, `add-autonomous-rd-swarm-resume`, `add-slice-topology-multipass`, `fix-claude-settings-template-hook-node-wrapper`. `openspec/changes/` now contains only the `archive/` subdirectory.
50
+
51
+ ## 4.0.0-beta.35 — 2026-07-24 (claude-settings-template hook node-wrapper)
52
+
53
+ ### Patch Changes
54
+
55
+ - **fix(claude-settings-template)**: `buildWriteHookCommand()` now wraps its inner JS source in `node -e "<js>"` via the single-source-of-truth helper `wrapAsNodeOneLiner(js)` (lines 170-180 of `src/services/workspace/claude-settings-template.ts`). All embedded double quotes are JSON-escaped as `\\"`, so the on-disk `.claude/settings.local.json` `command` field is a real shell-evaluable one-liner instead of bare JS that bash rejected with `syntax error near unexpected token`. Byte-for-byte error-string preservation: the pre-2.0.3 error was `syntax error near unexpected token`; that exact string is what every Windows + macOS + Linux install hit on every Write / Edit / MultiEdit / Bash tool call. The wrapper changes the entry point from bash to Node; the error string no longer surfaces because `node -e` parses the JS, not bash. **Already on disk** (commits `8411fe88` 2026-06-13 + `d9a1a098` 2026-07-04). See the `fix-claude-settings-template-hook-node-wrapper` OpenSpec change for the full Why/What-Changes reconciliation; the original proposal named `buildBashHookCommand`, which pre-dates the v3.1.2 Bash gate-step-08 refactor — the present-day code uses `buildWriteHookCommand` (wrapped) + `buildBashGateStep08Command` (intentionally NOT wrapped).
56
+ - **fix(claude-settings-template)**: `buildBashGateStep08Command()` is **intentionally NOT wrapped** in `node -e "..."`. The Bash matcher returns the literal `peaks code gate-step-08 --project "${CLAUDE_PROJECT_DIR}"` CLI invocation. CLI delegation is the load-bearing contract for the v3.1.2 mechanical gate: the CLI is the only legitimate source of the structured decision + `Next:` slice context, and exit code is the gate-step-08 signal (0 = allow, 2 = block). Wrapping the Bash matcher would short-circuit the CLI delegation and break the gate. The no-wrapper decision is documented inline at lines 261-269 of `claude-settings-template.ts`. **Already on disk** (commit `d9a1a098` 2026-07-04, `TEMPLATE_VERSION 1.3.0`).
57
+ - **docs(claude-settings-template)**: docstring `argv[2]` → `argv[1]` reconciliation on `buildWriteHookCommand` (lines 200-201). Node.js argv layout under `-e` is `process.argv[0]=node, [1]=script-body, [2+]=args`; the previous docstring referenced `[2]` (the position a positional CLI arg would occupy) but the implementation reads `[1]` (the script body itself). The docstring is now consistent with the code. **Already on disk** (commit `8411fe88` 2026-06-13).
58
+ - **qa(claude-settings-template)**: Windows dogfood evidence captured at `.peaks/_runtime/2026-07-24-session-f13da7/qa/010-fix-claude-settings-template-hook-node-wrapper/dogfood-evidence-windows.md`. Confirmed on Windows 11 (PowerShell + Git Bash + Node v22.22.1, HEAD = `e51797c3`): `peaks workspace init --no-claude-hooks --project . --json` + `peaks workspace init --force-hooks --project . --json` round-trip produces a `.claude/settings.local.json` whose `command` field is a shell-evaluable `node -e "<js>"` one-liner; spawn harness on `Write|Edit|MultiEdit` matcher returns exit 0 for `.peaks/_runtime/.../test.md` (allow-list match) and exit 1 for `package.json` (deny-list match). The Bash matcher is the literal CLI delegation string `peaks code gate-step-08 --project "${CLAUDE_PROJECT_DIR}"` — NOT `node -e`-wrapped, as designed. Byte-for-byte match against `buildClaudeSettingsLocalJson()` (lines 227-259 of `claude-settings-template.ts`) confirmed.
59
+ - **Cross-platform note**: Windows is the strong-evidence half of spec.md S4. macOS + Linux halves are best-effort deferred per the rid-010 plan §3 (no in-repo macOS/Linux CI runner wired for the workspace-init + spawn-harness flow). The fix is platform-agnostic at the source level (Node `child_process` + `process.argv`); the dogfood on a second OS is a verification artifact, not a correctness artifact. macOS / Linux dogfood will be captured in a follow-up slice if/when a runner is wired.
60
+ - Closure sediment: `.peaks/memory/2026-07-24-rid-010-fix-claude-settings-closure.md` (rid-010 — Implementation Closure Record, 2 of 5 tasks shipped; Tasks 3-5 quality gates / 3-pass review / release are part of the 2.0.4 ship path).
61
+
62
+ ## 4.0.0
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies
67
+ - peaks-loop-shared@0.0.18
68
+ - peaks-loop-audit-independent@0.0.12
69
+ - peaks-loop-crystallization@0.0.13
70
+ - peaks-loop-doctor@0.0.12
71
+ - peaks-loop-final-review@0.0.12
72
+
73
+ ## 4.0.0-beta.26 — 2026-07-22 (peaks-loop-shared lockstep)
74
+
75
+ - Monorepo recurrence fix: `scripts/sync-version.mjs` now auto-bumps
76
+ `peaks-loop-shared` by 0.0.1 each time the root version is bumped,
77
+ gated by `PEAKS_AUTO_BUMP_SHARED=1` in the publish workflow's
78
+ `build` step. Without this, the publish workflow's
79
+ `isAlreadyPublished` guard short-circuits the shared subpackage
80
+ re-publish, leaving downstream `peaks -v` to read a stale
81
+ CLI_VERSION from the cached tarball. Tests: pretest/predev
82
+ invocations of sync-version are now no-ops w.r.t. the shared
83
+ version (no ratcheting during local dev loops).
84
+
85
+ ## 4.0.0
86
+
87
+ ### Patch Changes
88
+
89
+ - Updated dependencies
90
+ - peaks-loop-shared@0.0.18
91
+ - peaks-loop-audit-independent@0.0.12
92
+ - peaks-loop-crystallization@0.0.13
93
+ - peaks-loop-doctor@0.0.12
94
+ - peaks-loop-final-review@0.0.12
95
+
96
+ ## 4.0.0
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies
101
+ - peaks-loop-shared@0.0.18
102
+ - peaks-loop-audit-independent@0.0.12
103
+ - peaks-loop-crystallization@0.0.13
104
+ - peaks-loop-doctor@0.0.12
105
+ - peaks-loop-final-review@0.0.12
106
+
107
+ ## 4.1.0 (Unreleased)
108
+
109
+ ### Added
110
+
111
+ - **Sub-agent memory preflight**: peaks-code orchestrator now
112
+ automatically injects a token-bounded `feedback / layer A` memory
113
+ block from `.peaks/memory/index.json` into every sub-agent's
114
+ system prompt. Defaults to 1.2k token cap (configurable via
115
+ `.peaks/preferences.json::memoryPreflight.maxTokens`); silent
116
+ degradation when the index is missing. No new CLI surface.
117
+ See `docs/superpowers/specs/2026-07-22-orchestrator-memory-preflight-design.md`.
118
+
119
+ - **Slice topology multi-pass decomposition (v1 shipped + gap-closure)**: `peaks slice decompose` now supports a `--granularity` flag (`service` | `file` | `both` | `auto`) that drives the multi-pass orchestrator (`MultiPassOrchestrator` + `SchemaRouter` + `CrossPassEdgeMerger` + `LLMArbitrator` + `GranularityDecider`). v1 produced a `DecompositionResultV2` envelope (`passes[]` + `crossPassEdges[]` + `llmArbitrations[]`); the gap-closure slice adds `tests/unit/slice/integration.test.ts` (12 cases: end-to-end `decompose()` against injected runners, two-service fixture, Pass 1 partition invariant, Pass 2 scope-filter invariant, cross-service topological order, internal-edge round-trip, single-pass fallback). The 4-dim `prepareFinalReview()` mapping (functional-completeness / problem-resolution / no-new-bugs / existing-functionality-intact) is covered by `packages/peaks-loop-final-review/tests/final-review-service.test.ts`. No source code touched in this gap-closure slice; only the integration test was added. See `.peaks/_runtime/2026-07-24-session-f13da7/rd/requests/2026-07-24-rid-015-add-slice-topology-multipass.md` for the RD plan.
120
+
121
+ ## 4.0.0
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies
126
+ - peaks-loop-shared@0.0.18
127
+ - peaks-loop-audit-independent@0.0.12
128
+ - peaks-loop-crystallization@0.0.13
129
+ - peaks-loop-doctor@0.0.12
130
+ - peaks-loop-final-review@0.0.12
131
+
132
+ ## 4.0.0
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies
137
+ - peaks-loop-shared@0.0.18
138
+ - peaks-loop-audit-independent@0.0.12
139
+ - peaks-loop-crystallization@0.0.13
140
+ - peaks-loop-doctor@0.0.12
141
+ - peaks-loop-final-review@0.0.12
142
+
143
+ ## 4.0.0
144
+
145
+ ### Patch Changes
146
+
147
+ - Updated dependencies
148
+ - peaks-loop-shared@0.0.18
149
+ - peaks-loop-audit-independent@0.0.12
150
+ - peaks-loop-crystallization@0.0.13
151
+ - peaks-loop-doctor@0.0.12
152
+ - peaks-loop-final-review@0.0.12
153
+
154
+ ## 4.0.0
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies
159
+ - peaks-loop-shared@0.0.18
160
+ - peaks-loop-audit-independent@0.0.12
161
+ - peaks-loop-crystallization@0.0.13
162
+ - peaks-loop-doctor@0.0.12
163
+ - peaks-loop-final-review@0.0.12
164
+
165
+ ## 4.0.0
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies
170
+ - peaks-loop-shared@0.0.18
171
+ - peaks-loop-audit-independent@0.0.12
172
+ - peaks-loop-crystallization@0.0.13
173
+ - peaks-loop-doctor@0.0.12
174
+ - peaks-loop-final-review@0.0.12
175
+
176
+ ## 4.0.0
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies
181
+ - peaks-loop-shared@0.0.18
182
+ - peaks-loop-audit-independent@0.0.12
183
+ - peaks-loop-crystallization@0.0.13
184
+ - peaks-loop-doctor@0.0.12
185
+ - peaks-loop-final-review@0.0.12
186
+
187
+ ## 4.0.0
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies
192
+ - peaks-loop-shared@0.0.18
193
+ - peaks-loop-audit-independent@0.0.12
194
+ - peaks-loop-crystallization@0.0.13
195
+ - peaks-loop-doctor@0.0.12
196
+ - peaks-loop-final-review@0.0.12
197
+
198
+ ## 4.0.0
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies
203
+ - peaks-loop-shared@0.0.18
204
+ - peaks-loop-audit-independent@0.0.12
205
+ - peaks-loop-crystallization@0.0.13
206
+ - peaks-loop-doctor@0.0.12
207
+ - peaks-loop-final-review@0.0.12
208
+
209
+ ## 4.0.0
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies
214
+ - peaks-loop-shared@0.0.18
215
+ - peaks-loop-audit-independent@0.0.12
216
+ - peaks-loop-crystallization@0.0.13
217
+ - peaks-loop-doctor@0.0.12
218
+ - peaks-loop-final-review@0.0.12
219
+
220
+ ## 4.0.0
221
+
222
+ ### Patch Changes
223
+
224
+ - Updated dependencies
225
+ - peaks-loop-shared@0.0.18
226
+ - peaks-loop-audit-independent@0.0.12
227
+ - peaks-loop-crystallization@0.0.13
228
+ - peaks-loop-doctor@0.0.12
229
+ - peaks-loop-final-review@0.0.12
230
+
231
+ ## 4.0.0
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies
236
+ - peaks-loop-shared@0.0.18
237
+ - peaks-loop-audit-independent@0.0.12
238
+ - peaks-loop-crystallization@0.0.13
239
+ - peaks-loop-doctor@0.0.12
240
+ - peaks-loop-final-review@0.0.12
241
+
242
+ ## 4.0.0
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies
247
+ - peaks-loop-shared@0.0.18
248
+ - peaks-loop-audit-independent@0.0.12
249
+ - peaks-loop-crystallization@0.0.13
250
+ - peaks-loop-doctor@0.0.12
251
+ - peaks-loop-final-review@0.0.12
252
+
253
+ ## 4.0.0
254
+
255
+ ### Patch Changes
256
+
257
+ - Updated dependencies
258
+ - peaks-loop-shared@0.0.18
259
+ - peaks-loop-audit-independent@0.0.12
260
+ - peaks-loop-crystallization@0.0.13
261
+ - peaks-loop-doctor@0.0.12
262
+ - peaks-loop-final-review@0.0.12
263
+
264
+ ## 4.0.0
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies
269
+ - peaks-loop-shared@0.0.18
270
+ - peaks-loop-audit-independent@0.0.12
271
+ - peaks-loop-crystallization@0.0.13
272
+ - peaks-loop-doctor@0.0.12
273
+ - peaks-loop-final-review@0.0.12
274
+
275
+ ## 4.0.0
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies
280
+ - peaks-loop-shared@0.0.18
281
+ - peaks-loop-audit-independent@0.0.12
282
+ - peaks-loop-crystallization@0.0.13
283
+ - peaks-loop-doctor@0.0.12
284
+ - peaks-loop-final-review@0.0.12
285
+
286
+ ## 4.0.0
287
+
288
+ ### Patch Changes
289
+
290
+ - Updated dependencies
291
+ - peaks-loop-shared@0.0.18
292
+ - peaks-loop-audit-independent@0.0.12
293
+ - peaks-loop-crystallization@0.0.13
294
+ - peaks-loop-doctor@0.0.12
295
+ - peaks-loop-final-review@0.0.12
296
+
297
+ ## 4.0.0
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies
302
+ - peaks-loop-shared@0.0.18
303
+ - peaks-loop-audit-independent@0.0.12
304
+ - peaks-loop-crystallization@0.0.13
305
+ - peaks-loop-doctor@0.0.12
306
+ - peaks-loop-final-review@0.0.12
307
+
308
+ ## 4.0.0
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies
313
+ - peaks-loop-shared@0.0.18
314
+ - peaks-loop-audit-independent@0.0.12
315
+ - peaks-loop-crystallization@0.0.13
316
+ - peaks-loop-doctor@0.0.12
317
+ - peaks-loop-final-review@0.0.12
318
+
319
+ ## 4.0.0
320
+
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies
324
+ - peaks-loop-shared@0.0.18
325
+ - peaks-loop-audit-independent@0.0.12
326
+ - peaks-loop-crystallization@0.0.13
327
+ - peaks-loop-doctor@0.0.12
328
+ - peaks-loop-final-review@0.0.12
329
+
330
+ ## 4.0.0
331
+
332
+ ### Patch Changes
333
+
334
+ - Updated dependencies
335
+ - peaks-loop-shared@0.0.15
336
+ - peaks-loop-audit-independent@0.0.11
337
+ - peaks-loop-crystallization@0.0.12
338
+ - peaks-loop-doctor@0.0.11
339
+ - peaks-loop-final-review@0.0.11
340
+
341
+ ## 4.0.0
342
+
343
+ ### Patch Changes
344
+
345
+ - Updated dependencies
346
+ - peaks-loop-shared@0.0.15
347
+ - peaks-loop-audit-independent@0.0.11
348
+ - peaks-loop-crystallization@0.0.12
349
+ - peaks-loop-doctor@0.0.11
350
+ - peaks-loop-final-review@0.0.11
351
+
352
+ ## 4.0.0
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies
357
+ - peaks-loop-shared@0.0.15
358
+ - peaks-loop-audit-independent@0.0.11
359
+ - peaks-loop-crystallization@0.0.12
360
+ - peaks-loop-doctor@0.0.11
361
+ - peaks-loop-final-review@0.0.11
362
+
363
+ ## 4.0.0-beta.21 — 2026-07-22 (ice-cola surface-check fixes, republish)
364
+
365
+ This release is the **republish** after the accidental 4.0.2
366
+ publish earlier on 2026-07-22. The 4.0.2 manifest is being
367
+ unpublished (`npm unpublish --force`, within 72h window). The
368
+ intended release is `4.0.0-beta.21`, the version that was
369
+ manually pinned but the publish workflow's `pnpm exec changeset
370
+ version` step overrode it to `4.0.2` due to a pending
371
+ `.changeset/*.md` in the tagged commit.
372
+
373
+ ### Bug fixes
374
+
375
+ - **standardsMissing UX (`fix(standards)`)** — `peaks workspace init`
376
+ previously reported `standardsMissing.missing: true` with the
377
+ remediation text "no project-local standards found" whenever the
378
+ language overlay was empty, even when common was clearly populated
379
+ (ice-cola shape: common/\*.md + typescript overlay populated, but
380
+ no javascript/ dir). The detector now distinguishes three states
381
+ (`complete` / `common-missing` / `language-missing`) and the
382
+ remediation text calls out the precise failing component.
383
+
384
+ - **`peaks statusline` default action (`fix(statusline)`)** — `peaks
385
+ statusline` (no subcommand) was documented as "Run with no
386
+ subcommand to render" but commander was printing usage instead of
387
+ dispatching to the hidden `render` subcommand. The fix attaches
388
+ a default `.action(...)` on the parent `statusline` command that
389
+ delegates to a public `runDefaultStatuslineRender` body, and adds
390
+ `--project <path>` to the parent so the default path inherits the
391
+ project label.
392
+
393
+ - **release-pack test version pinning (`fix(release-tests)`)** —
394
+ five `tests/unit/release/*.test.ts` files hard-coded `'4.0.0-beta.17'`
395
+ and `'0.0.4'` literals. Root bumping from 4.0.0-beta.17 to
396
+ 4.0.0-beta.20 made three tests fail immediately, demonstrating the
397
+ tests were carrying version knowledge the production code does not.
398
+ Expectations now derive from the on-disk `package.json` instead,
399
+ so future version bumps are a no-op for the suite.
400
+
401
+ - **`peaks preferences` unknown-key error (`fix(preferences)`)** —
402
+ the prior error was `PREFERENCES_KEY_UNKNOWN: <key>` which forced
403
+ the operator to look up valid keys elsewhere. All three sites
404
+ (`get` / `set` / `reset`) now throw via a shared `unknownKeyError`
405
+ helper that includes the sorted `ALLOWED_KEYS_LIST` inline.
406
+
407
+ ### Chore
408
+
409
+ - **`chore(deps)`** — Migrate `onlyBuiltDependencies: [better-sqlite3]`
410
+ out of `package.json#pnpm` (no longer read by pnpm 10.11+) into
411
+ `.npmrc` as the canonical pnpm config key. Silences the per-package
412
+ `WARN The "pnpm" field in package.json is no longer read by pnpm`
413
+ log line without changing install behavior.
414
+
415
+ ### CI
416
+
417
+ - **`ci(publish)`** — Add `workflow_dispatch` input
418
+ `skip_changeset_version` to `.github/workflows/publish.yml`. When
419
+ set, the conditional `pnpm exec changeset version` step is
420
+ skipped, so manual version pins in `package.json` survive the
421
+ registry-repair release path.
422
+
423
+ - **`ci(unpublish)`** — One-shot `unpublish-4-0-2` workflow that
424
+ uses Trusted Publishing + OIDC to remove peaks-loop@4.0.2 + 8
425
+ subpackages. Triggered by `gh workflow run` with
426
+ `confirm_destructive=yes-i-am-sure`. Retired (kept for audit)
427
+ once the unpublish completes (npm 72h propagation).
428
+
429
+ ### Validation
430
+
431
+ - `vitest tests/unit/standards/missing-standards-detector.test.ts` — 18/18
432
+ - `vitest tests/unit/cli/commands/statusline-default-render.test.ts` — 3/3
433
+ - `vitest tests/unit/release` — 20/20
434
+ - `vitest tests/integration/preferences-cli.test.ts` — 5/5
435
+ - `PEAKS_DRY_RUN=1 node scripts/release-pack.mjs` — 9/9 packages, zero WARN
436
+
437
+ ## 4.0.0-beta.17
438
+
439
+ ### Patch Changes
440
+
441
+ - Repair registry install: `npm i -g peaks-loop` previously failed with
442
+ `EUNSUPPORTEDPROTOCOL / workspace:*` because the publish workflow
443
+ called `npm publish` on each workspace directory directly, which
444
+ serialized the manifest verbatim and leaked the pnpm-only
445
+ `workspace:*` protocol into the published tarballs. The new
446
+ `scripts/release-pack.mjs` packs each workspace package with
447
+ `pnpm pack` (which rewrites `workspace:*` to exact semver pins) and
448
+ then publishes the resulting tarball via `npm publish <tarball>` so
449
+ npm 11+ OIDC Trusted Publishing remains in effect.
450
+
451
+ Bumped versions: `peaks-loop` 4.0.0-beta.16 → 4.0.0-beta.17; all
452
+ eight subpackages 0.0.3 → 0.0.4. The publish workflow's changeset
453
+ step is now conditional on detected `.changeset/*.md` files so the
454
+ registry-repair release keeps its manually-pinned versions, and
455
+ future releases still pick up automated `changeset version` bumps.
456
+
457
+ - per-package OIDC Trusted Publisher entries still need to be added
458
+ once on npmjs.com (one-time UI step per package).
459
+ - the install smoke verifies the registry tarball surface: bin shim,
460
+ package layout, postinstall, and registry metadata. `peaks
461
+ --version`/`--help` may fail at runtime until
462
+ `peaks-loop-crystallization` declares `zod` as a runtime
463
+ dependency (a separate source bug, out of scope for this repair).
464
+
465
+ ## 4.0.0
466
+
467
+ ### Patch Changes
468
+
469
+ - Updated dependencies
470
+ - peaks-loop-shared@0.0.5
471
+ - peaks-loop-audit-independent@0.0.5
472
+ - peaks-loop-crystallization@0.0.5
473
+ - peaks-loop-doctor@0.0.5
474
+ - peaks-loop-final-review@0.0.5
475
+
476
+ ## 4.0.0
477
+
478
+ ### Patch Changes
479
+
480
+ - Updated dependencies
481
+ - peaks-loop-shared@0.0.5
482
+ - peaks-loop-audit-independent@0.0.5
483
+ - peaks-loop-crystallization@0.0.5
484
+ - peaks-loop-doctor@0.0.5
485
+ - peaks-loop-final-review@0.0.5
486
+
487
+ ## 4.0.0
488
+
489
+ ### Minor Changes
490
+
491
+ - 5d01343: Monorepo extraction: peaks-loop 4.0.0-beta.15 ships the new pnpm
492
+ workspace shell with 6 independent packages extracted from the main
493
+ repo as Tier-A zero/low-coupling domains:
494
+
495
+ - peaks-loop-shared (4 utils: fs / paths / result / version)
496
+ - peaks-loop-mut (mutation testing + ECC cache)
497
+ - peaks-loop-doctor (project health check)
498
+ - peaks-loop-crystallization (crystallization pipeline)
499
+ - peaks-loop-final-review (4-dim business review)
500
+ - peaks-loop-audit-independent (security + perf audit)
501
+
502
+ Each subpackage has its own typecheck / build / vitest pipeline; they
503
+ are wired back into the main peaks-loop CLI via workspace:_ protocol.
504
+ Trusted Publishing (OIDC) is wired via .github/workflows/publish.yml
505
+ on push tags v_._._ — no NPM_TOKEN required.
506
+
507
+ Also:
508
+
509
+ - D21: peaks sub-agent finalize command (LLM-side completion signal
510
+ to mark dispatch records done/failed/cancelled; without it records
511
+ would stay queued forever).
512
+ - Trusted Publishing via OIDC — npmjs.com trusted publisher
513
+ configured; npm token removed from ~/.npmrc.
514
+
515
+ ### Patch Changes
516
+
517
+ - Updated dependencies [5d01343]
518
+ - peaks-loop-shared@0.1.0
519
+ - peaks-loop-mut@0.1.0
520
+ - peaks-loop-doctor@0.1.0
521
+ - peaks-loop-crystallization@0.1.0
522
+ - peaks-loop-final-review@0.1.0
523
+ - peaks-loop-audit-independent@0.1.0
524
+
3
525
  ## [Unreleased]
4
526
 
527
+ ## 4.0.0-beta.14 — 2026-07-16
528
+
529
+ ### Status: RELEASED (D-019: copy-templates.mjs + package.json files[])
530
+
531
+ > **This release fixes D-019 (full end-to-end)**:
532
+ >
533
+ > 1. `scripts/copy-templates.mjs` now copies
534
+ > `src/services/skillhub/migrations/*.sql` into `dist/services/skillhub/migrations/`.
535
+ > 2. `package.json` `"files"` whitelist now includes `dist/**/*.sql`
536
+ > (previously the whitelist was `dist/**/*.js | .d.ts | .md` only,
537
+ > so the migrations were filtered out of the npm tarball even
538
+ > after being copied to `dist/`).
539
+ >
540
+ > Without this fix, the published `peaks-loop` tarball shipped without
541
+ > the SkillHub SQLite schema, breaking any downstream consumer's first
542
+ > `peaks skill sediment <verb>` with `no such table: bee_release`.
543
+ >
544
+ > **Verdict**: `pnpm build` copies 6 migrations; tarball includes them.
545
+ > In-process vitest tests were always green (they use tsx + source tree
546
+ > directly, not `dist/`), so no test count change. Combined with
547
+ > 4.0.0-beta.13's D-018 path fix, the published tarball is now
548
+ > correct end-to-end.
549
+
550
+ ## 4.0.0-beta.13 — 2026-07-16
551
+
552
+ ### Status: RELEASED (D-018: state.db path relocation)
553
+
554
+ > **This release fixes the SQLite `state.db` location** to match the
555
+ > original peaks-loop design contract: `PEAKS_HOME/.peaks/skills/state.db`
556
+ > (PEAKS_HOME defaults to `~/.peaks`). Previously, the code resolved
557
+ > `home` to `process.cwd()` when invoked from a project root, producing
558
+ > `<project>/.peaks/state.db` — wrong location for loop engineering
559
+ >
560
+ > - bee sediment data.
561
+ >
562
+ > **Fix**: `src/cli/commands/sediment-commands.ts:664-665` now uses
563
+ > `peaksHome()` from `src/services/sop/sop-paths.ts:29` (which honors
564
+ > `PEAKS_HOME` override for test isolation). The downstream
565
+ > `resolveStateDbPath({ home })` (in `src/services/sediment/pool-paths.ts:15`)
566
+ > already correctly returned `{home}/.peaks/skills/state.db`; only the
567
+ > `home` resolution was broken.
568
+ >
569
+ > **Side bug found but out of scope**: `src/services/skillhub/migrations/*.sql`
570
+ > is not copied to `dist/` by `scripts/copy-templates.mjs`. This is a
571
+ > pre-existing build-config issue separate from D-018. Tracked as
572
+ > follow-up; tests still pass because the tests use vitest + tsx
573
+ > (which sees the source tree directly), but the published
574
+ > `peaks-loop@4.0.0-beta.13` will hit `no such table: bee_release` until
575
+ > a D-019 follow-up adds `.sql` to the copy-templates extensions.
576
+ >
577
+ > **Verdict**: 27/27 AC PASS (beta.12 verdict preserved; D-018 is
578
+ > architecture fix, no AC change). Old `<peaks-loop>/.peaks/state.db`
579
+ > discarded (beta phase, single user).
580
+
581
+ ## 4.0.0-beta.12 — 2026-07-16
582
+
583
+ ### Status: RELEASED (follow-up to `4.0.0-beta.11`; D-013 wrapper exit-code fix)
584
+
585
+ > \*\*This CHANGELOG entry documents the D-013 follow-up release.
586
+ > Same source tree as `4.0.0-beta.11`; pure fix for the wrapper
587
+ > exit-code bug that previously caused `peaks <unknown>` and
588
+ > `peaks <unknown> --help` to exit 0 with the help banner.
589
+ >
590
+ > **Verdict**: All 4 regression paths now exit 1 with a
591
+ > `COMMAND_NOT_FOUND` JSON envelope. ice-cola baseline 27/27 PASS
592
+ > (AC3.9/AC3.10 now functionally correct).
593
+
594
+ > \*\*This CHANGELOG entry documents the SHIPPED 4.0.0-beta.11.
595
+ > It is the post-implementation release of the 4.0.0-beta.10 contract
596
+ > documented at `docs/release/4.0.0-beta.10.md` (runbook filename
597
+ > preserved for cross-reference stability).
598
+ >
599
+ > The 3 slices (del-minimax-worker, hide-role-skills, on-demand-ecc)
600
+ > all landed PASS in this branch — see `peaks workflow verify-pipeline
601
+ --rid 2026-07-15-cli-surface-cleanup` and the Slice 1/2/3 sediment
602
+ > memories in `.peaks/memory/`.
603
+ >
604
+ > **Version bump rationale** (D-016): 4.0.0-beta.10 was the pre-impl
605
+ > contract name; 4.0.0-beta.11 is the actual release of that contract.
606
+ > One-line summary: **"CLI surface cleanup + on-demand ECC"**.
607
+ >
608
+ > **Verdict**: 10/12 AC PASS + 2 PASS-WITH-DEFERRED (D-013 wrapper
609
+ > exit-code bug, separate follow-up slice after publish).
610
+ > Ice-cola baseline gate: 27/27 AC functionally pass.
611
+
612
+ ### Removed — `peaks minimax-worker` (Slice 1)
613
+
614
+ - **`peaks minimax-worker` CLI removed** — historical MiniMax
615
+ provider integration. `peaks minimax-worker --help` now exits
616
+ non-zero with `COMMAND_NOT_FOUND`.
617
+ - **`peaks worker minimax` CLI removed** — same module.
618
+ - **`peaks config provider minimax *` subtree removed** —
619
+ `peaks config provider minimax set --help` exits non-zero.
620
+ - **6 source files deleted**:
621
+ - `src/cli/commands/worker-commands.ts`
622
+ - `src/services/providers/minimax-provider-service.ts`
623
+ - `src/services/providers/minimax-worker-service.ts`
624
+ - `src/services/config/provider-service.ts` (entire file; 100% MiniMax)
625
+ - `tests/unit/minimax-worker-service.test.ts`
626
+ - `tests/unit/minimax-provider-service.test.ts`
627
+ - **~21 source files modified** (drop imports, drop function bodies,
628
+ drop registrations, replace `'minimax-2.7'` literal with
629
+ `'claude-opus-4-7'` in 5 files).
630
+ - **~8 test files modified** (drop MiniMax cases; replace literal in 3).
631
+ - **4 openspec files updated** (1-line wording fixes).
632
+ - **Net security improvement**: smaller secret-handling surface
633
+ (5 MiniMax functions removed).
634
+
635
+ ### Changed — 10 role-skill CLI commands hidden (Slice 2)
636
+
637
+ - **10 top-level role-skill CLI commands** now hidden from `peaks --help`
638
+ via `Commander.hidden()`. Still invokable for internal
639
+ `peaks sub-agent dispatch --role <role>` paths. Final canonical
640
+ list (per QA grep audit):
641
+ - `peaks prd`
642
+ - `peaks qa`
643
+ - `peaks sc`
644
+ - `peaks audit`
645
+ - `peaks code-review`
646
+ - `peaks perf-audit`
647
+ - `peaks security-audit`
648
+ - `peaks upgrade`
649
+ - `peaks agent`
650
+ - `peaks code`
651
+ - **`peaks skill list`** now excludes skills with
652
+ `visibility: internal` frontmatter. Use `--include-internal` to opt in.
653
+ - **`peaks skill search`** accepts `--include-internal` flag.
654
+ - **8 SKILL.md files** updated to add/rename `visibility: internal`:
655
+ `peaks-prd`, `peaks-qa`, `peaks-rd`, `peaks-sc`, `peaks-ui`,
656
+ `peaks-txt`, `peaks-final-review`, `peaks-perf-audit`,
657
+ `peaks-security-audit`.
658
+ - **Integration test rewritten**:
659
+ `tests/integration/skill-search-cli.test.ts:72-79` now asserts
660
+ the new `visibility:` frontmatter field instead of legacy
661
+ `userInvocable`.
662
+
663
+ ### Added — `peaks ecc install|status|ls|show` (Slice 3)
664
+
665
+ > **PIVOT vs initial design**: Originally Slice 3 was supposed to
666
+ > spawn `<cached>/ecc agent run <name> --json` as a subprocess.
667
+ > RD sub-agent triggered **Gate S3-0**: affaan-m/everything-claude-code
668
+ > has no `ecc` binary; its real structure is `agents/*.md` flat
669
+ >
670
+ > - SKILL.md descriptors. User chose Option B — drop the subprocess
671
+ > model entirely.
672
+
673
+ - **`peaks ecc install`** — downloads affaan-m/everything-claude-code
674
+ from GitHub releases to `~/.peaks/cache/ecc-<sha>/`. Selective
675
+ tarball extraction: ONLY `agents/` subtree (skip `rules/`,
676
+ `commands/`, `settings/`, `docs/`, `README.md`).
677
+ - **`peaks ecc status`** — reads cache manifest, reports version + sha
678
+ - agent count.
679
+ - **`peaks ecc ls`** — lists cached agents by parsing `agents/*.md`
680
+ frontmatter.
681
+ - **`peaks ecc show <name>`** — outputs the agent's SKILL.md body
682
+ to stdout. LLM-side consumers (Skill-first path) read this output
683
+ to apply the agent's instructions.
684
+ - **3 source files deleted** (with Slice 1):
685
+ - `src/cli/commands/agent-commands.ts` (the old `peaks agent run/list`)
686
+ - `src/services/agent/ecc-agent-service.ts` (the spawn orchestrator)
687
+ - `tests/unit/services/agent/ecc-agent-service.test.ts`
688
+ - **3 new source files**:
689
+ - `src/services/agent/ecc-cache-service.ts` — pure-IO cache module
690
+ (`downloadToCache`, `readCacheManifest`, `listCachedAgents`,
691
+ `readAgentSkill`, `cleanupStaleCache`)
692
+ - `src/cli/commands/ecc-commands.ts` — 4 subcommands
693
+ - `tests/unit/agent/ecc-cache-service.test.ts`
694
+ - **Dead-probes removed**:
695
+ - `npx ecc --version` probe (was: never worked; affaan-m/ECC not on npm)
696
+ - `npx ecc-agentshield --version` probe in
697
+ `src/services/audit/static-service.ts:104` (parallel fix)
698
+ - **7-day cache TTL** via `bootstrapLogger.applyRetention` sweep
699
+ (wired at `src/cli/program.ts:121`). NOT via
700
+ `peaks doctor --cleanup-stale` (which is bound to `dropStale()`
701
+ for the binding store).
702
+
703
+ ### Removed — `peaks agent run` and `peaks agent list`
704
+
705
+ - **`peaks agent run <name>` exits non-zero with `COMMAND_NOT_FOUND`**.
706
+ - **`peaks agent list` exits non-zero with `COMMAND_NOT_FOUND`**.
707
+ - **No replacement CLI** — LLM-side consumers use
708
+ `peaks ecc show <name>` or read `<cache>/agents/<name>.md` directly.
709
+
710
+ ### Net security / performance impact
711
+
712
+ - **Security**: 0 subprocess attack surface (was: 1 per call in beta.9);
713
+ smaller secret-handling surface (5 MiniMax functions removed).
714
+ - **Performance**: cache-dir probe is pure read (<15ms vs ~500ms
715
+ for the npm-registry probe in beta.9); selective tarball extraction
716
+ saves ~95% disk footprint.
717
+
718
+ ### Pre-implementation gate
719
+
720
+ `peaks workflow verify-pipeline --rid 2026-07-15-cli-surface-cleanup`
721
+ returns `ok: true, complete: true, violations: []` (9/9 gates PASS).
722
+ This CHANGELOG entry is the contract; the actual implementation
723
+ follows the runbook in `docs/release/4.0.0-beta.10.md`.
724
+
725
+ ### Acceptance criteria
726
+
727
+ 27 ACs total: 7 (Slice 1) + 8 (Slice 2) + 11 (Slice 3 redesign + 1).
728
+ Full list in `docs/release/4.0.0-beta.10.md` §Acceptance criteria.
729
+
730
+ ---
731
+
732
+ ## 4.0.0-beta.9 — 2026-07-15
733
+
734
+ ### Fixed — `npm install peaks-loop` runtime path layout
735
+
736
+ `4.0.0-beta.8` shipped a tarball where `bin/peaks.js` imported
737
+ `'../dist/src/cli/index.js'`, but tsc actually emitted the runtime
738
+ files at `dist/cli/index.js` (rootDir walked past `src/` because of
739
+ cross-folder imports like `src/services/hooks/output.ts → ../../cli/`).
740
+ Downstream `npm i -g peaks-loop` then `peaks -v` failed with
741
+ `ERR_MODULE_NOT_FOUND: .../dist/src/cli/index.js`. The 4 audit/business
742
+ templates also failed to enter the tarball because `package.json#files[]`
743
+ whitelisted `dist/src/**/*.js` / `.d.ts` but never `.md`.
744
+
745
+ This release:
746
+
747
+ - `bin/peaks.js` import: `'../dist/src/cli/index.js'` → `'../dist/cli/index.js'`.
748
+ - `scripts/copy-templates.mjs` dest: `dist/src/services/...` →
749
+ `dist/services/...` so the bundled templates land where the runtime
750
+ `import.meta.url` resolver expects them.
751
+ - `package.json#files[]`: prefixes shifted from `dist/src/` to `dist/`,
752
+ plus a new `dist/**/*.md` entry so the 4 templates bundled by
753
+ `copy-templates.mjs` actually ship.
754
+ - `tsconfig.build.json` (introduced in beta.8) confirmed correct — it
755
+ is the build-time emit that controls the dist tree shape.
756
+
757
+ End-to-end smoke after the fix (local):
758
+
759
+ ```
760
+ $ npm pack # 30 MB tarball
761
+ $ npm install ./peaks-loop-4.0.0-beta.9.tgz --prefix /tmp/test
762
+ $ peaks --version # → "4.0.0-beta.9"
763
+ $ peaks workspace init --project /tmp/fresh # → templatesBooted: 5
764
+ ```
765
+
766
+ `.peaks/project-scan/{project-scan.md, business-knowledge.md,
767
+ security-template.md, perf-template.md, audit-output-schema.md}`
768
+ all present after a fresh workspace init.
769
+
770
+ ### Notes
771
+
772
+ - 4.0.0-beta.8 is left in place on npm as a known-broken release.
773
+ Consumers who already pinned `peaks-loop@4.0.0-beta.8` should bump
774
+ to `4.0.0-beta.9`.
775
+ - Beta.9 contains everything beta.8 advertised plus the path fix.
776
+
5
777
  ## 4.0.0-beta.8 — 2026-07-15
6
778
 
7
779
  ### Added — project-scan bootstrap (slice 2026-07-15)
@@ -21,7 +793,7 @@
21
793
  audit/business templates (default: skip if present).
22
794
  - **5-template boot** — every `peaks workspace init` materialises
23
795
  `.peaks/project-scan/{project-scan.md, business-knowledge.md,
24
- security-template.md, perf-template.md, audit-output-schema.md}`.
796
+ security-template.md, perf-template.md, audit-output-schema.md}`.
25
797
  The 4 audit/business templates are bundled at
26
798
  `src/services/workspace/templates/project-scan/*.md` and copied
27
799
  verbatim by `scripts/copy-templates.mjs` (post-`tsc` step; tsc
@@ -133,15 +905,15 @@ exposed two follow-on bugs that the unit suite missed:
133
905
 
134
906
  ### Sediment (Step 11) — 7 lessons in `.peaks/memory/`
135
907
 
136
- | File | Topic |
137
- |---|---|
138
- | `z-code-peaks-loop-9-ide-adapter-vendor-neutrality-adapter.md` | z-code 9th IDE + vendor-neutrality adapter pattern |
139
- | `peaks-loop-install-model-getstrongestmodelid-fallback.md` | install no longer hardcodes default model |
140
- | `desktop-application-ide-adapter-z-code-cli.md` | desktop-app IDE adapter field-degradation decision |
141
- | `peaks-code-runbook-4-0-0-beta-6-skill-md-cli-d-001-d-002-d-003-d-010.md` | 4 SKILL.md / CLI drift points |
142
- | `2026-07-09-zcode-adapter-overview.md` | RID 003 overall summary (project record) |
143
- | `peaks-ide-runtime-detect-zcode-only.md` | `peaks ide model --current` z-code 4-tier priority chain |
144
- | `ide-adapter-detectcurrentmodel-optional-interface-pattern.md` | optional interface field extension pattern |
908
+ | File | Topic |
909
+ | ------------------------------------------------------------------------- | -------------------------------------------------------- |
910
+ | `z-code-peaks-loop-9-ide-adapter-vendor-neutrality-adapter.md` | z-code 9th IDE + vendor-neutrality adapter pattern |
911
+ | `peaks-loop-install-model-getstrongestmodelid-fallback.md` | install no longer hardcodes default model |
912
+ | `desktop-application-ide-adapter-z-code-cli.md` | desktop-app IDE adapter field-degradation decision |
913
+ | `peaks-code-runbook-4-0-0-beta-6-skill-md-cli-d-001-d-002-d-003-d-010.md` | 4 SKILL.md / CLI drift points |
914
+ | `2026-07-09-zcode-adapter-overview.md` | RID 003 overall summary (project record) |
915
+ | `peaks-ide-runtime-detect-zcode-only.md` | `peaks ide model --current` z-code 4-tier priority chain |
916
+ | `ide-adapter-detectcurrentmodel-optional-interface-pattern.md` | optional interface field extension pattern |
145
917
 
146
918
  ### Known follow-ups (S3-cleanup backlog)
147
919
 
@@ -158,7 +930,7 @@ None. All 8 pre-existing adapters continue to load without changes. CLI subcomma
158
930
 
159
931
  ### Added — peaks-solo dispatcher (分诊员)
160
932
 
161
- - **`peaks-solo` skill** — `skills/peaks-solo/SKILL.md` + 3 references (triage / fallback / sediment). Natural-language front door for the Peaks-Loop skill family. Use when the user describes a task in NL and does not know which peaks-* skill fits. 0 breaking change: 3.x / 4.x `/peaks-code` / `/peaks-content` / `/peaks-doctor` etc. continue to work.
933
+ - **`peaks-solo` skill** — `skills/peaks-solo/SKILL.md` + 3 references (triage / fallback / sediment). Natural-language front door for the Peaks-Loop skill family. Use when the user describes a task in NL and does not know which peaks-\* skill fits. 0 breaking change: 3.x / 4.x `/peaks-code` / `/peaks-content` / `/peaks-doctor` etc. continue to work.
162
934
  - **`peaks skill search` CLI** — `src/services/skill/skill-search-service.ts` + `src/cli/commands/skill-search-commands.ts`. Query / tag / domain filters; substring match; structured JSON output. Used by `peaks-solo` to find the right leaf skill. Available as a top-level primitive (not dispatcher-specific).
163
935
  - **Sub-skills unchanged** — `peaks-code / peaks-content / peaks-doctor / peaks-issue-fix-orchestrator / peaks-sop / etc.` are NOT modified. peaks-solo sits alongside, not on top.
164
936
 
@@ -199,9 +971,9 @@ Loop Engineering crystallization is now the product surface. The 4.0.0-beta.3 li
199
971
 
200
972
  - **`.peaks/standards/loop-engineering-guidelines.md`** — the single source of truth for the 10 red lines RL-0..RL-9, each in the four-section karpathy form (Failure modes / Rewrite / Self-check / Out-of-scope). Co-equal karpathy × darwin layers (RL-0).
201
973
  - **`peaks standards lint --category loop-engineering`** — `src/services/standards/loop-engineering-lint.ts`. Parses the guideline file and asserts every red line has all four sections, fails closed otherwise.
202
- - **`peaks skill lint --category loop-engineering-readiness --path <skill-dir>`** — `src/services/standards/loop-engineering-readiness-lint.ts` + `src/cli/commands/skill-loop-engineering-readiness-commands.ts`. Asserts a peaks-* SKILL.md (a) references `.peaks/standards/loop-engineering-guidelines.md`, (b) does not introduce a CLI verb the user is meant to type, (c) does not introduce a JSON / manifest hand-authoring surface. Alias verb: `peaks skill ready --category loop-engineering-readiness --path <skill-dir>`.
974
+ - **`peaks skill lint --category loop-engineering-readiness --path <skill-dir>`** — `src/services/standards/loop-engineering-readiness-lint.ts` + `src/cli/commands/skill-loop-engineering-readiness-commands.ts`. Asserts a peaks-\* SKILL.md (a) references `.peaks/standards/loop-engineering-guidelines.md`, (b) does not introduce a CLI verb the user is meant to type, (c) does not introduce a JSON / manifest hand-authoring surface. Alias verb: `peaks skill ready --category loop-engineering-readiness --path <skill-dir>`.
203
975
  - **Unit guard** — `tests/unit/standards/loop-engineering-guidelines.test.ts` enforces the four-section shape for every red line in the file.
204
- - **peaks-code domain boundary (RL-8)** — `skills/peaks-code/SKILL.md` self-declares as the code-domain long-task loop engineering orchestrator and is NOT a general-purpose orchestrator. Cross-domain peaks-* skills (peaks-content, peaks-issue-fix-orchestrator) import the shared guideline file and pass the readiness lint.
976
+ - **peaks-code domain boundary (RL-8)** — `skills/peaks-code/SKILL.md` self-declares as the code-domain long-task loop engineering orchestrator and is NOT a general-purpose orchestrator. Cross-domain peaks-\* skills (peaks-content, peaks-issue-fix-orchestrator) import the shared guideline file and pass the readiness lint.
205
977
 
206
978
  ### Added — Bundle share + desktop extension surface (§7A, AC-24 / AC-25 / AC-26)
207
979
 
@@ -215,6 +987,7 @@ Loop Engineering crystallization is now the product surface. The 4.0.0-beta.3 li
215
987
  ### Added — SkillHub expansion (5 new tables / non-breaking)
216
988
 
217
989
  The 6+ relation table layout is preserved. 5 new tables added under `.peaks/_runtime/<sessionId>/`:
990
+
218
991
  - `loop_release` (002)
219
992
  - `loop_bee_relation` (003)
220
993
  - loop↔bee share / desktop extension columns (004)
@@ -254,13 +1027,16 @@ Migration is non-breaking: every new column has a DEFAULT and the new tables sit
254
1027
  ## 4.0.0-beta.2 — 2026-07-07
255
1028
 
256
1029
  ### Renamed
1030
+
257
1031
  - **`peaks-solo` → `peaks-code`** — the long-running code-domain orchestrator skill (PRD/RD/QA/UI/SC/TXT pipeline) has been renamed to communicate its scope more accurately. The on-disk directory `~/.peaks/skills/.system/bees/peaks-code/` is preserved as a stable install location; only the manifest `id` and `displayName` change (`peaks-code` / `Peaks Code`). All four sibling skills (`peaks-solo-resume` → `peaks-resume`, `peaks-solo-status` → `peaks-status`, `peaks-solo-test` → `peaks-test`) are now top-level primitives rather than child skills of `peaks-solo`. Migration: `peaks session migrate-skill-name --from peaks-solo --to peaks-code --apply`.
258
1032
 
259
1033
  ### Changed (Breaking)
1034
+
260
1035
  - **`peaks skill presence:set peaks-solo` no longer recognized** — the canonical skill name is now `peaks-code`. Existing `.peaks/_runtime/*/active-skill.json` files carrying `skill: "peaks-solo"` are migrated by `peaks session migrate-skill-name`. Manual override: edit the file and replace `"skill": "peaks-solo"` with `"skill": "peaks-code"`.
261
1036
  - **CLI surface unchanged** — `peaks code`, `peaks code --fast`, and the entire `peaks-code` skill runbook continue to function; only the skill-identification field (`id`, `displayName`, presence `skill` value) changes. The runbook name `peaks code` is the user-facing verb and remains as-is.
262
1037
 
263
1038
  ### Fixed (post-rename polish)
1039
+
264
1040
  - **Rule name normalization** — `Code Code-Change Red Line` → `Code Commit Ban Red Line` (8 occurrences across `src/services/audit/enforcers/code-ban.ts`, `src/cli/commands/hook-handle.ts`, and the audit tests). Aligns with `red-line-catalog.ts` entry `rl-code-ban-001` / `Code Commit Ban`.
265
1041
  - **Wire-format error code rename** — `SOLO_MODE_REQUIRES_SOLO_WORKFLOW` → `CODE_MODE_REQUIRES_CODE_WORKFLOW` and `UNSUPPORTED_SOLO_MODE` → `UNSUPPORTED_CODE_MODE` in `src/cli/commands/workflow-commands.ts` (4 test sites updated).
266
1042
  - **Test local consts** — `soloResult/soloOutput` → `codeResult/codeOutput` in `tests/unit/cli-program.workflow.test.ts`; `SOLO_PATH/soloAbsPath` → `CODE_PATH/codeAbsPath` in `tests/unit/code/skills-subagent-scope-dir.test.ts`; `SOLO_REF/SOLO_FANOUT_REF` → `CODE_REF/CODE_FANOUT_REF` in `tests/unit/dispatch/dispatch-fanout-mandatory.test.ts`.
@@ -271,11 +1047,13 @@ Migration is non-breaking: every new column has a DEFAULT and the new tables sit
271
1047
  - **Video demo copy** — `examples/video-demo/src/copy.ts` `skillWas: 'peaks-solo'` → `skillWas: 'peaks-code'` (legacy label, both locales).
272
1048
 
273
1049
  ### Added
1050
+
274
1051
  - **Manifest id field** — `.peaks/skills/.system/bees/peaks-code/manifest.json` now carries `{ "id": "peaks-code", "displayName": "Peaks Code" }`. The `migrate-skill-name` service explicitly skips this file (test: `session-migrate-skill-name.test.ts:69` "跳过 .peaks/skills/.system/bees/peaks-code/manifest.json") so the canonical id is only ever edited by hand or by an explicit `peaks skill sediment refine-bee` flow, never by bulk migration.
275
1052
  - **Spec §4.1.1 rewrite** — `docs/superpowers/specs/2026-07-04-peaks-maker-dynamic-skill-sediment-design.md` §4.1.1 has been rewritten from "peaks-code as preserved alias" to "peaks-code as the system-stable code-domain bee (renamed from peaks-code)". The plan's spec-coverage table now references the renamed heading.
276
1053
  - **Migration helper** — `peaks session migrate-skill-name --from <old> --to <new> [--apply]` is the supported path for renaming skill references in `.peaks/_runtime/`. Idempotent; skip-list includes `.peaks/memory/**` and `.peaks/skills/.system/bees/peaks-code/manifest.json`.
277
1054
 
278
1055
  ### Verification
1056
+
279
1057
  - `tsc --noEmit` zero errors
280
1058
  - Full `vitest run` exit 0 (all 30 touched test files / 265 directly-tested assertions pass)
281
1059
  - `silent-warning-detector` OK on 481 files
@@ -394,10 +1172,11 @@ Validated on `C:/Users/smallMark/Desktop/peaksclaw/ice-cola` (consumer project).
394
1172
  ## [3.0.2] — 2026-07-02 — change-id shim retirement (v2.19.0) + Understand Anything hybrid context (3.0.2)
395
1173
 
396
1174
  **PATCH bump from 3.0.1**. Two independent slices bundled into one release:
1175
+
397
1176
  - **v2.19.0 change-id shim retirement** — full removal of the peaks-loop change-id axis (filesystem axis, code shim, envelope JSON slug, CLI flags). The change-id was a no-op post-v2.17.0 hard-kill; this slice retires the v2.17.0 shim half-life. OpenSpec's independent `openspec/changes/<change-id>/` vocabulary (L4) is preserved untouched.
398
1177
  - **3.0.2 Understand Anything hybrid context** — new `peaks understand context` subcommand that encapsulates the UA-first / codegraph-fallback / hybrid-union routing decision in the service layer (per the peaks-loop "skill-first / CLI-auxiliary" architecture). Consumers no longer pick one or the other at the LLM level.
399
1178
 
400
- The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced835e`, `7ee9d8f`, plus follow-up tests) but was never formally released. v2.19.0 is therefore *not* a separate release line — its changes are rolled forward into 3.0.2. Future releases resume numeric sequence from 3.0.3.
1179
+ The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced835e`, `7ee9d8f`, plus follow-up tests) but was never formally released. v2.19.0 is therefore _not_ a separate release line — its changes are rolled forward into 3.0.2. Future releases resume numeric sequence from 3.0.3.
401
1180
 
402
1181
  ### Removed — change-id shim (cleanup post v2.17.0 hard-kill)
403
1182
 
@@ -420,7 +1199,7 @@ The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced8
420
1199
  - 12 JSDoc references to the deleted `src/shared/change-id.ts` file scrubbed across `src/services/session/session-binding-bridge.ts`, `src/services/session/session-manager.ts`, `src/shared/path-safety.ts`, `tests/unit/session-manager.test.ts`, `tests/vitest.setup.ts`. The 3 pre-slim `tests/fixtures/skills/pre-slim/*.SKILL.md` fixtures preserve the historical reference per the FROZEN EVIDENCE rule.
421
1200
  - 2 weakened `tests/unit/rd/repair-cycle-2-cli-wiring.test.ts` cases restored with real assertions: the test now bootstraps a real session via `peaks workspace init` then drives `peaks swarm plan` end-to-end, asserting `standardsErrorCode`, `standardsDiagnostic`, and `process.exitCode` (no `expect(true).toBe(true)`, no `.skip`).
422
1201
 
423
- ### Round 3 — change-id彻底根治
1202
+ ### Round 3 — change-id 彻底根治
424
1203
 
425
1204
  - All 275 internal `changeId` field references in `src/` renamed to `sessionId` across 35 source files (cli/commands, services/workflow, services/tech, services/workspace, services/sc, services/rd, services/prd, services/audit, services/fixture, services/slice, services/mut, services/providers, services/artifacts, services/openspec-adjacent callers). The 65 remaining `changeId` hits are EXCLUSIVELY in `src/cli/commands/openspec-commands.ts` and `src/services/openspec/*.ts` — L4 OpenSpec vocabulary (positional `<change-id>` arg, `openspec/changes/<change-id>/` dir name, OpenSpec spec/proposal markdown tokens). The rename preserves L4 per PRD §Non-Goals.
426
1205
  - `WorkspaceInitOptions.changeId?: string` field REMOVED entirely (was a no-op post-v2.17.0; the slice deletes the binding-file legacy and the inline lstatSync guard now scopes the v2.8.3 hard-ban to date-stamped top-level siblings at `.peaks/<YYYY-MM-DD-*>/` only).
@@ -436,6 +1215,7 @@ The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced8
436
1215
  - `pnpm build` regenerated `dist/` to drop the dead `migrate-change-scope` JS. AC-15 (`node bin/peaks.js workspace migrate-change-scope`) now reports `error: unknown command 'migrate-change-scope'`.
437
1216
 
438
1217
  ### Round 4 — change-id full root-out (fix 55 test regressions)
1218
+
439
1219
  - Fixed 55 unit tests failing across 15 files (regressions from round-3 rename script + incomplete code paths).
440
1220
  - `peaks request *` dry-run mode no longer creates `.peaks/_runtime/<sid>/` dir eagerly (test updated to assert the canonical single-axis scope dir at apply-time only).
441
1221
  - Observability event hook restored on `peaks request transition` (3 tests): root cause was `readSummary` returning the scope fragment (`_runtime/<sid>`) as the bare session id, so `emitObservabilityEvent` landed at `.peaks/_runtime/_runtime/<sid>/metrics/slices.jsonl`. Fix strips the `_runtime[\\/]` prefix when storing the summary's sessionId.
@@ -468,10 +1248,11 @@ The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced8
468
1248
  ## [3.0.2] — 2026-07-02 — change-id shim retirement (v2.19.0) + Understand Anything hybrid context (3.0.2)
469
1249
 
470
1250
  **PATCH bump from 3.0.1**. Two independent slices bundled into one release:
1251
+
471
1252
  - **v2.19.0 change-id shim retirement** — full removal of the peaks-loop change-id axis (filesystem axis, code shim, envelope JSON slug, CLI flags). The change-id was a no-op post-v2.17.0 hard-kill; this slice retires the v2.17.0 shim half-life. OpenSpec's independent `openspec/changes/<change-id>/` vocabulary (L4) is preserved untouched.
472
1253
  - **3.0.2 Understand Anything hybrid context** — new `peaks understand context` subcommand that encapsulates the UA-first / codegraph-fallback / hybrid-union routing decision in the service layer (per the peaks-loop "skill-first / CLI-auxiliary" architecture). Consumers no longer pick one or the other at the LLM level.
473
1254
 
474
- The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced835e`, `7ee9d8f`, plus follow-up tests) but was never formally released. v2.19.0 is therefore *not* a separate release line — its changes are rolled forward into 3.0.2. Future releases resume numeric sequence from 3.0.3.
1255
+ The v2.19.0 work shipped as code commits (`f91d71c`, `5186d3d`, `b598612`, `ced835e`, `7ee9d8f`, plus follow-up tests) but was never formally released. v2.19.0 is therefore _not_ a separate release line — its changes are rolled forward into 3.0.2. Future releases resume numeric sequence from 3.0.3.
475
1256
 
476
1257
  ### Added — `peaks understand context` (3.0.2 user-facing feature)
477
1258
 
@@ -480,12 +1261,14 @@ The Understand Anything (UA) Claude Code plugin and `@colbymchenry/codegraph` ar
480
1261
  This slice adds a single `peaks understand context` subcommand that encapsulates the routing decision in the service layer (per the peaks-loop "skill-first / CLI-auxiliary" architecture — see `peaks-code` SKILL.md). The envelope carries a `source` tag so downstream consumers can audit which evidence contributed to the context.
481
1262
 
482
1263
  **Source routing** (deterministic, decided in `buildUnderstandContext`):
1264
+
483
1265
  - `ua-only` — UA knowledge graph present, no codegraph
484
1266
  - `ua-missing-fallback-codegraph` — UA absent, codegraph produced evidence
485
1267
  - `ua-and-codegraph-hybrid` — both present, both contribute (parallel `Promise.all`)
486
1268
  - `both-missing` — neither produced evidence, exit code 2
487
1269
 
488
1270
  **Added files (5):**
1271
+
489
1272
  - `src/services/understand/understand-hybrid-service.ts` (133L, new): `buildUnderstandContext({projectRoot, files?, sampleSize?, artifactDir?, codegraphRunner?})` uses `Promise.all` to run UA scan and codegraph affected in parallel; total wall-clock = `max(uaMs, codegraphMs)`, not sum. Failures are caught into `warnings[]` (best-effort); the main envelope is always returned so consumers can audit missing evidence.
490
1273
  - `src/services/understand/hybrid-types.ts` (39L, new): `UnderstandContextResult` envelope + 4-value source enum + `CodegraphContextBlock`.
491
1274
  - `src/cli/commands/understand-commands.ts` (208L, +51L net): new `peaks understand context` subcommand at base path `admin/audit-logs` (the only 3rd CLI surface in the understand module family). The subcommand accepts `--project --files --sample --artifact-dir` and emits the envelope as JSON or human-readable summary.
@@ -632,12 +1415,12 @@ The 1.x → 2.0 upgrade is an irreversible external side effect (rewrites `~/.pe
632
1415
 
633
1416
  The split methodology follows the v2.18.0 `session-binding-bridge.ts` pattern: identify a natural seam (state/helpers vs business logic, types vs impl, etc.), extract the chosen section into a new sibling file, and re-export the moved symbols from the original module so external imports are unchanged. Internal references are routed through a local `import { ... }` so the body of the original module continues to compile and behave identically.
634
1417
 
635
- | # | File | Before | After (orig + sibling) | New sibling | Seam |
636
- |---|------|-------:|-----------------------:|-------------|------|
637
- | 1 | `src/services/artifacts/request-artifact-service.ts` | 783 | 649 + 153 | `request-artifact-state-helpers.ts` | `RequestArtifactState` type, `ALLOWED_STATES_PER_ROLE`, `allowedStatesForRole`, 4 transition error classes, `updateStatusBlock` frontmatter mutator |
638
- | 2 | `src/services/slice/slice-decompose-service.ts` | 775 | 632 + 178 | `slice-decompose-runners.ts` | 3 default runner factories (`defaultCodegraphRunner`, `defaultUnderstandRunner`, `defaultImportEdgeRunner`) + `runCodegraph` shell-out helper |
639
- | 3 | `src/services/workflow/workflow-autonomous-service.ts` | 774 | 465 + 337 | `workflow-autonomous-resume-helpers.ts` | Resume validation pipeline (`getResumeRequiredArtifacts`, `readResumeArtifact`, `stripChangeScopePrefix`, JSON / frontmatter parsers, `getResumeArtifactsStatus`, `createResumePlan`) + `MAX_RESUME_ARTIFACT_BYTES` const |
640
- | 4 | `src/services/workspace/workspace-service.ts` | 742 | 550 + 217 | `workspace-claude-settings-materializer.ts` | Consumer `.claude/settings.local.json` materialization (`materializeClaudeSettingsLocal`, `writeOfflineTemplateCopy`, `upsertPeaksGitignoreSnippet`) + `PEAKS_GITIGNORE_*` constants |
1418
+ | # | File | Before | After (orig + sibling) | New sibling | Seam |
1419
+ | --- | ------------------------------------------------------ | -----: | ---------------------: | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1420
+ | 1 | `src/services/artifacts/request-artifact-service.ts` | 783 | 649 + 153 | `request-artifact-state-helpers.ts` | `RequestArtifactState` type, `ALLOWED_STATES_PER_ROLE`, `allowedStatesForRole`, 4 transition error classes, `updateStatusBlock` frontmatter mutator |
1421
+ | 2 | `src/services/slice/slice-decompose-service.ts` | 775 | 632 + 178 | `slice-decompose-runners.ts` | 3 default runner factories (`defaultCodegraphRunner`, `defaultUnderstandRunner`, `defaultImportEdgeRunner`) + `runCodegraph` shell-out helper |
1422
+ | 3 | `src/services/workflow/workflow-autonomous-service.ts` | 774 | 465 + 337 | `workflow-autonomous-resume-helpers.ts` | Resume validation pipeline (`getResumeRequiredArtifacts`, `readResumeArtifact`, `stripChangeScopePrefix`, JSON / frontmatter parsers, `getResumeArtifactsStatus`, `createResumePlan`) + `MAX_RESUME_ARTIFACT_BYTES` const |
1423
+ | 4 | `src/services/workspace/workspace-service.ts` | 742 | 550 + 217 | `workspace-claude-settings-materializer.ts` | Consumer `.claude/settings.local.json` materialization (`materializeClaudeSettingsLocal`, `writeOfflineTemplateCopy`, `upsertPeaksGitignoreSnippet`) + `PEAKS_GITIGNORE_*` constants |
641
1424
 
642
1425
  The original 4 files land at 465-649 LOC (well below the 800 cap; target range 600-650). The 4 new sibling files are 153-337 LOC. Total LOC across the 8 files is unchanged (3074) — this is a structural refactor only, not a deletion or compression.
643
1426
 
@@ -708,12 +1491,12 @@ Each original file gets a sibling `import { ... } from './X-helpers.js'` + `expo
708
1491
 
709
1492
  ### Dogfood
710
1493
 
711
- | # | Scenario | Verdict | Evidence |
712
- |---|---|---|---|
713
- | A | v2.18.1 verify-pipeline happy-path (session-axis) | PASS | `.peaks/_runtime/2026-06-29-session-9cac8e/{rd,qa}/...` resolves as canonical; `data.changeId` slug preserved in envelope |
714
- | B | v2.18.1 verify-pipeline missing-evidence | PASS | Clear `RD evidence missing: ...` violations, no `ReferenceError` |
715
- | C | v2.18.1 prd check-blocks well-formed PRD | PASS | `report.ok: true`, all 4 blocks pass, JSON envelope `{ 业务场景: 'pass', 边界 case: 'pass', UI 装配意图: 'pass' }` |
716
- | D | v2.18.1 prd check-blocks missing 业务场景 block | PASS | `report.ok: false`, `issues: ["Missing required block: 业务场景"]`, no `ReferenceError` |
1494
+ | # | Scenario | Verdict | Evidence |
1495
+ | --- | ------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
1496
+ | A | v2.18.1 verify-pipeline happy-path (session-axis) | PASS | `.peaks/_runtime/2026-06-29-session-9cac8e/{rd,qa}/...` resolves as canonical; `data.changeId` slug preserved in envelope |
1497
+ | B | v2.18.1 verify-pipeline missing-evidence | PASS | Clear `RD evidence missing: ...` violations, no `ReferenceError` |
1498
+ | C | v2.18.1 prd check-blocks well-formed PRD | PASS | `report.ok: true`, all 4 blocks pass, JSON envelope `{ 业务场景: 'pass', 边界 case: 'pass', UI 装配意图: 'pass' }` |
1499
+ | D | v2.18.1 prd check-blocks missing 业务场景 block | PASS | `report.ok: false`, `issues: ["Missing required block: 业务场景"]`, no `ReferenceError` |
717
1500
 
718
1501
  ### Commits
719
1502
 
@@ -744,7 +1527,7 @@ Each original file gets a sibling `import { ... } from './X-helpers.js'` + `expo
744
1527
  - `src/services/session/binding-store.ts:259` — `ownerHint` field is now `${envSignal}#${pid}` (was bare env signal). Preserves the existing v2.17.0 field shape; only the value format changes.
745
1528
  - `registerInstance` distinguishes instances by `(callerId, pid)` tuple, not by `ownerHint` alone. Same pid + same callerId → auto-resume (D2 Claude-instance-level hard-exclusive sid preserved); same callerId + different pid → distinct sids.
746
1529
  - `/compact` resume: same outer-session-id + same pid → reuses sid (verified by new Case B test). Different pid (rare, but possible if the harness restarts) → new sid (safe default, not a stale resume).
747
- - Sub-agent dispatch: sub-agents inherit parent's `CLAUDE_CODE_SESSION_ID` but run in the same Node process → same pid → same callerId → same sid (D2 sid-aggregation across peaks-* skill activations preserved).
1530
+ - Sub-agent dispatch: sub-agents inherit parent's `CLAUDE_CODE_SESSION_ID` but run in the same Node process → same pid → same callerId → same sid (D2 sid-aggregation across peaks-\* skill activations preserved).
748
1531
  - 6 new test cases in `tests/unit/services/session/binding-store.test.ts:151-242`:
749
1532
  - **Case A:** 2 instances, same `callerId`, different `pid` → 2 distinct sids
750
1533
  - **Case B:** 2 instances, same `callerId`, same `pid`, same outer-session-id → 1 sid (auto-resume)
@@ -782,12 +1565,12 @@ Each original file gets a sibling `import { ... } from './X-helpers.js'` + `expo
782
1565
 
783
1566
  ### Dogfood (ice-cola NestJS project, 2026-06-29-session-2e81dc)
784
1567
 
785
- | # | Scenario | Verdict | Evidence |
786
- |---|---|---|---|
787
- | A | P0 fix verification (binding file format) | PASS | `callerId: 5fa8a7d8-...#13472` matches shell pid 13472; pre-existing instance pid 3876 ≠ current shell — fix works in production-shape data |
788
- | B | peaks doctor stale-binding scan | PASS | 0 stale bindings, ttl=300000ms, v2.16.0 schema surface intact |
789
- | C | peaks code smoke (4 sub-commands) | PARTIAL | 3/4 pass; `peaks request lint --project .` is invalid syntax (needs `<rid>` + `--role`); not a v2.18.0 regression |
790
- | D | env-collision simulation (single shell, 2 envs) | PASS | `fake-session-A#20984` + `fake-session-B#20984` → 2 distinct sids (fupv8b / xnntb1); transposed axis (same pid, different env) verified; primary 2-Claude-windows scenario needs CI integration test with 2 child node processes |
1568
+ | # | Scenario | Verdict | Evidence |
1569
+ | --- | ----------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1570
+ | A | P0 fix verification (binding file format) | PASS | `callerId: 5fa8a7d8-...#13472` matches shell pid 13472; pre-existing instance pid 3876 ≠ current shell — fix works in production-shape data |
1571
+ | B | peaks doctor stale-binding scan | PASS | 0 stale bindings, ttl=300000ms, v2.16.0 schema surface intact |
1572
+ | C | peaks code smoke (4 sub-commands) | PARTIAL | 3/4 pass; `peaks request lint --project .` is invalid syntax (needs `<rid>` + `--role`); not a v2.18.0 regression |
1573
+ | D | env-collision simulation (single shell, 2 envs) | PASS | `fake-session-A#20984` + `fake-session-B#20984` → 2 distinct sids (fupv8b / xnntb1); transposed axis (same pid, different env) verified; primary 2-Claude-windows scenario needs CI integration test with 2 child node processes |
791
1574
 
792
1575
  **Dogfood verdict:** 3.5 / 4 pass; `recommend_v2.18.0_commit: true`.
793
1576
 
@@ -826,7 +1609,7 @@ The first v2.18.0 release deferred two open items to a redo slice; both are now
826
1609
  ### Feature — binding-store v2 sentinel (v2.16.0-alpha + v2.17.0)
827
1610
 
828
1611
  - `src/services/session/binding-store.ts` — zod-validated multi-instance binding schema with auto-migration from legacy `{ sessionId, createdAt, projectRoot }`. New shape: `{ ownerHint, pid, lastHeartbeat, scope, instances: Record<sid, InstanceRecord> }`.
829
- - `InstanceRecord` = `{ startedAt, roles: string[], callerId, lastHeartbeat }` — `roles` accumulates as the Claude instance activates multiple peaks-* skills (solos → rd → qa all share one sid).
1612
+ - `InstanceRecord` = `{ startedAt, roles: string[], callerId, lastHeartbeat }` — `roles` accumulates as the Claude instance activates multiple peaks-\* skills (solos → rd → qa all share one sid).
830
1613
  - Auto-resume: same callerId reuses the same sid; different callers get different sids in the same `instances` map.
831
1614
  - `dropStale(projectRoot, ttlMs)` for Doctor integration.
832
1615
 
@@ -838,7 +1621,7 @@ The first v2.18.0 release deferred two open items to a redo slice; both are now
838
1621
 
839
1622
  ### Feature — D2 Claude-instance-level hard-exclusive sid
840
1623
 
841
- - Same Claude instance keeps one sid across multiple peaks-* skill activations (peaks-code → peaks-rd → peaks-qa).
1624
+ - Same Claude instance keeps one sid across multiple peaks-\* skill activations (peaks-code → peaks-rd → peaks-qa).
842
1625
  - `/compact` resume: same outer-session-id reuses the same sid (post-compact-resume v2.11.0 D7 alignment).
843
1626
 
844
1627
  ### Feature — Doctor stale-binding scan (AC-10)
@@ -871,7 +1654,7 @@ The first v2.18.0 release deferred two open items to a redo slice; both are now
871
1654
 
872
1655
  Recommended scenarios before next release (see `peaks/_runtime/2026-06-29-session-88411f/txt/handoff-2026-06-29-v2-17-0.md` for details):
873
1656
 
874
- 1. **Multi-Claude parallel提速**: open 2 Claude instances in the same project, run `peaks code <different goal>` in each. Verify both bindings coexist with distinct sids.
1657
+ 1. **Multi-Claude parallel 提速**: open 2 Claude instances in the same project, run `peaks code <different goal>` in each. Verify both bindings coexist with distinct sids.
875
1658
  2. **D1 conflict detection**: 2 instances both targeting the same source file. Verify each writes to its own session-scoped artifact directory.
876
1659
  3. **`/compact` resume**: run `peaks code <goal>`, `/compact`, continue. Verify same sid reused.
877
1660
  4. **Doctor stale**: kill -9 a Claude instance, run `peaks doctor`, verify stale binding listed + `--cleanup-stale` works.
@@ -987,11 +1770,13 @@ Recommended scenarios before next release (see `peaks/_runtime/2026-06-29-sessio
987
1770
  - **Per the user-given rule** `.peaks/memory/2026-06-28-full-auto-boundary.md`: "full-auto 只做到 commit 就是,push 不用". The commit-boundary hard-floor is the machine enforcement of that advisory rule.
988
1771
 
989
1772
  ### Test results
1773
+
990
1774
  - 4 new test files: `presence-staleness.test.ts` (12), `stale-presence-detection.test.ts` (9), `feedback-promotion.test.ts` (18), `commit-boundary-hard-floor.test.ts` (247). Total new cases: **286**.
991
1775
  - Existing code tests (mode-gate × 81, post-compact × 11) pass unchanged.
992
1776
  - Full unit suite baseline 4394 → 4680 passing (286 added). 0 new failures; pre-existing 7 unrelated failures unchanged.
993
1777
 
994
1778
  ### Out-of-scope
1779
+
995
1780
  - Push / tag / npm publish — full-auto boundary = commit only; the commit-boundary hard-floor now BLOCKS these in full-auto (was advisory). User must explicitly confirm via AskUserQuestion to proceed.
996
1781
  - `peaks hooks install` — slice is code-only. Hooks remain user-only.
997
1782
  - Cleaning the 88b27d session's stale presence on disk — slice ships the detection + auto-clear, does NOT proactively touch the live tree.
@@ -1014,12 +1799,14 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1014
1799
  4 个 PRD + 4 个 service + 4 个 CLI 文件 + 4 个 test 文件,共 **17 个新命令 + 63 个新测试通过**。
1015
1800
 
1016
1801
  **G11 上游 tag 同步**(slice-2026-06-28-fork-cli):
1802
+
1017
1803
  - 5 commands: `peaks fork status` / `upstream-check` / `sync-plan` / `sync` / `sync-verify`
1018
1804
  - 持久化 `.peaks/fork-state.json` (baseline + history)
1019
1805
  - `recommendStableTags` 过滤 pre-release 标签(alpha/beta/rc/dev/preview)
1020
1806
  - 15 tests pass
1021
1807
 
1022
1808
  **G13 存量影响面扫描**(slice-2026-06-28-impact-cli):
1809
+
1023
1810
  - 2 commands: `peaks impact scan --files <list>` / `peaks impact must-check --files <list>`
1024
1811
  - 手写 glob 匹配(`**` / `*`),无 AST 依赖
1025
1812
  - 10 个默认业务流(用户管理 / 权限校验 / 登录流程 / Skill 权限 / 数据列表 / API 网关 / DB schema / ...)
@@ -1027,6 +1814,7 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1027
1814
  - 13 tests pass
1028
1815
 
1029
1816
  **G14 轻量回归 critical-paths**(slice-2026-06-28-smoke-cli):
1817
+
1030
1818
  - 4 commands: `peaks smoke define` / `run` / `run-and-repair` / `add-path`
1031
1819
  - 持久化 `.peaks/smoke-paths.json`
1032
1820
  - 5 个 source (prd-business-scenario / boss-stated / historical-incident / impact-must-check / manual)
@@ -1034,6 +1822,7 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1034
1822
  - 16 tests pass
1035
1823
 
1036
1824
  **G15 上线观察期状态机**(slice-2026-06-28-release-cli):
1825
+
1037
1826
  - 7 commands: `peaks release plan` / `canary` / `promote` / `watch` / `done` / `rollback` / `hotfix`
1038
1827
  - 8 阶段状态机: planned → canary-10 → canary-50 → promoted → watching → done
1039
1828
  - side branches: → rolled-back (from any pre-done), → hotfixed (from watching)
@@ -1044,6 +1833,7 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1044
1833
  **触动:** 新增 4 个 service / 4 个 CLI / 4 个 test 文件 = **12 个新文件**。CLI 注册全在 `src/cli/program.ts`,**不触动** transition gates / hard contracts / Karpathy 4 / sub-agent 协议 / mode-gate。
1045
1834
 
1046
1835
  **已知未实现**(后续切片):
1836
+
1047
1837
  - 真实 git fetch + merge(G11)
1048
1838
  - 真实 Playwright 路径执行(G14)
1049
1839
  - 真实 k8s rollout / LB config / 监控集成(G15)
@@ -1053,23 +1843,27 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1053
1843
  4 个 service + 4 个 CLI 文件 + 4 个 test 文件,共 **16 个新命令 + 40+ 个新测试通过**。所有 CLI 都遵循 12 Gaps 核心原则: user 在循环里 = 业务/产品审阅,不参与技术决策。
1054
1844
 
1055
1845
  **G3 prd 4 必填块**(slice-2026-06-28-prd-blocks):
1846
+
1056
1847
  - `peaks prd check-blocks <rid>` — 验证 4 必填块(业务场景/边界/UI 装配/上游基线)+ 业务禁区子节
1057
1848
  - 上游基线仅在 fork 项目上 required(检测 `.peaks/fork-state.json`)
1058
1849
  - 8 tests pass
1059
1850
 
1060
1851
  **G4 user touchpoint classifier**(slice-2026-06-28-user-touchpoints):
1852
+
1061
1853
  - 3 commands: `peaks code gate-classify` / `peaks code user-touchpoints` / `peaks code commit-boundary-actions`
1062
1854
  - 14 个 Code gate 静态分类: business / tech / mode-selection / commit-boundary / commit-floor
1063
1855
  - `userShouldReview`: always / business-only / never
1064
1856
  - 7 tests pass
1065
1857
 
1066
1858
  **G1 slice 业务审阅**(slice-2026-06-28-slice-review):
1859
+
1067
1860
  - 4 commands: `peaks slice review` / `score` / `accept` / `reject`
1068
1861
  - 4 个默认 review item: business-match / boundary-cases / ui-assembly / mergeable
1069
1862
  - 12 Gaps 阈值: avg >= 3 AND no item <= 2 → accepted
1070
1863
  - 16 tests pass
1071
1864
 
1072
1865
  **G5 QA 业务视角验收**(slice-2026-06-28-qa-business):
1866
+
1073
1867
  - 4 commands: `peaks qa business-review` / `business-score` / `business-accept` / `business-reject`
1074
1868
  - 6 个默认 review item: business-flow / req-coverage / boundary-cases / ui-assembly / exception-tone / mergeable
1075
1869
  - 同一阈值(avg >= 3, no item <= 2)
@@ -1082,29 +1876,35 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1082
1876
  5 个 PRD 一次性收尾剩余 5 个 Gaps。每 G 一个 service + CLI + test,**10 个新文件 + 30+ 个新测试通过**。
1083
1877
 
1084
1878
  **G6 跨 slice 集成**(slice-2026-06-28-slice-integrate):
1879
+
1085
1880
  - `peaks slice-integrate --slices <id1,id2,...>` — 验证多个 slice 的公共契约不冲突(重复 export / signature drift)
1086
1881
  - 5 tests pass
1087
1882
 
1088
1883
  **G7 文档自动化**(slice-2026-06-28-doc):
1884
+
1089
1885
  - `peaks doc generate-skill --name --from <commands-dir>` — 扫描 program.command() 自动生成 SKILL.md skeleton
1090
1886
  - `peaks doc changelog-suggest --since <ref>` — git log 解析 conventional commit + 生成 [Unreleased] 块
1091
1887
  - 6 tests pass
1092
1888
 
1093
1889
  **G8 存量代码 smell 扫描**(slice-2026-06-28-legacy):
1890
+
1094
1891
  - `peaks legacy-detect --dir <path>` — TODO/FIXME/HACK/console.log/any-type/large-file/ts-ignore 启发式扫描
1095
1892
  - 5 tests pass
1096
1893
 
1097
1894
  **G9 角色 RBAC**(slice-2026-06-28-role):
1895
+
1098
1896
  - `peaks role list/add/grant/check` — 4 命令,持久化 .peaks/role-registry.json
1099
1897
  - `--preset senior-fe` 一键预置 12 Gaps 高级前端权限
1100
1898
  - 5 tests pass
1101
1899
 
1102
1900
  **G10 复杂度估算**(slice-2026-06-28-complexity):
1901
+
1103
1902
  - `peaks complexity-estimate --files <list>` — 按 LOC + exports + async 估算 trivial/simple/complex
1104
1903
  - 与 G2 字段(complexity tier)对齐,驱动 user-attended vs overnight 排程
1105
1904
  - 5 tests pass
1106
1905
 
1107
1906
  **Dogfood 验证(ice-cola NestJS 项目):**
1907
+
1108
1908
  - peaks legacy-detect (164 文件, smells=high, 406 个 any-type, 15 个 large-file)
1109
1909
  - peaks role add senior-fe --preset senior-fe + role list + role check (granted/not)
1110
1910
  - peaks complexity-estimate (auth files → complex, 41 lines + hasAsync)
@@ -1129,6 +1929,7 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1129
1929
  - `tests/unit/services/context/tokenizer.test.ts:23` — `fetchedAt` 硬编码 `2026-06-21` 距今 7 天触发 `timeDecayScore 0.886 < 0.9` 期望,改 `new Date().toISOString()` 符合"fresh fetch"测试意图
1130
1930
 
1131
1931
  **测试结果:**
1932
+
1132
1933
  - silent-warning-detector: 2 violations → 0
1133
1934
  - `tests/unit/services/context/`: 49/50 → 50/50
1134
1935
  - 全量 vitest 4819 tests:3 failed → 2 failed(剩下 2 个是并发 race condition,单跑 context 50/50 全过,pre-existing)
@@ -1140,19 +1941,23 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1140
1941
  **PATCH bump from 2.14.1** (slice `2026-06-28-tilde-peaks-p3p4`). Closes P3 + P4 from `.peaks/memory/2026-06-28-tilde-peaks-inventory.md`.
1141
1942
 
1142
1943
  ### Cleanup
1944
+
1143
1945
  - **`skills/peaks-companion/`** — REMOVED. Skill was dead: SKILL.md documented `peaks companion status/install/setup/start` but no CLI implementation existed (`src/services/companion/` not present, `peaks --help` had no companion entry). Empty `~/.peaks/companion/` directory is no longer expected to receive `cc-connect.log` writes.
1144
1946
  - **`tests/unit/skills/peaks-companion.test.ts`** — REMOVED (9 cases). The companion skill-count assertion (19 → 18 skills) is now verified by `tests/unit/skills/skill-count.test.ts` (already covers the meta count, not companion specifically).
1145
1947
  - **`.peaks/memory/peaks-companion-*.md`** — REMOVED (4 files: `cc-connect-dogfood-2026-06-15`, `qr-autoopen-2026-06-15`, `qr-inline-display-2026-06-15`, `watcher-ecs-url-config`). Historical dogfood records, no longer relevant.
1146
1948
 
1147
1949
  ### Refactor
1950
+
1148
1951
  - **`~/.peaks/providers.json`** (NEW sidecar) — MiniMax provider config migrated from deprecated `~/.peaks/config.json.providers` to canonical `~/.peaks/providers.json` per `provider-service.ts` schema. The slim `config.json` (per `config-types.ts`) no longer carries the `providers` field.
1149
1952
  - **MiniMax model field preserved** — `~/.peaks/providers.json.providers.minimax.model = "minimax-2.7"`; `peaks config provider minimax get/status` continue to report correctly via the back-compat fallback in `provider-service.ts`.
1150
1953
 
1151
1954
  ### Test results
1955
+
1152
1956
  - `pnpm vitest run tests/unit/doctor.test.ts` — 50/50 pass
1153
1957
  - `pnpm vitest run` full unit suite — `peaks-companion.test.ts` no longer runs; total cases drop from 4418 → 4409. Pre-existing failures (`doctor.test.ts` × 0, `tokenizer.test.ts` × 1, `35-checks-aggregate.test.ts` × 1) unchanged.
1154
1958
 
1155
1959
  ### Out-of-scope
1960
+
1156
1961
  - Push / tag / npm publish — full-auto mode boundary = commit only; user-only.
1157
1962
  - Re-implementing peaks-companion CLI — user chose delete over revive.
1158
1963
  - Cleaning `~/.peaks/companion/` empty dir — left in place; harmless.
@@ -1164,14 +1969,17 @@ slice-2026-06-28-layered-dag PRD: 大需求(1 周内做不完)= 基础先行 +
1164
1969
  **PATCH bump from 2.14.0** (carry-forward from v2.13.3 AC-2 partial fix + npm 11.x config rename).
1165
1970
 
1166
1971
  ### Bug fixes
1972
+
1167
1973
  - `scripts/prepublish-build.mjs` — use `execFileSync('pnpm', ['run', 'build'])` (no shell) with Windows fallback to `prepublish-build.ps1` (proven dogfood). Eliminates the v2.13.4 partial-fix `spawnSync cmd.exe ENOENT` on Node 22 + Windows native.
1168
1974
  - `.npmrc` (NEW, repo-local template) — documents that `https_proxy` (underscore) is NO LONGER VALID in npm 11.x; use `https-proxy` or `proxy`. User-global `~/.npmrc` may still have `https_proxy`; npm 11.x warns, npm 12 will error.
1169
1975
 
1170
1976
  ### Test results
1977
+
1171
1978
  - `tests/unit/scripts/prepublish-build.test.ts` (NEW, 6 cases) — covers execFile happy path + Windows ps1 fallback + error propagation + version validation + ENOENT regression
1172
1979
  - `node scripts/prepublish-build.mjs` end-to-end: `[prepublish-build] build OK` exit 0 (verified on this Windows session)
1173
1980
 
1174
1981
  ### Out-of-scope
1982
+
1175
1983
  - Do NOT modify user-global `~/.npmrc` (user-only boundary); user must run `npm config delete https_proxy` themselves if they want to silence the warning before npm 12.
1176
1984
 
1177
1985
  ---
@@ -1292,7 +2100,7 @@ The four defects all stem from the v2.13.0 two-axis convention landing debt: the
1292
2100
 
1293
2101
  **PATCH bump from 2.13.2** (slice `2026-06-27-verdict-aggregator-v2-12-debt`, red-line scope 7 source files + 3 test files modified + 3 new scripts + 1 package.json hook).
1294
2102
 
1295
- 2.13.2 dogfood surfaced 4 bugs that all stem from v2.12.0 envelope-schema落地 debt: the v2.12.0 audit artifacts (`audit/security.md`, `audit/perf.md`) are YAML-frontmatter + markdown, but v2.13.2's `parseSecurityEnvelope` / `parsePerfEnvelope` used `JSON.parse` (which is the wrong shape). v2.13.3 also fixes a cross-version publish-pipeline issue (`bin/peaks.js` was shipping a Jun 13 stale dist because `prepublishOnly` was never wired) and adds a soft-block-warning surface in the CLI so users can see v2.13.2's `mut-report-missing-deprecated-in-v2.14.0` warning instead of having it silently downgraded in service-layer.
2103
+ 2.13.2 dogfood surfaced 4 bugs that all stem from v2.12.0 envelope-schema 落地 debt: the v2.12.0 audit artifacts (`audit/security.md`, `audit/perf.md`) are YAML-frontmatter + markdown, but v2.13.2's `parseSecurityEnvelope` / `parsePerfEnvelope` used `JSON.parse` (which is the wrong shape). v2.13.3 also fixes a cross-version publish-pipeline issue (`bin/peaks.js` was shipping a Jun 13 stale dist because `prepublishOnly` was never wired) and adds a soft-block-warning surface in the CLI so users can see v2.13.2's `mut-report-missing-deprecated-in-v2.14.0` warning instead of having it silently downgraded in service-layer.
1296
2104
 
1297
2105
  ### Bug fixes
1298
2106
 
@@ -1328,9 +2136,9 @@ The four defects all stem from the v2.13.0 two-axis convention landing debt: the
1328
2136
 
1329
2137
  ### Multi-CC commit boundaries
1330
2138
 
1331
- | Commit tag | Scope |
1332
- |---|---|
1333
- | v2.13.3 | 4 bug fixes (parser / publish pipeline / CLI warnings / handoff sha256) + 3 new scripts + 4 new test cases + package.json prepublishOnly + README publish note + CHANGELOG + version bump + ship-state memory |
2139
+ | Commit tag | Scope |
2140
+ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2141
+ | v2.13.3 | 4 bug fixes (parser / publish pipeline / CLI warnings / handoff sha256) + 3 new scripts + 4 new test cases + package.json prepublishOnly + README publish note + CHANGELOG + version bump + ship-state memory |
1334
2142
 
1335
2143
  ### Verified (peaks code dogfood + QA on this session)
1336
2144
 
@@ -1406,9 +2214,9 @@ v2.13.1 shipped with a BLOCKER bug found via post-release dogfood: `aggregateVer
1406
2214
 
1407
2215
  ### Multi-CC commit boundaries
1408
2216
 
1409
- | Commit tag | Scope |
1410
- |---|---|
1411
- | v2.13.2 | `aggregateVerdict()` dedup bug fix + `peaks verdict aggregate` CLI + `envelopes.ts` unification + `prd/handoff.md` auto-regen + `MUT_REPORT` soft-block window + 4 new test files + 4 updated test files + CHANGELOG + version bump + ship-state memory |
2217
+ | Commit tag | Scope |
2218
+ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2219
+ | v2.13.2 | `aggregateVerdict()` dedup bug fix + `peaks verdict aggregate` CLI + `envelopes.ts` unification + `prd/handoff.md` auto-regen + `MUT_REPORT` soft-block window + 4 new test files + 4 updated test files + CHANGELOG + version bump + ship-state memory |
1412
2220
 
1413
2221
  ### Verified (peaks code dogfood + QA on this session)
1414
2222
 
@@ -1470,9 +2278,9 @@ peaks-code previously received 5 heterogeneous signals (security-audit, perf-aud
1470
2278
 
1471
2279
  ### Multi-CC commit boundaries
1472
2280
 
1473
- | Commit tag | Scope |
1474
- |---|---|
1475
- | v2.13.1 | MUT_REPORT prereq + `aggregateVerdict()` service + `## Verdict reasoning` section + 4 new test files + 2 updated test files + CHANGELOG + version bump + ship-state memory |
2281
+ | Commit tag | Scope |
2282
+ | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2283
+ | v2.13.1 | MUT_REPORT prereq + `aggregateVerdict()` service + `## Verdict reasoning` section + 4 new test files + 2 updated test files + CHANGELOG + version bump + ship-state memory |
1476
2284
 
1477
2285
  ### Verified (peaks code dogfood on this session)
1478
2286
 
@@ -1536,10 +2344,10 @@ Adapter-driven protocol (no hard-coded IDE names): `IdeAdapter.compact?: IdeComp
1536
2344
 
1537
2345
  ### Multi-CC commit boundaries
1538
2346
 
1539
- | Commit tag | Scope |
1540
- |---|---|
2347
+ | Commit tag | Scope |
2348
+ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1541
2349
  | v2.13.0-alpha.1 (`edffc33`) | Two-tier threshold + auto-compact types + reader + dispatcher + orchestrator + Claude Code MVP adapter + `peaks code context-now` + `peaks code auto-compact` CLI |
1542
- | `a8b9804` | In-session dogfood limitation documented (current ad-hoc Claude Code session cannot be externally compacted — reserved for follow-up PreToolUse-hook slice) |
2350
+ | `a8b9804` | In-session dogfood limitation documented (current ad-hoc Claude Code session cannot be externally compacted — reserved for follow-up PreToolUse-hook slice) |
1543
2351
 
1544
2352
  ### Verified (peaks code dogfood on this session)
1545
2353
 
@@ -1550,7 +2358,7 @@ Adapter-driven protocol (no hard-coded IDE names): `IdeAdapter.compact?: IdeComp
1550
2358
  - `post-compact-detect` after pre-compact: `shouldAutoResume: true`, `reason: post-compact-match` ✓
1551
2359
  - Trae IDE (no `compact` profile): `ratio: 0` + `source: conservative-fallback` + `below-threshold` (no auto-fire on missing signal — by design) ✓
1552
2360
  - `pnpm tsc --noEmit`: clean
1553
- - `pnpm vitest run` (full suite): `4317 / 4317` pass + 17 skipped (2 pre-existing baseline failures on session-checkpoint + _archive-removal-guard unchanged)
2361
+ - `pnpm vitest run` (full suite): `4317 / 4317` pass + 17 skipped (2 pre-existing baseline failures on session-checkpoint + \_archive-removal-guard unchanged)
1554
2362
 
1555
2363
  ### Out-of-scope (NOT changed)
1556
2364
 
@@ -1607,17 +2415,17 @@ v2.13.0 hard-deletes the legacy paths.
1607
2415
 
1608
2416
  ### Multi-CC commit boundaries
1609
2417
 
1610
- | Group | Tiers | Commit tag | Scope |
1611
- |---|---|---|---|
1612
- | A | 1+2+3 | v2.12.0-alpha.1 | Templates + new skills (fa082f5) |
1613
- | B | 4+5 | v2.12.0-alpha.2 | 5→3 fanout collapse + prereq migration (6485f1c) |
1614
- | C | 6 | v2.12.0-alpha.3 | peaks-txt sediment extension (ab2757b) |
1615
- | D | 7 | v2.12.0-alpha.4 | fan-out SKILL.md updates (b6c4fae) |
1616
- | E | 8+9 | v2.12.0 (release) | Decision records + migration + CHANGELOG + version bump (this commit) |
2418
+ | Group | Tiers | Commit tag | Scope |
2419
+ | ----- | ----- | ----------------- | --------------------------------------------------------------------- |
2420
+ | A | 1+2+3 | v2.12.0-alpha.1 | Templates + new skills (fa082f5) |
2421
+ | B | 4+5 | v2.12.0-alpha.2 | 5→3 fanout collapse + prereq migration (6485f1c) |
2422
+ | C | 6 | v2.12.0-alpha.3 | peaks-txt sediment extension (ab2757b) |
2423
+ | D | 7 | v2.12.0-alpha.4 | fan-out SKILL.md updates (b6c4fae) |
2424
+ | E | 8+9 | v2.12.0 (release) | Decision records + migration + CHANGELOG + version bump (this commit) |
1617
2425
 
1618
2426
  ### Zero regression (verified per group)
1619
2427
 
1620
- Each Group A→D ran the full RD→QA loop independently. Group C final QA: 14/14 sediment tests pass + 39/39 prd service tests pass; 9 pre-existing baseline failures unchanged (doctor / _archive-removal-guard / request-commands / observability / session-checkpoint / tech-service / workflow-autonomous-resume / jsonl-store / 35-checks-aggregate — all unrelated to v2.12.0). Group D final QA: 35/35 fan-out SKILL.md contract tests pass; same 9 pre-existing baseline failures.
2428
+ Each Group A→D ran the full RD→QA loop independently. Group C final QA: 14/14 sediment tests pass + 39/39 prd service tests pass; 9 pre-existing baseline failures unchanged (doctor / \_archive-removal-guard / request-commands / observability / session-checkpoint / tech-service / workflow-autonomous-resume / jsonl-store / 35-checks-aggregate — all unrelated to v2.12.0). Group D final QA: 35/35 fan-out SKILL.md contract tests pass; same 9 pre-existing baseline failures.
1621
2429
 
1622
2430
  ### Out-of-scope (NOT changed)
1623
2431
 
@@ -1798,6 +2606,7 @@ LLM was creating top-level `.peaks/_runtime/<change-id>/` siblings of `.peaks/_r
1798
2606
  - Bumps `package.json#version` from 2.9.1 to 2.9.2
1799
2607
 
1800
2608
  **Pre-existing violations preserved as-is** (intentional historical/forbidden documentation, all explicitly labeled):
2609
+
1801
2610
  - 6 ban-explanation memory files under `.peaks/memory/` (slice 005 / 2.8.3 / 2.7.1 lessons)
1802
2611
  - 28 historic session files under `.peaks/_runtime/2026-06-*/`
1803
2612
  - 5 historic dispatch records under `.peaks/_sub_agents/`
@@ -1894,37 +2703,37 @@ the four-step recipe; no data is lost.
1894
2703
  final root-out of a 2.8.0-era orphan (`.peaks/2026-06-22-cc-connect-orphan-cleanup/`,
1895
2704
  4 files, 28 KB, untracked) and pins the rule across FOUR layers so a
1896
2705
  regression cannot survive:
1897
- 1. **`.gitignore` fnmatch rule** —
1898
- `.peaks/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-*/` blocks any
1899
- future untracked date-prefix sibling at `.peaks/_runtime/<seg>/`. Path-anchored
1900
- so it does not over-match (`.peaks/_runtime/<date>/` is still ignored
1901
- by the existing `.peaks/_runtime/` rule, not this one).
1902
- 2. **Vitest guard** at
1903
- `tests/unit/workspace/top-level-change-id-guard.test.ts` (8 cases)
1904
- pins the gitignore rule literal, asserts fnmatch matches a synthetic
1905
- candidate, asserts it does NOT match `.peaks/_runtime/-nested`
1906
- candidates, scans the live working tree for orphan date-prefix
1907
- siblings, scans `git ls-files` for tracked escapes, asserts both
1908
- `CLAUDE.md` and `.peaks/PROJECT.md` carry the ban wording, AND
1909
- asserts the CLI help text (`init-command.ts`) teaches the
1910
- `.peaks/_runtime/current-change` binding path + the four
1911
- migration verbs (inspect / move / delete / unlink / re-run).
1912
- 3. **Source-code redirect** —
1913
- `src/shared/change-id.ts#setCurrentChangeId` now defaults to
1914
- `{ form: 'file' }` (was `'symlink'`); the file form writes ONLY
1915
- `.peaks/_runtime/current-change` and never creates
1916
- `.peaks/_runtime/<changeId>/`. The legacy `'symlink'` form is kept for
1917
- back-compat reads but is no longer written by `peaks workspace init`.
1918
- `src/services/workspace/workspace-service.ts#initWorkspace`
1919
- pre-flights the existence of `.peaks/_runtime/<changeId>/` and throws
1920
- `LegacyChangeIdSiblingError` if found.
1921
- 4. **CLI help-text guard** — `src/cli/commands/workspace/init-command.ts`
1922
- rewrites the `init` command description and `--change-id` option
1923
- description so an LLM reading `peaks workspace init --help` is
1924
- taught the correct path (`.peaks/_runtime/current-change`) instead
1925
- of the legacy `.peaks/_runtime/<change-id>/` sibling dir. A new catch block
1926
- surfaces `LegacyChangeIdSiblingError` with the 4-step migration
1927
- recipe in the JSON envelope.
2706
+ 1. **`.gitignore` fnmatch rule** —
2707
+ `.peaks/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-*/` blocks any
2708
+ future untracked date-prefix sibling at `.peaks/_runtime/<seg>/`. Path-anchored
2709
+ so it does not over-match (`.peaks/_runtime/<date>/` is still ignored
2710
+ by the existing `.peaks/_runtime/` rule, not this one).
2711
+ 2. **Vitest guard** at
2712
+ `tests/unit/workspace/top-level-change-id-guard.test.ts` (8 cases)
2713
+ pins the gitignore rule literal, asserts fnmatch matches a synthetic
2714
+ candidate, asserts it does NOT match `.peaks/_runtime/-nested`
2715
+ candidates, scans the live working tree for orphan date-prefix
2716
+ siblings, scans `git ls-files` for tracked escapes, asserts both
2717
+ `CLAUDE.md` and `.peaks/PROJECT.md` carry the ban wording, AND
2718
+ asserts the CLI help text (`init-command.ts`) teaches the
2719
+ `.peaks/_runtime/current-change` binding path + the four
2720
+ migration verbs (inspect / move / delete / unlink / re-run).
2721
+ 3. **Source-code redirect** —
2722
+ `src/shared/change-id.ts#setCurrentChangeId` now defaults to
2723
+ `{ form: 'file' }` (was `'symlink'`); the file form writes ONLY
2724
+ `.peaks/_runtime/current-change` and never creates
2725
+ `.peaks/_runtime/<changeId>/`. The legacy `'symlink'` form is kept for
2726
+ back-compat reads but is no longer written by `peaks workspace init`.
2727
+ `src/services/workspace/workspace-service.ts#initWorkspace`
2728
+ pre-flights the existence of `.peaks/_runtime/<changeId>/` and throws
2729
+ `LegacyChangeIdSiblingError` if found.
2730
+ 4. **CLI help-text guard** — `src/cli/commands/workspace/init-command.ts`
2731
+ rewrites the `init` command description and `--change-id` option
2732
+ description so an LLM reading `peaks workspace init --help` is
2733
+ taught the correct path (`.peaks/_runtime/current-change`) instead
2734
+ of the legacy `.peaks/_runtime/<change-id>/` sibling dir. A new catch block
2735
+ surfaces `LegacyChangeIdSiblingError` with the 4-step migration
2736
+ recipe in the JSON envelope.
1928
2737
  - **`CLI_VERSION`** sync bumped 2.8.2 → 2.8.3 (regenerated via
1929
2738
  `scripts/sync-version.mjs` from `package.json#version`).
1930
2739
 
@@ -2050,7 +2859,7 @@ are unchanged by this release), `pnpm build` clean.
2050
2859
  `src/services/companion/*` module + `src/cli/commands/companion.ts`
2051
2860
  CLI + 14 `tests/unit/companion/*` test files are removed
2052
2861
  (~7,700 lines deleted, 0 added). The `peaks companion install|setup|
2053
- start|stop|bind|status|restart|verify|token|qr` command tree is gone
2862
+ start|stop|bind|status|restart|verify|token|qr` command tree is gone
2054
2863
  along with the `peaks scan companion-binary` sub-command and the
2055
2864
  `capability:companion-binary-resolution` doctor check. Companion
2056
2865
  types (`CompanionConfig`, `CompanionWeixinConfig`, `CompanionChannel`,
@@ -2078,7 +2887,7 @@ are unchanged by this release), `pnpm build` clean.
2078
2887
  - **`@alibaba-group/open-code-review` is now a peer dependency** —
2079
2888
  moved from `optionalDependencies` to `peerDependencies` with
2080
2889
  `peerDependenciesMeta."@alibaba-group/open-code-review".optional =
2081
- true`. The peer hint lets npm skip the optional resolution entirely
2890
+ true`. The peer hint lets npm skip the optional resolution entirely
2082
2891
  during global install; users who want second-opinion reviews via
2083
2892
  `peaks code-review run-ocr` install it manually with
2084
2893
  `npm i -g @alibaba-group/open-code-review`. Install hint copy in
@@ -2110,8 +2919,8 @@ are unchanged by this release), `pnpm build` clean.
2110
2919
  - **Defense-in-depth comment cites H6 verbatim (Plan 5 R1-W3 MED)** —
2111
2920
  `src/services/rd/impl.ts` defense-in-depth check now cites spec H6
2112
2921
  (CLI 计算裁决) directly. The accompanying `docs/superpowers/specs/
2113
- 2026-06-21-context-audit-redesign-design.md` gained a new §4.3
2114
- *战术审计* subsection that consolidates §3.2 / §3.3 / H6 / H8 / Phase 3
2922
+ 2026-06-21-context-audit-redesign-design.md` gained a new §4.3
2923
+ _战术审计_ subsection that consolidates §3.2 / §3.3 / H6 / H8 / Phase 3
2115
2924
  AC-2 into a single canonical anchor (previous code references to
2116
2925
  `§4.2` updated to `§4.3`).
2117
2926
 
@@ -2128,7 +2937,7 @@ are unchanged by this release), `pnpm build` clean.
2128
2937
  is in the test name, not just the body.
2129
2938
 
2130
2939
  - **Atomic-write crash test (Plan 5 R1-W5 LOW)** — new test
2131
- *unlinks .tmp when rename throws* pins the catch→unlink fallback in
2940
+ _unlinks .tmp when rename throws_ pins the catch→unlink fallback in
2132
2941
  `writeImpl` (EISDIR-triggered real-rename failure). Mutation probe
2133
2942
  KILLED: commenting out the unlink makes the test fail at the
2134
2943
  `existsSync(tmp)` assertion.
@@ -2230,7 +3039,7 @@ are unchanged by this release), `pnpm build` clean.
2230
3039
  `C:\Users\name\.trae\agents` and a Mac user gets
2231
3040
  `/Users/name/.trae/agents`. No hardcoded `/Users/...` or `C:\...` in
2232
3041
  any 5-IDE `awaitBatch` path. The 4 new IDE paths (`trae / trae-cn /
2233
- codex / cursor`) follow the same discipline.
3042
+ codex / cursor`) follow the same discipline.
2234
3043
  - **`runDag` cancel-on-fail correctness (slice 1.2.c)** — when any leaf
2235
3044
  fails, in-flight sub-agents in the same batch receive a cancel signal
2236
3045
  at the envelope level; the orchestrator no longer waits for them to
@@ -2321,11 +3130,11 @@ are unchanged by this release), `pnpm build` clean.
2321
3130
  4. `scanExportsInFile` now matches `export default function name()`
2322
3131
  and `export default class Name`; `importedNameCount` now treats
2323
3132
  re-exports (`export { x } from './y'`, `export type { T } from
2324
- './y'`) as consumer references.
2325
- Bonus: `OrphanScanOptions.baseRef` lets the scan diff against an
2326
- arbitrary git ref (default: `HEAD`) for branch-vs-main reviews.
3133
+ './y'`) as consumer references.
3134
+ Bonus: `OrphanScanOptions.baseRef` lets the scan diff against an
3135
+ arbitrary git ref (default: `HEAD`) for branch-vs-main reviews.
2327
3136
  - **karpathy-service code-fence skip (Slice 2.6.1.B)** — `peaks scan
2328
- karpathy` no longer flags anti-pattern phrases (TODO, "should be
3137
+ karpathy` no longer flags anti-pattern phrases (TODO, "should be
2329
3138
  fine", "maybe", "probably") when they appear inside fenced markdown
2330
3139
  code blocks. Illustrative code snippets were eroding trust in the
2331
3140
  structural scanner. The 4 guideline-marker tests
@@ -2348,7 +3157,7 @@ are unchanged by this release), `pnpm build` clean.
2348
3157
  byte-identical.
2349
3158
  - **KARPATHY_REVIEW heading-anchored gate (Slice 2.6.1.F)** — the L3
2350
3159
  LOW (the 4 guideline `mustContain` substring markers could be
2351
- spoofed by any file that just *mentioned* the marker names as
3160
+ spoofed by any file that just _mentioned_ the marker names as
2352
3161
  prose) is fixed by a new `headingMustContain: string[]` field on
2353
3162
  `ArtifactPrerequisite`. `KARPATHY_REVIEW` now requires each of
2354
3163
  the 4 guidelines to appear as an actual markdown heading
@@ -2365,8 +3174,7 @@ are unchanged by this release), `pnpm build` clean.
2365
3174
 
2366
3175
  - **L2-install dogfood verification (Slice 2.6.1.D)** — confirmed
2367
3176
  end-to-end on a temp HOME that the 2.6.0 tarball's `postinstall`
2368
- creates `~/.claude/agents/karpathy-reviewer.md` (15.4 KB, mode
2369
- 0600) and the matching `.peaks-managed` marker (245 bytes, JSON
3177
+ creates `~/.claude/agents/karpathy-reviewer.md` (15.4 KB, mode 0600) and the matching `.peaks-managed` marker (245 bytes, JSON
2370
3178
  with `version`, `kind`, `agentName`, `sourcePath`, `contentSha256`).
2371
3179
  The 8-platform skill fan-out also confirmed (codex, cursor, trae,
2372
3180
  trae-cn, qoder, tongyi-lingma, hermes, openclaw). After Slice E,
@@ -2396,7 +3204,7 @@ are unchanged by this release), `pnpm build` clean.
2396
3204
  title-case section markers (Think Before Coding / Simplicity First /
2397
3205
  Surgical Changes / Goal-Driven Execution). CLI error code
2398
3206
  `PREREQUISITES_MISSING`. Escape hatch: `peaks request transition
2399
- --allow-incomplete --confirm` (assisted mode).
3207
+ --allow-incomplete --confirm` (assisted mode).
2400
3208
  - **Karpathy prompt-injection across the full RD surface** (slice 1) —
2401
3209
  4-layer guard: SKILL.md body + 3 reference docs
2402
3210
  (`mandatory-tech-doc.md`, `rd-fanout-contracts.md`,
@@ -2418,7 +3226,7 @@ are unchanged by this release), `pnpm build` clean.
2418
3226
  endpoints / components / stores / mocks in the consumer project
2419
3227
  before any new code is written. `--project --format --scope --max-per-kind`
2420
3228
  options; output feeds the tech-doc's `## Existing API or Component
2421
- Inventory` section. New service
3229
+ Inventory` section. New service
2422
3230
  `src/services/scan/api-surface-service.ts` (~280 lines).
2423
3231
  - **`peaks scan orphan` CLI** (slice 4) — 4-kind orphan detection
2424
3232
  (exportOrphan / importOrphan / cliSubcommandOrphan /
@@ -2535,8 +3343,8 @@ are unchanged by this release), `pnpm build` clean.
2535
3343
  `references/checkpoint-resume.md` + `references/periodic-checkpoint.md`, but
2536
3344
  SKILL.md body only mentioned them in a single line. New Claude Code sessions
2537
3345
  that load SKILL.md never learned the optimization existed. `### Peaks-Loop
2538
- Step 0.75: Resume from checkpoint` and `### Peaks-Loop Step N: Periodic
2539
- checkpoint` headings are now in the body (≥ 5 lines each), with explicit
3346
+ Step 0.75: Resume from checkpoint` and `### Peaks-Loop Step N: Periodic
3347
+ checkpoint` headings are now in the body (≥ 5 lines each), with explicit
2540
3348
  `peaks session checkpoint` / `peaks session resume` CLI mentions and
2541
3349
  reference-doc pointers. Byte cap bumped 22K → 24K (precedent: 18K → 20K → 22K).
2542
3350
  - **`peaks test <pattern...>` CLI with smart cache** (sub-fix B) — new CLI
@@ -2645,7 +3453,7 @@ are unchanged by this release), `pnpm build` clean.
2645
3453
  (~/.claude/skills + ~/.claude/output-styles)" and writes to
2646
3454
  `~/.claude/skills/`.
2647
3455
  - Byte-stability: `git diff
2648
- src/services/ide/adapters/{claude-code,trae}-adapter.ts` returns
3456
+ src/services/ide/adapters/{claude-code,trae}-adapter.ts` returns
2649
3457
  empty (AC8 / AC15 ✓). Dispatch chokepoints `resource-profile.ts` /
2650
3458
  `ide-aware-standards-service.ts` / `install-skills.mjs` untouched
2651
3459
  (R6 inverse rule ✓).
@@ -2740,6 +3548,7 @@ are unchanged by this release), `pnpm build` clean.
2740
3548
  registered SOP gate.
2741
3549
 
2742
3550
  Concrete changes:
3551
+
2743
3552
  - `src/services/workspace/claude-settings-template.ts` — deleted
2744
3553
  `PEAKS_SUBCOMMAND_ALLOWLIST`, `buildBashHookCommand()`. The
2745
3554
  template now emits only the `Write|Edit|MultiEdit` matcher.
@@ -2792,11 +3601,12 @@ Full suite: **2957 passed, 12 skipped, 0 failed**.
2792
3601
  - **`headroom-ai` preferences resolver** — `src/services/context/headroom-prefs.ts` with
2793
3602
  `resolveHeadroomOptions` and `shouldCompressResults` (pure functions, no IO). Sub-agent
2794
3603
  dispatch now reads `loadPreferences().headroom` and:
2795
- - Hard-blocks `--use-headroom` when `headroom.enabled = false` (new error code
2796
- `HEADROOM_DISABLED_BY_PREFERENCE`, exit 1).
2797
- - Respects `--headroom-mode <m>` CLI override > `perTouchpoint.subAgentDispatch` >
2798
- `defaultMode` precedence.
2799
- - Falls back to G7 metadata-only on any preferences load failure (no dispatch break).
3604
+
3605
+ - Hard-blocks `--use-headroom` when `headroom.enabled = false` (new error code
3606
+ `HEADROOM_DISABLED_BY_PREFERENCE`, exit 1).
3607
+ - Respects `--headroom-mode <m>` CLI override > `perTouchpoint.subAgentDispatch` >
3608
+ `defaultMode` precedence.
3609
+ - Falls back to G7 metadata-only on any preferences load failure (no dispatch break).
2800
3610
 
2801
3611
  - **New preferences fields** — `headroom.perTouchpoint.subAgentDispatch` and
2802
3612
  `headroom.compressMinBytes` (default 4096). Shallow-merge on existing
@@ -2926,7 +3736,7 @@ Full suite: **2957 passed, 12 skipped, 0 failed**.
2926
3736
 
2927
3737
  - The "one rid = one feature" pattern. From 2.1.1 onward, the
2928
3738
  recommended workflow is: PRD -> `peaks slice decompose` -> `peaks
2929
- slice pick` (interactive) -> `peaks slice plan` -> N child rids.
3739
+ slice pick` (interactive) -> `peaks slice plan` -> N child rids.
2930
3740
  Legacy `--type`-based fan-out still works as a fallback for rids
2931
3741
  that pre-date the algorithm.
2932
3742
 
@@ -3004,10 +3814,10 @@ Full suite: **2957 passed, 12 skipped, 0 failed**.
3004
3814
  (canonical home: proxy-service.ts).
3005
3815
  - `~/.peaks/workspaces.json` — registered workspaces + current-workspace
3006
3816
  pointer (canonical home: workspace-state-service.ts).
3007
- On-disk legacy bloat is auto-detected and promoted to the correct
3008
- sidecar on next CLI invocation; the slim `config.json` is then
3009
- rewritten. The migration is **idempotent and silent** — no user
3010
- action required.
3817
+ On-disk legacy bloat is auto-detected and promoted to the correct
3818
+ sidecar on next CLI invocation; the slim `config.json` is then
3819
+ rewritten. The migration is **idempotent and silent** — no user
3820
+ action required.
3011
3821
  - **`peaks config migrate --apply` distributes legacy fields across
3012
3822
  their canonical homes.** `economyMode` / `swarmMode` continue to
3013
3823
  forward to `<project>/.peaks/preferences.json`; `providers` /
@@ -3026,9 +3836,9 @@ Full suite: **2957 passed, 12 skipped, 0 failed**.
3026
3836
 
3027
3837
  - **New `src/services/config/sidecar-store.ts`** — path helpers
3028
3838
  (`providersConfigPath()`, `proxyConfigPath()`, `workspacesConfigPath()`)
3029
- + generic `readSidecarJson<T>` / `writeSidecarJson` with the same
3030
- hardened-fs guarantees as `config-safety.ts` (symlink / hardlink
3031
- guards, atomic temp-file rename, 0o600 mode).
3839
+ - generic `readSidecarJson<T>` / `writeSidecarJson` with the same
3840
+ hardened-fs guarantees as `config-safety.ts` (symlink / hardlink
3841
+ guards, atomic temp-file rename, 0o600 mode).
3032
3842
  - **New `src/services/config/provider-service.ts`** —
3033
3843
  `getMiniMaxProviderConfig()`, `setMiniMaxProviderConfig()`,
3034
3844
  `getMiniMaxProviderStatus()`, `getAllProviders()`,
@@ -3147,10 +3957,10 @@ Full suite: **2957 passed, 12 skipped, 0 failed**.
3147
3957
  call; a missing or anonymous caller-id is rejected.
3148
3958
  3. **Mandatory `--reason`** — the CLI rejects `--reason ""`; the
3149
3959
  reason is persisted into the slice record for the retrospective.
3150
- Three rules, not one: each rule is independently fail-closed, so a
3151
- misuse in any one of them blocks the bypass. The classifier is the
3152
- pure function `canSkipSlice(slice, callerId, reason)` so the rule
3153
- set is testable in isolation.
3960
+ Three rules, not one: each rule is independently fail-closed, so a
3961
+ misuse in any one of them blocks the bypass. The classifier is the
3962
+ pure function `canSkipSlice(slice, callerId, reason)` so the rule
3963
+ set is testable in isolation.
3154
3964
  - **`peaks workflow verify-pipeline --gate-skipped`** — reporting
3155
3965
  flag that surfaces slices that completed via the skip classifier
3156
3966
  during a pipeline run. The default `verify-pipeline` output hides
@@ -3187,27 +3997,29 @@ Full suite: **2957 passed, 12 skipped, 0 failed**.
3187
3997
  bash saw literal `const c=process.argv[1]...` and tripped
3188
3998
  `syntax error near unexpected token`. Net effect on every 2.0.3
3189
3999
  install on Windows + macOS + Linux:
4000
+
3190
4001
  - Every Bash tool call (peaks CLI or otherwise) was rejected.
3191
4002
  - Every Write / Edit / MultiEdit call was rejected.
3192
4003
  - The [Fact-Forcing Gate] bypass that `peaks workspace init` was
3193
4004
  supposed to install was therefore self-defeating — the bypass
3194
4005
  broke the gate itself, and the gate could not be reached to fix
3195
4006
  it.
3196
- Recovery required the user to delete `.claude/settings.local.json`
3197
- manually (losing the bypass permanently) or hand-patch the
3198
- `command` field (drift vs the template).
3199
- The fix wraps both builders' JS payloads in a real shell-evaluable
3200
- `node -e "<js>"` form via a new `wrapAsNodeOneLiner` helper in
3201
- `src/services/workspace/claude-settings-template.ts`. Inner `"`
3202
- are escaped to `\"`; backslashes pass through unchanged so regex
3203
- literals like `/\.peaks\//` still match correctly. `process.argv[1]`
3204
- is the correct slot under `-e` per Node.js docs
3205
- (https://nodejs.org/api/process.html#processargv) — consistent
3206
- across Windows, macOS, and Linux. The docstring is reconciled
3207
- with the implementation (the previous docstring incorrectly said
3208
- `argv[2]`).
4007
+ Recovery required the user to delete `.claude/settings.local.json`
4008
+ manually (losing the bypass permanently) or hand-patch the
4009
+ `command` field (drift vs the template).
4010
+ The fix wraps both builders' JS payloads in a real shell-evaluable
4011
+ `node -e "<js>"` form via a new `wrapAsNodeOneLiner` helper in
4012
+ `src/services/workspace/claude-settings-template.ts`. Inner `"`
4013
+ are escaped to `\"`; backslashes pass through unchanged so regex
4014
+ literals like `/\.peaks\//` still match correctly. `process.argv[1]`
4015
+ is the correct slot under `-e` per Node.js docs
4016
+ (https://nodejs.org/api/process.html#processargv) — consistent
4017
+ across Windows, macOS, and Linux. The docstring is reconciled
4018
+ with the implementation (the previous docstring incorrectly said
4019
+ `argv[2]`).
3209
4020
 
3210
4021
  Regression tests cover:
4022
+
3211
4023
  - `buildBashHookCommand()` and `buildWriteHookCommand()` return
3212
4024
  `node -e "..."` form.
3213
4025
  - Inner `"` are escaped to `\"`.
@@ -3322,6 +4134,7 @@ config surface.
3322
4134
  > `optionalDependencies`; everything else in this section
3323
4135
  > (env-var injection, `config-template` CLI, `missingKeys`,
3324
4136
  > source-of-truth under `peaksConfig.ocr.llm`) is unchanged.
4137
+
3325
4138
  - **`detectOcr` / `runOcrReview` no longer read `~/.opencodereview/config.json`.**
3326
4139
  The source of truth is `peaksConfig.ocr.llm` (parsed by
3327
4140
  `getOcrLlmConfig()` in `config-service.ts`). Missing fields surface
@@ -3383,7 +4196,7 @@ subprocess ignores it when peaks-loop's env vars are present).
3383
4196
  supported IDE platforms in one command.
3384
4197
 
3385
4198
  - **`peaks audit red-lines`** — L2 catalog audit (P0/P1/P2-a/P2-b
3386
- enforcers) for skills/SKILL.md, references/*.md, and the agent shield.
4199
+ enforcers) for skills/SKILL.md, references/\*.md, and the agent shield.
3387
4200
 
3388
4201
  - **`peaks agent run`** — ECC 64 agents soft-optional integration
3389
4202
  (spec §7.2). When the L3 stack is installed, peaks delegates to it;
@@ -3418,6 +4231,7 @@ subprocess ignores it when peaks-loop's env vars are present).
3418
4231
  expands globs on disk before spawning.
3419
4232
 
3420
4233
  - **(2026-06-12) Three bugs surfaced by real-world ice-cola dogfood:**
4234
+
3421
4235
  - memory-extract was called without `--apply` → always dry-ran, never
3422
4236
  actually wrote.
3423
4237
  - `.claude/skills/**/SKILL.md` (the standard Claude-Code consumer
@@ -3541,7 +4355,7 @@ call-to-action text differ.
3541
4355
  Chinese tagline: `peaks-loop: 跨 AI IDE 的工程门禁与编排`).
3542
4356
  - `README-en.md` synced to mirror the new layout (typing animation
3543
4357
  uses the English tagline: `peaks-loop: cross-AI-IDE engineering
3544
- gates & orchestration`).
4358
+ gates & orchestration`).
3545
4359
  - Card anchors renamed to ASCII-friendly slugs on the English file
3546
4360
  (`30-seconds-to-running`, `5-minute-onboarding`, `11-skills-in-the-family`,
3547
4361
  `killer-feature-un-bypassable-gates`) so the README renders