peaks-loop 3.1.2 → 4.0.0-beta

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 (301) hide show
  1. package/.claude-plugin/marketplace.json +62 -12
  2. package/CHANGELOG.md +50 -36
  3. package/README-en.md +58 -240
  4. package/README.md +49 -325
  5. package/agents/karpathy-reviewer.md +3 -3
  6. package/dist/src/cli/cli-helpers.d.ts +18 -0
  7. package/dist/src/cli/cli-helpers.js +8 -0
  8. package/dist/src/cli/commands/adapter-commands.d.ts +30 -0
  9. package/dist/src/cli/commands/adapter-commands.js +35 -0
  10. package/dist/src/cli/commands/context-commands.d.ts +1 -1
  11. package/dist/src/cli/commands/context-commands.js +1 -1
  12. package/dist/src/cli/commands/contract-commands.d.ts +1 -1
  13. package/dist/src/cli/commands/contract-commands.js +1 -1
  14. package/dist/src/cli/commands/core/session-command.js +12 -0
  15. package/dist/src/cli/commands/core/skill-command.js +4 -4
  16. package/dist/src/cli/commands/dispatch-commands.js +2 -2
  17. package/dist/src/cli/commands/job-commands.js +5 -5
  18. package/dist/src/cli/commands/observability-commands.js +1 -1
  19. package/dist/src/cli/commands/perf-audit-commands.js +2 -2
  20. package/dist/src/cli/commands/security-audit-commands.js +2 -2
  21. package/dist/src/cli/commands/sediment-commands.d.ts +80 -0
  22. package/dist/src/cli/commands/sediment-commands.js +640 -0
  23. package/dist/src/cli/commands/session-migrate-skill-name.d.ts +17 -0
  24. package/dist/src/cli/commands/session-migrate-skill-name.js +41 -0
  25. package/dist/src/cli/commands/skill-visibility.d.ts +8 -0
  26. package/dist/src/cli/commands/skill-visibility.js +63 -0
  27. package/dist/src/cli/commands/slice-commands.js +2 -2
  28. package/dist/src/cli/commands/solo-commands.d.ts +2 -2
  29. package/dist/src/cli/commands/solo-commands.js +8 -8
  30. package/dist/src/cli/commands/sub-agent-commands.d.ts +1 -1
  31. package/dist/src/cli/commands/sub-agent-commands.js +1 -1
  32. package/dist/src/cli/commands/understand-commands.js +1 -1
  33. package/dist/src/cli/commands/upgrade-commands.d.ts +1 -1
  34. package/dist/src/cli/commands/upgrade-commands.js +3 -3
  35. package/dist/src/cli/commands/user-touchpoint-commands.js +1 -1
  36. package/dist/src/cli/commands/verdict-aggregate-command.d.ts +1 -1
  37. package/dist/src/cli/commands/verdict-aggregate-command.js +2 -2
  38. package/dist/src/cli/commands/workflow-commands.js +2 -2
  39. package/dist/src/cli/commands/workspace/init-command.d.ts +3 -3
  40. package/dist/src/cli/commands/workspace/init-command.js +7 -7
  41. package/dist/src/cli/program.js +19 -2
  42. package/dist/src/services/adapter/adapter.d.ts +27 -0
  43. package/dist/src/services/adapter/adapter.js +5 -0
  44. package/dist/src/services/adapter/auto-adapter.d.ts +11 -0
  45. package/dist/src/services/adapter/auto-adapter.js +15 -0
  46. package/dist/src/services/adapter/claude-adapter.d.ts +14 -0
  47. package/dist/src/services/adapter/claude-adapter.js +40 -0
  48. package/dist/src/services/adapter/codex-adapter.d.ts +14 -0
  49. package/dist/src/services/adapter/codex-adapter.js +14 -0
  50. package/dist/src/services/adapter/copilot-adapter.d.ts +14 -0
  51. package/dist/src/services/adapter/copilot-adapter.js +14 -0
  52. package/dist/src/services/audit/enforcers/solo-code-ban.d.ts +1 -1
  53. package/dist/src/services/audit/enforcers/solo-code-ban.js +2 -2
  54. package/dist/src/services/audit/red-line-catalog.js +1 -1
  55. package/dist/src/services/audit/scanners/skills-tree-scanner.js +22 -0
  56. package/dist/src/services/context/auto-compact-dispatcher.d.ts +1 -1
  57. package/dist/src/services/dispatch/batch-counter.js +1 -1
  58. package/dist/src/services/dispatch/leak-detector.js +1 -1
  59. package/dist/src/services/doctor/doctor-service.js +2 -2
  60. package/dist/src/services/job/job-resource-snapshot.js +29 -1
  61. package/dist/src/services/memory/project-memory-service.js +1 -1
  62. package/dist/src/services/migrate-skill-name/migrate.d.ts +17 -0
  63. package/dist/src/services/migrate-skill-name/migrate.js +152 -0
  64. package/dist/src/services/migrate-skill-name/schema.d.ts +42 -0
  65. package/dist/src/services/migrate-skill-name/schema.js +25 -0
  66. package/dist/src/services/observability/aggregation.d.ts +1 -1
  67. package/dist/src/services/observability/aggregation.js +1 -1
  68. package/dist/src/services/perf/perf-baseline-service.d.ts +1 -1
  69. package/dist/src/services/perf/perf-baseline-service.js +1 -1
  70. package/dist/src/services/prd/handoff-types.d.ts +1 -1
  71. package/dist/src/services/prd/handoff-types.js +1 -1
  72. package/dist/src/services/progress/progress-service.d.ts +1 -1
  73. package/dist/src/services/progress/progress-service.js +1 -1
  74. package/dist/src/services/rd/standards-diagnostic.js +1 -1
  75. package/dist/src/services/recommendations/capability-seed-mappings.js +1 -1
  76. package/dist/src/services/sc/sc-service.js +1 -1
  77. package/dist/src/services/sediment/dispose-confirm.d.ts +9 -0
  78. package/dist/src/services/sediment/dispose-confirm.js +5 -0
  79. package/dist/src/services/sediment/json-schema.d.ts +247 -0
  80. package/dist/src/services/sediment/json-schema.js +26 -0
  81. package/dist/src/services/sediment/manifest-lint.d.ts +13 -0
  82. package/dist/src/services/sediment/manifest-lint.js +11 -0
  83. package/dist/src/services/sediment/pool-paths.d.ts +22 -0
  84. package/dist/src/services/sediment/pool-paths.js +25 -0
  85. package/dist/src/services/sediment/pool-read.d.ts +20 -0
  86. package/dist/src/services/sediment/pool-read.js +73 -0
  87. package/dist/src/services/sediment/pool-rebuild-index.d.ts +15 -0
  88. package/dist/src/services/sediment/pool-rebuild-index.js +28 -0
  89. package/dist/src/services/sediment/pool-write.d.ts +14 -0
  90. package/dist/src/services/sediment/pool-write.js +25 -0
  91. package/dist/src/services/sediment/promotion-gate.d.ts +12 -0
  92. package/dist/src/services/sediment/promotion-gate.js +20 -0
  93. package/dist/src/services/sediment/types.d.ts +52 -0
  94. package/dist/src/services/sediment/types.js +1 -0
  95. package/dist/src/services/session/binding-store.d.ts +1 -1
  96. package/dist/src/services/session/binding-store.js +1 -1
  97. package/dist/src/services/session/caller-id-types.d.ts +1 -1
  98. package/dist/src/services/session/session-manager.d.ts +1 -1
  99. package/dist/src/services/session/session-manager.js +1 -1
  100. package/dist/src/services/skill/resume-detector.js +1 -1
  101. package/dist/src/services/skill/skill-scheduler.d.ts +1 -1
  102. package/dist/src/services/skill/skill-scheduler.js +1 -1
  103. package/dist/src/services/skillhub/release-diff.d.ts +18 -0
  104. package/dist/src/services/skillhub/release-diff.js +38 -0
  105. package/dist/src/services/skillhub/release-export.d.ts +8 -0
  106. package/dist/src/services/skillhub/release-export.js +31 -0
  107. package/dist/src/services/skillhub/release-gc-blobs.d.ts +13 -0
  108. package/dist/src/services/skillhub/release-gc-blobs.js +32 -0
  109. package/dist/src/services/skillhub/release-import.d.ts +7 -0
  110. package/dist/src/services/skillhub/release-import.js +59 -0
  111. package/dist/src/services/skillhub/release-retain.d.ts +23 -0
  112. package/dist/src/services/skillhub/release-retain.js +89 -0
  113. package/dist/src/services/skillhub/sqlite-store.d.ts +22 -0
  114. package/dist/src/services/skillhub/sqlite-store.js +47 -0
  115. package/dist/src/services/skillhub/tar-runtime.d.ts +21 -0
  116. package/dist/src/services/skillhub/tar-runtime.js +91 -0
  117. package/dist/src/services/skillhub/types.d.ts +105 -0
  118. package/dist/src/services/skillhub/types.js +1 -0
  119. package/dist/src/services/skills/skill-conformance-service.js +8 -5
  120. package/dist/src/services/skills/skill-presence-service.d.ts +4 -4
  121. package/dist/src/services/skills/skill-presence-service.js +2 -2
  122. package/dist/src/services/skills/skill-registry.js +27 -0
  123. package/dist/src/services/skills/skill-runbook-service.js +2 -2
  124. package/dist/src/services/slice/slice-check-service.js +1 -1
  125. package/dist/src/services/slice/slice-check-types.d.ts +1 -1
  126. package/dist/src/services/slice/slice-check-types.js +1 -1
  127. package/dist/src/services/slice/slice-decompose-types.d.ts +1 -1
  128. package/dist/src/services/slice/slice-decompose-types.js +1 -1
  129. package/dist/src/services/solo/auto-compact-orchestrator.d.ts +1 -1
  130. package/dist/src/services/solo/auto-compact-orchestrator.js +2 -2
  131. package/dist/src/services/solo/dag-orchestrator.d.ts +3 -3
  132. package/dist/src/services/solo/dag-orchestrator.js +4 -4
  133. package/dist/src/services/solo/mode-gate.d.ts +2 -2
  134. package/dist/src/services/solo/post-compact-detector.js +2 -2
  135. package/dist/src/services/solo/status-line-renderer.d.ts +4 -4
  136. package/dist/src/services/standards/missing-standards-detector.d.ts +1 -1
  137. package/dist/src/services/standards/missing-standards-detector.js +1 -1
  138. package/dist/src/services/standards/project-standards-service.d.ts +1 -1
  139. package/dist/src/services/standards/project-standards-service.js +4 -4
  140. package/dist/src/services/understand/understand-types.d.ts +1 -1
  141. package/dist/src/services/upgrade/1x-detector-service.js +1 -1
  142. package/dist/src/services/upgrade/upgrade-service.d.ts +34 -0
  143. package/dist/src/services/upgrade/upgrade-service.js +52 -30
  144. package/dist/src/services/verdict/verdict-aggregator.d.ts +1 -1
  145. package/dist/src/services/workflow/workflow-router-service.d.ts +1 -1
  146. package/dist/src/services/workflow/workflow-router-service.js +3 -3
  147. package/dist/src/services/workspace/claude-settings-template.d.ts +1 -1
  148. package/dist/src/services/workspace/claude-settings-template.js +2 -2
  149. package/dist/src/services/workspace/workspace-claude-settings-materializer.d.ts +1 -1
  150. package/dist/src/services/workspace/workspace-claude-settings-materializer.js +1 -1
  151. package/dist/src/services/workspace/workspace-service.d.ts +4 -4
  152. package/dist/src/services/workspace/workspace-service.js +2 -2
  153. package/dist/src/shared/paths.d.ts +1 -1
  154. package/dist/src/shared/paths.js +1 -1
  155. package/dist/src/shared/version.d.ts +1 -1
  156. package/dist/src/shared/version.js +1 -1
  157. package/dist/src/skills/peaks-maker/index.d.ts +5 -0
  158. package/dist/src/skills/peaks-maker/index.js +32 -0
  159. package/package.json +8 -3
  160. package/scripts/install-skills.mjs +29 -4
  161. package/skills/{peaks-prd → bee/peaks-prd}/SKILL.md +8 -2
  162. package/skills/{peaks-prd → bee/peaks-prd}/references/workflow.md +1 -1
  163. package/skills/{peaks-qa → bee/peaks-qa}/SKILL.md +10 -4
  164. package/skills/{peaks-qa → bee/peaks-qa}/references/browser-validation-contracts.md +2 -2
  165. package/skills/{peaks-qa → bee/peaks-qa}/references/external-capability-guidance.md +1 -1
  166. package/skills/{peaks-qa → bee/peaks-qa}/references/qa-fanout-contract.md +3 -3
  167. package/skills/{peaks-qa → bee/peaks-qa}/references/qa-sub-agent-dispatch.md +1 -1
  168. package/skills/{peaks-rd → bee/peaks-rd}/SKILL.md +13 -6
  169. package/skills/{peaks-rd → bee/peaks-rd}/references/browser-self-test-contracts.md +1 -1
  170. package/skills/{peaks-rd → bee/peaks-rd}/references/mock-data-placement.md +1 -1
  171. package/skills/{peaks-rd → bee/peaks-rd}/references/parallel-review-fanout.md +1 -1
  172. package/skills/{peaks-rd → bee/peaks-rd}/references/rd-runbook.md +1 -1
  173. package/skills/{peaks-rd → bee/peaks-rd}/references/rd-sub-agent-dispatch.md +2 -2
  174. package/skills/{peaks-rd → bee/peaks-rd}/references/rd-transition-gates.md +1 -1
  175. package/skills/{peaks-rd → bee/peaks-rd}/references/skill-presence-and-title.md +1 -1
  176. package/skills/{peaks-reviewer → bee/peaks-reviewer}/SKILL.md +2 -2
  177. package/skills/{peaks-sc → bee/peaks-sc}/SKILL.md +7 -1
  178. package/skills/{peaks-txt → bee/peaks-txt}/SKILL.md +9 -3
  179. package/skills/{peaks-ui → bee/peaks-ui}/SKILL.md +11 -5
  180. package/skills/peaks-audit/SKILL.md +1 -1
  181. package/skills/{peaks-solo → peaks-code}/SKILL.md +9 -9
  182. package/skills/{peaks-solo → peaks-code}/references/a2a-artifact-mapping.md +2 -2
  183. package/skills/{peaks-solo → peaks-code}/references/anchoring-and-session-info.md +4 -4
  184. package/skills/{peaks-solo → peaks-code}/references/artifact-contracts.md +2 -2
  185. package/skills/{peaks-solo → peaks-code}/references/browser-workflow.md +1 -1
  186. package/skills/peaks-code/references/command-migration.md +3 -0
  187. package/skills/{peaks-solo → peaks-code}/references/completion-handoff.md +2 -2
  188. package/skills/{peaks-solo → peaks-code}/references/context-governance.md +2 -2
  189. package/skills/{peaks-solo → peaks-code}/references/frontend-only-mode.md +1 -1
  190. package/skills/{peaks-solo → peaks-code}/references/local-artifact-workspace.md +1 -1
  191. package/skills/{peaks-solo → peaks-code}/references/micro-cycle.md +9 -9
  192. package/skills/{peaks-solo → peaks-code}/references/mode-selection-with-stale-presence.md +12 -12
  193. package/skills/{peaks-solo → peaks-code}/references/mode-selection.md +1 -1
  194. package/skills/{peaks-solo → peaks-code}/references/openspec-workflow.md +1 -1
  195. package/skills/{peaks-solo → peaks-code}/references/project-scan-checklist.md +1 -1
  196. package/skills/{peaks-solo → peaks-code}/references/refactor-mode.md +1 -1
  197. package/skills/{peaks-solo → peaks-code}/references/resume-detection.md +1 -1
  198. package/skills/{peaks-solo → peaks-code}/references/runbook.md +5 -5
  199. package/skills/{peaks-solo → peaks-code}/references/skill-presence-and-title.md +3 -3
  200. package/skills/{peaks-solo → peaks-code}/references/standards-preflight.md +1 -1
  201. package/skills/{peaks-solo → peaks-code}/references/step-0-55-1x-detection.md +5 -5
  202. package/skills/{peaks-solo → peaks-code}/references/sub-agent-dispatch.md +10 -10
  203. package/skills/{peaks-solo → peaks-code}/references/swarm-dispatch-contract.md +7 -7
  204. package/skills/{peaks-solo → peaks-code}/references/workflow-gates-and-types.md +3 -3
  205. package/skills/peaks-doctor/SKILL.md +1 -1
  206. package/skills/peaks-doctor/references/doctor-check-catalog.md +1 -1
  207. package/skills/peaks-final-review/SKILL.md +3 -3
  208. package/skills/peaks-final-review/references/4-dimensions.md +1 -1
  209. package/skills/peaks-ide/SKILL.md +1 -1
  210. package/skills/{peaks-solo-resume → peaks-resume}/SKILL.md +14 -14
  211. package/skills/peaks-sop/SKILL.md +1 -1
  212. package/skills/{peaks-solo-status → peaks-status}/SKILL.md +13 -13
  213. package/skills/{peaks-solo-test → peaks-test}/SKILL.md +11 -11
  214. package/skills/peaks-solo/references/command-migration.md +0 -3
  215. /package/skills/{peaks-perf-audit → bee/peaks-perf-audit}/SKILL.md +0 -0
  216. /package/skills/{peaks-perf-audit → bee/peaks-perf-audit}/references/audit-protocol.md +0 -0
  217. /package/skills/{peaks-prd → bee/peaks-prd}/references/artifact-contracts.md +0 -0
  218. /package/skills/{peaks-prd → bee/peaks-prd}/references/artifact-per-request.md +0 -0
  219. /package/skills/{peaks-prd → bee/peaks-prd}/references/command-migration.md +0 -0
  220. /package/skills/{peaks-prd → bee/peaks-prd}/references/prd-for-multi-pass.md +0 -0
  221. /package/skills/{peaks-qa → bee/peaks-qa}/references/artifact-contracts.md +0 -0
  222. /package/skills/{peaks-qa → bee/peaks-qa}/references/artifact-per-request.md +0 -0
  223. /package/skills/{peaks-qa → bee/peaks-qa}/references/codegraph-regression-focus.md +0 -0
  224. /package/skills/{peaks-qa → bee/peaks-qa}/references/command-migration.md +0 -0
  225. /package/skills/{peaks-qa → bee/peaks-qa}/references/openspec-validation-gate.md +0 -0
  226. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-compact-handoff.md +0 -0
  227. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-context-governance.md +0 -0
  228. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-gstack-integration.md +0 -0
  229. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-local-artifacts.md +0 -0
  230. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-matt-pocock-integration.md +0 -0
  231. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-perf-test-plan.md +0 -0
  232. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-refactor-role.md +0 -0
  233. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-runbook.md +0 -0
  234. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-security-test-plan.md +0 -0
  235. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-skill-presence.md +0 -0
  236. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-standards-preflight.md +0 -0
  237. /package/skills/{peaks-qa → bee/peaks-qa}/references/qa-transition-gates.md +0 -0
  238. /package/skills/{peaks-qa → bee/peaks-qa}/references/reading-handoff-frontmatter.md +0 -0
  239. /package/skills/{peaks-qa → bee/peaks-qa}/references/regression-gates.md +0 -0
  240. /package/skills/{peaks-qa → bee/peaks-qa}/references/requirement-boundary-recheck.md +0 -0
  241. /package/skills/{peaks-qa → bee/peaks-qa}/references/test-case-generation.md +0 -0
  242. /package/skills/{peaks-qa → bee/peaks-qa}/references/test-report-output.md +0 -0
  243. /package/skills/{peaks-rd → bee/peaks-rd}/references/artifact-and-standards-output.md +0 -0
  244. /package/skills/{peaks-rd → bee/peaks-rd}/references/artifact-contracts.md +0 -0
  245. /package/skills/{peaks-rd → bee/peaks-rd}/references/artifact-per-request.md +0 -0
  246. /package/skills/{peaks-rd → bee/peaks-rd}/references/browser-action-wrapper.md +0 -0
  247. /package/skills/{peaks-rd → bee/peaks-rd}/references/code-reviewer-4dim-hint.md +0 -0
  248. /package/skills/{peaks-rd → bee/peaks-rd}/references/codegraph-project-analysis.md +0 -0
  249. /package/skills/{peaks-rd → bee/peaks-rd}/references/command-migration.md +0 -0
  250. /package/skills/{peaks-rd → bee/peaks-rd}/references/compact-handoff.md +0 -0
  251. /package/skills/{peaks-rd → bee/peaks-rd}/references/external-references.md +0 -0
  252. /package/skills/{peaks-rd → bee/peaks-rd}/references/frontend-project-generation.md +0 -0
  253. /package/skills/{peaks-rd → bee/peaks-rd}/references/karpathy-reviewer-prompt.md +0 -0
  254. /package/skills/{peaks-rd → bee/peaks-rd}/references/library-version-awareness.md +0 -0
  255. /package/skills/{peaks-rd → bee/peaks-rd}/references/mandatory-perf-baseline.md +0 -0
  256. /package/skills/{peaks-rd → bee/peaks-rd}/references/matt-pocock-integration.md +0 -0
  257. /package/skills/{peaks-rd → bee/peaks-rd}/references/ocr-integration.md +0 -0
  258. /package/skills/{peaks-rd → bee/peaks-rd}/references/openspec-cli.md +0 -0
  259. /package/skills/{peaks-rd → bee/peaks-rd}/references/rd-context-governance.md +0 -0
  260. /package/skills/{peaks-rd → bee/peaks-rd}/references/rd-fanout-contracts.md +0 -0
  261. /package/skills/{peaks-rd → bee/peaks-rd}/references/rd-gstack-integration.md +0 -0
  262. /package/skills/{peaks-rd → bee/peaks-rd}/references/rd-standards-preflight.md +0 -0
  263. /package/skills/{peaks-rd → bee/peaks-rd}/references/reading-v2-slice-results.md +0 -0
  264. /package/skills/{peaks-rd → bee/peaks-rd}/references/refactor-workflow.md +0 -0
  265. /package/skills/{peaks-rd → bee/peaks-rd}/references/v2-12-fanout-collapse.md +0 -0
  266. /package/skills/{peaks-rd → bee/peaks-rd}/references/writing-handoff-frontmatter.md +0 -0
  267. /package/skills/{peaks-reviewer → bee/peaks-reviewer}/references/reviewer-prompt.md +0 -0
  268. /package/skills/{peaks-reviewer → bee/peaks-reviewer}/references/reviewer-schema.md +0 -0
  269. /package/skills/{peaks-sc → bee/peaks-sc}/references/artifact-contracts.md +0 -0
  270. /package/skills/{peaks-sc → bee/peaks-sc}/references/artifact-retention.md +0 -0
  271. /package/skills/{peaks-sc → bee/peaks-sc}/references/command-migration.md +0 -0
  272. /package/skills/{peaks-sc → bee/peaks-sc}/references/openspec-commit-boundaries.md +0 -0
  273. /package/skills/{peaks-security-audit → bee/peaks-security-audit}/SKILL.md +0 -0
  274. /package/skills/{peaks-security-audit → bee/peaks-security-audit}/references/audit-protocol.md +0 -0
  275. /package/skills/{peaks-txt → bee/peaks-txt}/references/artifact-contracts.md +0 -0
  276. /package/skills/{peaks-txt → bee/peaks-txt}/references/command-migration.md +0 -0
  277. /package/skills/{peaks-txt → bee/peaks-txt}/references/context-capsule.md +0 -0
  278. /package/skills/{peaks-ui → bee/peaks-ui}/references/artifact-contracts.md +0 -0
  279. /package/skills/{peaks-ui → bee/peaks-ui}/references/artifact-per-request.md +0 -0
  280. /package/skills/{peaks-ui → bee/peaks-ui}/references/command-migration.md +0 -0
  281. /package/skills/{peaks-ui → bee/peaks-ui}/references/workflow.md +0 -0
  282. /package/skills/{peaks-solo → peaks-code}/references/boundaries.md +0 -0
  283. /package/skills/{peaks-solo → peaks-code}/references/checkpoint-resume.md +0 -0
  284. /package/skills/{peaks-solo → peaks-code}/references/codegraph-orchestration.md +0 -0
  285. /package/skills/{peaks-solo → peaks-code}/references/cross-date-session-check.md +0 -0
  286. /package/skills/{peaks-solo → peaks-code}/references/dag-orchestrator.md +0 -0
  287. /package/skills/{peaks-solo → peaks-code}/references/envelope-contract.md +0 -0
  288. /package/skills/{peaks-solo → peaks-code}/references/existing-system-extraction.md +0 -0
  289. /package/skills/{peaks-solo → peaks-code}/references/external-references.md +0 -0
  290. /package/skills/{peaks-solo → peaks-code}/references/external-skill-invocation.md +0 -0
  291. /package/skills/{peaks-solo → peaks-code}/references/fanout-mandatory.md +0 -0
  292. /package/skills/{peaks-solo → peaks-code}/references/fast-mode.md +0 -0
  293. /package/skills/{peaks-solo → peaks-code}/references/gstack-integration.md +0 -0
  294. /package/skills/{peaks-solo → peaks-code}/references/headroom-integration.md +0 -0
  295. /package/skills/{peaks-solo → peaks-code}/references/job-loop.md +0 -0
  296. /package/skills/{peaks-solo → peaks-code}/references/periodic-checkpoint.md +0 -0
  297. /package/skills/{peaks-solo → peaks-code}/references/playwright-mcp-multi-terminal.md +0 -0
  298. /package/skills/{peaks-solo → peaks-code}/references/project-memory-loading.md +0 -0
  299. /package/skills/{peaks-solo → peaks-code}/references/quality-gate-cheatsheet.md +0 -0
  300. /package/skills/{peaks-solo → peaks-code}/references/step-0-8-gate.md +0 -0
  301. /package/skills/{peaks-solo → peaks-code}/references/workflow.md +0 -0
