@codyswann/lisa 4.104.1 → 4.106.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 (122) 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 +21 -11
  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-reproduce-bug/SKILL.md +5 -0
  27. package/plugins/lisa/.codex-plugin/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  28. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  29. package/plugins/lisa/skills/lisa-doctor/SKILL.md +19 -0
  30. package/plugins/lisa/skills/lisa-reproduce-bug/SKILL.md +5 -0
  31. package/plugins/lisa/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  32. package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  33. package/plugins/lisa-agy/plugin.json +1 -1
  34. package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +19 -0
  35. package/plugins/lisa-agy/skills/lisa-reproduce-bug/SKILL.md +5 -0
  36. package/plugins/lisa-agy/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  37. package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  38. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  41. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  45. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +19 -0
  47. package/plugins/lisa-copilot/skills/lisa-reproduce-bug/SKILL.md +5 -0
  48. package/plugins/lisa-copilot/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  49. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  50. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +19 -0
  52. package/plugins/lisa-cursor/skills/lisa-reproduce-bug/SKILL.md +5 -0
  53. package/plugins/lisa-cursor/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  54. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  55. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  57. package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +19 -0
  58. package/plugins/lisa-devin/skills/lisa-reproduce-bug/SKILL.md +5 -0
  59. package/plugins/lisa-devin/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  60. package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  61. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  63. package/plugins/lisa-expo-agy/plugin.json +1 -1
  64. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  68. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  70. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  71. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  75. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  77. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  78. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  82. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  84. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  85. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  89. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  91. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  92. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  96. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  98. package/plugins/lisa-rails-agy/plugin.json +1 -1
  99. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  103. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  105. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  106. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  110. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  112. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  113. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  114. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  117. package/plugins/src/base/skills/lisa-doctor/SKILL.md +19 -0
  118. package/plugins/src/base/skills/lisa-reproduce-bug/SKILL.md +5 -0
  119. package/plugins/src/base/skills/lisa-root-cause-analysis/SKILL.md +27 -0
  120. package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +83 -0
  121. package/scripts/two-channel-couplings.json +1 -1
  122. 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.104.1",
197
+ "version": "4.106.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": "34ce68aa3dd6b5915ea36e6ed27c771590ab68ec",
361
- "gitHead": "34ce68aa3dd6b5915ea36e6ed27c771590ab68ec",
362
- "lisaReleaseTag": "v4.104.1"
360
+ "lisaReleaseCommit": "647f89a290cf8d76630f249a99dfa1001b434439",
361
+ "gitHead": "647f89a290cf8d76630f249a99dfa1001b434439",
362
+ "lisaReleaseTag": "v4.106.0"
363
363
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -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
 
@@ -24,6 +24,11 @@ So the reproduction states, explicitly:
24
24
  - **Prerequisites**, listed as setup.
25
25
  - **Replacement scaffolding**, each item with the real behaviour it substitutes.
26
26
  - **Whether the failure survives with prerequisites in place and replacement scaffolding removed.** If it does not, this is a lead rather than a reproduction. Say so and keep going.
27
+ - **That the entry point reaches the code the fix will change.** A reproduction
28
+ that mounts or calls the cited component or function directly, not through
29
+ the entry point, is replacement scaffolding. Show the path (importer trace, a
30
+ temporary `[DEBUG:<issue>]`-tagged `throw`, or route-scoped coverage) before treating the cited code
31
+ as the fix target.
27
32
 
28
33
  If the real path is unreachable — no credentials, no environment, no data — that is a blocked reproduction. Report the missing access instead of substituting scaffolding and calling the bug reproduced.
29
34
 
@@ -13,6 +13,31 @@ Produce a proof, not an explanation. Every link in the chain rests on something
13
13
 
14
14
  The characteristic failure of this work is a fluent wrong answer: a plausible story assembled from reading code and delivered with confidence. Reading is how a hypothesis is formed. Running something is how it is confirmed. **Do not report a cause you have not executed against.**
15
15
 
