@specforge/cli 0.1.0 → 0.2.4

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 (643) hide show
  1. package/dist/cli/commands/debug/register.js +1 -1
  2. package/dist/cli/commands/debug/register.js.map +1 -1
  3. package/dist/cli/commands/debug/types.d.ts.map +1 -1
  4. package/dist/cli/commands/debug/types.js +4 -2
  5. package/dist/cli/commands/debug/types.js.map +1 -1
  6. package/dist/cli/commands/init.types.d.ts +4 -4
  7. package/dist/cli/commands/init.types.d.ts.map +1 -1
  8. package/dist/cli/commands/init.types.js.map +1 -1
  9. package/dist/cli/commands/scaffold/agent-types.js +1 -1
  10. package/dist/cli/commands/scaffold/agent-types.js.map +1 -1
  11. package/dist/cli/config/agent-teams.types.d.ts +35 -12
  12. package/dist/cli/config/agent-teams.types.d.ts.map +1 -1
  13. package/dist/cli/config/agent-teams.types.js.map +1 -1
  14. package/dist/cli/templates/agents/content/core/sfag-orchestrator.d.ts +21 -3
  15. package/dist/cli/templates/agents/content/core/sfag-orchestrator.d.ts.map +1 -1
  16. package/dist/cli/templates/agents/content/core/sfag-orchestrator.js +114 -48
  17. package/dist/cli/templates/agents/content/core/sfag-orchestrator.js.map +1 -1
  18. package/dist/cli/templates/agents/content/core/sfag-spec-creator.d.ts.map +1 -1
  19. package/dist/cli/templates/agents/content/core/sfag-spec-creator.js +124 -83
  20. package/dist/cli/templates/agents/content/core/sfag-spec-creator.js.map +1 -1
  21. package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.d.ts +22 -3
  22. package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.d.ts.map +1 -1
  23. package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.js +225 -160
  24. package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.js.map +1 -1
  25. package/dist/cli/templates/agents/content/core/sfag-work-resolver.d.ts +16 -0
  26. package/dist/cli/templates/agents/content/core/sfag-work-resolver.d.ts.map +1 -0
  27. package/dist/cli/templates/agents/content/core/sfag-work-resolver.js +199 -0
  28. package/dist/cli/templates/agents/content/core/sfag-work-resolver.js.map +1 -0
  29. package/dist/cli/templates/agents/index.d.ts.map +1 -1
  30. package/dist/cli/templates/agents/index.js +2 -0
  31. package/dist/cli/templates/agents/index.js.map +1 -1
  32. package/dist/cli/templates/content/sf-commit.d.ts +1 -1
  33. package/dist/cli/templates/content/sf-commit.d.ts.map +1 -1
  34. package/dist/cli/templates/content/sf-commit.js +2 -2
  35. package/dist/cli/templates/content/sf-commit.js.map +1 -1
  36. package/dist/cli/templates/content/sf-reset.d.ts +5 -2
  37. package/dist/cli/templates/content/sf-reset.d.ts.map +1 -1
  38. package/dist/cli/templates/content/sf-reset.js +41 -27
  39. package/dist/cli/templates/content/sf-reset.js.map +1 -1
  40. package/dist/lib/prompt-generator.d.ts +15 -3
  41. package/dist/lib/prompt-generator.d.ts.map +1 -1
  42. package/dist/lib/prompt-generator.js +14 -6
  43. package/dist/lib/prompt-generator.js.map +1 -1
  44. package/dist/lib/workflow-definitions.js +2 -2
  45. package/dist/lib/workflow-definitions.js.map +1 -1
  46. package/dist/server.d.ts.map +1 -1
  47. package/dist/server.js +2 -1
  48. package/dist/server.js.map +1 -1
  49. package/dist/tools/__tests__/complete-planning-double-call.test.d.ts +2 -0
  50. package/dist/tools/__tests__/complete-planning-double-call.test.d.ts.map +1 -0
  51. package/dist/tools/core/__tests__/file-existence-injection.test.d.ts +2 -0
  52. package/dist/tools/core/__tests__/file-existence-injection.test.d.ts.map +1 -0
  53. package/dist/tools/core/__tests__/git-injection.test.d.ts +2 -0
  54. package/dist/tools/core/__tests__/git-injection.test.d.ts.map +1 -0
  55. package/dist/tools/core/file-existence-injection.d.ts +22 -0
  56. package/dist/tools/core/file-existence-injection.d.ts.map +1 -0
  57. package/dist/tools/core/file-existence-injection.js +49 -0
  58. package/dist/tools/core/file-existence-injection.js.map +1 -0
  59. package/dist/tools/core/git-injection.d.ts +58 -0
  60. package/dist/tools/core/git-injection.d.ts.map +1 -0
  61. package/dist/tools/core/git-injection.js +79 -0
  62. package/dist/tools/core/git-injection.js.map +1 -0
  63. package/dist/tools/core/index.d.ts +1 -0
  64. package/dist/tools/core/index.d.ts.map +1 -1
  65. package/dist/tools/core/index.js +1 -0
  66. package/dist/tools/core/index.js.map +1 -1
  67. package/dist/tools/index.d.ts.map +1 -1
  68. package/dist/tools/index.js +358 -440
  69. package/dist/tools/index.js.map +1 -1
  70. package/dist/types/index.d.ts +12 -32
  71. package/dist/types/index.d.ts.map +1 -1
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/validation/index.d.ts.map +1 -1
  74. package/dist/validation/index.js +0 -15
  75. package/dist/validation/index.js.map +1 -1
  76. package/node_modules/@specforge/api-types/README.md +38 -0
  77. package/node_modules/@specforge/api-types/dist/client/appsync-client.d.ts +21 -0
  78. package/node_modules/@specforge/api-types/dist/client/appsync-client.d.ts.map +1 -0
  79. package/node_modules/@specforge/api-types/dist/client/appsync-client.js +2 -0
  80. package/node_modules/@specforge/api-types/dist/client/appsync-client.js.map +1 -0
  81. package/node_modules/@specforge/api-types/dist/client/index.d.ts +2 -0
  82. package/node_modules/@specforge/api-types/dist/client/index.d.ts.map +1 -0
  83. package/node_modules/@specforge/api-types/dist/client/index.js +2 -0
  84. package/node_modules/@specforge/api-types/dist/client/index.js.map +1 -0
  85. package/node_modules/@specforge/api-types/dist/index.d.ts +5 -0
  86. package/node_modules/@specforge/api-types/dist/index.d.ts.map +1 -0
  87. package/node_modules/@specforge/api-types/dist/index.js +9 -0
  88. package/node_modules/@specforge/api-types/dist/index.js.map +1 -0
  89. package/node_modules/@specforge/api-types/dist/mcp/error-guidance.d.ts +74 -0
  90. package/node_modules/@specforge/api-types/dist/mcp/error-guidance.d.ts.map +1 -0
  91. package/node_modules/@specforge/api-types/dist/mcp/error-guidance.js +21 -0
  92. package/node_modules/@specforge/api-types/dist/mcp/error-guidance.js.map +1 -0
  93. package/node_modules/@specforge/api-types/dist/mcp/index.d.ts +4 -0
  94. package/node_modules/@specforge/api-types/dist/mcp/index.d.ts.map +1 -0
  95. package/node_modules/@specforge/api-types/dist/mcp/index.js +8 -0
  96. package/node_modules/@specforge/api-types/dist/mcp/index.js.map +1 -0
  97. package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.d.ts +18 -0
  98. package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.d.ts.map +1 -0
  99. package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.js +2 -0
  100. package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.js.map +1 -0
  101. package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.d.ts +39 -0
  102. package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.d.ts.map +1 -0
  103. package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.js +2 -0
  104. package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.js.map +1 -0
  105. package/node_modules/@specforge/api-types/dist/runtime/billing-record.d.ts +18 -0
  106. package/node_modules/@specforge/api-types/dist/runtime/billing-record.d.ts.map +1 -0
  107. package/node_modules/@specforge/api-types/dist/runtime/billing-record.js +7 -0
  108. package/node_modules/@specforge/api-types/dist/runtime/billing-record.js.map +1 -0
  109. package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.d.ts +40 -0
  110. package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.d.ts.map +1 -0
  111. package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.js +19 -0
  112. package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.js.map +1 -0
  113. package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.d.ts +96 -0
  114. package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.d.ts.map +1 -0
  115. package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.js +23 -0
  116. package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.js.map +1 -0
  117. package/node_modules/@specforge/api-types/dist/runtime/epic-record.d.ts +117 -0
  118. package/node_modules/@specforge/api-types/dist/runtime/epic-record.d.ts.map +1 -0
  119. package/node_modules/@specforge/api-types/dist/runtime/epic-record.js +13 -0
  120. package/node_modules/@specforge/api-types/dist/runtime/epic-record.js.map +1 -0
  121. package/node_modules/@specforge/api-types/dist/runtime/feedback-record.d.ts +27 -0
  122. package/node_modules/@specforge/api-types/dist/runtime/feedback-record.d.ts.map +1 -0
  123. package/node_modules/@specforge/api-types/dist/runtime/feedback-record.js +7 -0
  124. package/node_modules/@specforge/api-types/dist/runtime/feedback-record.js.map +1 -0
  125. package/node_modules/@specforge/api-types/dist/runtime/fields.d.ts +31 -0
  126. package/node_modules/@specforge/api-types/dist/runtime/fields.d.ts.map +1 -0
  127. package/node_modules/@specforge/api-types/dist/runtime/fields.js +156 -0
  128. package/node_modules/@specforge/api-types/dist/runtime/fields.js.map +1 -0
  129. package/node_modules/@specforge/api-types/dist/runtime/index.d.ts +18 -0
  130. package/node_modules/@specforge/api-types/dist/runtime/index.d.ts.map +1 -0
  131. package/node_modules/@specforge/api-types/dist/runtime/index.js +18 -0
  132. package/node_modules/@specforge/api-types/dist/runtime/index.js.map +1 -0
  133. package/node_modules/@specforge/api-types/dist/runtime/pagination.d.ts +38 -0
  134. package/node_modules/@specforge/api-types/dist/runtime/pagination.d.ts.map +1 -0
  135. package/node_modules/@specforge/api-types/dist/runtime/pagination.js +54 -0
  136. package/node_modules/@specforge/api-types/dist/runtime/pagination.js.map +1 -0
  137. package/node_modules/@specforge/api-types/dist/runtime/project-invitation.d.ts +14 -0
  138. package/node_modules/@specforge/api-types/dist/runtime/project-invitation.d.ts.map +1 -0
  139. package/node_modules/@specforge/api-types/dist/runtime/project-invitation.js +2 -0
  140. package/node_modules/@specforge/api-types/dist/runtime/project-invitation.js.map +1 -0
  141. package/node_modules/@specforge/api-types/dist/runtime/project-member.d.ts +13 -0
  142. package/node_modules/@specforge/api-types/dist/runtime/project-member.d.ts.map +1 -0
  143. package/node_modules/@specforge/api-types/dist/runtime/project-member.js +2 -0
  144. package/node_modules/@specforge/api-types/dist/runtime/project-member.js.map +1 -0
  145. package/node_modules/@specforge/api-types/dist/runtime/project-validation.d.ts +26 -0
  146. package/node_modules/@specforge/api-types/dist/runtime/project-validation.d.ts.map +1 -0
  147. package/node_modules/@specforge/api-types/dist/runtime/project-validation.js +5 -0
  148. package/node_modules/@specforge/api-types/dist/runtime/project-validation.js.map +1 -0
  149. package/node_modules/@specforge/api-types/dist/runtime/project.d.ts +55 -0
  150. package/node_modules/@specforge/api-types/dist/runtime/project.d.ts.map +1 -0
  151. package/node_modules/@specforge/api-types/dist/runtime/project.js +10 -0
  152. package/node_modules/@specforge/api-types/dist/runtime/project.js.map +1 -0
  153. package/node_modules/@specforge/api-types/dist/runtime/response.d.ts +22 -0
  154. package/node_modules/@specforge/api-types/dist/runtime/response.d.ts.map +1 -0
  155. package/node_modules/@specforge/api-types/dist/runtime/response.js +14 -0
  156. package/node_modules/@specforge/api-types/dist/runtime/response.js.map +1 -0
  157. package/node_modules/@specforge/api-types/dist/runtime/specification-record.d.ts +90 -0
  158. package/node_modules/@specforge/api-types/dist/runtime/specification-record.d.ts.map +1 -0
  159. package/node_modules/@specforge/api-types/dist/runtime/specification-record.js +11 -0
  160. package/node_modules/@specforge/api-types/dist/runtime/specification-record.js.map +1 -0
  161. package/node_modules/@specforge/api-types/dist/runtime/status.d.ts +26 -0
  162. package/node_modules/@specforge/api-types/dist/runtime/status.d.ts.map +1 -0
  163. package/node_modules/@specforge/api-types/dist/runtime/status.js +56 -0
  164. package/node_modules/@specforge/api-types/dist/runtime/status.js.map +1 -0
  165. package/node_modules/@specforge/api-types/dist/runtime/summary.d.ts +58 -0
  166. package/node_modules/@specforge/api-types/dist/runtime/summary.d.ts.map +1 -0
  167. package/node_modules/@specforge/api-types/dist/runtime/summary.js +42 -0
  168. package/node_modules/@specforge/api-types/dist/runtime/summary.js.map +1 -0
  169. package/node_modules/@specforge/api-types/dist/runtime/ticket-record.d.ts +212 -0
  170. package/node_modules/@specforge/api-types/dist/runtime/ticket-record.d.ts.map +1 -0
  171. package/node_modules/@specforge/api-types/dist/runtime/ticket-record.js +18 -0
  172. package/node_modules/@specforge/api-types/dist/runtime/ticket-record.js.map +1 -0
  173. package/node_modules/@specforge/api-types/dist/runtime/user.d.ts +13 -0
  174. package/node_modules/@specforge/api-types/dist/runtime/user.d.ts.map +1 -0
  175. package/node_modules/@specforge/api-types/dist/runtime/user.js +9 -0
  176. package/node_modules/@specforge/api-types/dist/runtime/user.js.map +1 -0
  177. package/node_modules/@specforge/api-types/dist/stores/i-billing-store.d.ts +17 -0
  178. package/node_modules/@specforge/api-types/dist/stores/i-billing-store.d.ts.map +1 -0
  179. package/node_modules/@specforge/api-types/dist/stores/i-billing-store.js +2 -0
  180. package/node_modules/@specforge/api-types/dist/stores/i-billing-store.js.map +1 -0
  181. package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.d.ts +59 -0
  182. package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.d.ts.map +1 -0
  183. package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.js +2 -0
  184. package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.js.map +1 -0
  185. package/node_modules/@specforge/api-types/dist/stores/i-epic-store.d.ts +120 -0
  186. package/node_modules/@specforge/api-types/dist/stores/i-epic-store.d.ts.map +1 -0
  187. package/node_modules/@specforge/api-types/dist/stores/i-epic-store.js +2 -0
  188. package/node_modules/@specforge/api-types/dist/stores/i-epic-store.js.map +1 -0
  189. package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.d.ts +13 -0
  190. package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.d.ts.map +1 -0
  191. package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.js +2 -0
  192. package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.js.map +1 -0
  193. package/node_modules/@specforge/api-types/dist/stores/i-project-store.d.ts +48 -0
  194. package/node_modules/@specforge/api-types/dist/stores/i-project-store.d.ts.map +1 -0
  195. package/node_modules/@specforge/api-types/dist/stores/i-project-store.js +2 -0
  196. package/node_modules/@specforge/api-types/dist/stores/i-project-store.js.map +1 -0
  197. package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.d.ts +37 -0
  198. package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.d.ts.map +1 -0
  199. package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.js +2 -0
  200. package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.js.map +1 -0
  201. package/node_modules/@specforge/api-types/dist/stores/i-spec-store.d.ts +159 -0
  202. package/node_modules/@specforge/api-types/dist/stores/i-spec-store.d.ts.map +1 -0
  203. package/node_modules/@specforge/api-types/dist/stores/i-spec-store.js +2 -0
  204. package/node_modules/@specforge/api-types/dist/stores/i-spec-store.js.map +1 -0
  205. package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.d.ts +87 -0
  206. package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.d.ts.map +1 -0
  207. package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.js +2 -0
  208. package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.js.map +1 -0
  209. package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.d.ts +347 -0
  210. package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.d.ts.map +1 -0
  211. package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.js +2 -0
  212. package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.js.map +1 -0
  213. package/node_modules/@specforge/api-types/dist/stores/i-user-store.d.ts +5 -0
  214. package/node_modules/@specforge/api-types/dist/stores/i-user-store.d.ts.map +1 -0
  215. package/node_modules/@specforge/api-types/dist/stores/i-user-store.js +2 -0
  216. package/node_modules/@specforge/api-types/dist/stores/i-user-store.js.map +1 -0
  217. package/node_modules/@specforge/api-types/dist/stores/index.d.ts +11 -0
  218. package/node_modules/@specforge/api-types/dist/stores/index.d.ts.map +1 -0
  219. package/node_modules/@specforge/api-types/dist/stores/index.js +11 -0
  220. package/node_modules/@specforge/api-types/dist/stores/index.js.map +1 -0
  221. package/node_modules/@specforge/api-types/package.json +43 -0
  222. package/node_modules/@specforge/report-types/README.md +11 -0
  223. package/node_modules/@specforge/report-types/dist/index.d.ts +2 -0
  224. package/node_modules/@specforge/report-types/dist/index.d.ts.map +1 -0
  225. package/node_modules/@specforge/report-types/dist/index.js +2 -0
  226. package/node_modules/@specforge/report-types/dist/index.js.map +1 -0
  227. package/node_modules/@specforge/report-types/dist/reports.d.ts +90 -0
  228. package/node_modules/@specforge/report-types/dist/reports.d.ts.map +1 -0
  229. package/node_modules/@specforge/report-types/dist/reports.js +15 -0
  230. package/node_modules/@specforge/report-types/dist/reports.js.map +1 -0
  231. package/node_modules/@specforge/report-types/package.json +40 -0
  232. package/node_modules/@specforge/session-types/CHANGELOG.md +56 -0
  233. package/node_modules/@specforge/session-types/README.md +18 -0
  234. package/node_modules/@specforge/session-types/dist/index.d.ts +47 -0
  235. package/node_modules/@specforge/session-types/dist/index.d.ts.map +1 -0
  236. package/node_modules/@specforge/session-types/dist/index.js +47 -0
  237. package/node_modules/@specforge/session-types/dist/index.js.map +1 -0
  238. package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.d.ts +46 -0
  239. package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.d.ts.map +1 -0
  240. package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.js +41 -0
  241. package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.js.map +1 -0
  242. package/node_modules/@specforge/session-types/dist/runtime/discovery.d.ts +9 -0
  243. package/node_modules/@specforge/session-types/dist/runtime/discovery.d.ts.map +1 -0
  244. package/node_modules/@specforge/session-types/dist/runtime/discovery.js +2 -0
  245. package/node_modules/@specforge/session-types/dist/runtime/discovery.js.map +1 -0
  246. package/node_modules/@specforge/session-types/dist/runtime/enums.d.ts +51 -0
  247. package/node_modules/@specforge/session-types/dist/runtime/enums.d.ts.map +1 -0
  248. package/node_modules/@specforge/session-types/dist/runtime/enums.js +161 -0
  249. package/node_modules/@specforge/session-types/dist/runtime/enums.js.map +1 -0
  250. package/node_modules/@specforge/session-types/dist/runtime/implementation-config.d.ts +177 -0
  251. package/node_modules/@specforge/session-types/dist/runtime/implementation-config.d.ts.map +1 -0
  252. package/node_modules/@specforge/session-types/dist/runtime/implementation-config.js +96 -0
  253. package/node_modules/@specforge/session-types/dist/runtime/implementation-config.js.map +1 -0
  254. package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.d.ts +8 -0
  255. package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.d.ts.map +1 -0
  256. package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.js +2 -0
  257. package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.js.map +1 -0
  258. package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.d.ts +489 -0
  259. package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.d.ts.map +1 -0
  260. package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.js +152 -0
  261. package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.js.map +1 -0
  262. package/node_modules/@specforge/session-types/dist/runtime/implementation-session.d.ts +8 -0
  263. package/node_modules/@specforge/session-types/dist/runtime/implementation-session.d.ts.map +1 -0
  264. package/node_modules/@specforge/session-types/dist/runtime/implementation-session.js +2 -0
  265. package/node_modules/@specforge/session-types/dist/runtime/implementation-session.js.map +1 -0
  266. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.d.ts +319 -0
  267. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.d.ts.map +1 -0
  268. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.js +2 -0
  269. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.js.map +1 -0
  270. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.d.ts +128 -0
  271. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.d.ts.map +1 -0
  272. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.js +30 -0
  273. package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.js.map +1 -0
  274. package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.d.ts +4 -0
  275. package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.d.ts.map +1 -0
  276. package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.js +2 -0
  277. package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.js.map +1 -0
  278. package/node_modules/@specforge/session-types/dist/runtime/planning-config.d.ts +82 -0
  279. package/node_modules/@specforge/session-types/dist/runtime/planning-config.d.ts.map +1 -0
  280. package/node_modules/@specforge/session-types/dist/runtime/planning-config.js +61 -0
  281. package/node_modules/@specforge/session-types/dist/runtime/planning-config.js.map +1 -0
  282. package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.d.ts +34 -0
  283. package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.d.ts.map +1 -0
  284. package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.js +14 -0
  285. package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.js.map +1 -0
  286. package/node_modules/@specforge/session-types/dist/runtime/planning-operations.d.ts +6 -0
  287. package/node_modules/@specforge/session-types/dist/runtime/planning-operations.d.ts.map +1 -0
  288. package/node_modules/@specforge/session-types/dist/runtime/planning-operations.js +65 -0
  289. package/node_modules/@specforge/session-types/dist/runtime/planning-operations.js.map +1 -0
  290. package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.d.ts +34 -0
  291. package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.d.ts.map +1 -0
  292. package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.js +22 -0
  293. package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.js.map +1 -0
  294. package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.d.ts +73 -0
  295. package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.d.ts.map +1 -0
  296. package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.js +61 -0
  297. package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.js.map +1 -0
  298. package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.d.ts +249 -0
  299. package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.d.ts.map +1 -0
  300. package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.js +96 -0
  301. package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.js.map +1 -0
  302. package/node_modules/@specforge/session-types/dist/runtime/planning-session.d.ts +574 -0
  303. package/node_modules/@specforge/session-types/dist/runtime/planning-session.d.ts.map +1 -0
  304. package/node_modules/@specforge/session-types/dist/runtime/planning-session.js +40 -0
  305. package/node_modules/@specforge/session-types/dist/runtime/planning-session.js.map +1 -0
  306. package/node_modules/@specforge/session-types/dist/runtime/process-guidance.d.ts +221 -0
  307. package/node_modules/@specforge/session-types/dist/runtime/process-guidance.d.ts.map +1 -0
  308. package/node_modules/@specforge/session-types/dist/runtime/process-guidance.js +41 -0
  309. package/node_modules/@specforge/session-types/dist/runtime/process-guidance.js.map +1 -0
  310. package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.d.ts +4 -0
  311. package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.d.ts.map +1 -0
  312. package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.js +2 -0
  313. package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.js.map +1 -0
  314. package/node_modules/@specforge/session-types/dist/runtime/work-session-action.d.ts +9 -0
  315. package/node_modules/@specforge/session-types/dist/runtime/work-session-action.d.ts.map +1 -0
  316. package/node_modules/@specforge/session-types/dist/runtime/work-session-action.js +2 -0
  317. package/node_modules/@specforge/session-types/dist/runtime/work-session-action.js.map +1 -0
  318. package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.d.ts +4 -0
  319. package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.d.ts.map +1 -0
  320. package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.js +2 -0
  321. package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.js.map +1 -0
  322. package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.d.ts +4 -0
  323. package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.d.ts.map +1 -0
  324. package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.js +2 -0
  325. package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.js.map +1 -0
  326. package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.d.ts +4 -0
  327. package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.d.ts.map +1 -0
  328. package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.js +2 -0
  329. package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.js.map +1 -0
  330. package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.d.ts +4 -0
  331. package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.d.ts.map +1 -0
  332. package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.js +2 -0
  333. package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.js.map +1 -0
  334. package/node_modules/@specforge/session-types/dist/runtime/work-session.d.ts +4 -0
  335. package/node_modules/@specforge/session-types/dist/runtime/work-session.d.ts.map +1 -0
  336. package/node_modules/@specforge/session-types/dist/runtime/work-session.js +2 -0
  337. package/node_modules/@specforge/session-types/dist/runtime/work-session.js.map +1 -0
  338. package/node_modules/@specforge/session-types/dist/runtime/working-context.d.ts +43 -0
  339. package/node_modules/@specforge/session-types/dist/runtime/working-context.d.ts.map +1 -0
  340. package/node_modules/@specforge/session-types/dist/runtime/working-context.js +2 -0
  341. package/node_modules/@specforge/session-types/dist/runtime/working-context.js.map +1 -0
  342. package/node_modules/@specforge/session-types/dist/runtime/write-plan.d.ts +146 -0
  343. package/node_modules/@specforge/session-types/dist/runtime/write-plan.d.ts.map +1 -0
  344. package/node_modules/@specforge/session-types/dist/runtime/write-plan.js +2 -0
  345. package/node_modules/@specforge/session-types/dist/runtime/write-plan.js.map +1 -0
  346. package/node_modules/@specforge/session-types/dist/schema/discovery.d.ts +76 -0
  347. package/node_modules/@specforge/session-types/dist/schema/discovery.d.ts.map +1 -0
  348. package/node_modules/@specforge/session-types/dist/schema/discovery.js +42 -0
  349. package/node_modules/@specforge/session-types/dist/schema/discovery.js.map +1 -0
  350. package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.d.ts +48 -0
  351. package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.d.ts.map +1 -0
  352. package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.js +28 -0
  353. package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.js.map +1 -0
  354. package/node_modules/@specforge/session-types/dist/schema/implementation-session.d.ts +37 -0
  355. package/node_modules/@specforge/session-types/dist/schema/implementation-session.d.ts.map +1 -0
  356. package/node_modules/@specforge/session-types/dist/schema/implementation-session.js +24 -0
  357. package/node_modules/@specforge/session-types/dist/schema/implementation-session.js.map +1 -0
  358. package/node_modules/@specforge/session-types/dist/schema/index.d.ts +12 -0
  359. package/node_modules/@specforge/session-types/dist/schema/index.d.ts.map +1 -0
  360. package/node_modules/@specforge/session-types/dist/schema/index.js +12 -0
  361. package/node_modules/@specforge/session-types/dist/schema/index.js.map +1 -0
  362. package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.d.ts +74 -0
  363. package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.d.ts.map +1 -0
  364. package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.js +31 -0
  365. package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.js.map +1 -0
  366. package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.d.ts +27 -0
  367. package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.d.ts.map +1 -0
  368. package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.js +11 -0
  369. package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.js.map +1 -0
  370. package/node_modules/@specforge/session-types/dist/schema/work-session-action.d.ts +94 -0
  371. package/node_modules/@specforge/session-types/dist/schema/work-session-action.d.ts.map +1 -0
  372. package/node_modules/@specforge/session-types/dist/schema/work-session-action.js +76 -0
  373. package/node_modules/@specforge/session-types/dist/schema/work-session-action.js.map +1 -0
  374. package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.d.ts +42 -0
  375. package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.d.ts.map +1 -0
  376. package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.js +25 -0
  377. package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.js.map +1 -0
  378. package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.d.ts +27 -0
  379. package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.d.ts.map +1 -0
  380. package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.js +11 -0
  381. package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.js.map +1 -0
  382. package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.d.ts +42 -0
  383. package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.d.ts.map +1 -0
  384. package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.js +28 -0
  385. package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.js.map +1 -0
  386. package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.d.ts +72 -0
  387. package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.d.ts.map +1 -0
  388. package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.js +43 -0
  389. package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.js.map +1 -0
  390. package/node_modules/@specforge/session-types/dist/schema/work-session.d.ts +203 -0
  391. package/node_modules/@specforge/session-types/dist/schema/work-session.d.ts.map +1 -0
  392. package/node_modules/@specforge/session-types/dist/schema/work-session.js +86 -0
  393. package/node_modules/@specforge/session-types/dist/schema/work-session.js.map +1 -0
  394. package/node_modules/@specforge/session-types/dist/stores/config-store-interface.d.ts +17 -0
  395. package/node_modules/@specforge/session-types/dist/stores/config-store-interface.d.ts.map +1 -0
  396. package/node_modules/@specforge/session-types/dist/stores/config-store-interface.js +2 -0
  397. package/node_modules/@specforge/session-types/dist/stores/config-store-interface.js.map +1 -0
  398. package/node_modules/@specforge/session-types/dist/stores/discovery-store.d.ts +31 -0
  399. package/node_modules/@specforge/session-types/dist/stores/discovery-store.d.ts.map +1 -0
  400. package/node_modules/@specforge/session-types/dist/stores/discovery-store.js +2 -0
  401. package/node_modules/@specforge/session-types/dist/stores/discovery-store.js.map +1 -0
  402. package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.d.ts +19 -0
  403. package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.d.ts.map +1 -0
  404. package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.js +2 -0
  405. package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.js.map +1 -0
  406. package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.d.ts +16 -0
  407. package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.d.ts.map +1 -0
  408. package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.js +2 -0
  409. package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.js.map +1 -0
  410. package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.d.ts +28 -0
  411. package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.d.ts.map +1 -0
  412. package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.js +2 -0
  413. package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.js.map +1 -0
  414. package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.d.ts +12 -0
  415. package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.d.ts.map +1 -0
  416. package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.js +2 -0
  417. package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.js.map +1 -0
  418. package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.d.ts +10 -0
  419. package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.d.ts.map +1 -0
  420. package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.js +2 -0
  421. package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.js.map +1 -0
  422. package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.d.ts +13 -0
  423. package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.d.ts.map +1 -0
  424. package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.js +2 -0
  425. package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.js.map +1 -0
  426. package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.d.ts +10 -0
  427. package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.d.ts.map +1 -0
  428. package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.js +2 -0
  429. package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.js.map +1 -0
  430. package/node_modules/@specforge/session-types/dist/stores/planning-session-store.d.ts +20 -0
  431. package/node_modules/@specforge/session-types/dist/stores/planning-session-store.d.ts.map +1 -0
  432. package/node_modules/@specforge/session-types/dist/stores/planning-session-store.js +2 -0
  433. package/node_modules/@specforge/session-types/dist/stores/planning-session-store.js.map +1 -0
  434. package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.d.ts +15 -0
  435. package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.d.ts.map +1 -0
  436. package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.js +2 -0
  437. package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.js.map +1 -0
  438. package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.d.ts +29 -0
  439. package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.d.ts.map +1 -0
  440. package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.js +2 -0
  441. package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.js.map +1 -0
  442. package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.d.ts +9 -0
  443. package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.d.ts.map +1 -0
  444. package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.js +2 -0
  445. package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.js.map +1 -0
  446. package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.d.ts +9 -0
  447. package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.d.ts.map +1 -0
  448. package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.js +2 -0
  449. package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.js.map +1 -0
  450. package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.d.ts +10 -0
  451. package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.d.ts.map +1 -0
  452. package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.js +2 -0
  453. package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.js.map +1 -0
  454. package/node_modules/@specforge/session-types/dist/stores/work-session-store.d.ts +23 -0
  455. package/node_modules/@specforge/session-types/dist/stores/work-session-store.d.ts.map +1 -0
  456. package/node_modules/@specforge/session-types/dist/stores/work-session-store.js +2 -0
  457. package/node_modules/@specforge/session-types/dist/stores/work-session-store.js.map +1 -0
  458. package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.d.ts +8 -0
  459. package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.d.ts.map +1 -0
  460. package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.js +2 -0
  461. package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.js.map +1 -0
  462. package/node_modules/@specforge/session-types/dist/stores/working-context-store.d.ts +27 -0
  463. package/node_modules/@specforge/session-types/dist/stores/working-context-store.d.ts.map +1 -0
  464. package/node_modules/@specforge/session-types/dist/stores/working-context-store.js +2 -0
  465. package/node_modules/@specforge/session-types/dist/stores/working-context-store.js.map +1 -0
  466. package/node_modules/@specforge/session-types/package.json +43 -0
  467. package/node_modules/@specforge/spec-types/README.md +28 -0
  468. package/node_modules/@specforge/spec-types/dist/index.d.ts +4 -0
  469. package/node_modules/@specforge/spec-types/dist/index.d.ts.map +1 -0
  470. package/node_modules/@specforge/spec-types/dist/index.js +6 -0
  471. package/node_modules/@specforge/spec-types/dist/index.js.map +1 -0
  472. package/node_modules/@specforge/spec-types/dist/json-schema/v1.1/openspec.schema.json +1129 -0
  473. package/node_modules/@specforge/spec-types/dist/openspec-schema.d.ts +4 -0
  474. package/node_modules/@specforge/spec-types/dist/openspec-schema.d.ts.map +1 -0
  475. package/node_modules/@specforge/spec-types/dist/openspec-schema.js +77 -0
  476. package/node_modules/@specforge/spec-types/dist/openspec-schema.js.map +1 -0
  477. package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.d.ts +14 -0
  478. package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.d.ts.map +1 -0
  479. package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.js +2 -0
  480. package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.js.map +1 -0
  481. package/node_modules/@specforge/spec-types/dist/runtime/blueprint.d.ts +7 -0
  482. package/node_modules/@specforge/spec-types/dist/runtime/blueprint.d.ts.map +1 -0
  483. package/node_modules/@specforge/spec-types/dist/runtime/blueprint.js +2 -0
  484. package/node_modules/@specforge/spec-types/dist/runtime/blueprint.js.map +1 -0
  485. package/node_modules/@specforge/spec-types/dist/runtime/epic.d.ts +2 -0
  486. package/node_modules/@specforge/spec-types/dist/runtime/epic.d.ts.map +1 -0
  487. package/node_modules/@specforge/spec-types/dist/runtime/epic.js +2 -0
  488. package/node_modules/@specforge/spec-types/dist/runtime/epic.js.map +1 -0
  489. package/node_modules/@specforge/spec-types/dist/runtime/index.d.ts +7 -0
  490. package/node_modules/@specforge/spec-types/dist/runtime/index.d.ts.map +1 -0
  491. package/node_modules/@specforge/spec-types/dist/runtime/index.js +7 -0
  492. package/node_modules/@specforge/spec-types/dist/runtime/index.js.map +1 -0
  493. package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.d.ts +2 -0
  494. package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.d.ts.map +1 -0
  495. package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.js +2 -0
  496. package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.js.map +1 -0
  497. package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.d.ts +2 -0
  498. package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.d.ts.map +1 -0
  499. package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.js +2 -0
  500. package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.js.map +1 -0
  501. package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.d.ts +2 -0
  502. package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.d.ts.map +1 -0
  503. package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.js +2 -0
  504. package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.js.map +1 -0
  505. package/node_modules/@specforge/spec-types/dist/runtime/planning/index.d.ts +10 -0
  506. package/node_modules/@specforge/spec-types/dist/runtime/planning/index.d.ts.map +1 -0
  507. package/node_modules/@specforge/spec-types/dist/runtime/planning/index.js +10 -0
  508. package/node_modules/@specforge/spec-types/dist/runtime/planning/index.js.map +1 -0
  509. package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.d.ts +2 -0
  510. package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.d.ts.map +1 -0
  511. package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.js +2 -0
  512. package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.js.map +1 -0
  513. package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.d.ts +2 -0
  514. package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.d.ts.map +1 -0
  515. package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.js +2 -0
  516. package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.js.map +1 -0
  517. package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.d.ts +2 -0
  518. package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.d.ts.map +1 -0
  519. package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.js +2 -0
  520. package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.js.map +1 -0
  521. package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.d.ts +2 -0
  522. package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.d.ts.map +1 -0
  523. package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.js +2 -0
  524. package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.js.map +1 -0
  525. package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.d.ts +2 -0
  526. package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.d.ts.map +1 -0
  527. package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.js +2 -0
  528. package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.js.map +1 -0
  529. package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.d.ts +2 -0
  530. package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.d.ts.map +1 -0
  531. package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.js +2 -0
  532. package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.js.map +1 -0
  533. package/node_modules/@specforge/spec-types/dist/runtime/specification.d.ts +2 -0
  534. package/node_modules/@specforge/spec-types/dist/runtime/specification.d.ts.map +1 -0
  535. package/node_modules/@specforge/spec-types/dist/runtime/specification.js +2 -0
  536. package/node_modules/@specforge/spec-types/dist/runtime/specification.js.map +1 -0
  537. package/node_modules/@specforge/spec-types/dist/runtime/ticket.d.ts +2 -0
  538. package/node_modules/@specforge/spec-types/dist/runtime/ticket.d.ts.map +1 -0
  539. package/node_modules/@specforge/spec-types/dist/runtime/ticket.js +2 -0
  540. package/node_modules/@specforge/spec-types/dist/runtime/ticket.js.map +1 -0
  541. package/node_modules/@specforge/spec-types/dist/schema/auxiliary.d.ts +266 -0
  542. package/node_modules/@specforge/spec-types/dist/schema/auxiliary.d.ts.map +1 -0
  543. package/node_modules/@specforge/spec-types/dist/schema/auxiliary.js +143 -0
  544. package/node_modules/@specforge/spec-types/dist/schema/auxiliary.js.map +1 -0
  545. package/node_modules/@specforge/spec-types/dist/schema/blueprint.d.ts +47 -0
  546. package/node_modules/@specforge/spec-types/dist/schema/blueprint.d.ts.map +1 -0
  547. package/node_modules/@specforge/spec-types/dist/schema/blueprint.js +33 -0
  548. package/node_modules/@specforge/spec-types/dist/schema/blueprint.js.map +1 -0
  549. package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.d.ts +33 -0
  550. package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.d.ts.map +1 -0
  551. package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.js +181 -0
  552. package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.js.map +1 -0
  553. package/node_modules/@specforge/spec-types/dist/schema/epic.d.ts +955 -0
  554. package/node_modules/@specforge/spec-types/dist/schema/epic.d.ts.map +1 -0
  555. package/node_modules/@specforge/spec-types/dist/schema/epic.js +33 -0
  556. package/node_modules/@specforge/spec-types/dist/schema/epic.js.map +1 -0
  557. package/node_modules/@specforge/spec-types/dist/schema/index.d.ts +12 -0
  558. package/node_modules/@specforge/spec-types/dist/schema/index.d.ts.map +1 -0
  559. package/node_modules/@specforge/spec-types/dist/schema/index.js +25 -0
  560. package/node_modules/@specforge/spec-types/dist/schema/index.js.map +1 -0
  561. package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.d.ts +174 -0
  562. package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.d.ts.map +1 -0
  563. package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.js +317 -0
  564. package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.js.map +1 -0
  565. package/node_modules/@specforge/spec-types/dist/schema/patterns.d.ts +274 -0
  566. package/node_modules/@specforge/spec-types/dist/schema/patterns.d.ts.map +1 -0
  567. package/node_modules/@specforge/spec-types/dist/schema/patterns.js +106 -0
  568. package/node_modules/@specforge/spec-types/dist/schema/patterns.js.map +1 -0
  569. package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.d.ts +44 -0
  570. package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.d.ts.map +1 -0
  571. package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.js +13 -0
  572. package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.js.map +1 -0
  573. package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.d.ts +21 -0
  574. package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.d.ts.map +1 -0
  575. package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.js +14 -0
  576. package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.js.map +1 -0
  577. package/node_modules/@specforge/spec-types/dist/schema/planning/goal.d.ts +27 -0
  578. package/node_modules/@specforge/spec-types/dist/schema/planning/goal.d.ts.map +1 -0
  579. package/node_modules/@specforge/spec-types/dist/schema/planning/goal.js +13 -0
  580. package/node_modules/@specforge/spec-types/dist/schema/planning/goal.js.map +1 -0
  581. package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.d.ts +29 -0
  582. package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.d.ts.map +1 -0
  583. package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.js +14 -0
  584. package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.js.map +1 -0
  585. package/node_modules/@specforge/spec-types/dist/schema/planning/index.d.ts +12 -0
  586. package/node_modules/@specforge/spec-types/dist/schema/planning/index.d.ts.map +1 -0
  587. package/node_modules/@specforge/spec-types/dist/schema/planning/index.js +12 -0
  588. package/node_modules/@specforge/spec-types/dist/schema/planning/index.js.map +1 -0
  589. package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.d.ts +27 -0
  590. package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.d.ts.map +1 -0
  591. package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.js +15 -0
  592. package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.js.map +1 -0
  593. package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.d.ts +17 -0
  594. package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.d.ts.map +1 -0
  595. package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.js +16 -0
  596. package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.js.map +1 -0
  597. package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.d.ts +63 -0
  598. package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.d.ts.map +1 -0
  599. package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.js +16 -0
  600. package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.js.map +1 -0
  601. package/node_modules/@specforge/spec-types/dist/schema/planning/scope.d.ts +19 -0
  602. package/node_modules/@specforge/spec-types/dist/schema/planning/scope.d.ts.map +1 -0
  603. package/node_modules/@specforge/spec-types/dist/schema/planning/scope.js +8 -0
  604. package/node_modules/@specforge/spec-types/dist/schema/planning/scope.js.map +1 -0
  605. package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.d.ts +51 -0
  606. package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.d.ts.map +1 -0
  607. package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.js +16 -0
  608. package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.js.map +1 -0
  609. package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.d.ts +19 -0
  610. package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.d.ts.map +1 -0
  611. package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.js +8 -0
  612. package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.js.map +1 -0
  613. package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.d.ts +27 -0
  614. package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.d.ts.map +1 -0
  615. package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.js +14 -0
  616. package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.js.map +1 -0
  617. package/node_modules/@specforge/spec-types/dist/schema/specification.d.ts +1839 -0
  618. package/node_modules/@specforge/spec-types/dist/schema/specification.d.ts.map +1 -0
  619. package/node_modules/@specforge/spec-types/dist/schema/specification.js +43 -0
  620. package/node_modules/@specforge/spec-types/dist/schema/specification.js.map +1 -0
  621. package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.d.ts +58 -0
  622. package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.d.ts.map +1 -0
  623. package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.js +73 -0
  624. package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.js.map +1 -0
  625. package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.d.ts +71 -0
  626. package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.d.ts.map +1 -0
  627. package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.js +96 -0
  628. package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.js.map +1 -0
  629. package/node_modules/@specforge/spec-types/dist/schema/ticket.d.ts +444 -0
  630. package/node_modules/@specforge/spec-types/dist/schema/ticket.d.ts.map +1 -0
  631. package/node_modules/@specforge/spec-types/dist/schema/ticket.js +49 -0
  632. package/node_modules/@specforge/spec-types/dist/schema/ticket.js.map +1 -0
  633. package/node_modules/@specforge/spec-types/package.json +41 -0
  634. package/package.json +40 -25
  635. package/src/cli/templates/agents/content/core/sfag-orchestrator.ts +135 -51
  636. package/src/cli/templates/agents/content/core/sfag-spec-creator.ts +124 -83
  637. package/src/cli/templates/agents/content/core/sfag-ticket-implementer.ts +247 -163
  638. package/src/cli/templates/agents/content/core/sfag-work-resolver.ts +211 -0
  639. package/src/cli/templates/agents/index.ts +2 -0
  640. package/src/cli/templates/content/sf-commit.ts +2 -2
  641. package/src/cli/templates/content/sf-reset.ts +45 -28
  642. package/src/cli/templates/skills/specforge-orchestrator.md +15 -10
  643. package/src/cli/templates/skills/specforge-worker.md +4 -3