@@ -0,0 +1,14 @@
1
+ import { ADAPTER_NOT_IMPLEMENTED } from "./adapter.js";
2
+ export class CopilotAdapter {
3
+ _o;
4
+ name = "copilot";
5
+ constructor(_o) {
6
+ this._o = _o;
7
+ }
8
+ async detect() { return false; }
9
+ async resolveScratchDir() { throw new ADAPTER_NOT_IMPLEMENTED("copilot", "resolveScratchDir"); }
10
+ async materialize() { throw new ADAPTER_NOT_IMPLEMENTED("copilot", "materialize"); }
11
+ async publish() { throw new ADAPTER_NOT_IMPLEMENTED("copilot", "publish"); }
12
+ async activate() { throw new ADAPTER_NOT_IMPLEMENTED("copilot", "activate"); }
13
+ async cleanup() { throw new ADAPTER_NOT_IMPLEMENTED("copilot", "cleanup"); }
14
+ }
@@ -2,7 +2,7 @@
2
2
  * Solo-code-ban enforcer — PreToolUse Bash guard.
3
3
  *
4
4
  * Per L2 redesign §5.4. Deny `git commit` or `git apply` invocations from
5
- * a peaks-* skill. The Solo Code-Change Red Line says peaks-solo / peaks-rd
5
+ * a peaks-* skill. The Solo Code-Change Red Line says peaks-code / peaks-rd
6
6
  * are orchestrators, not implementers; the actual `git commit` step must
