@intentius/chant 0.124.55 → 0.124.56

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 (370) hide show
  1. package/dist/ci-agent.d.ts.map +1 -1
  2. package/dist/ci-agent.js +1 -2
  3. package/dist/ci-audit/attribution.d.ts +111 -0
  4. package/dist/ci-audit/attribution.d.ts.map +1 -0
  5. package/dist/ci-audit/attribution.js +194 -0
  6. package/dist/ci-audit/audit-log.d.ts +144 -0
  7. package/dist/ci-audit/audit-log.d.ts.map +1 -0
  8. package/dist/ci-audit/audit-log.js +149 -0
  9. package/dist/ci-audit/index.d.ts +12 -0
  10. package/dist/ci-audit/index.d.ts.map +1 -0
  11. package/dist/ci-audit/index.js +12 -0
  12. package/dist/ci-audit/unrecorded.d.ts +74 -0
  13. package/dist/ci-audit/unrecorded.d.ts.map +1 -0
  14. package/dist/ci-audit/unrecorded.js +95 -0
  15. package/dist/ci-audit.d.ts +3 -0
  16. package/dist/ci-audit.d.ts.map +1 -0
  17. package/dist/ci-audit.js +2 -0
  18. package/dist/ci-control.d.ts.map +1 -1
  19. package/dist/ci-control.js +3 -4
  20. package/dist/ci-estate.d.ts +24 -0
  21. package/dist/ci-estate.d.ts.map +1 -1
  22. package/dist/ci-estate.js +1 -2
  23. package/dist/ci-identity.d.ts.map +1 -1
  24. package/dist/ci-identity.js +2 -3
  25. package/dist/ci-job-guard.d.ts +139 -0
  26. package/dist/ci-job-guard.d.ts.map +1 -0
  27. package/dist/ci-job-guard.js +287 -0
  28. package/dist/ci-jobs.d.ts +7 -0
  29. package/dist/ci-jobs.d.ts.map +1 -1
  30. package/dist/ci-jobs.js +7 -0
  31. package/dist/ci-product-words.d.ts +7 -1
  32. package/dist/ci-product-words.d.ts.map +1 -1
  33. package/dist/ci-product-words.js +38 -4
  34. package/dist/ci-product.d.ts +35 -0
  35. package/dist/ci-product.d.ts.map +1 -1
  36. package/dist/ci-product.js +38 -3
  37. package/dist/ci-respond-run.d.ts +73 -0
  38. package/dist/ci-respond-run.d.ts.map +1 -0
  39. package/dist/ci-respond-run.js +247 -0
  40. package/dist/ci-respond.d.ts +189 -0
  41. package/dist/ci-respond.d.ts.map +1 -0
  42. package/dist/ci-respond.js +285 -0
  43. package/dist/cli/handlers/audit-log.d.ts +12 -0
  44. package/dist/cli/handlers/audit-log.d.ts.map +1 -0
  45. package/dist/cli/handlers/audit-log.js +81 -0
  46. package/dist/cli/handlers/build.d.ts +7 -0
  47. package/dist/cli/handlers/build.d.ts.map +1 -1
  48. package/dist/cli/handlers/build.js +81 -0
  49. package/dist/cli/handlers/ci-check-job.d.ts +11 -0
  50. package/dist/cli/handlers/ci-check-job.d.ts.map +1 -0
  51. package/dist/cli/handlers/ci-check-job.js +27 -0
  52. package/dist/cli/handlers/ci-check.d.ts.map +1 -1
  53. package/dist/cli/handlers/ci-check.js +38 -9
  54. package/dist/cli/handlers/e2e-safe-run.d.ts +12 -0
  55. package/dist/cli/handlers/e2e-safe-run.d.ts.map +1 -0
  56. package/dist/cli/handlers/e2e-safe-run.js +23 -0
  57. package/dist/cli/handlers/pr.d.ts +5 -0
  58. package/dist/cli/handlers/pr.d.ts.map +1 -1
  59. package/dist/cli/handlers/pr.js +259 -4
  60. package/dist/cli/handlers/run-wave.js +89 -1
  61. package/dist/cli/main.d.ts.map +1 -1
  62. package/dist/cli/main.js +56 -2
  63. package/dist/cli/parse-args.d.ts.map +1 -1
  64. package/dist/cli/parse-args.js +107 -0
  65. package/dist/cli/registry.d.ts +38 -0
  66. package/dist/cli/registry.d.ts.map +1 -1
  67. package/dist/components/adoption.d.ts.map +1 -1
  68. package/dist/components/adoption.js +1 -2
  69. package/dist/components/capability.d.ts +37 -0
  70. package/dist/components/capability.d.ts.map +1 -1
  71. package/dist/components/capability.js +25 -0
  72. package/dist/components/check-hooks.d.ts +4 -1
  73. package/dist/components/check-hooks.d.ts.map +1 -1
  74. package/dist/components/check-steps.d.ts +74 -0
  75. package/dist/components/check-steps.d.ts.map +1 -0
  76. package/dist/components/check-steps.js +102 -0
  77. package/dist/components/ci-services.d.ts.map +1 -1
  78. package/dist/components/ci-services.js +1 -2
  79. package/dist/components/driver.d.ts +12 -0
  80. package/dist/components/driver.d.ts.map +1 -1
  81. package/dist/components/driver.js +35 -1
  82. package/dist/components/groups.d.ts.map +1 -1
  83. package/dist/components/groups.js +4 -3
  84. package/dist/components/pr-env-ledger.d.ts.map +1 -1
  85. package/dist/components/pr-env-ledger.js +1 -2
  86. package/dist/components/pr-environment.d.ts +1 -1
  87. package/dist/components/pr-environment.d.ts.map +1 -1
  88. package/dist/components/pr-environment.js +1 -1
  89. package/dist/components/pr-pipeline.d.ts +129 -3
  90. package/dist/components/pr-pipeline.d.ts.map +1 -1
  91. package/dist/components/pr-pipeline.js +153 -17
  92. package/dist/components/pr-run.d.ts +8 -0
  93. package/dist/components/pr-run.d.ts.map +1 -1
  94. package/dist/components/pr-run.js +9 -4
  95. package/dist/components/product-pipeline.d.ts +35 -2
  96. package/dist/components/product-pipeline.d.ts.map +1 -1
  97. package/dist/components/product-pipeline.js +24 -5
  98. package/dist/components/wave-plan.d.ts +8 -0
  99. package/dist/components/wave-plan.d.ts.map +1 -1
  100. package/dist/components/wave-plan.js +18 -2
  101. package/dist/e2e-harness/bucket.d.ts +21 -0
  102. package/dist/e2e-harness/bucket.d.ts.map +1 -0
  103. package/dist/e2e-harness/bucket.js +61 -0
  104. package/dist/e2e-harness/claim.d.ts +70 -0
  105. package/dist/e2e-harness/claim.d.ts.map +1 -0
  106. package/dist/e2e-harness/claim.js +98 -0
  107. package/dist/e2e-harness/driver.d.ts +64 -0
  108. package/dist/e2e-harness/driver.d.ts.map +1 -0
  109. package/dist/e2e-harness/driver.js +243 -0
  110. package/dist/e2e-harness/forgejo.d.ts +77 -0
  111. package/dist/e2e-harness/forgejo.d.ts.map +1 -0
  112. package/dist/e2e-harness/forgejo.js +205 -0
  113. package/dist/e2e-harness/git.d.ts +32 -0
  114. package/dist/e2e-harness/git.d.ts.map +1 -0
  115. package/dist/e2e-harness/git.js +67 -0
  116. package/dist/e2e-harness/index.d.ts +22 -0
  117. package/dist/e2e-harness/index.d.ts.map +1 -0
  118. package/dist/e2e-harness/index.js +48 -0
  119. package/dist/e2e-harness/jobs.d.ts +8 -0
  120. package/dist/e2e-harness/jobs.d.ts.map +1 -0
  121. package/dist/e2e-harness/jobs.js +34 -0
  122. package/dist/e2e-harness/pins.d.ts +45 -0
  123. package/dist/e2e-harness/pins.d.ts.map +1 -0
  124. package/dist/e2e-harness/pins.js +44 -0
  125. package/dist/e2e-harness/ports.d.ts +113 -0
  126. package/dist/e2e-harness/ports.d.ts.map +1 -0
  127. package/dist/e2e-harness/ports.js +4 -0
  128. package/dist/e2e-harness/reports.d.ts +45 -0
  129. package/dist/e2e-harness/reports.d.ts.map +1 -0
  130. package/dist/e2e-harness/reports.js +57 -0
  131. package/dist/e2e-harness/safe-run-cli.d.ts +17 -0
  132. package/dist/e2e-harness/safe-run-cli.d.ts.map +1 -0
  133. package/dist/e2e-harness/safe-run-cli.js +43 -0
  134. package/dist/e2e-harness/safe-run.d.ts +61 -0
  135. package/dist/e2e-harness/safe-run.d.ts.map +1 -0
  136. package/dist/e2e-harness/safe-run.js +172 -0
  137. package/dist/e2e-harness/scenario.d.ts +11 -0
  138. package/dist/e2e-harness/scenario.d.ts.map +1 -0
  139. package/dist/e2e-harness/scenario.js +89 -0
  140. package/dist/e2e-harness/schemas/demo-cycle.schema.json +282 -0
  141. package/dist/e2e-harness/schemas/demo-step.schema.json +245 -0
  142. package/dist/e2e-harness/schemas/e2e-claim-row.schema.json +33 -0
  143. package/dist/e2e-harness/schemas/e2e-claims.schema.json +18 -0
  144. package/dist/e2e-harness/schemas/e2e-scenario.schema.json +150 -0
  145. package/dist/e2e-harness/schemas/index.d.ts +191 -0
  146. package/dist/e2e-harness/schemas/index.d.ts.map +1 -0
  147. package/dist/e2e-harness/schemas/index.js +62 -0
  148. package/dist/e2e-harness/stack.d.ts +124 -0
  149. package/dist/e2e-harness/stack.d.ts.map +1 -0
  150. package/dist/e2e-harness/stack.js +207 -0
  151. package/dist/e2e-harness/steps.d.ts +11 -0
  152. package/dist/e2e-harness/steps.d.ts.map +1 -0
  153. package/dist/e2e-harness/steps.js +22 -0
  154. package/dist/e2e-harness.d.ts +3 -0
  155. package/dist/e2e-harness.d.ts.map +1 -0
  156. package/dist/e2e-harness.js +2 -0
  157. package/dist/exit-codes.d.ts +7 -1
  158. package/dist/exit-codes.d.ts.map +1 -1
  159. package/dist/exit-codes.js +7 -1
  160. package/dist/lexicon.d.ts +46 -0
  161. package/dist/lexicon.d.ts.map +1 -1
  162. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  163. package/dist/lifecycle/gate-ledger.js +2 -3
  164. package/dist/lifecycle/gated-request.d.ts.map +1 -1
  165. package/dist/lifecycle/gated-request.js +1 -2
  166. package/dist/lifecycle/query.d.ts.map +1 -1
  167. package/dist/lifecycle/query.js +4 -5
  168. package/dist/lifecycle/release-catalog.d.ts.map +1 -1
  169. package/dist/lifecycle/release-catalog.js +1 -1
  170. package/dist/lifecycle/release-ledger.d.ts.map +1 -1
  171. package/dist/lifecycle/release-ledger.js +1 -2
  172. package/dist/lifecycle/release-status.d.ts +20 -0
  173. package/dist/lifecycle/release-status.d.ts.map +1 -1
  174. package/dist/lifecycle/release-status.js +1 -22
  175. package/dist/lifecycle/wave-plans.d.ts +23 -7
  176. package/dist/lifecycle/wave-plans.d.ts.map +1 -1
  177. package/dist/lifecycle/wave-plans.js +9 -2
  178. package/dist/op/approval-status.d.ts +103 -0
  179. package/dist/op/approval-status.d.ts.map +1 -0
  180. package/dist/op/approval-status.js +197 -0
  181. package/dist/op/index.d.ts +1 -1
  182. package/dist/op/index.d.ts.map +1 -1
  183. package/dist/op/index.js +1 -1
  184. package/dist/op/op-waves-capability-spec.d.ts +8 -0
  185. package/dist/op/op-waves-capability-spec.d.ts.map +1 -1
  186. package/dist/op/op-waves-capability-spec.js +21 -0
  187. package/dist/op/op-waves-release.d.ts.map +1 -1
  188. package/dist/op/op-waves-release.js +1 -2
  189. package/dist/op/op-waves-run.d.ts +7 -2
  190. package/dist/op/op-waves-run.d.ts.map +1 -1
  191. package/dist/op/op-waves-run.js +96 -4
  192. package/dist/op/op-waves-stand-down.d.ts.map +1 -1
  193. package/dist/op/op-waves-stand-down.js +1 -2
  194. package/dist/op/op-waves.d.ts +35 -0
  195. package/dist/op/op-waves.d.ts.map +1 -1
  196. package/dist/op/op-waves.js +46 -6
  197. package/dist/op/runtime.d.ts +4 -0
  198. package/dist/op/runtime.d.ts.map +1 -1
  199. package/dist/op/runtime.js +2 -3
  200. package/dist/otlp.d.ts.map +1 -1
  201. package/dist/otlp.js +1 -2
  202. package/dist/parallelism.d.ts +17 -0
  203. package/dist/parallelism.d.ts.map +1 -0
  204. package/dist/parallelism.js +33 -0
  205. package/dist/policy-source.d.ts.map +1 -1
  206. package/dist/policy-source.js +1 -2
  207. package/dist/pr-forge.d.ts.map +1 -1
  208. package/dist/pr-forge.js +56 -39
  209. package/dist/pr-loop.d.ts +9 -0
  210. package/dist/pr-loop.d.ts.map +1 -1
  211. package/dist/pr-loop.js +22 -3
  212. package/dist/pr-merge.d.ts +64 -0
  213. package/dist/pr-merge.d.ts.map +1 -0
  214. package/dist/pr-merge.js +78 -0
  215. package/dist/pr-post.d.ts +70 -1
  216. package/dist/pr-post.d.ts.map +1 -1
  217. package/dist/pr-post.js +116 -5
  218. package/dist/pr-report-url.d.ts.map +1 -1
  219. package/dist/pr-report-url.js +1 -2
  220. package/dist/release-floors.d.ts +1 -1
  221. package/dist/release-floors.js +1 -1
  222. package/dist/run-event.d.ts.map +1 -1
  223. package/dist/run-event.js +1 -2
  224. package/dist/scheduled-op-cloud.d.ts +32 -0
  225. package/dist/scheduled-op-cloud.d.ts.map +1 -0
  226. package/dist/scheduled-op-cloud.js +69 -0
  227. package/dist/wave-runtime.mjs +340 -327
  228. package/dist/workspace/ci-lock-grain.d.ts +5 -0
  229. package/dist/workspace/ci-lock-grain.d.ts.map +1 -1
  230. package/dist/workspace/ci-lock-grain.js +1 -7
  231. package/dist/workspace/ci-run.d.ts.map +1 -1
  232. package/dist/workspace/ci-run.js +5 -1
  233. package/dist/workspace/pr-report.schema.json +5 -0
  234. package/package.json +1 -1
  235. package/src/ci-agent.ts +1 -2
  236. package/src/ci-audit/__fixtures__/cloudtrail-lookup-bucket.json +37 -0
  237. package/src/ci-audit/__fixtures__/cloudtrail-writes-window.json +59 -0
  238. package/src/ci-audit/attribution.ts +260 -0
  239. package/src/ci-audit/audit-log.ts +220 -0
  240. package/src/ci-audit/ci-audit.test.ts +175 -0
  241. package/src/ci-audit/index.ts +15 -0
  242. package/src/ci-audit/unrecorded.ts +140 -0
  243. package/src/ci-audit.ts +2 -0
  244. package/src/ci-control.ts +3 -4
  245. package/src/ci-estate.ts +1 -2
  246. package/src/ci-identity-database.test.ts +2 -3
  247. package/src/ci-identity-targets.test.ts +1 -3
  248. package/src/ci-identity.ts +2 -3
  249. package/src/ci-job-guard.test.ts +154 -0
  250. package/src/ci-job-guard.ts +319 -0
  251. package/src/ci-jobs.ts +8 -0
  252. package/src/ci-product-comment-targets.test.ts +45 -0
  253. package/src/ci-product-words.ts +35 -6
  254. package/src/ci-product.ts +55 -3
  255. package/src/ci-respond-run.ts +291 -0
  256. package/src/ci-respond.test.ts +264 -0
  257. package/src/ci-respond.ts +412 -0
  258. package/src/cli/handlers/audit-log.ts +74 -0
  259. package/src/cli/handlers/build-pr-loop-flags.test.ts +98 -0
  260. package/src/cli/handlers/build.ts +69 -0
  261. package/src/cli/handlers/ci-check-job.test.ts +114 -0
  262. package/src/cli/handlers/ci-check-job.ts +33 -0
  263. package/src/cli/handlers/ci-check.ts +38 -8
  264. package/src/cli/handlers/e2e-safe-run.ts +27 -0
  265. package/src/cli/handlers/pr-plan-comment-targets.test.ts +166 -0
  266. package/src/cli/handlers/pr-plan-flags.test.ts +161 -0
  267. package/src/cli/handlers/pr.ts +228 -4
  268. package/src/cli/handlers/run-wave.ts +79 -1
  269. package/src/cli/main.test.ts +1 -1
  270. package/src/cli/main.ts +56 -2
  271. package/src/cli/parse-args.ts +77 -0
  272. package/src/cli/registry.ts +38 -0
  273. package/src/components/adoption.ts +1 -2
  274. package/src/components/capability.ts +50 -0
  275. package/src/components/check-hooks.ts +4 -1
  276. package/src/components/check-steps.test.ts +70 -0
  277. package/src/components/check-steps.ts +158 -0
  278. package/src/components/ci-services.ts +1 -2
  279. package/src/components/driver.ts +35 -1
  280. package/src/components/groups.ts +4 -2
  281. package/src/components/plan-flags.test.ts +46 -0
  282. package/src/components/pr-comment-preview-targets.test.ts +34 -0
  283. package/src/components/pr-env-ledger.ts +1 -2
  284. package/src/components/pr-env-run-bundle.test.ts +0 -20
  285. package/src/components/pr-environment.ts +1 -1
  286. package/src/components/pr-pipeline-runners.test.ts +80 -0
  287. package/src/components/pr-pipeline.ts +232 -17
  288. package/src/components/pr-run.ts +17 -6
  289. package/src/components/pr-stale-job.test.ts +34 -0
  290. package/src/components/product-pipeline.ts +50 -8
  291. package/src/components/wave-plan.ts +18 -2
  292. package/src/e2e-harness/__project__/chant.config.ts +4 -0
  293. package/src/e2e-harness/__project__/src/compose.ts +33 -0
  294. package/src/e2e-harness/bucket.ts +69 -0
  295. package/src/e2e-harness/claim.test.ts +150 -0
  296. package/src/e2e-harness/claim.ts +140 -0
  297. package/src/e2e-harness/driver.test.ts +304 -0
  298. package/src/e2e-harness/driver.ts +294 -0
  299. package/src/e2e-harness/forgejo.ts +267 -0
  300. package/src/e2e-harness/git.ts +96 -0
  301. package/src/e2e-harness/index.ts +50 -0
  302. package/src/e2e-harness/jobs.ts +35 -0
  303. package/src/e2e-harness/pins.ts +52 -0
  304. package/src/e2e-harness/ports.ts +130 -0
  305. package/src/e2e-harness/reports.ts +79 -0
  306. package/src/e2e-harness/safe-run-cli.test.ts +102 -0
  307. package/src/e2e-harness/safe-run-cli.ts +54 -0
  308. package/src/e2e-harness/safe-run.ts +198 -0
  309. package/src/e2e-harness/scenario.ts +89 -0
  310. package/src/e2e-harness/schemas/README.md +62 -0
  311. package/src/e2e-harness/schemas/demo-cycle.schema.json +282 -0
  312. package/src/e2e-harness/schemas/demo-step.schema.json +245 -0
  313. package/src/e2e-harness/schemas/e2e-claim-row.schema.json +33 -0
  314. package/src/e2e-harness/schemas/e2e-claims.schema.json +18 -0
  315. package/src/e2e-harness/schemas/e2e-scenario.schema.json +150 -0
  316. package/src/e2e-harness/schemas/index.ts +220 -0
  317. package/src/e2e-harness/schemas.test.ts +145 -0
  318. package/src/e2e-harness/stack.test.ts +124 -0
  319. package/src/e2e-harness/stack.ts +306 -0
  320. package/src/e2e-harness/steps.ts +30 -0
  321. package/src/e2e-harness.ts +2 -0
  322. package/src/exit-codes.test.ts +3 -2
  323. package/src/exit-codes.ts +7 -1
  324. package/src/gate-decision-bundle.test.ts +0 -2
  325. package/src/lexicon.ts +48 -0
  326. package/src/lifecycle/control-entries-ledger.test.ts +2 -3
  327. package/src/lifecycle/gate-ledger.ts +2 -3
  328. package/src/lifecycle/gated-request.ts +1 -2
  329. package/src/lifecycle/query.ts +4 -5
  330. package/src/lifecycle/release-catalog.test.ts +3 -4
  331. package/src/lifecycle/release-catalog.ts +1 -1
  332. package/src/lifecycle/release-ledger.ts +1 -2
  333. package/src/lifecycle/release-status.test.ts +3 -4
  334. package/src/lifecycle/release-status.ts +1 -2
  335. package/src/lifecycle/wave-plans.ts +33 -5
  336. package/src/op/approval-status.test.ts +134 -0
  337. package/src/op/approval-status.ts +235 -0
  338. package/src/op/gate-review.test.ts +2 -1
  339. package/src/op/index.ts +2 -0
  340. package/src/op/op-waves-after-plan.test.ts +12 -0
  341. package/src/op/op-waves-capability-spec.ts +20 -0
  342. package/src/op/op-waves-parallelism.test.ts +89 -0
  343. package/src/op/op-waves-pull-request.test.ts +78 -1
  344. package/src/op/op-waves-release.ts +1 -2
  345. package/src/op/op-waves-run.ts +94 -4
  346. package/src/op/op-waves-stand-down.ts +1 -2
  347. package/src/op/op-waves.ts +63 -6
  348. package/src/op/runtime.ts +6 -3
  349. package/src/otlp.ts +1 -2
  350. package/src/parallelism.test.ts +38 -0
  351. package/src/parallelism.ts +33 -0
  352. package/src/policy-source.ts +1 -2
  353. package/src/pr-forge-bundle.test.ts +1 -1
  354. package/src/pr-forge.ts +54 -35
  355. package/src/pr-loop-bundle.test.ts +1 -1
  356. package/src/pr-loop-narrowed.test.ts +63 -0
  357. package/src/pr-loop.ts +30 -3
  358. package/src/pr-merge.test.ts +100 -0
  359. package/src/pr-merge.ts +105 -0
  360. package/src/pr-post-stale.test.ts +163 -0
  361. package/src/pr-post.ts +159 -5
  362. package/src/pr-report-url.ts +1 -2
  363. package/src/product-subpaths-plain-node.e2e.test.ts +1 -0
  364. package/src/release-floors.ts +1 -1
  365. package/src/run-event.ts +1 -2
  366. package/src/scheduled-op-cloud.ts +68 -0
  367. package/src/stage-hooks-bundle.test.ts +0 -2
  368. package/src/workspace/ci-lock-grain.ts +1 -2
  369. package/src/workspace/ci-run.ts +5 -1
  370. package/src/workspace/pr-report.schema.json +5 -0
