maestro-flow 0.5.41 → 0.5.43

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 (363) hide show
  1. package/.agents/skills/domain-add/SKILL.md +3 -0
  2. package/.agents/skills/learn-decompose/SKILL.md +7 -4
  3. package/.agents/skills/learn-follow/SKILL.md +4 -2
  4. package/.agents/skills/learn-investigate/SKILL.md +8 -6
  5. package/.agents/skills/learn-second-opinion/SKILL.md +6 -3
  6. package/.agents/skills/maestro/SKILL.md +1 -1
  7. package/.agents/skills/maestro-amend/SKILL.md +1 -1
  8. package/.agents/skills/maestro-analyze/SKILL.md +1 -43
  9. package/.agents/skills/maestro-blueprint/SKILL.md +1 -23
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +8 -25
  11. package/.agents/skills/maestro-collab/SKILL.md +6 -2
  12. package/.agents/skills/maestro-companion/SKILL.md +4 -1
  13. package/.agents/skills/maestro-composer/SKILL.md +4 -2
  14. package/.agents/skills/maestro-execute/SKILL.md +27 -9
  15. package/.agents/skills/maestro-fork/SKILL.md +4 -3
  16. package/.agents/skills/maestro-grill/SKILL.md +1 -17
  17. package/.agents/skills/maestro-guard/SKILL.md +2 -2
  18. package/.agents/skills/maestro-impeccable/SKILL.md +2 -1
  19. package/.agents/skills/maestro-init/SKILL.md +1 -1
  20. package/.agents/skills/maestro-merge/SKILL.md +12 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +1 -15
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +8 -3
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +8 -4
  24. package/.agents/skills/maestro-overlay/SKILL.md +9 -0
  25. package/.agents/skills/maestro-plan/SKILL.md +6 -62
  26. package/.agents/skills/maestro-player/SKILL.md +2 -2
  27. package/.agents/skills/maestro-quick/SKILL.md +5 -3
  28. package/.agents/skills/maestro-ralph/SKILL.md +8 -8
  29. package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
  30. package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
  32. package/.agents/skills/maestro-roadmap/SKILL.md +1 -9
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
  34. package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
  36. package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
  37. package/.agents/skills/maestro-update/SKILL.md +10 -7
  38. package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
  39. package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
  40. package/.agents/skills/manage-harvest/SKILL.md +4 -1
  41. package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
  42. package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
  43. package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
  44. package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
  45. package/.agents/skills/manage-wiki/SKILL.md +1 -0
  46. package/.agents/skills/odyssey-debug/SKILL.md +2 -1
  47. package/.agents/skills/odyssey-improve/SKILL.md +2 -2
  48. package/.agents/skills/odyssey-planex/SKILL.md +8 -7
  49. package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
  50. package/.agents/skills/odyssey-ui/SKILL.md +4 -4
  51. package/.agents/skills/quality-auto-test/SKILL.md +11 -1
  52. package/.agents/skills/quality-debug/SKILL.md +16 -2
  53. package/.agents/skills/quality-retrospective/SKILL.md +9 -1
  54. package/.agents/skills/quality-review/SKILL.md +8 -0
  55. package/.agents/skills/quality-sync/SKILL.md +2 -2
  56. package/.agents/skills/quality-test/SKILL.md +9 -1
  57. package/.agents/skills/security-audit/SKILL.md +14 -4
  58. package/.agents/skills/spec-add/SKILL.md +5 -2
  59. package/.agents/skills/spec-load/SKILL.md +1 -1
  60. package/.agents/skills/spec-remove/SKILL.md +1 -1
  61. package/.agents/skills/spec-setup/SKILL.md +3 -0
  62. package/.agents/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  63. package/.agents/skills/team-coordinate/specs/role-spec-template.md +197 -198
  64. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  65. package/.agents/skills/team-roadmap-dev/specs/team-config.json +1 -1
  66. package/.agents/skills/team-swarm/roles/analyst/role.md +172 -176
  67. package/.agy/skills/domain-add/SKILL.md +3 -0
  68. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  69. package/.agy/skills/learn-follow/SKILL.md +4 -2
  70. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  71. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  72. package/.agy/skills/maestro/SKILL.md +1 -1
  73. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  74. package/.agy/skills/maestro-analyze/SKILL.md +1 -43
  75. package/.agy/skills/maestro-blueprint/SKILL.md +1 -23
  76. package/.agy/skills/maestro-brainstorm/SKILL.md +8 -25
  77. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  78. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  79. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  80. package/.agy/skills/maestro-execute/SKILL.md +27 -9
  81. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  82. package/.agy/skills/maestro-grill/SKILL.md +1 -17
  83. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  84. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  85. package/.agy/skills/maestro-init/SKILL.md +1 -1
  86. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  87. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -15
  88. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  89. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  90. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  91. package/.agy/skills/maestro-plan/SKILL.md +6 -62
  92. package/.agy/skills/maestro-player/SKILL.md +2 -2
  93. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  94. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  95. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  96. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  97. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  98. package/.agy/skills/maestro-roadmap/SKILL.md +1 -9
  99. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  100. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  101. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  102. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  103. package/.agy/skills/maestro-update/SKILL.md +10 -7
  104. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  105. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  106. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  107. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  108. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  109. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  110. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  111. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  112. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  113. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  114. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  115. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  116. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  117. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  118. package/.agy/skills/quality-debug/SKILL.md +16 -2
  119. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  120. package/.agy/skills/quality-review/SKILL.md +8 -0
  121. package/.agy/skills/quality-sync/SKILL.md +2 -2
  122. package/.agy/skills/quality-test/SKILL.md +9 -1
  123. package/.agy/skills/security-audit/SKILL.md +14 -4
  124. package/.agy/skills/spec-add/SKILL.md +5 -2
  125. package/.agy/skills/spec-load/SKILL.md +1 -1
  126. package/.agy/skills/spec-remove/SKILL.md +1 -1
  127. package/.agy/skills/spec-setup/SKILL.md +3 -0
  128. package/.agy/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  129. package/.agy/skills/team-coordinate/specs/role-spec-template.md +197 -198
  130. package/.agy/skills/team-roadmap-dev/SKILL.md +141 -153
  131. package/.agy/skills/team-roadmap-dev/specs/team-config.json +1 -1
  132. package/.agy/skills/team-swarm/roles/analyst/role.md +172 -176
  133. package/.claude/commands/domain-add.md +3 -0
  134. package/.claude/commands/learn-decompose.md +7 -4
  135. package/.claude/commands/learn-follow.md +4 -2
  136. package/.claude/commands/learn-investigate.md +8 -6
  137. package/.claude/commands/learn-second-opinion.md +6 -3
  138. package/.claude/commands/maestro-amend.md +1 -1
  139. package/.claude/commands/maestro-analyze.md +1 -43
  140. package/.claude/commands/maestro-blueprint.md +1 -23
  141. package/.claude/commands/maestro-brainstorm.md +8 -25
  142. package/.claude/commands/maestro-collab.md +6 -2
  143. package/.claude/commands/maestro-companion.md +4 -1
  144. package/.claude/commands/maestro-composer.md +4 -2
  145. package/.claude/commands/maestro-execute.md +27 -9
  146. package/.claude/commands/maestro-fork.md +4 -3
  147. package/.claude/commands/maestro-grill.md +1 -17
  148. package/.claude/commands/maestro-guard.md +2 -2
  149. package/.claude/commands/maestro-impeccable.md +2 -1
  150. package/.claude/commands/maestro-init.md +1 -1
  151. package/.claude/commands/maestro-merge.md +12 -1
  152. package/.claude/commands/maestro-milestone-audit.md +1 -15
  153. package/.claude/commands/maestro-milestone-complete.md +8 -3
  154. package/.claude/commands/maestro-milestone-release.md +8 -4
  155. package/.claude/commands/maestro-overlay.md +9 -0
  156. package/.claude/commands/maestro-plan.md +6 -62
  157. package/.claude/commands/maestro-player.md +2 -2
  158. package/.claude/commands/maestro-quick.md +5 -3
  159. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  160. package/.claude/commands/maestro-ralph-cli.md +663 -0
  161. package/.claude/commands/maestro-ralph-execute.md +127 -11
  162. package/.claude/commands/maestro-ralph.md +8 -8
  163. package/.claude/commands/maestro-roadmap.md +1 -9
  164. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  165. package/.claude/commands/maestro-tools-register.md +16 -1
  166. package/.claude/commands/maestro-ui-codify.md +11 -1
  167. package/.claude/commands/maestro-universal-workflow.md +28 -5
  168. package/.claude/commands/maestro-update.md +10 -7
  169. package/.claude/commands/maestro.md +1 -1
  170. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  171. package/.claude/commands/manage-drift-realign.md +6 -2
  172. package/.claude/commands/manage-harvest.md +4 -1
  173. package/.claude/commands/manage-issue-discover.md +1 -0
  174. package/.claude/commands/manage-kg-extractors.md +5 -1
  175. package/.claude/commands/manage-knowhow-capture.md +1 -0
  176. package/.claude/commands/manage-knowledge-audit.md +3 -0
  177. package/.claude/commands/manage-wiki.md +1 -0
  178. package/.claude/commands/odyssey-debug.md +2 -1
  179. package/.claude/commands/odyssey-improve.md +2 -2
  180. package/.claude/commands/odyssey-planex.md +8 -7
  181. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  182. package/.claude/commands/odyssey-ui.md +4 -4
  183. package/.claude/commands/quality-auto-test.md +11 -1
  184. package/.claude/commands/quality-debug.md +16 -2
  185. package/.claude/commands/quality-retrospective.md +9 -1
  186. package/.claude/commands/quality-review.md +8 -0
  187. package/.claude/commands/quality-sync.md +2 -2
  188. package/.claude/commands/quality-test.md +9 -1
  189. package/.claude/commands/security-audit.md +14 -4
  190. package/.claude/commands/spec-add.md +5 -2
  191. package/.claude/commands/spec-load.md +1 -1
  192. package/.claude/commands/spec-remove.md +1 -1
  193. package/.claude/commands/spec-setup.md +3 -0
  194. package/.claude/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  195. package/.claude/skills/team-coordinate/specs/role-spec-template.md +197 -198
  196. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  197. package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
  198. package/.claude/skills/team-swarm/roles/analyst/role.md +181 -185
  199. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  200. package/.codex/skills/domain-add/SKILL.md +5 -3
  201. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  202. package/.codex/skills/learn-follow/SKILL.md +12 -6
  203. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  204. package/.codex/skills/learn-retro/SKILL.md +12 -6
  205. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  206. package/.codex/skills/maestro/SKILL.md +19 -13
  207. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  208. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  209. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  210. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  211. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  212. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  213. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  214. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  215. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  216. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  217. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  218. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  219. package/.codex/skills/maestro-init/SKILL.md +3 -2
  220. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  221. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  222. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  223. package/.codex/skills/maestro-next/SKILL.md +11 -10
  224. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  225. package/.codex/skills/maestro-player/SKILL.md +11 -5
  226. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  227. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  228. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  229. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  230. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  231. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  232. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  233. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  234. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  235. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  236. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  237. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  238. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  239. package/.codex/skills/manage-issue/SKILL.md +8 -4
  240. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  241. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  242. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  243. package/.codex/skills/manage-learn/SKILL.md +2 -2
  244. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  245. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  246. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  247. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  248. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  249. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  250. package/.codex/skills/quality-debug/SKILL.md +18 -11
  251. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  252. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  253. package/.codex/skills/quality-review/SKILL.md +18 -11
  254. package/.codex/skills/quality-sync/SKILL.md +2 -2
  255. package/.codex/skills/quality-test/SKILL.md +7 -5
  256. package/.codex/skills/security-audit/SKILL.md +7 -5
  257. package/.codex/skills/spec-add/SKILL.md +9 -7
  258. package/.codex/skills/spec-load/SKILL.md +3 -2
  259. package/.codex/skills/spec-map/SKILL.md +10 -1
  260. package/.codex/skills/spec-remove/SKILL.md +3 -2
  261. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  262. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  263. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  264. package/.codex/skills/team-review/SKILL.md +50 -6
  265. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  266. package/.codex/skills/team-testing/SKILL.md +50 -2
  267. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  268. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  269. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  270. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  271. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  272. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +43 -5
  273. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  274. package/dashboard/dist-server/src/commands/install-backend.js +31 -16
  275. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  276. package/dashboard/dist-server/src/core/component-defs.js +25 -0
  277. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  278. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  279. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  280. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  281. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  282. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  283. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  284. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  285. package/dashboard/dist-server/src/graph/kg/engine.d.ts +19 -1
  286. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  287. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  288. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  289. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  290. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  291. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  292. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  293. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  294. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  295. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  296. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  297. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  298. package/dashboard/dist-server/src/tools/spec-loader.js +7 -3
  299. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  300. package/dist/src/commands/install-backend.d.ts.map +1 -1
  301. package/dist/src/commands/install-backend.js +31 -16
  302. package/dist/src/commands/install-backend.js.map +1 -1
  303. package/dist/src/core/component-defs.d.ts.map +1 -1
  304. package/dist/src/core/component-defs.js +25 -0
  305. package/dist/src/core/component-defs.js.map +1 -1
  306. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  307. package/dist/src/core/plugin-bridge.js +17 -0
  308. package/dist/src/core/plugin-bridge.js.map +1 -1
  309. package/dist/src/graph/kg/db/types.d.ts +3 -0
  310. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  311. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  312. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  313. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  314. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  315. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  316. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  317. package/dist/src/graph/kg/embedding/index.js +3 -0
  318. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  319. package/dist/src/graph/kg/engine.d.ts +19 -1
  320. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  321. package/dist/src/graph/kg/engine.js +71 -1
  322. package/dist/src/graph/kg/engine.js.map +1 -1
  323. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  324. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  325. package/dist/src/graph/kg/query/scoring.js +85 -1
  326. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  327. package/dist/src/graph/kg/query/search.d.ts +7 -0
  328. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  329. package/dist/src/graph/kg/query/search.js +117 -1
  330. package/dist/src/graph/kg/query/search.js.map +1 -1
  331. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  332. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  333. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  334. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  335. package/dist/src/hooks/kg-sync-hook.js +3 -0
  336. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  337. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  338. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  339. package/dist/src/tools/code-semantic-search.js +81 -0
  340. package/dist/src/tools/code-semantic-search.js.map +1 -0
  341. package/dist/src/tools/index.d.ts.map +1 -1
  342. package/dist/src/tools/index.js +4 -0
  343. package/dist/src/tools/index.js.map +1 -1
  344. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  345. package/dist/src/tools/spec-loader.js +7 -3
  346. package/dist/src/tools/spec-loader.js.map +1 -1
  347. package/dist/src/tools/wiki-search.d.ts +13 -0
  348. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  349. package/dist/src/tools/wiki-search.js +114 -0
  350. package/dist/src/tools/wiki-search.js.map +1 -0
  351. package/dist/src/utils/update-notices.js +23 -0
  352. package/dist/src/utils/update-notices.js.map +1 -1
  353. package/package.json +4 -1
  354. package/workflows/agy-instructions.md +147 -161
  355. package/workflows/claude-instructions.md +100 -48
  356. package/workflows/codex-instructions.md +147 -161
  357. package/workflows/execute.md +4 -3
  358. package/workflows/explore-usage.md +41 -81
  359. package/workflows/grill.md +11 -0
  360. package/workflows/milestone-audit.md +8 -0
  361. package/workflows/odyssey-base-codex.md +115 -116
  362. package/workflows/odyssey-base.md +89 -91
  363. package/workflows/plan.md +6 -0