7
7
  * go through `peaks request transition`, which itself enforces spec-locked
8
8
  * + tech-doc-presence.
@@ -2,7 +2,7 @@
2
2
  * Solo-code-ban enforcer — PreToolUse Bash guard.
3
3
  *
4
4
  * Per L2 redesign §5.4. Deny `git commit` or `git apply` invocations from
5
- * a peaks-* skill. The Solo Code-Change Red Line says peaks-solo / peaks-rd
5
+ * a peaks-* skill. The Solo Code-Change Red Line says peaks-code / peaks-rd
6
6
  * are orchestrators, not implementers; the actual `git commit` step must
7
7
  * go through `peaks request transition`, which itself enforces spec-locked
8
8
  * + tech-doc-presence.
@@ -12,7 +12,7 @@
12
12
  * never bricked by a peaks bug.
13
13
  */
14
14
  const COMMIT_APPLY_PATTERN = /^\s*git\s+(commit|apply)\b/;
15
- const DENY_REASON = 'Solo Code-Change Red Line: peaks-* skills must go through peaks-solo / peaks-rd. ' +
15
+ const DENY_REASON = 'Solo Code-Change Red Line: peaks-* skills must go through peaks-code / peaks-rd. ' +
16
16
  'Use `peaks request transition` instead of `git commit` / `git apply` directly.';