@@ -0,0 +1,306 @@
1
+ /**
2
+ * The e2e harness's compose project (chant#4587), as data a chant
3
+ * docker-lexicon project wraps: floci, Forgejo and forgejo-runner with the
4
+ * docker executor on one network, and the sql emulator's ClickHouse and
5
+ * Postgres behind the `sql` profile. Every image comes from ./pins.ts.
6
+ *
7
+ * Core does not depend on the docker lexicon, so this file returns plain
8
+ * service properties. A product's project hands each to the lexicon's
9
+ * `Service`, under the key named here (compose keys are export names):
10
+ *
11
+ * ```ts
12
+ * import { Network, Service, Volume } from "@intentius/chant-lexicon-docker";
13
+ * import { harnessStack } from "@intentius/chant/e2e-harness";
14
+ * const h = harnessStack({ project: "terragucci-e2e", envPrefix: "TERRAGUCCI_E2E" });
15
+ * export const harness = new Network(h.network);
16
+ * export const floci = new Service(h.services.floci);
17
+ * ...
18
+ * ```
19
+ *
20
+ * ./project/ is that project for the whole stack, and the fan-out demo's
21
+ * stack/src/compose.ts takes floci and Forgejo from it.
22
+ *
23
+ * Two rules from terragucci's stack hold here. A forge's public URL is its
24
+ * service name (http://forgejo:3000), since inside a job container localhost
25
+ * is the job container. The network has a fixed name, the project's, and the
26
+ * runner puts every job container on it. Host ports bind to 127.0.0.1 and
27
+ * move with `<envPrefix>_<SERVICE>_PORT`, and every name carries the project,
28
+ * so two benches share a host (plywood stack/compose.yml does the same).
29
+ */
30
+ import { CLICKHOUSE_IMAGE, FLOCI_IMAGE, FORGEJO_IMAGE, FORGEJO_RUNNER_IMAGE, POSTGRES_IMAGE, POSTGRES_PASSWORD } from "./pins";
31
+
32
+ /**
33
+ * The service properties the harness sets, a subset of compose's. A type
34
+ * alias, not an interface: the docker lexicon's ServiceProps has an `x-` index
35
+ * signature, which only an alias's implicit index signature satisfies.
36
+ */
37
+ export type ComposeServiceSpec = {
38
+ image: string;
39
+ container_name: string;
40
+ profiles?: string[];
41
+ user?: string;
42
+ environment?: Record<string, string>;
43
+ ports?: string[];
44
+ volumes?: string[];
45
+ working_dir?: string;
46
+ command?: string[];
47
+ depends_on?: Record<string, { condition: "service_started" | "service_healthy" }>;
48
+ networks: Record<string, { aliases: string[] }>;
49
+ healthcheck?: { test: string[]; interval: string; timeout: string; retries: number };
50
+ restart?: string;
51
+ };
52
+
53
+ export interface HarnessStackOptions {
54
+ /**
55
+ * The compose project, which also names the network, the containers and
56
+ * the volumes. Pass it to `docker compose -p` as well.
57
+ */
58
+ project: string;
59
+ /** The prefix of the port variables, `<envPrefix>_FLOCI_PORT` and so on. Default `CHANT_E2E`. */
60
+ envPrefix?: string;
61
+ /** The network's export name in the product's project. Default `harness`. */
62
+ networkKey?: string;
63
+ /** Default host ports. */
64
+ ports?: Partial<HarnessPorts>;
65
+ /**
66
+ * The address host ports bind to. Default 127.0.0.1. Null publishes on
67
+ * every interface, for a demo host whose viewers read floci from outside.
68
+ */
69
+ bind?: string | null;
70
+ /** Forgejo Actions on the instance. Default true; off when nothing on the forge runs workflows. */
71
+ forgejoActions?: boolean;
72
+ /** Another floci image, for a bench that needs the other line (pins.ts). Rows still name the one they ran on. */
73
+ flociImage?: string;
74
+ }
75
+
76
+ export interface HarnessPorts {
77
+ floci: number;
78
+ forgejo: number;
79
+ clickhouse: number;
80
+ postgres: number;
81
+ }
82
+
83
+ /** The default host ports, off every tool's own default and off terragucci's and plywood's benches. */
84
+ export const HARNESS_PORTS: HarnessPorts = { floci: 4591, forgejo: 3391, clickhouse: 8124, postgres: 5433 };
85
+
86
+ /** The profile the sql emulator's servers are behind. */
87
+ export const SQL_PROFILE = "sql";
88
+
89
+ /** Inside the network: the addresses jobs and the runner use. */
90
+ export const HARNESS_HOSTS = {
91
+ floci: "http://floci:4566",
92
+ forgejo: "http://forgejo:3000",
93
+ clickhouse: "http://clickhouse:8123",
94
+ postgres: "postgres://postgres:chant@postgres:5432/postgres",
95
+ } as const;
96
+
97
+ /** Where forgejo-runner reads its config, which `forgejoRunnerConfig` writes. */
98
+ export const RUNNER_CONFIG_PATH = "/data/config.yml";
99
+
100
+ export interface HarnessStack {
101
+ project: string;
102
+ /** The network's properties, under `networkKey`. */
103
+ network: { name: string };
104
+ networkKey: string;
105
+ /** Volumes by export name. */
106
+ volumes: { forgejoData: { name: string }; runnerData: { name: string } };
107
+ /** Services by export name, which is their compose key. */
108
+ services: {
109
+ floci: ComposeServiceSpec;
110
+ forgejo: ComposeServiceSpec;
111
+ forgejoRunner: ComposeServiceSpec;
112
+ clickhouse: ComposeServiceSpec;
113
+ postgres: ComposeServiceSpec;
114
+ };
115
+ /** The port variables, by service. */
116
+ portVars: Record<keyof HarnessPorts, string>;
117
+ }
118
+
119
+ /** A project name compose and the harness accept: lower case, digits, `-` and `_`, starting with a letter or digit. */
120
+ export function assertProjectName(project: string): void {
121
+ if (!/^[a-z0-9][a-z0-9_-]*$/.test(project)) throw new Error(`"${project}" is not a compose project name (lower case, digits, - and _)`);
122
+ }
123
+
124
+ export function harnessStack(o: HarnessStackOptions): HarnessStack {
125
+ assertProjectName(o.project);
126
+ const p = o.project;
127
+ const prefix = o.envPrefix ?? "CHANT_E2E";
128
+ const key = o.networkKey ?? "harness";
129
+ const ports = { ...HARNESS_PORTS, ...o.ports };
130
+ const bind = o.bind === undefined ? "127.0.0.1" : o.bind;
131
+ const portVars: Record<keyof HarnessPorts, string> = {
132
+ floci: `${prefix}_FLOCI_PORT`,
133
+ forgejo: `${prefix}_FORGEJO_PORT`,
134
+ clickhouse: `${prefix}_CLICKHOUSE_PORT`,
135
+ postgres: `${prefix}_POSTGRES_PORT`,
136
+ };
137
+ const publish = (svc: keyof HarnessPorts, inner: number): string =>
138
+ `${bind ? `${bind}:` : ""}\${${portVars[svc]}:-${ports[svc]}}:${inner}`;
139
+ const on = (...aliases: string[]) => ({ [key]: { aliases } });
140
+
141
+ return {
142
+ project: p,
143
+ network: { name: p },
144
+ networkKey: key,
145
+ volumes: { forgejoData: { name: `${p}-forgejo-data` }, runnerData: { name: `${p}-runner-data` } },
146
+ portVars,
147
+ services: {
148
+ floci: {
149
+ image: o.flociImage ?? FLOCI_IMAGE,
150
+ container_name: `${p}-floci`,
151
+ ports: [publish("floci", 4566)],
152
+ networks: on("floci", "000000000000.floci"),
153
+ restart: "unless-stopped",
154
+ },
155
+ // sqlite and INSTALL_LOCK skip the web installer; the driver makes the
156
+ // admin and the people with Forgejo's own CLI.
157
+ forgejo: {
158
+ image: FORGEJO_IMAGE,
159
+ container_name: `${p}-forgejo`,
160
+ environment: {
161
+ FORGEJO__database__DB_TYPE: "sqlite3",
162
+ FORGEJO__security__INSTALL_LOCK: "true",
163
+ FORGEJO__server__DOMAIN: "forgejo",
164
+ FORGEJO__server__ROOT_URL: "http://forgejo:3000/",
165
+ FORGEJO__server__HTTP_PORT: "3000",
166
+ FORGEJO__server__DISABLE_SSH: "true",
167
+ FORGEJO__service__DISABLE_REGISTRATION: "true",
168
+ FORGEJO__actions__ENABLED: o.forgejoActions === false ? "false" : "true",
169
+ FORGEJO__repository__DEFAULT_BRANCH: "main",
170
+ FORGEJO__log__LEVEL: "warn",
171
+ },
172
+ ports: [publish("forgejo", 3000)],
173
+ volumes: ["forgejoData:/data"],
174
+ networks: on("forgejo"),
175
+ healthcheck: {
176
+ test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/v1/version"],
177
+ interval: "3s",
178
+ timeout: "3s",
179
+ retries: 40,
180
+ },
181
+ restart: "unless-stopped",
182
+ },
183
+ // The docker executor: one job container per job through the host's
184
+ // socket, on the project network (container.network in the config
185
+ // registerForgejoRunner writes). It waits for that config, since the
186
+ // runner's credentials come from Forgejo after it boots. Root, for the
187
+ // socket Docker Desktop mounts as root:root.
188
+ forgejoRunner: {
189
+ image: FORGEJO_RUNNER_IMAGE,
190
+ container_name: `${p}-forgejo-runner`,
191
+ user: "0:0",
192
+ depends_on: { forgejo: { condition: "service_healthy" } },
193
+ volumes: ["/var/run/docker.sock:/var/run/docker.sock", "runnerData:/data"],
194
+ working_dir: "/data",
195
+ command: [
196
+ "sh",
197
+ "-c",
198
+ `while [ ! -s ${RUNNER_CONFIG_PATH} ]; do sleep 1; done; exec forgejo-runner daemon -c ${RUNNER_CONFIG_PATH}`,
199
+ ],
200
+ networks: on("forgejo-runner"),
201
+ restart: "unless-stopped",
202
+ },
203
+ clickhouse: {
204
+ image: CLICKHOUSE_IMAGE,
205
+ container_name: `${p}-clickhouse`,
206
+ profiles: [SQL_PROFILE],
207
+ environment: { CLICKHOUSE_SKIP_USER_SETUP: "1" },
208
+ ports: [publish("clickhouse", 8123)],
209
+ networks: on("clickhouse"),
210
+ healthcheck: { test: ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"], interval: "2s", timeout: "3s", retries: 60 },
211
+ restart: "unless-stopped",
212
+ },
213
+ postgres: {
214
+ image: POSTGRES_IMAGE,
215
+ container_name: `${p}-postgres`,
216
+ profiles: [SQL_PROFILE],
217
+ environment: { POSTGRES_PASSWORD },
218
+ ports: [publish("postgres", 5432)],
219
+ networks: on("postgres"),
220
+ healthcheck: { test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-U", "postgres"], interval: "2s", timeout: "3s", retries: 60 },
221
+ restart: "unless-stopped",
222
+ },
223
+ },
224
+ };
225
+ }
226
+
227
+ /** The host URLs of a stack's services, from its port variables in `env` or the defaults. */
228
+ export function harnessUrls(
229
+ s: Pick<HarnessStack, "portVars">,
230
+ env: Record<string, string | undefined> = process.env,
231
+ defaults: HarnessPorts = HARNESS_PORTS,
232
+ ): Record<keyof HarnessPorts, string> {
233
+ const port = (k: keyof HarnessPorts) => Number(env[s.portVars[k]] ?? defaults[k]);
234
+ return {
235
+ floci: `http://localhost:${port("floci")}`,
236
+ forgejo: `http://localhost:${port("forgejo")}`,
237
+ clickhouse: `http://localhost:${port("clickhouse")}`,
238
+ postgres: `postgres://postgres:${POSTGRES_PASSWORD}@localhost:${port("postgres")}/postgres`,
239
+ };
240
+ }
241
+
242
+ export interface RunnerConfigOptions {
243
+ /** The project network every job container joins. */
244
+ network: string;
245
+ /** The runner's uuid and token, from POST /admin/actions/runners. */
246
+ uuid: string;
247
+ token: string;
248
+ /** The image the `docker` and `ubuntu-latest` labels run. */
249
+ jobImage: string;
250
+ /** Jobs at once. Default 4. */
251
+ capacity?: number;
252
+ /** Environment every job gets. Default floci's endpoint and test credentials. */
253
+ envs?: Record<string, string>;
254
+ }
255
+
256
+ /** What every job gets by default: AWS is floci, as a CI runner in a real account carries that account's credentials. */
257
+ export const RUNNER_JOB_ENV: Record<string, string> = {
258
+ AWS_ENDPOINT_URL: HARNESS_HOSTS.floci,
259
+ AWS_ACCESS_KEY_ID: "test",
260
+ AWS_SECRET_ACCESS_KEY: "test",
261
+ AWS_REGION: "us-east-1",
262
+ AWS_EC2_METADATA_DISABLED: "true",
263
+ };
264
+
265
+ const q = (s: string): string => JSON.stringify(s);
266
+
267
+ /**
268
+ * forgejo-runner's config (Forgejo 16, runner 13): the server connection by
269
+ * uuid and token, the job containers on the project network, no host
270
+ * mounts, and floci for AWS.
271
+ */
272
+ export function forgejoRunnerConfig(o: RunnerConfigOptions): string {
273
+ const envs = o.envs ?? RUNNER_JOB_ENV;
274
+ return [
275
+ "log:",
276
+ " level: info",
277
+ " job_level: info",
278
+ "runner:",
279
+ " file: /data/.runner",
280
+ ` capacity: ${o.capacity ?? 4}`,
281
+ " timeout: 30m",
282
+ " shutdown_timeout: 0s",
283
+ " fetch_interval: 1s",
284
+ " report_interval: 1s",
285
+ " envs:",
286
+ ...Object.entries(envs).map(([k, v]) => ` ${k}: ${q(v)}`),
287
+ " labels:",
288
+ ` - ${q(`docker:docker://${o.jobImage}`)}`,
289
+ ` - ${q(`ubuntu-latest:docker://${o.jobImage}`)}`,
290
+ "cache:",
291
+ " enabled: false",
292
+ "container:",
293
+ ` network: ${q(o.network)}`,
294
+ " privileged: false",
295
+ " valid_volumes: []",
296
+ ' docker_host: "-"',
297
+ " force_pull: false",
298
+ "server:",
299
+ " connections:",
300
+ " forgejo:",
301
+ " url: http://forgejo:3000/",
302
+ ` uuid: ${q(o.uuid)}`,
303
+ ` token: ${q(o.token)}`,
304
+ "",
305
+ ].join("\n");
306
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Per-step time limits of the harness's driver (chant#4587), from the fan-out
3
+ * demo's steps.ts LIMITS. Past its limit a step stalls the run, and a stalled
4
+ * run is neither a pass nor a caught break.
5
+ */
6
+ import type { ScenarioStepKind } from "./schemas/index";
7
+
8
+ /** Seconds each kind of step may take by default. */
9
+ export const HARNESS_LIMITS: Record<ScenarioStepKind, number> = {
10
+ /** The branch push and the pull request open. */
11
+ open: 60,
12
+ "open-concurrent": 60,
13
+ /** pr-plan.json at the head, from the push. */
14
+ plan: 600,
15
+ /** The forge review and chant approve. */
16
+ approve: 120,
17
+ /** The merge and its merge commit. */
18
+ merge: 60,
19
+ /** pr-apply.json at the merge commit, from the merge. */
20
+ apply: 900,
21
+ /** A command run out of band. */
22
+ "out-of-band": 600,
23
+ /** Finding and killing a running job. */
24
+ "kill-job": 120,
25
+ };
26
+
27
+ /** A scenario's limits over the defaults. */
28
+ export function limitsFor(over: Partial<Record<ScenarioStepKind, number>> = {}): Record<ScenarioStepKind, number> {
29
+ return { ...HARNESS_LIMITS, ...over };
30
+ }
@@ -0,0 +1,2 @@
1
+ /** `@intentius/chant/e2e-harness` (#4587): the subpath entry for `./e2e-harness/index.ts`. */
2
+ export * from "./e2e-harness/index";
@@ -6,8 +6,9 @@ import { DRIFT_EXIT_CODE } from "./op/types";
6
6
  import { PR_ENV_EXIT } from "./components/pr-environment";
7
7
 
8
8
  describe("the exit-code table (#4553)", () => {
9
- test("has one name per code, 0 to 8", () => {
10
- expect(Object.values(CHANT_EXIT)).toEqual([0, 1, 2, 3, 4, 5, 6, 7, 8]);
9
+ test("has one name per code, 0 to 9", () => {
10
+ expect(Object.values(CHANT_EXIT)).toEqual([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
11
+ expect(chantExitName(9)).toBe("misplaced");
11
12
  expect(chantExitName(4)).toBe("moved");
12
13
  expect(chantExitName(40)).toBeUndefined();
13
14
  });
package/src/exit-codes.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * the code through unchanged.
9
9
  *
10
10
  * The numbers are the ones op waves already used, so a pipeline reading op
11
- * waves' 3 to 8 sees no change. A moved plan is 4 and a waiting run 3; before
11
+ * waves' 3 to 8 sees no change. 9 is the apply-job guard's (#4624). A moved plan is 4 and a waiting run 3; before
12
12
  * this table both were 3 outside op waves.
13
13
  *
14
14
  * A usage or config error has no code of its own: it is `failed`, 1.
@@ -38,6 +38,12 @@ export const CHANT_EXIT = {
38
38
  denied: 7,
39
39
  /** A decision point answered with an answer the gate does not pass on. */
40
40
  declined: 8,
41
+ /**
42
+ * The apply-job guard stopped the job (#4624): it runs somewhere its spec
43
+ * did not set it to run, or it carries no spec the guard can read. Outside
44
+ * the GitLab op-wave jobs' allowed failure (1), so the waves after it stop.
45
+ */
46
+ misplaced: 9,
41
47
  } as const;
42
48
 
43
49
  /** A name in {@link CHANT_EXIT}. */
@@ -60,8 +60,6 @@ describe("the gate-decision bundle", () => {
60
60
  // The release names a wave writes (#4615), checked with the spec.
61
61
  "packages/core/src/op/op-waves-release.ts",
62
62
  "packages/core/src/op/op-waves.ts",
63
- // The next-release floor constant (#4480): no imports.
64
- "packages/core/src/release-floors.ts",
65
63
  "packages/core/src/sorted-json.ts",
66
64
  "packages/core/src/wave-blocked.ts",
67
65
  "packages/core/src/wave-layout.ts",
package/src/lexicon.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { InstanceObservation } from "./instance-nodes";
2
2
  import type { CiRunner } from "./ci-jobs";
3
3
  import type { OpAgentSpec } from "./ci-agent";
4
+ import type { CloudTradeSpec } from "./ci-identity";
4
5
  import type { EngineFacts } from "./engine-facts";
5
6
  import type { CapabilityPack } from "./capabilities/view";
6
7
  import type { Serializer } from "./serializer";
@@ -934,6 +935,43 @@ export interface ScheduledOpSpec {
934
935
  * branch. The model's job holds no write token; the push job does.
935
936
  */
936
937
  agent?: OpAgentSpec;
938
+ /**
939
+ * The job's cloud identities (#4631), as an op wave's `cloud` (#4332,
940
+ * #4549): the three generators trade the job's OIDC token for them in a
941
+ * step before the checkout, and every later step drops the variables a
942
+ * token is requested with. The job alone gets `id-token: write`; the
943
+ * finding-mode's permissions stay as they are. Build one with
944
+ * `cloudIdentityWave` from `@intentius/chant/ci-identity`.
945
+ */
946
+ cloud?: CloudTradeSpec;
947
+ /**
948
+ * An update the Op's run starts on drift (#4631): a job of its own after
949
+ * the Op's job, started only when the run exits with chant's drift code,
950
+ * which trades for `update.cloud` and runs `update.command`. The drift
951
+ * check never holds the update's identity, and the update never runs the
952
+ * check. A cron or pull_request trigger only.
953
+ */
954
+ update?: ScheduledOpUpdate;
955
+ }
956
+
957
+ /** A scheduled Op's update on drift (#4631). */
958
+ export interface ScheduledOpUpdate {
959
+ /** The shell line the update job runs, such as `npx --no-install plywood up`. */
960
+ command: string;
961
+ /** The identity only the update job holds. Absent: the update runs with no cloud identity of its own. */
962
+ cloud?: CloudTradeSpec;
963
+ /**
964
+ * Scopes the update job adds to `contents: read`, as
965
+ * {@link ScheduledOpSpec.permissions}. `contents: "write"` raises the
966
+ * update job's own contents scope (2026-10-28 ruling), so the update can
967
+ * record on `chant/lifecycle`; the Op's own job keeps its scopes. GitHub
968
+ * and Forgejo only: GitLab has no per-job token scopes.
969
+ */
970
+ permissions?: Record<string, "read" | "write">;
971
+ /** The forge environment the update job runs in. */
972
+ environment?: OpEnvironment;
973
+ /** Variables for the update job alone. */
974
+ variables?: Record<string, string>;
937
975
  }
938
976
 
939
977
  /**
@@ -1528,6 +1566,16 @@ export interface LexiconPlugin {
1528
1566
  */
1529
1567
  prEnvTeardown?(ctx: { cwd: string }): import("./components/pr-environment").PrEnvTeardownAdapter | undefined;
1530
1568
 
1569
+ /**
1570
+ * This lexicon's steps in the check stage (#4633,
1571
+ * `./components/check-steps.ts`): `chant ci check` runs them after the
1572
+ * `ci.hooks.check` hooks for each workspace member of the adapter's kinds,
1573
+ * with the check job's environment (no forge token, no cloud credentials).
1574
+ * The pulumi lexicon runs `pulumi install`, a stack config check and
1575
+ * `pulumi about --json` per pulumi member. Return undefined for none.
1576
+ */
1577
+ checkSteps?(): import("./components/check-steps").CheckStepsAdapter | undefined;
1578
+
1531
1579
  /**
1532
1580
  * Host Op runs — the seam `chant run <op> --on <this lexicon>` dispatches to
1533
1581
  * (#2121, epic #2114). Core ships one provider of its own, `local`, and
@@ -6,7 +6,6 @@
6
6
 
7
7
  import { describe, expect, test } from "vitest";
8
8
  import { controlEntryDigest, type ControlEntryRecord } from "../control/records";
9
- import { NEXT_RELEASE } from "../release-floors";
10
9
  import type { LedgerReadPort } from "./ledger-port";
11
10
  import { ledgerFields, LEDGER_TABLES, LEDGER_TIME_COLUMN } from "./ledger-read";
12
11
  import { LEDGER_CONTROL_ENTRIES_FLOOR, loadQueryData, QUERY_TABLES, runQuery } from "./query";
@@ -64,7 +63,7 @@ describe("control_entries", () => {
64
63
  expect(QUERY_TABLES.control_entries.map(([c]) => c)).toEqual(["member", "id", "entry", "project", "state", "product", "settings", "estates", "by", "timestamp", "digest", "prev_digest", "current"]);
65
64
  });
66
65
 
67
- test("the table's floor is the next release", () => {
68
- expect(LEDGER_CONTROL_ENTRIES_FLOOR).toBe(NEXT_RELEASE);
66
+ test("the table's floor shipped in 0.124.55", () => {
67
+ expect(LEDGER_CONTROL_ENTRIES_FLOOR).toBe("0.124.55");
69
68
  });
70
69
  });
@@ -48,14 +48,13 @@ import type { GateApprover, GatePolicyDecision, ResolvedGateApproval } from "../
48
48
  import type { GateApprovalSource } from "../op/op-waves";
49
49
  import type { GateRunLocator } from "../op/gate-run-locator";
50
50
  import { readBlobFromPath, readPathSha, readBlobBySha, writeBlobToPath, RefCASConflictError, type LedgerLocation } from "./git";
51
- import { NEXT_RELEASE } from "../release-floors";
52
51
  import { gatedRequestOf, type GatedRequest } from "./gated-request-digest";
53
52
 
54
53
  /** The first chant that writes `changeSet` on a pending fact and an approval (#4551). */
55
- export const GATE_CHANGE_SET_FLOOR = NEXT_RELEASE;
54
+ export const GATE_CHANGE_SET_FLOOR = "0.124.55";
56
55
 
57
56
  /** The first chant that writes `request` on a pending fact and reads gated requests (#4551). */
58
- export const GATED_REQUEST_FLOOR = NEXT_RELEASE;
57
+ export const GATED_REQUEST_FLOOR = "0.124.55";
59
58
 
60
59
  // The facts a pending record is written with live apart, so a bundle can import them without git (#3816).
61
60
  export { DEFAULT_GATE_EXPIRY, isApprovalUrl, resolveApprovalUrl } from "./gate-pending";
@@ -23,7 +23,6 @@
23
23
  * `--no-record` through `./git.ts`.
24
24
  */
25
25
  import { createHash } from "node:crypto";
26
- import { NEXT_RELEASE } from "../release-floors";
27
26
  import { sortedJsonReplacer } from "../utils";
28
27
  import { approveCommand, evaluateGate, gitGateLedgerPort, type GateLedgerPort } from "../op/gate";
29
28
  import type { GateApprovalSource } from "../op/op-waves";
@@ -48,7 +47,7 @@ export { GATED_REQUEST_FLOOR } from "./gate-ledger";
48
47
  * `CHANT_HOLD_FINISHED` only once it wrote the applied line, so a hook reads
49
48
  * that variable to know chant records the gate.
50
49
  */
51
- export const OP_WAVE_HOLD_RECORD_FLOOR = NEXT_RELEASE;
50
+ export const OP_WAVE_HOLD_RECORD_FLOOR = "0.124.55";
52
51
 
53
52
  /** Which approvals count for a request: the block op waves read at base. */
54
53
  export interface GatedRequestRules {
@@ -47,7 +47,6 @@ import type { LifecycleSnapshot } from "./types";
47
47
  import { appliedGatePath, finishedApply, parseAppliedGateFile } from "./gate-applied";
48
48
  import { PR_ENV_LEDGER_DIR, PR_ENV_LEDGER_FILE, parsePrEnvRecords } from "../components/pr-environment";
49
49
  import { CONTROL_LEDGER_DIR, CONTROL_LEDGER_FILE, parseControlEntries } from "../control/records";
50
- import { NEXT_RELEASE } from "../release-floors";
51
50
  import { parseReleaseStatus, RELEASE_STATUS_FILE } from "./release-status";
52
51
 
53
52
  /** The version of the table schema below. */
@@ -150,16 +149,16 @@ export const QUERY_OWNERSHIP_COLUMNS_FLOOR = "0.124.54";
150
149
  * `request` on a `gates` row (#4551). Columns added within version 1: a row
151
150
  * from an older chant lacks them.
152
151
  */
153
- export const LEDGER_WAVE_COLUMNS_FLOOR = NEXT_RELEASE;
152
+ export const LEDGER_WAVE_COLUMNS_FLOOR = "0.124.55";
154
153
 
155
154
  /** The first chant with the `applies` and `pr_envs` tables (#4551), added within version 1. */
156
- export const LEDGER_APPLIES_FLOOR = NEXT_RELEASE;
155
+ export const LEDGER_APPLIES_FLOOR = "0.124.55";
157
156
 
158
157
  /** The first chant with the `control_entries` table (#4593), added within version 1. */
159
- export const LEDGER_CONTROL_ENTRIES_FLOOR = NEXT_RELEASE;
158
+ export const LEDGER_CONTROL_ENTRIES_FLOOR = "0.124.55";
160
159
 
161
160
  /** The first chant with the `release_status` table (#4596), added within version 1 (chant#4551's ruling C). */
162
- export const LEDGER_RELEASE_STATUS_FLOOR = NEXT_RELEASE;
161
+ export const LEDGER_RELEASE_STATUS_FLOOR = "0.124.55";
163
162
 
164
163
  export type QueryTable = keyof typeof QUERY_TABLES;
165
164
 
@@ -11,7 +11,6 @@ import { spawnSync } from "node:child_process";
11
11
  import { writeFileSync } from "node:fs";
12
12
  import { join } from "node:path";
13
13
  import schema from "../workspace/release-catalog.schema.json";
14
- import { NEXT_RELEASE } from "../release-floors";
15
14
  import { appendReleaseRecord, InvalidReleaseRecordError, readReleaseLedger, RELEASE_VERSION_FLOOR, type ReleaseRecord } from "./release-ledger";
16
15
  import { parseReleaseLedger } from "./release-read";
17
16
  import {
@@ -45,9 +44,9 @@ describe("release catalog schema", () => {
45
44
  expect(schema.$id).toBe(RELEASE_CATALOG_SCHEMA_ID);
46
45
  });
47
46
 
48
- test("its floors are the next release", () => {
49
- expect(RELEASE_CATALOG_FLOOR).toBe(NEXT_RELEASE);
50
- expect(RELEASE_VERSION_FLOOR).toBe(NEXT_RELEASE);
47
+ test("its floors shipped in 0.124.55", () => {
48
+ expect(RELEASE_CATALOG_FLOOR).toBe("0.124.55");
49
+ expect(RELEASE_VERSION_FLOOR).toBe("0.124.55");
51
50
  });
52
51
  });
53
52
 
@@ -25,7 +25,7 @@ import { NEXT_RELEASE } from "../release-floors";
25
25
  import type { ReleaseRecord } from "./release-ledger";
26
26
 
27
27
  /** The first chant that writes and reads a release catalog (#4595). */
28
- export const RELEASE_CATALOG_FLOOR = NEXT_RELEASE;
28
+ export const RELEASE_CATALOG_FLOOR = "0.124.55";
29
29
 
30
30
  /** The catalog document's `$schema`. */
31
31
  export const RELEASE_CATALOG_SCHEMA_ID: string = schema.$id;
@@ -33,7 +33,6 @@ import { warnOnLegacyDigests, withoutReadFlags, type LegacyDigestFlag } from "./
33
33
  import { appendReleaseRecordLine, readReleaseLedgerLines, listLedgerEnvironments as gitListLedgerEnvironments, type LedgerLocation } from "./git";
34
34
  import { parseReleaseLedger, validateReleaseRecord } from "./release-read";
35
35
  import type { GateResolutionRecord } from "./gate-ledger";
36
- import { NEXT_RELEASE } from "../release-floors";
37
36
 
38
37
  // The pure readers live apart, so a bundle can import them without git (#3865).
39
38
  export { validateReleaseRecord, parseReleaseLedger, releaseLedgerLines, readReleaseRecords, listReleaseEnvironmentsOn } from "./release-read";
@@ -81,7 +80,7 @@ export const RUN_ORIGIN_JOB_FLOOR = "0.124.32";
81
80
  * (#4595). A record from an older chant has none, and a reader lists it by
82
81
  * digest.
83
82
  */
84
- export const RELEASE_VERSION_FLOOR = NEXT_RELEASE;
83
+ export const RELEASE_VERSION_FLOOR = "0.124.55";
85
84
 
86
85
  /**
87
86
  * The gate resolution that admitted a deploy (#4020): the gate's address in the
@@ -8,7 +8,6 @@ import { execFileSync } from "node:child_process";
8
8
  import { mkdirSync, mkdtempSync, realpathSync, rmSync, writeFileSync } from "node:fs";
9
9
  import { tmpdir } from "node:os";
10
10
  import { dirname, join } from "node:path";
11
- import { NEXT_RELEASE } from "../release-floors";
12
11
  import { gitLedgerReadPort } from "./git";
13
12
  import { readLedgerTable } from "./ledger-read";
14
13
  import { clearMemberLedgerCache } from "./member-ledger";
@@ -77,9 +76,9 @@ const status = (over: Partial<ReleaseStatusInput> = {}): ReleaseStatusInput => (
77
76
  });
78
77
 
79
78
  describe("release status floors", () => {
80
- test("are the next release", () => {
81
- expect(RELEASE_STATUS_FLOOR).toBe(NEXT_RELEASE);
82
- expect(LEDGER_RELEASE_STATUS_FLOOR).toBe(NEXT_RELEASE);
79
+ test("shipped in 0.124.55", () => {
80
+ expect(RELEASE_STATUS_FLOOR).toBe("0.124.55");
81
+ expect(LEDGER_RELEASE_STATUS_FLOOR).toBe("0.124.55");
83
82
  });
84
83
  });
85
84
 
@@ -18,13 +18,12 @@
18
18
  * so `chant query` (./query.ts) and a product bundle read the table without
19
19
  * it.
20
20
  */
21
- import { NEXT_RELEASE } from "../release-floors";
22
21
  import type { LedgerReadPort } from "./ledger-port";
23
22
  import type { LedgerLocation } from "./git";
24
23
  import type { CatalogStatusInput, ReleaseStatusValue } from "./release-catalog";
25
24
 
26
25
  /** The first chant that writes and reads `<env>/release-status.jsonl`, and lists the `release_status` table (#4596). */
27
- export const RELEASE_STATUS_FLOOR = NEXT_RELEASE;
26
+ export const RELEASE_STATUS_FLOOR = "0.124.55";
28
27
 
29
28
  /** The file a status record is appended to, in its environment's directory. */
30
29
  export const RELEASE_STATUS_FILE = "release-status.jsonl";