@@ -0,0 +1,211 @@
1
+ /**
2
+ * SFAG-Work-Resolver Agent Template
3
+ *
4
+ * Human-in-the-loop triage of the recorded discoveries + blocked tickets that
5
+ * autonomous implementation surfaces. This agent is the MANUAL stand-in for the
6
+ * (dormant) review lifecycle: there is no deterministic resolution loop, so a
7
+ * human + this chat agent decide what happens to each discovery, then hand work
8
+ * back to the autonomous ticket-implementer (SWS).
9
+ *
10
+ * Unblocking a blocking discovery is the HUMAN's `resolve_discovery` action in
11
+ * the SpecForge web app — it is NOT an MCP tool. There is no
12
+ * `clear_ticket_block` / `set_ticket_blocked` verb.
13
+ */
14
+
15
+ import type { AgentTemplate } from '../../../../commands/scaffold/agent-types.js';
16
+
17
+ export const SFAG_WORK_RESOLVER: AgentTemplate = {
18
+ name: 'sfag-work-resolver',
19
+ description: 'Triage discoveries and blocked tickets with the human, then hand work back to autonomous implementation',
20
+ triggerDescription: `Use this agent when autonomous implementation has stalled on blocked tickets or has recorded discoveries (blockers, tech debt, improvements, scope changes) that need a human decision. It triages each one WITH the human in chat, converts the ones worth acting on into tickets/epics, and points the human at the web app to unblock a blocking discovery.
21
+
22
+ <example>
23
+ Context: The ticket-implementer reported a blocking discovery and stopped.
24
+ user: "O worker travou num blocker, resolve isso"
25
+ assistant: "Launching sfag-work-resolver to triage the blocked ticket and its discovery with you, then hand work back once it's unblocked."
26
+ </example>
27
+
28
+ <example>
29
+ Context: Several discoveries piled up during a run and need a decision.
30
+ user: "Revisa as discoveries que apareceram na implementação"
31
+ assistant: "Launching sfag-work-resolver to walk through each discovery with you — convert, dismiss, or unblock."
32
+ </example>
33
+
34
+ <example>
35
+ Context: A ticket is stuck as blocked and the user wants it moving again.
36
+ user: "O ticket AUTH-004 tá blocked, o que aconteceu?"
37
+ assistant: "Launching sfag-work-resolver to read the blocking discovery, decide with you, and get AUTH-004 back to ready."
38
+ </example>`,
39
+ model: 'opus',
40
+ color: 'yellow',
41
+ category: 'SpecForge',
42
+ memory: 'project',
43
+ content: `# SpecForge Work Resolver Agent
44
+
45
+ You triage the **discoveries** and **blocked tickets** that autonomous implementation
46
+ surfaces. You do this WITH the human, in chat. You are the manual stand-in for the
47
+ (dormant) review lifecycle: there is no deterministic resolution loop, so every decision
48
+ is made by a human and enacted by you.
49
+
50
+ You do NOT implement tickets. You do NOT write code. You decide, with the human, what
51
+ each recorded discovery deserves, and you get blocked tickets moving again.
52
+
53
+ ## Prime Directive — you do not unblock, the human does
54
+
55
+ A ticket is blocked because a **blocking discovery** was recorded against it (there is
56
+ **no** \`clear_ticket_block\` and **no** \`set_ticket_blocked\` verb). The only thing that
57
+ unblocks it is the human's **\`resolve_discovery\`** action **in the SpecForge web app** —
58
+ \`resolve_discovery\` is a webapp action, **NOT an MCP tool you can call**. Resolving the
59
+ blocking discovery flips the ticket \`blocked → pending\`; the readiness cascade then
60
+ re-derives dependency-free tickets \`→ ready\`.
61
+
62
+ Your job: surface each blocker/discovery clearly, recommend a decision, and — once the
63
+ human has resolved it in the web app — hand the ticket back to autonomous work.
64
+
65
+ ## Context Bootstrapping
66
+
67
+ Before any tool call, read the project context from the local config:
68
+ \`\`\`
69
+ Read .specforge.json from project root → extract:
70
+ - project.id → projectId
71
+ - activeSpecification.id → specificationId
72
+ \`\`\`
73
+ All tool calls that need projectId/specificationId use these values. No session store.
74
+
75
+ ## Workflow
76
+
77
+ ### Step 1: Survey what's open
78
+
79
+ Read the spec's recorded discoveries and blocked tickets:
80
+ \`\`\`
81
+ // The spec's open discoveries (a blocking discovery IS the block).
82
+ get_pending_discoveries({ specificationId })
83
+
84
+ // The spec-wide dispatch view — blocked + paused sessions and their reasons.
85
+ get_implementation_status({ projectId, specificationId, status: "blocked" })
86
+
87
+ // The blocked tickets with the statusReason that explains why.
88
+ get_blocked_tickets({ specificationId })
89
+ \`\`\`
90
+
91
+ For any discovery you need to inspect in detail:
92
+ \`\`\`
93
+ get_discovery({ discoveryId }) // a single Discovery
94
+ list_discoveries({ workSessionId }) // discoveries scoped to one session
95
+ \`\`\`
96
+
97
+ Build one list: each blocked ticket, the discovery that blocked it, and every other
98
+ open (non-blocking) discovery — tech debt, improvements, scope changes.
99
+
100
+ ### Step 2: Triage each item WITH the human
101
+
102
+ For EACH discovery, present it to the human and ask for a decision. Never decide silently.
103
+
104
+ Each discovery carries an **Observation** (what was concretely found) and an
105
+ **Evaluation** (why it matters + options). Surface both, then recommend:
106
+
107
+ - **Convert → ticket/epic** — the discovery is real work the spec should carry.
108
+ - **Dismiss / accept as-is** — noted, but no action (won't-fix, already-covered, out of scope).
109
+ - **Unblock** (blocking discoveries only) — the human resolves it in the web app so the
110
+ ticket returns to the queue.
111
+
112
+ Present it like this and WAIT for the human's call:
113
+ \`\`\`
114
+ DISCOVERY {discoveryId} ({type}, {severity})
115
+ Ticket: {ticketId} ({blocked | active})
116
+ Observation: {what was found}
117
+ Evaluation: {why it matters + options}
118
+ Recommend: convert → ticket | convert → epic | dismiss | unblock (you resolve in web app)
119
+ \`\`\`
120
+
121
+ ### Step 3: Act on the decision
122
+
123
+ **Convert → ticket / epic** (planning ops). Open a planning session and create the
124
+ follow-up work — planning runs independently of implementation:
125
+ \`\`\`
126
+ start_planning_session({ specificationId })
127
+
128
+ // A follow-up ticket under an existing epic:
129
+ action_planning_session({
130
+ operation: {
131
+ type: "create_ticket",
132
+ epicId,
133
+ title: "...",
134
+ description: "From discovery {discoveryId}: ...",
135
+ acceptanceCriteria: [...],
136
+ implementationSteps: [...],
137
+ dependsOn: [...]
138
+ }
139
+ })
140
+
141
+ // Or a new epic when the discovery is a larger body of work:
142
+ action_planning_session({
143
+ operation: { type: "create_epic", title: "...", objective: "...", acceptanceCriteria: [...] }
144
+ })
145
+ \`\`\`
146
+ When the new ticket exists, the discovery's own resolution (converted/dismissed) is what
147
+ the human records via \`resolve_discovery\` in the web app.
148
+
149
+ **Dismiss / accept.** No planning op. The discovery stays on record; for a *blocking*
150
+ discovery the human still has to resolve it in the web app to move the ticket.
151
+
152
+ ### Step 4: Unblock — the human resolves the blocking discovery
153
+
154
+ You cannot unblock from here. Direct the human to the web app:
155
+
156
+ - Open the specification in the SpecForge web app.
157
+ - For each blocking discovery, choose its resolution (\`resolve_discovery\`) — convert to
158
+ the ticket/epic you drafted in Step 3, or dismiss it.
159
+ - Resolving sets the ticket \`blocked → pending\`; the readiness cascade re-derives
160
+ dependency-free tickets \`→ ready\`.
161
+
162
+ Confirm it landed:
163
+ \`\`\`
164
+ get_implementation_status({ projectId, specificationId, status: "ready" })
165
+ get_blocked_tickets({ specificationId }) // the ticket should be gone from here
166
+ \`\`\`
167
+
168
+ ### Step 5: Hand back to autonomous work
169
+
170
+ Once a ticket is \`ready\` again, hand it back to autonomous implementation — a fresh
171
+ work session (SWS). The re-dispatched worker re-attaches to any paused session and
172
+ continues; the per-attempt retry is tracked on \`WorkSession.retryCount\`.
173
+ \`\`\`
174
+ start_work_session({ ticketId })
175
+ \`\`\`
176
+ Or tell the human to relaunch \`sfag-ticket-implementer\` on the now-\`ready\` ticket.
177
+
178
+ ## Report
179
+
180
+ Close every session with a short summary:
181
+ \`\`\`
182
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
183
+ WORK RESOLUTION SUMMARY
184
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
185
+ Converted → tickets/epics: {list}
186
+ Dismissed: {list}
187
+ Unblocked (via web app): {ticketId: blocked → pending → ready}
188
+ Handed back to work: {ticketId}
189
+ Still open: {list — awaiting the human's resolve_discovery}
190
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
191
+ \`\`\`
192
+
193
+ ## What You Are NOT
194
+
195
+ - You are NOT an implementer. You never write code or complete tickets — hand \`ready\`
196
+ tickets back to \`sfag-ticket-implementer\`.
197
+ - You are NOT able to unblock a ticket yourself. Unblocking is the human's
198
+ \`resolve_discovery\` in the web app. There is no \`clear_ticket_block\` and no
199
+ \`set_ticket_blocked\` verb.
200
+ - You are NOT autonomous. Every triage decision goes through the human first.
201
+
202
+ ## Rules
203
+
204
+ - **Always surface the decision.** One discovery, one recommendation, one human call.
205
+ - **Convert with substance.** A converted ticket carries the discovery's observation,
206
+ concrete acceptance criteria, and its dependencies — not a one-line stub.
207
+ - **Blocking discoveries are resolved in the web app, not here.** Draft the follow-up,
208
+ then point the human at \`resolve_discovery\`.
209
+ - **Re-work is a fresh \`start_work_session\` on a \`ready\` ticket** — never a reset.
210
+ `,
211
+ };
@@ -9,12 +9,14 @@ import type { AgentTemplate, AgentCategory } from '../../commands/scaffold/agent
9
9
  import { SFAG_ORCHESTRATOR } from './content/core/sfag-orchestrator.js';
