@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,6 +58,24 @@ export interface AppliedGateRecord {
58
58
  rerun?: {
59
59
  head: string;
60
60
  };
61
+ /**
62
+ * Under `approvals.remainder` (#5047): each change the approved plans
63
+ * make, a run's resource and its digest, sorted. A wave run again at
64
+ * `commit` whose plans make only some of them applies those under this
65
+ * line's approval while no finished line says the apply applied.
66
+ */
67
+ changes?: AppliedGateChange[];
68
+ /** With `changes` (#5047): the digest members that are no run (the wave's cost), as the approved set held them. */
69
+ extras?: {
70
+ member: string;
71
+ planDigest: string;
72
+ }[];
73
+ }
74
+ /** One change an approved plan makes (#5047): a run's resource, by the engine's address, and its digest. */
75
+ export interface AppliedGateChange {
76
+ target: string;
77
+ address: string;
78
+ digest: string;
61
79
  }
62
80
  /**
63
81
  * A line of `applied.jsonl` that a wave applying under an approval writes
@@ -1 +1 @@
1
- {"version":3,"file":"gate-applied.d.ts","sourceRoot":"","sources":["../../src/lifecycle/gate-applied.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,qGAAqG;AACrG,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,CAAC,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,6HAA6H;IAC7H,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,yEAAyE;IACzE,MAAM,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,SAAS,GAAG,SAAS,CAAA;CAAE,CAAC;AAEhG;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,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AgB,aAAa,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC,GAAG,kBAAkB,GAAG,SAAS,CAEvK;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,SAAS,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,CAAC,EAAE,EAC5F,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC3G,OAAO,CAUT;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAiBxG"}
@@ -26,6 +26,23 @@ export interface GateRunLocator {
26
26
  workflow?: string;
27
27
  /** Forgejo: the branch a dispatch runs on. */
28
28
  ref?: string;
29
+ /**
30
+ * GitLab (#5052): the jobs of the same pipeline a resume retries, by name,
31
+ * in place of `job`: a split wave's applying jobs, each retried when its
32
+ * newest try failed or was cancelled, and its record job, retried after
33
+ * them when it ran. The gate job that writes the applied line knows their
34
+ * names, not their ids.
35
+ */
36
+ retry?: {
37
+ apply: string[];
38
+ record?: string;
39
+ };
40
+ /**
41
+ * Forgejo (#5052): the `workflow_dispatch` inputs a resume dispatches
42
+ * with, so a before-merge run or a follow-on is started again for the
43
+ * same decided head or commit instead of the branch's head.
44
+ */
45
+ inputs?: Record<string, string>;
29
46
  /** The run's page, for a person. */
30
47
  url?: string;
