@warpgogol/forge 9.1.0 → 9.2.3

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 (380) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +15 -8
  3. package/README.uk.md +15 -8
  4. package/bin/cli.ts +3 -2
  5. package/dist/bin/cli.js +3 -2
  6. package/dist/bin/cli.js.map +1 -1
  7. package/dist/os/core/core.module.d.ts.map +1 -1
  8. package/dist/os/core/core.module.js +6 -4
  9. package/dist/os/core/core.module.js.map +1 -1
  10. package/dist/os/flow/branch-name.d.ts +56 -0
  11. package/dist/os/flow/branch-name.d.ts.map +1 -0
  12. package/dist/os/flow/branch-name.js +108 -0
  13. package/dist/os/flow/branch-name.js.map +1 -0
  14. package/dist/os/flow/digest.d.ts +73 -0
  15. package/dist/os/flow/digest.d.ts.map +1 -0
  16. package/dist/os/flow/digest.js +634 -0
  17. package/dist/os/flow/digest.js.map +1 -0
  18. package/dist/os/flow/flow.module.d.ts +3 -0
  19. package/dist/os/flow/flow.module.d.ts.map +1 -0
  20. package/dist/os/flow/flow.module.js +716 -0
  21. package/dist/os/flow/flow.module.js.map +1 -0
  22. package/dist/os/flow/git.d.ts +68 -0
  23. package/dist/os/flow/git.d.ts.map +1 -0
  24. package/dist/os/flow/git.js +257 -0
  25. package/dist/os/flow/git.js.map +1 -0
  26. package/dist/os/flow/guard-files.d.ts +50 -0
  27. package/dist/os/flow/guard-files.d.ts.map +1 -0
  28. package/dist/os/flow/guard-files.js +147 -0
  29. package/dist/os/flow/guard-files.js.map +1 -0
  30. package/dist/os/flow/handlers/flow-backmerge.d.ts +27 -0
  31. package/dist/os/flow/handlers/flow-backmerge.d.ts.map +1 -0
  32. package/dist/os/flow/handlers/flow-backmerge.js +332 -0
  33. package/dist/os/flow/handlers/flow-backmerge.js.map +1 -0
  34. package/dist/os/flow/handlers/flow-check.d.ts +42 -0
  35. package/dist/os/flow/handlers/flow-check.d.ts.map +1 -0
  36. package/dist/os/flow/handlers/flow-check.js +347 -0
  37. package/dist/os/flow/handlers/flow-check.js.map +1 -0
  38. package/dist/os/flow/handlers/flow-cut.d.ts +63 -0
  39. package/dist/os/flow/handlers/flow-cut.d.ts.map +1 -0
  40. package/dist/os/flow/handlers/flow-cut.js +636 -0
  41. package/dist/os/flow/handlers/flow-cut.js.map +1 -0
  42. package/dist/os/flow/handlers/flow-digest.d.ts +5 -0
  43. package/dist/os/flow/handlers/flow-digest.d.ts.map +1 -0
  44. package/dist/os/flow/handlers/flow-digest.js +110 -0
  45. package/dist/os/flow/handlers/flow-digest.js.map +1 -0
  46. package/dist/os/flow/handlers/flow-discard.d.ts +22 -0
  47. package/dist/os/flow/handlers/flow-discard.d.ts.map +1 -0
  48. package/dist/os/flow/handlers/flow-discard.js +200 -0
  49. package/dist/os/flow/handlers/flow-discard.js.map +1 -0
  50. package/dist/os/flow/handlers/flow-fix.d.ts +47 -0
  51. package/dist/os/flow/handlers/flow-fix.d.ts.map +1 -0
  52. package/dist/os/flow/handlers/flow-fix.js +443 -0
  53. package/dist/os/flow/handlers/flow-fix.js.map +1 -0
  54. package/dist/os/flow/handlers/flow-hold.d.ts +32 -0
  55. package/dist/os/flow/handlers/flow-hold.d.ts.map +1 -0
  56. package/dist/os/flow/handlers/flow-hold.js +359 -0
  57. package/dist/os/flow/handlers/flow-hold.js.map +1 -0
  58. package/dist/os/flow/handlers/flow-install.d.ts +92 -0
  59. package/dist/os/flow/handlers/flow-install.d.ts.map +1 -0
  60. package/dist/os/flow/handlers/flow-install.js +883 -0
  61. package/dist/os/flow/handlers/flow-install.js.map +1 -0
  62. package/dist/os/flow/handlers/flow-integrate.d.ts +35 -0
  63. package/dist/os/flow/handlers/flow-integrate.d.ts.map +1 -0
  64. package/dist/os/flow/handlers/flow-integrate.js +419 -0
  65. package/dist/os/flow/handlers/flow-integrate.js.map +1 -0
  66. package/dist/os/flow/handlers/flow-open.d.ts +63 -0
  67. package/dist/os/flow/handlers/flow-open.d.ts.map +1 -0
  68. package/dist/os/flow/handlers/flow-open.js +294 -0
  69. package/dist/os/flow/handlers/flow-open.js.map +1 -0
  70. package/dist/os/flow/handlers/flow-push.d.ts +22 -0
  71. package/dist/os/flow/handlers/flow-push.d.ts.map +1 -0
  72. package/dist/os/flow/handlers/flow-push.js +306 -0
  73. package/dist/os/flow/handlers/flow-push.js.map +1 -0
  74. package/dist/os/flow/handlers/flow-status.d.ts +65 -0
  75. package/dist/os/flow/handlers/flow-status.d.ts.map +1 -0
  76. package/dist/os/flow/handlers/flow-status.js +193 -0
  77. package/dist/os/flow/handlers/flow-status.js.map +1 -0
  78. package/dist/os/flow/handlers/flow-unhold.d.ts +20 -0
  79. package/dist/os/flow/handlers/flow-unhold.d.ts.map +1 -0
  80. package/dist/os/flow/handlers/flow-unhold.js +158 -0
  81. package/dist/os/flow/handlers/flow-unhold.js.map +1 -0
  82. package/dist/os/flow/handlers/flow-version.d.ts +39 -0
  83. package/dist/os/flow/handlers/flow-version.d.ts.map +1 -0
  84. package/dist/os/flow/handlers/flow-version.js +122 -0
  85. package/dist/os/flow/handlers/flow-version.js.map +1 -0
  86. package/dist/os/flow/index.d.ts +30 -0
  87. package/dist/os/flow/index.d.ts.map +1 -0
  88. package/dist/os/flow/index.js +83 -0
  89. package/dist/os/flow/index.js.map +1 -0
  90. package/dist/os/flow/line-version.d.ts +23 -0
  91. package/dist/os/flow/line-version.d.ts.map +1 -0
  92. package/dist/os/flow/line-version.js +83 -0
  93. package/dist/os/flow/line-version.js.map +1 -0
  94. package/dist/os/flow/locks.d.ts +34 -0
  95. package/dist/os/flow/locks.d.ts.map +1 -0
  96. package/dist/os/flow/locks.js +147 -0
  97. package/dist/os/flow/locks.js.map +1 -0
  98. package/dist/os/flow/markers.d.ts +49 -0
  99. package/dist/os/flow/markers.d.ts.map +1 -0
  100. package/dist/os/flow/markers.js +112 -0
  101. package/dist/os/flow/markers.js.map +1 -0
  102. package/dist/os/flow/publish.d.ts +28 -0
  103. package/dist/os/flow/publish.d.ts.map +1 -0
  104. package/dist/os/flow/publish.js +153 -0
  105. package/dist/os/flow/publish.js.map +1 -0
  106. package/dist/os/flow/registry.d.ts +142 -0
  107. package/dist/os/flow/registry.d.ts.map +1 -0
  108. package/dist/os/flow/registry.js +198 -0
  109. package/dist/os/flow/registry.js.map +1 -0
  110. package/dist/os/flow/release-level.d.ts +23 -0
  111. package/dist/os/flow/release-level.d.ts.map +1 -0
  112. package/dist/os/flow/release-level.js +102 -0
  113. package/dist/os/flow/release-level.js.map +1 -0
  114. package/dist/os/flow/release-lines.d.ts +25 -0
  115. package/dist/os/flow/release-lines.d.ts.map +1 -0
  116. package/dist/os/flow/release-lines.js +172 -0
  117. package/dist/os/flow/release-lines.js.map +1 -0
  118. package/dist/os/flow/release-tags.d.ts +72 -0
  119. package/dist/os/flow/release-tags.d.ts.map +1 -0
  120. package/dist/os/flow/release-tags.js +166 -0
  121. package/dist/os/flow/release-tags.js.map +1 -0
  122. package/dist/os/flow/repo-kind.d.ts +41 -0
  123. package/dist/os/flow/repo-kind.d.ts.map +1 -0
  124. package/dist/os/flow/repo-kind.js +92 -0
  125. package/dist/os/flow/repo-kind.js.map +1 -0
  126. package/dist/os/flow/scripts.d.ts +20 -0
  127. package/dist/os/flow/scripts.d.ts.map +1 -0
  128. package/dist/os/flow/scripts.js +49 -0
  129. package/dist/os/flow/scripts.js.map +1 -0
  130. package/dist/os/flow/semver.d.ts +21 -0
  131. package/dist/os/flow/semver.d.ts.map +1 -0
  132. package/dist/os/flow/semver.js +73 -0
  133. package/dist/os/flow/semver.js.map +1 -0
  134. package/dist/os/flow/tests/helpers.d.ts +52 -0
  135. package/dist/os/flow/tests/helpers.d.ts.map +1 -0
  136. package/dist/os/flow/tests/helpers.js +189 -0
  137. package/dist/os/flow/tests/helpers.js.map +1 -0
  138. package/dist/os/flow/version-files.d.ts +21 -0
  139. package/dist/os/flow/version-files.d.ts.map +1 -0
  140. package/dist/os/flow/version-files.js +94 -0
  141. package/dist/os/flow/version-files.js.map +1 -0
  142. package/dist/os/flow/worktree-path.d.ts +31 -0
  143. package/dist/os/flow/worktree-path.d.ts.map +1 -0
  144. package/dist/os/flow/worktree-path.js +80 -0
  145. package/dist/os/flow/worktree-path.js.map +1 -0
  146. package/dist/os/mission/handlers/archive.d.ts.map +1 -1
  147. package/dist/os/mission/handlers/archive.js +43 -6
  148. package/dist/os/mission/handlers/archive.js.map +1 -1
  149. package/dist/os/program/handlers/seal.d.ts.map +1 -1
  150. package/dist/os/program/handlers/seal.js +1 -1
  151. package/dist/os/program/handlers/seal.js.map +1 -1
  152. package/dist/os/program/handlers/validate.d.ts.map +1 -1
  153. package/dist/os/program/handlers/validate.js +1 -1
  154. package/dist/os/program/handlers/validate.js.map +1 -1
  155. package/dist/os/program/program.module.d.ts.map +1 -1
  156. package/dist/os/program/program.module.js +2 -1
  157. package/dist/os/program/program.module.js.map +1 -1
  158. package/dist/os/program/schemas.d.ts +4 -6
  159. package/dist/os/program/schemas.d.ts.map +1 -1
  160. package/dist/os/program/schemas.js +16 -6
  161. package/dist/os/program/schemas.js.map +1 -1
  162. package/dist/os/program/state.d.ts +0 -1
  163. package/dist/os/program/state.d.ts.map +1 -1
  164. package/dist/os/program/state.js +1 -7
  165. package/dist/os/program/state.js.map +1 -1
  166. package/dist/os/rfc/acceptance.d.ts +21 -0
  167. package/dist/os/rfc/acceptance.d.ts.map +1 -1
  168. package/dist/os/rfc/acceptance.js +62 -13
  169. package/dist/os/rfc/acceptance.js.map +1 -1
  170. package/dist/os/rfc/frontmatter-io.d.ts +19 -0
  171. package/dist/os/rfc/frontmatter-io.d.ts.map +1 -1
  172. package/dist/os/rfc/frontmatter-io.js +65 -12
  173. package/dist/os/rfc/frontmatter-io.js.map +1 -1
  174. package/dist/os/rfc/handlers/validate-rules.d.ts +2 -5
  175. package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
  176. package/dist/os/rfc/handlers/validate-rules.js +10 -8
  177. package/dist/os/rfc/handlers/validate-rules.js.map +1 -1
  178. package/dist/os/rfc/handlers/validate.d.ts.map +1 -1
  179. package/dist/os/rfc/handlers/validate.js +15 -5
  180. package/dist/os/rfc/handlers/validate.js.map +1 -1
  181. package/dist/os/rfc/index.d.ts +2 -2
  182. package/dist/os/rfc/index.d.ts.map +1 -1
  183. package/dist/os/rfc/index.js +5 -2
  184. package/dist/os/rfc/index.js.map +1 -1
  185. package/dist/os/rfc/probe-batch.d.ts +71 -0
  186. package/dist/os/rfc/probe-batch.d.ts.map +1 -0
  187. package/dist/os/rfc/probe-batch.js +251 -0
  188. package/dist/os/rfc/probe-batch.js.map +1 -0
  189. package/dist/os/rfc/rfc.module.d.ts.map +1 -1
  190. package/dist/os/rfc/rfc.module.js +16 -2
  191. package/dist/os/rfc/rfc.module.js.map +1 -1
  192. package/dist/os/rfc/verification-evidence.d.ts.map +1 -1
  193. package/dist/os/rfc/verification-evidence.js +21 -10
  194. package/dist/os/rfc/verification-evidence.js.map +1 -1
  195. package/dist/os/rfc/verification-refresh.d.ts.map +1 -1
  196. package/dist/os/rfc/verification-refresh.js +20 -13
  197. package/dist/os/rfc/verification-refresh.js.map +1 -1
  198. package/dist/os/werkstatt/handlers/werkstatt-lock-recover.d.ts.map +1 -1
  199. package/dist/os/werkstatt/handlers/werkstatt-lock-recover.js +21 -7
  200. package/dist/os/werkstatt/handlers/werkstatt-lock-recover.js.map +1 -1
  201. package/dist/os/werkstatt/handlers/werkstatt-operation-validate.d.ts.map +1 -1
  202. package/dist/os/werkstatt/handlers/werkstatt-operation-validate.js +1 -1
  203. package/dist/os/werkstatt/handlers/werkstatt-operation-validate.js.map +1 -1
  204. package/dist/os/werkstatt/werkstatt.module.d.ts.map +1 -1
  205. package/dist/os/werkstatt/werkstatt.module.js +2 -82
  206. package/dist/os/werkstatt/werkstatt.module.js.map +1 -1
  207. package/dist/src/config/forge-config.d.ts +0 -3
  208. package/dist/src/config/forge-config.d.ts.map +1 -1
  209. package/dist/src/config/forge-config.js +2 -4
  210. package/dist/src/config/forge-config.js.map +1 -1
  211. package/dist/src/index.d.ts +3 -0
  212. package/dist/src/index.d.ts.map +1 -1
  213. package/dist/src/index.js +2 -0
  214. package/dist/src/index.js.map +1 -1
  215. package/dist/src/onboarding/agents-generate.d.ts.map +1 -1
  216. package/dist/src/onboarding/agents-generate.js +49 -4
  217. package/dist/src/onboarding/agents-generate.js.map +1 -1
  218. package/dist/src/onboarding/create.d.ts +13 -0
  219. package/dist/src/onboarding/create.d.ts.map +1 -1
  220. package/dist/src/onboarding/create.js +95 -9
  221. package/dist/src/onboarding/create.js.map +1 -1
  222. package/dist/src/onboarding/doctor.d.ts.map +1 -1
  223. package/dist/src/onboarding/doctor.js +2 -47
  224. package/dist/src/onboarding/doctor.js.map +1 -1
  225. package/dist/src/onboarding/upgrade.d.ts +5 -0
  226. package/dist/src/onboarding/upgrade.d.ts.map +1 -1
  227. package/dist/src/onboarding/upgrade.js +70 -1
  228. package/dist/src/onboarding/upgrade.js.map +1 -1
  229. package/dist/src/types.d.ts +9 -0
  230. package/dist/src/types.d.ts.map +1 -1
  231. package/dist/src/types.js +2 -2
  232. package/docs/branch-model.md +98 -0
  233. package/docs/maintainers/publishing.md +14 -6
  234. package/docs/reference/cli.md +125 -0
  235. package/docs/reference/profiles.md +1 -0
  236. package/os/core/core.module.ts +7 -4
  237. package/os/flow/assets/flow-guard.sh +176 -0
  238. package/os/flow/branch-name.ts +139 -0
  239. package/os/flow/digest.ts +761 -0
  240. package/os/flow/flow.module.ts +740 -0
  241. package/os/flow/git.ts +342 -0
  242. package/os/flow/guard-files.ts +172 -0
  243. package/os/flow/handlers/flow-backmerge.ts +488 -0
  244. package/os/flow/handlers/flow-check.ts +450 -0
  245. package/os/flow/handlers/flow-cut.ts +912 -0
  246. package/os/flow/handlers/flow-digest.ts +124 -0
  247. package/os/flow/handlers/flow-discard.ts +301 -0
  248. package/os/flow/handlers/flow-fix.ts +597 -0
  249. package/os/flow/handlers/flow-hold.ts +500 -0
  250. package/os/flow/handlers/flow-install.ts +1185 -0
  251. package/os/flow/handlers/flow-integrate.ts +607 -0
  252. package/os/flow/handlers/flow-open.ts +447 -0
  253. package/os/flow/handlers/flow-push.ts +373 -0
  254. package/os/flow/handlers/flow-status.ts +283 -0
  255. package/os/flow/handlers/flow-unhold.ts +220 -0
  256. package/os/flow/handlers/flow-version.ts +196 -0
  257. package/os/flow/index.ts +102 -0
  258. package/os/flow/line-version.ts +113 -0
  259. package/os/flow/locks.ts +177 -0
  260. package/os/flow/markers.ts +135 -0
  261. package/os/flow/publish.ts +201 -0
  262. package/os/flow/registry.ts +266 -0
  263. package/os/flow/release-level.ts +139 -0
  264. package/os/flow/release-lines.ts +208 -0
  265. package/os/flow/release-tags.ts +231 -0
  266. package/os/flow/repo-kind.ts +117 -0
  267. package/os/flow/scripts.ts +73 -0
  268. package/os/flow/semver.ts +82 -0
  269. package/os/flow/tests/branch-name.test.ts +136 -0
  270. package/os/flow/tests/fixtures/branch-names.yaml +56 -0
  271. package/os/flow/tests/flow-backmerge.test.ts +267 -0
  272. package/os/flow/tests/flow-check-version.test.ts +138 -0
  273. package/os/flow/tests/flow-check.test.ts +213 -0
  274. package/os/flow/tests/flow-cut.rerun.test.ts +95 -0
  275. package/os/flow/tests/flow-cut.test.ts +319 -0
  276. package/os/flow/tests/flow-digest.test.ts +313 -0
  277. package/os/flow/tests/flow-discard.test.ts +220 -0
  278. package/os/flow/tests/flow-fix.test.ts +359 -0
  279. package/os/flow/tests/flow-guard-merge.test.ts +100 -0
  280. package/os/flow/tests/flow-guard-parity.test.ts +115 -0
  281. package/os/flow/tests/flow-guard-push.test.ts +100 -0
  282. package/os/flow/tests/flow-guard.test.ts +135 -0
  283. package/os/flow/tests/flow-hold.test.ts +465 -0
  284. package/os/flow/tests/flow-install-baseline.rerun.test.ts +73 -0
  285. package/os/flow/tests/flow-install-baseline.test.ts +164 -0
  286. package/os/flow/tests/flow-install-markers.test.ts +161 -0
  287. package/os/flow/tests/flow-install.rerun.test.ts +212 -0
  288. package/os/flow/tests/flow-install.test.ts +330 -0
  289. package/os/flow/tests/flow-integrate.rerun.test.ts +92 -0
  290. package/os/flow/tests/flow-integrate.test.ts +229 -0
  291. package/os/flow/tests/flow-open.test.ts +200 -0
  292. package/os/flow/tests/flow-push-publish.test.ts +282 -0
  293. package/os/flow/tests/flow-push.test.ts +160 -0
  294. package/os/flow/tests/flow-stale.test.ts +136 -0
  295. package/os/flow/tests/flow-status.test.ts +93 -0
  296. package/os/flow/tests/flow-version-level.test.ts +116 -0
  297. package/os/flow/tests/flow-version.test.ts +169 -0
  298. package/os/flow/tests/helpers.ts +235 -0
  299. package/os/flow/tests/is-flow-adopted.test.ts +71 -0
  300. package/os/flow/tests/registry.test.ts +150 -0
  301. package/os/flow/tests/repository-line-version.test.ts +100 -0
  302. package/os/flow/tests/scripts.test.ts +97 -0
  303. package/os/flow/tests/state-roots.test.ts +127 -0
  304. package/os/flow/tests/version-files.test.ts +145 -0
  305. package/os/flow/version-files.ts +115 -0
  306. package/os/flow/worktree-path.ts +107 -0
  307. package/os/mission/handlers/archive.test.ts +27 -0
  308. package/os/mission/handlers/archive.ts +46 -6
  309. package/os/program/handlers/seal.ts +1 -1
  310. package/os/program/handlers/validate.ts +1 -1
  311. package/os/program/program.module.ts +2 -1
  312. package/os/program/schemas.ts +51 -34
  313. package/os/program/state.ts +1 -9
  314. package/os/rfc/acceptance.ts +84 -19
  315. package/os/rfc/frontmatter-io.ts +78 -12
  316. package/os/rfc/handlers/implement-stamp-stale.test.ts +22 -0
  317. package/os/rfc/handlers/validate-rules.test.ts +9 -6
  318. package/os/rfc/handlers/validate-rules.ts +12 -10
  319. package/os/rfc/handlers/validate.ts +17 -5
  320. package/os/rfc/index.ts +13 -1
  321. package/os/rfc/probe-batch.ts +329 -0
  322. package/os/rfc/rfc.module.ts +19 -2
  323. package/os/rfc/verification-emit-check.test.ts +22 -0
  324. package/os/rfc/verification-emit-freshness.test.ts +22 -0
  325. package/os/rfc/verification-emit.test.ts +22 -0
  326. package/os/rfc/verification-evidence.ts +21 -16
  327. package/os/rfc/verification-refresh.test.ts +22 -0
  328. package/os/rfc/verification-refresh.ts +20 -18
  329. package/os/rfc/verifier/rfc-1333/imp12-binding.acceptance.test.ts +9 -0
  330. package/os/werkstatt/handlers/werkstatt-lock-recover.ts +22 -5
  331. package/os/werkstatt/handlers/werkstatt-operation-validate.ts +1 -1
  332. package/os/werkstatt/werkstatt.module.ts +2 -85
  333. package/package.json +17 -1
  334. package/profiles/forge-shell.yaml +22 -10
  335. package/profiles/godot-game.yaml +24 -13
  336. package/profiles/knowledge.yaml +19 -0
  337. package/profiles/phaser-game.yaml +25 -13
  338. package/profiles/site-workshop.yaml +27 -10
  339. package/profiles/typescript.yaml +26 -9
  340. package/skills/fo/fo-session-retro/SKILL.md +18 -7
  341. package/skills/fo/fo-step-commit/SKILL.md +2 -1
  342. package/src/config/forge-config.ts +2 -6
  343. package/src/index.ts +8 -0
  344. package/src/onboarding/agents-generate.ts +49 -5
  345. package/src/onboarding/create.ts +101 -9
  346. package/src/onboarding/doctor.ts +2 -51
  347. package/src/onboarding/upgrade.ts +86 -1
  348. package/src/tests/agents-generate-flow.test.ts +132 -0
  349. package/src/tests/create-flow.test.ts +114 -0
  350. package/src/tests/create.test.ts +22 -21
  351. package/src/tests/doctor-autonomy.test.ts +2 -1
  352. package/src/tests/implement-stamp.test.ts +26 -3
  353. package/src/tests/profile-flow-hooks.test.ts +77 -0
  354. package/src/tests/program-schemas.test.ts +66 -6
  355. package/src/tests/program-spec-node.test.ts +1 -5
  356. package/src/tests/rfc-evidence-sync.test.ts +22 -0
  357. package/src/tests/rfc-implement-stamp-governance.test.ts +25 -1
  358. package/src/tests/rfc-verification-verdict-ingest.test.ts +22 -0
  359. package/src/tests/upgrade-flow.test.ts +174 -0
  360. package/src/types.ts +11 -2
  361. package/dist/os/werkstatt/handlers/session-close.d.ts +0 -13
  362. package/dist/os/werkstatt/handlers/session-close.d.ts.map +0 -1
  363. package/dist/os/werkstatt/handlers/session-close.js +0 -56
  364. package/dist/os/werkstatt/handlers/session-close.js.map +0 -1
  365. package/dist/os/werkstatt/handlers/session-engine.d.ts +0 -3
  366. package/dist/os/werkstatt/handlers/session-engine.d.ts.map +0 -1
  367. package/dist/os/werkstatt/handlers/session-engine.js +0 -28
  368. package/dist/os/werkstatt/handlers/session-engine.js.map +0 -1
  369. package/dist/os/werkstatt/handlers/session-open.d.ts +0 -10
  370. package/dist/os/werkstatt/handlers/session-open.d.ts.map +0 -1
  371. package/dist/os/werkstatt/handlers/session-open.js +0 -46
  372. package/dist/os/werkstatt/handlers/session-open.js.map +0 -1
  373. package/dist/os/werkstatt/handlers/session-status.d.ts +0 -9
  374. package/dist/os/werkstatt/handlers/session-status.d.ts.map +0 -1
  375. package/dist/os/werkstatt/handlers/session-status.js +0 -34
  376. package/dist/os/werkstatt/handlers/session-status.js.map +0 -1
  377. package/os/werkstatt/handlers/session-close.ts +0 -82
  378. package/os/werkstatt/handlers/session-engine.ts +0 -34
  379. package/os/werkstatt/handlers/session-open.ts +0 -68
  380. package/os/werkstatt/handlers/session-status.ts +0 -55