@@ -1,47 +1,47 @@
1
- # Odyssey 共享基座 (Codex)
1
+ # Odyssey Shared Base (Codex)
2
2
 
3
- 所有 Odyssey 命令(debug, improve, planex, review-test-fix, ui)共享此基座。
3
+ Shared by all Odyssey commands (debug, improve, planex, review-test-fix, ui).
4
4
 
5
5
  <execution_discipline>
6
- **四条铁律:**
7
6
 
8
- 1. **Phase auto-commit** — 每个阶段完成后自动 `git commit`,无需用户确认
9
- - 代码变更 + understanding.md → `git add` → `git commit -m "{command}({slug}): {phase} — {摘要}"`
10
- - session.json / evidence.ndjson 为运行时状态,不纳入 commit
7
+ 1. **Phase auto-commit** — auto `git commit` after each phase
8
+ - Code changes + understanding.md → `git add` → `git commit -m "{command}({slug}): {phase} — {summary}"`
9
+ - session.json / evidence.ndjson are runtime state, excluded from commits
11
10
 
12
- 2. **Confident edits only, but must attempt** — 有把握才改代码;仅在真正需要人类判断时记录 decision
11
+ 2. **Confident edits only, but must attempt** — edit when confident; record decision only when human judgment truly needed
13
12
  - Confident → edit + commit
