@intentius/chant 0.124.89 → 0.124.90

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 (163) hide show
  1. package/dist/ci-comment-commands.d.ts +18 -2
  2. package/dist/ci-comment-commands.d.ts.map +1 -1
  3. package/dist/ci-comment-commands.js +30 -2
  4. package/dist/ci-job-guard.d.ts +42 -45
  5. package/dist/ci-job-guard.d.ts.map +1 -1
  6. package/dist/ci-job-guard.js +206 -3
  7. package/dist/ci-note-commands.d.ts +41 -1
  8. package/dist/ci-note-commands.d.ts.map +1 -1
  9. package/dist/ci-note-commands.js +64 -5
  10. package/dist/ci-product.d.ts +41 -1
  11. package/dist/ci-product.d.ts.map +1 -1
  12. package/dist/ci-product.js +44 -7
  13. package/dist/cli/handlers/pr-comment.d.ts +13 -1
  14. package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
  15. package/dist/cli/handlers/pr-comment.js +90 -1
  16. package/dist/cli/handlers/pr-notes.d.ts.map +1 -1
  17. package/dist/cli/handlers/pr-notes.js +23 -1
  18. package/dist/cli/handlers/pr.js +16 -14
  19. package/dist/cli/handlers/run-wave.d.ts.map +1 -1
  20. package/dist/cli/handlers/run-wave.js +154 -4
  21. package/dist/cli/main.d.ts.map +1 -1
  22. package/dist/cli/main.js +17 -0
  23. package/dist/cli/parse-args.d.ts.map +1 -1
  24. package/dist/cli/parse-args.js +15 -0
  25. package/dist/cli/registry.d.ts +8 -1
  26. package/dist/cli/registry.d.ts.map +1 -1
  27. package/dist/components/pr-checks.d.ts +28 -1
  28. package/dist/components/pr-checks.d.ts.map +1 -1
  29. package/dist/components/pr-checks.js +35 -2
  30. package/dist/components/pr-pipeline.d.ts +3 -2
  31. package/dist/components/pr-pipeline.d.ts.map +1 -1
  32. package/dist/components/pr-pipeline.js +4 -2
  33. package/dist/components/product-pipeline.d.ts +54 -2
  34. package/dist/components/product-pipeline.d.ts.map +1 -1
  35. package/dist/components/product-pipeline.js +59 -5
  36. package/dist/components/product-plan.d.ts +13 -1
  37. package/dist/components/product-plan.d.ts.map +1 -1
  38. package/dist/components/product-plan.js +36 -10
  39. package/dist/floor-table.data.d.ts.map +1 -1
  40. package/dist/floor-table.data.js +32 -23
  41. package/dist/lexicon.d.ts +82 -4
  42. package/dist/lexicon.d.ts.map +1 -1
  43. package/dist/lifecycle/gate-applied.d.ts +9 -0
  44. package/dist/lifecycle/gate-applied.d.ts.map +1 -1
  45. package/dist/op/apply-status.d.ts +84 -0
  46. package/dist/op/apply-status.d.ts.map +1 -0
  47. package/dist/op/apply-status.js +106 -0
  48. package/dist/op/before-merge-decide.d.ts +102 -0
  49. package/dist/op/before-merge-decide.d.ts.map +1 -0
  50. package/dist/op/before-merge-decide.js +142 -0
  51. package/dist/op/before-merge-done.d.ts +56 -0
  52. package/dist/op/before-merge-done.d.ts.map +1 -0
  53. package/dist/op/before-merge-done.js +69 -0
  54. package/dist/op/before-merge-store.d.ts +20 -0
  55. package/dist/op/before-merge-store.d.ts.map +1 -0
  56. package/dist/op/before-merge-store.js +48 -0
  57. package/dist/op/before-merge.d.ts +150 -0
  58. package/dist/op/before-merge.d.ts.map +1 -0
  59. package/dist/op/before-merge.js +207 -0
  60. package/dist/op/follow-on-run.d.ts +117 -0
  61. package/dist/op/follow-on-run.d.ts.map +1 -0
  62. package/dist/op/follow-on-run.js +154 -0
  63. package/dist/op/follow-on-store.d.ts +17 -0
  64. package/dist/op/follow-on-store.d.ts.map +1 -0
  65. package/dist/op/follow-on-store.js +54 -0
  66. package/dist/op/gate.d.ts +6 -0
  67. package/dist/op/gate.d.ts.map +1 -1
  68. package/dist/op/gate.js +10 -1
  69. package/dist/op/index.d.ts +3 -1
  70. package/dist/op/index.d.ts.map +1 -1
  71. package/dist/op/index.js +1 -0
  72. package/dist/op/op-waves-after-plan.d.ts +13 -0
  73. package/dist/op/op-waves-after-plan.d.ts.map +1 -1
  74. package/dist/op/op-waves-evidence-jobs.d.ts +4 -1
  75. package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
  76. package/dist/op/op-waves-evidence-jobs.js +10 -2
  77. package/dist/op/op-waves-follow-on.d.ts +162 -0
  78. package/dist/op/op-waves-follow-on.d.ts.map +1 -0
  79. package/dist/op/op-waves-follow-on.js +355 -0
  80. package/dist/op/op-waves-run.d.ts +146 -6
  81. package/dist/op/op-waves-run.d.ts.map +1 -1
  82. package/dist/op/op-waves-run.js +871 -99
  83. package/dist/op/op-waves-split.d.ts +122 -0
  84. package/dist/op/op-waves-split.d.ts.map +1 -0
  85. package/dist/op/op-waves-split.js +166 -0
  86. package/dist/op/op-waves.d.ts +20 -0
  87. package/dist/op/op-waves.d.ts.map +1 -1
  88. package/dist/op/op-waves.js +15 -1
  89. package/dist/op/schedule-overdue.d.ts +15 -1
  90. package/dist/op/schedule-overdue.d.ts.map +1 -1
  91. package/dist/op/schedule-overdue.js +18 -2
  92. package/dist/op/stage-hooks.d.ts +36 -1
  93. package/dist/op/stage-hooks.d.ts.map +1 -1
  94. package/dist/op/stage-hooks.js +17 -3
  95. package/dist/op/wave-stop.d.ts +4 -1
  96. package/dist/op/wave-stop.d.ts.map +1 -1
  97. package/dist/op/wave-stop.js +4 -2
  98. package/dist/pr-post.d.ts.map +1 -1
  99. package/dist/pr-post.js +2 -1
  100. package/dist/release-floors.d.ts +3 -1
  101. package/dist/release-floors.d.ts.map +1 -1
  102. package/dist/release-floors.js +21 -19
  103. package/dist/wave-blocked.d.ts +7 -1
  104. package/dist/wave-blocked.d.ts.map +1 -1
  105. package/dist/wave-blocked.js +7 -2
  106. package/dist/wave-runtime.mjs +364 -351
  107. package/package.json +1 -1
  108. package/src/ci-comment-commands.test.ts +63 -0
  109. package/src/ci-comment-commands.ts +43 -4
  110. package/src/ci-image.test.ts +1 -2
  111. package/src/ci-job-guard.before-merge.test.ts +148 -0
  112. package/src/ci-job-guard.follow-on-record.test.ts +137 -0
  113. package/src/ci-job-guard.follow-on.test.ts +144 -0
  114. package/src/ci-job-guard.ts +221 -3
  115. package/src/ci-note-commands.test.ts +76 -1
  116. package/src/ci-note-commands.ts +96 -7
  117. package/src/ci-product.ts +55 -7
  118. package/src/cli/handlers/pr-comment.ts +85 -2
  119. package/src/cli/handlers/pr-notes.ts +30 -6
  120. package/src/cli/handlers/pr.ts +14 -11
  121. package/src/cli/handlers/run-wave.ts +144 -4
  122. package/src/cli/main.ts +17 -0
  123. package/src/cli/parse-args.ts +11 -0
  124. package/src/cli/registry.ts +8 -1
  125. package/src/components/pr-checks.ts +55 -2
  126. package/src/components/pr-pipeline.ts +5 -3
  127. package/src/components/product-pipeline.apply-status.test.ts +50 -0
  128. package/src/components/product-pipeline.ts +113 -8
  129. package/src/components/product-plan.test.ts +23 -5
  130. package/src/components/product-plan.ts +43 -12
  131. package/src/floor-table.data.ts +32 -23
  132. package/src/lexicon.ts +78 -1
  133. package/src/lifecycle/gate-applied.ts +7 -0
  134. package/src/op/apply-status.test.ts +83 -0
  135. package/src/op/apply-status.ts +132 -0
  136. package/src/op/before-merge-decide.ts +190 -0
  137. package/src/op/before-merge-done.ts +99 -0
  138. package/src/op/before-merge-store.ts +44 -0
  139. package/src/op/before-merge.test.ts +201 -0
  140. package/src/op/before-merge.ts +266 -0
  141. package/src/op/follow-on-run.ts +206 -0
  142. package/src/op/follow-on-store.ts +54 -0
  143. package/src/op/gate.ts +16 -1
  144. package/src/op/index.ts +5 -0
  145. package/src/op/op-waves-after-plan.ts +13 -0
  146. package/src/op/op-waves-evidence-jobs.ts +11 -3
  147. package/src/op/op-waves-follow-on-record.test.ts +152 -0
  148. package/src/op/op-waves-follow-on.test.ts +247 -0
  149. package/src/op/op-waves-follow-on.ts +385 -0
  150. package/src/op/op-waves-render-spec.test.ts +1 -2
  151. package/src/op/op-waves-run.ts +971 -93
  152. package/src/op/op-waves-split-product.test.ts +288 -0
  153. package/src/op/op-waves-split-step.test.ts +298 -0
  154. package/src/op/op-waves-split.test.ts +196 -0
  155. package/src/op/op-waves-split.ts +189 -0
  156. package/src/op/op-waves.ts +28 -3
  157. package/src/op/schedule-overdue.test.ts +29 -1
  158. package/src/op/schedule-overdue.ts +27 -3
  159. package/src/op/stage-hooks.ts +52 -4
  160. package/src/op/wave-stop.ts +5 -3
  161. package/src/pr-post.ts +2 -1
  162. package/src/release-floors.ts +22 -19
  163. package/src/wave-blocked.ts +9 -4
