@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.
- package/all/copy-overwrite/scripts/lib/completion-proof-codepipeline.d.mts +28 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-codepipeline.mjs +235 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-source.mjs +15 -4
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +5 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +13 -3
- package/cdk/create-only/.github/workflows/deploy.yml +4 -0
- package/dist/cli/doctor-cdk-delivery-proof.d.ts +10 -0
- package/dist/cli/doctor-cdk-delivery-proof.d.ts.map +1 -0
- package/dist/cli/doctor-cdk-delivery-proof.js +188 -0
- package/dist/cli/doctor-cdk-delivery-proof.js.map +1 -0
- package/dist/cli/doctor-seeded-artifacts.d.ts.map +1 -1
- package/dist/cli/doctor-seeded-artifacts.js +8 -3
- package/dist/cli/doctor-seeded-artifacts.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +42 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +18 -9
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/plugins/lisa/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-doctor/SKILL.md +19 -0
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
package/package.json
CHANGED
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"qs": "^6.16.0"
|
|
195
195
|
},
|
|
196
196
|
"name": "@codyswann/lisa",
|
|
197
|
-
"version": "4.
|
|
197
|
+
"version": "4.105.0",
|
|
198
198
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
199
199
|
"main": "dist/index.js",
|
|
200
200
|
"exports": {
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"test": "tests"
|
|
358
358
|
},
|
|
359
359
|
"types": "./dist/index.d.ts",
|
|
360
|
-
"lisaReleaseCommit": "
|
|
361
|
-
"gitHead": "
|
|
362
|
-
"lisaReleaseTag": "v4.
|
|
360
|
+
"lisaReleaseCommit": "b2d6c3bcc4b5d35a6029e52eabf9635023614357",
|
|
361
|
+
"gitHead": "b2d6c3bcc4b5d35a6029e52eabf9635023614357",
|
|
362
|
+
"lisaReleaseTag": "v4.105.0"
|
|
363
363
|
}
|
|
@@ -140,6 +140,25 @@ this order:
|
|
|
140
140
|
- Reuse the `deploy.order` / `deploy.branches` contract from `config-resolution` ("Env order
|
|
141
141
|
(sync-down chain)") rather than re-deriving the rules here.
|
|
142
142
|
|
|
143
|
+
7. **CDK delivery-proof audit** (only when `cdk.json` is present)
|
|
144
|
+
- Judge the effective config: `.lisa.config.local.json` deep-merged over `.lisa.config.json`
|
|
145
|
+
(objects merge per key; arrays and scalars are replaced), as the lifecycle CLI reads it.
|
|
146
|
+
- `WARN` (could not inspect) when either config file cannot be parsed; never pass it.
|
|
147
|
+
- `WARN` when no environment declares an accepted mechanism (`github-actions`,
|
|
148
|
+
`aws-codepipeline`, `artifact` or `external-deployment`): lifecycle completion cannot prove
|
|
149
|
+
delivery and stops at `pending-proof`. Name the setting to add —
|
|
150
|
+
`verification.completion.delivery.<env>` with `mechanism: "aws-codepipeline"`,
|
|
151
|
+
`pipeline_name` and `region` — and the read-only `codepipeline:GetPipelineExecution` grant.
|
|
152
|
+
- `WARN` when `verification.completion.delivery.production` has no accepted mechanism even
|
|
153
|
+
though another environment does: completion always proves delivery for `production`.
|
|
154
|
+
- `WARN` when an `aws-codepipeline` delivery has a missing `pipeline_name` or `region`, or one
|
|
155
|
+
the verifier would reject, naming each path.
|
|
156
|
+
- `WARN` when an `aws-codepipeline` delivery has no `account_id`: credentials for another
|
|
157
|
+
stage's account could read a same-named pipeline there as this environment's delivery.
|
|
158
|
+
`WARN` when `account_id` is not 12 digits.
|
|
159
|
+
- `PASS` otherwise, naming the declared environments.
|
|
160
|
+
- `lisa doctor` reports this as the `CDK delivery proof configured?` check.
|
|
161
|
+
|
|
143
162
|
Locality findings are advisory unless the merged config is unusable. Missing shared keys after the
|
|
144
163
|
merge are `FAIL`; shared keys that exist only locally are `WARN`.
|
|
145
164
|
|
|
@@ -143,6 +143,89 @@ auxiliary green workflow cannot replace it. Artifact or external-deployment
|
|
|
143
143
|
projects declare their applicable mechanism and empirical attached
|
|
144
144
|
`evidence_refs`; npm, browser, cloud and device checks are not universal.
|
|
145
145
|
|
|
146
|
+
### CodePipeline (CDK hosts)
|
|
147
|
+
|
|
148
|
+
A CDK host's GitHub Actions workflow releases but does not deploy; its AWS
|
|
149
|
+
CodePipeline does. Declare the pipeline that delivers each environment:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"verification": {
|
|
154
|
+
"completion": {
|
|
155
|
+
"delivery": {
|
|
156
|
+
"production": {
|
|
157
|
+
"mechanism": "aws-codepipeline",
|
|
158
|
+
"pipeline_name": "<pipeline name>",
|
|
159
|
+
"region": "<aws-region>",
|
|
160
|
+
"account_id": "<12-digit AWS account id>"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The accepted record's `obligations.delivery` pins the one execution that
|
|
169
|
+
delivered the change:
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"required": true,
|
|
174
|
+
"status": "pass",
|
|
175
|
+
"mechanism": "aws-codepipeline",
|
|
176
|
+
"pipeline_name": "<pipeline name>",
|
|
177
|
+
"region": "<aws-region>",
|
|
178
|
+
"account_id": "<the configured account_id, when one is set>",
|
|
179
|
+
"execution_id": "<pipeline execution id>",
|
|
180
|
+
"source_revision": "<the record's source.delivered_sha>"
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Completion reads that one execution read-only, with
|
|
185
|
+
`aws codepipeline get-pipeline-execution --pipeline-name=<name> --pipeline-execution-id=<id> --region=<region> --output json`,
|
|
186
|
+
and decides from it:
|
|
187
|
+
|
|
188
|
+
- **Accepted**: the execution `Succeeded` and one of its `artifactRevisions` is
|
|
189
|
+
the delivered commit. The completion report names the pinned execution.
|
|
190
|
+
- **`pending-proof`**: the execution is still `InProgress`, including one
|
|
191
|
+
waiting at a manual approval. It is never reported as delivered, and the
|
|
192
|
+
message names the waiting execution. The same category is returned when the
|
|
193
|
+
configuration names the mechanism without `pipeline_name` and `region`.
|
|
194
|
+
- **`invalid-proof`**: the execution carried another commit (the message names
|
|
195
|
+
both revisions); it ended `Failed`, `Stopped`, `Superseded` or `Cancelled`,
|
|
196
|
+
or is `Stopping`; the record names another pipeline or region than the
|
|
197
|
+
configuration; or its execution id is missing or malformed.
|
|
198
|
+
- **`read-error`**: the execution could not be read, or the reply carried no
|
|
199
|
+
pipeline execution.
|
|
200
|
+
|
|
201
|
+
To find the execution id, list the pipeline's executions with
|
|
202
|
+
`aws codepipeline list-pipeline-executions --pipeline-name <name> --region <region>`
|
|
203
|
+
and pick the execution whose `sourceRevisions[].revisionId` is the delivered
|
|
204
|
+
commit. That listing needs `codepipeline:ListPipelineExecutions`; completion
|
|
205
|
+
itself needs only the `GetPipelineExecution` read.
|
|
206
|
+
|
|
207
|
+
`account_id` binds the delivery to one AWS account. Stage accounts often run
|
|
208
|
+
pipelines with the same name, so without it, credentials for a dev account can
|
|
209
|
+
read a dev execution as production delivery. When `account_id` is set, the
|
|
210
|
+
record must carry the same value, and completion first runs
|
|
211
|
+
`aws sts get-caller-identity --output=json`: credentials for another account
|
|
212
|
+
are refused (`invalid-proof`, naming both accounts) before any execution is
|
|
213
|
+
read. `sts:GetCallerIdentity` needs no IAM grant; every valid credential may
|
|
214
|
+
call it.
|
|
215
|
+
|
|
216
|
+
The verifier needs no write permission. Its credentials need
|
|
217
|
+
`codepipeline:GetPipelineExecution` on the pipeline, on top of the list grant
|
|
218
|
+
the observer role already carries (Lisa's remote-agent AWS setup). `lisa doctor`
|
|
219
|
+
warns about a CDK project whose `production` delivery is undeclared, and about
|
|
220
|
+
an `aws-codepipeline` delivery without a valid `account_id`.
|
|
221
|
+
|
|
222
|
+
Until a host configures this mechanism, it may declare
|
|
223
|
+
`mechanism: "external-deployment"` instead. Its record must then attach, as
|
|
224
|
+
empirically verified `evidence_refs`, the CodePipeline execution id, that
|
|
225
|
+
execution's source revision and its final status, captured read-only with the
|
|
226
|
+
same `aws codepipeline get-pipeline-execution` call. Lisa cannot check that
|
|
227
|
+
evidence against the pipeline, which is why the native mechanism is preferred.
|
|
228
|
+
|
|
146
229
|
User publishers require fresh native repository write/maintain/admin permission
|
|
147
230
|
and matching stable native asset-uploader identity. Association labels, display
|
|
148
231
|
names and issue edit access are insufficient. `automationPublishers` defaults
|
|
@@ -138,6 +138,25 @@ this order:
|
|
|
138
138
|
- Reuse the `deploy.order` / `deploy.branches` contract from `config-resolution` ("Env order
|
|
139
139
|
(sync-down chain)") rather than re-deriving the rules here.
|
|
140
140
|
|
|
141
|
+
7. **CDK delivery-proof audit** (only when `cdk.json` is present)
|
|
142
|
+
- Judge the effective config: `.lisa.config.local.json` deep-merged over `.lisa.config.json`
|
|
143
|
+
(objects merge per key; arrays and scalars are replaced), as the lifecycle CLI reads it.
|
|
144
|
+
- `WARN` (could not inspect) when either config file cannot be parsed; never pass it.
|
|
145
|
+
- `WARN` when no environment declares an accepted mechanism (`github-actions`,
|
|
146
|
+
`aws-codepipeline`, `artifact` or `external-deployment`): lifecycle completion cannot prove
|
|
147
|
+
delivery and stops at `pending-proof`. Name the setting to add —
|
|
148
|
+
`verification.completion.delivery.<env>` with `mechanism: "aws-codepipeline"`,
|
|
149
|
+
`pipeline_name` and `region` — and the read-only `codepipeline:GetPipelineExecution` grant.
|
|
150
|
+
- `WARN` when `verification.completion.delivery.production` has no accepted mechanism even
|
|
151
|
+
though another environment does: completion always proves delivery for `production`.
|
|
152
|
+
- `WARN` when an `aws-codepipeline` delivery has a missing `pipeline_name` or `region`, or one
|
|
153
|
+
the verifier would reject, naming each path.
|
|
154
|
+
- `WARN` when an `aws-codepipeline` delivery has no `account_id`: credentials for another
|
|
155
|
+
stage's account could read a same-named pipeline there as this environment's delivery.
|
|
156
|
+
`WARN` when `account_id` is not 12 digits.
|
|
157
|
+
- `PASS` otherwise, naming the declared environments.
|
|
158
|
+
- `lisa doctor` reports this as the `CDK delivery proof configured?` check.
|
|
159
|
+
|
|
141
160
|
Locality findings are advisory unless the merged config is unusable. Missing shared keys after the
|
|
142
161
|
merge are `FAIL`; shared keys that exist only locally are `WARN`.
|
|
143
162
|
|
|
@@ -143,6 +143,89 @@ auxiliary green workflow cannot replace it. Artifact or external-deployment
|
|
|
143
143
|
projects declare their applicable mechanism and empirical attached
|
|
144
144
|
`evidence_refs`; npm, browser, cloud and device checks are not universal.
|
|
145
145
|
|
|
146
|
+
### CodePipeline (CDK hosts)
|
|
147
|
+
|
|
148
|
+
A CDK host's GitHub Actions workflow releases but does not deploy; its AWS
|
|
149
|
+
CodePipeline does. Declare the pipeline that delivers each environment:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"verification": {
|
|
154
|
+
"completion": {
|
|
155
|
+
"delivery": {
|
|
156
|
+
"production": {
|
|
157
|
+
"mechanism": "aws-codepipeline",
|
|
158
|
+
"pipeline_name": "<pipeline name>",
|
|
159
|
+
"region": "<aws-region>",
|
|
160
|
+
"account_id": "<12-digit AWS account id>"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The accepted record's `obligations.delivery` pins the one execution that
|
|
169
|
+
delivered the change:
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"required": true,
|
|
174
|
+
"status": "pass",
|
|
175
|
+
"mechanism": "aws-codepipeline",
|
|
176
|
+
"pipeline_name": "<pipeline name>",
|
|
177
|
+
"region": "<aws-region>",
|
|
178
|
+
"account_id": "<the configured account_id, when one is set>",
|
|
179
|
+
"execution_id": "<pipeline execution id>",
|
|
180
|
+
"source_revision": "<the record's source.delivered_sha>"
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Completion reads that one execution read-only, with
|
|
185
|
+
`aws codepipeline get-pipeline-execution --pipeline-name=<name> --pipeline-execution-id=<id> --region=<region> --output json`,
|
|
186
|
+
and decides from it:
|
|
187
|
+
|
|
188
|
+
- **Accepted**: the execution `Succeeded` and one of its `artifactRevisions` is
|
|
189
|
+
the delivered commit. The completion report names the pinned execution.
|
|
190
|
+
- **`pending-proof`**: the execution is still `InProgress`, including one
|
|
191
|
+
waiting at a manual approval. It is never reported as delivered, and the
|
|
192
|
+
message names the waiting execution. The same category is returned when the
|
|
193
|
+
configuration names the mechanism without `pipeline_name` and `region`.
|
|
194
|
+
- **`invalid-proof`**: the execution carried another commit (the message names
|
|
195
|
+
both revisions); it ended `Failed`, `Stopped`, `Superseded` or `Cancelled`,
|
|
196
|
+
or is `Stopping`; the record names another pipeline or region than the
|
|
197
|
+
configuration; or its execution id is missing or malformed.
|
|
198
|
+
- **`read-error`**: the execution could not be read, or the reply carried no
|
|
199
|
+
pipeline execution.
|
|
200
|
+
|
|
201
|
+
To find the execution id, list the pipeline's executions with
|
|
202
|
+
`aws codepipeline list-pipeline-executions --pipeline-name <name> --region <region>`
|
|
203
|
+
and pick the execution whose `sourceRevisions[].revisionId` is the delivered
|
|
204
|
+
commit. That listing needs `codepipeline:ListPipelineExecutions`; completion
|
|
205
|
+
itself needs only the `GetPipelineExecution` read.
|
|
206
|
+
|
|
207
|
+
`account_id` binds the delivery to one AWS account. Stage accounts often run
|
|
208
|
+
pipelines with the same name, so without it, credentials for a dev account can
|
|
209
|
+
read a dev execution as production delivery. When `account_id` is set, the
|
|
210
|
+
record must carry the same value, and completion first runs
|
|
211
|
+
`aws sts get-caller-identity --output=json`: credentials for another account
|
|
212
|
+
are refused (`invalid-proof`, naming both accounts) before any execution is
|
|
213
|
+
read. `sts:GetCallerIdentity` needs no IAM grant; every valid credential may
|
|
214
|
+
call it.
|
|
215
|
+
|
|
216
|
+
The verifier needs no write permission. Its credentials need
|
|
217
|
+
`codepipeline:GetPipelineExecution` on the pipeline, on top of the list grant
|
|
218
|
+
the observer role already carries (Lisa's remote-agent AWS setup). `lisa doctor`
|
|
219
|
+
warns about a CDK project whose `production` delivery is undeclared, and about
|
|
220
|
+
an `aws-codepipeline` delivery without a valid `account_id`.
|
|
221
|
+
|
|
222
|
+
Until a host configures this mechanism, it may declare
|
|
223
|
+
`mechanism: "external-deployment"` instead. Its record must then attach, as
|
|
224
|
+
empirically verified `evidence_refs`, the CodePipeline execution id, that
|
|
225
|
+
execution's source revision and its final status, captured read-only with the
|
|
226
|
+
same `aws codepipeline get-pipeline-execution` call. Lisa cannot check that
|
|
227
|
+
evidence against the pipeline, which is why the native mechanism is preferred.
|
|
228
|
+
|
|
146
229
|
User publishers require fresh native repository write/maintain/admin permission
|
|
147
230
|
and matching stable native asset-uploader identity. Association labels, display
|
|
148
231
|
names and issue edit access are insufficient. `automationPublishers` defaults
|
|
@@ -138,6 +138,25 @@ this order:
|
|
|
138
138
|
- Reuse the `deploy.order` / `deploy.branches` contract from `config-resolution` ("Env order
|
|
139
139
|
(sync-down chain)") rather than re-deriving the rules here.
|
|
140
140
|
|
|
141
|
+
7. **CDK delivery-proof audit** (only when `cdk.json` is present)
|
|
142
|
+
- Judge the effective config: `.lisa.config.local.json` deep-merged over `.lisa.config.json`
|
|
143
|
+
(objects merge per key; arrays and scalars are replaced), as the lifecycle CLI reads it.
|
|
144
|
+
- `WARN` (could not inspect) when either config file cannot be parsed; never pass it.
|
|
145
|
+
- `WARN` when no environment declares an accepted mechanism (`github-actions`,
|
|
146
|
+
`aws-codepipeline`, `artifact` or `external-deployment`): lifecycle completion cannot prove
|
|
147
|
+
delivery and stops at `pending-proof`. Name the setting to add —
|
|
148
|
+
`verification.completion.delivery.<env>` with `mechanism: "aws-codepipeline"`,
|
|
149
|
+
`pipeline_name` and `region` — and the read-only `codepipeline:GetPipelineExecution` grant.
|
|
150
|
+
- `WARN` when `verification.completion.delivery.production` has no accepted mechanism even
|
|
151
|
+
though another environment does: completion always proves delivery for `production`.
|
|
152
|
+
- `WARN` when an `aws-codepipeline` delivery has a missing `pipeline_name` or `region`, or one
|
|
153
|
+
the verifier would reject, naming each path.
|
|
154
|
+
- `WARN` when an `aws-codepipeline` delivery has no `account_id`: credentials for another
|
|
155
|
+
stage's account could read a same-named pipeline there as this environment's delivery.
|
|
156
|
+
`WARN` when `account_id` is not 12 digits.
|
|
157
|
+
- `PASS` otherwise, naming the declared environments.
|
|
158
|
+
- `lisa doctor` reports this as the `CDK delivery proof configured?` check.
|
|
159
|
+
|
|
141
160
|
Locality findings are advisory unless the merged config is unusable. Missing shared keys after the
|
|
142
161
|
merge are `FAIL`; shared keys that exist only locally are `WARN`.
|
|
143
162
|
|
package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -143,6 +143,89 @@ auxiliary green workflow cannot replace it. Artifact or external-deployment
|
|
|
143
143
|
projects declare their applicable mechanism and empirical attached
|
|
144
144
|
`evidence_refs`; npm, browser, cloud and device checks are not universal.
|
|
145
145
|
|
|
146
|
+
### CodePipeline (CDK hosts)
|
|
147
|
+
|
|
148
|
+
A CDK host's GitHub Actions workflow releases but does not deploy; its AWS
|
|
149
|
+
CodePipeline does. Declare the pipeline that delivers each environment:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"verification": {
|
|
154
|
+
"completion": {
|
|
155
|
+
"delivery": {
|
|
156
|
+
"production": {
|
|
157
|
+
"mechanism": "aws-codepipeline",
|
|
158
|
+
"pipeline_name": "<pipeline name>",
|
|
159
|
+
"region": "<aws-region>",
|
|
160
|
+
"account_id": "<12-digit AWS account id>"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The accepted record's `obligations.delivery` pins the one execution that
|
|
169
|
+
delivered the change:
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"required": true,
|
|
174
|
+
"status": "pass",
|
|
175
|
+
"mechanism": "aws-codepipeline",
|
|
176
|
+
"pipeline_name": "<pipeline name>",
|
|
177
|
+
"region": "<aws-region>",
|
|
178
|
+
"account_id": "<the configured account_id, when one is set>",
|
|
179
|
+
"execution_id": "<pipeline execution id>",
|
|
180
|
+
"source_revision": "<the record's source.delivered_sha>"
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Completion reads that one execution read-only, with
|
|
185
|
+
`aws codepipeline get-pipeline-execution --pipeline-name=<name> --pipeline-execution-id=<id> --region=<region> --output json`,
|
|
186
|
+
and decides from it:
|
|
187
|
+
|
|
188
|
+
- **Accepted**: the execution `Succeeded` and one of its `artifactRevisions` is
|
|
189
|
+
the delivered commit. The completion report names the pinned execution.
|
|
190
|
+
- **`pending-proof`**: the execution is still `InProgress`, including one
|
|
191
|
+
waiting at a manual approval. It is never reported as delivered, and the
|
|
192
|
+
message names the waiting execution. The same category is returned when the
|
|
193
|
+
configuration names the mechanism without `pipeline_name` and `region`.
|
|
194
|
+
- **`invalid-proof`**: the execution carried another commit (the message names
|
|
195
|
+
both revisions); it ended `Failed`, `Stopped`, `Superseded` or `Cancelled`,
|
|
196
|
+
or is `Stopping`; the record names another pipeline or region than the
|
|
197
|
+
configuration; or its execution id is missing or malformed.
|
|
198
|
+
- **`read-error`**: the execution could not be read, or the reply carried no
|
|
199
|
+
pipeline execution.
|
|
200
|
+
|
|
201
|
+
To find the execution id, list the pipeline's executions with
|
|
202
|
+
`aws codepipeline list-pipeline-executions --pipeline-name <name> --region <region>`
|
|
203
|
+
and pick the execution whose `sourceRevisions[].revisionId` is the delivered
|
|
204
|
+
commit. That listing needs `codepipeline:ListPipelineExecutions`; completion
|
|
205
|
+
itself needs only the `GetPipelineExecution` read.
|
|
206
|
+
|
|
207
|
+
`account_id` binds the delivery to one AWS account. Stage accounts often run
|
|
208
|
+
pipelines with the same name, so without it, credentials for a dev account can
|
|
209
|
+
read a dev execution as production delivery. When `account_id` is set, the
|
|
210
|
+
record must carry the same value, and completion first runs
|
|
211
|
+
`aws sts get-caller-identity --output=json`: credentials for another account
|
|
212
|
+
are refused (`invalid-proof`, naming both accounts) before any execution is
|
|
213
|
+
read. `sts:GetCallerIdentity` needs no IAM grant; every valid credential may
|
|
214
|
+
call it.
|
|
215
|
+
|
|
216
|
+
The verifier needs no write permission. Its credentials need
|
|
217
|
+
`codepipeline:GetPipelineExecution` on the pipeline, on top of the list grant
|
|
218
|
+
the observer role already carries (Lisa's remote-agent AWS setup). `lisa doctor`
|
|
219
|
+
warns about a CDK project whose `production` delivery is undeclared, and about
|
|
220
|
+
an `aws-codepipeline` delivery without a valid `account_id`.
|
|
221
|
+
|
|
222
|
+
Until a host configures this mechanism, it may declare
|
|
223
|
+
`mechanism: "external-deployment"` instead. Its record must then attach, as
|
|
224
|
+
empirically verified `evidence_refs`, the CodePipeline execution id, that
|
|
225
|
+
execution's source revision and its final status, captured read-only with the
|
|
226
|
+
same `aws codepipeline get-pipeline-execution` call. Lisa cannot check that
|
|
227
|
+
evidence against the pipeline, which is why the native mechanism is preferred.
|
|
228
|
+
|
|
146
229
|
User publishers require fresh native repository write/maintain/admin permission
|
|
147
230
|
and matching stable native asset-uploader identity. Association labels, display
|
|
148
231
|
names and issue edit access are insufficient. `automationPublishers` defaults
|
|
@@ -138,6 +138,25 @@ this order:
|
|
|
138
138
|
- Reuse the `deploy.order` / `deploy.branches` contract from `config-resolution` ("Env order
|
|
139
139
|
(sync-down chain)") rather than re-deriving the rules here.
|
|
140
140
|
|
|
141
|
+
7. **CDK delivery-proof audit** (only when `cdk.json` is present)
|
|
142
|
+
- Judge the effective config: `.lisa.config.local.json` deep-merged over `.lisa.config.json`
|
|
143
|
+
(objects merge per key; arrays and scalars are replaced), as the lifecycle CLI reads it.
|
|
144
|
+
- `WARN` (could not inspect) when either config file cannot be parsed; never pass it.
|
|
145
|
+
- `WARN` when no environment declares an accepted mechanism (`github-actions`,
|
|
146
|
+
`aws-codepipeline`, `artifact` or `external-deployment`): lifecycle completion cannot prove
|
|
147
|
+
delivery and stops at `pending-proof`. Name the setting to add —
|
|
148
|
+
`verification.completion.delivery.<env>` with `mechanism: "aws-codepipeline"`,
|
|
149
|
+
`pipeline_name` and `region` — and the read-only `codepipeline:GetPipelineExecution` grant.
|
|
150
|
+
- `WARN` when `verification.completion.delivery.production` has no accepted mechanism even
|
|
151
|
+
though another environment does: completion always proves delivery for `production`.
|
|
152
|
+
- `WARN` when an `aws-codepipeline` delivery has a missing `pipeline_name` or `region`, or one
|
|
153
|
+
the verifier would reject, naming each path.
|
|
154
|
+
- `WARN` when an `aws-codepipeline` delivery has no `account_id`: credentials for another
|
|
155
|
+
stage's account could read a same-named pipeline there as this environment's delivery.
|
|
156
|
+
`WARN` when `account_id` is not 12 digits.
|
|
157
|
+
- `PASS` otherwise, naming the declared environments.
|
|
158
|
+
- `lisa doctor` reports this as the `CDK delivery proof configured?` check.
|
|
159
|
+
|
|
141
160
|
Locality findings are advisory unless the merged config is unusable. Missing shared keys after the
|
|
142
161
|
merge are `FAIL`; shared keys that exist only locally are `WARN`.
|
|
143
162
|
|
package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -143,6 +143,89 @@ auxiliary green workflow cannot replace it. Artifact or external-deployment
|
|
|
143
143
|
projects declare their applicable mechanism and empirical attached
|
|
144
144
|
`evidence_refs`; npm, browser, cloud and device checks are not universal.
|
|
145
145
|
|
|
146
|
+
### CodePipeline (CDK hosts)
|
|
147
|
+
|
|
148
|
+
A CDK host's GitHub Actions workflow releases but does not deploy; its AWS
|
|
149
|
+
CodePipeline does. Declare the pipeline that delivers each environment:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"verification": {
|
|
154
|
+
"completion": {
|
|
155
|
+
"delivery": {
|
|
156
|
+
"production": {
|
|
157
|
+
"mechanism": "aws-codepipeline",
|
|
158
|
+
"pipeline_name": "<pipeline name>",
|
|
159
|
+
"region": "<aws-region>",
|
|
160
|
+
"account_id": "<12-digit AWS account id>"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The accepted record's `obligations.delivery` pins the one execution that
|
|
169
|
+
delivered the change:
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"required": true,
|
|
174
|
+
"status": "pass",
|
|
175
|
+
"mechanism": "aws-codepipeline",
|
|
176
|
+
"pipeline_name": "<pipeline name>",
|
|
177
|
+
"region": "<aws-region>",
|
|
178
|
+
"account_id": "<the configured account_id, when one is set>",
|
|
179
|
+
"execution_id": "<pipeline execution id>",
|
|
180
|
+
"source_revision": "<the record's source.delivered_sha>"
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Completion reads that one execution read-only, with
|
|
185
|
+
`aws codepipeline get-pipeline-execution --pipeline-name=<name> --pipeline-execution-id=<id> --region=<region> --output json`,
|
|
186
|
+
and decides from it:
|
|
187
|
+
|
|
188
|
+
- **Accepted**: the execution `Succeeded` and one of its `artifactRevisions` is
|
|
189
|
+
the delivered commit. The completion report names the pinned execution.
|
|
190
|
+
- **`pending-proof`**: the execution is still `InProgress`, including one
|
|
191
|
+
waiting at a manual approval. It is never reported as delivered, and the
|
|
192
|
+
message names the waiting execution. The same category is returned when the
|
|
193
|
+
configuration names the mechanism without `pipeline_name` and `region`.
|
|
194
|
+
- **`invalid-proof`**: the execution carried another commit (the message names
|
|
195
|
+
both revisions); it ended `Failed`, `Stopped`, `Superseded` or `Cancelled`,
|
|
196
|
+
or is `Stopping`; the record names another pipeline or region than the
|
|
197
|
+
configuration; or its execution id is missing or malformed.
|
|
198
|
+
- **`read-error`**: the execution could not be read, or the reply carried no
|
|
199
|
+
pipeline execution.
|
|
200
|
+
|
|
201
|
+
To find the execution id, list the pipeline's executions with
|
|
202
|
+
`aws codepipeline list-pipeline-executions --pipeline-name <name> --region <region>`
|
|
203
|
+
and pick the execution whose `sourceRevisions[].revisionId` is the delivered
|
|
204
|
+
commit. That listing needs `codepipeline:ListPipelineExecutions`; completion
|
|
205
|
+
itself needs only the `GetPipelineExecution` read.
|
|
206
|
+
|
|
207
|
+
`account_id` binds the delivery to one AWS account. Stage accounts often run
|
|
208
|
+
pipelines with the same name, so without it, credentials for a dev account can
|
|
209
|
+
read a dev execution as production delivery. When `account_id` is set, the
|
|
210
|
+
record must carry the same value, and completion first runs
|
|
211
|
+
`aws sts get-caller-identity --output=json`: credentials for another account
|
|
212
|
+
are refused (`invalid-proof`, naming both accounts) before any execution is
|
|
213
|
+
read. `sts:GetCallerIdentity` needs no IAM grant; every valid credential may
|
|
214
|
+
call it.
|
|
215
|
+
|
|
216
|
+
The verifier needs no write permission. Its credentials need
|
|
217
|
+
`codepipeline:GetPipelineExecution` on the pipeline, on top of the list grant
|
|
218
|
+
the observer role already carries (Lisa's remote-agent AWS setup). `lisa doctor`
|
|
219
|
+
warns about a CDK project whose `production` delivery is undeclared, and about
|
|
220
|
+
an `aws-codepipeline` delivery without a valid `account_id`.
|
|
221
|
+
|
|
222
|
+
Until a host configures this mechanism, it may declare
|
|
223
|
+
`mechanism: "external-deployment"` instead. Its record must then attach, as
|
|
224
|
+
empirically verified `evidence_refs`, the CodePipeline execution id, that
|
|
225
|
+
execution's source revision and its final status, captured read-only with the
|
|
226
|
+
same `aws codepipeline get-pipeline-execution` call. Lisa cannot check that
|
|
227
|
+
evidence against the pipeline, which is why the native mechanism is preferred.
|
|
228
|
+
|
|
146
229
|
User publishers require fresh native repository write/maintain/admin permission
|
|
147
230
|
and matching stable native asset-uploader identity. Association labels, display
|
|
148
231
|
names and issue edit access are insufficient. `automationPublishers` defaults
|
|
@@ -138,6 +138,25 @@ this order:
|
|
|
138
138
|
- Reuse the `deploy.order` / `deploy.branches` contract from `config-resolution` ("Env order
|
|
139
139
|
(sync-down chain)") rather than re-deriving the rules here.
|
|
140
140
|
|
|
141
|
+
7. **CDK delivery-proof audit** (only when `cdk.json` is present)
|
|
142
|
+
- Judge the effective config: `.lisa.config.local.json` deep-merged over `.lisa.config.json`
|
|
143
|
+
(objects merge per key; arrays and scalars are replaced), as the lifecycle CLI reads it.
|
|
144
|
+
- `WARN` (could not inspect) when either config file cannot be parsed; never pass it.
|
|
145
|
+
- `WARN` when no environment declares an accepted mechanism (`github-actions`,
|
|
146
|
+
`aws-codepipeline`, `artifact` or `external-deployment`): lifecycle completion cannot prove
|
|
147
|
+
delivery and stops at `pending-proof`. Name the setting to add —
|
|
148
|
+
`verification.completion.delivery.<env>` with `mechanism: "aws-codepipeline"`,
|
|
149
|
+
`pipeline_name` and `region` — and the read-only `codepipeline:GetPipelineExecution` grant.
|
|
150
|
+
- `WARN` when `verification.completion.delivery.production` has no accepted mechanism even
|
|
151
|
+
though another environment does: completion always proves delivery for `production`.
|
|
152
|
+
- `WARN` when an `aws-codepipeline` delivery has a missing `pipeline_name` or `region`, or one
|
|
153
|
+
the verifier would reject, naming each path.
|
|
154
|
+
- `WARN` when an `aws-codepipeline` delivery has no `account_id`: credentials for another
|
|
155
|
+
stage's account could read a same-named pipeline there as this environment's delivery.
|
|
156
|
+
`WARN` when `account_id` is not 12 digits.
|
|
157
|
+
- `PASS` otherwise, naming the declared environments.
|
|
158
|
+
- `lisa doctor` reports this as the `CDK delivery proof configured?` check.
|
|
159
|
+
|
|
141
160
|
Locality findings are advisory unless the merged config is unusable. Missing shared keys after the
|
|
142
161
|
merge are `FAIL`; shared keys that exist only locally are `WARN`.
|
|
143
162
|
|