10
10
  import { SFAG_SPEC_CREATOR } from './content/core/sfag-spec-creator.js';
11
11
  import { SFAG_TICKET_IMPLEMENTER } from './content/core/sfag-ticket-implementer.js';
12
+ import { SFAG_WORK_RESOLVER } from './content/core/sfag-work-resolver.js';
12
13
  import { SFAG_PACKAGE_RESEARCHER } from './content/research/sfag-package-researcher.js';
13
14
 
14
15
  const AGENT_TEMPLATES: AgentTemplate[] = [
15
16
  SFAG_ORCHESTRATOR,
16
17
  SFAG_SPEC_CREATOR,
17
18
  SFAG_TICKET_IMPLEMENTER,
19
+ SFAG_WORK_RESOLVER,
18
20
  SFAG_PACKAGE_RESEARCHER,
19
21
  ];
20
22
 
@@ -18,7 +18,7 @@ Create a git commit with SpecForge ticket metadata.
18
18
  **MCP Calls:**
19
19
  \`\`\`typescript
20
20
  if ($ARGUMENTS) {
21
- get_ticket({ ticketId: $ARGUMENTS })
21
+ get({ type: 'ticket', id: $ARGUMENTS })
22
22
  } else {
23
23
  // Read active ticket from .specforge.json or find active ticket
24
24
  const config = readFile('.specforge.json')
@@ -26,7 +26,7 @@ if ($ARGUMENTS) {
26
26
  // Find the currently active ticket
27
27
  list_tickets({ specificationId, status: ["active"] })
28
28
  // Use the active ticket
29
- get_ticket({ ticketId: activeTicket.id })
29
+ get({ type: 'ticket', id: activeTicket.id })
30
30
  }
31
31
  \`\`\`
32
32
 
@@ -1,19 +1,24 @@
1
1
  /**
2
2
  * SF-Reset Command Template
3
3
  *
4
- * Template for resetting ticket statuses with dependency awareness.
4
+ * Re-work / recovery guide for a blocked or paused WorkSession. There is NO coarse
5
+ * `reset_work_session` verb (dropped, Gabriel 2026-06): re-work happens via a fresh
6
+ * SWS on a `ready` ticket after the human's `resolve_discovery` unblocks the blocking
7
+ * discovery (`blocked → pending`, then the readiness cascade re-derives `→ ready`).
5
8
  */
6
9
 
7
- export const SF_RESET_CONTENT = `# Reset Ticket Statuses (SpecForge)
10
+ export const SF_RESET_CONTENT = `# Re-work a Blocked Ticket (SpecForge)
8
11
 
9
- Reset ticket statuses to ready state with dependency awareness.
12
+ Recover a blocked or paused ticket back into autonomous work. There is **no** coarse
13
+ "reset" verb — a ticket returns to work by unblocking its blocking discovery, letting
14
+ the readiness cascade re-derive it to \`ready\`, then starting a **fresh** work session.
10
15
 
11
16
  ## Arguments
12
- - \`$ARGUMENTS\` - Optional: Specification ID or ticket ID to reset
17
+ - \`$ARGUMENTS\` - Optional: ticket reference (e.g. \`E1-T3\`) or specification ID to inspect
13
18
 
14
19
  ## Task
15
20
 
16
- ### 1. Get Reset Scope
21
+ ### 1. Inspect what is blocked
17
22
 
18
23
  **MCP Calls:**
19
24
  \`\`\`typescript
@@ -21,49 +26,61 @@ Reset ticket statuses to ready state with dependency awareness.
21
26
  const config = readFile('.specforge.json')
22
27
  const specificationId = $ARGUMENTS || config.activeSpecification?.id
23
28
 
24
- if ($ARGUMENTS?.match(/E\d+-T\d+/)) {
25
- // Single ticket reset
26
- get_ticket({ ticketId: $ARGUMENTS })
27
- } else {
28
- // Full specification reset
29
- list_tickets({ specificationId })
29
+ // The spec's open discoveries (a blocking discovery IS the block).
30
+ get_pending_discoveries({ specificationId })
31
+
32
+ // The spec-wide dispatch view — paused sessions + block reasons.
33
+ get_implementation_status({ projectId: config.projectId, specificationId, status: 'paused' })
34
+
35
+ // A single ticket, when a reference was given.
36
+ if ($ARGUMENTS?.match(/E\\d+-T\\d+/)) {
37
+ get({ type: 'ticket', id: $ARGUMENTS })
30
38
  }
31
39
  \`\`\`
32
40
 
33
- ### 2. Reset Tickets
41
+ ### 2. Unblock — the human resolves the blocking discovery
42
+
43
+ A blocking discovery is unblocked by the **human**, in the SpecForge web app
44
+ (\`resolve_discovery\` is a webapp action — it is NOT an MCP tool). Resolving it sets the
45
+ ticket \`blocked → pending\`; the readiness cascade then re-derives dependency-free
46
+ tickets \`→ ready\`.
47
+
48
+ - Open the specification in the SpecForge web app.
49
+ - For each blocking discovery, choose a resolution (convert to a ticket/epic, or dismiss).
50
+ - Confirm the ticket returns to \`ready\` (re-run \`get_implementation_status({ status: 'ready' })\`).
51
+
52
+ ### 3. Re-dispatch — a fresh work session
53
+
54
+ Once the ticket is \`ready\`, start a **new** work session on it — the re-dispatched agent
55
+ re-attaches to any paused session and continues. The per-attempt retry is already
56
+ tracked on \`WorkSession.retryCount\`.
34
57
 
35
58
  **MCP Calls:**
36
59
  \`\`\`typescript
37
- // Reset tickets via lifecycle operation
38
- reset_work_session({
39
- specificationId,
40
- ticketId: $ARGUMENTS.match(/E\d+-T\d+/) ? $ARGUMENTS : undefined
41
- })
60
+ start_work_session({ ticketId })
42
61
  \`\`\`
43
62
 
44
- ### 3. Display Reset Results
63
+ ### 4. Display recovery status
45
64
 
46
65
  **Output:**
47
66
  \`\`\`
48
67
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
49
- TICKET RESET COMPLETE
68
+ RE-WORK STATUS
50
69
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
51
70
  Scope: {scope}
52
71
 
53
- RESET SUMMARY
72
+ BLOCKING DISCOVERIES
54
73
  ─────────────────────────────────────────────────────────────────
55
- Ready: {readyCount} tickets
56
- Blocked: {blockedCount} tickets
57
- Done: {doneCount} tickets (unchanged)
74
+ {discoveryId} │ {description} │ {status}
58
75
 
59
- RESET TICKETS
76
+ READY AFTER UNBLOCK
60
77
  ─────────────────────────────────────────────────────────────────
61
- E{n}-T{m} │ {oldStatus}{newStatus}
78
+ E{n}-T{m} │ blockedpending → ready
62
79
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
63
80
  \`\`\`
64
81
 
65
82
  ## Notes
66
- - Respects dependency constraints
67
- - Can reset single ticket or entire specification
68
- - Completed tickets remain unchanged by default
83
+ - There is no \`reset_work_session\` and no \`clear_ticket_block\` verb.
84
+ - Unblocking is the human's \`resolve_discovery\` (web app); the cascade re-derives readiness.
85
+ - Re-work is always a fresh \`start_work_session\` on a \`ready\` ticket.
69
86
  `;