14
- - Needs decision → `evidence.ndjson {"phase":"decision","status":"pending"}`,不动代码
15
- - ⚠️ **Decision gate** — 仅以下情形算 decision:跨模块架构权衡需人类方向 | 业务语义歧义修复可能改变意图 | 需引入新依赖或 breaking API
16
- - "不确定怎么修""范围太大""历史遗留" 不是合法 decision 理由
13
+ - Needs decision → `evidence.ndjson {"phase":"decision","status":"pending"}`, no code change
14
+ - **Decision gate** — only these qualify: cross-module architecture tradeoffs needing human direction | business semantics ambiguity where fix may change intent | new dependency or breaking API required
15
+ - "Unsure how to fix", "Too large scope", "Pre-existing issue" are NOT valid decision reasons
17
16
 
18
- 3. **多 CLI 辅助** — `maestro delegate` 多角度交叉验证
19
- - 不同阶段用不同 `--role`(analyze / review / explore
20
- - **`--role` fallback:** `cli-tools.json` `roles` 为空时,`--role` 自动 fallback 到首个启用工具。效果等同于 `--to <first-enabled>`,但保留语义标注便于日志追踪
21
- - 所有 delegate 调用 `run_in_background: true`,等回调继续
17
+ 3. **Multi-CLI assist** — `maestro delegate` for cross-angle verification
18
+ - Different `--role` per phase (analyze / review / explore)
19
+ - **`--role` fallback:** when `cli-tools.json` `roles` is empty, `--role` auto-falls back to first enabled tool. Equivalent to `--to <first-enabled>` but preserves semantic annotation for log tracking
20
+ - All delegate calls `run_in_background: true`, wait for callback
22
21
 
23
- 4. **禁止以上下文消耗为由中断** — harness 自动 context compression;以"上下文不足""已执行 N 阶段"为由中断属纪律违反,必须完整走到 S_RECORD → END
22
+ 4. **Never abort for context exhaustion** — harness auto-compresses context; aborting due to "insufficient context" or "already ran N phases" is a discipline violation. Must complete through S_RECORD → END.
24
23
 
25
- **Zero-residual:** 每个发现必须有 actionfix / issue / decision)。"仅报告""历史遗留跳过"均禁止。
24
+ **Zero-residual:** Every finding must have an action (fix / issue / decision). "Report only" and "pre-existing skip" are forbidden.
26
25
  </execution_discipline>