@@ -11,11 +11,11 @@ With --update-npm, also updates @warpgogol/forge from npm before syncing (skippe
11
11
  </non-goals>
12
12
  </MODULE_CONTRACT>
13
13
  <CHANGE_SUMMARY>
14
- <item>RFC-1224: preserve operator forge.yaml content on upgrade, promote adrImplementStamp binding</item>
15
14
  <item>RFC-1154: sync skills/_shared/ convention docs to .agents/skills/_shared/ — fo-* SKILL.md references dangled for npm consumers</item>
16
15
  <item>RFC-1255: Knowledge conflicts land in .forge/knowledge-conflicts.txt (summary + path in console instead of a 60+ entry dump); exposed as knowledgeConflicts/knowledgeConflictsReport on UpgradeResult. Prettierignore plan now enumerates generated AGENTS.md paths.</item>
17
16
  <item>RFC-1481: add knowledge.conflicts.resolve next steps on same-version and regular upgrade results.</item>
18
17
  <item>RFC-1481: collapse compass summaries and add missing contract blocks</item>
18
+ <item>RFC-1500: step 3 — forge.upgrade reports flow state</item>
19
19
  <history>RFC-0543, RFC-0611, RFC-0663, RFC-0664, RFC-1097, RFC-1224</history>
20
20
  </CHANGE_SUMMARY>
21
21
  */
@@ -87,6 +87,77 @@ export interface UpgradeResult {
87
87
  knowledgeConflicts?: string[];
88
88
  /** Repo-relative path of the written conflicts report, when any. */
89
89
  knowledgeConflictsReport?: string | null;
90
+ /** RFC-1500: fixed-branch-model adoption report — read-only, never mutates. */
91
+ flow?: {
92
+ state: "adopted" | "not-adopted" | "exempt" | "guard-drift";
93
+ nextSteps: string[];
94
+ };
95
+ }
96
+
97
+ /**
98
+ * RFC-1500 step 3 — classify the repository's fixed-branch-model state.
99
+ * Read-only: detectRepoKind, isFlowAdopted and committed-hook comparisons
100
+ * only; upgrade never runs flow.install and never creates or moves a branch.
101
+ * Returns null when the repository kind cannot be determined — the caller
102
+ * warns and omits the field rather than failing.
103
+ */
104
+ async function detectFlowReport(
105
+ workspaceRoot: string,
106
+ io: WorkspaceIO,
107
+ ): Promise<NonNullable<UpgradeResult["flow"]> | null> {
108
+ const { detectRepoKind } = await import("../../os/flow/repo-kind.ts");
109
+ const { isFlowAdopted } = await import("../../os/flow/index.ts");
110
+ const { git, topLevel } = await import("../../os/flow/git.ts");
111
+ const {
112
+ mergeManagedBlockForMode,
113
+ readGuardAsset,
114
+ GUARD_FILE,
115
+ PRECOMMIT_FILE,
116
+ PREMERGE_FILE,
117
+ PREPUSH_FILE,
118
+ } = await import("../../os/flow/guard-files.ts");
119
+
120
+ const repoRoot = (await topLevel(workspaceRoot, io)) ?? workspaceRoot;
121
+ const detection = await detectRepoKind(repoRoot, io);
122
+ if (!detection.ok) return null;
123
+ if (detection.repoKind.kind === "exempt") return { state: "exempt", nextSteps: [] };
124
+ if (detection.repoKind.kind === "ungoverned") return null;
125
+
126
+ if (!(await isFlowAdopted(repoRoot, io))) {
127
+ return {
128
+ state: "not-adopted",
129
+ nextSteps: [
130
+ "Preview adoption: pnpm exec forge flow.install --dry-run",
131
+ "Read the fixed branch model guide: packages/forge/docs/branch-model.md",
132
+ ],
133
+ };
134
+ }
135
+
136
+ // Guard drift — the committed hook surface on develop must match what the
137
+ // installed Forge ships. mergeManagedBlockForMode returns null exactly when
138
+ // the committed block equals the canonical managed block (same test
139
+ // flow.install applies to working-tree content).
140
+ const guard = await git(repoRoot, io, ["show", `develop:${GUARD_FILE}`]);
141
+ let drift = guard.exitCode !== 0 || guard.stdout !== readGuardAsset();
142
+ if (!drift) {
143
+ for (const [file, mode] of [
144
+ [PRECOMMIT_FILE, "pre-commit"],
145
+ [PREMERGE_FILE, "pre-merge-commit"],
146
+ [PREPUSH_FILE, "pre-push"],
147
+ ] as const) {
148
+ const res = await git(repoRoot, io, ["show", `develop:${file}`]);
149
+ if (res.exitCode !== 0 || mergeManagedBlockForMode(res.stdout, mode) !== null) {
150
+ drift = true;
151
+ break;
152
+ }
153
+ }
154
+ }
155
+ return drift
156
+ ? {
157
+ state: "guard-drift",
158
+ nextSteps: ["Re-run pnpm exec forge flow.install — it replaces the guard block"],
159
+ }
160
+ : { state: "adopted", nextSteps: [] };
90
161
  }
91
162
 
92
163
  async function isMonorepoForge(workspaceRoot: string, io: WorkspaceIO): Promise<boolean> {
@@ -722,6 +793,18 @@ export async function runUpgrade(
722
793
 
723
794
  const fromVersion = config.forge?.syncedVersion ?? null;
724
795
 
796
+ // RFC-1500 step 3: report fixed-branch-model adoption state — read-only.
797
+ let flow: UpgradeResult["flow"];
798
+ try {
799
+ flow = (await detectFlowReport(workspaceRoot, fio)) ?? undefined;
800
+ if (flow === undefined) {
801
+ context.logger.warn("forge.upgrade: could not determine flow adoption state — flow field omitted");
802
+ }
803
+ } catch (err) {
804
+ context.logger.warn(`forge.upgrade: flow state probe failed — ${(err as Error).message}`);
805
+ flow = undefined;
806
+ }
807
+
725
808
  if (fromVersion === toVersion) {
726
809
  // Noop version-wise — but the RFC-1154 reconcile (markers, stale-dir prune,
727
810
  // managed .prettierignore) still runs so a same-version upgrade fixes lint debt.
@@ -769,6 +852,7 @@ export async function runUpgrade(
769
852
  prettierignore: reconcile.prettierignore,
770
853
  knowledgeConflicts: reconcile.knowledgeConflicts,
771
854
  knowledgeConflictsReport: noopConflictsReport,
855
+ flow,
772
856
  },
773
857
  nextSteps: [
774
858
  ...(npmCheck.warning ? [{ action: npmCheck.warning, kind: "optional" as const }] : []),
@@ -931,6 +1015,7 @@ export async function runUpgrade(
931
1015
  prettierignore: reconcile.prettierignore,
932
1016
  knowledgeConflicts,
933
1017
  knowledgeConflictsReport,
1018
+ flow,
934
1019
  },
935
1020
  nextSteps,
936
1021
  exitCode: 0,
@@ -0,0 +1,132 @@
1
+ /*
2
+ <MODULE_CONTRACT>
3
+ <purpose>RFC-1500 step 4 / AC-8 — forge.agents.generate emits a "Branch
4
+ model" section for repositories adopted into the fixed branch model, using
5
+ the repository's command prefix from forge.yaml bindings. Unadopted
6
+ repositories get no section.</purpose>
7
+ <non-goals>
8
+ <item>Not a template/behavioral-layer test — those live in agents-generate.test.ts; this file pins only the flow section.</item>
9
+ </non-goals>
10
+ </MODULE_CONTRACT>
11
+ <CHANGE_SUMMARY>
12
+ <item>RFC-1500: step 4 — branch-model section generation tests</item>
13
+ <item>RFC-1500: step 4 — branch-model AGENTS section and consumer docs</item>
14
+ </CHANGE_SUMMARY>
15
+ */
16
+
17
+ import { execFileSync } from "node:child_process";
18
+ import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
19
+ import { tmpdir } from "node:os";
20
+ import { join } from "node:path";
21
+
22
+ import { describe, expect, test, beforeEach, afterEach } from "vitest";
23
+
24
+ import { runAgentsGenerate } from "../onboarding/agents-generate.ts";
25
+ import { runFlowInstall } from "../../os/flow/handlers/flow-install.ts";
26
+ import type { ForgeRuntimeContext } from "../types.ts";
27
+
28
+ const silentLogger = {
29
+ section: () => {},
30
+ info: () => {},
31
+ warn: () => {},
32
+ error: () => {},
33
+ success: () => {},
34
+ };
35
+
36
+ const FORGE_ROOT = join(import.meta.dirname, "..", "..");
37
+
38
+ const FORGE_YAML = `schema: forge/config@1
39
+ project:
40
+ name: consumer-project
41
+ stack: []
42
+ packageManager: pnpm
43
+ paths:
44
+ rfcsDir: docs/rfcs
45
+ adrsDir: docs/adrs
46
+ plansDir: docs/plans
47
+ auditsDir: docs/audits
48
+ specsDir: docs/specs
49
+ skillsDir: .agents/skills
50
+ sessionsDir: docs/sessions
51
+ bindings:
52
+ schema: forge/bindings@1
53
+ commands:
54
+ validateRfc: "pnpm exec forge rfc.validate --id {id} --json"
55
+ validateAdr: null
56
+ implementStamp: null
57
+ typecheck: null
58
+ test: null
59
+ scopedBuild: null
60
+ specValidate: null
61
+ sessionSave: null
62
+ paths:
63
+ invariantsFile: null
64
+ compassDocs: []
65
+ reviewsDir: null
66
+ handoffsDir: null
67
+ sessionsDir: null
68
+ `;
69
+
70
+ function git(dir: string, args: string[]): string {
71
+ return execFileSync("git", ["-C", dir, ...args], { encoding: "utf8" }).trim();
72
+ }
73
+
74
+ function makeContext(workspaceRoot: string): ForgeRuntimeContext {
75
+ return {
76
+ workspaceRoot,
77
+ logger: silentLogger as never,
78
+ dryRun: false,
79
+ outputFormat: "json",
80
+ forgeRoot: FORGE_ROOT,
81
+ };
82
+ }
83
+
84
+ async function initRepo(dir: string): Promise<void> {
85
+ git(dir, ["init", "--initial-branch=main"]);
86
+ git(dir, ["config", "user.name", "Flow Test"]);
87
+ git(dir, ["config", "user.email", "flow-test@example.invalid"]);
88
+ await writeFile(join(dir, "forge.yaml"), FORGE_YAML, "utf8");
89
+ await writeFile(
90
+ join(dir, "package.json"),
91
+ JSON.stringify({ name: "consumer-project", version: "0.1.0" }),
92
+ "utf8",
93
+ );
94
+ git(dir, ["add", "-A"]);
95
+ git(dir, ["commit", "-m", "chore: consumer scaffold"]);
96
+ }
97
+
98
+ let repoDir: string;
99
+
100
+ beforeEach(async () => {
101
+ repoDir = await mkdtemp(join(tmpdir(), "agents-flow-test-"));
102
+ });
103
+
104
+ afterEach(async () => {
105
+ await rm(repoDir, { recursive: true, force: true });
106
+ });
107
+
108
+ describe("RFC-1500: agents.generate branch-model section (AC-8)", () => {
109
+ test("adopted repository gains a Branch model section with the bindings prefix", async () => {
110
+ await initRepo(repoDir);
111
+ const install = await runFlowInstall({ argv: [], flags: {} }, makeContext(repoDir));
112
+ expect(install.exitCode).toBe(0);
113
+
114
+ const result = await runAgentsGenerate({ argv: [], flags: {} }, makeContext(repoDir));
115
+ expect(result.exitCode).toBe(0);
116
+
117
+ const agentsMd = await readFile(join(repoDir, "AGENTS.md"), "utf8");
118
+ expect(agentsMd).toContain("## Branch model");
119
+ expect(agentsMd).toContain("pnpm exec forge flow.open --kind session --slug <slug>");
120
+ expect(agentsMd).toContain("flow.open");
121
+ }, 60000);
122
+
123
+ test("unadopted repository gets no Branch model section", async () => {
124
+ await initRepo(repoDir);
125
+
126
+ const result = await runAgentsGenerate({ argv: [], flags: {} }, makeContext(repoDir));
127
+ expect(result.exitCode).toBe(0);
128
+
129
+ const agentsMd = await readFile(join(repoDir, "AGENTS.md"), "utf8");
130
+ expect(agentsMd).not.toContain("## Branch model");
131
+ }, 60000);
132
+ });
@@ -0,0 +1,114 @@
1
+ /*
2
+ <MODULE_CONTRACT>
3
+ <purpose>RFC-1500 step 2 — forge.create adopts the fixed branch model:
4
+ one scaffold commit on main, then flow.install in process. AC-1 (develop +
5
+ main, HEAD on develop), AC-2 (annotated v0.1.0 release tag), AC-3
6
+ (--no-flow leaves no commit).</purpose>
7
+ <non-goals>
8
+ <item>Not a flow.install contract test — install internals are covered by os/flow tests; this file pins the create composition only.</item>
9
+ </non-goals>
10
+ </MODULE_CONTRACT>
11
+ <CHANGE_SUMMARY>
12
+ <item>RFC-1500: step 2 — create-flow adoption tests</item>
13
+ <item>RFC-1500: step 2 — forge.create adopts the fixed branch model</item>
14
+ <item>RFC-1500: link branch-model guide in committed NEXT_STEPS.md (review r1)</item>
15
+ </CHANGE_SUMMARY>
16
+ */
17
+
18
+ import { execFileSync } from "node:child_process";
19
+ import { mkdtemp, rm } from "node:fs/promises";
20
+ import { tmpdir } from "node:os";
21
+ import { join } from "node:path";
22
+
23
+ import { describe, expect, test, beforeEach, afterEach } from "vitest";
24
+
25
+ import { runCreate } from "../onboarding/create.ts";
26
+ import type { ForgeRuntimeContext } from "../types.ts";
27
+
28
+ const silentLogger = {
29
+ section: () => {},
30
+ info: () => {},
31
+ warn: () => {},
32
+ error: () => {},
33
+ success: () => {},
34
+ };
35
+
36
+ const FORGE_ROOT = join(import.meta.dirname, "..", "..");
37
+
38
+ function makeContext(workspaceRoot: string): ForgeRuntimeContext {
39
+ return {
40
+ workspaceRoot,
41
+ logger: silentLogger as never,
42
+ dryRun: false,
43
+ outputFormat: "json",
44
+ forgeRoot: FORGE_ROOT,
45
+ };
46
+ }
47
+
48
+ function git(dir: string, args: string[]): string {
49
+ return execFileSync("git", ["-C", dir, ...args], { encoding: "utf8" }).trim();
50
+ }
51
+
52
+ let tempDir: string;
53
+
54
+ beforeEach(async () => {
55
+ tempDir = await mkdtemp(join(tmpdir(), "create-flow-test-"));
56
+ // A bare `.git` is the only tolerated pre-existing entry; init here so the
57
+ // fixture can carry a local identity before runCreate commits.
58
+ git(tempDir, ["init", "--initial-branch=main"]);
59
+ git(tempDir, ["config", "user.name", "Flow Test"]);
60
+ git(tempDir, ["config", "user.email", "flow-test@example.invalid"]);
61
+ });
62
+
63
+ afterEach(async () => {
64
+ await rm(tempDir, { recursive: true, force: true });
65
+ });
66
+
67
+ describe("RFC-1500: forge.create adopts the fixed branch model", () => {
68
+ test("AC-1: create leaves develop + main with the primary on develop", async () => {
69
+ const result = await runCreate(
70
+ { argv: [], flags: { "in-place": true, profile: "typescript", name: "my-project" } },
71
+ makeContext(tempDir),
72
+ );
73
+ expect(result.exitCode).toBe(0);
74
+ expect(result.data?.flow).toMatchObject({ status: "adopted" });
75
+
76
+ const branches = git(tempDir, ["for-each-ref", "--format=%(refname:short)", "refs/heads"]).split("\n");
77
+ expect(branches).toContain("develop");
78
+ expect(branches).toContain("main");
79
+ expect(git(tempDir, ["symbolic-ref", "--short", "-q", "HEAD"])).toBe("develop");
80
+
81
+ // RFC-1500 step 5: the committed NEXT_STEPS.md links the consumer guide.
82
+ expect(git(tempDir, ["show", "main:NEXT_STEPS.md"])).toContain("branch-model.md");
83
+ }, 120000);
84
+
85
+ test("AC-2: create leaves an annotated v0.1.0 tag with the release-tag schema line", async () => {
86
+ const result = await runCreate(
87
+ { argv: [], flags: { "in-place": true, profile: "typescript", name: "my-project" } },
88
+ makeContext(tempDir),
89
+ );
90
+ expect(result.exitCode).toBe(0);
91
+
92
+ const out = git(tempDir, [
93
+ "for-each-ref",
94
+ "refs/tags/v0.1.0",
95
+ "--format=%(objecttype) %(contents)",
96
+ ]);
97
+ expect(out.startsWith("tag ")).toBe(true);
98
+ expect(out).toContain("schema: forge/release-tag@1");
99
+ }, 120000);
100
+
101
+ test("AC-3: --no-flow leaves no commit", async () => {
102
+ const result = await runCreate(
103
+ {
104
+ argv: [],
105
+ flags: { "in-place": true, "no-flow": true, profile: "typescript", name: "my-project" },
106
+ },
107
+ makeContext(tempDir),
108
+ );
109
+ expect(result.exitCode).toBe(0);
110
+ expect(result.data?.flow).toMatchObject({ status: "skipped", reason: "no-flow-flag" });
111
+
112
+ expect(git(tempDir, ["rev-list", "--all", "--count"])).toBe("0");
113
+ }, 120000);
114
+ });
@@ -9,6 +9,7 @@
9
9
  <item>RFC-0544: initial forge.create tests.</item>
10
10
  <item>RFC-0877: rewrite tests for --in-place mode, add strict empty-directory check and name-derivation tests.</item>
11
11
  <item>RFC-1019: add tests for pre-user-prompt-wrapper.mjs, shell auto-detection, hooks.json wrapper, pinned.yaml.</item>
12
+ <item>RFC-1500: step 2 — forge.create adopts the fixed branch model</item>
12
13
  </CHANGE_SUMMARY>
13
14
  */
14
15
 
@@ -54,7 +55,7 @@ afterEach(async () => {
54
55
 
55
56
  test("forge create --in-place scaffolds in cwd with forge.yaml and docs dirs", async () => {
56
57
  const result = await runCreate(
57
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
58
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
58
59
  makeContext(tempDir),
59
60
  );
60
61
  expect(result.exitCode).toBe(0);
@@ -73,7 +74,7 @@ test("forge create --in-place refuses when forge artifacts already exist", async
73
74
  await writeFile(join(tempDir, "forge.yaml"), "existing: true", "utf8");
74
75
 
75
76
  const result = await runCreate(
76
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
77
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
77
78
  makeContext(tempDir),
78
79
  );
79
80
  expect(result.exitCode).toBe(1);
@@ -85,7 +86,7 @@ test("forge create --in-place refuses when non-forge files exist in target direc
85
86
  await writeFile(join(tempDir, "some-file.txt"), "hello", "utf8");
86
87
 
87
88
  const result = await runCreate(
88
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
89
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
89
90
  makeContext(tempDir),
90
91
  );
91
92
  expect(result.exitCode).toBe(1);
@@ -98,7 +99,7 @@ test("forge create --in-place tolerates only .git directory in target directory"
98
99
  await mkdir(join(tempDir, ".git"), { recursive: true });
99
100
 
100
101
  const result = await runCreate(
101
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
102
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
102
103
  makeContext(tempDir),
103
104
  );
104
105
  expect(result.exitCode).toBe(0);
@@ -109,7 +110,7 @@ test("forge create --in-place tolerates only .git directory in target directory"
109
110
 
110
111
  test("forge create fails on non-kebab-case name", async () => {
111
112
  const result = await runCreate(
112
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "MyProject" } },
113
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "MyProject" } },
113
114
  makeContext(tempDir),
114
115
  );
115
116
  expect(result.exitCode).toBe(1);
@@ -129,7 +130,7 @@ test("forge create fails on missing --in-place flag", async () => {
129
130
 
130
131
  test("forge create fails on missing --profile flag", async () => {
131
132
  const result = await runCreate(
132
- { argv: [], flags: { "in-place": true, name: "my-project" } },
133
+ { argv: [], flags: { "in-place": true, "no-flow": true, name: "my-project" } },
133
134
  makeContext(tempDir),
134
135
  );
135
136
  expect(result.exitCode).toBe(1);
@@ -139,7 +140,7 @@ test("forge create fails on missing --profile flag", async () => {
139
140
 
140
141
  test("forge create --in-place --profile forge-shell uses forge-shell profile", async () => {
141
142
  const result = await runCreate(
142
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
143
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
143
144
  makeContext(tempDir),
144
145
  );
145
146
  expect(result.exitCode).toBe(0);
@@ -151,7 +152,7 @@ test("forge create --package-manager npm writes npm into forge.yaml with npx bin
151
152
  {
152
153
  argv: [],
153
154
  flags: {
154
- "in-place": true,
155
+ "in-place": true, "no-flow": true,
155
156
  profile: "forge-shell",
156
157
  name: "my-project",
157
158
  "package-manager": "npm",
@@ -172,7 +173,7 @@ test("forge create --package-manager pnpm writes pnpm into forge.yaml", async ()
172
173
  {
173
174
  argv: [],
174
175
  flags: {
175
- "in-place": true,
176
+ "in-place": true, "no-flow": true,
176
177
  profile: "forge-shell",
177
178
  name: "my-project",
178
179
  "package-manager": "pnpm",
@@ -189,7 +190,7 @@ test("forge create --package-manager pnpm writes pnpm into forge.yaml", async ()
189
190
 
190
191
  test("forge.yaml has non-null forge-CLI bindings and null stack bindings", async () => {
191
192
  await runCreate(
192
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
193
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
193
194
  makeContext(tempDir),
194
195
  );
195
196
 
@@ -206,7 +207,7 @@ test("forge.yaml has non-null forge-CLI bindings and null stack bindings", async
206
207
 
207
208
  test("forge.yaml has forge.syncedVersion set", async () => {
208
209
  await runCreate(
209
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
210
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
210
211
  makeContext(tempDir),
211
212
  );
212
213
 
@@ -216,7 +217,7 @@ test("forge.yaml has forge.syncedVersion set", async () => {
216
217
 
217
218
  test("result includes nextSteps with forge-bootstrap", async () => {
218
219
  const result = await runCreate(
219
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
220
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
220
221
  makeContext(tempDir),
221
222
  );
222
223
  expect(result.exitCode).toBe(0);
@@ -227,7 +228,7 @@ test("result includes nextSteps with forge-bootstrap", async () => {
227
228
 
228
229
  test("forge create generates AGENTS.md with behavioral layer (RFC-0548)", async () => {
229
230
  const result = await runCreate(
230
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
231
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
231
232
  makeContext(tempDir),
232
233
  );
233
234
  expect(result.exitCode).toBe(0);
@@ -244,7 +245,7 @@ test("forge create generates AGENTS.md with behavioral layer (RFC-0548)", async
244
245
 
245
246
  test("forge create writes NEXT_STEPS.md with greenfield and transplant guidance (RFC-0550)", async () => {
246
247
  const result = await runCreate(
247
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
248
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
248
249
  makeContext(tempDir),
249
250
  );
250
251
  expect(result.exitCode).toBe(0);
@@ -262,7 +263,7 @@ test("forge create writes NEXT_STEPS.md with greenfield and transplant guidance
262
263
 
263
264
  test("forge create root package.json has scripts and replaced project name", async () => {
264
265
  const result = await runCreate(
265
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
266
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
266
267
  makeContext(tempDir),
267
268
  );
268
269
  expect(result.exitCode).toBe(0);
@@ -282,7 +283,7 @@ test("forge create --in-place derives name from folder name when --name omitted"
282
283
  await mkdir(namedDir, { recursive: true });
283
284
 
284
285
  const result = await runCreate(
285
- { argv: [], flags: { "in-place": true, profile: "forge-shell" } },
286
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell" } },
286
287
  makeContext(namedDir),
287
288
  );
288
289
  expect(result.exitCode).toBe(0);
@@ -295,7 +296,7 @@ test("forge create --in-place derives name from folder name when --name omitted"
295
296
 
296
297
  test("forge create --profile godot-game writes compass.fileExtensions into forge.yaml", async () => {
297
298
  const result = await runCreate(
298
- { argv: [], flags: { "in-place": true, profile: "godot-game", name: "my-game" } },
299
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "godot-game", name: "my-game" } },
299
300
  makeContext(tempDir),
300
301
  );
301
302
  expect(result.exitCode).toBe(0);
@@ -312,7 +313,7 @@ test("forge create --profile godot-game writes compass.fileExtensions into forge
312
313
 
313
314
  test("forge create --in-place setup-git-guards.sh contains shell auto-detection (RFC-1019)", async () => {
314
315
  const result = await runCreate(
315
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
316
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
316
317
  makeContext(tempDir),
317
318
  );
318
319
  expect(result.exitCode).toBe(0);
@@ -326,7 +327,7 @@ test("forge create --in-place setup-git-guards.sh contains shell auto-detection
326
327
 
327
328
  test("forge create --in-place .windsurf/hooks.json calls wrapper not bash directly (RFC-1019)", async () => {
328
329
  const result = await runCreate(
329
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
330
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
330
331
  makeContext(tempDir),
331
332
  );
332
333
  expect(result.exitCode).toBe(0);
@@ -339,7 +340,7 @@ test("forge create --in-place .windsurf/hooks.json calls wrapper not bash direct
339
340
 
340
341
  test("forge create --in-place pins pre-user-prompt-wrapper.mjs in pinned.yaml (RFC-1019)", async () => {
341
342
  const result = await runCreate(
342
- { argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
343
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
343
344
  makeContext(tempDir),
344
345
  );
345
346
  expect(result.exitCode).toBe(0);
@@ -351,7 +352,7 @@ test("forge create --in-place pins pre-user-prompt-wrapper.mjs in pinned.yaml (R
351
352
 
352
353
  test("forge create --profile phaser-game writes compass.fileExtensions into forge.yaml", async () => {
353
354
  const result = await runCreate(
354
- { argv: [], flags: { "in-place": true, profile: "phaser-game", name: "my-phaser-game" } },
355
+ { argv: [], flags: { "in-place": true, "no-flow": true, profile: "phaser-game", name: "my-phaser-game" } },
355
356
  makeContext(tempDir),
356
357
  );
357
358
  expect(result.exitCode).toBe(0);
@@ -7,6 +7,7 @@
7
7
  </MODULE_CONTRACT>
8
8
  <CHANGE_SUMMARY>
9
9
  <item>RFC-0391: initial doctor autonomy guard tests.</item>
10
+ <item>RFC-1487: step 7 — remove RFC-1462 session-worktree paths, COMMIT-FGN-01 guard, and .sessions model; document flow lifecycle</item>
10
11
  </CHANGE_SUMMARY>
11
12
  */
12
13
 
@@ -131,7 +132,7 @@ test("doctor exempts the os/werkstatt/ adapter boundary", async () => {
131
132
  );
132
133
  await writeFile(
133
134
  join(dir, "session-close.ts"),
134
- 'import { SessionEntry } from "@warpgogol/werkstatt-engine/werkstatt";\nexport const x = SessionEntry;',
135
+ 'import type { CommitWerkstattResult } from "@warpgogol/werkstatt-engine/werkstatt";\nexport type { CommitWerkstattResult };',
135
136
  "utf8",
136
137
  );
137
138
 
@@ -8,12 +8,14 @@ Unit tests for implement stamp covering rfc.implement.stamp. It also guards the
8
8
  </non-goals>
9
9
  </MODULE_CONTRACT>
10
10
  <CHANGE_SUMMARY>
11
- <item>RFC-1322: step 4 — --check-criteria resolvable/unresolvable matrix + dry-run residual-unchecked fix</item>
12
11
  <item>RFC-1322: fo-review fix pass — stale-envelope refresh, probes-less fail-closed, empty/dir/escape paths, line-ranges, --sync composition, fully-checked no-op</item>
13
12
  <item>RFC-1322: evidence annotation extraction takes the last occurrence — prose mentions no longer shadow the annotation</item>
14
13
  <item>RFC-1383: pins for the --check-criteria remedy hint, residual no-no-op, and N-of-M success output</item>
15
14
  <item>RFC-1483: self-sufficient implement stamp — default repair pass, ordered remediation checklist, --no-repair</item>
16
- <history>RFC-1310, RFC-1311</history>
15
+ <item>RFC-1489: batch test probes through one instrumented Vitest run + frontmatter corpus reads
16
+
17
+ runProbeSet is the single shared execution point: barrier-free segments of test probes sharing one effective bound run in one vitest --reporter=json --outputFile process with per-(file,testName) attribution; missing files/reports yield unverified. run/page/proof and all non-test kinds are barriers. --no-batch escapes to the legacy path on acceptance.run, verification.emit and verification.refresh. rfc.validate reads non-target corpus files frontmatter-only via readRfcFrontmatter (64 KiB bound, full-parse fallback); emit/refresh/acceptance corpus scans use the same accessor. Corpus map slimmed to RfcCorpusEntry {fileName, frontmatter}.</item>
18
+ <history>RFC-1310, RFC-1311, RFC-1322</history>
17
19
  </CHANGE_SUMMARY>
18
20
  */
19
21
 
@@ -25,7 +27,28 @@ import { execFileSync } from "node:child_process";
25
27
  import { parse as yamlParse, stringify as yamlStringify } from "yaml";
26
28
 
27
29
  const { mockRunProbe } = vi.hoisted(() => ({ mockRunProbe: vi.fn() }));
28
- vi.mock("../../os/rfc/acceptance.ts", () => ({ runProbe: mockRunProbe }));
30
+ vi.mock("../../os/rfc/acceptance.ts", () => ({
31
+ runProbe: mockRunProbe,
32
+ // RFC-1489: emit (which stamp composes) drives runProbeSet — the shim
33
+ // preserves the per-probe mock contract.
34
+ runProbeSet: async (probes: unknown[], opts: Record<string, unknown>) => {
35
+ const results = [];
36
+ const durationsMs = [];
37
+ for (const p of probes) {
38
+ results.push(
39
+ await mockRunProbe(
40
+ p,
41
+ opts.workspaceRoot,
42
+ opts.commandRegistry,
43
+ opts.forgeRoot,
44
+ opts.outcomeSession,
45
+ ),
46
+ );
47
+ durationsMs.push(0);
48
+ }
49
+ return { results, durationsMs };
50
+ },
51
+ }));
29
52
 
30
53
  import { runRfcImplementStamp } from "../../os/rfc/handlers/implement-stamp.ts";
31
54
  import type { ForgeCommandInput, ForgeRuntimeContext, ForgeLogger } from "../../src/types.ts";