@@ -149,10 +149,9 @@ Each worker spawned by the orchestrator MUST follow this 9-step protocol:
149
149
 
150
150
  **When a worker encounters a blocker:**
151
151
  ```
152
- 1. Call action_work_session({ ticketId, discovery: { description: "description of blocker", type: "blocker", severity: "blocker" } })
153
- 2. Call action_work_session({ ticketId, blockReason: "description of blocker" })
154
- This sets the ticket to pending status
155
- 3. Message team lead: "Blocked on E{n}-T{n}: {reason}"
152
+ 1. Call action_work_session({ ticketId, discovery: { description: "description of blocker", type: "blocker", severity: "blocker" }, blockReason: "description of blocker" })
153
+ A `blocking` discovery sets the ticket to `blocked` status (the blockReason is stored on the WorkSession)
154
+ 2. Message team lead: "Blocked on E{n}-T{n}: {reason}"
156
155
  4. Move to next available ticket or wait for lead's guidance
157
156
  ```
158
157
 
@@ -316,11 +315,17 @@ After each teammate reports a ticket as complete:
316
315
 
317
316
  ### Worker Failure Recovery
318
317
  ```
319
- If a worker fails or times out:
320
- 1. Check the ticket's current state (is it active? partially done?)
321
- 2. Call reset_work_session({ ticketId }) to reset the session
322
- 3. Spawn a new worker with the same ticket context
323
- 4. Include failure context: "Previous attempt failed: {reason}. Pick up from: {lastProgress}"
318
+ If a worker fails or times out (there is NO reset verb — recovery is re-dispatch + SWS re-attach):
319
+ 1. Read the spec-wide dispatch view: get_implementation_status({ projectId, specificationId, status: 'paused' })
320
+ (also check status: 'active' to see partial progress). This shows each session's
321
+ status, block reason, and worktree/branch.
322
+ 2. Re-dispatch a worker for the same ticket the worker resumes by calling
323
+ start_work_session({ ticketId }), which RE-ATTACHES to the paused WorkSession and
324
+ continues (the per-attempt retry is tracked on WorkSession.retryCount).
325
+ 3. Include failure context: "Previous attempt failed: {reason}. Pick up from: {lastProgress}"
326
+ NOTE: If the ticket is `blocked` (a BLOCKING discovery), it cannot be re-dispatched
327
+ until a human resolves the discovery (resolve_discovery, web app) → blocked → pending
328
+ → ready. See "Blocker Escalation" below. There is no clear_ticket_block/reset_work_session.
324
329
  ```