27
26
 
28
27
  <flag_semantics>
29
- ### `--auto` vs `-y` 语义区分
30
28
 
31
- | Flag | 控制范围 | 效果 |
32
- |------|---------|------|
33
- | `--auto` | **CLI delegate 调用** | 跳过 delegate 启动前的确认提示,直接 `run_in_background` 执行 |
34
- | `-y` | **人类决策点** | 所有 `request_user_input` 调用自动选择默认选项,记录为 `deferred` |
29
+ ### `--auto` vs `-y`
35
30
 
36
- - `--auto` 不影响人类决策点(ambiguity、triage、goal audit 等仍需确认或 `-y`)
37
- - `-y` 不影响 delegate 调用(delegate 始终自动执行,`--auto` 仅控制启动前确认提示)
38
- - 两者可组合使用:`--auto -y` = 全自动模式
39
- - `session.json.flags` 映射: `auto` `--auto`, `auto_confirm` ↔ `-y`
31
+ | Flag | Scope | Effect |
32
+ |------|-------|--------|
33
+ | `--auto` | **CLI delegate calls** | Skip delegate launch confirmation, execute `run_in_background` directly |
34
+ | `-y` | **Human decision points** | All `request_user_input` calls auto-select default, record as `deferred` |
35
+
36
+ - `--auto` does not affect human decision points (ambiguity, triage, goal audit still need confirmation or `-y`)
37
+ - `-y` does not affect delegate calls (delegates always auto-execute, `--auto` only controls pre-launch confirmation)
38
+ - Combine: `--auto -y` = fully automatic mode
39
+ - `session.json.flags` mapping: `auto` ↔ `--auto`, `auto_confirm` ↔ `-y`
40
40
  </flag_semantics>