16
+ ## A cited line is a hypothesis, not a location
17
+
18
+ When the work item names a file, symbol or line as the cause, treat that as
19
+ hypothesis zero. Its kill condition is: **no production entry point reaches it.**
20
+ Check that before editing anything.
21
+
22
+ - Trace importers of the module, including barrel re-exports and default exports,
23
+ up to a route, screen, endpoint or command the user actually hits.
24
+ - A module with no importers can still be an entry point itself: a script or
25
+ command launched directly, a `bin`/`main` in the package manifest, a
26
+ file-based route, or a handler, job or plugin registered through
27
+ configuration. Check that before reading zero importers as dead code.
28
+ Zero production importers kills the hypothesis only when the module is not
29
+ itself an entry point: then the code is dead or superseded, and fixing it
30
+ changes nothing the user sees.
31
+ - When the trace is ambiguous, prove it by execution: a temporary
32
+ `throw new Error("[DEBUG:<issue>] reached")` (or a `[DEBUG:<issue>]` log line)
33
+ in the cited block while driving the real entry point,
34
+ or coverage scoped to that route. If it never fires, the line is not on the path.
35
+ - A test that renders or calls the cited symbol directly does not establish
36
+ reachability. It goes red-to-green on dead code too.
37
+
38
+ Record the result in the evidence trail:
39
+ `Reachability: <entry point> → … → <cited symbol> (static | throw | scoped coverage)`.
40
+
16
41
  ## Surviving a disproof is not proof
17
42
 
18
43
  A candidate that no observation has killed is **still standing**, not confirmed. Elimination narrows the field; it does not establish a cause. Closing requires a **positive confirmation**: an execution whose output is what the cause predicts and would not be what it produces if the cause were something else.
@@ -123,6 +148,8 @@ Stopping is a legitimate outcome and not a silent one. Record the verdict as **u
123
148
  |---|---|---|---|
124
149
  | 1 | file:line | log output, value, exit code | what this establishes |
125
150
 
151
+ Reachability: <entry point> → … → <cited symbol> (static | throw | scoped coverage)
152
+
126
153
  ### Cause — confirmed verdicts only
127
154
  **Proximate:** file:line — the line that directly produces the symptom.
128
155
  **Root:** file:line — why that line behaves that way.
@@ -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
 
@@ -22,6 +22,11 @@ So the reproduction states, explicitly:
22
22
  - **Prerequisites**, listed as setup.
23
23
  - **Replacement scaffolding**, each item with the real behaviour it substitutes.
24
24
  - **Whether the failure survives with prerequisites in place and replacement scaffolding removed.** If it does not, this is a lead rather than a reproduction. Say so and keep going.
25
+ - **That the entry point reaches the code the fix will change.** A reproduction
26
+ that mounts or calls the cited component or function directly, not through
27
+ the entry point, is replacement scaffolding. Show the path (importer trace, a
28
+ temporary `[DEBUG:<issue>]`-tagged `throw`, or route-scoped coverage) before treating the cited code
29
+ as the fix target.
25
30
 
26
31
  If the real path is unreachable — no credentials, no environment, no data — that is a blocked reproduction. Report the missing access instead of substituting scaffolding and calling the bug reproduced.
27
32
 
@@ -11,6 +11,31 @@ Produce a proof, not an explanation. Every link in the chain rests on something
11
11
 
12
12
  The characteristic failure of this work is a fluent wrong answer: a plausible story assembled from reading code and delivered with confidence. Reading is how a hypothesis is formed. Running something is how it is confirmed. **Do not report a cause you have not executed against.**
13
13
 
14
+ ## A cited line is a hypothesis, not a location
15
+
16
+ When the work item names a file, symbol or line as the cause, treat that as
17
+ hypothesis zero. Its kill condition is: **no production entry point reaches it.**
18
+ Check that before editing anything.
19
+
20
+ - Trace importers of the module, including barrel re-exports and default exports,
21
+ up to a route, screen, endpoint or command the user actually hits.
22
+ - A module with no importers can still be an entry point itself: a script or
23
+ command launched directly, a `bin`/`main` in the package manifest, a
24
+ file-based route, or a handler, job or plugin registered through
25
+ configuration. Check that before reading zero importers as dead code.
26
+ Zero production importers kills the hypothesis only when the module is not
27
+ itself an entry point: then the code is dead or superseded, and fixing it
28
+ changes nothing the user sees.
29
+ - When the trace is ambiguous, prove it by execution: a temporary
30
+ `throw new Error("[DEBUG:<issue>] reached")` (or a `[DEBUG:<issue>]` log line)
31
+ in the cited block while driving the real entry point,
32
+ or coverage scoped to that route. If it never fires, the line is not on the path.
33
+ - A test that renders or calls the cited symbol directly does not establish
34
+ reachability. It goes red-to-green on dead code too.
35
+
36
+ Record the result in the evidence trail:
37
+ `Reachability: <entry point> → … → <cited symbol> (static | throw | scoped coverage)`.
38
+
14
39
  ## Surviving a disproof is not proof