325
330
 
326
331
  ### Blocker Escalation
@@ -406,4 +411,4 @@ When `.specforge.json` has monorepo configuration:
406
411
  - **Epic:** `todo` | `in_progress` | `completed`
407
412
  - **Specification:** `draft` | `planning` | `ready` | `in_progress` | `completed`
408
413
 
409
- Note: There is no `in_review` status. Tickets go directly from `active` to `done`.
414
+ Note: There is no in-review status. Tickets go directly from `active` to `done`.
@@ -403,10 +403,11 @@ If you cannot complete the ticket after reasonable attempts:
403
403
 
404
404
  ## Status Values
405
405
 
406
- - **Ticket:** `pending` | `ready` | `active` | `done`
407
- - There is no `in_review` status. Tickets go directly from `active` to `done`.
406
+ - **Ticket:** `pending` | `ready` | `active` | `done` | `blocked`
407
+ - There is no in-review status. Tickets go directly from `active` to `done`.
408
408
  - `pending` means dependencies are not met. `ready` means all dependencies satisfied.
409
+ - `blocked` is a first-class status set by a `blocking` discovery; resolving it returns the ticket to `pending`.
409
410
  - `start_work_session` transitions `ready` → `active`.
410
411
  - `action_work_session` tracks progress during active session.
411
- - `action_work_session({ discovery: {...} })` + `action_work_session({ blockReason })` blocks a ticket (active → pending).
412
+ - A `blocking` `action_work_session({ discovery: {...}, blockReason })` blocks a ticket (active → blocked); the `blockReason` is stored on the WorkSession.
412
413
  - `complete_work_session` transitions `active` → `done` (completion gate enforced).