41
41
 
42
42
  <shared_schemas>
43
43
 
44
- ### session.json 标准字段(所有命令共有)
44
+ ### session.json standard fields
45
45
 
46
46
  ```json
47
47
  {
@@ -55,18 +55,18 @@
55
55
  }
56
56
  ```
57
57
 
58
- 各命令在此基础上添加特有字段(如 `issue`, `target`, `requirement` 等)。
59
- **注意:** `cross_phase_loops` `max_loops` 是共有字段,各命令不应在 unique fields 中重复声明。
58
+ Each command adds its own fields (e.g. `issue`, `target`, `requirement`).
59
+ Note: `cross_phase_loops` and `max_loops` are shared fields — commands should not redeclare them.
60
60
 
61
- ### evidence.ndjson 基础 schema(每行共有字段)
61
+ ### evidence.ndjson base schema
62
62
 
63
63
  ```json
64
64
  {"ts":"","phase":"","type":"","source":"","content":"","note":""}
65
65
  ```
66
66
 
67
- 各命令定义 phase-specific 扩展字段(如 `hypothesis`, `severity`, `dimension` 等)。
67
+ Each command defines phase-specific extension fields (e.g. `hypothesis`, `severity`, `dimension`).
68
68
 
69
- ### patterns[] schemaA_GENERALIZE 输出)
69
+ ### patterns[] schema (A_GENERALIZE output)
70
70
 
71
71
  ```json
72
72
  {
@@ -81,15 +81,15 @@
81
81
  }
82
82
  ```
83
83
 
84
- `source` 字段名统一为 `source`,值由各命令语义决定:
84
+ `source` field value per command:
85
85
 
86
- | Command | source | 含义 |
87
- |---------|----------|------|
88
- | debug | root_cause | 根因修复 |
89
- | improve | diagnosis | 诊断发现 |
90
- | review-test-fix | finding | 审查发现 |
91
- | ui | finding | 审查/发散发现 |
92
- | planex | implementation | 实现模式 |
86
+ | Command | source value | Meaning |
87
+ |---------|-------------|---------|
88
+ | debug | root_cause | Root cause fix |
89
+ | improve | diagnosis | Diagnosed finding |
90
+ | review-test-fix | finding | Review finding |
91
+ | ui | finding | Audit/diverge finding |
92
+ | planex | implementation | Implementation pattern |
93
93
 
94
94
  ### generalization_stats schema
95
95
 
@@ -105,9 +105,8 @@
105
105
  </shared_schemas>
106
106
 
107
107
  <anti_stall>
108
- **防停滞机制**
109
108
 
110
- ### session.json 新增字段
109
+ ### progress_metrics fields
111
110
 
112
111
  ```json
113
112
  {
@@ -123,12 +122,12 @@
123
122
 
124
123
  ### Progress Tracking
125
124
 
126
- 每个分析阶段结束时:
127
- 1. 统计 `new_findings`(去重后新发现)和 `repeated`(与已有 evidence 重复)
128
- 2. 写入 `progress_metrics.phase_stats[state_name]`
129
- 3. `new == 0` → `stale_count++`,`convergence_trend = "stalling"`
130
- 4. `new > 0` → `stale_count = 0`,更新 `last_productive_phase`
131
- 5. 连续 2 阶段 new 递减 → `convergence_trend = "diminishing"`
125
+ After each analytical phase:
126
+ 1. Count `new_findings` (deduplicated) and `repeated` (matching existing evidence)
127
+ 2. Write to `progress_metrics.phase_stats[state_name]`
128
+ 3. `new == 0` → `stale_count++`, `convergence_trend = "stalling"`
129
+ 4. `new > 0` → `stale_count = 0`, update `last_productive_phase`
130
+ 5. 2 consecutive phases with declining new → `convergence_trend = "diminishing"`
132
131
 
133
132
  ### Direction Diversity
134
133
 
@@ -136,45 +135,46 @@
136
135
  {
137
136
  "phase": "S_DIAGNOSE", "round": 1,
138
137
  "strategy_type": "scope_widen|perspective_shift|tool_switch|structural_pivot",
139
- "strategy_desc": "扩展搜索到 utils/", "result": "2 new findings"
138
+ "strategy_desc": "expand search to utils/", "result": "2 new findings"
140
139
  }
141
140
  ```
