@intentius/chant 0.124.93 → 0.124.94

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 (62) hide show
  1. package/dist/ci-product.d.ts +17 -1
  2. package/dist/ci-product.d.ts.map +1 -1
  3. package/dist/ci-product.js +23 -7
  4. package/dist/cli/handlers/run-wave.js +17 -3
  5. package/dist/cli/main.d.ts.map +1 -1
  6. package/dist/cli/main.js +4 -1
  7. package/dist/floor-table.data.d.ts.map +1 -1
  8. package/dist/floor-table.data.js +13 -6
  9. package/dist/gate-resume-run.d.ts +7 -0
  10. package/dist/gate-resume-run.d.ts.map +1 -1
  11. package/dist/gate-resume-run.js +42 -3
  12. package/dist/lexicon.d.ts +47 -1
  13. package/dist/lexicon.d.ts.map +1 -1
  14. package/dist/lifecycle/gate-applied.d.ts +18 -0
  15. package/dist/lifecycle/gate-applied.d.ts.map +1 -1
  16. package/dist/op/gate-run-locator.d.ts +17 -0
  17. package/dist/op/gate-run-locator.d.ts.map +1 -1
  18. package/dist/op/index.d.ts +3 -1
  19. package/dist/op/index.d.ts.map +1 -1
  20. package/dist/op/index.js +2 -1
  21. package/dist/op/op-waves-names.d.ts +40 -0
  22. package/dist/op/op-waves-names.d.ts.map +1 -1
  23. package/dist/op/op-waves-names.js +79 -0
  24. package/dist/op/op-waves-remainder.d.ts +110 -0
  25. package/dist/op/op-waves-remainder.d.ts.map +1 -0
  26. package/dist/op/op-waves-remainder.js +120 -0
  27. package/dist/op/op-waves-render-spec.d.ts +63 -5
  28. package/dist/op/op-waves-render-spec.d.ts.map +1 -1
  29. package/dist/op/op-waves-render-spec.js +68 -10
  30. package/dist/op/op-waves-run.d.ts +27 -1
  31. package/dist/op/op-waves-run.d.ts.map +1 -1
  32. package/dist/op/op-waves-run.js +192 -4
  33. package/dist/op/op-waves-split-resume.d.ts +57 -0
  34. package/dist/op/op-waves-split-resume.d.ts.map +1 -0
  35. package/dist/op/op-waves-split-resume.js +94 -0
  36. package/dist/op/op-waves.d.ts +26 -1
  37. package/dist/op/op-waves.d.ts.map +1 -1
  38. package/dist/op/op-waves.js +11 -2
  39. package/dist/release-floors.d.ts +9 -1
  40. package/dist/release-floors.d.ts.map +1 -1
  41. package/dist/release-floors.js +9 -1
  42. package/dist/wave-runtime.mjs +360 -360
  43. package/package.json +1 -1
  44. package/src/ci-product.ts +26 -7
  45. package/src/cli/handlers/run-wave.ts +16 -3
  46. package/src/cli/main.ts +4 -1
  47. package/src/floor-table.data.ts +13 -6
  48. package/src/gate-resume-run.ts +38 -3
  49. package/src/lexicon.ts +47 -1
  50. package/src/lifecycle/gate-applied.ts +16 -0
  51. package/src/op/gate-run-locator.ts +14 -0
  52. package/src/op/index.ts +5 -0
  53. package/src/op/op-waves-names.ts +80 -0
  54. package/src/op/op-waves-remainder.test.ts +342 -0
  55. package/src/op/op-waves-remainder.ts +146 -0
  56. package/src/op/op-waves-render-spec.test.ts +107 -0
  57. package/src/op/op-waves-render-spec.ts +81 -10
  58. package/src/op/op-waves-run.ts +200 -5
  59. package/src/op/op-waves-split-resume.test.ts +149 -0
  60. package/src/op/op-waves-split-resume.ts +109 -0
  61. package/src/op/op-waves.ts +33 -2
  62. package/src/release-floors.ts +13 -1
