@codyswann/lisa 4.104.1 → 4.105.0

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 (108) hide show
  1. package/all/copy-overwrite/scripts/lib/completion-proof-codepipeline.d.mts +28 -0
  2. package/all/copy-overwrite/scripts/lib/completion-proof-codepipeline.mjs +235 -0
  3. package/all/copy-overwrite/scripts/lib/completion-proof-source.mjs +15 -4
  4. package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
  5. package/all/copy-overwrite/scripts/lisa-work-item.mjs +5 -2
  6. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +13 -3
  7. package/cdk/create-only/.github/workflows/deploy.yml +4 -0
  8. package/dist/cli/doctor-cdk-delivery-proof.d.ts +10 -0
  9. package/dist/cli/doctor-cdk-delivery-proof.d.ts.map +1 -0
  10. package/dist/cli/doctor-cdk-delivery-proof.js +188 -0
  11. package/dist/cli/doctor-cdk-delivery-proof.js.map +1 -0
  12. package/dist/cli/doctor-seeded-artifacts.d.ts.map +1 -1
  13. package/dist/cli/doctor-seeded-artifacts.js +8 -3
  14. package/dist/cli/doctor-seeded-artifacts.js.map +1 -1
  15. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  16. package/dist/core/lisa-owned-hash-ledger.js +42 -0
  17. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  18. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  19. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  20. package/dist/core/upstream-evidence-manifest.js +18 -9
  21. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  22. package/package.json +4 -4
  23. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +19 -0
  26. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  27. package/plugins/lisa/skills/lisa-doctor/SKILL.md +19 -0
  28. package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  29. package/plugins/lisa-agy/plugin.json +1 -1
  30. package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +19 -0
  31. package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  32. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  34. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  35. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  39. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +19 -0
  41. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  42. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +19 -0
  44. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  45. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  47. package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +19 -0
  48. package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  49. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  51. package/plugins/lisa-expo-agy/plugin.json +1 -1
  52. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  58. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  59. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  63. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  65. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  66. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  70. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  72. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  73. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  77. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  79. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  80. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  84. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  86. package/plugins/lisa-rails-agy/plugin.json +1 -1
  87. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  91. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  93. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  94. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  98. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  100. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  101. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  105. package/plugins/src/base/skills/lisa-doctor/SKILL.md +19 -0
  106. package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  107. package/scripts/two-channel-couplings.json +1 -1
  108. package/typescript/copy-overwrite/.prettierignore +1 -0