142
141
 
143
- **去重规则:** 自迭代前检查同 phase 历史新策略必须在 `strategy_type` `strategy_desc` 上不同 → 4 type 均已尝试 强制升级 stale_count
142
+ **Dedup rule:** Check same-phase history before self-iteration new strategy must differ in `strategy_type` or `strategy_desc` → all 4 types triedforce stale_count upgrade
144
143
 
145
144
  ### Stall Escalation Ladder
146
145
 
147
- | stale_count | 策略 |
148
- |-------------|------|
149
- | 0 | 正常推进 |
150
- | 1 | **换视角**不同 CLI 工具、反向追踪、手动阅读。方向必须与 directions_tried 不同 |
151
- | 2 | **结构性转向**重定义搜索维度、换分析框架、拆解子问题。不是参数调优 |
152
- | 3 | **人工升级** — request_user_input / `-y` 自动 INCONCLUSIVE 并推进 |
146
+ | stale_count | Strategy |
147
+ |-------------|----------|
148
+ | 0 | Normal advance |
149
+ | 1 | **Shift perspective** different CLI tool, reverse trace, manual read. Must differ from directions_tried |
150
+ | 2 | **Structural pivot** redefine search dimensions, switch analysis framework, decompose sub-problems. Not parameter tuning |
151
+ | 3 | **Human escalation** — request_user_input / `-y` auto INCONCLUSIVE and advance |
153
152
 
154
- ### /loop Heartbeat(可选,`--heartbeat` 启用)
153
+ ### /loop Heartbeat (optional, `--heartbeat`)
155
154
 
156
- 建议用户 `/loop 270s`。每阶段更新 `session.json.updated_at`。超 15 分钟未更新告警 + stale_count。连续 2 次无更新建议 `-c` resume
155
+ Suggest `/loop 270s`. Each phase updates `session.json.updated_at`. >15 min without update alert + stale_count. 2 consecutive no-update suggest `-c` resume.
157
156
  </anti_stall>
158
157
 
159
158
  <self_iteration>
160
- **Quality Gate(进度感知版)**
161
159
 
162
- | 维度 | sufficient | insufficient |
163
- |------|-----------|-------------|
164
- | Coverage | 已知相关文件/模块均已分析 | 遗漏 grep/git log 可发现的目标 |
165
- | Depth | ≥80% 发现有 file:line 级证据 | 多数仅泛泛描述 |
166
- | Actionability | 每条结论有具体后续动作 | 仅"建议关注"类无操作结论 |
160
+ ### Quality Gate
161
+
162
+ | Dimension | Sufficient | Insufficient |
163
+ |-----------|-----------|-------------|
164
+ | Coverage | All known related files/modules analyzed | Missed targets discoverable via grep/git log |
165
+ | Depth | ≥80% findings have file:line evidence | Most findings lack specifics |
166
+ | Actionability | Each conclusion has concrete next action | "Consider reviewing" without action |
167
167
 
168
- **进度感知迭代(替代固定 3 轮):**
169
- - phase complete → evaluate 3 dims + check `progress_metrics`
170
- - any insufficient AND `stale_count < 3` → re-enterexpansion strategy 必须经 directions_tried 去重
171
- - Stall Escalation Ladder 选择策略类型
168
+ **Progress-aware iteration:**
169
+ - Phase complete → evaluate 3 dimensions + check `progress_metrics`
170
+ - Any insufficient AND `stale_count < 3` → re-enter with expansion strategy (must pass directions_tried dedup)
171
+ - Follow Stall Escalation Ladder for strategy selection
172
172
 
173
173
  **Expansion strategies:**
174
- - `scope_widen`: 更多目录、git log 深度 ×2、额外 delegate 角度
175
- - `perspective_shift`: 不同 CLI 工具、反向追踪、手动阅读
176
- - `tool_switch`: 切换到未使用的分析工具
177
- - `structural_pivot`: 重定义问题框架、拆解子问题
174
+ - `scope_widen`: more directories, git log depth ×2, additional delegate angles
175
+ - `perspective_shift`: different CLI tool, reverse trace, manual reading
176
+ - `tool_switch`: switch to unused analysis tool
177
+ - `structural_pivot`: redefine problem framework, decompose sub-problems
178
178
 
179
179
  **Exit:** all sufficient → advance | `stale_count >= 3` → log gaps, advance