@@ -58,10 +58,12 @@ import { decideWaveGate, runWaveLoop, waveDigestMembers, waveSetDigest, writeWav
58
58
  import { blockedMembers, blockedWords, earlierWaveOutcomes, passesThrough, readWaveOutcomeFile, waveOutcomeFileName, writeWaveOutcomeFile, } from "../wave-blocked.js";
59
59
  import { approveCommand, evaluateGate, gitGateLedgerPort } from "./gate.js";
60
60
  import { finishedApply, isApprovalSpent } from "../lifecycle/gate-applied.js";
61
+ import { opWaveApprovedChanges, opWaveCoverRemainder, opWaveRunCovered, opWaveStoppedApply, opWaveUnfinishedApply } from "./op-waves-remainder.js";
61
62
  import { samePlanDigest } from "../lifecycle/plan-digest.js";
62
63
  import { movedSincePreview } from "./op-waves-preview.js";
63
64
  import { isLifecycleLocalNote } from "../lifecycle/local-note.js";
64
- import { ciRunIdFromEnv } from "./gate-run-locator.js";
65
+ import { ciRunIdFromEnv, resolveGateRunLocator } from "./gate-run-locator.js";
66
+ import { opWaveSplitResumeLocator } from "./op-waves-split-resume.js";
65
67
  import { appendRunRecord, DEFAULT_RUN_ENV } from "../lifecycle/run-ledger.js";
66
68
  import { LifecyclePushLostError, pushLifecycleRebasing } from "../lifecycle/git.js";
67
69
  import { opWaveEvidenceRefusal, signOpWaveChecks } from "./op-waves-evidence.js";
@@ -150,16 +152,19 @@ export function readOpWavePolicy(specFile, name, base, cwd, show = gitShowAtBase
150
152
  }
151
153
  // The spend rule is the spec's, so it holds for a wave the base does not have yet.
152
154
  const spend = spec.approvals?.spend === true;
155
+ // #5047: the rest of a stopped apply, and an approval left standing, both work on the spend rule's lines.
156
+ const settings = spec.approvals;
157
+ const spendRules = { ...(spend && settings?.remainder === true ? { remainder: true } : {}), ...(spend && settings?.spendStanding === true ? { spendStanding: true } : {}) };
153
158
  const neverOverMcp = spec.neverOverMcp === true;
154
159
  // #3836: the gate's decision point, the spec's for a wave the base does not have yet.
155
160
  const asks = { ...pointAtBase(spec, name, `${specFile} at ${sha.slice(0, 12)}`), ...quorumAtBase(spec, `${specFile} at ${sha.slice(0, 12)}`), ...holdsAtBase(spec, `${specFile} at ${sha.slice(0, 12)}`), ...evidenceAtBase(spec, `${specFile} at ${sha.slice(0, 12)}`), ...pullRequestGateAtBase(spec), ...(spec.approvals?.preview === true ? { preview: true } : {}) };
156
161
  const wave = spec.waves.find((w) => w.name === name);
157
162
  if (!wave)
158
- return { ...absent, spend, neverOverMcp, ...asks };
163
+ return { ...absent, spend, ...spendRules, neverOverMcp, ...asks };
159
164
  const policy = wave.gate ?? "always";
160
165
  // An approval mode this chant does not know reads as sealed: the strictest, so an unknown rule never loosens a gate.
161
166
  const approval = wave.approval === undefined ? "ledger" : GATE_APPROVAL_SOURCES.includes(wave.approval) ? wave.approval : "sealed";
162
- const rules = { policy: OP_WAVE_GATE_POLICIES.includes(policy) ? policy : "always", approval, source: "base", base: sha, hooks: noHooks(), spend, applyHooksRunBy: "chant", neverOverMcp, ...asks };
167
+ const rules = { policy: OP_WAVE_GATE_POLICIES.includes(policy) ? policy : "always", approval, source: "base", base: sha, hooks: noHooks(), spend, ...spendRules, applyHooksRunBy: "chant", neverOverMcp, ...asks };
163
168
  try {
164
169
  assertOpWaveHooks(`${specFile} at ${sha.slice(0, 12)}`, spec.hooks);
165
170
  assertOpWaveHooks(`${specFile} at ${sha.slice(0, 12)}, wave "${name}"`, wave.hooks);
@@ -2271,6 +2276,12 @@ async function writeOpWaveRecords(options, at) {
2271
2276
  result.exitCode = codes.every((c) => c === CHANT_EXIT.done) ? CHANT_EXIT.done : (codes.find((c) => c !== CHANT_EXIT.done && c !== CHANT_EXIT.failed) ?? CHANT_EXIT.failed);
2272
2277
  if (lost && result.exitCode === CHANT_EXIT.done)
2273
2278
  result.exitCode = CHANT_EXIT.failed;
2279
+ // #5047: how the apply under the gate job's applied line ended; an applying job that left no run record stopped, and says nothing.
2280
+ const line = decision ? remainderLine(decision) : undefined;
2281
+ if (line && !codes.includes(CHANT_EXIT.waiting)) {
2282
+ const applied = codes.every((c) => c === CHANT_EXIT.done) && result.failed.length === 0;
2283
+ await writeApplyFinished(options, { spec: options.spec, k, wave: { name: decision.name }, cwd, log }, line, applied ? "applied" : "failed");
2284
+ }
2274
2285
  log(`wave ${k}: wrote the run record${records.length === 1 ? "" : "s"} of ${records.length} applying job${records.length === 1 ? "" : "s"}; the wave ends with exit ${result.exitCode}`);
2275
2286
  return result;
2276
2287
  }
@@ -2497,6 +2508,8 @@ async function openWaveDecision(options, ctx, opts) {
2497
2508
  status: "not-required",
2498
2509
  ...(Object.keys(hooks).length > 0 ? { hooks } : {}),
2499
2510
  ...(rules.spend ? { spend: "base" } : spec.approvals?.spend === true ? { spend: "change" } : {}),
2511
+ ...(rules.remainder ? { remainder: true } : {}),
2512
+ ...(rules.spendStanding ? { spendStanding: true } : {}),
2500
2513
  ...(rules.applyHooksRunBy === "apply" ? { applyHooksRunBy: "apply" } : {}),
2501
2514
  ...(spec.digest?.over === "changing" ? { digestOver: "changing" } : {}),
2502
2515
  ...(neverOverMcp ? { neverOverMcp: true } : {}),
@@ -2721,6 +2734,20 @@ async function shareUnmoved(planned) {
2721
2734
  const unmoved = [];
2722
2735
  for (const run of slice) {
2723
2736
  const now = planned.planned.get(run.target);
2737
+ if (decidedDigests.get(run.target) !== now.planDigest && ctx.options.phase === "apply" && decision.remainder && decision.changes) {
2738
+ // #5047: a split wave's applying job run again after it stopped: a plan that makes only changes the decision recorded is their rest.
2739
+ const cover = opWaveRunCovered(decision.changes, run.target, now, ctx.steps);
2740
+ if (cover.covered && now.empty === true) {
2741
+ ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided and changes nothing now, so every change the decision recorded for it is done`);
2742
+ continue;
2743
+ }
2744
+ if (cover.covered) {
2745
+ ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided; ${cover.done.length} of the changes the decision recorded for it are done and it makes the other ${cover.remaining.length}, so it applies under the decision's approval`);
2746
+ unmoved.push(run);
2747
+ continue;
2748
+ }
2749
+ ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided, and ${cover.why}`);
2750
+ }
2724
2751
  if (decidedDigests.get(run.target) !== now.planDigest) {
2725
2752
  ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided, so it was not applied. ` +
2726
2753
  `decided: ${decidedDigests.get(run.target) ?? "(not in the decision)"}; planned now: ${now.planDigest}`);
@@ -2805,14 +2832,25 @@ async function decideOpWave(options, { prior }, planned, digest) {
2805
2832
  else
2806
2833
  log(`wave ${k} (${wave.name}): ${seen.preview.reason}`);
2807
2834
  }
2835
+ // #5047: under approvals.remainder at base, the changes the applied line names, and the stopped apply these plans are the rest of.
2836
+ if (decision.remainder && !kept && decision.status !== "refused" && !unseen)
2837
+ await remainderOf(options, ctx, decision, members, extras);
2808
2838
  if (kept && was.status === "approved" && decision.status !== "refused") {
2809
2839
  // #3821: planned again after the apply asked to, to the same digest: the approval this job found still holds, and is not spent twice.
2810
- for (const key of ["via", "approvedBy", "approvedAt", "review", "spentAt"])
2840
+ for (const key of ["via", "approvedBy", "approvedAt", "review", "spentAt", "changes", "resumes"])
2811
2841
  if (was[key] !== undefined)
2812
2842
  decision[key] = was[key];
2813
2843
  decision.status = "approved";
2814
2844
  log(`wave ${k} (${wave.name}): planned again to the same digest, so the approval by ${was.approvedBy} still holds`);
2815
2845
  }
2846
+ else if (decision.resumes && decision.status !== "refused" && (opWaveNeedsApproval(policy, members) || holds.length > 0)) {
2847
+ // #5047: the rest of a stopped apply goes out under the approval it applied under, which its applied line already spent.
2848
+ decision.status = "approved";
2849
+ decision.via = "ledger";
2850
+ decision.approvedBy = decision.resumes.approvedBy;
2851
+ decision.approvedAt = decision.resumes.approvedAt;
2852
+ decision.spentAt = decision.resumes.appliedAt;
2853
+ }
2816
2854
  else if (decision.status !== "refused" && (unseen || opWaveNeedsApproval(policy, members) || holds.length > 0)) {
2817
2855
  // terragucci issue 1303: what the product settled before the gate, recorded at it for these plans first.
2818
2856
  if (ctx.answerApprovals?.length)
@@ -2984,6 +3022,10 @@ async function applyOpWave(options, planned, decidedWave) {
2984
3022
  await applyStage(options, ctx, decision, decidedWave.runs, planned.planned, decidedWave.earlierHolds, decidedWave.recordPath);
2985
3023
  if (planned.kind === "share" && ctx.result.exitCode === 0 && ctx.result.moved.length > 0)
2986
3024
  ctx.result.exitCode = CHANT_EXIT.moved;
3025
+ // #5047: the job that applied the whole wave under an approval its applied line names says how the apply ended.
3026
+ const line = planned.kind === "share" ? undefined : remainderLine(decision);
3027
+ if (line && ctx.result.exitCode !== CHANT_EXIT.waiting)
3028
+ await writeApplyFinished(options, ctx, line, ctx.result.exitCode === 0 && ctx.result.failed.length === 0 ? "applied" : "failed");
2987
3029
  return ctx.result;
2988
3030
  }
2989
3031
  /**
@@ -4241,12 +4283,18 @@ async function submitStepReleases(port, requests, label, log) {
4241
4283
  * ledger, so a line recorded there is spent.
4242
4284
  */
4243
4285
  async function spendApproval(options, ctx, decision) {
4286
+ // #5047: an approval of these very plans left standing while the gate let them through is spent as they apply.
4287
+ if (decision.spendStanding && decision.spend === "base" && decision.status === "not-required" && !decision.spentAt && options.phase !== "apply") {
4288
+ await spendStanding(options, ctx, decision);
4289
+ return true;
4290
+ }
4244
4291
  if (!decision.spend || decision.status !== "approved" || decision.spentAt || !decision.approvedAt)
4245
4292
  return true;
4246
4293
  const { spec, k, wave, cwd, log } = ctx;
4247
4294
  const port = options.gates ?? gitGateLedgerPort({ cwd });
4248
4295
  const now = options.now ?? new Date().toISOString();
4249
4296
  const record = {
4297
+ ...(decision.remainder && decision.changes ? remainderFields(options, ctx, decision, decision.changes) : {}),
4250
4298
  version: 1,
4251
4299
  kind: "applied",
4252
4300
  op: spec.name,
@@ -4272,8 +4320,148 @@ async function spendApproval(options, ctx, decision) {
4272
4320
  }
4273
4321
  decision.spentAt = now;
4274
4322
  log(`wave ${k} (${wave.name}) applies under the approval by ${record.approvedBy} at ${record.approvedAt}, which is now spent`);
4323
+ if (record.changes)
4324
+ log(`wave ${k} (${wave.name}): ${record.changes.length} change${record.changes.length === 1 ? "" : "s"} recorded on the applied line, so an apply that stops applies the rest under this approval`);
4275
4325
  return true;
4276
4326
  }
4327
+ /**
4328
+ * What an applied line carries under `approvals.remainder` (#5047): the
4329
+ * changes, the digest members that are no run, the commit, the run, and
4330
+ * where the run is, so `chant run resume` starts it again once it is gone.
4331
+ * A split wave's gate job writes the line and its applying job is the one
4332
+ * that may stop: GitHub re-runs a run's failed jobs, so the gate job's run
4333
+ * resumes the applying job. GitLab retries one job by its id and Forgejo
4334
+ * starts a new run of the branch, so there the gate job's locator carries
4335
+ * what the generator told it (#5052): the applying and record jobs' names,
4336
+ * or the run's dispatch inputs. A gate job told neither names no run.
4337
+ */
4338
+ function remainderFields(options, ctx, decision, changes) {
4339
+ const commit = waveHeadOf(options, ctx.cwd);
4340
+ const runId = ciRunIdFromEnv();
4341
+ const locator = resolveGateRunLocator();
4342
+ const resume = options.phase === "gate" ? opWaveSplitResumeLocator(locator) : locator;
4343
+ return {
4344
+ changes,
4345
+ ...(decision.extras?.length ? { extras: decision.extras.map((e) => ({ member: e.member, planDigest: e.planDigest })) } : {}),
4346
+ ...(commit ? { commit } : {}),
4347
+ ...(runId ? { runId } : {}),
4348
+ ...(resume ? { resume } : {}),
4349
+ };
4350
+ }
4351
+ /**
4352
+ * Under `approvals.remainder` (#5047), in a job with the token that decides
4353
+ * a whole wave (its own job, or a split wave's gate job): the changes the
4354
+ * plans make, kept on the decision for the applied line and the applying
4355
+ * job; with plans that change nothing, the close of a stopped apply; else
4356
+ * the stopped apply at this commit whose rest these plans are, which the
4357
+ * decision then `resumes`. A ledger that cannot be read resumes nothing.
4358
+ */
4359
+ async function remainderOf(options, ctx, decision, members, extras) {
4360
+ const { spec, k, wave, cwd, log } = ctx;
4361
+ const label = `wave ${k} (${wave.name})`;
4362
+ // Only a wave one job applies says how its apply ended.
4363
+ if ((wave.shares ?? 1) > 1 || wave.jobs !== undefined)
4364
+ return;
4365
+ const changes = opWaveApprovedChanges(members, ctx.steps);
4366
+ if (changes)
4367
+ decision.changes = changes;
4368
+ const changing = members.some((m) => m.empty !== true) || (extras?.length ?? 0) > 0;
4369
+ if (changing && !changes)
4370
+ log(`${label}: a run that changes something plans on no resource grain, or gave no resource digests, so an apply of it that stops cannot apply the rest under its approval`);
4371
+ const port = options.gates ?? gitGateLedgerPort({ cwd });
4372
+ if (!port.readApplied || !port.readFinished)
4373
+ return;
4374
+ let applied;
4375
+ let finished;
4376
+ try {
4377
+ applied = await port.readApplied(spec.name);
4378
+ finished = await port.readFinished(spec.name);
4379
+ }
4380
+ catch (err) {
4381
+ log(`${label}: the applied lines could not be read (${err instanceof Error ? err.message : String(err)}), so no stopped apply is taken up`);
4382
+ return;
4383
+ }
4384
+ if (!changing) {
4385
+ // Nothing is left to change: something applied the rest of a stopped apply, which is closed as applied.
4386
+ const open = opWaveUnfinishedApply(applied, finished, decision.gate);
4387
+ if (open)
4388
+ await writeApplyFinished(options, ctx, { gate: open.gate, planDigest: open.planDigest, applied: open.timestamp }, "applied", `the apply of ${open.planDigest} stopped before it finished, and nothing of it is left to apply`);
4389
+ return;
4390
+ }
4391
+ const stopped = opWaveStoppedApply(applied, finished, decision.gate, waveHeadOf(options, cwd));
4392
+ if (!stopped?.changes)
4393
+ return;
4394
+ const cover = opWaveCoverRemainder(stopped.changes, changes, { now: extras, approved: stopped.extras });
4395
+ if (!cover.covered) {
4396
+ log(`${label}: the apply of ${stopped.planDigest}, approved by ${stopped.approvedBy}, stopped before it finished, but ${cover.why}, so these plans need an approval of their own`);
4397
+ return;
4398
+ }
4399
+ decision.resumes = { planDigest: stopped.planDigest, appliedAt: stopped.timestamp, approvedAt: stopped.approvedAt, approvedBy: stopped.approvedBy };
4400
+ log(`${label}: the apply of ${stopped.planDigest}, approved by ${stopped.approvedBy}, stopped before it finished; ${cover.done.length} of its ${stopped.changes.length} change${stopped.changes.length === 1 ? "" : "s"} ` +
4401
+ `are done, and these plans make the other ${cover.remaining.length}, so that approval covers them`);
4402
+ }
4403
+ /**
4404
+ * Write how an apply under an approval ended (#5047): the finished line
4405
+ * that names the applied line. Never fails the wave; a line that cannot be
4406
+ * written is logged, and a resume may apply what is left again, each change
4407
+ * of which the approval covered.
4408
+ */
4409
+ async function writeApplyFinished(options, ctx, line, result, why) {
4410
+ const { spec, k, cwd, log } = ctx;
4411
+ const label = `wave ${k} (${ctx.wave.name})`;
4412
+ const port = options.gates ?? gitGateLedgerPort({ cwd });
4413
+ try {
4414
+ if (!port.appendFinished)
4415
+ throw new Error("this gate ledger keeps no finished lines");
4416
+ const pushed = await port.appendFinished({ version: 1, kind: "finished", op: spec.name, gate: line.gate, planDigest: line.planDigest, applied: line.applied, result, timestamp: options.now ?? new Date().toISOString() });
4417
+ if (!pushed.pushed && pushed.pushWarning && !isLifecycleLocalNote(pushed.pushWarning))
4418
+ log(`${label}: the finished line of its apply was written and not pushed: ${pushed.pushWarning}`);
4419
+ log(`${label}: ${why ?? `its apply under the approval ${result === "applied" ? "applied" : "failed"}`}; recorded on the finished line`);
4420
+ }
4421
+ catch (err) {
4422
+ log(`${label}: how its apply ended was not recorded (${err instanceof Error ? err.message : String(err)}); a resume may apply what is left again, and each change it makes is one the approval covered`);
4423
+ }
4424
+ }
4425
+ /** The applied line a decision's apply wrote or took up (#5047), when it names changes; what its finished line names. */
4426
+ function remainderLine(decision) {
4427
+ if (!decision.remainder || !decision.spentAt)
4428
+ return undefined;
4429
+ if (decision.resumes)
4430
+ return { gate: decision.gate, planDigest: decision.resumes.planDigest, applied: decision.resumes.appliedAt };
4431
+ return decision.changes ? { gate: decision.gate, planDigest: decision.digest, applied: decision.spentAt } : undefined;
4432
+ }
4433
+ /**
4434
+ * Under `approvals.spendStanding` (#5047): the wave's gate let its plans
4435
+ * through, and an approval of their digest that no wave applied under
4436
+ * stands. It is spent now, as they apply, so it does not stand for the next
4437
+ * plans. Never fails the wave.
4438
+ */
4439
+ async function spendStanding(options, ctx, decision) {
4440
+ const { spec, k, wave, cwd, log } = ctx;
4441
+ if (!decision.digest)
4442
+ return;
4443
+ const port = options.gates ?? gitGateLedgerPort({ cwd });
4444
+ if (!port.appendApplied || !port.readApplied)
4445
+ return;
4446
+ const label = `wave ${k} (${wave.name})`;
4447
+ try {
4448
+ const applied = (await port.readApplied(spec.name)).filter((a) => a.gate === decision.gate);
4449
+ const { resolutions } = await port.read(spec.name);
4450
+ const standing = resolutions
4451
+ .filter((r) => r.gate === decision.gate && samePlanDigest(r.planDigest, decision.digest) && !isApprovalSpent(applied, { gate: decision.gate, planDigest: decision.digest, timestamp: r.timestamp }))
4452
+ .reduce((n, r) => (!n || new Date(r.timestamp).getTime() >= new Date(n.timestamp).getTime() ? r : n), undefined);
4453
+ if (!standing)
4454
+ return;
4455
+ const now = options.now ?? new Date().toISOString();
4456
+ const pushed = await port.appendApplied({ version: 1, kind: "applied", op: spec.name, gate: decision.gate, planDigest: decision.digest, approvedAt: standing.timestamp, approvedBy: standing.resolvedBy, timestamp: now, wave: { number: k, name: wave.name } });
4457
+ if (!pushed.pushed && pushed.pushWarning && !isLifecycleLocalNote(pushed.pushWarning))
4458
+ log(`${label}: ${pushed.pushWarning}`);
4459
+ log(`${label}: its gate let these plans through, and the approval of ${decision.digest} by ${standing.resolvedBy} at ${standing.timestamp} stood; it is now spent, so it does not stand for the next plans`);
4460
+ }
4461
+ catch (err) {
4462
+ log(`${label}: the approval of these plans that stands was not spent: ${err instanceof Error ? err.message : String(err)}`);
4463
+ }
4464
+ }
4277
4465
  /**
4278
4466
  * Under `pr-review` (#3684): the merged pull request's review approves the
4279
4467
  * wave when a writer other than the author approved its head, and the head
@@ -0,0 +1,57 @@
1
+ /**
2
+ * How `chant run resume` starts a killed split apply again (#5052), on the
3
+ * forges whose gate job's run locator alone does not do it.
4
+ *
5
+ * Under `approvals.remainder` (#5047) a split wave's gate job writes the
6
+ * applied line, and its applying job is the one that may be killed. On
7
+ * GitHub the line names the gate job's run, and a re-run of its failed jobs
8
+ * runs the applying and record jobs again. GitLab retries one job by its id,
9
+ * and the gate job knows only the names of the jobs after it; Forgejo has no
10
+ * re-run and dispatches the workflow on the branch, which before merge is
11
+ * not the decided head. So the generator tells the gate job, in
12
+ * {@link OP_WAVES_RESUME_ENV}, what a resume needs:
13
+ *
14
+ * - GitLab: the names of the wave's applying jobs and its record job. The
15
+ * line's locator carries them as `retry`, and the resume retries the
16
+ * newest try of each applying job that failed or was cancelled, then the
17
+ * record job.
18
+ * - Forgejo: the product's names of the dispatch inputs. The line's locator
19
+ * carries the run's own inputs (the decided head of a before-merge run,
20
+ * the wave and commit of a follow-on) as `inputs`, and the resume
21
+ * dispatches with them, so the new run plans the same commit and its gate
22
+ * job applies the rest under the same approval.
23
+ *
24
+ * Without the variable, the gate job's line names no run on those forges,
25
+ * as before.
26
+ */
27
+ import type { GateRunLocator } from "./gate-run-locator.js";
28
+ import type { OpWaveSplitJob } from "./op-waves-split.js";
29
+ export { OP_WAVES_SPLIT_RESUME_FLOOR } from "../release-floors.js";
30
+ /** The variable a split wave's gate job reads what a resume needs from, as JSON. */
31
+ export declare const OP_WAVES_RESUME_ENV = "CHANT_WAVES_RESUME";
32
+ /** The dispatch inputs a Forgejo resume fills, by chant's names. */
33
+ export type OpWaveResumeInput = "pr" | "head" | "digest" | "wave" | "commit";
34
+ /** What {@link OP_WAVES_RESUME_ENV} holds: GitLab's job names, or Forgejo's input names (each chant's own when left out). */
35
+ export interface OpWaveSplitResume {
36
+ apply?: string[];
37
+ record?: string;
38
+ inputs?: Partial<Record<OpWaveResumeInput, string>>;
39
+ }
40
+ /**
41
+ * The variable a split wave's gate job carries (#5052): on GitLab the names
42
+ * of wave `gate.wave`'s applying jobs and its record job, on Forgejo the
43
+ * product's dispatch input names. Empty on GitHub, whose re-run needs none,
44
+ * and for a job that is no gate job.
45
+ */
46
+ export declare function opWaveSplitResumeEnv(split: readonly Pick<OpWaveSplitJob, "jobName" | "phase" | "wave">[], gate: Pick<OpWaveSplitJob, "phase" | "wave">, forge: "github" | "forgejo" | "gitlab", inputs?: Partial<Record<OpWaveResumeInput, string>>): Record<string, string>;
47
+ /** Read {@link OP_WAVES_RESUME_ENV}; undefined when unset or not one. */
48
+ export declare function parseOpWaveSplitResume(raw: string | undefined): OpWaveSplitResume | undefined;
49
+ /**
50
+ * The run locator a split wave's gate job writes on its applied line
51
+ * (#5052), from its own locator and what {@link OP_WAVES_RESUME_ENV} says:
52
+ * GitHub's as it is; GitLab's with `retry`, when the variable names applying
53
+ * jobs; Forgejo's with the run's own dispatch inputs, when the variable is
54
+ * set. Undefined where a resume could not start the applying jobs again.
55
+ */
56
+ export declare function opWaveSplitResumeLocator(locator: GateRunLocator | undefined, env?: Record<string, string | undefined>): GateRunLocator | undefined;
57
+ //# sourceMappingURL=op-waves-split-resume.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3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AG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAAG,cAAc,GAAG,SAAS,CAa/J"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * How `chant run resume` starts a killed split apply again (#5052), on the
3
+ * forges whose gate job's run locator alone does not do it.
4
+ *
5
+ * Under `approvals.remainder` (#5047) a split wave's gate job writes the
6
+ * applied line, and its applying job is the one that may be killed. On
7
+ * GitHub the line names the gate job's run, and a re-run of its failed jobs
8
+ * runs the applying and record jobs again. GitLab retries one job by its id,
9
+ * and the gate job knows only the names of the jobs after it; Forgejo has no
10
+ * re-run and dispatches the workflow on the branch, which before merge is
11
+ * not the decided head. So the generator tells the gate job, in
12
+ * {@link OP_WAVES_RESUME_ENV}, what a resume needs:
13
+ *
14
+ * - GitLab: the names of the wave's applying jobs and its record job. The
15
+ * line's locator carries them as `retry`, and the resume retries the
16
+ * newest try of each applying job that failed or was cancelled, then the
17
+ * record job.
18
+ * - Forgejo: the product's names of the dispatch inputs. The line's locator
19
+ * carries the run's own inputs (the decided head of a before-merge run,
20
+ * the wave and commit of a follow-on) as `inputs`, and the resume
21
+ * dispatches with them, so the new run plans the same commit and its gate
22
+ * job applies the rest under the same approval.
23
+ *
24
+ * Without the variable, the gate job's line names no run on those forges,
25
+ * as before.
26
+ */
27
+ import { BEFORE_MERGE_DIGEST_ENV, BEFORE_MERGE_HEAD_ENV, BEFORE_MERGE_PR_ENV } from "./before-merge.js";
28
+ import { OP_WAVES_COMMIT_ENV, OP_WAVES_WAVE_ENV } from "./follow-on-run.js";
29
+ export { OP_WAVES_SPLIT_RESUME_FLOOR } from "../release-floors.js";
30
+ /** The variable a split wave's gate job reads what a resume needs from, as JSON. */
31
+ export const OP_WAVES_RESUME_ENV = "CHANT_WAVES_RESUME";
32
+ /**
33
+ * The variable a split wave's gate job carries (#5052): on GitLab the names
34
+ * of wave `gate.wave`'s applying jobs and its record job, on Forgejo the
35
+ * product's dispatch input names. Empty on GitHub, whose re-run needs none,
36
+ * and for a job that is no gate job.
37
+ */
38
+ export function opWaveSplitResumeEnv(split, gate, forge, inputs) {
39
+ if (gate.phase !== "gate" || forge === "github")
40
+ return {};
41
+ if (forge === "forgejo")
42
+ return { [OP_WAVES_RESUME_ENV]: JSON.stringify(inputs && Object.keys(inputs).length > 0 ? { inputs } : {}) };
43
+ const apply = split.filter((j) => j.wave === gate.wave && j.phase === "apply").map((j) => j.jobName);
44
+ const record = split.find((j) => j.wave === gate.wave && j.phase === "record")?.jobName;
45
+ return { [OP_WAVES_RESUME_ENV]: JSON.stringify({ apply, ...(record ? { record } : {}) }) };
46
+ }
47
+ const NAME = /^[A-Za-z_][A-Za-z0-9_-]*$/;
48
+ /** Read {@link OP_WAVES_RESUME_ENV}; undefined when unset or not one. */
49
+ export function parseOpWaveSplitResume(raw) {
50
+ if (raw === undefined || raw.trim() === "")
51
+ return undefined;
52
+ let v;
53
+ try {
54
+ v = JSON.parse(raw);
55
+ }
56
+ catch {
57
+ return undefined;
58
+ }
59
+ if (!v || typeof v !== "object" || Array.isArray(v))
60
+ return undefined;
61
+ const o = v;
62
+ const apply = Array.isArray(o.apply) && o.apply.every((n) => typeof n === "string" && n.trim() !== "") ? o.apply : undefined;
63
+ const record = typeof o.record === "string" && o.record.trim() !== "" ? o.record : undefined;
64
+ const inputs = o.inputs && typeof o.inputs === "object" && !Array.isArray(o.inputs) && Object.entries(o.inputs).every(([k, n]) => ["pr", "head", "digest", "wave", "commit"].includes(k) && typeof n === "string" && NAME.test(n))
65
+ ? o.inputs
66
+ : undefined;
67
+ return { ...(apply ? { apply } : {}), ...(record ? { record } : {}), ...(inputs ? { inputs } : {}) };
68
+ }
69
+ /**
70
+ * The run locator a split wave's gate job writes on its applied line
71
+ * (#5052), from its own locator and what {@link OP_WAVES_RESUME_ENV} says:
72
+ * GitHub's as it is; GitLab's with `retry`, when the variable names applying
73
+ * jobs; Forgejo's with the run's own dispatch inputs, when the variable is
74
+ * set. Undefined where a resume could not start the applying jobs again.
75
+ */
76
+ export function opWaveSplitResumeLocator(locator, env = process.env) {
77
+ if (!locator)
78
+ return undefined;
79
+ if (locator.forge === "github")
80
+ return locator;
81
+ const told = parseOpWaveSplitResume(env[OP_WAVES_RESUME_ENV]);
82
+ if (!told)
83
+ return undefined;
84
+ if (locator.forge === "gitlab")
85
+ return told.apply && told.apply.length > 0 ? { ...locator, retry: { apply: told.apply, ...(told.record ? { record: told.record } : {}) } } : undefined;
86
+ const of = { pr: BEFORE_MERGE_PR_ENV, head: BEFORE_MERGE_HEAD_ENV, digest: BEFORE_MERGE_DIGEST_ENV, wave: OP_WAVES_WAVE_ENV, commit: OP_WAVES_COMMIT_ENV };
87
+ const inputs = {};
88
+ for (const [input, variable] of Object.entries(of)) {
89
+ const value = env[variable]?.trim();
90
+ if (value)
91
+ inputs[told.inputs?.[input] ?? input] = value;
92
+ }
93
+ return { ...locator, inputs };
94
+ }
@@ -693,6 +693,30 @@ export interface OpWavesApprovals {
693
693
  * approval of a digest passes that digest as often as it is planned.
694
694
  */
695
695
  spend?: boolean;
696
+ /**
697
+ * An apply that stopped applies the rest under its approval (#5047). With
698
+ * `spend`, read at the base commit. The applied line a wave writes before
699
+ * it applies under an approval carries each change its plans make (a run's
700
+ * resource and its digest), the commit and the run, when every run that
701
+ * changes something plans through the step on the `resource` lock grain
702
+ * (an engine that records each resource as it applies it). The job that
703
+ * applies the whole wave, or a split wave's record job, writes how the
704
+ * apply ended. A wave run again at the same commit whose plans make only
705
+ * changes of the newest such apply that did not finish (no finished line,
706
+ * or a failed one), with the same digests, applies them under that
707
+ * approval: the changes it no longer makes are done. A split wave's
708
+ * applying job applies a run whose plan moved the same way. A wave whose
709
+ * plans change nothing closes an apply that stopped as applied. Default
710
+ * false. See `./op-waves-remainder.ts`.
711
+ */
712
+ remainder?: boolean;
713
+ /**
714
+ * With `spend` (#5047), read at the base commit: a wave its gate lets
715
+ * through (`not-required`) spends an approval of its digest that stands,
716
+ * so it does not stand for the next plans. Default false: only a wave that
717
+ * applies under an approval spends it.
718
+ */
719
+ spendStanding?: boolean;
696
720
  /**
697
721
  * Approval rules (#4290): a wave takes each rule whose `targets` glob
698
722
  * matches one of its runs' targets (a rule with no `targets` covers every
@@ -903,7 +927,8 @@ export declare function opWaveShare<T extends {
903
927
  * product's command in place of `chant` (#4607, {@link opWaveBinArgv}).
904
928
  * With `renderSpec` (#4982) every command passes `--render-spec`: the job
905
929
  * renders the spec at base through the product's command
906
- * (`./op-waves-render-spec.ts`), and `spec` is the pipeline's shape.
930
+ * (`./op-waves-render-spec.ts`; with `runsAtHead` the runs at the applied
931
+ * commit, #5046), and `spec` is the pipeline's shape.
907
932
  * With `beforeMerge` (#4984) every command reads its base from
908
933
  * `CHANT_WAVES_BASE` when the run checked out a pull request's decided
909
934
  * head, else from the spec's `base` (or `HEAD^1`), as a push run does.
@@ -1 +1 @@
1
- {"version":3,"file":"op-waves.d.ts","sourceRoot":"","sources":["../../src/op/op-waves.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAsE,KAAK,WAAW,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ED,uJAAuJ;AACvJ,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGxF;AAED,iCAAiC;AACjC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,MAAM,CAEhF"}
@@ -443,8 +443,16 @@ export function assertOpWavesSpec(spec) {
443
443
  throw new Error(`${where}: approvals.preview must be true or false.`);
444
444
  continue;
445
445
  }
446
+ if (key === "remainder" || key === "spendStanding") {
447
+ // #5047: a stopped apply's rest, and an approval left standing, both under the spend rule.
448
+ if (typeof value !== "boolean")
449
+ throw new Error(`${where}: approvals.${key} must be true or false.`);
450
+ if (value && a.spend !== true)
451
+ throw new Error(`${where}: approvals.${key} works on the lines approvals.spend writes, so it needs approvals.spend: true.`);
452
+ continue;
453
+ }
446
454
  if (key !== "spend")
447
- throw new Error(`${where}: approvals.${key} is not a setting; the ones there are approvals.spend, approvals.preview, approvals.quorum, approvals.reviewLedger, approvals.involved and approvals.pullRequest.`);
455
+ throw new Error(`${where}: approvals.${key} is not a setting; the ones there are approvals.spend, approvals.remainder, approvals.spendStanding, approvals.preview, approvals.quorum, approvals.reviewLedger, approvals.involved and approvals.pullRequest.`);
448
456
  if (typeof value !== "boolean")
449
457
  throw new Error(`${where}: approvals.spend must be true or false.`);
450
458
  }
@@ -936,7 +944,8 @@ export function opWaveShare(runs, share, shares) {
936
944
  * product's command in place of `chant` (#4607, {@link opWaveBinArgv}).
937
945
  * With `renderSpec` (#4982) every command passes `--render-spec`: the job
938
946
  * renders the spec at base through the product's command
939
- * (`./op-waves-render-spec.ts`), and `spec` is the pipeline's shape.
947
+ * (`./op-waves-render-spec.ts`; with `runsAtHead` the runs at the applied
948
+ * commit, #5046), and `spec` is the pipeline's shape.
940
949
  * With `beforeMerge` (#4984) every command reads its base from
941
950
  * `CHANT_WAVES_BASE` when the run checked out a pull request's decided
942
951
  * head, else from the spec's `base` (or `HEAD^1`), as a push run does.
@@ -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 declare const NEXT_RELEASE = "0.124.93";
22
+ export declare const NEXT_RELEASE = "0.124.94";
23
23
  /** 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). */
24
24
  export declare const LOCAL_CHANT_FLOOR = "0.124.86";
25
25
  /** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
@@ -166,6 +166,14 @@ export declare const BEFORE_MERGE_REF_GATE_FLOOR = "0.124.89";
166
166
  export declare const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
167
167
  /** 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). */
168
168
  export declare const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
169
+ /** The first chant whose Op waves `renderSpec` takes `runsAtHead` (the jobs carry `CHANT_WAVES_SPEC_RUNS=head`): the job's own spec is rendered at the applied commit, with `CHANT_WAVES_SPEC_BASE` set to the base commit beside `CHANT_WAVES_SPEC_AT`, so the runs a change adds apply at its merge, while the gate policy, holds, hooks and evidence rules still come from the render at base (#5046). */
170
+ export declare const RUNTIME_WAVES_SPEC_RUNS_AT_HEAD_FLOOR = "0.124.94";
171
+ /** The first chant whose Op waves keep the record of an apply under an approval themselves (#5047): with `approvals.spend`, `approvals.remainder` writes each change the approved plans make, the commit and the run on the applied line (a split wave's gate job writes it), the job that applies the whole wave or the record job writes how the apply ended, and a wave run again at that commit applies the rest under the same approval when its plans make only changes the stopped apply did not finish; a wave that plans no change closes a stopped apply, and `approvals.spendStanding` spends an approval of the digest a wave its gate let through applies. */
172
+ export declare const OP_WAVES_REMAINDER_FLOOR = "0.124.94";
173
+ /** The first chant whose `chant run resume` starts a killed split apply again on GitLab and Forgejo (#5052): under `approvals.remainder` the gate job's applied line names its run there too, GitLab's with the wave's applying and record jobs by name (`retry`), which the resume retries, and Forgejo's with the run's dispatch inputs (`inputs`), which the resume dispatches with, so the new run applies the rest at the same decided head or commit. */
174
+ export declare const OP_WAVES_SPLIT_RESUME_FLOOR = "0.124.94";
175
+ /** The first chant whose `approvals.remainder` resumes the waves terragucci's own records resume (#5056): the terraform step gives a live choudoufu root's plan (`live-plan-set`) its `resourceDigests`, so its applied line names the changes, and the cover leaves out the cost member `(monthly cost)`, whose digest follows from the plans, on both sides. */
176
+ export declare const OP_WAVES_REMAINDER_PARITY_FLOOR = "0.124.94";
169
177
  /** 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). */
170
178
  export declare const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = "0.124.89";
171
179
  /** The first chant whose terraform lexicon's engine runs carry what a product's own command tracing read: `runBinary` and the engine runner's `exec` and `execSync` answer stderr apart (`Ran.stderr`) and a spawn failure's message (`Ran.error`), a hook's `after` gets a binary that could not be started as a null code with `error`, `commandTrace` ends that span with the message, and `composeCommandHooks` runs a product's own hook and `commandTrace` as one `onCommand` (#5007). */
@@ -1 +1 @@
1
- {"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,+SAA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