@codyswann/lisa 6.0.8 → 6.0.9

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 (104) hide show
  1. package/all/copy-overwrite/scripts/lisa-audit.mjs +1 -1
  2. package/dist/configs/eslint/expo.d.ts.map +1 -1
  3. package/dist/configs/eslint/expo.js +11 -3
  4. package/dist/configs/eslint/expo.js.map +1 -1
  5. package/dist/configs/eslint/slow-expo.d.ts +15 -6
  6. package/dist/configs/eslint/slow-expo.d.ts.map +1 -1
  7. package/dist/configs/eslint/slow-expo.js +48 -19
  8. package/dist/configs/eslint/slow-expo.js.map +1 -1
  9. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  10. package/dist/core/lisa-owned-hash-ledger.js +4 -0
  11. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  12. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  13. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  14. package/dist/core/upstream-evidence-manifest.js +8 -10
  15. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  16. package/dist/migrations/index.d.ts +0 -1
  17. package/dist/migrations/index.d.ts.map +1 -1
  18. package/dist/migrations/index.js +0 -3
  19. package/dist/migrations/index.js.map +1 -1
  20. package/expo/copy-overwrite/eslint.expo.ts +11 -3
  21. package/expo/package-lisa/package.lisa.json +2 -1
  22. package/package.json +8 -7
  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-security-audit-handling/SKILL.md +25 -25
  26. package/plugins/lisa/rules/reference/security-audit-handling.md +9 -1
  27. package/plugins/lisa/skills/lisa-security-audit-handling/SKILL.md +25 -25
  28. package/plugins/lisa/skills/lisa-security-audit-handling/agents/openai.yaml +2 -2
  29. package/plugins/lisa-agy/plugin.json +1 -1
  30. package/plugins/lisa-agy/skills/lisa-security-audit-handling/SKILL.md +25 -25
  31. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  33. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  34. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  38. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-copilot/rules/reference/security-audit-handling.md +9 -1
  40. package/plugins/lisa-copilot/skills/lisa-security-audit-handling/SKILL.md +25 -25
  41. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-cursor/rules/security-audit-handling-reference.mdc +9 -1
  43. package/plugins/lisa-cursor/skills/lisa-security-audit-handling/SKILL.md +25 -25
  44. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  46. package/plugins/lisa-devin/rules/reference/security-audit-handling.md +9 -1
  47. package/plugins/lisa-devin/skills/lisa-security-audit-handling/SKILL.md +25 -25
  48. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  50. package/plugins/lisa-expo-agy/plugin.json +1 -1
  51. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  55. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  58. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  62. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  65. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  69. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  72. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  76. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-rails-agy/plugin.json +1 -1
  79. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  83. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  85. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  86. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  90. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  92. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  93. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  97. package/plugins/src/base/rules/reference/security-audit-handling.md +9 -1
  98. package/plugins/src/base/skills/lisa-security-audit-handling/SKILL.md +25 -25
  99. package/scripts/lisa-audit.mjs +1 -1
  100. package/typescript/copy-overwrite/audit.ignore.config.json +1 -140
  101. package/dist/migrations/ensure-audit-ignore-local-exclusions.d.ts +0 -51
  102. package/dist/migrations/ensure-audit-ignore-local-exclusions.d.ts.map +0 -1
  103. package/dist/migrations/ensure-audit-ignore-local-exclusions.js +0 -245
  104. package/dist/migrations/ensure-audit-ignore-local-exclusions.js.map +0 -1
@@ -2,7 +2,6 @@ import type { Migration, MigrationContext, MigrationResult } from "./migration.i
2
2
  export type { Migration, MigrationAction, MigrationContext, MigrationResult, } from "./migration.interface.js";
3
3
  export { CorrectLisaCoderabbitLabelingMigration } from "./correct-lisa-coderabbit-labeling.js";
4
4
  export { DelegateLegacyTestScriptsMigration } from "./delegate-legacy-test-scripts.js";
5
- export { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
6
5
  export { EnsureDeployOutcomeGuardMigration } from "./ensure-deploy-outcome-guard.js";
7
6
  export { EnsureJestRnMockAccessibilityManagerMigration } from "./ensure-jest-rn-mock-accessibility-manager.js";
8
7
  export { EnsureLearningsGitattributesMigration } from "./ensure-learnings-gitattributes.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,qCAAqC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,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AAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,oCAAoC,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,EAAE,0CAA0C,EAAE,MAAM,6CAA6C,CAAC;AACzG,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD;;;OAGG;gBACS,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE;IAoC7C;;;OAGG;IACH,MAAM,IAAI,SAAS,SAAS,EAAE;IAI9B;;;;OAIG;IACG,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/D;;;;OAIG;IACG,MAAM,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC;CAazE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAE3D"}
@@ -1,6 +1,5 @@
1
1
  import { CorrectLisaCoderabbitLabelingMigration } from "./correct-lisa-coderabbit-labeling.js";
2
2
  import { DelegateLegacyTestScriptsMigration } from "./delegate-legacy-test-scripts.js";