180
180
 
@@ -185,111 +185,110 @@
185
185
 
186
186
  ### A_GENERALIZE
187
187
 
188
- 3 pattern extraction → 4-agent 并发 scan → cross-layer dedup → iterative deepening
188
+ 3-layer pattern extraction → 4-agent concurrent scan → cross-layer dedup → iterative deepening.
189
189
 
190
- **Pattern 来源:** 由各命令指定(root cause / audit findings / implementation patterns 等)。
190
+ **Pattern source:** specified by each command (root cause / audit findings / implementation patterns).
191
191
 
192
- **3 层提取:**
192
+ **3-layer extraction:**
193
193
 
194
194
  | Layer | Method | Example |
195
195
  |-------|--------|---------|
196
196
  | Syntax | Regex → Grep | `eval(`, missing `await`, inline styles |
197
- | Semantic | Agent 理解反模式 → scan | 未处理异步错误、缺少校验 |
198
- | Structural | 文件/模块结构相似性 | 同类导入结构、缺少 override |
197
+ | Semantic | Agent understands anti-pattern → scan | Unhandled async errors, missing validation |
198
+ | Structural | File/module structure similarity | Same import structure, missing override |
199
199
 
200
- Write `session.json.patterns[]` — schema `<shared_schemas>` patterns[] 定义。
200
+ Write `session.json.patterns[]` — schema in `<shared_schemas>` patterns[] definition.
201
201
 
202
- **4-agent 并发 scanspawn_agents_on_csvwave 号由各命令指定):**
202
+ **4-agent concurrent scan (spawn_agents_on_csv, wave number specified by each command):**
203
203
 
204
204
  | Agent | Strategy | Scope |
205
205
  |-------|----------|-------|
206
206
  | Syntax grep | Grep regex | Full project |
207
- | Semantic scan | 反模式检查 | Related modules |
208
- | Structural match | 结构相似文件 | Full project |
207
+ | Semantic scan | Anti-pattern check | Related modules |
208
+ | Structural match | Structurally similar files | Full project |
209
209
  | Historical grep | `git log -S` | Git history |
210
210
 
211
- **Cross-layer dedup:** 多层命中 → boost confidence | 单层 → `needs_review` | 历史已修 → `regression_risk`
211
+ **Cross-layer dedup:** multi-layer hit → boost confidence | single-layer → `needs_review` | historically fixed → `regression_risk`
212
212
 