@@ -0,0 +1,28 @@
1
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
2
+ // Do not edit directly — durable changes belong upstream in Lisa.
3
+
4
+ /** The CodePipeline delivery mechanism name. */
5
+ export const CODEPIPELINE: "aws-codepipeline";
6
+
7
+ /** Every delivery mechanism completion can verify. */
8
+ export const DELIVERY_MECHANISMS: readonly string[];
9
+
10
+ /** A CodePipeline name as AWS accepts it. */
11
+ export const PIPELINE_NAME_PATTERN: RegExp;
12
+
13
+ /** An AWS region identifier such as `us-east-1`. */
14
+ export const REGION_PATTERN: RegExp;
15
+
16
+ /** An AWS account id: exactly twelve digits. */
17
+ export const ACCOUNT_ID_PATTERN: RegExp;
18
+
19
+ /** Prove a CodePipeline delivery from the pipeline's own execution record. */
20
+ export function validateCodePipelineDelivery(
21
+ delivery: object,
22
+ configured: object,
23
+ context: object,
24
+ deliveredSha: string
25
+ ): void;
26
+
27
+ /** One report line naming what delivered the work, or "". */
28
+ export function describeCodePipelineDelivery(record?: object): string;
@@ -0,0 +1,235 @@
1
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
2
+ // Do not edit directly — durable changes belong upstream in Lisa.
3
+
4
+ /**
5
+ * Read-only CodePipeline delivery proof for hosts that do not deploy through
6
+ * GitHub Actions — a CDK host releases from Actions and is delivered by its
7
+ * pipeline, so the pipeline's own execution record is the delivery fact.
8
+ *
9
+ * The accepted record pins one execution; this module reads exactly that
10
+ * execution with `codepipeline:GetPipelineExecution` and never writes. An
11
+ * execution still running (including one waiting at a manual approval) is
12
+ * pending, never delivered; one that ended any other way than Succeeded, or
13
+ * that carried another commit, is refused with both facts named.
14
+ */
15
+ import {
16
+ CompletionProofError,
17
+ MAX_NATIVE_JSON_BYTES,
18
+ isObject,
19
+ isOid,
20
+ requireProof,
21
+ } from "./completion-proof-shape.mjs";
22
+
23
+ export const CODEPIPELINE = "aws-codepipeline";
24
+
25
+ /** Every delivery mechanism completion can verify; anything else is undeclared. */
26
+ export const DELIVERY_MECHANISMS = Object.freeze([
27
+ "github-actions",
28
+ CODEPIPELINE,
29
+ "artifact",
30
+ "external-deployment",
31
+ ]);
32
+
33
+ /** A CodePipeline name as AWS accepts it. */
34
+ export const PIPELINE_NAME_PATTERN = /^[A-Za-z0-9.@_-]{1,100}$/;
35
+
36
+ /** An AWS region identifier such as `us-east-1`. */
37
+ export const REGION_PATTERN = /^[a-z]{2}(-[a-z]+)+-\d$/;
38
+
39
+ /** An AWS account id: exactly twelve digits. */
40
+ export const ACCOUNT_ID_PATTERN = /^\d{12}$/;
41
+
42
+ const PENDING_PROOF = "pending-proof";
43
+ const READ_ERROR = "read-error";
44
+ const EXECUTION_ID =
45
+ /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
46
+ const OBSERVER_ACCESS =
47
+ "read-only observer access that grants codepipeline:GetPipelineExecution on that pipeline";
48
+
49
+ /** The configured pipeline must be named before any record can be checked. */
50
+ function requireConfigured(configured, environment) {
51
+ const setting = `verification.completion.delivery.${environment}`;
52
+ requireProof(
53
+ typeof configured.pipeline_name === "string" &&
54
+ typeof configured.region === "string",
55
+ `The aws-codepipeline delivery mechanism needs ${setting}.pipeline_name and ${setting}.region naming the pipeline that delivers ${environment}; add them and run canonical Verify/evidence.`,
56
+ PENDING_PROOF
57
+ );
58
+ requireProof(
59
+ PIPELINE_NAME_PATTERN.test(configured.pipeline_name) &&
60
+ REGION_PATTERN.test(configured.region),
61
+ `${setting}.pipeline_name or ${setting}.region is not a valid CodePipeline name or AWS region.`
62
+ );
63
+ requireProof(
64
+ configured.account_id === undefined ||
65
+ (typeof configured.account_id === "string" &&
66
+ ACCOUNT_ID_PATTERN.test(configured.account_id)),
67
+ `${setting}.account_id is not a 12-digit AWS account id.`
68
+ );
69
+ }
70
+
71
+ /** The record pins the configured pipeline, one execution and the delivered commit. */
72
+ function requireRecorded(delivery, configured, deliveredSha) {
73
+ requireProof(
74
+ delivery.pipeline_name === configured.pipeline_name &&
75
+ delivery.region === configured.region,
76
+ `The accepted delivery names pipeline ${String(delivery.pipeline_name)} in ${String(delivery.region)}, but project configuration delivers through ${configured.pipeline_name} in ${configured.region}.`
77
+ );
78
+ requireProof(
79
+ configured.account_id === undefined ||
80
+ delivery.account_id === configured.account_id,
81
+ `The accepted delivery names AWS account ${String(delivery.account_id)}, but project configuration delivers through account ${configured.account_id}.`
82
+ );
83
+ requireProof(
84
+ typeof delivery.execution_id === "string" &&
85
+ EXECUTION_ID.test(delivery.execution_id) &&
86
+ isOid(delivery.source_revision) &&
87
+ delivery.source_revision === deliveredSha,
88
+ "The accepted CodePipeline delivery must pin one pipeline execution id and the delivered commit as its source revision."
89
+ );
90
+ }
91
+
92
+ /** Why a read failed, in words an operator can act on, without echoing AWS output. */
93
+ function readFailureHint(result) {
94
+ if (result.error?.code === "ENOENT")
95
+ return " The AWS CLI is not installed where verification runs.";
96
+ const stderr = String(result.stderr ?? "");
97
+ if (/AccessDenied|not authorized/i.test(stderr))
98
+ return " AWS denied the read.";
99
+ if (
100
+ /ExpiredToken|InvalidClientTokenId|Unable to locate credentials/i.test(
101
+ stderr
102
+ )
103
+ )
104
+ return " No valid AWS credentials were available.";
105
+ if (/PipelineExecutionNotFound|PipelineNotFound/.test(stderr))
106
+ return " AWS reports no such pipeline execution.";
107
+ return "";
108
+ }
109
+
110
+ /**
111
+ * One read-only AWS CLI call whose JSON reply must hold an object at `field`.
112
+ * Any failure is a read-error naming what was read and what access it needs.
113
+ */
114
+ function readAws(run, args, field, subject, needs) {
115
+ const result = run("aws", args, {
116
+ allowFailure: true,
117
+ maxBuffer: MAX_NATIVE_JSON_BYTES,
118
+ });
119
+ if (result.status !== 0 || result.error)
120
+ throw new CompletionProofError(
121
+ READ_ERROR,
122
+ `The ${subject} could not be read.${readFailureHint(result)} Verification needs ${needs}.`
123
+ );
124
+ let value;
125
+ try {
126
+ value = JSON.parse(result.stdout);
127
+ } catch {
128
+ value = undefined;
129
+ }
130
+ if (!isObject(value) || (field && !isObject(value[field])))
131
+ throw new CompletionProofError(
132
+ READ_ERROR,
133
+ `The ${subject} read did not return a complete reply.`
134
+ );
135
+ return field ? value[field] : value;
136
+ }
137
+
138
+ /**
139
+ * The credentials must belong to the configured account before any execution
140
+ * is read: same-named pipelines in another stage's account would otherwise
141
+ * read as this environment's delivery. `sts:GetCallerIdentity` needs no grant.
142
+ */
143
+ function requireAccount(run, configured) {
144
+ if (configured.account_id === undefined) return;
145
+ const identity = readAws(
146
+ run,
147
+ ["sts", "get-caller-identity", "--output=json"],
148
+ null,
149
+ "AWS caller identity",
150
+ `AWS credentials for account ${configured.account_id}`
151
+ );
152
+ requireProof(
153
+ identity.Account === configured.account_id,
154
+ `The AWS credentials verification is using belong to account ${String(identity.Account)}, not ${configured.account_id}, the account that runs ${configured.pipeline_name}; use credentials for that account and run canonical Verify/evidence again.`
155
+ );
156
+ }
157
+
158
+ /** Exactly one read-only native read of the pinned execution. */
159
+ function readExecution(run, delivery) {
160
+ return readAws(
161
+ run,
162
+ [
163
+ "codepipeline",
164
+ "get-pipeline-execution",
165
+ `--pipeline-name=${delivery.pipeline_name}`,
166
+ `--pipeline-execution-id=${delivery.execution_id}`,
167
+ `--region=${delivery.region}`,
168
+ "--output",
169
+ "json",
170
+ ],
171
+ "pipelineExecution",
172
+ `CodePipeline execution ${delivery.execution_id} of ${delivery.pipeline_name} in ${delivery.region}`,
173
+ OBSERVER_ACCESS
174
+ );
175
+ }
176
+
177
+ /** Succeeded at the delivered commit is delivery; anything else is not. */
178
+ function decideExecution(execution, delivery, sha) {
179
+ const id = delivery.execution_id;
180
+ requireProof(
181
+ execution.pipelineExecutionId === id &&
182
+ execution.pipelineName === delivery.pipeline_name,
183
+ `The CodePipeline read returned another execution than ${id} of ${delivery.pipeline_name}.`
184
+ );
185
+ const revisions = (execution.artifactRevisions ?? [])
186
+ .map(row => row?.revisionId)
187
+ .filter(value => typeof value === "string");
188
+ requireProof(
189
+ revisions.includes(sha),
190
+ `CodePipeline execution ${id} of ${delivery.pipeline_name} carried source revision ${revisions.join(", ") || "(none)"}, not the delivered commit ${sha}.`
191
+ );
192
+ requireProof(
193
+ execution.status !== "InProgress",
194
+ `CodePipeline execution ${id} of ${delivery.pipeline_name} is still InProgress (it may be waiting at a manual approval), so ${sha} is not delivered yet; run canonical Verify/evidence again once it succeeds.`,
195
+ PENDING_PROOF
196
+ );
197
+ const state =
198
+ execution.status === "Stopping"
199
+ ? "is Stopping"
200
+ : `ended ${String(execution.status)}`;
201
+ requireProof(
202
+ execution.status === "Succeeded",
203
+ `CodePipeline execution ${id} of ${delivery.pipeline_name} ${state}, so it did not deliver ${sha}; pin an execution that Succeeded at that commit.`
204
+ );
205
+ }
206
+
207
+ /**
208
+ * Prove a CodePipeline delivery from the pipeline's own execution record.
209
+ * @param {object} delivery - The accepted record's delivery obligation.
210
+ * @param {object} configured - `verification.completion.delivery.<env>`.
211
+ * @param {object} context - Completion context (`environment`, `run`).
212
+ * @param {string} deliveredSha - The record's delivered commit.
213
+ */
214
+ export function validateCodePipelineDelivery(
215
+ delivery,
216
+ configured,
217
+ context,
218
+ deliveredSha
219
+ ) {
220
+ requireConfigured(configured, context.environment);
221
+ requireRecorded(delivery, configured, deliveredSha);
222
+ requireAccount(context.run, configured);
223
+ decideExecution(readExecution(context.run, delivery), delivery, deliveredSha);
224
+ }
225
+
226
+ /**
227
+ * One report line naming what delivered the work, for a CodePipeline record.
228
+ * @param {object} [record] - The accepted completion record.
229
+ * @returns {string} A leading-newline line, or "" for other mechanisms.
230
+ */
231
+ export function describeCodePipelineDelivery(record) {
232
+ const delivery = record?.obligations?.delivery;
233
+ if (delivery?.mechanism !== CODEPIPELINE) return "";
234
+ return `\ndelivered by CodePipeline ${delivery.pipeline_name} execution ${delivery.execution_id} at ${delivery.source_revision}`;
235
+ }
@@ -3,6 +3,11 @@
3
3
 