3
- import { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
4
3
  import { EnsureDeployOutcomeGuardMigration } from "./ensure-deploy-outcome-guard.js";
5
4
  import { EnsureJestRnMockAccessibilityManagerMigration } from "./ensure-jest-rn-mock-accessibility-manager.js";
6
5
  import { EnsureLearningsGitattributesMigration } from "./ensure-learnings-gitattributes.js";
@@ -29,7 +28,6 @@ import { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-p
29
28
  import { UntrackCodexMarketplaceMigration } from "./untrack-codex-marketplace.js";
30
29
  export { CorrectLisaCoderabbitLabelingMigration } from "./correct-lisa-coderabbit-labeling.js";
31
30
  export { DelegateLegacyTestScriptsMigration } from "./delegate-legacy-test-scripts.js";
32
- export { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
33
31
  export { EnsureDeployOutcomeGuardMigration } from "./ensure-deploy-outcome-guard.js";
34
32
  export { EnsureJestRnMockAccessibilityManagerMigration } from "./ensure-jest-rn-mock-accessibility-manager.js";
35
33
  export { EnsureLearningsGitattributesMigration } from "./ensure-learnings-gitattributes.js";
@@ -69,7 +67,6 @@ export class MigrationRegistry {
69
67
  this.migrations = migrations ?? [
70
68
  new EnsureTsconfigLocalIncludesMigration(),
71
69
  new EnsureTsconfigLocalFilesFallbackMigration(),
72
- new EnsureAuditIgnoreLocalExclusionsMigration(),
73
70
  new EnsureDeployOutcomeGuardMigration(),
74
71
  new EnsureJestRnMockAccessibilityManagerMigration(),
75
72
  new EnsureLearningsGitattributesMigration(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;A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E;SAChD,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,mBAAmB,CAAC,GAAqB;QAC7C,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,gBAAgB,EAAE,CAAC;gBAC/B,MAAM,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,GAAqB;QAChC,MAAM,OAAO,GAAsB,EAAE,CAAC;QACtC,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACxC,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC/C,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC1D,SAAS;YACX,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC1C,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,IAAI,iBAAiB,EAAE,CAAC;AACjC,CAAC"}
@@ -19,7 +19,6 @@
19
19
  * @module eslint.expo
20
20
  */
21
21
  import react from "eslint-plugin-react";
22
- import reactCompiler from "eslint-plugin-react-compiler";
23
22
  import { readFileSync } from "fs";
24
23
  import { createRequire } from "module";
25
24
  import path from "path";
@@ -236,7 +235,6 @@ export function getExpoConfig({
236
235
  plugins: {
237
236
  "component-structure": componentStructure,
238
237
  "code-organization": codeOrganization,
239
- "react-compiler": reactCompiler,
240
238
  "ui-standards": uiStandards,
241
239
  },
242
240
  rules: {
@@ -291,10 +289,20 @@ export function getExpoConfig({
291
289
  "react-hooks/preserve-manual-memoization": "error",
292
290
  "react-hooks/refs": "error",
293
291
  "react-hooks/immutability": "error",
292
+ // React Compiler diagnostics, replacing react-compiler/react-compiler
293
+ // (its plugin pins zod 3, unfixed for GHSA-mrhx-c7xc-m3w5).
294
+ "react-hooks/use-memo": "error",
295
+ "react-hooks/globals": "error",
296
+ "react-hooks/error-boundaries": "error",
297
+ "react-hooks/purity": "error",
298
+ "react-hooks/set-state-in-render": "error",
299
+ "react-hooks/config": "error",
300
+ "react-hooks/gating": "error",
294
301
  // Slow rules - disabled by default, run via `lint:slow` script
295
302
  // @see eslint.slow.config.ts
296
- "react-compiler/react-compiler": "off",
297
303
  "react-hooks/static-components": "off",
304
+ // react-hooks/rule-suppression and react-hooks/void-use-memo stay unset
305
+ // here; they run in lint:slow (getExpoSlowConfig).
298
306
  // End Slow rules - disabled by default, run via `lint:slow` script
299
307
  // Environment variables - enforce validated env module usage
300
308
  // @see .claude/skills/expo-env-config/SKILL.md
@@ -203,7 +203,8 @@
203
203
  "devDependencies": [
204
204
  "@stryker-mutator/vitest-runner",
205
205
  "@vitest/coverage-v8",
206
- "vitest"
206
+ "vitest",
207
+ "eslint-plugin-react-compiler"
207
208
  ]
208
209
  },
209
210
  "adopt": {
package/package.json CHANGED
@@ -162,7 +162,8 @@
162
162
  "vite": "$vite",
163
163
  "ws": ">=8.21.0",
164
164
  "zod-validation-error": "^4.0.0",
165
- "qs": "^6.16.0"
165
+ "qs": "^6.16.0",
166
+ "zod": "^4.6.7"
166
167
  },
167
168
  "overrides": {
168
169
  "smol-toml": "1.7.1",
@@ -186,10 +187,11 @@
186
187
  "vite": "$vite",
187
188
  "ws": ">=8.21.0",
188
189
  "zod-validation-error": "^4.0.0",
189
- "qs": "^6.16.0"
190
+ "qs": "^6.16.0",
191
+ "zod": "^4.6.7"
190
192
  },
191
193
  "name": "@codyswann/lisa",
192
- "version": "6.0.8",
194
+ "version": "6.0.9",
193
195
  "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",
194
196
  "main": "dist/index.js",
195
197
  "exports": {
@@ -286,7 +288,6 @@
286
288
  "eslint-plugin-jsx-a11y": "^6.10.0",
287
289
  "eslint-plugin-prettier": "^5.5.0",
288
290
  "eslint-plugin-react": "^7.37.0",
289
- "eslint-plugin-react-compiler": "^19.1.0-rc.2",
290
291
  "eslint-plugin-react-hooks": "^7.0.0",
291
292
  "eslint-plugin-react-perf": "^3.3.0",
292
293
  "eslint-plugin-sonarjs": "4.0.3",
@@ -349,7 +350,7 @@
349
350
  "test": "tests"
350
351
  },
351
352
  "types": "./dist/index.d.ts",
352
- "lisaReleaseCommit": "ec85250a76b079566130c68542fde53bf8e3fe28",
353
- "gitHead": "ec85250a76b079566130c68542fde53bf8e3fe28",
354
- "lisaReleaseTag": "v6.0.8"
353
+ "lisaReleaseCommit": "424a1e77ef8d799c3830e4293f5f64fb1c8c5561",
354
+ "gitHead": "424a1e77ef8d799c3830e4293f5f64fb1c8c5561",
355
+ "lisaReleaseTag": "v6.0.9"
355
356
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
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": "6.0.8",
3
+ "version": "6.0.9",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -2,37 +2,33 @@
2
2
  name: lisa-security-audit-handling
3
3
  description: "What to do when a push or CI is…"
4
4
  ---
5
- What to do when a push or CI is blocked by the dependency security audit: upgrade, override the vulnerable package, assess real impact, then record a scoped exclusion or accept the risk with a reason and expiry. Never bypasses the hook.
5
+ What to do when a push or CI is blocked by the dependency security audit, in order: refresh the lockfile, upgrade the direct dependency, add a targeted override, exclude an advisory that cannot reach the project with a stated reason, then replace or remove the dependency. Never bypasses the hook.
6
6
 
7
7
 
8
8
  # Security Audit Handling
9
9
 
10
- Use this when `git push` (or a CI audit gate) fails because the dependency audit reports high or critical advisories. Work the decision ladder below **autonomously**. No rung stops for a human unless the project sets `humanGate.mode: "strict"`. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
10
+ Use this when `git push` (or a CI audit gate) fails because the dependency audit reports high or critical advisories. Work the ladder below **autonomously**. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
11
11
 
12
- ## The decision ladder
12
+ ## The fix ladder
13
13
 
14
- The remediation for any high/critical advisory is a simple, ordered decision — not a question to forward to the user. For each advisory, take the **first** action that is possible:
14
+ The remedy for a high/critical advisory is an ordered decision, not a question to forward to the user. For each advisory, work the steps **in this order** and stop at the first one that resolves it. The audit's failure message prints the same order.
15
15
 
16
- 1. **Update the offending package** to a patched version.
17
- 2. **If that's not possible**, force a resolution/override on the vulnerable leaf package.
18
- 3. **If that's not possible**, evaluate whether the advisory actually affects the project.
19
- 4. **If it affects the project** (and 1 and 2 weren't possible), decide yourself: mitigate it, or accept the risk with your reasoning and an expiry recorded. Under `humanGate.mode: "strict"`, stop for a human instead: post on the work item which advisory affects the project, how it is reached, and why no fix exists, and mark the item needs-human (in an interactive session, ask the operator).
20
- 5. **If it doesn't affect the project**, add it to the ignore list yourself.
16
+ 1. **Refresh the lockfile within the current range.** Most transitive fixes are published inside the range the parent already accepts; a stale lockfile is the usual cause.
17
+ 2. **Upgrade the direct dependency** that pulls the vulnerable copy to a release that depends on a patched one.
18
+ 3. **Add a targeted override** that pins the vulnerable **leaf** package to the fixed version.
19
+ 4. **Evaluate reachability, and exclude with a stated reason if unaffected** — before considering any code change. If the advisory cannot affect this project, add a scoped exclusion with a concrete reason to `audit.ignore.local.json`. No human is needed. Typical unreachable cases: the package is used only by dev or build tooling, or the vulnerable input is never untrusted (for example, globs or patterns written in the repository itself). The evaluation is this project's own: Lisa's template exclusions cannot vouch for a host's reachability, so a host the audit flags records its own entry in `audit.ignore.local.json`. **If reachability cannot be proven, treat the advisory as affecting the project** and continue at step 5.
20
+ 5. **Replace or remove the dependency** when it affects the project and no fixed version exists: a maintained alternative, a newer major of the parent that no longer pulls the package, or dropping it.
21
21
 
22
- Every step is autonomous by default. Take step 4 only after you have genuinely attempted steps 1 and 2 and performed the step-3 evaluation; under `strict`, it is the one step that stops for a human.
22
+ If none of these works in this change, **file a build-ready ticket** in the configured tracker (through `lisa-tracker-write` with `build_ready: true`) carrying the evidence: the advisory, the dependency path that reaches the vulnerable copy, and what was tried at each of the five steps and why it failed. The factory then carries the replacement or removal as work. Stop only when the next act needs access you do not have, and then say exactly what is missing.
23
23
 
24
24
  ## Node.js Projects (GHSA advisories)
25
25
 
26
- 1. Note the GHSA ID(s), affected package(s), and advisory URL from the error output.
27
- 2. Check the advisory URL to determine whether a patched version of the vulnerable package exists.
28
- 3. **Step 1 — update:** If a patched version exists and is compatible, add a resolution/override in `package.json` to force the patched version (add to **both** `resolutions` and `overrides`), run the package manager install to regenerate the lockfile, commit, and retry the push.
29
- 4. **Step 2 — force override:** If no straight upgrade lands the patched version but a compatible patched version exists somewhere on the graph, pin it via `resolutions` + `overrides` on the **leaf** package (see "Override the vulnerable package, not its parent" below), regenerate the lockfile, commit, and retry.
30
- 5. **Step 3 — evaluate impact:** If neither an upgrade nor an override is possible (no fixed version exists, or every compatible pin breaks a dependent), determine whether the vulnerability actually affects this project. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? Record the conclusion.
31
- 6. **Step 4 — decide:** If the evaluation shows the vulnerability **does** affect the project and neither step 1 nor step 2 was possible, make the call yourself and record it on the work item so a person can reverse it:
32
- - **Mitigate** if you can: replace or remove the vulnerable package, or guard the reachable code path so untrusted input cannot reach it, then retry.
33
- - **Otherwise accept the risk**: add an exclusion entry (as in step 5) whose `reason` records the impact, why no fix or mitigation is possible now, and an expiry date, and file a build-ready follow-up work item to remove the exclusion when a fix ships.
34
- - Under `humanGate.mode: "strict"`, stop for a human as described in rung 4 instead. That is the only step that pauses for a human in strict mode.
35
- 7. **Step 5 — ignore:** If the evaluation shows the vulnerability **does not** affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation.
26
+ 1. Note the GHSA ID(s), affected package(s), vulnerable lockfile path(s), and advisory URL from the error output.
27
+ 2. Check the advisory for the patched version in each affected major (`gh api /advisories/<GHSA-id>`). Also check whether it was withdrawn.
28
+ 3. **Step 1 — refresh:** if the patched version satisfies the range the parent declares, update the lockfile for that package (`bun update <pkg>`, `npm update <pkg>`, or `yarn upgrade <pkg>`), confirm with `bun why <pkg>` / `npm ls <pkg>` that every copy is patched, commit, and retry.
29
+ 4. **Step 2 — upgrade:** otherwise upgrade the direct dependency whose chain pulls the copy to a release that accepts the patched version, regenerate the lockfile, run the project's tests, commit, and retry.
30
+ 5. **Step 3 — override:** otherwise pin the **leaf** package in both `overrides` and `resolutions` in `package.json` (see below), regenerate the lockfile, run the tests, commit, and retry. In a Lisa host, if the fix should reach every project on the stack, propose it upstream in Lisa's `package.lisa.json`.
31
+ 6. **Step 4 — evaluate reachability:** if no refresh, upgrade or override lands a patched copy (no fixed version exists, or every compatible pin breaks a dependent), decide whether the vulnerability can affect this project **before changing any code**. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? If it cannot affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation. If you cannot show it is unreachable, it affects the project: go on to step 5.
36
32
  - **Scope the exclusion to the copy you evaluated.** An entry with only `id` (and `package`) hides the advisory for every copy of the package, including one a production dependency pulls in later. Two optional fields narrow it, and every field present must hold together:
37
33
  - `versions` — a semver range the excused installed copies must fall inside, such as `">=3.0.0 <4.0.0"`.
38
34
  - `paths` — a non-empty array of exact lockfile key paths for the excused copies: a `bun.lock` `packages` key such as `"lint-plugin/pkg"`, a `package-lock.json` `packages` key such as `"node_modules/lint-plugin/node_modules/pkg"`, or a `yarn.lock` selector key. No globs. Bun keys and nested npm keys isolate one parent. A `yarn.lock` selector names a requested range, not a parent, and a hoisted npm key (`"node_modules/pkg"`) names an install location; any later dependent that asks for that range or resolves to that hoisted copy is covered too, so pair those keys with a tight `versions` range.
@@ -42,6 +38,9 @@ Every step is autonomous by default. Take step 4 only after you have genuinely a
42
38
  {"id": "GHSA-xxx", "package": "pkg", "versions": ">=3.0.0 <4.0.0", "paths": ["lint-plugin/pkg"], "reason": "<impact evaluation>"}
43
39
  ```
44
40
  Then any other vulnerable copy — on an unlisted path or through an npm alias — still fails the audit and is named by its lockfile path. An empty `paths` array, an invalid range, or an unreadable lockfile fails the audit with a diagnostic; it never widens into an ID-wide exclusion. The pre-push hook, the gate registry, and CI use the same matcher. `lisa doctor` checks the scope fields and that the lockfile is readable, and reports any remaining exclusion without `versions` or `paths`, but it does not match advisories against lockfile copies — a valid-looking path that names the wrong copy can pass doctor and still be rejected by the audit. Doctor also does not reject an entry with no `id` or an exclusion file that does not parse; the audit does. Only the audit proves the exclusion files are accepted. In CI, the reusable workflow audits the manager its `package_manager` input names (default `npm`), so set that input to the project's manager. A scoped entry always wins over a wider entry for the same advisory and package. Full contract: https://github.com/CodySwannGT/lisa/blob/main/docs/dependency-audit-exclusions.md
41
+ 7. **Step 5 — replace or remove:** if the advisory affects the project, replace the dependency with a maintained alternative or remove it, prove behavior with the tests, commit, and retry.
42
+ 8. If none of these works in this change, file the build-ready ticket described above.
43
+
45
44
 
46
45
  ### Critical: Override the vulnerable package, not its parent
47
46
 
@@ -49,18 +48,19 @@ When the audit output shows a dependency chain like `@expo/cli › glob › mini
49
48
 
50
49
  **Never override a parent package to force a lower major version** — other packages in the project may depend on a newer major version, and a resolution/override forces ALL installations to the specified version. For example, overriding `glob` to `^8.1.0` will break `@expo/cli` which requires `glob@^13.0.0`, causing `expo prebuild` to fail with `files.map is not a function`.
51
50
 
52
- Before adding a resolution/override (step 2), verify:
51
+ Before adding a resolution/override (step 3), verify:
53
52
  - You are targeting the **actually vulnerable package**, not a parent in the chain.
54
53
  - The override version is **compatible with all dependents** (check with `bun why <package>` or `npm ls <package>`).
55
54
  - The override does not **downgrade** a package across a major version boundary that other dependencies require.
56
55
 
57
- If any of these checks fail, the override is "not possible" for the purposes of the ladder — drop to step 3 (evaluate impact).
56
+ If any of these checks fail, the override is "not possible" for the purposes of the ladder — go to step 4 (evaluate reachability).
58
57
 
59
58
  ### Never
60
59
 
61
60
  - Never add a blanket audit bypass or lower the configured audit level.
62
- - Never jump to step 4 (decide or, under `strict`, stop for a human) before genuinely attempting steps 1–3.
63
- - Never add a step-5 ignore entry without an impact evaluation recorded in its `reason`.
61
+ - Never add an exclusion without an impact evaluation recorded in its `reason`, and never for an advisory you cannot show is unreachable.
62
+ - Never file the ticket before genuinely attempting all five steps.
63
+ - Never wait on a human the work does not need; stop only for missing access, and name it.
64
64
 
65
65
  ## Rails Projects (bundler-audit)
66
66
 
@@ -71,4 +71,4 @@ Same ladder, bundler mechanics:
71
71
  3. **Step 1 — update:** If a patched version exists:
72
72
  - **Direct dependency** (in Gemfile): update its version constraint, run `bundle update <gem>`, commit, retry.
73
73
  - **Transitive dependency** (only in Gemfile.lock): run `bundle update <gem>` to pull the patched version without changing the Gemfile, commit the lockfile change, retry.
74
- 4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, decide it yourself (step 4; stop for a human under `strict`). If it **does not**, document the exception and retry (step 5).
74
+ 4. **No patch:** If no patched version exists, evaluate whether the advisory can affect the project. If it **cannot**, document the exception with the reason and retry. If it **does**, or you cannot show it does not, upgrade or replace the gem that pulls it, or remove it. If none of that works, file a build-ready ticket with the evidence, as above.
@@ -1,3 +1,11 @@
1
1
  # Security Audit Handling
2
2
 
3
- The procedure for a push or CI run blocked by the dependency security audit lives in the `lisa-security-audit-handling` skill: upgrade the package, override the vulnerable leaf, evaluate real impact, then either record a scoped exclusion, or mitigate or accept the risk yourself with the reasoning and an expiry recorded (under `humanGate.mode: "strict"`, stop for a human instead). The audit's failure message names that skill, so it loads when it is needed instead of in every session. Never bypass the hook.
3
+ The procedure for a push or CI run blocked by the dependency security audit lives in the `lisa-security-audit-handling` skill. Its steps run in this order:
4
+
5
+ 1. Refresh the lockfile within the current range.
6
+ 2. Upgrade the direct dependency that pulls the vulnerable copy.
7
+ 3. Add a targeted override to the fixed version.
8
+ 4. Evaluate reachability before any code change. An advisory that cannot affect the project gets a scoped exclusion with a concrete reason in the project's own `audit.ignore.local.json`, with no human needed; Lisa's template cannot vouch for a host's reachability. If reachability cannot be proven, the advisory affects the project.
9
+ 5. Replace or remove the dependency.
10
+
11
+ When none of those works, file a build-ready ticket with the evidence (advisory, dependency path, what each step tried) so the factory carries the replacement or removal; stop only when the next act needs access you lack, and say exactly what is missing. The audit's failure message prints the same order and names the skill, so it loads when it is needed instead of in every session. Never bypass the hook.
@@ -1,36 +1,32 @@
1
1
  ---
2
2
  name: lisa-security-audit-handling
3
- description: "What to do when a push or CI is blocked by the dependency security audit: upgrade, override the vulnerable package, assess real impact, then record a scoped exclusion or accept the risk with a reason and expiry. Never bypasses the hook."
3
+ description: "What to do when a push or CI is blocked by the dependency security audit, in order: refresh the lockfile, upgrade the direct dependency, add a targeted override, exclude an advisory that cannot reach the project with a stated reason, then replace or remove the dependency. Never bypasses the hook."
4
4
  ---
5
5
 
6
6
  # Security Audit Handling
7
7
 
8
- Use this when `git push` (or a CI audit gate) fails because the dependency audit reports high or critical advisories. Work the decision ladder below **autonomously**. No rung stops for a human unless the project sets `humanGate.mode: "strict"`. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
8
+ Use this when `git push` (or a CI audit gate) fails because the dependency audit reports high or critical advisories. Work the ladder below **autonomously**. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
9
9
 
10
- ## The decision ladder
10
+ ## The fix ladder
11
11
 
12
- The remediation for any high/critical advisory is a simple, ordered decision — not a question to forward to the user. For each advisory, take the **first** action that is possible:
12
+ The remedy for a high/critical advisory is an ordered decision, not a question to forward to the user. For each advisory, work the steps **in this order** and stop at the first one that resolves it. The audit's failure message prints the same order.
13
13
 
14
- 1. **Update the offending package** to a patched version.
15
- 2. **If that's not possible**, force a resolution/override on the vulnerable leaf package.
16
- 3. **If that's not possible**, evaluate whether the advisory actually affects the project.
17
- 4. **If it affects the project** (and 1 and 2 weren't possible), decide yourself: mitigate it, or accept the risk with your reasoning and an expiry recorded. Under `humanGate.mode: "strict"`, stop for a human instead: post on the work item which advisory affects the project, how it is reached, and why no fix exists, and mark the item needs-human (in an interactive session, ask the operator).
18
- 5. **If it doesn't affect the project**, add it to the ignore list yourself.
14
+ 1. **Refresh the lockfile within the current range.** Most transitive fixes are published inside the range the parent already accepts; a stale lockfile is the usual cause.
15
+ 2. **Upgrade the direct dependency** that pulls the vulnerable copy to a release that depends on a patched one.
16
+ 3. **Add a targeted override** that pins the vulnerable **leaf** package to the fixed version.
17
+ 4. **Evaluate reachability, and exclude with a stated reason if unaffected** — before considering any code change. If the advisory cannot affect this project, add a scoped exclusion with a concrete reason to `audit.ignore.local.json`. No human is needed. Typical unreachable cases: the package is used only by dev or build tooling, or the vulnerable input is never untrusted (for example, globs or patterns written in the repository itself). The evaluation is this project's own: Lisa's template exclusions cannot vouch for a host's reachability, so a host the audit flags records its own entry in `audit.ignore.local.json`. **If reachability cannot be proven, treat the advisory as affecting the project** and continue at step 5.
18
+ 5. **Replace or remove the dependency** when it affects the project and no fixed version exists: a maintained alternative, a newer major of the parent that no longer pulls the package, or dropping it.
19
19
 
20
- Every step is autonomous by default. Take step 4 only after you have genuinely attempted steps 1 and 2 and performed the step-3 evaluation; under `strict`, it is the one step that stops for a human.
20
+ If none of these works in this change, **file a build-ready ticket** in the configured tracker (through `lisa-tracker-write` with `build_ready: true`) carrying the evidence: the advisory, the dependency path that reaches the vulnerable copy, and what was tried at each of the five steps and why it failed. The factory then carries the replacement or removal as work. Stop only when the next act needs access you do not have, and then say exactly what is missing.
21
21
 
22
22
  ## Node.js Projects (GHSA advisories)
23
23
 
24
- 1. Note the GHSA ID(s), affected package(s), and advisory URL from the error output.
25
- 2. Check the advisory URL to determine whether a patched version of the vulnerable package exists.
26
- 3. **Step 1 — update:** If a patched version exists and is compatible, add a resolution/override in `package.json` to force the patched version (add to **both** `resolutions` and `overrides`), run the package manager install to regenerate the lockfile, commit, and retry the push.
27
- 4. **Step 2 — force override:** If no straight upgrade lands the patched version but a compatible patched version exists somewhere on the graph, pin it via `resolutions` + `overrides` on the **leaf** package (see "Override the vulnerable package, not its parent" below), regenerate the lockfile, commit, and retry.
28
- 5. **Step 3 — evaluate impact:** If neither an upgrade nor an override is possible (no fixed version exists, or every compatible pin breaks a dependent), determine whether the vulnerability actually affects this project. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? Record the conclusion.
29
- 6. **Step 4 — decide:** If the evaluation shows the vulnerability **does** affect the project and neither step 1 nor step 2 was possible, make the call yourself and record it on the work item so a person can reverse it:
30
- - **Mitigate** if you can: replace or remove the vulnerable package, or guard the reachable code path so untrusted input cannot reach it, then retry.
31
- - **Otherwise accept the risk**: add an exclusion entry (as in step 5) whose `reason` records the impact, why no fix or mitigation is possible now, and an expiry date, and file a build-ready follow-up work item to remove the exclusion when a fix ships.
32
- - Under `humanGate.mode: "strict"`, stop for a human as described in rung 4 instead. That is the only step that pauses for a human in strict mode.
33
- 7. **Step 5 — ignore:** If the evaluation shows the vulnerability **does not** affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation.
24
+ 1. Note the GHSA ID(s), affected package(s), vulnerable lockfile path(s), and advisory URL from the error output.
25
+ 2. Check the advisory for the patched version in each affected major (`gh api /advisories/<GHSA-id>`). Also check whether it was withdrawn.
26
+ 3. **Step 1 — refresh:** if the patched version satisfies the range the parent declares, update the lockfile for that package (`bun update <pkg>`, `npm update <pkg>`, or `yarn upgrade <pkg>`), confirm with `bun why <pkg>` / `npm ls <pkg>` that every copy is patched, commit, and retry.
27
+ 4. **Step 2 — upgrade:** otherwise upgrade the direct dependency whose chain pulls the copy to a release that accepts the patched version, regenerate the lockfile, run the project's tests, commit, and retry.
28
+ 5. **Step 3 — override:** otherwise pin the **leaf** package in both `overrides` and `resolutions` in `package.json` (see below), regenerate the lockfile, run the tests, commit, and retry. In a Lisa host, if the fix should reach every project on the stack, propose it upstream in Lisa's `package.lisa.json`.
29
+ 6. **Step 4 — evaluate reachability:** if no refresh, upgrade or override lands a patched copy (no fixed version exists, or every compatible pin breaks a dependent), decide whether the vulnerability can affect this project **before changing any code**. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? If it cannot affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation. If you cannot show it is unreachable, it affects the project: go on to step 5.
34
30
  - **Scope the exclusion to the copy you evaluated.** An entry with only `id` (and `package`) hides the advisory for every copy of the package, including one a production dependency pulls in later. Two optional fields narrow it, and every field present must hold together:
35
31
  - `versions` — a semver range the excused installed copies must fall inside, such as `">=3.0.0 <4.0.0"`.
36
32
  - `paths` — a non-empty array of exact lockfile key paths for the excused copies: a `bun.lock` `packages` key such as `"lint-plugin/pkg"`, a `package-lock.json` `packages` key such as `"node_modules/lint-plugin/node_modules/pkg"`, or a `yarn.lock` selector key. No globs. Bun keys and nested npm keys isolate one parent. A `yarn.lock` selector names a requested range, not a parent, and a hoisted npm key (`"node_modules/pkg"`) names an install location; any later dependent that asks for that range or resolves to that hoisted copy is covered too, so pair those keys with a tight `versions` range.
@@ -40,6 +36,9 @@ Every step is autonomous by default. Take step 4 only after you have genuinely a
40
36
  {"id": "GHSA-xxx", "package": "pkg", "versions": ">=3.0.0 <4.0.0", "paths": ["lint-plugin/pkg"], "reason": "<impact evaluation>"}
41
37
  ```
42
38
  Then any other vulnerable copy — on an unlisted path or through an npm alias — still fails the audit and is named by its lockfile path. An empty `paths` array, an invalid range, or an unreadable lockfile fails the audit with a diagnostic; it never widens into an ID-wide exclusion. The pre-push hook, the gate registry, and CI use the same matcher. `lisa doctor` checks the scope fields and that the lockfile is readable, and reports any remaining exclusion without `versions` or `paths`, but it does not match advisories against lockfile copies — a valid-looking path that names the wrong copy can pass doctor and still be rejected by the audit. Doctor also does not reject an entry with no `id` or an exclusion file that does not parse; the audit does. Only the audit proves the exclusion files are accepted. In CI, the reusable workflow audits the manager its `package_manager` input names (default `npm`), so set that input to the project's manager. A scoped entry always wins over a wider entry for the same advisory and package. Full contract: https://github.com/CodySwannGT/lisa/blob/main/docs/dependency-audit-exclusions.md
39
+ 7. **Step 5 — replace or remove:** if the advisory affects the project, replace the dependency with a maintained alternative or remove it, prove behavior with the tests, commit, and retry.
40
+ 8. If none of these works in this change, file the build-ready ticket described above.
41
+
43
42
 
44
43
  ### Critical: Override the vulnerable package, not its parent
45
44
 
@@ -47,18 +46,19 @@ When the audit output shows a dependency chain like `@expo/cli › glob › mini
47
46
 
48
47
  **Never override a parent package to force a lower major version** — other packages in the project may depend on a newer major version, and a resolution/override forces ALL installations to the specified version. For example, overriding `glob` to `^8.1.0` will break `@expo/cli` which requires `glob@^13.0.0`, causing `expo prebuild` to fail with `files.map is not a function`.
49
48
 
50
- Before adding a resolution/override (step 2), verify:
49
+ Before adding a resolution/override (step 3), verify:
51
50
  - You are targeting the **actually vulnerable package**, not a parent in the chain.
52
51
  - The override version is **compatible with all dependents** (check with `bun why <package>` or `npm ls <package>`).
53
52
  - The override does not **downgrade** a package across a major version boundary that other dependencies require.
54
53
 
55
- If any of these checks fail, the override is "not possible" for the purposes of the ladder — drop to step 3 (evaluate impact).
54
+ If any of these checks fail, the override is "not possible" for the purposes of the ladder — go to step 4 (evaluate reachability).
56
55
 
57
56
  ### Never
58
57
 
59
58
  - Never add a blanket audit bypass or lower the configured audit level.
60
- - Never jump to step 4 (decide or, under `strict`, stop for a human) before genuinely attempting steps 1–3.
61
- - Never add a step-5 ignore entry without an impact evaluation recorded in its `reason`.
59
+ - Never add an exclusion without an impact evaluation recorded in its `reason`, and never for an advisory you cannot show is unreachable.
60
+ - Never file the ticket before genuinely attempting all five steps.
61
+ - Never wait on a human the work does not need; stop only for missing access, and name it.
62
62
 
63
63
  ## Rails Projects (bundler-audit)
64
64
 
@@ -69,4 +69,4 @@ Same ladder, bundler mechanics:
69
69
  3. **Step 1 — update:** If a patched version exists:
70
70
  - **Direct dependency** (in Gemfile): update its version constraint, run `bundle update <gem>`, commit, retry.
71
71
  - **Transitive dependency** (only in Gemfile.lock): run `bundle update <gem>` to pull the patched version without changing the Gemfile, commit the lockfile change, retry.
72
- 4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, decide it yourself (step 4; stop for a human under `strict`). If it **does not**, document the exception and retry (step 5).
72
+ 4. **No patch:** If no patched version exists, evaluate whether the advisory can affect the project. If it **cannot**, document the exception with the reason and retry. If it **does**, or you cannot show it does not, upgrade or replace the gem that pulls it, or remove it. If none of that works, file a build-ready ticket with the evidence, as above.
@@ -1,4 +1,4 @@
1
1
  display_name: "Security Audit Handling"
2
- short_description: "What to do when a push or CI is blocked by the dependency security audit: upgrade, override the vulnerable package, assess real impact…"
2
+ short_description: "What to do when a push or CI is blocked by the dependency security audit, in order: refresh the lockfile, upgrade the direct dependency…"
3
3
  default_prompt:
4
- - "Use $lisa-security-audit-handling: What to do when a push or CI is blocked by the dependency security audit: upgrade, override the vulnerable package, assess real impact…."
4
+ - "Use $lisa-security-audit-handling: What to do when a push or CI is blocked by the dependency security audit, in order: refresh the lockfile, upgrade the direct dependency…."
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,36 +1,32 @@
1
1
  ---
2
2
  name: lisa-security-audit-handling
3
- description: "What to do when a push or CI is blocked by the dependency security audit: upgrade, override the vulnerable package, assess real impact, then record a scoped exclusion or accept the risk with a reason and expiry. Never bypasses the hook."
3
+ description: "What to do when a push or CI is blocked by the dependency security audit, in order: refresh the lockfile, upgrade the direct dependency, add a targeted override, exclude an advisory that cannot reach the project with a stated reason, then replace or remove the dependency. Never bypasses the hook."
4
4
  ---
5
5
 
6
6
  # Security Audit Handling
7
7
 
8
- Use this when `git push` (or a CI audit gate) fails because the dependency audit reports high or critical advisories. Work the decision ladder below **autonomously**. No rung stops for a human unless the project sets `humanGate.mode: "strict"`. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
8
+ Use this when `git push` (or a CI audit gate) fails because the dependency audit reports high or critical advisories. Work the ladder below **autonomously**. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
9
9
 
10
- ## The decision ladder
10
+ ## The fix ladder
11
11
 
12
- The remediation for any high/critical advisory is a simple, ordered decision — not a question to forward to the user. For each advisory, take the **first** action that is possible:
12
+ The remedy for a high/critical advisory is an ordered decision, not a question to forward to the user. For each advisory, work the steps **in this order** and stop at the first one that resolves it. The audit's failure message prints the same order.
13
13
 
14
- 1. **Update the offending package** to a patched version.
15
- 2. **If that's not possible**, force a resolution/override on the vulnerable leaf package.
16
- 3. **If that's not possible**, evaluate whether the advisory actually affects the project.
17
- 4. **If it affects the project** (and 1 and 2 weren't possible), decide yourself: mitigate it, or accept the risk with your reasoning and an expiry recorded. Under `humanGate.mode: "strict"`, stop for a human instead: post on the work item which advisory affects the project, how it is reached, and why no fix exists, and mark the item needs-human (in an interactive session, ask the operator).
18
- 5. **If it doesn't affect the project**, add it to the ignore list yourself.
14
+ 1. **Refresh the lockfile within the current range.** Most transitive fixes are published inside the range the parent already accepts; a stale lockfile is the usual cause.
15
+ 2. **Upgrade the direct dependency** that pulls the vulnerable copy to a release that depends on a patched one.
16
+ 3. **Add a targeted override** that pins the vulnerable **leaf** package to the fixed version.
17
+ 4. **Evaluate reachability, and exclude with a stated reason if unaffected** — before considering any code change. If the advisory cannot affect this project, add a scoped exclusion with a concrete reason to `audit.ignore.local.json`. No human is needed. Typical unreachable cases: the package is used only by dev or build tooling, or the vulnerable input is never untrusted (for example, globs or patterns written in the repository itself). The evaluation is this project's own: Lisa's template exclusions cannot vouch for a host's reachability, so a host the audit flags records its own entry in `audit.ignore.local.json`. **If reachability cannot be proven, treat the advisory as affecting the project** and continue at step 5.
18
+ 5. **Replace or remove the dependency** when it affects the project and no fixed version exists: a maintained alternative, a newer major of the parent that no longer pulls the package, or dropping it.
19
19
 
20
- Every step is autonomous by default. Take step 4 only after you have genuinely attempted steps 1 and 2 and performed the step-3 evaluation; under `strict`, it is the one step that stops for a human.
20
+ If none of these works in this change, **file a build-ready ticket** in the configured tracker (through `lisa-tracker-write` with `build_ready: true`) carrying the evidence: the advisory, the dependency path that reaches the vulnerable copy, and what was tried at each of the five steps and why it failed. The factory then carries the replacement or removal as work. Stop only when the next act needs access you do not have, and then say exactly what is missing.
21
21
 
22
22
  ## Node.js Projects (GHSA advisories)
23
23
 
24
- 1. Note the GHSA ID(s), affected package(s), and advisory URL from the error output.
25
- 2. Check the advisory URL to determine whether a patched version of the vulnerable package exists.
26
- 3. **Step 1 — update:** If a patched version exists and is compatible, add a resolution/override in `package.json` to force the patched version (add to **both** `resolutions` and `overrides`), run the package manager install to regenerate the lockfile, commit, and retry the push.
27
- 4. **Step 2 — force override:** If no straight upgrade lands the patched version but a compatible patched version exists somewhere on the graph, pin it via `resolutions` + `overrides` on the **leaf** package (see "Override the vulnerable package, not its parent" below), regenerate the lockfile, commit, and retry.
28
- 5. **Step 3 — evaluate impact:** If neither an upgrade nor an override is possible (no fixed version exists, or every compatible pin breaks a dependent), determine whether the vulnerability actually affects this project. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? Record the conclusion.
29
- 6. **Step 4 — decide:** If the evaluation shows the vulnerability **does** affect the project and neither step 1 nor step 2 was possible, make the call yourself and record it on the work item so a person can reverse it:
30
- - **Mitigate** if you can: replace or remove the vulnerable package, or guard the reachable code path so untrusted input cannot reach it, then retry.
31
- - **Otherwise accept the risk**: add an exclusion entry (as in step 5) whose `reason` records the impact, why no fix or mitigation is possible now, and an expiry date, and file a build-ready follow-up work item to remove the exclusion when a fix ships.
32
- - Under `humanGate.mode: "strict"`, stop for a human as described in rung 4 instead. That is the only step that pauses for a human in strict mode.
33
- 7. **Step 5 — ignore:** If the evaluation shows the vulnerability **does not** affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation.
24
+ 1. Note the GHSA ID(s), affected package(s), vulnerable lockfile path(s), and advisory URL from the error output.
25
+ 2. Check the advisory for the patched version in each affected major (`gh api /advisories/<GHSA-id>`). Also check whether it was withdrawn.
26
+ 3. **Step 1 — refresh:** if the patched version satisfies the range the parent declares, update the lockfile for that package (`bun update <pkg>`, `npm update <pkg>`, or `yarn upgrade <pkg>`), confirm with `bun why <pkg>` / `npm ls <pkg>` that every copy is patched, commit, and retry.
27
+ 4. **Step 2 — upgrade:** otherwise upgrade the direct dependency whose chain pulls the copy to a release that accepts the patched version, regenerate the lockfile, run the project's tests, commit, and retry.
28
+ 5. **Step 3 — override:** otherwise pin the **leaf** package in both `overrides` and `resolutions` in `package.json` (see below), regenerate the lockfile, run the tests, commit, and retry. In a Lisa host, if the fix should reach every project on the stack, propose it upstream in Lisa's `package.lisa.json`.
29
+ 6. **Step 4 — evaluate reachability:** if no refresh, upgrade or override lands a patched copy (no fixed version exists, or every compatible pin breaks a dependent), decide whether the vulnerability can affect this project **before changing any code**. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? If it cannot affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation. If you cannot show it is unreachable, it affects the project: go on to step 5.
34
30
  - **Scope the exclusion to the copy you evaluated.** An entry with only `id` (and `package`) hides the advisory for every copy of the package, including one a production dependency pulls in later. Two optional fields narrow it, and every field present must hold together:
35
31
  - `versions` — a semver range the excused installed copies must fall inside, such as `">=3.0.0 <4.0.0"`.
36
32
  - `paths` — a non-empty array of exact lockfile key paths for the excused copies: a `bun.lock` `packages` key such as `"lint-plugin/pkg"`, a `package-lock.json` `packages` key such as `"node_modules/lint-plugin/node_modules/pkg"`, or a `yarn.lock` selector key. No globs. Bun keys and nested npm keys isolate one parent. A `yarn.lock` selector names a requested range, not a parent, and a hoisted npm key (`"node_modules/pkg"`) names an install location; any later dependent that asks for that range or resolves to that hoisted copy is covered too, so pair those keys with a tight `versions` range.
@@ -40,6 +36,9 @@ Every step is autonomous by default. Take step 4 only after you have genuinely a
40
36
  {"id": "GHSA-xxx", "package": "pkg", "versions": ">=3.0.0 <4.0.0", "paths": ["lint-plugin/pkg"], "reason": "<impact evaluation>"}
41
37
  ```
42
38
  Then any other vulnerable copy — on an unlisted path or through an npm alias — still fails the audit and is named by its lockfile path. An empty `paths` array, an invalid range, or an unreadable lockfile fails the audit with a diagnostic; it never widens into an ID-wide exclusion. The pre-push hook, the gate registry, and CI use the same matcher. `lisa doctor` checks the scope fields and that the lockfile is readable, and reports any remaining exclusion without `versions` or `paths`, but it does not match advisories against lockfile copies — a valid-looking path that names the wrong copy can pass doctor and still be rejected by the audit. Doctor also does not reject an entry with no `id` or an exclusion file that does not parse; the audit does. Only the audit proves the exclusion files are accepted. In CI, the reusable workflow audits the manager its `package_manager` input names (default `npm`), so set that input to the project's manager. A scoped entry always wins over a wider entry for the same advisory and package. Full contract: https://github.com/CodySwannGT/lisa/blob/main/docs/dependency-audit-exclusions.md
39
+ 7. **Step 5 — replace or remove:** if the advisory affects the project, replace the dependency with a maintained alternative or remove it, prove behavior with the tests, commit, and retry.
40
+ 8. If none of these works in this change, file the build-ready ticket described above.
41
+
43
42
 
44
43
  ### Critical: Override the vulnerable package, not its parent
45
44
 
@@ -47,18 +46,19 @@ When the audit output shows a dependency chain like `@expo/cli › glob › mini
47
46
 
48
47
  **Never override a parent package to force a lower major version** — other packages in the project may depend on a newer major version, and a resolution/override forces ALL installations to the specified version. For example, overriding `glob` to `^8.1.0` will break `@expo/cli` which requires `glob@^13.0.0`, causing `expo prebuild` to fail with `files.map is not a function`.
49
48
 
50
- Before adding a resolution/override (step 2), verify:
49
+ Before adding a resolution/override (step 3), verify:
51
50
  - You are targeting the **actually vulnerable package**, not a parent in the chain.
52
51
  - The override version is **compatible with all dependents** (check with `bun why <package>` or `npm ls <package>`).
53
52
  - The override does not **downgrade** a package across a major version boundary that other dependencies require.
54
53
 
55
- If any of these checks fail, the override is "not possible" for the purposes of the ladder — drop to step 3 (evaluate impact).
54
+ If any of these checks fail, the override is "not possible" for the purposes of the ladder — go to step 4 (evaluate reachability).
56
55
 
57
56
  ### Never
58
57
 
59
58
  - Never add a blanket audit bypass or lower the configured audit level.
60
- - Never jump to step 4 (decide or, under `strict`, stop for a human) before genuinely attempting steps 1–3.
61
- - Never add a step-5 ignore entry without an impact evaluation recorded in its `reason`.
59
+ - Never add an exclusion without an impact evaluation recorded in its `reason`, and never for an advisory you cannot show is unreachable.
60
+ - Never file the ticket before genuinely attempting all five steps.
61
+ - Never wait on a human the work does not need; stop only for missing access, and name it.
62
62
 
63
63
  ## Rails Projects (bundler-audit)
64
64
 
@@ -69,4 +69,4 @@ Same ladder, bundler mechanics:
69
69
  3. **Step 1 — update:** If a patched version exists:
70
70
  - **Direct dependency** (in Gemfile): update its version constraint, run `bundle update <gem>`, commit, retry.
71
71
  - **Transitive dependency** (only in Gemfile.lock): run `bundle update <gem>` to pull the patched version without changing the Gemfile, commit the lockfile change, retry.
72
- 4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, decide it yourself (step 4; stop for a human under `strict`). If it **does not**, document the exception and retry (step 5).
72
+ 4. **No patch:** If no patched version exists, evaluate whether the advisory can affect the project. If it **cannot**, document the exception with the reason and retry. If it **does**, or you cannot show it does not, upgrade or replace the gem that pulls it, or remove it. If none of that works, file a build-ready ticket with the evidence, as above.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"