17
17
  export function isSoloCodeCommit(skill, command) {
18
18
  if (!skill.startsWith('peaks-'))
@@ -13,7 +13,7 @@ export const RED_LINE_CATALOG = [
13
13
  rule: 'Solo Code-Change Red Line',
14
14
  markers: ['BLOCKING', 'MANDATORY'],
15
15
  phrases: [
16
- 'peaks-solo',
16
+ 'peaks-code',
17
17
  'orchestrator, NOT an implementer',
18
18
  'solo',
19
19
  ],
@@ -39,6 +39,28 @@ export function scanSkillsTree(input) {
39
39
  for (const entry of entries) {
40
40
  if (!entry.isDirectory() || entry.name.startsWith('.'))
41
41
  continue;
42
+ // LLM-internal skills live under `skills/bee/<name>/` per spec 2026-07-05.
43
+ // Recurse one level into `bee/` to cover all 9 demoted role/audit skills.
44
+ if (entry.name === 'bee') {
45
+ let subEntries;
46
+ try {
47
+ subEntries = readdirSync(join(skillsRoot, 'bee'), { withFileTypes: true });
48
+ }
49
+ catch (error) {
50
+ warnings.push({
51
+ file: 'skills/bee',
52
+ message: `readdir failed: ${error instanceof Error ? error.message : String(error)}`,
53
+ });
54
+ continue;
55
+ }
56
+ for (const subEntry of subEntries) {
57
+ if (!subEntry.isDirectory() || subEntry.name.startsWith('.'))
58
+ continue;
59
+ const skillMd = readSkillFile(input.projectRoot, join('bee', subEntry.name), 'SKILL.md');
60
+ lines.push(...skillMd);
61
+ }
62
+ continue;
63
+ }
42
64
  const skillMd = readSkillFile(input.projectRoot, entry.name, 'SKILL.md');
43
65
  lines.push(...skillMd);
44
66
  }
@@ -9,7 +9,7 @@ export interface DispatchIdeCompactInput {
9
9
  /**
10
10
  * Slice 2026-06-28-solo-mode-bypass-fix (defect #4): which session
11
11
  * the compact should target. Default `'main'` — the orchestrator
12
- * (peaks-solo body) runs in the main-session Claude Code window and
12
+ * (peaks-code body) runs in the main-session Claude Code window and
13
13
  * wants to compress *its* context, not a sub-agent's. Sub-agent
14
14
  * shells that spawn their own `peaks solo auto-compact` flow pass
15
15
  * `'sub-agent'` to preserve the legacy shell-spawn behaviour.
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Empirical upper bound for one Dispatcher × one batch: 6 sub-agents.
5
5
  * Above 6, the LLM / human is encouraged to split into multiple
6
- * batches with an explicit reducer step in between. peaks-solo's
6
+ * batches with an explicit reducer step in between. peaks-code's
7
7
  * swarm phase dispatches 3; peaks-rd's 4-way fan-out dispatches 4;
8
8
  * peaks-qa's 3-way fan-out dispatches 3. The 6 limit leaves headroom
9
9
  * for "qa-business-api" / "qa-business-frontend" / "qa-business-regression"
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Slice #009 / G5 RL-7 — dispatch record leak detector.
3
3
  *
4
- * After peaks-solo's reducer consumes a batch, any dispatch record that
4
+ * After peaks-code's reducer consumes a batch, any dispatch record that
5
5
  * is still `disposed === false` AND was created more than `thresholdMs`
6
6
  * ago is a **leak**. This helper scans the on-disk records under
7
7
  * `.peaks/_sub_agents/<sid>/` and returns the leaked ones. The CLI or
@@ -538,7 +538,7 @@ export async function runDoctor(options = {}) {
538
538
  }
539
539
  }
540
540
  }
541
- // Workspace guard: an active workflow presence (peaks-solo) with no workspace
541
+ // Workspace guard: an active workflow presence (peaks-code) with no workspace
542
542
  // session means the skill was anchored but `peaks workspace init` never ran —
543
543
  // the #1 reported failure where .peaks/ artifacts are never created. This
544
544
  // turns the SKILL.md "MUST create the workspace" prose into an executable check.
@@ -554,7 +554,7 @@ export async function runDoctor(options = {}) {
554
554
  checks.push({
555
555
  id: 'skill-presence:workspace',
556
556
  ok: false,
557
- message: `Skill ${presence.skill} is active but no workspace session exists (.peaks/_runtime/session.json missing); run \`peaks workspace init --project <repo>\` — peaks-solo Step 0 must anchor the workspace before any work`
557
+ message: `Skill ${presence.skill} is active but no workspace session exists (.peaks/_runtime/session.json missing); run \`peaks workspace init --project <repo>\` — peaks-code Step 0 must anchor the workspace before any work`
558
558
  });
559
559
  }
560
560
  else {
@@ -26,10 +26,37 @@ export function collectResourceSnapshot(jobDir) {
26
26
  contextRatio,
27
27
  };
28
28
  }
29
- function dirSizeMb(dir) {
29
+ // Non-enumerable internal attachment for test-time access via
30
+ // `collectResourceSnapshot.dirSizeMb`. NOT a public export — keeps
31
+ // the prod module surface clean per PRD while still allowing
32
+ // targeted AC-1/AC-2/AC-3 unit tests to drive `dirSizeMb` directly.
33
+ Object.defineProperty(collectResourceSnapshot, 'dirSizeMb', {
34
+ value: dirSizeMb,
35
+ enumerable: false,
36
+ writable: false,
37
+ configurable: false,
38
+ });
39
+ /**
40
+ * Best-effort, non-recursive size of one directory level, in rounded megabytes.
41
+ *
42
+ * - Missing directory → 0.
43
+ * - Per-entry stat failures (race with deletion, EBUSY on Windows) → silently skipped.
44
+ * - When `opts.maxEntries` > 0 and the directory has more entries than the cap,
45
+ * the returned value is a partial sum (a lower bound), and no further `stat`
46
+ * calls are issued past the cap. Callers must treat the value as a lower bound.
47
+ * - `opts.maxEntries` defaults to 0 (unbounded, legacy behaviour).
48
+ *
49
+ * NOTE: when maxEntries > 0 and the directory contains more entries than the
50
+ * cap, this is a partial sum. Callers must treat the value as a lower bound.
51
+ */
52
+ function dirSizeMb(dir, opts) {
53
+ const cap = opts?.maxEntries ?? 0;
30
54
  let total = 0;
55
+ let index = 0;
31
56
  try {
32
57
  for (const name of readdirSync(dir)) {
58
+ if (cap > 0 && index >= cap)
59
+ break;
33
60
  try {
34
61
  total += statSync(join(dir, name)).size;
35
62
  }
@@ -37,6 +64,7 @@ function dirSizeMb(dir) {
37
64
  // best-effort: missing entries (race with deletion) are silently skipped
38
65
  void e;
39
66
  }
67
+ index++;
40
68
  }
41
69
  }
42
70
  catch (e) {
@@ -600,7 +600,7 @@ export function executeProjectMemoryExtract(options) {
600
600
  const safeMemoryDir = assertSafeProjectMemoryDir(plan.projectRoot);
601
601
  // Idempotency: skip writes for memories whose slug already lives in
602
602
  // .peaks/memory/. Re-running `peaks memory extract --apply` on the
603
- // same handoff is a normal peaks-solo / peaks-txt retry pattern (the
603
+ // same handoff is a normal peaks-code / peaks-txt retry pattern (the
604
604
  // skill prompt may invoke extract more than once when a handoff is
605
605
  // edited and re-extracted). Without this, writeNewFile's O_EXCL
606
606
  // throws EEXIST and aborts the whole batch. Symmetric with
@@ -0,0 +1,17 @@
1
+ import type { MigrateResult } from './schema.js';
2
+ export interface MigrateOpts {
3
+ projectRoot: string;
4
+ from: string;
5
+ to: string;
6
+ /** false = dry-run (default); true = write through. */
7
+ apply: boolean;
8
+ }
9
+ /** True iff `absPath` falls under any skip-path (substring match). */
10
+ export declare function shouldSkip(projectRoot: string, absPath: string): boolean;
11
+ /**
12
+ * Recursively walk a directory and return every `.json` / `.md`
13
+ * path. Missing root → empty list (the CLI reports scannedFiles:0,
14
+ * which is the truthful "nothing to look at" signal).
15
+ */
16
+ export declare function walkRuntimeFiles(root: string): string[];
17
+ export declare function migrateSkillName(opts: MigrateOpts): MigrateResult;
@@ -0,0 +1,152 @@
1
+ /**
2
+ * `peaks session migrate-skill-name` core service (slice 2 of the
3
+ * peaks-code → peaks-code rename plan).
4
+ *
5
+ * Walks `.peaks/_runtime/**` and rewrites two patterns:
6
+ * 1. Key-value: `"skill": "<old>"` → `"skill": "<new>"`
7
+ * 2. Slash-trig: `/<old>` → `/<new>`
8
+ *
9
+ * Files under known skip-paths (`.peaks/memory/**`,
10
+ * `.peaks/skills/.system/bees/<old>/manifest.json`) are recorded in
11
+ * `skipped` but never opened. The operation is idempotent: re-running
12
+ * with the same `--from` on a tree already migrated reports 0
13
+ * modifications.
14
+ *
15
+ * Dry-run (`apply: false`) counts what WOULD change without writing;
16
+ * apply (`apply: true`) validates each `.json` payload with
17
+ * `JSON.parse` before writing so a broken mid-edit never lands on
18
+ * disk. Errors are pushed into `result.errors` (never swallowed).
19
+ */
20
+ import { existsSync, readFileSync, readdirSync, statSync, writeFileSync } from 'node:fs';
21
+ import { join, relative } from 'node:path';
22
+ /**
23
+ * Skip-paths are matched against the path relative to `projectRoot`,
24
+ * forward-slashed (Windows-friendly). Each entry is a SUBSTRING —
25
+ * the brief pins two specific exclusions: the memory dir, and the
26
+ * .system bee manifest for the old skill (which the renamer must
27
+ * leave alone until the bee itself is moved in a later slice).
28
+ */
29
+ const SKIP_DIRS = ['.peaks/memory', '.peaks/skills/.system/bees'];
30
+ const TARGET_ROOT = '.peaks/_runtime';
31
+ const KEY_VALUE_PATTERN = (from, to) => new RegExp(`"skill"\\s*:\\s*"${escapeRe(from)}"`, 'g');
32
+ const STRING_PATTERN = (from, to) => new RegExp(`/${escapeRe(from)}`, 'g');
33
+ /**
34
+ * Escape regex metachars so an aggressive `--from` value (e.g.
35
+ * `peaks.code`) doesn't blow up the regex compiler. The two regexes
36
+ * above use `from` inside both body and character-class territory,
37
+ * so escaping is the safe path regardless of input.
38
+ */
39
+ function escapeRe(input) {
40
+ return input.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
41
+ }
42
+ /** True iff `absPath` falls under any skip-path (substring match). */
43
+ export function shouldSkip(projectRoot, absPath) {
44
+ const rel = relative(projectRoot, absPath).replace(/\\/g, '/');
45
+ return SKIP_DIRS.some((skip) => rel.includes(skip));
46
+ }
47
+ /**
48
+ * Recursively walk a directory and return every `.json` / `.md`
49
+ * path. Missing root → empty list (the CLI reports scannedFiles:0,
50
+ * which is the truthful "nothing to look at" signal).
51
+ */
52
+ export function walkRuntimeFiles(root) {
53
+ const out = [];
54
+ if (!existsSync(root))
55
+ return out;
56
+ const visit = (dir) => {
57
+ for (const entry of readdirSync(dir)) {
58
+ const full = join(dir, entry);
59
+ const stat = statSync(full);
60
+ if (stat.isDirectory()) {
61
+ visit(full);
62
+ }
63
+ else if (entry.endsWith('.json') || entry.endsWith('.md')) {
64
+ out.push(full);
65
+ }
66
+ }
67
+ };
68
+ visit(root);
69
+ return out;
70
+ }
71
+ export function migrateSkillName(opts) {
72
+ const runtimeRoot = join(opts.projectRoot, TARGET_ROOT);
73
+ const files = walkRuntimeFiles(runtimeRoot);
74
+ const result = {
75
+ ok: true,
76
+ scannedFiles: files.length,
77
+ modifiedFiles: 0,
78
+ keyValueReplacements: 0,
79
+ stringReplacements: 0,
80
+ skipped: [...SKIP_DIRS],
81
+ errors: [],
82
+ };
83
+ for (const file of files) {
84
+ if (shouldSkip(opts.projectRoot, file))
85
+ continue;
86
+ let original;
87
+ try {
88
+ original = readFileSync(file, 'utf-8');
89
+ }
90
+ catch (e) {
91
+ // Unreadable file: surface the error and keep going (other
92
+ // files may be fine). `ok` flips to false; reporting stops
93
+ // hiding the failure from the operator.
94
+ result.errors.push(`${file}: read failed: ${e.message}`);
95
+ result.ok = false;
96
+ continue;
97
+ }
98
+ // Pin the broken-JSON test: any .json runtime file that fails
99
+ // to parse MUST be surfaced as an error, EVEN when it does not
100
+ // contain the from-name (the operator still needs to know the
101
+ // file is unparseable so they can fix it before re-running).
102
+ // Per Karpathy §4 honesty, silent skip is the worst kind of
103
+ // fake-green.
104
+ if (file.endsWith('.json')) {
105
+ try {
106
+ JSON.parse(original);
107
+ }
108
+ catch (e) {
109
+ result.errors.push(`${file}: invalid JSON: ${e.message}`);
110
+ result.ok = false;
111
+ continue;
112
+ }
113
+ }
114
+ let mutated = original;
115
+ const kvPattern = KEY_VALUE_PATTERN(opts.from, opts.to);
116
+ const kvMatches = mutated.match(kvPattern);
117
+ if (kvMatches) {
118
+ mutated = mutated.replace(kvPattern, `"skill": "${opts.to}"`);
119
+ result.keyValueReplacements += kvMatches.length;
120
+ }
121
+ const strPattern = STRING_PATTERN(opts.from, opts.to);
122
+ const strMatches = mutated.match(strPattern);
123
+ if (strMatches) {
124
+ mutated = mutated.replace(strPattern, `/${opts.to}`);
125
+ result.stringReplacements += strMatches.length;
126
+ }
127
+ if (mutated === original)
128
+ continue;
129
+ if (opts.apply) {
130
+ try {
131
+ if (file.endsWith('.json')) {
132
+ // Validate the post-edit JSON before touching the disk —
133
+ // catches accidents (e.g., stray quotes in the renamed
134
+ // from/to values) without leaving a corrupted runtime file
135
+ // behind.
136
+ JSON.parse(mutated);
137
+ }
138
+ writeFileSync(file, mutated, 'utf-8');
139
+ result.modifiedFiles += 1;
140
+ }
141
+ catch (e) {
142
+ result.errors.push(`${file}: ${e.message}`);
143
+ result.ok = false;
144
+ }
145
+ }
146
+ // Dry-run path intentionally does not bump `modifiedFiles` —
147
+ // pin: `expect(result.modifiedFiles).toBe(0)` in the dry-run
148
+ // test. The would-be count lives implicitly in the *Replacement
149
+ // counters, which both dry-run and apply share.
150
+ }
151
+ return result;
152
+ }
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Result shape for `peaks session migrate-skill-name`.
4
+ *
5
+ * Counters:
6
+ * - `scannedFiles` — every .json / .md under `.peaks/_runtime/**` (excluding
7
+ * skip dirs below).
8
+ * - `modifiedFiles` — files whose contents would change (dry-run reports
9
+ * the predicted count; --apply reports the actually-written count).
10
+ * - `keyValueReplacements` — `"skill": "<old>"` → `"skill": "<new>"`.
11
+ * - `stringReplacements` — `/<old>` → `/<new>` slash-trigger mentions.
12
+ *
13
+ * Errors are surfaced per-file with `errors: [ "<absPath>: <message>", … ]`;
14
+ * the tool never silently skips a broken JSON file (Karpathy §4 honesty:
15
+ * silence on bad data is the worst kind of fake-green).
16
+ */
17
+ export declare const MigrateResultSchema: z.ZodObject<{
18
+ ok: z.ZodBoolean;
19
+ scannedFiles: z.ZodNumber;
20
+ modifiedFiles: z.ZodNumber;
21
+ keyValueReplacements: z.ZodNumber;
22
+ stringReplacements: z.ZodNumber;
23
+ skipped: z.ZodArray<z.ZodString, "many">;
24
+ errors: z.ZodArray<z.ZodString, "many">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ ok: boolean;
27
+ skipped: string[];
28
+ scannedFiles: number;
29
+ modifiedFiles: number;
30
+ keyValueReplacements: number;
31
+ stringReplacements: number;
32
+ errors: string[];
33
+ }, {
34
+ ok: boolean;
35
+ skipped: string[];
36
+ scannedFiles: number;
37
+ modifiedFiles: number;
38
+ keyValueReplacements: number;
39
+ stringReplacements: number;
40
+ errors: string[];
41
+ }>;
42
+ export type MigrateResult = z.infer<typeof MigrateResultSchema>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Result shape for `peaks session migrate-skill-name`.
4
+ *
5
+ * Counters:
6
+ * - `scannedFiles` — every .json / .md under `.peaks/_runtime/**` (excluding
7
+ * skip dirs below).
8
+ * - `modifiedFiles` — files whose contents would change (dry-run reports
9
+ * the predicted count; --apply reports the actually-written count).
10
+ * - `keyValueReplacements` — `"skill": "<old>"` → `"skill": "<new>"`.
11
+ * - `stringReplacements` — `/<old>` → `/<new>` slash-trigger mentions.
12
+ *
13
+ * Errors are surfaced per-file with `errors: [ "<absPath>: <message>", … ]`;
14
+ * the tool never silently skips a broken JSON file (Karpathy §4 honesty:
15
+ * silence on bad data is the worst kind of fake-green).
16
+ */
17
+ export const MigrateResultSchema = z.object({
18
+ ok: z.boolean(),
19
+ scannedFiles: z.number().int().nonnegative(),
20
+ modifiedFiles: z.number().int().nonnegative(),
21
+ keyValueReplacements: z.number().int().nonnegative(),
22
+ stringReplacements: z.number().int().nonnegative(),
23
+ skipped: z.array(z.string()),
24
+ errors: z.array(z.string()),
25
+ });
@@ -51,7 +51,7 @@ export type RepairCycleReport = {
51
51
  cycleCount: number;
52
52
  }>;
53
53
  };
54
- /** RD/QA repair-loop cap (matches the peaks-solo repair-loop contract). */
54
+ /** RD/QA repair-loop cap (matches the peaks-code repair-loop contract). */
55
55
  export declare const REPAIR_CYCLE_CAP = 3;
56
56
  export declare function aggregateStatus(events: readonly ObservabilityEvent[]): StatusAggregate;
57
57
  export declare function aggregateSlices(events: readonly ObservabilityEvent[]): SliceRollup[];
@@ -28,7 +28,7 @@ const TERMINAL_HAPPY_STATES = new Set([
28
28
  'boundary-recorded'
29
29
  ]);
30
30
  const TERMINAL_FAIL_STATES = new Set(['blocked']);
31
- /** RD/QA repair-loop cap (matches the peaks-solo repair-loop contract). */
31
+ /** RD/QA repair-loop cap (matches the peaks-code repair-loop contract). */
32
32
  export const REPAIR_CYCLE_CAP = 3;
33
33
  // v2.12.0 fan-out collapse: see OBSERVABILITY_SUBAGENT_ROLES for the
34
34
  // rationale on why `security-reviewer` was dropped and `peaks-security-audit`
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Performance baseline scaffolding for the RD stage.
3
3
  *
4
- * peaks-solo's RD stage runs before the QA stage. The user-facing pain is
4
+ * peaks-code's RD stage runs before the QA stage. The user-facing pain is
5
5
  * that performance tests (lighthouse / k6 / project-local benches / etc.)
6
6
  * have historically only been run at QA Gate A4 — too late in the loop,
7
7
  * because a slow regression discovered at QA triggers a return-to-rd
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Performance baseline scaffolding for the RD stage.
3
3
  *
4
- * peaks-solo's RD stage runs before the QA stage. The user-facing pain is
4
+ * peaks-code's RD stage runs before the QA stage. The user-facing pain is
5
5
  * that performance tests (lighthouse / k6 / project-local benches / etc.)
6
6
  * have historically only been run at QA Gate A4 — too late in the loop,
7
7
  * because a slow regression discovered at QA triggers a return-to-rd
@@ -4,7 +4,7 @@
4
4
  * The handoff is the **immutable** single source of truth that all
5
5
  * downstream consumers (peaks-rd main loop + 4 audit sub-agents +
6
6
  * peaks-qa) read. It is written by peaks-prd AFTER user confirmation
7
- * (per `skills/peaks-prd/SKILL.md` Step 5.5) and replaces the legacy
7
+ * (per `skills/bee/peaks-prd/SKILL.md` Step 5.5) and replaces the legacy
8
8
  * peaks-rd tech-doc handoff (v2.10.0 and earlier).
9
9
  *
10
10
  * Frontmatter invariant: `handoffHash` MUST equal the lowercase hex
@@ -4,7 +4,7 @@
4
4
  * The handoff is the **immutable** single source of truth that all
5
5
  * downstream consumers (peaks-rd main loop + 4 audit sub-agents +
6
6
  * peaks-qa) read. It is written by peaks-prd AFTER user confirmation
7
- * (per `skills/peaks-prd/SKILL.md` Step 5.5) and replaces the legacy
7
+ * (per `skills/bee/peaks-prd/SKILL.md` Step 5.5) and replaces the legacy
8
8
  * peaks-rd tech-doc handoff (v2.10.0 and earlier).
9
9
  *
10
10
  * Frontmatter invariant: `handoffHash` MUST equal the lowercase hex
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Sub-agent progress file for the RD/QA sub-agents in `peaks-solo`'s
2
+ * Sub-agent progress file for the RD/QA sub-agents in `peaks-code`'s
3
3
  * Swarm phase. A sub-agent (or the LLM via the `peaks progress step`
4
4
  * CLI) writes a stable JSON file at
5
5
  * `.peaks/_sub_agents/<sid>/subagent-progress.json`. The dispatch +
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Sub-agent progress file for the RD/QA sub-agents in `peaks-solo`'s
2
+ * Sub-agent progress file for the RD/QA sub-agents in `peaks-code`'s
3
3
  * Swarm phase. A sub-agent (or the LLM via the `peaks progress step`
4
4
  * CLI) writes a stable JSON file at
5
5
  * `.peaks/_sub_agents/<sid>/subagent-progress.json`. The dispatch +
@@ -2,7 +2,7 @@
2
2
  * Slice 2026-06-16-peaks-rd-no-gates — missing-project-standards diagnostic
3
3
  * + JSON gate list shape for the RD bootstrap path.
4
4
  *
5
- * Background: when `peaks-rd` (or `peaks-qa` / `peaks-solo`) starts in a
5
+ * Background: when `peaks-rd` (or `peaks-qa` / `peaks-code`) starts in a
6
6
  * project whose `.claude/rules/{common,typescript}/` is missing or empty,
7
7
  * the existing code-review / security / performance gates were silently
8
8
  * dropped. This module makes the missing-standards condition observable:
@@ -6,7 +6,7 @@ export const seedCapabilityLandingMappings = [
6
6
  mapping({ capabilityId: 'codegraph.impact-analysis', sourceId: 'codegraph', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-rd', skillName: 'peaks-rd', guidance: 'Dry-run reference only: peaks-rd may use peaks codegraph affected --project <path> <files...> --json to inspect likely impact before slice planning and red-line checks when execution is approved.' }),
7
7
  mapping({ capabilityId: 'codegraph.impact-analysis', sourceId: 'codegraph', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-qa', skillName: 'peaks-qa', guidance: 'Use affected output as regression-surface evidence only; QA validation and test evidence remain authoritative.' }),
8
8
  mapping({ capabilityId: 'codegraph.context-pack', sourceId: 'codegraph', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-rd', skillName: 'peaks-rd', guidance: 'Dry-run reference only: peaks-rd may use peaks codegraph context --project <path> <task> to gather local evidence for RD analysis when execution is approved, without replacing standards dry-runs.' }),
9
- mapping({ capabilityId: 'codegraph.context-pack', sourceId: 'codegraph', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-solo', skillName: 'peaks-solo', guidance: 'Solo may attach local context packs or affected summaries before role handoff so RD, QA, and TXT share the same project evidence.' }),
9
+ mapping({ capabilityId: 'codegraph.context-pack', sourceId: 'codegraph', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-code', skillName: 'peaks-code', guidance: 'Solo may attach local context packs or affected summaries before role handoff so RD, QA, and TXT share the same project evidence.' }),
10
10
  mapping({ capabilityId: 'codegraph.context-pack', sourceId: 'codegraph', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-txt', skillName: 'peaks-txt', guidance: 'TXT may summarize recorded codegraph context packs into handoffs while treating them as supporting evidence only.' }),
11
11
  mapping({ capabilityId: 'playwright-mcp.browser-validation', sourceId: 'playwright-mcp', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-qa', skillName: 'peaks-qa', guidance: 'Use for browser and E2E validation after user-approved app targets are available.' }),
12
12
  mapping({ capabilityId: 'chrome-devtools-mcp.browser-debug', sourceId: 'chrome-devtools-mcp', sourceGroup: 'access-repo', landingKind: 'skill', target: 'peaks-ui', skillName: 'peaks-ui', guidance: 'Use for runtime UI, console, network, and performance inspection.' }),
@@ -473,7 +473,7 @@ export function validateArtifactRetention(sliceId) {
473
473
  };
474
474
  if (!workspace) {
475
475
  // No workspace: validate against the resolved session dir directly
476
- // (this is the common peaks-solo / peaks-rd invocation: the slice
476
+ // (this is the common peaks-code / peaks-rd invocation: the slice
477
477
  // lives under the project-root `.peaks/_runtime/<sessionId>/`, and the
478
478
  // workspace artifact path is irrelevant). When the resolution also
479
479
  // fails, fall back to the legacy "No workspace configured" failure
@@ -0,0 +1,9 @@
1
+ import type { BeeManifest } from "./types.js";
2
+ export type DisposePlan = {
3
+ decision: "destroy";
4
+ auto: true;
5
+ } | {
6
+ decision: null;
7
+ requiresUserPrompt: true;
8
+ };
9
+ export declare function planDispose(m: BeeManifest): DisposePlan;
@@ -0,0 +1,5 @@
1
+ export function planDispose(m) {
2
+ if (m.source === "system")
3
+ return { decision: "destroy", auto: true };
4
+ return { decision: null, requiresUserPrompt: true };
5
+ }