31
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gate-run-locator.d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AAG,KAAK,IAAI,cAAc,CAQxE;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CASnG;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAAG,MAAM,GAAG,SAAS,CAExG;AAED,kIAAkI;AAClI,wBAAgB,eAAe,CAAC,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAAG,MAAM,GAAG,SAAS,CAEzG"}
@@ -28,8 +28,10 @@ export type { OpWaveBaseRules, OpWaveDecision, OpWaveApplyHooksRun, OpWaveApplyO
28
28
  export { OP_WAVE_COST_FORMATS, OP_WAVE_COST_MEMBER, OP_WAVE_PARALLEL_STEP_FLOOR, OP_WAVE_STEP_WAVE_FLOOR, OP_WAVE_TOGETHER_MEMBER, opWaveCostVerdict, opWaveDiscoverInput, opWaveHoldsAt, opWaveHoldsProblems, opWaveStepInput, opWaveStepProblems, readCostEstimate, } from "./op-waves-capability.js";
29
29
  export type { OpWaveCostFormat, OpWaveCostHold, OpWaveCostVerdict, OpWaveHolds, OpWaveRunCost, OpWaveStep, OpWaveStepApply, OpWaveStepGroup, OpWaveStepPlan } from "./op-waves-capability.js";
30
30
  export { notifyOpWave, opWaveNotifyFields } from "./op-waves-notify.js";
31
- export { OP_WAVES_RENDER_SPEC_FLAG, OP_WAVES_SPEC_AT_ENV, OP_WAVES_SPEC_COMMAND_ENV, OP_WAVES_SPEC_FILE_ENV, RUNTIME_WAVES_SPEC_FLOOR, opWavesRenderSpecEnv, opWavesRenderSpecProblems, } from "./op-waves-render-spec.js";
31
+ export { OP_WAVES_RENDER_SPEC_FLAG, OP_WAVES_SPEC_AT_ENV, OP_WAVES_SPEC_BASE_ENV, OP_WAVES_SPEC_COMMAND_ENV, OP_WAVES_SPEC_FILE_ENV, OP_WAVES_SPEC_RUNS_ENV, RUNTIME_WAVES_SPEC_FLOOR, RUNTIME_WAVES_SPEC_RUNS_AT_HEAD_FLOOR, opWavesRenderSpecEnv, opWavesRenderSpecProblems, } from "./op-waves-render-spec.js";
32
32
  export type { OpWavesRenderSpec } from "./op-waves-render-spec.js";
33
+ export { OP_WAVES_REMAINDER_FLOOR, opWaveApprovedChanges, opWaveCoverRemainder, opWaveRunCovered, opWaveStoppedApply, opWaveUnfinishedApply } from "./op-waves-remainder.js";
34
+ export type { AppliedGateChange, OpWaveCover, OpWaveRemainderMember } from "./op-waves-remainder.js";
33
35
  export { OP_WAVE_STAND_DOWN_FLOOR, gitOpWaveNewerCommit, newerCommitOnBranch, opWaveDefaultBranch, opWaveRunBranch, opWaveStandDownReason, tipAppliesTargets } from "./op-waves-stand-down.js";
34
36
  export type { OpWaveNewerCommit, OpWaveNewerCommitPort } from "./op-waves-stand-down.js";
35
37
  export { OP_WAVE_RELEASE_RECORD_FLOOR, opWaveReleaseNames, opWaveReleaseProblems, releaseOfCommit } from "./op-waves-release.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/op/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAClH,cAAc,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,WAAW,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EACtQ,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAC5C,SAAS,EAAE,W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AAClD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC9F,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACnG,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC5E,YAAY,EACV,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,EAC5D,gBAAgB,EAAE,mBAAmB,GACtC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAClF,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIrE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACrH,YAAY,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC"}