15
40
 
16
41
  A candidate that no observation has killed is **still standing**, not confirmed. Elimination narrows the field; it does not establish a cause. Closing requires a **positive confirmation**: an execution whose output is what the cause predicts and would not be what it produces if the cause were something else.
@@ -121,6 +146,8 @@ Stopping is a legitimate outcome and not a silent one. Record the verdict as **u
121
146
  |---|---|---|---|
122
147
  | 1 | file:line | log output, value, exit code | what this establishes |
123
148
 
149
+ Reachability: <entry point> → … → <cited symbol> (static | throw | scoped coverage)
150
+
124
151
  ### Cause — confirmed verdicts only
125
152
  **Proximate:** file:line — the line that directly produces the symptom.
126
153
  **Root:** file:line — why that line behaves that way.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -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
 
@@ -22,6 +22,11 @@ So the reproduction states, explicitly:
22
22
  - **Prerequisites**, listed as setup.
23
23
  - **Replacement scaffolding**, each item with the real behaviour it substitutes.
24
24
  - **Whether the failure survives with prerequisites in place and replacement scaffolding removed.** If it does not, this is a lead rather than a reproduction. Say so and keep going.
25
+ - **That the entry point reaches the code the fix will change.** A reproduction
26
+ that mounts or calls the cited component or function directly, not through
27
+ the entry point, is replacement scaffolding. Show the path (importer trace, a
28
+ temporary `[DEBUG:<issue>]`-tagged `throw`, or route-scoped coverage) before treating the cited code
29
+ as the fix target.
25
30
 
26
31
  If the real path is unreachable — no credentials, no environment, no data — that is a blocked reproduction. Report the missing access instead of substituting scaffolding and calling the bug reproduced.
27
32
 
@@ -11,6 +11,31 @@ Produce a proof, not an explanation. Every link in the chain rests on something
11
11
 
12
12
  The characteristic failure of this work is a fluent wrong answer: a plausible story assembled from reading code and delivered with confidence. Reading is how a hypothesis is formed. Running something is how it is confirmed. **Do not report a cause you have not executed against.**
13
13
 
14
+ ## A cited line is a hypothesis, not a location
15
+
16
+ When the work item names a file, symbol or line as the cause, treat that as
17
+ hypothesis zero. Its kill condition is: **no production entry point reaches it.**
18
+ Check that before editing anything.
19
+
20
+ - Trace importers of the module, including barrel re-exports and default exports,
21
+ up to a route, screen, endpoint or command the user actually hits.
22
+ - A module with no importers can still be an entry point itself: a script or
23
+ command launched directly, a `bin`/`main` in the package manifest, a
24
+ file-based route, or a handler, job or plugin registered through
25
+ configuration. Check that before reading zero importers as dead code.
26
+ Zero production importers kills the hypothesis only when the module is not
27
+ itself an entry point: then the code is dead or superseded, and fixing it
28
+ changes nothing the user sees.
29
+ - When the trace is ambiguous, prove it by execution: a temporary
30
+ `throw new Error("[DEBUG:<issue>] reached")` (or a `[DEBUG:<issue>]` log line)
31
+ in the cited block while driving the real entry point,
32
+ or coverage scoped to that route. If it never fires, the line is not on the path.
33
+ - A test that renders or calls the cited symbol directly does not establish
34
+ reachability. It goes red-to-green on dead code too.
35
+
36
+ Record the result in the evidence trail:
37
+ `Reachability: <entry point> → … → <cited symbol> (static | throw | scoped coverage)`.
38
+
14
39
  ## Surviving a disproof is not proof
15
40
 
16
41
  A candidate that no observation has killed is **still standing**, not confirmed. Elimination narrows the field; it does not establish a cause. Closing requires a **positive confirmation**: an execution whose output is what the cause predicts and would not be what it produces if the cause were something else.
@@ -121,6 +146,8 @@ Stopping is a legitimate outcome and not a silent one. Record the verdict as **u
121
146
  |---|---|---|---|
122
147
  | 1 | file:line | log output, value, exit code | what this establishes |
123
148
 
149
+ Reachability: <entry point> → … → <cited symbol> (static | throw | scoped coverage)
150
+
124
151
  ### Cause — confirmed verdicts only
125
152
  **Proximate:** file:line — the line that directly produces the symptom.
126
153
  **Root:** file:line — why that line behaves that way.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.104.1",
3
+ "version": "4.106.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"