4
4
  /** Native source/delivery reconciliation, independent of checkout credentials. */
5
5
  import { requireProof, isOid } from "./completion-proof-shape.mjs";
6
+ import {
7
+ CODEPIPELINE,
8
+ DELIVERY_MECHANISMS,
9
+ validateCodePipelineDelivery,
10
+ } from "./completion-proof-codepipeline.mjs";
6
11
 
7
12
  const PENDING_PROOF = "pending-proof";
8
13
 
@@ -116,10 +121,7 @@ export function validateDelivery(record, context, transport) {
116
121
  if (!delivery.required) return;
117
122
  const configured = context.policy.delivery?.[context.environment];
118
123
  requireProof(
119
- configured &&
120
- ["github-actions", "artifact", "external-deployment"].includes(
121
- configured.mechanism
122
- ),
124
+ configured && DELIVERY_MECHANISMS.includes(configured.mechanism),
123
125
  "The actual delivery mechanism is not declared in verification.completion.delivery; configure it and run canonical Verify/evidence.",
124
126
  PENDING_PROOF
125
127
  );
@@ -127,6 +129,15 @@ export function validateDelivery(record, context, transport) {
127
129
  delivery.mechanism === configured.mechanism,
128
130
  "The accepted delivery mechanism differs from project configuration."
129
131
  );
132
+ if (configured.mechanism === CODEPIPELINE) {
133
+ validateCodePipelineDelivery(
134
+ delivery,
135
+ configured,
136
+ context,
137
+ record.source.delivered_sha
138
+ );
139
+ return;
140
+ }
130
141
  if (configured.mechanism !== "github-actions") {
131
142
  requireProof(
132
143
  Array.isArray(delivery.evidence_refs) &&
@@ -15,6 +15,7 @@ const COMMON = [
15
15
  "lib/bounded-spawn.mjs",
16
16
  "lib/completion-authorization.mjs",
17
17
  "lib/completion-proof-adapters.mjs",
18
+ "lib/completion-proof-codepipeline.mjs",
18
19
  "lib/completion-proof-conformance.mjs",
19
20
  "lib/completion-proof-content.mjs",
20
21
  "lib/completion-proof-errors.mjs",
@@ -29,6 +29,7 @@ import {
29
29
  completionDenial,
30
30
  } from "./lib/completion-authorization.mjs";
31
31
  import { completionContext } from "./lib/completion-proof-adapters.mjs";
32
+ import { describeCodePipelineDelivery } from "./lib/completion-proof-codepipeline.mjs";
32
33
  import {
33
34
  ensureEvidenceRelease,
34
35
  publishCompletionProof,
@@ -5292,7 +5293,7 @@ function completeGithubWorkItem(ref, contract, prUrl) {
5292
5293
  category: already ? ALREADY_COMPLETED : "completed",
5293
5294
  bases,
5294
5295
  merged,
5295
- report: `work-item ${already ? ALREADY_COMPLETED : "completed"}: ${ref} -> ${contract.lifecycle.terminalName} (merged: ${evidence}) bases: ${bases}`,
5296
+ report: `work-item ${already ? ALREADY_COMPLETED : "completed"}: ${ref} -> ${contract.lifecycle.terminalName} (merged: ${evidence}) bases: ${bases}${describeCodePipelineDelivery(authorization.record)}`,
5296
5297
  terminal: contract.lifecycle.terminalName,
5297
5298
  };
5298
5299
  }
@@ -5685,6 +5686,7 @@ function completeLinearWorkItem(ref, contract, prUrl) {
5685
5686
  terminal: displayName,
5686
5687
  category: ALREADY_COMPLETED,
5687
5688
  applied: false,
5689
+ delivery: describeCodePipelineDelivery(authorization.record),
5688
5690
  };
5689
5691
  }
5690
5692
  const update = completionNativeOperation(
@@ -5729,6 +5731,7 @@ function completeLinearWorkItem(ref, contract, prUrl) {
5729
5731
  terminal: displayName,
5730
5732
  category: "completed",
5731
5733
  applied: true,
5734
+ delivery: describeCodePipelineDelivery(authorization.record),
5732
5735
  };
5733
5736
  }
5734
5737
 
@@ -5822,7 +5825,7 @@ function complete(args) {
5822
5825
  outcome.report ??
5823
5826
  `work-item ${outcome.category === ALREADY_COMPLETED ? ALREADY_COMPLETED : "completed"}: ${ref} -> ${outcome.terminal} (merged: ${outcome.merged
5824
5827
  .map(number => `#${number}`)
5825
- .join(", ")})`
5828
+ .join(", ")})${outcome.delivery ?? ""}`
5826
5829
  );
5827
5830
  if (
5828
5831
  ["invalid-proof", COMPLETION_READ_ERROR, COMPLETION_WRITE_ERROR].includes(
@@ -94,6 +94,14 @@
94
94
  "dynamicImports": [],
95
95
  "children": []
96
96
  },
97
+ "lib/completion-proof-codepipeline.mjs": {
98
+ "sha256": "3ea69c6f03aeba8acbab13a026fc470c075540a3bfa2921a27407cecf424a45d",
99
+ "staticImports": [
100
+ "lib/completion-proof-shape.mjs"
101
+ ],
102
+ "dynamicImports": [],
103
+ "children": []
104
+ },
97
105
  "lib/completion-proof-conformance.mjs": {
98
106
  "sha256": "51b2bfccc8ecca684dd80a4e2ae35896e76fa519389fe650f0890ffc0fef421d",
99
107
  "staticImports": [
@@ -178,8 +186,9 @@
178
186
  "children": []
179
187
  },
180
188
  "lib/completion-proof-source.mjs": {
181
- "sha256": "1028cbeb9c8bb9cf685dd3f532ea41de2a25456b989fbda23d3315d8532877c0",
189
+ "sha256": "7aa9673c7de21fa64e572043e7e76774e7cb57210a54f4603a72e88be97510a3",
182
190
  "staticImports": [
191
+ "lib/completion-proof-codepipeline.mjs",
183
192
  "lib/completion-proof-shape.mjs"
184
193
  ],
185
194
  "dynamicImports": [],
@@ -658,7 +667,7 @@
658
667
  "children": []
659
668
  },
660
669
  "lib/npm-update-helper-inventory.mjs": {
661
- "sha256": "0a19cdcdcfe26f12530351ae5afeb7ef5448abc06a82d5becb82ff1dc4ee41e0",
670
+ "sha256": "1a34f7da808aa6f669d3f9e2f467552b240920ddd463556a105e7d294fb1bf66",
662
671
  "staticImports": [],
663
672
  "dynamicImports": [],
664
673
  "children": []
@@ -1432,10 +1441,11 @@
1432
1441
  "children": []
1433
1442
  },
1434
1443
  "lisa-work-item.mjs": {
1435
- "sha256": "fe413e0ec7dad9d1fc5c512253de7510415bff3b82d3f06bf3f52cd2c68ef4b5",
1444
+ "sha256": "8dc7cf96bfd13b6ca0250172c0b4de91c0ab4969a057ad04ce2d022518e73f33",
1436
1445
  "staticImports": [
1437
1446
  "lib/completion-authorization.mjs",
1438
1447
  "lib/completion-proof-adapters.mjs",
1448
+ "lib/completion-proof-codepipeline.mjs",
1439
1449
  "lib/completion-proof-github.mjs",
1440
1450
  "lib/completion-proof-publisher.mjs",
1441
1451
  "lib/completion-proof-shape.mjs",
@@ -11,6 +11,10 @@
11
11
  # the only thing visible. A green check here means RELEASED. Whether the change
12
12
  # reached an environment is a separate fact, and it is answered by CodePipeline
13
13
  # — which may still be holding at a manual approval gate — not by this run.
14
+ #
15
+ # Lisa proves that delivery from CodePipeline's own execution record. Declare it
16
+ # in .lisa.config.json as verification.completion.delivery.<env> with
17
+ # mechanism: aws-codepipeline, pipeline_name and region.
14
18
 
15
19
  name: 📦 Release
16
20
 
@@ -0,0 +1,10 @@
1
+ import type { DoctorCheck } from "./doctor.js";
2
+ /** Name of the delivery-proof check as doctor reports it. */
3
+ export declare const CDK_DELIVERY_PROOF_CHECK_NAME = "CDK delivery proof configured?";
4
+ /**
5
+ * Report whether a CDK host declares how its delivery is proven.
6
+ * @param targetPath - Project path to inspect
7
+ * @returns Doctor check result
8
+ */
9
+ export declare function checkCdkDeliveryProof(targetPath: string): Promise<DoctorCheck>;
10
+ //# sourceMappingURL=doctor-cdk-delivery-proof.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor-cdk-delivery-proof.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-cdk-delivery-proof.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,6DAA6D;AAC7D,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAyI9E;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,CAAC,CA0CtB"}
@@ -0,0 +1,188 @@
1
+ /**
2
+ * `lisa doctor` check: can this CDK host prove that a change was delivered?
3
+ *
4
+ * Lisa closes a work item only when its completion record proves delivery,
5
+ * and the mechanism that proves it is declared under
6
+ * `verification.completion.delivery.<env>`. A CDK app's GitHub Actions
7
+ * workflow releases but does not deploy — CodePipeline does — so a CDK host
8
+ * with no declaration has nothing Lisa can verify, and every lifecycle
9
+ * completion stops at pending-proof with no hint of what to set
10
+ * (CodySwannGT/lisa#4646).
11
+ *
12
+ * This check REPORTS and names the setting. It edits nothing: the delivery
13
+ * declaration names a real pipeline, which only the host knows. A config that
14
+ * cannot be parsed is reported as uninspected rather than passed, matching
15
+ * the monitor-threshold check; doctor's project-config check owns the parse
16
+ * failure itself.
17
+ * @module cli/doctor-cdk-delivery-proof
18
+ */
19
+ import { existsSync } from "node:fs";
20
+ import { readFile } from "node:fs/promises";
21
+ import * as path from "node:path";
22
+ import { ACCOUNT_ID_PATTERN, CODEPIPELINE, DELIVERY_MECHANISMS, PIPELINE_NAME_PATTERN, REGION_PATTERN, } from "../../all/copy-overwrite/scripts/lib/completion-proof-codepipeline.mjs";
23
+ import { CDK_APP_MARKER } from "../core/cdk-preset-adoption.js";
24
+ /** Name of the delivery-proof check as doctor reports it. */
25
+ export const CDK_DELIVERY_PROOF_CHECK_NAME = "CDK delivery proof configured?";
26
+ const CONFIG_FILES = [".lisa.config.json", ".lisa.config.local.json"];
27
+ const SETTING = "verification.completion.delivery";
28
+ /**
29
+ * The environment lifecycle completion proves delivery for. The completion
30
+ * CLI always resolves it to this literal, whatever `deploy.branches` maps.
31
+ */
32
+ const PRODUCTION = "production";
33
+ /** Operator-facing remedy for a CDK host with no usable delivery declaration. */
34
+ const MISSING_DETAIL = `This CDK project declares no usable ${SETTING}.<env>, so lifecycle completion ` +
35
+ "cannot prove a change was delivered and stops at pending-proof. Declare " +
36
+ `the pipeline that delivers each environment, e.g. ${SETTING}.production = ` +
37
+ `{ "mechanism": "${CODEPIPELINE}", "pipeline_name": "<your pipeline>", ` +
38
+ '"region": "<aws-region>" }, and give verification read-only ' +
39
+ "codepipeline:GetPipelineExecution access";
40
+ /**
41
+ * Narrow an object-shaped value to a string-keyed record.
42
+ * @param value - Value to narrow
43
+ * @returns Record for plain objects, otherwise undefined
44
+ */
45
+ function asRecord(value) {
46
+ return typeof value === "object" && value !== null && !Array.isArray(value)
47
+ ? value
48
+ : undefined;
49
+ }
50
+ /**
51
+ * Merge local config over shared config exactly as the lifecycle CLI does:
52
+ * objects merge per key, while arrays and scalars are replaced.
53
+ * @param base - Shared config value
54
+ * @param override - Local config value
55
+ * @returns Effective merged value
56
+ */
57
+ function deepMerge(base, override) {
58
+ const left = asRecord(base);
59
+ const right = asRecord(override);
60
+ if (!left || !right)
61
+ return override;
62
+ return Object.fromEntries([
63
+ ...Object.entries(left).filter(([key]) => !(key in right)),
64
+ ...Object.entries(right).map(([key, value]) => [
65
+ key,
66
+ key in left ? deepMerge(left[key], value) : value,
67
+ ]),
68
+ ]);
69
+ }
70
+ /**
71
+ * Read one optional config file.
72
+ * @param targetPath - Project root
73
+ * @param fileName - Config file to read
74
+ * @returns Parsed config, or the file name when it could not be parsed
75
+ */
76
+ async function inspect(targetPath, fileName) {
77
+ const configPath = path.join(targetPath, fileName);
78
+ if (!existsSync(configPath))
79
+ return { config: {} };
80
+ try {
81
+ const parsed = asRecord(JSON.parse(await readFile(configPath, "utf8")));
82
+ return { config: parsed ?? {} };
83
+ }
84
+ catch {
85
+ return { config: {}, uninspectable: fileName };
86
+ }
87
+ }
88
+ /**
89
+ * The effective `verification.completion.delivery` declarations.
90
+ * @param configs - Shared then local config
91
+ * @returns Delivery declarations keyed by environment
92
+ */
93
+ function deliveryOf(configs) {
94
+ const merged = asRecord(configs.reduce(deepMerge, {}));
95
+ const completion = asRecord(asRecord(merged?.["verification"])?.["completion"]);
96
+ return asRecord(completion?.["delivery"]) ?? {};
97
+ }
98
+ /**
99
+ * Settings a declared CodePipeline delivery lacks or spells invalidly.
100
+ * @param environments - Effective delivery declarations
101
+ * @returns Dotted paths of every missing or invalid pipeline_name or region
102
+ */
103
+ function incompletePipelines(environments) {
104
+ const patterns = {
105
+ pipeline_name: PIPELINE_NAME_PATTERN,
106
+ region: REGION_PATTERN,
107
+ };
108
+ return Object.entries(environments).flatMap(([environment, value]) => {
109
+ const declared = asRecord(value);
110
+ if (declared?.["mechanism"] !== CODEPIPELINE)
111
+ return [];
112
+ return ["pipeline_name", "region"]
113
+ .filter(key => {
114
+ const field = declared[key];
115
+ return typeof field !== "string" || !patterns[key].test(field);
116
+ })
117
+ .map(key => `${SETTING}.${environment}.${key}`);
118
+ });
119
+ }
120
+ /**
121
+ * Account findings for every CodePipeline declaration: a missing account lets
122
+ * credentials for another stage's account read a same-named pipeline there as
123
+ * this environment's delivery; a malformed one is refused by completion.
124
+ * @param environments - Effective delivery declarations
125
+ * @returns One finding per declaration with a missing or malformed account_id
126
+ */
127
+ function accountFindings(environments) {
128
+ return Object.entries(environments).flatMap(([environment, value]) => {
129
+ const declared = asRecord(value);
130
+ if (declared?.["mechanism"] !== CODEPIPELINE)
131
+ return [];
132
+ const account = declared["account_id"];
133
+ const setting = `${SETTING}.${environment}.account_id`;
134
+ if (account === undefined)
135
+ return [
136
+ `${setting} is not set, so credentials for another stage's AWS account could read a same-named pipeline there as ${environment} delivery; set it to the 12-digit account that runs this pipeline`,
137
+ ];
138
+ return typeof account === "string" && ACCOUNT_ID_PATTERN.test(account)
139
+ ? []
140
+ : [`${setting} is not a 12-digit AWS account id`];
141
+ });
142
+ }
143
+ /**
144
+ * Report whether a CDK host declares how its delivery is proven.
145
+ * @param targetPath - Project path to inspect
146
+ * @returns Doctor check result
147
+ */
148
+ export async function checkCdkDeliveryProof(targetPath) {
149
+ if (!existsSync(path.join(targetPath, CDK_APP_MARKER))) {
150
+ return row("ok", "Not a CDK project");
151
+ }
152
+ const inspections = await Promise.all(CONFIG_FILES.map(fileName => inspect(targetPath, fileName)));
153
+ const uninspectable = inspections.flatMap(inspection => inspection.uninspectable ? [inspection.uninspectable] : []);
154
+ if (uninspectable.length > 0) {
155
+ return row("warn", `Could not inspect ${uninspectable.join(", ")} for ${SETTING}`);
156
+ }
157
+ const environments = deliveryOf(inspections.map(inspection => inspection.config));
158
+ const declared = Object.keys(environments).filter(environment => DELIVERY_MECHANISMS.includes(String(asRecord(environments[environment])?.["mechanism"])));
159
+ if (declared.length === 0)
160
+ return row("warn", MISSING_DETAIL);
161
+ const missing = incompletePipelines(environments);
162
+ const findings = [
163
+ ...(declared.includes(PRODUCTION)
164
+ ? []
165
+ : [
166
+ `Lifecycle completion proves delivery for ${PRODUCTION}, but ${SETTING}.${PRODUCTION} declares no accepted mechanism (declared: ${declared.join(", ")}), so completion stops at pending-proof`,
167
+ ]),
168
+ ...(missing.length > 0
169
+ ? [
170
+ `The ${CODEPIPELINE} delivery needs a valid ${missing.join(", ")} naming the pipeline that delivers it`,
171
+ ]
172
+ : []),
173
+ ...accountFindings(environments),
174
+ ];
175
+ return findings.length > 0
176
+ ? row("warn", findings.join("; "))
177
+ : row("ok", `${SETTING} declares ${declared.join(", ")}`);
178
+ }
179
+ /**
180
+ * A line for this check.
181
+ * @param status - Check status
182
+ * @param detail - What was found
183
+ * @returns Doctor check result
184
+ */
185
+ function row(status, detail) {
186
+ return { name: CDK_DELIVERY_PROOF_CHECK_NAME, status, detail };
187
+ }
188
+ //# sourceMappingURL=doctor-cdk-delivery-proof.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor-cdk-delivery-proof.js","sourceRoot":"","sources":["../../src/cli/doctor-cdk-delivery-proof.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACf,MAAM,wEAAwE,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGhE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,MAAM,YAAY,GAAG,CAAC,mBAAmB,EAAE,yBAAyB,CAAU,CAAC;AAC/E,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAEnD;;;GAGG;AACH,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,iFAAiF;AACjF,MAAM,cAAc,GAClB,uCAAuC,OAAO,kCAAkC;IAChF,0EAA0E;IAC1E,qDAAqD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AAC,OAAO,CAAC,MAAM,GAAG,CAAC;YACpB,CAAC,CAAC;gBACE,OAAO,YAAY,2BAA2B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,uCAAuC;aACxG;YACH,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,eAAe,CAAC,YAAY,CAAC;KACjC,CAAC;IACF,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC;QACxB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,OAAO,aAAa,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,SAAS,GAAG,CAAC,MAA6B,EAAE,MAAc;IACxD,OAAO,EAAE,IAAI,EAAE,6BAA6B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-seeded-artifacts.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-seeded-artifacts.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CA6BjC"}
1
+ {"version":3,"file":"doctor-seeded-artifacts.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-seeded-artifacts.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAiCjC"}