package/dist/op/index.js CHANGED
@@ -16,7 +16,8 @@ export { OP_WAVE_APPLY_OUTCOMES, OP_WAVE_MAX_REPLANS, opWaveHooksAtBase, runStag
16
16
  export { movedSincePreview, shortAddress } from "./op-waves-preview.js";
17
17
  export { OP_WAVE_COST_FORMATS, OP_WAVE_COST_MEMBER, OP_WAVE_PARALLEL_STEP_FLOOR, OP_WAVE_STEP_WAVE_FLOOR, OP_WAVE_TOGETHER_MEMBER, opWaveCostVerdict, opWaveDiscoverInput, opWaveHoldsAt, opWaveHoldsProblems, opWaveStepInput, opWaveStepProblems, readCostEstimate, } from "./op-waves-capability.js";
18
18
  export { notifyOpWave, opWaveNotifyFields } from "./op-waves-notify.js";
19
- export { OP_WAVES_RENDER_SPEC_FLAG, OP_WAVES_SPEC_AT_ENV, OP_WAVES_SPEC_COMMAND_ENV, OP_WAVES_SPEC_FILE_ENV, RUNTIME_WAVES_SPEC_FLOOR, opWavesRenderSpecEnv, opWavesRenderSpecProblems, } from "./op-waves-render-spec.js";
19
+ export { OP_WAVES_RENDER_SPEC_FLAG, OP_WAVES_SPEC_AT_ENV, OP_WAVES_SPEC_BASE_ENV, OP_WAVES_SPEC_COMMAND_ENV, OP_WAVES_SPEC_FILE_ENV, OP_WAVES_SPEC_RUNS_ENV, RUNTIME_WAVES_SPEC_FLOOR, RUNTIME_WAVES_SPEC_RUNS_AT_HEAD_FLOOR, opWavesRenderSpecEnv, opWavesRenderSpecProblems, } from "./op-waves-render-spec.js";
20
+ export { OP_WAVES_REMAINDER_FLOOR, opWaveApprovedChanges, opWaveCoverRemainder, opWaveRunCovered, opWaveStoppedApply, opWaveUnfinishedApply } from "./op-waves-remainder.js";
20
21
  export { OP_WAVE_STAND_DOWN_FLOOR, gitOpWaveNewerCommit, newerCommitOnBranch, opWaveDefaultBranch, opWaveRunBranch, opWaveStandDownReason, tipAppliesTargets } from "./op-waves-stand-down.js";
21
22
  export { OP_WAVE_RELEASE_RECORD_FLOOR, opWaveReleaseNames, opWaveReleaseProblems, releaseOfCommit } from "./op-waves-release.js";
22
23
  export { gitOpWaveReleasePort } from "./op-waves-release-port.js";
@@ -115,6 +115,46 @@ export declare function opWavesResumeWorkflowFile(spec: Pick<OpWavesSpec, "name"
115
115
  * Absent or empty: none, and the jobs render as before.
116
116
  */
117
117
  export declare function opWavesFirstWaveNeeds(given: readonly string[] | undefined, forge: "github" | "forgejo" | "gitlab"): string[];
118
+ /**
119
+ * The forge token a wave job's command step gets (#5044): with it, the
120
+ * jobs that run only the default branch's code (a push's wave, deciding,
121
+ * share and job group jobs; a split wave's gate and record jobs) hand their
122
+ * command step the job's token as `GITHUB_TOKEN`, so the spec's `respond`
123
+ * posts and a product's hooks can read the forge, and the job asks for
124
+ * `permissions` on top of chant's own. A split wave's plan and applying jobs
125
+ * run the change's code and never get it. GitHub and Forgejo only.
126
+ */
127
+ export interface OpWavesCommandToken {
128
+ /** GitHub's permission scopes the jobs ask for beside chant's own, such as `{ "pull-requests": "write", actions: "read" }`. `contents` and `id-token` are chant's. */
129
+ permissions?: Record<string, "read" | "write">;
130
+ }
131
+ /**
132
+ * {@link OpWavesCommandToken}'s permissions, checked (#5044): each a scope
133
+ * GitHub knows that chant does not set itself, `read` or `write`. Undefined
134
+ * when there is no token to give. GitLab refuses it, since its jobs read
135
+ * `CHANT_FORGE_TOKEN`, a CI/CD variable.
136
+ */
137
+ export declare function opWavesCommandToken(token: OpWavesCommandToken | undefined, forge: "github" | "forgejo" | "gitlab"): Record<string, "read" | "write"> | undefined;
138
+ /**
139
+ * The control job's group a product names (#5053), checked, with `{commit}`
140
+ * put in as `commit`, the forge's expression of the commit the job tells the
141
+ * control repo about. Undefined when none. One line; a spec without
142
+ * `control` has no job to put it on.
143
+ */
144
+ export declare function opWavesControlGroup(group: string | undefined, hasControl: boolean, commit: string): string | undefined;
145
+ /**
146
+ * GitLab (#5053): the resume job's `resource_group` a product names, checked.
147
+ * Undefined when none. GitHub and Forgejo refuse it, since their resume
148
+ * workflow has its own group, `<spec>-resume`.
149
+ */
150
+ export declare function opWavesResumeGroup(group: string | undefined, hasResume: boolean, forge: "github" | "forgejo" | "gitlab"): string | undefined;
151
+ /**
152
+ * GitLab (#5045): the `cache:` a product gives the wave jobs that run the
153
+ * wave's command, one entry or a list of them as GitLab takes them, such as
154
+ * terragucci's `{ key: terragucci-terragrunt, paths: [.terragrunt-cache/] }`.
155
+ * Each entry is a mapping with `paths` or `key`. Undefined when none.
156
+ */
157
+ export declare function opWavesGitlabCache(cache: Record<string, unknown> | Array<Record<string, unknown>> | undefined): Record<string, unknown> | Array<Record<string, unknown>> | undefined;
118
158
  /** Refuse a product job of {@link opWavesFirstWaveNeeds} that is a job the generator writes (#5032). */
119
159
  export declare function assertFirstWaveNeedsOutside(needs: readonly string[], jobs: Iterable<string>): void;
120
160
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"op-waves-names.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzD,kFAAkF;AAClF,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,SAAS,GACT,QAAQ,CAAC;AAEb,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,mJAAmJ;IACnJ,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;;OASG;IACH,IAAI,EAAE,cAAc,CAAC;IACrB,yHAAyH;IACzH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,mFAAmF;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,aAAa,KAAK,MAAM,GAAG,SAAS,CAAC;AAEzE,oDAAoD;AACpD,MAAM,WAAW,eAAe;IAC9B,4GAA4G;IAC5G,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,mBAAmB,GAAG,SAAS,GAAG,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,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CASpL;AAED,wGAAwG;AACxG,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAGlG;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAElE;AAID,gHAAgH;AAChH,KAAK,QAAQ,GAAG,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAQ1F;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,EAAE,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG;IAC1I,IAAI,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAAC;IACjC,IAAI,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IAClD,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,CAwCA"}
@@ -125,6 +125,85 @@ export function opWavesFirstWaveNeeds(given, forge) {
125
125
  throw new Error(`firstWaveNeeds names a job twice: ${given.join(", ")}`);
126
126
  return [...given];
127
127
  }
128
+ /** The GitHub permission scopes a product may add with {@link OpWavesCommandToken}. `contents` and `id-token` stay chant's. */
129
+ const COMMAND_TOKEN_SCOPES = new Set(["actions", "attestations", "checks", "deployments", "discussions", "issues", "packages", "pages", "pull-requests", "repository-projects", "security-events", "statuses"]);
130
+ /**
131
+ * {@link OpWavesCommandToken}'s permissions, checked (#5044): each a scope
132
+ * GitHub knows that chant does not set itself, `read` or `write`. Undefined
133
+ * when there is no token to give. GitLab refuses it, since its jobs read
134
+ * `CHANT_FORGE_TOKEN`, a CI/CD variable.
135
+ */
136
+ export function opWavesCommandToken(token, forge) {
137
+ if (token === undefined)
138
+ return undefined;
139
+ if (forge === "gitlab")
140
+ throw new Error("commandToken gives a GitHub or Forgejo wave job its token; a GitLab job reads CHANT_FORGE_TOKEN, a CI/CD variable, so leave it out");
141
+ if (token === null || typeof token !== "object" || Array.isArray(token))
142
+ throw new Error("commandToken is { permissions }");
143
+ const permissions = token.permissions ?? {};
144
+ if (permissions === null || typeof permissions !== "object" || Array.isArray(permissions))
145
+ throw new Error("commandToken.permissions maps a permission scope to read or write");
146
+ for (const [scope, level] of Object.entries(permissions)) {
147
+ if (scope === "contents" || scope === "id-token")
148
+ throw new Error(`commandToken.permissions names ${scope}, which chant sets on the wave jobs itself`);
149
+ if (!COMMAND_TOKEN_SCOPES.has(scope))
150
+ throw new Error(`commandToken.permissions names ${JSON.stringify(scope)}, which is not a GitHub permission scope`);
151
+ if (level !== "read" && level !== "write")
152
+ throw new Error(`commandToken.permissions.${scope} is ${JSON.stringify(level)}; give read or write`);
153
+ }
154
+ return { ...permissions };
155
+ }
156
+ /**
157
+ * The control job's group a product names (#5053), checked, with `{commit}`
158
+ * put in as `commit`, the forge's expression of the commit the job tells the
159
+ * control repo about. Undefined when none. One line; a spec without
160
+ * `control` has no job to put it on.
161
+ */
162
+ export function opWavesControlGroup(group, hasControl, commit) {
163
+ if (group === undefined)
164
+ return undefined;
165
+ if (typeof group !== "string" || group.trim() === "" || /[\r\n]/.test(group))
166
+ throw new Error(`controlGroup ${JSON.stringify(group)} is one line naming the control job's group`);
167
+ if (!hasControl)
168
+ throw new Error("controlGroup names the control job's group, and the spec has no control");
169
+ return group.split("{commit}").join(commit);
170
+ }
171
+ /**
172
+ * GitLab (#5053): the resume job's `resource_group` a product names, checked.
173
+ * Undefined when none. GitHub and Forgejo refuse it, since their resume
174
+ * workflow has its own group, `<spec>-resume`.
175
+ */
176
+ export function opWavesResumeGroup(group, hasResume, forge) {
177
+ if (group === undefined)
178
+ return undefined;
179
+ if (forge !== "gitlab")
180
+ throw new Error("resumeGroup is the GitLab resume job's resource_group; the GitHub and Forgejo resume workflow has its own concurrency group, <spec>-resume");
181
+ if (typeof group !== "string" || group.trim() === "" || /[\r\n]/.test(group))
182
+ throw new Error(`resumeGroup ${JSON.stringify(group)} is one line naming the resume job's resource_group`);
183
+ if (!hasResume)
184
+ throw new Error("resumeGroup names the resume job's resource_group, and the spec has no resume");
185
+ return group;
186
+ }
187
+ /**
188
+ * GitLab (#5045): the `cache:` a product gives the wave jobs that run the
189
+ * wave's command, one entry or a list of them as GitLab takes them, such as
190
+ * terragucci's `{ key: terragucci-terragrunt, paths: [.terragrunt-cache/] }`.
191
+ * Each entry is a mapping with `paths` or `key`. Undefined when none.
192
+ */
193
+ export function opWavesGitlabCache(cache) {
194
+ if (cache === undefined)
195
+ return undefined;
196
+ const entries = Array.isArray(cache) ? cache : [cache];
197
+ if (entries.length === 0)
198
+ throw new Error("cache is a GitLab cache entry or a list of them; leave it out for none");
199
+ for (const entry of entries) {
200
+ if (entry === null || typeof entry !== "object" || Array.isArray(entry))
201
+ throw new Error("cache holds GitLab cache entries, each a mapping such as { key, paths }");
202
+ if (entry.paths === undefined && entry.key === undefined)
203
+ throw new Error("a cache entry names its paths or its key");
204
+ }
205
+ return cache;
206
+ }
128
207
  /** Refuse a product job of {@link opWavesFirstWaveNeeds} that is a job the generator writes (#5032). */
129
208
  export function assertFirstWaveNeedsOutside(needs, jobs) {
130
209
  const mine = new Set(jobs);
@@ -0,0 +1,110 @@
1
+ /**
2
+ * The rest of an apply that stopped, under the approval it applied under
3
+ * (#5047), with the spec's `approvals.remainder` and `approvals.spend`, both
4
+ * read at base.
5
+ *
6
+ * A wave that applies under an approval writes its applied line on
7
+ * `chant/lifecycle` (`_gates/<op>/applied.jsonl`, #3784) first. Under
8
+ * `remainder` that line carries each change the approved plans make: a run's
9
+ * resource, by the engine's address, and the resource's digest (the
10
+ * capability's `resourceDigests`), with the commit and the run (`resume`,
11
+ * which `chant run resume` starts again once it is gone). Only an engine that
12
+ * records each resource as its apply returns (the `resource` lock grain, such
13
+ * as choudoufu's) plans exactly what it did not apply after a stop, so a wave
14
+ * with a changing run on another grain, or with no resource digests, records
15
+ * no changes and never resumes as a remainder. The job that applies the
16
+ * whole wave (a split wave's record job) writes how the apply ended, a
17
+ * `finished` line; a killed apply writes none.
18
+ *
19
+ * Run again at the same commit (the resume re-runs the stopped job), the
20
+ * wave plans what is left. That plan has another digest, so the spent
21
+ * approval would not count. It does when every change the plans make is one
22
+ * the stopped apply's line names, with the same digest: the ones it no longer
23
+ * makes are done, since the config is the same and the engine records each
24
+ * resource it applied. Any other change, a digest member that is no run
25
+ * beyond the approved ones, or another commit, leaves the wave to wait for an
26
+ * approval of its own. The wave then applies under the stopped line, writes
27
+ * no applied line of its own, and writes that line's finished line.
28
+ *
29
+ * A split wave's applying job (#4987) re-plans its runs through the step: a
30
+ * run whose plan moved since the gate job's decision applies when its plan
31
+ * makes only changes the decision recorded, with the same digests.
32
+ *
33
+ * A wave whose plans change nothing closes the newest stopped apply of its
34
+ * gate as applied, since something applied the rest. With
35
+ * `approvals.spendStanding` a wave its gate lets through spends an approval
36
+ * of its digest that stands (`./op-waves-run.ts`).
37
+ *
38
+ * Pure: no git, no ledger, no clock.
39
+ */
40
+ import type { AppliedGateChange, AppliedGateRecord, FinishedGateRecord } from "../lifecycle/gate-applied.js";
41
+ export type { AppliedGateChange } from "../lifecycle/gate-applied.js";
42
+ export { OP_WAVES_REMAINDER_FLOOR, OP_WAVES_REMAINDER_PARITY_FLOOR } from "../release-floors.js";
43
+ /** A planned run, as the remainder reads it: its member, whether its plan is empty, and its resources' digests. */
44
+ export interface OpWaveRemainderMember {
45
+ member: string;
46
+ empty?: boolean;
47
+ resources?: Record<string, string>;
48
+ }
49
+ /** The lock grain of each run's step plan, by target. */
50
+ export type OpWaveRemainderGrains = ReadonlyMap<string, {
51
+ lock?: {
52
+ grain: string;
53
+ };
54
+ }> | undefined;
55
+ /**
56
+ * Every change the plans make, sorted by target and address, or undefined
57
+ * when a run that changes something did not plan through the step on the
58
+ * `resource` grain or gave no resource digests: the wave cannot resume as a
59
+ * remainder.
60
+ */
61
+ export declare function opWaveApprovedChanges(members: readonly OpWaveRemainderMember[], grains: OpWaveRemainderGrains): AppliedGateChange[] | undefined;
62
+ /**
63
+ * The apply of `gate` a wave at `commit` takes up: the gate's newest applied
64
+ * line, when it names changes, was written at `commit`, and no finished line
65
+ * says it applied. Undefined when there is none.
66
+ */
67
+ export declare function opWaveStoppedApply(applied: readonly AppliedGateRecord[], finished: readonly FinishedGateRecord[], gate: string, commit: string | undefined): AppliedGateRecord | undefined;
68
+ /** The newest applied line of `gate` that names changes and has no finished line at all: what a wave that changes nothing closes. */
69
+ export declare function opWaveUnfinishedApply(applied: readonly AppliedGateRecord[], finished: readonly FinishedGateRecord[], gate: string): AppliedGateRecord | undefined;
70
+ /** Whether the plans now are the rest of the approved changes. */
71
+ export type OpWaveCover = {
72
+ covered: true;
73
+ remaining: AppliedGateChange[];
74
+ done: AppliedGateChange[];
75
+ } | {
76
+ covered: false;
77
+ why: string;
78
+ };
79
+ /**
80
+ * The digest members that are no run whose digest follows from the plans
81
+ * (#5056): the cost member, `(monthly cost)`, chant's `holds.cost` and
82
+ * terragucci's alike, which digests the wave's monthly change. Part of the
83
+ * wave applied, so the rest costs less and the digest moves; every change is
84
+ * still compared, so the cover leaves it out on both sides.
85
+ */
86
+ export declare const OP_WAVE_REMAINDER_FOLLOWS: readonly string[];
87
+ /**
88
+ * Whether `now`, the changes the plans make, are the rest of `approved`:
89
+ * each one approved with the same digest. The approved ones it no longer
90
+ * makes are done. `extras` are the digest members that are no run, now and
91
+ * as approved: each one now must be approved with the same digest, except
92
+ * the ones whose digest follows from the plans ({@link OP_WAVE_REMAINDER_FOLLOWS}).
93
+ */
94
+ export declare function opWaveCoverRemainder(approved: readonly AppliedGateChange[], now: readonly AppliedGateChange[] | undefined, extras?: {
95
+ now?: readonly {
96
+ member: string;
97
+ planDigest: string;
98
+ }[];
99
+ approved?: readonly {
100
+ member: string;
101
+ planDigest: string;
102
+ }[];
103
+ }): OpWaveCover;
104
+ /**
105
+ * A run's plan in a split wave's applying job, against the changes the gate
106
+ * job's decision recorded (#5047): covered when it makes only changes of
107
+ * that run the decision holds, with the same digests.
108
+ */
109
+ export declare function opWaveRunCovered(approved: readonly AppliedGateChange[], target: string, plan: OpWaveRemainderMember, grains: OpWaveRemainderGrains): OpWaveCover;
110
+ //# sourceMappingURL=op-waves-remainder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"op-waves-remainder.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-remainder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAK1G,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AAE9F,mHAAmH;AACnH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,yDAAyD;AACzD,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE;QAAE,KAA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AE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAO,GACrI,WAAW,CASb;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,GAAG,WAAW,CAGhK"}
@@ -0,0 +1,120 @@
1
+ /**
2
+ * The rest of an apply that stopped, under the approval it applied under
3
+ * (#5047), with the spec's `approvals.remainder` and `approvals.spend`, both
4
+ * read at base.
5
+ *
6
+ * A wave that applies under an approval writes its applied line on
7
+ * `chant/lifecycle` (`_gates/<op>/applied.jsonl`, #3784) first. Under
8
+ * `remainder` that line carries each change the approved plans make: a run's
9
+ * resource, by the engine's address, and the resource's digest (the
10
+ * capability's `resourceDigests`), with the commit and the run (`resume`,
11
+ * which `chant run resume` starts again once it is gone). Only an engine that
12
+ * records each resource as its apply returns (the `resource` lock grain, such
13
+ * as choudoufu's) plans exactly what it did not apply after a stop, so a wave
14
+ * with a changing run on another grain, or with no resource digests, records
15
+ * no changes and never resumes as a remainder. The job that applies the
16
+ * whole wave (a split wave's record job) writes how the apply ended, a
17
+ * `finished` line; a killed apply writes none.
18
+ *
19
+ * Run again at the same commit (the resume re-runs the stopped job), the
20
+ * wave plans what is left. That plan has another digest, so the spent
21
+ * approval would not count. It does when every change the plans make is one
22
+ * the stopped apply's line names, with the same digest: the ones it no longer
23
+ * makes are done, since the config is the same and the engine records each
24
+ * resource it applied. Any other change, a digest member that is no run
25
+ * beyond the approved ones, or another commit, leaves the wave to wait for an
26
+ * approval of its own. The wave then applies under the stopped line, writes
27
+ * no applied line of its own, and writes that line's finished line.
28
+ *
29
+ * A split wave's applying job (#4987) re-plans its runs through the step: a
30
+ * run whose plan moved since the gate job's decision applies when its plan
31
+ * makes only changes the decision recorded, with the same digests.
32
+ *
33
+ * A wave whose plans change nothing closes the newest stopped apply of its
34
+ * gate as applied, since something applied the rest. With
35
+ * `approvals.spendStanding` a wave its gate lets through spends an approval
36
+ * of its digest that stands (`./op-waves-run.ts`).
37
+ *
38
+ * Pure: no git, no ledger, no clock.
39
+ */
40
+ import { finishedApply } from "../lifecycle/gate-applied.js";
41
+ import { samePlanDigest } from "../lifecycle/plan-digest.js";
42
+ import { OP_WAVE_COST_MEMBER } from "./op-waves-capability-spec.js";
43
+ export { OP_WAVES_REMAINDER_FLOOR, OP_WAVES_REMAINDER_PARITY_FLOOR } from "../release-floors.js";
44
+ /**
45
+ * Every change the plans make, sorted by target and address, or undefined
46
+ * when a run that changes something did not plan through the step on the
47
+ * `resource` grain or gave no resource digests: the wave cannot resume as a
48
+ * remainder.
49
+ */
50
+ export function opWaveApprovedChanges(members, grains) {
51
+ const out = [];
52
+ for (const m of members) {
53
+ if (m.empty === true)
54
+ continue;
55
+ if (grains?.get(m.member)?.lock?.grain !== "resource" || m.resources === undefined)
56
+ return undefined;
57
+ for (const [address, digest] of Object.entries(m.resources))
58
+ out.push({ target: m.member, address, digest });
59
+ }
60
+ return out.sort((a, b) => (a.target === b.target ? (a.address < b.address ? -1 : a.address > b.address ? 1 : 0) : a.target < b.target ? -1 : 1));
61
+ }
62
+ const time = (iso) => new Date(iso).getTime();
63
+ /** The newest applied line of `gate`, oldest wins a tie by order. */
64
+ function newestLine(applied, gate) {
65
+ return applied.filter((a) => a.gate === gate).reduce((n, a) => (!n || time(a.timestamp) >= time(n.timestamp) ? a : n), undefined);
66
+ }
67
+ /**
68
+ * The apply of `gate` a wave at `commit` takes up: the gate's newest applied
69
+ * line, when it names changes, was written at `commit`, and no finished line
70
+ * says it applied. Undefined when there is none.
71
+ */
72
+ export function opWaveStoppedApply(applied, finished, gate, commit) {
73
+ const line = newestLine(applied, gate);
74
+ if (!line?.changes || commit === undefined || line.commit !== commit)
75
+ return undefined;
76
+ return finishedApply(finished, line)?.result === "applied" ? undefined : line;
77
+ }
78
+ /** The newest applied line of `gate` that names changes and has no finished line at all: what a wave that changes nothing closes. */
79
+ export function opWaveUnfinishedApply(applied, finished, gate) {
80
+ const line = newestLine(applied, gate);
81
+ return line?.changes && !finishedApply(finished, line) ? line : undefined;
82
+ }
83
+ const key = (c) => `${c.target} ${c.address}`;
84
+ /**
85
+ * The digest members that are no run whose digest follows from the plans
86
+ * (#5056): the cost member, `(monthly cost)`, chant's `holds.cost` and
87
+ * terragucci's alike, which digests the wave's monthly change. Part of the
88
+ * wave applied, so the rest costs less and the digest moves; every change is
89
+ * still compared, so the cover leaves it out on both sides.
90
+ */
91
+ export const OP_WAVE_REMAINDER_FOLLOWS = [OP_WAVE_COST_MEMBER];
92
+ /**
93
+ * Whether `now`, the changes the plans make, are the rest of `approved`:
94
+ * each one approved with the same digest. The approved ones it no longer
95
+ * makes are done. `extras` are the digest members that are no run, now and
96
+ * as approved: each one now must be approved with the same digest, except
97
+ * the ones whose digest follows from the plans ({@link OP_WAVE_REMAINDER_FOLLOWS}).
98
+ */
99
+ export function opWaveCoverRemainder(approved, now, extras = {}) {
100
+ if (!now)
101
+ return { covered: false, why: "a run that changes something plans on no resource grain, or gave no resource digests" };
102
+ const was = new Map(approved.map((c) => [key(c), c]));
103
+ const moved = now.filter((c) => was.get(key(c))?.digest !== c.digest).map(key);
104
+ if (moved.length > 0)
105
+ return { covered: false, why: `${moved.join(", ")} ${moved.length === 1 ? "is a change" : "are changes"} the approved plans did not make` };
106
+ const extra = (extras.now ?? []).filter((e) => !OP_WAVE_REMAINDER_FOLLOWS.includes(e.member) && !(extras.approved ?? []).some((a) => a.member === e.member && samePlanDigest(a.planDigest, e.planDigest))).map((e) => e.member);
107
+ if (extra.length > 0)
108
+ return { covered: false, why: `${extra.join(", ")} ${extra.length === 1 ? "is" : "are"} not as the approved set held ${extra.length === 1 ? "it" : "them"}` };
109
+ const planned = new Set(now.map(key));
110
+ return { covered: true, remaining: [...now], done: approved.filter((c) => !planned.has(key(c))) };
111
+ }
112
+ /**
113
+ * A run's plan in a split wave's applying job, against the changes the gate
114
+ * job's decision recorded (#5047): covered when it makes only changes of
115
+ * that run the decision holds, with the same digests.
116
+ */
117
+ export function opWaveRunCovered(approved, target, plan, grains) {
118
+ const now = opWaveApprovedChanges([plan], grains);
119
+ return opWaveCoverRemainder(approved.filter((c) => c.target === target), now?.map((c) => ({ ...c, target })));
120
+ }