213
- **Iterative deepening:** module ≥3 hits → 定向深扫(max 1 round
213
+ **Iterative deepening:** module ≥3 hits → targeted deep scan (max 1 round)
214
214
 
215
- **Persist:** understanding.md 泛化 section + `session.json.generalization_stats`(schema 见 shared_schemas)
215
+ **Persist:** understanding.md generalization section + `session.json.generalization_stats`
216
216
 
217
- 📌 Auto-commit: `"...({slug}): GENERALIZE — 泛化扫描完成"`
217
+ Commit: `"...({slug}): GENERALIZE — generalization scan complete"`
218
218
 
219
219
  ### A_DISCOVER
220
220
 
221
- 1. **Triage** 每个 hit ±10 行上下文分类 `bug` / `risk` / `safe`
221
+ 1. **Triage** each hit ±10 lines context classify `bug` / `risk` / `safe`
222
222
  2. **Route:**
223
- - bug + fix_template 可直接应用**立即修复** → back to S_FIX
224
- - bug + 需跨模块决策或无 fix_template → 创建 issue(含 fix 建议 + 影响分析)
225
- - risk → 评估能否直接加 guard;能
223
+ - bug + fix_template applicableimmediate fix → back to S_FIX
224
+ - bug + needs cross-module decision or no fix_template → create issue (with fix suggestion + impact analysis)
225
+ - risk → assess if guard can be added directly; yes fix; no → create issue
226
226
  - safe → skip
227
- Normal: request_user_input | `-y`: auto-fix fix_template bug,其余 create issue
228
- 3. **Cross-phase loops:** `cross_phase_loops++`。`loops >= max_loops` → 必须逐项记录原因(禁止笼统"历史遗留"
227
+ Normal: request_user_input | `-y`: auto-fix bugs with fix_template, create issue for rest
228
+ 3. **Cross-phase loops:** `cross_phase_loops++`. `loops >= max_loops` → must log per-item reasons (blanket "pre-existing" forbidden)
229
229
  4. Append evidence + update understanding.md
230
230
 
231
- 📌 Auto-commit: `"...({slug}): DISCOVER — 发现分类完成"`
231
+ Commit: `"...({slug}): DISCOVER — discovery triage complete"`
232
232
 
233
233
  ### A_RECORD
234
234
 
235
- 1. Finalize understanding.md 最后一节 — learnings 按各命令指定的分类表结构化
236
- - **两步模式:** 执行中写产出文件(临时)→ 完成后用户通过 next_step_routing 沉淀永久知识
237
- 2. Mark record goal done。Pending decisions: Normal → request_user_input | `-y` → skip (show deferred count)
238
- 3. **Goal audit:** all `completion_confirmed` → `phase_goals_all_done = true`。未完成: Normal request_user_input | `-y` auto accept
239
- 4. `current_state = "COMPLETED"`,emit completion summary(格式由各命令定义)
235
+ 1. Finalize understanding.md final section — learnings structured by each command's category table
236
+ 2. Mark record goal done. Pending decisions: Normal → request_user_input | `-y` → skip (show deferred count)
237
+ 3. **Goal audit:** all `completion_confirmed` → `phase_goals_all_done = true`. Incomplete: Normal → request_user_input | `-y` → auto accept
238
+ 4. `current_state = "COMPLETED"`, emit completion summary (format defined by each command)
240
239
 
241
- 📌 Auto-commit: `"...({slug}): RECORD — 会话总结与知识沉淀"`
240
+ Commit: `"...({slug}): RECORD — summary and knowledge persistence"`
242
241
 
243
242
  </shared_actions>
244
243
 
245
244
  <shared_appendix>
246
245
 
247
- ### Goal Prompt 机制
246
+ ### Goal Prompt
248
247
 
249
- **⚠️ 时机守卫:仅 INTAKE 完成后显示一次。RECORD 完成时禁止重显。**
248
+ **Timing guard: display ONCE after INTAKE completes. Never re-display at RECORD.**
250
249
 
251
250
  ```
252
- 📋 {Command} Odyssey 会话已创建。可随时复制以下 /goal 设定终止条件:
251
+ {Command} Odyssey session created. Copy the /goal below to set termination criteria:
253
252
 
254
- /goal 完成以下目标:
253
+ /goal Complete these goals:
255
254
  {for each G in phase_goals where status != "skipped":}
256
- - {G.id}: {G.goal} — 完成条件: {G.done_when}
255
+ - {G.id}: {G.goal} — done when: {G.done_when}
257
256
  {end for}
258
257
  {command-specific convergence rules}
259
- 遇到 phase=decision pending 必须 request_user_input,不得自行 resolve
258
+ Pending phase=decision items must use request_user_input, never self-resolve.
260
259
  ```
261
260
 
262
- 输出后继续执行不阻塞。
261
+ Continue execution after output, do not block.
263
262
 
264
- ### `-y` 通用规则
263
+ ### `-y` generic rules
265
264
 
266
265
  - Decision pending → best-effort continue, record `deferred`
267
266
  - 3-strike escalation → auto INCONCLUSIVE
268
- - Discovery routing → auto-fix fix_template bug,其余 create issue
267
+ - Discovery routing → auto-fix bugs with fix_template, create issue for rest
269
268
  - Record pending → skip, show deferred count
270
269
  - Record goal audit → auto accept
271
270
 
272
- `deferred` items completion summary 显示为"待决策";可通过 `-c` 恢复。各命令在自身文件中列出特有 decision points
271
+ `deferred` items shown in completion summary; recoverable via `-c`. Each command lists its own specific decision points.
273
272
 
274
273
  ### Phase Goal Lifecycle
275
274
 
276
275
  `pending → done (confirmed=true)` | `pending → skipped (confirmed=true)` | `pending → failed (confirmed=false)`
277
276
 
278
- `phase_goals_all_done = true` 仅当 ALL goals `completion_confirmed == true`。
277
+ `phase_goals_all_done = true` only when ALL goals have `completion_confirmed == true`.
279
278
 
280
279
  ### Session Resume (`-c`)
281
280
 
282
- 1. `Glob(".workflow/scratch/*-{type}-odyssey-*")` 扫描所有匹配会话目录
283
- 2. **多个会话时,按 `session.json.updated_at` 降序排列,选择最近更新的**
284
- 3. 读取 `session.json` → 显示 summaryissue/target, current_state, phase_goals status
285
- 4. 跳转到 `current_state` 继续执行
281
+ 1. `Glob(".workflow/scratch/*-{type}-odyssey-*")` scan all matching session directories
282
+ 2. **Multiple sessions: sort by `session.json.updated_at` descending, select most recent**
283
+ 3. Read `session.json` → display summary (issue/target, current_state, phase_goals status)
284
+ 4. Jump to `current_state` and continue
286
285
 
287
- ### Pre-load(可选,缺失不阻塞)
286
+ ### Pre-load (optional, missing does not block)
288
287
 
289
- | 层级 | 命令 |
290
- |------|------|
288
+ | Layer | Command |
289
+ |-------|---------|
291
290
  | Codebase docs | Read `.workflow/codebase/ARCHITECTURE.md` |
292
- | Wiki search | `maestro search "<keywords>" --json`(top 5 |
291
+ | Wiki search | `maestro search "<keywords>" --json` (top 5) |
293
292
  | Specs | `maestro load --type spec --category <cat>` |
294
293
  | Role knowledge | `maestro search --category <cat>` → `maestro load --type knowhow --id <id>` |
295
294
  | Prior sessions | `Glob(".workflow/scratch/*-{type}-odyssey-*")` |