@@ -101,6 +101,36 @@ export const spawnExec: OpWaveExec = (argv, cwd, env) => {
101
101
  /** {@link OpWaveExec} for {@link runStageHooksAsync} (#4334): the exit code comes back as a promise, so the event loop runs while a hook does. */
102
102
  export type OpWaveAsyncExec = (argv: string[], cwd: string, env?: Record<string, string>) => Promise<number>;
103
103
 
104
+ /**
105
+ * One call of a hook a product serves in its own process (#4994), as
106
+ * {@link OpWaveInProcessHook} gets it: the hook's name and moment, its run
107
+ * for a `perRun` hook, the argv its command would have run with, the job's
108
+ * directory and the `CHANT_*` variables the command would have had.
109
+ */
110
+ export interface OpWaveInProcessHookCall {
111
+ name: string;
112
+ moment: CiHookMoment;
113
+ target?: string;
114
+ argv: string[];
115
+ cwd: string;
116
+ env: Record<string, string>;
117
+ }
118
+
119
+ /**
120
+ * A hook a product's bin serves in the job's own process (#4994), in place
121
+ * of the hook's command: the spec, read at base, still names the hook and
122
+ * its command, and a job whose process hands a function under that name
123
+ * calls it with the command's argv and variables. Its exit code counts as
124
+ * the command's would, a hold included: it writes `CHANT_HOLD` and returns
125
+ * non-zero. It runs in whichever job runs the hook, so one split wave's plan,
126
+ * gate and applying jobs each call it in their own process; what it needs
127
+ * from an earlier job it reads from files that job left, such as its own
128
+ * under `opWaveProductStateDir` (`./op-waves-split.ts`), which the plan job
129
+ * hands the gate and applying jobs. This replaces a hook that called back
130
+ * into a long-lived product process over a socket.
131
+ */
132
+ export type OpWaveInProcessHook = (call: OpWaveInProcessHookCall) => Promise<number>;
133
+
104
134
  /** {@link spawnExec} on `spawn`: it rejects when the command cannot start. */
105
135
  export const spawnExecAsync: OpWaveAsyncExec = (argv, cwd, env) =>
106
136
  new Promise((resolve, reject) => {
@@ -220,6 +250,10 @@ export interface HookPlace {
220
250
  /** One hook call {@link hookListSteps} asks its driver to run. The driver sends back the exit code. */
221
251
  interface HookCall {
222
252
  label: string;
253
+ /** The hook's name and moment, and its run for a `perRun` hook: what an in-process hook is found by and gets (#4994). */
254
+ name: string;
255
+ moment: CiHookMoment;
256
+ target?: string;
223
257
  argv: string[];
224
258
  cwd: string;
225
259
  env: Record<string, string>;
@@ -269,7 +303,7 @@ function* hookListSteps(
269
303
  for (const call of calls) {
270
304
  const label = `${moment} hook ${name}${call.target ? ` (${call.target})` : ""}`;
271
305
  rmSync(join(cwd, holdPath), { force: true });
272
- const code = yield { label, argv: call.argv, cwd, env: call.env };
306
+ const code = yield { label, name, moment, ...(call.target ? { target: call.target } : {}), argv: call.argv, cwd, env: call.env };
273
307
  const base = { moment, name, ...(call.target ? { target: call.target } : {}), exit: code };
274
308
  if (code === 0) {
275
309
  out.outcomes.push({ ...base, outcome: "passed" });
@@ -296,6 +330,13 @@ function* hookListSteps(
296
330
  return out;
297
331
  }
298
332
 
333
+ /** The in-process hook a product serves under `name` (#4994), or undefined: an own property that is a function. */
334
+ export function inProcessHookOf(hooks: Readonly<Record<string, OpWaveInProcessHook>> | undefined, name: string): OpWaveInProcessHook | undefined {
335
+ if (!hooks || !Object.prototype.hasOwnProperty.call(hooks, name)) return undefined;
336
+ const fn = hooks[name];
337
+ return typeof fn === "function" ? fn : undefined;
338
+ }
339
+
299
340
  /** The exit code a call that did not start counts as, after its error is logged. */
300
341
  function didNotRun(call: HookCall, err: unknown, log: (line: string) => void): number {
301
342
  log(`${call.label} did not run: ${err instanceof Error ? err.message : String(err)}`);
@@ -330,9 +371,13 @@ export function runHookList(
330
371
  return step.value;
331
372
  }
332
373
 
333
- /** {@link runHookList} with an exec that returns a promise (#4334). */
374
+ /**
375
+ * {@link runHookList} with an exec that returns a promise (#4334). A hook
376
+ * whose name `at.inProcess` holds is called in this process in place of its
377
+ * command (#4994).
378
+ */
334
379
  export async function runHookListAsync(
335
- at: Omit<HookPlace, "exec"> & { exec: OpWaveAsyncExec },
380
+ at: Omit<HookPlace, "exec"> & { exec: OpWaveAsyncExec; inProcess?: Readonly<Record<string, OpWaveInProcessHook>> },
336
381
  moment: CiHookMoment,
337
382
  hooks: readonly OpWaveHook[] | undefined,
338
383
  runs: readonly OpWaveHookRun[],
@@ -345,7 +390,10 @@ export async function runHookListAsync(
345
390
  const call = step.value;
346
391
  let code: number;
347
392
  try {
348
- code = await at.exec(call.argv, call.cwd, call.env);
393
+ const own = inProcessHookOf(at.inProcess, call.name);
394
+ code = own
395
+ ? await own({ name: call.name, moment: call.moment, ...(call.target ? { target: call.target } : {}), argv: call.argv, cwd: call.cwd, env: call.env })
396
+ : await at.exec(call.argv, call.cwd, call.env);
349
397
  } catch (err) {
350
398
  code = didNotRun(call, err, at.log);
351
399
  }
@@ -88,12 +88,14 @@ export async function waveStopAt(op: string, sha: string, opts: { cwd?: string }
88
88
  * What a wave job of op `op` says when wave `k` waits behind a comment's
89
89
  * stop at the job's checkout (`git rev-parse HEAD`). Undefined when it runs:
90
90
  * no stop, no commit to read, or a branch that cannot be read, so a stop
91
- * never fails a wave that would have run.
91
+ * never fails a wave that would have run. `sha` (#4987) names the commit
92
+ * in place of the checkout's: a split wave's gate job runs at the default
93
+ * branch and reads the stop of the decided head.
92
94
  */
93
- export async function waveStopLine(op: string, k: number, opts: { cwd?: string } = {}): Promise<string | undefined> {
95
+ export async function waveStopLine(op: string, k: number, opts: { cwd?: string; sha?: string } = {}): Promise<string | undefined> {
94
96
  let sha: string;
95
97
  try {
96
- sha = await getHeadCommit(opts);
98
+ sha = opts.sha ?? (await getHeadCommit(opts));
97
99
  } catch {
98
100
  return undefined;
99
101
  }
package/src/pr-post.ts CHANGED
@@ -199,7 +199,8 @@ function productLineOf(name: string | undefined, marker: unknown): string | unde
199
199
  /** The one plain word a re-plan was narrowed to (#4963), or undefined. */
200
200
  function narrowedTo(input: Pick<PlanPostInput, "notAffected">): string | undefined {
201
201
  const a = input.notAffected?.trim();
202
- return a && /^[A-Za-z0-9_.\/@+=,:-]+$/.test(a) ? a : undefined;
202
+ // #4984: a word that starts with `-` is a flag, never the argument a re-plan was narrowed to.
203
+ return a && /^[A-Za-z0-9_.\/@+=,:][A-Za-z0-9_.\/@+=,:-]*$/.test(a) ? a : undefined;
203
204
  }
204
205
 
205
206
  /**
@@ -19,7 +19,7 @@
19
19
  * this constant to the next patch (#4501). The check fails while a floor
20
20
  * still names this constant after its version shipped.
21
21
  */
22
- export const NEXT_RELEASE = "0.124.89";
22
+ export const NEXT_RELEASE = "0.124.90";
23
23
 
24
24
  /** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
25
25
  export const LOCAL_CHANT_FLOOR = "0.124.86";
@@ -40,7 +40,7 @@ export const TERRAFORM_ENGINE_TIMINGS_FLOOR = "0.124.88";
40
40
  export const TERRAFORM_ROOT_HELPERS_FLOOR = "0.124.88";
41
41
 
42
42
  /** The first chant whose terraform lexicon has one runner of the engine for a product (`engineRunner` in `engine-runner`: a hooked `exec`, `execSync`, `terragrunt` and the tokenless `script`), traces each engine command (`commandTrace`, `commandTraceEnv`), sends each Terragrunt unit's plan through `planTerragruntWave({ onCommand })`, and resolves a live root's record store (`liveRecordStore`, `writtenRecordStore`, `rootBackendAttrs` in `live-roots`) (#4954). */
43
- export const TERRAFORM_ENGINE_RUNNER_FLOOR = NEXT_RELEASE;
43
+ export const TERRAFORM_ENGINE_RUNNER_FLOOR = "0.124.89";
44
44
 
45
45
  /** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
46
46
  export const PRODUCT_HELPERS_FLOOR = "0.124.86";
@@ -179,51 +179,54 @@ export const REF_GATE_STATUS_JOB_FLOOR = "0.124.88";
179
179
  export const REF_GATE_PIECES_FLOOR = "0.124.88";
180
180
 
181
181
  /** The first chant whose `chant release cut --yes` pushes `chant/lifecycle` again when the remote refuses it, and exits non-zero untagged (`release-record-not-pushed`) when the release record never lands, so the release workflow does not push the tag (#4965). */
182
- export const RELEASE_CUT_RECORD_FLOOR = NEXT_RELEASE;
182
+ export const RELEASE_CUT_RECORD_FLOOR = "0.124.89";
183
183
 
184
184
  /** The first chant whose release cut refuses, before it records or tags, a release whose npm publish target would carry an image archive (`publish-npm-carries-image`), and whose GitLab release workflow runs the binfmt image by digest from `IMAGE_PINS` (#4941). */
185
- export const RELEASE_CUT_CARRIES_IMAGE_FLOOR = NEXT_RELEASE;
185
+ export const RELEASE_CUT_CARRIES_IMAGE_FLOOR = "0.124.89";
186
186
  /** The first chant whose `ciToolFetchScript` and `ciToolInstallLine` take `download: "node"`, a fetch and unzip with node for an image with no curl or unzip, whose `CI_TOOL_SHA256` records just 1.36.0 and act 0.2.89 and checks them against their releases' checksums files, and whose overdue check deepens a shallow checkout before it dates a pipeline file (#4952). */
187
- export const CI_TOOL_NODE_DOWNLOAD_FLOOR = NEXT_RELEASE;
187
+ export const CI_TOOL_NODE_DOWNLOAD_FLOOR = "0.124.89";
188
188
 
189
189
  /** The first chant whose `chant build -o <dir>/` writes a build's additional files (a docker project's Dockerfiles) into the directory with no primary file, whose `chantGenerated` renders take a `module` and its `export` (a `{ path: text }` object or a function returning one) and `chant dev render <module> <export>` writes them in place, and whose `chant ci workflow` and `chant release workflow` write into `chant dev generated-check`'s render tree with no `--output` (#4950). */
190
- export const RENDER_KINDS_FLOOR = NEXT_RELEASE;
190
+ export const RENDER_KINDS_FLOOR = "0.124.89";
191
191
 
192
192
  /** The first chant whose sql lexicon's `chant lifecycle diff --live` addresses a table's columns by name (`columns[#country].default.expr`), compares a ClickHouse table's column order as `columnOrder`, and reports a column the server has and the declaration does not as pending, and whose `lexiconDriftRecords` counts a deep read's pending changes (that column, a ClickHouse or Postgres privilege granted by hand) as drift (#4944). */
193
- export const SQL_LIVE_COLUMNS_FLOOR = NEXT_RELEASE;
193
+ export const SQL_LIVE_COLUMNS_FLOOR = "0.124.89";
194
194
 
195
195
  /** The first chant whose `driftNotifyFields` takes `stacks`, each member's drift records, and from them names the drifted members and computes the run's fingerprint (#4944). */
196
- export const DRIFT_NOTIFY_STACKS_FLOOR = NEXT_RELEASE;
196
+ export const DRIFT_NOTIFY_STACKS_FLOOR = "0.124.89";
197
197
 
198
198
  /** The first chant whose workspace member's pull request pipeline takes `evidence`, `checkJob` and `refGateStatus` (`chant build --pr-loop` in a member), signing the member's plan job as `plan:<member>` and `policy:<member>` (`ci evidence sign --member`, `memberEvidenceCheck`) and running the check job in the member's directory (#4964). */
199
- export const MEMBER_SIGNED_CHECKS_FLOOR = NEXT_RELEASE;
199
+ export const MEMBER_SIGNED_CHECKS_FLOOR = "0.124.89";
200
200
 
201
201
  /** The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964). */
202
- export const PRODUCT_CHECK_JOBS_FLOOR = NEXT_RELEASE;
202
+ export const PRODUCT_CHECK_JOBS_FLOOR = "0.124.89";
203
+
204
+ /** The first chant whose `checkJob` takes `artifacts: { paths, reports }` (`PrCheckArtifacts`), which GitLab's check job keeps beside its report as `artifacts:paths` and `artifacts:reports`, such as a lint hook's `codequality` report (#4988). */
205
+ export const CHECK_JOB_ARTIFACTS_FLOOR = NEXT_RELEASE;
203
206
 
204
207
  /** The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964). */
205
- export const GITLAB_WAVE_KEY_SCOPE_FLOOR = NEXT_RELEASE;
208
+ export const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
206
209
 
207
210
  /** The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966). */
208
- export const ACTOR_ORDER_FLOOR = NEXT_RELEASE;
211
+ export const ACTOR_ORDER_FLOOR = "0.124.89";
209
212
 
210
213
  /** The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966). */
211
- export const CI_BASE_REF_FLOOR = NEXT_RELEASE;
214
+ export const CI_BASE_REF_FLOOR = "0.124.89";
212
215
 
213
216
  /** The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966). */
214
- export const PLANNED_FILES_FLOOR = NEXT_RELEASE;
217
+ export const PLANNED_FILES_FLOOR = "0.124.89";
215
218
 
216
219
  /** The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966). */
217
- export const FORGE_CHECK_OWN_JOBS_FLOOR = NEXT_RELEASE;
220
+ export const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
218
221
 
219
222
  /** The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966). */
220
- export const BEFORE_MERGE_REF_GATE_FLOOR = NEXT_RELEASE;
223
+ export const BEFORE_MERGE_REF_GATE_FLOOR = "0.124.89";
221
224
 
222
225
  /** The first chant whose product plan with `targets` and `evidence` signs each target's plan job as `plan:<target>` and `policy:<target>` (`ci evidence sign --member <target>`, `targetEvidenceCheck`, `productPlanEvidenceChecks`), and whose `refGateInitPlan` takes `targets` and names those checks in the `refs` rule (#4978). */
223
- export const TARGET_SIGNED_CHECKS_FLOOR = NEXT_RELEASE;
226
+ export const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
224
227
 
225
228
  /** The first chant whose Op waves generators take `renderSpec` (the wave jobs run `chant run wave --render-spec`, and `CHANT_WAVES_SPEC_COMMAND` names the product command that prints the spec at the commit in `CHANT_WAVES_SPEC_AT`), so a product whose spec is built from its config at base renders its wave jobs, policy step, evidence job and cloud trade through chant (#4982). */
226
- export const RUNTIME_WAVES_SPEC_FLOOR = NEXT_RELEASE;
229
+ export const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
227
230
 
228
231
  /** The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978). */
229
- export const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = NEXT_RELEASE;
232
+ export const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = "0.124.89";
@@ -180,18 +180,23 @@ export function runSummary(outcomes: Iterable<WaveMemberOutcome>): string | unde
180
180
  return parts.join(", ");
181
181
  }
182
182
 
183
- /** The outcome file of a wave's job, or of one group or share of it. */
184
- export function waveOutcomeFileName(wave: number, part: { group?: string; share?: number } = {}): string {
183
+ /**
184
+ * The outcome file of a wave's job, or of one group or share of it. With
185
+ * `apply` (#4987), a split wave's own applying job's: `-apply`, so it is
186
+ * never the gate job's file of the same wave, which that job reads.
187
+ */
188
+ export function waveOutcomeFileName(wave: number, part: { group?: string; share?: number; apply?: boolean } = {}): string {
185
189
  const group = part.group !== undefined ? `-group-${part.group.replace(/[^A-Za-z0-9._-]/g, "_")}` : "";
186
190
  const share = part.share !== undefined ? `-share-${part.share}` : "";
187
- return `outcome-wave-${wave}${group}${share}.json`;
191
+ const apply = part.apply === true && !group && !share ? "-apply" : "";
192
+ return `outcome-wave-${wave}${group}${share}${apply}.json`;
188
193
  }
189
194
 
190
195
  /** Write a wave job's outcome file in `dir`, members sorted by name. Returns its path. */
191
196
  export function writeWaveOutcomeFile(
192
197
  dir: string,
193
198
  wave: number,
194
- part: { group?: string; share?: number },
199
+ part: { group?: string; share?: number; apply?: boolean },
195
200
  members: Record<string, WaveMemberOutcome>,
196
201
  at = new Date().toISOString(),
197
202
  holdsAll = false,