@codyswann/lisa 2.241.0 → 2.243.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 (126) hide show
  1. package/dist/core/instruction-files-migration.d.ts +38 -0
  2. package/dist/core/instruction-files-migration.d.ts.map +1 -1
  3. package/dist/core/instruction-files-migration.js +76 -7
  4. package/dist/core/instruction-files-migration.js.map +1 -1
  5. package/dist/core/learnings-projection.d.ts +38 -0
  6. package/dist/core/learnings-projection.d.ts.map +1 -0
  7. package/dist/core/learnings-projection.js +94 -0
  8. package/dist/core/learnings-projection.js.map +1 -0
  9. package/dist/core/learnings.d.ts +2 -1
  10. package/dist/core/learnings.d.ts.map +1 -1
  11. package/dist/core/learnings.js +2 -1
  12. package/dist/core/learnings.js.map +1 -1
  13. package/dist/core/lisa.d.ts +40 -0
  14. package/dist/core/lisa.d.ts.map +1 -1
  15. package/dist/core/lisa.js +90 -12
  16. package/dist/core/lisa.js.map +1 -1
  17. package/dist/core/project-config.d.ts +36 -3
  18. package/dist/core/project-config.d.ts.map +1 -1
  19. package/dist/core/project-config.js +127 -10
  20. package/dist/core/project-config.js.map +1 -1
  21. package/dist/sync/registry.js +1 -1
  22. package/dist/sync/registry.js.map +1 -1
  23. package/package.json +1 -1
  24. package/plugins/lisa/.claude-plugin/plugin.json +10 -1
  25. package/plugins/lisa/.codex-plugin/hooks.json +9 -0
  26. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  27. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +1 -1
  28. package/plugins/lisa/hooks/threshold-ratchet-compare.mjs +315 -0
  29. package/plugins/lisa/hooks/threshold-ratchet-families.mjs +295 -0
  30. package/plugins/lisa/hooks/threshold-ratchet.mjs +213 -0
  31. package/plugins/lisa/hooks/threshold-ratchet.sh +22 -0
  32. package/plugins/lisa/rules/eager/config-resolution.md +6 -3
  33. package/plugins/lisa/rules/eager/project-learnings.md +11 -5
  34. package/plugins/lisa/rules/reference/config-resolution.md +2 -1
  35. package/plugins/lisa/rules/reference/project-learnings.md +16 -9
  36. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +1 -1
  37. package/plugins/lisa-agy/plugin.json +1 -1
  38. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +1 -1
  39. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  42. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-copilot/.claude-plugin/plugin.json +10 -1
  45. package/plugins/lisa-copilot/hooks/threshold-ratchet-compare.mjs +315 -0
  46. package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +295 -0
  47. package/plugins/lisa-copilot/hooks/threshold-ratchet.mjs +213 -0
  48. package/plugins/lisa-copilot/hooks/threshold-ratchet.sh +22 -0
  49. package/plugins/lisa-copilot/rules/eager/config-resolution.md +6 -3
  50. package/plugins/lisa-copilot/rules/eager/project-learnings.md +11 -5
  51. package/plugins/lisa-copilot/rules/reference/config-resolution.md +2 -1
  52. package/plugins/lisa-copilot/rules/reference/project-learnings.md +16 -9
  53. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +1 -1
  54. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-cursor/hooks/hooks.json +4 -0
  56. package/plugins/lisa-cursor/hooks/threshold-ratchet-compare.mjs +315 -0
  57. package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +295 -0
  58. package/plugins/lisa-cursor/hooks/threshold-ratchet.mjs +213 -0
  59. package/plugins/lisa-cursor/hooks/threshold-ratchet.sh +22 -0
  60. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +2 -1
  61. package/plugins/lisa-cursor/rules/config-resolution.mdc +6 -3
  62. package/plugins/lisa-cursor/rules/project-learnings-reference.mdc +16 -9
  63. package/plugins/lisa-cursor/rules/project-learnings.mdc +11 -5
  64. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +1 -1
  65. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  67. package/plugins/lisa-expo-agy/plugin.json +1 -1
  68. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  72. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  73. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-harper-fabric-cursor/.claude-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-openclaw/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  82. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  83. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  87. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  88. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  92. package/plugins/lisa-rails-agy/plugin.json +1 -1
  93. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  97. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  98. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  102. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  103. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  105. package/plugins/src/base/.claude-plugin/plugin.json +9 -0
  106. package/plugins/src/base/hooks/threshold-ratchet-compare.mjs +315 -0
  107. package/plugins/src/base/hooks/threshold-ratchet-families.mjs +295 -0
  108. package/plugins/src/base/hooks/threshold-ratchet.mjs +213 -0
  109. package/plugins/src/base/hooks/threshold-ratchet.sh +22 -0
  110. package/plugins/src/base/rules/eager/config-resolution.md +6 -3
  111. package/plugins/src/base/rules/eager/project-learnings.md +11 -5
  112. package/plugins/src/base/rules/reference/config-resolution.md +2 -1
  113. package/plugins/src/base/rules/reference/project-learnings.md +16 -9
  114. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +1 -1
  115. package/rails/copy-overwrite/lefthook.yml +6 -0
  116. package/rails/copy-overwrite/scripts/check-threshold-ratchet.mjs +213 -0
  117. package/rails/copy-overwrite/scripts/threshold-ratchet-compare.mjs +315 -0
  118. package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +295 -0
  119. package/scripts/build-plugins.sh +20 -0
  120. package/scripts/check-learnings-budget.ts +1 -2
  121. package/scripts/lib/per-agent-hook-filter.mjs +7 -0
  122. package/typescript/copy-contents/.husky/pre-commit +17 -0
  123. package/typescript/copy-overwrite/scripts/check-threshold-ratchet.mjs +213 -0
  124. package/typescript/copy-overwrite/scripts/threshold-ratchet-compare.mjs +315 -0
  125. package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +295 -0
  126. /package/all/create-only/{.claude/rules → .lisa}/PROJECT_LEARNINGS.md +0 -0
@@ -15,8 +15,46 @@ import { ACCEPTED_HARNESS_INPUTS, DEFAULT_HARNESS, HARNESS_ALIASES, HARNESS_VALU
15
15
  export const PROJECT_CONFIG_FILENAME = ".lisa.config.json";
16
16
  /** Default durable project-rules destination used by governance skills. */
17
17
  export const DEFAULT_PROJECT_RULES_FILE = ".claude/rules/PROJECT_RULES.md";
18
- /** Fixed sibling filename for machine-managed project learnings. */
18
+ /** Fixed filename for the machine-managed project-learnings ledger. */
19
19
  export const PROJECT_LEARNINGS_FILENAME = "PROJECT_LEARNINGS.md";
20
+ /**
21
+ * Default location for the machine-managed learnings ledger.
22
+ *
23
+ * The ledger lives beside other machine-managed state under `.lisa/`, NOT in an
24
+ * auto-loaded rules tree. Anything under `.claude/rules/` (and the equivalents
25
+ * other runtimes inject) is read raw into every session — placing the ledger
26
+ * there double-loads it and bypasses the executable contract's budget and
27
+ * validation. `.lisa/` is cold: the ledger is consumed only through the
28
+ * contract's bounded projection.
29
+ */
30
+ export const DEFAULT_PROJECT_LEARNINGS_FILE = path.posix.join(".lisa", PROJECT_LEARNINGS_FILENAME);
31
+ /**
32
+ * Directory prefixes that one or more runtimes inject raw at session start. The
33
+ * learnings ledger must never resolve inside any of them, or the relocation's
34
+ * whole point — keeping the raw file out of eager context — is defeated. Kept
35
+ * conservative and explicit rather than agent-exhaustive; extend it as new
36
+ * eager rule trees are added.
37
+ */
38
+ const AUTO_LOADED_RULES_DIR_PREFIXES = [
39
+ ".claude/rules",
40
+ ".cursor/rules",
41
+ ".github/instructions",
42
+ ".agents/rules",
43
+ ];
44
+ /**
45
+ * Repo-root instruction files that runtimes auto-load whole at session start
46
+ * (AGENTS.md for Codex/Cursor/Copilot/agy/OpenCode; CLAUDE.md for Claude). A
47
+ * `learnings.file` override must never resolve to one of these, or the ledger
48
+ * would again be injected raw.
49
+ */
50
+ const ROOT_EAGER_INSTRUCTION_FILES = ["AGENTS.md", "CLAUDE.md"];
51
+ /**
52
+ * Non-root instruction files the generators maintain and runtimes auto-load
53
+ * (Copilot reads `.github/copilot-instructions.md`). Matched by exact path.
54
+ */
55
+ const EAGER_INSTRUCTION_FILE_PATHS = [
56
+ ".github/copilot-instructions.md",
57
+ ];
20
58
  /**
21
59
  * Resolve the validated project-rules path from config or its default.
22
60
  * @param config - Parsed project configuration
@@ -26,12 +64,28 @@ export function resolveProjectRulesFile(config) {
26
64
  return validateProjectRulesFile(config.projectRulesFile ?? DEFAULT_PROJECT_RULES_FILE, PROJECT_CONFIG_FILENAME);
27
65
  }
28
66
  /**
29
- * Keep learned rules separate from hand-authored rules while honoring the same
30
- * configured directory.
67
+ * Resolve the machine-managed learnings ledger path. A validated
68
+ * `learnings.file` override wins; otherwise the `.lisa/PROJECT_LEARNINGS.md`
69
+ * default is used. The path is intentionally independent of `projectRulesFile`:
70
+ * the ledger is cold state, not a rules sibling.
31
71
  * @param config - Parsed project configuration
32
72
  * @returns Safe project-relative learnings Markdown path
33
73
  */
34
74
  export function resolveProjectLearningsFile(config) {
75
+ if (config.learnings?.file !== undefined) {
76
+ return validateLearningsFile(config.learnings.file, PROJECT_CONFIG_FILENAME);
77
+ }
78
+ return DEFAULT_PROJECT_LEARNINGS_FILE;
79
+ }
80
+ /**
81
+ * Resolve the ledger's LEGACY location — the sibling of `projectRulesFile`,
82
+ * where releases before the `.lisa/` relocation kept it. Used only by the
83
+ * apply/doctor relocation so an existing file can be found and moved to the new
84
+ * canonical path; never a serving path.
85
+ * @param config - Parsed project configuration
86
+ * @returns Legacy project-relative learnings Markdown path
87
+ */
88
+ export function resolveLegacyProjectLearningsFile(config) {
35
89
  return path.posix.join(path.posix.dirname(resolveProjectRulesFile(config)), PROJECT_LEARNINGS_FILENAME);
36
90
  }
37
91
  /**
@@ -158,9 +212,11 @@ function validateProjectConfig(parsed, configPath) {
158
212
  const projectRulesFile = obj.projectRulesFile === undefined
159
213
  ? undefined
160
214
  : validateProjectRulesFile(obj.projectRulesFile, configPath);
215
+ const learnings = validateLearningsConfig(obj.learnings, configPath);
161
216
  return {
162
217
  ...(harness === undefined ? {} : { harness }),
163
218
  ...(projectRulesFile === undefined ? {} : { projectRulesFile }),
219
+ ...(learnings === undefined ? {} : { learnings }),
164
220
  };
165
221
  }
166
222
  /**
@@ -186,12 +242,15 @@ function validateOptionalHarness(value, configPath) {
186
242
  throw new Error(`Invalid harness in ${configPath}: expected ${allowed}, got ${JSON.stringify(value)}`);
187
243
  }
188
244
  /**
189
- * Validate the configurable rules destination as a safe Markdown path.
245
+ * Validate a configurable destination as a safe, relative, non-traversing
246
+ * Markdown path. Shared by every path-typed config field; the `field` label is
247
+ * interpolated into each diagnostic so callers get a field-specific message.
190
248
  * @param value - Raw configured path
191
249
  * @param source - Config source for errors
250
+ * @param field - Config field name used in error messages
192
251
  * @returns Validated project-relative path
193
252
  */
194
- function validateProjectRulesFile(value, source) {
253
+ function validateSafeRelativeMarkdownPath(value, source, field) {
195
254
  if (typeof value !== "string" ||
196
255
  value.length === 0 ||
197
256
  value.trim() !== value ||
@@ -200,20 +259,78 @@ function validateProjectRulesFile(value, source) {
200
259
  /^[a-z]:/iu.test(value) ||
201
260
  path.posix.isAbsolute(value) ||
202
261
  path.win32.isAbsolute(value)) {
203
- throw new Error(`Invalid projectRulesFile in ${source}: expected a safe relative POSIX path`);
262
+ throw new Error(`Invalid ${field} in ${source}: expected a safe relative POSIX path`);
204
263
  }
205
264
  const segments = value.split("/");
206
265
  if (segments.some(segment => segment === "" || segment === "." || segment === "..")) {
207
- throw new Error(`Invalid projectRulesFile in ${source}: path traversal is not allowed`);
266
+ throw new Error(`Invalid ${field} in ${source}: path traversal is not allowed`);
208
267
  }
209
268
  if (path.posix.extname(value).toLowerCase() !== ".md") {
210
- throw new Error(`Invalid projectRulesFile in ${source}: expected a Markdown file`);
269
+ throw new Error(`Invalid ${field} in ${source}: expected a Markdown file`);
211
270
  }
212
- if (path.posix.basename(value).toLowerCase() ===
271
+ return value;
272
+ }
273
+ /**
274
+ * Validate the configurable rules destination as a safe Markdown path, and
275
+ * reject the reserved learnings filename so a rules file can never collide with
276
+ * the machine-managed ledger.
277
+ * @param value - Raw configured path
278
+ * @param source - Config source for errors
279
+ * @returns Validated project-relative path
280
+ */
281
+ function validateProjectRulesFile(value, source) {
282
+ const safe = validateSafeRelativeMarkdownPath(value, source, "projectRulesFile");
283
+ if (path.posix.basename(safe).toLowerCase() ===
213
284
  PROJECT_LEARNINGS_FILENAME.toLowerCase()) {
214
285
  throw new Error(`Invalid projectRulesFile in ${source}: ${PROJECT_LEARNINGS_FILENAME} is reserved for machine-managed learnings`);
215
286
  }
216
- return value;
287
+ return safe;
288
+ }
289
+ /**
290
+ * Validate a `learnings.file` override: a safe relative Markdown path that does
291
+ * NOT resolve inside any auto-loaded rules tree. Placing the ledger in an eager
292
+ * tree is exactly the defect this relocation exists to prevent, so it is a hard
293
+ * rejection with a readable reason rather than a silent fallback.
294
+ * @param value - Raw configured path
295
+ * @param source - Config source for errors
296
+ * @returns Validated project-relative learnings path
297
+ */
298
+ function validateLearningsFile(value, source) {
299
+ const safe = validateSafeRelativeMarkdownPath(value, source, "learnings.file");
300
+ const normalized = path.posix.normalize(safe);
301
+ const lowered = normalized.toLowerCase();
302
+ const insideEagerTree = AUTO_LOADED_RULES_DIR_PREFIXES.some(prefix => normalized === prefix || normalized.startsWith(`${prefix}/`));
303
+ const isRootEagerFile = path.posix.dirname(normalized) === "." &&
304
+ ROOT_EAGER_INSTRUCTION_FILES.some(name => name.toLowerCase() === lowered);
305
+ const isNamedEagerFile = EAGER_INSTRUCTION_FILE_PATHS.some(filePath => filePath.toLowerCase() === lowered);
306
+ if (insideEagerTree || isRootEagerFile || isNamedEagerFile) {
307
+ const surfaces = [
308
+ ...AUTO_LOADED_RULES_DIR_PREFIXES,
309
+ ...ROOT_EAGER_INSTRUCTION_FILES,
310
+ ...EAGER_INSTRUCTION_FILE_PATHS,
311
+ ].join(", ");
312
+ throw new Error(`Invalid learnings.file in ${source}: the ledger must not live in an auto-loaded rules tree or instruction file (${surfaces}); the default ${DEFAULT_PROJECT_LEARNINGS_FILE} is the recommended location`);
313
+ }
314
+ return safe;
315
+ }
316
+ /**
317
+ * Validate the optional `learnings` block, preserving an absent value.
318
+ * @param value - Raw learnings value
319
+ * @param source - Config source for errors
320
+ * @returns Typed learnings config, or undefined when absent
321
+ */
322
+ function validateLearningsConfig(value, source) {
323
+ if (value === undefined) {
324
+ return undefined;
325
+ }
326
+ if (value === null || typeof value !== "object" || Array.isArray(value)) {
327
+ throw new Error(`Invalid learnings in ${source}: expected an object`);
328
+ }
329
+ const file = value.file;
330
+ if (file === undefined) {
331
+ return {};
332
+ }
333
+ return { file: validateLearningsFile(file, source) };
217
334
  }
218
335
  /**
219
336
  * Whether a path contains an ASCII control character.
@@ -1 +1 @@
1
- {"version":3,"file":"project-config.js","sourceRoot":"","sources":["../../src/core/project-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,cAAc,EACd,sBAAsB,GAEvB,MAAM,aAAa,CAAC;AAErB,2EAA2E;AAC3E,MAAM,CAAC,MAAM,uBAA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4B,CAChD,OAAe;IAEf,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;IAC/D,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QACxC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC;IAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,EAAE,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAC5D,CAAC"}
@@ -56,7 +56,7 @@ export const SYNC_REGISTRY = [
56
56
  {
57
57
  key: "projectRulesFile",
58
58
  defaultValue: DEFAULT_PROJECT_RULES_FILE,
59
- description: "Project rules file used to derive PROJECT_LEARNINGS.md",
59
+ description: "Hand-authored project rules file (independent of the ledger)",
60
60
  },
61
61
  {
62
62
  key: "quality.testCoverage",
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/sync/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAiDvE,MAAM,iBAAiB,GAAG,cAAc,CAAC;AACzC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAC7C,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAC3C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAC7C,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAC3C,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAE3C,M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package.json CHANGED
@@ -102,7 +102,7 @@
102
102
  "form-data": ">=4.0.6"
103
103
  },
104
104
  "name": "@codyswann/lisa",
105
- "version": "2.241.0",
105
+ "version": "2.243.0",
106
106
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
107
107
  "main": "dist/index.js",
108
108
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.241.0",
3
+ "version": "2.243.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -63,6 +63,15 @@
63
63
  }
64
64
  ]
65
65
  },
66
+ {
67
+ "matcher": "Edit|Write|NotebookEdit|Bash",
68
+ "hooks": [
69
+ {
70
+ "type": "command",
71
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/threshold-ratchet.sh"
72
+ }
73
+ ]
74
+ },
66
75
  {
67
76
  "matcher": "TeamCreate|Agent",
68
77
  "hooks": [
@@ -20,6 +20,15 @@
20
20
  "command": "${PLUGIN_ROOT}/hooks/shell-write-nudge.sh"
21
21
  }
22
22
  ]
23
+ },
24
+ {
25
+ "matcher": "Edit|Write|NotebookEdit|Bash",
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "${PLUGIN_ROOT}/hooks/threshold-ratchet.sh"
30
+ }
31
+ ]
23
32
  }
24
33
  ],
25
34
  "PreToolUse": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.241.0",
3
+ "version": "2.243.0",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -139,7 +139,7 @@ Continue to Phase 3.
139
139
  No learning content is ever committed without a PR — there is no other write path, and the PR must touch **only** the learnings surface (any other changed file is a bug).
140
140
 
141
141
  1. **PR dedupe.** Search all PRs for the marker `[lisa-learning-pr] key=<fingerprint>` in the body (`gh pr list --state all --search '"<marker>" in:body' --json number,url`), with the stale-index guard above. If one exists, reference it and stop — never open a duplicate.
142
- 2. **Resolve the learnings surface path — never hardcode it.** The canonical path is `resolveProjectLearningsFile` from `@codyswann/lisa/learnings`: the `PROJECT_LEARNINGS.md` sibling of the configured `.lisa.config.json` `projectRulesFile` (default `.claude/rules/PROJECT_LEARNINGS.md`):
142
+ 2. **Resolve the learnings surface path — never hardcode it.** The canonical path is `resolveProjectLearningsFile` from `@codyswann/lisa/learnings`: the machine-managed ledger resolved from `.lisa.config.json` (the `learnings.file` override, else the default `.lisa/PROJECT_LEARNINGS.md` — a cold path, never an auto-loaded rules tree):
143
143
 
144
144
  ```bash
145
145
  LEARNINGS_FILE=$(node -e 'import("@codyswann/lisa/learnings").then(async m => { const c = await m.readProjectConfig(process.cwd()); console.log(m.resolveProjectLearningsFile(c)); })')
@@ -0,0 +1,315 @@
1
+ /**
2
+ * Threshold ratchet — comparison rules and reporting.
3
+ *
4
+ * Pure comparison layer: given a watched file's baseline and current
5
+ * contents, report every weakening. No filesystem or git access. See
6
+ * threshold-ratchet-families.mjs for extraction and threshold-ratchet.mjs
7
+ * for the CLI.
8
+ */
9
+ import {
10
+ extractAllowEntries,
11
+ extractExemptionEntries,
12
+ extractK6Constraints,
13
+ extractNumericLeaves,
14
+ extractRubocopThresholds,
15
+ extractStrykerConstraints,
16
+ extractStrykerMutate,
17
+ familyFor,
18
+ parseJson,
19
+ } from "./threshold-ratchet-families.mjs";
20
+
21
+ /** Finding type: a numeric bound or boolean gate moved the weakening way. */
22
+ const TYPE_WEAKENED = "weakened";
23
+ /** Finding type: an exemption entry was added (Tier 3). */
24
+ const TYPE_EXEMPTION_ADDED = "exemption-added";
25
+ /** Family kind for .lisa.config.json (the thresholdRatchet.allow carrier). */
26
+ const KIND_ALLOW_LIST = "allow-list";
27
+
28
+ /**
29
+ * @typedef {object} Finding
30
+ * @property {string} file Repo-relative path of the gate file
31
+ * @property {string} key Dotted key path within the file
32
+ * @property {"weakened"|"removed"|"exemption-added"|"file-deleted"|"allow-added"|"unparseable"} type
33
+ * Which ratchet rule the change violated
34
+ * @property {number|string} [base] Baseline value
35
+ * @property {number|string} [current] Current value
36
+ * @property {string} message Operator-readable explanation
37
+ */
38
+
39
+ /**
40
+ * Build the "file could not be parsed" finding.
41
+ * @param {string} relPath Repo-relative path
42
+ * @returns {Finding} The unparseable-file finding
43
+ */
44
+ function unparseable(relPath) {
45
+ return {
46
+ file: relPath,
47
+ key: "*",
48
+ type: "unparseable",
49
+ message: `${relPath} is no longer valid JSON — a broken gate file disables the gate.`,
50
+ };
51
+ }
52
+
53
+ /**
54
+ * Compare two constraint maps: report removals and direction violations.
55
+ * @param {string} relPath Repo-relative path the constraints came from
56
+ * @param {Map<string, { value: number, direction: "min"|"max" }>} base
57
+ * Baseline constraints
58
+ * @param {Map<string, { value: number, direction: "min"|"max" }>} current
59
+ * Current constraints
60
+ * @returns {Finding[]} One finding per removed or weakened constraint
61
+ */
62
+ export function compareConstraints(relPath, base, current) {
63
+ const findings = [];
64
+ for (const [key, baseC] of base) {
65
+ const currentC = current.get(key);
66
+ if (!currentC) {
67
+ findings.push({
68
+ file: relPath,
69
+ key,
70
+ type: "removed",
71
+ base: baseC.value,
72
+ message: `${relPath}: ${key} was removed — the tuned floor would silently fall back to a default.`,
73
+ });
74
+ continue;
75
+ }
76
+ const weakened =
77
+ baseC.direction === "min"
78
+ ? currentC.value < baseC.value
79
+ : currentC.value > baseC.value;
80
+ if (weakened) {
81
+ const verb =
82
+ baseC.direction === "min" ? "may only increase" : "may only decrease";
83
+ findings.push({
84
+ file: relPath,
85
+ key,
86
+ type: TYPE_WEAKENED,
87
+ base: baseC.value,
88
+ current: currentC.value,
89
+ message: `${relPath}: ${key} changed ${baseC.value} → ${currentC.value} (this value ${verb}).`,
90
+ });
91
+ }
92
+ }
93
+ return findings;
94
+ }
95
+
96
+ /**
97
+ * Compare a stryker.conf.json pair: the break threshold plus mutate-list
98
+ * exemptions (new negations or removed targets shrink the gate).
99
+ * @param {string} relPath Repo-relative path
100
+ * @param {unknown} base Parsed baseline config
101
+ * @param {unknown} current Parsed current config
102
+ * @returns {Finding[]} Break-threshold and mutate-scope findings
103
+ */
104
+ function compareStryker(relPath, base, current) {
105
+ const findings = compareConstraints(
106
+ relPath,
107
+ extractStrykerConstraints(base),
108
+ extractStrykerConstraints(current)
109
+ );
110
+ const baseMutate = extractStrykerMutate(base);
111
+ const currentMutate = extractStrykerMutate(current);
112
+ for (const negation of currentMutate.negations) {
113
+ if (!baseMutate.negations.has(negation)) {
114
+ findings.push({
115
+ file: relPath,
116
+ key: `mutate ${negation}`,
117
+ type: TYPE_EXEMPTION_ADDED,
118
+ message: `${relPath}: new mutation-testing exclusion "${negation}" — excluding files from a gate is a weakening.`,
119
+ });
120
+ }
121
+ }
122
+ for (const positive of baseMutate.positives) {
123
+ if (!currentMutate.positives.has(positive)) {
124
+ findings.push({
125
+ file: relPath,
126
+ key: `mutate ${positive}`,
127
+ type: TYPE_EXEMPTION_ADDED,
128
+ message: `${relPath}: mutation-testing target "${positive}" was removed — shrinking a gate's coverage is a weakening.`,
129
+ });
130
+ }
131
+ }
132
+ return findings;
133
+ }
134
+
135
+ /**
136
+ * Compare a k6 thresholds pair: numeric bounds plus abortOnFail downgrades.
137
+ * @param {string} relPath Repo-relative path
138
+ * @param {unknown} base Parsed baseline thresholds
139
+ * @param {unknown} current Parsed current thresholds
140
+ * @returns {Finding[]} Bound and abortOnFail findings
141
+ */
142
+ function compareK6(relPath, base, current) {
143
+ const baseC = extractK6Constraints(base);
144
+ const currentC = extractK6Constraints(current);
145
+ const findings = compareConstraints(relPath, baseC.numeric, currentC.numeric);
146
+ for (const [key, wasOn] of baseC.booleans) {
147
+ // k6 defaults abortOnFail to false, so DELETING an explicit `true` is as
148
+ // much a weakening as flipping it — anything but a current `true` blocks.
149
+ if (wasOn && currentC.booleans.get(key) !== true) {
150
+ findings.push({
151
+ file: relPath,
152
+ key,
153
+ type: TYPE_WEAKENED,
154
+ base: "true",
155
+ current: "false",
156
+ message: `${relPath}: ${key} turned off — the gate no longer stops the run on failure.`,
157
+ });
158
+ }
159
+ }
160
+ return findings;
161
+ }
162
+
163
+ /**
164
+ * Compare an exemption-list pair (audit ignore files): report added entries.
165
+ * @param {string} relPath Repo-relative path
166
+ * @param {unknown} base Parsed baseline list
167
+ * @param {unknown} current Parsed current list
168
+ * @returns {Finding[]} One finding per newly added ignore entry
169
+ */
170
+ function compareExemptions(relPath, base, current) {
171
+ const baseEntries = extractExemptionEntries(base);
172
+ const findings = [];
173
+ for (const entry of extractExemptionEntries(current)) {
174
+ if (!baseEntries.has(entry)) {
175
+ findings.push({
176
+ file: relPath,
177
+ key: entry,
178
+ type: TYPE_EXEMPTION_ADDED,
179
+ message: `${relPath}: new security-audit ignore entry "${entry}" — ignoring a finding weakens the gate and needs a human's sign-off.`,
180
+ });
181
+ }
182
+ }
183
+ return findings;
184
+ }
185
+
186
+ /**
187
+ * Compare .lisa.config.json allow lists: report added exception entries so a
188
+ * change can never grant itself an exception.
189
+ * @param {string} relPath Repo-relative path
190
+ * @param {unknown} base Parsed baseline config
191
+ * @param {unknown} current Parsed current config
192
+ * @returns {Finding[]} One finding per newly added allow entry
193
+ */
194
+ function compareAllowList(relPath, base, current) {
195
+ const baseKeys = new Set(
196
+ extractAllowEntries(base).map(e => `${e.file} ${e.key}`)
197
+ );
198
+ const findings = [];
199
+ for (const entry of extractAllowEntries(current)) {
200
+ if (!baseKeys.has(`${entry.file} ${entry.key}`)) {
201
+ findings.push({
202
+ file: relPath,
203
+ key: `thresholdRatchet.allow ${entry.file}#${entry.key}`,
204
+ type: "allow-added",
205
+ message: `${relPath}: new threshold exception for ${entry.file} → ${entry.key}. Exceptions are a human decision: land this entry in its own human-approved change first, then make the threshold change.`,
206
+ });
207
+ }
208
+ }
209
+ return findings;
210
+ }
211
+
212
+ /**
213
+ * Compare one watched file's baseline and current contents and report every
214
+ * weakening. Pure: no filesystem or git access.
215
+ * @param {string} relPath Repo-relative path (forward slashes)
216
+ * @param {string | null} baselineText Baseline contents (null = file is new)
217
+ * @param {string | null} currentText Current contents (null = file deleted)
218
+ * @returns {Finding[]} Every ratchet violation in the change (empty = clean)
219
+ */
220
+ export function compareFile(relPath, baselineText, currentText) {
221
+ const family = familyFor(relPath);
222
+ if (!family || baselineText === null || baselineText === undefined) return [];
223
+
224
+ if (currentText === null || currentText === undefined) {
225
+ if (family.kind === KIND_ALLOW_LIST) return [];
226
+ return [
227
+ {
228
+ file: relPath,
229
+ key: "*",
230
+ type: "file-deleted",
231
+ message: `${relPath} was deleted — deleting a quality gate is a weakening.`,
232
+ },
233
+ ];
234
+ }
235
+
236
+ if (family.kind === "rubocop-yaml") {
237
+ return compareConstraints(
238
+ relPath,
239
+ extractRubocopThresholds(baselineText, family.direction),
240
+ extractRubocopThresholds(currentText, family.direction)
241
+ );
242
+ }
243
+
244
+ const base = parseJson(baselineText);
245
+ const current = parseJson(currentText);
246
+ if (base === undefined) return [];
247
+ if (current === undefined) {
248
+ return family.kind === KIND_ALLOW_LIST ? [] : [unparseable(relPath)];
249
+ }
250
+ switch (family.kind) {
251
+ case "json-num":
252
+ return compareConstraints(
253
+ relPath,
254
+ extractNumericLeaves(base, family.direction),
255
+ extractNumericLeaves(current, family.direction)
256
+ );
257
+ case "stryker":
258
+ return compareStryker(relPath, base, current);
259
+ case "k6":
260
+ return compareK6(relPath, base, current);
261
+ case "exemption-list":
262
+ return compareExemptions(relPath, base, current);
263
+ case KIND_ALLOW_LIST:
264
+ return compareAllowList(relPath, base, current);
265
+ default:
266
+ return [];
267
+ }
268
+ }
269
+
270
+ /**
271
+ * Drop findings covered by baseline-side allow entries. `allow-added`
272
+ * findings are never dropped — an exception cannot approve its own creation.
273
+ * @param {Finding[]} findings All findings from the change
274
+ * @param {Array<{ file: string, key: string }>} allowEntries Baseline
275
+ * (already-merged) allow list
276
+ * @returns {{ blocked: Finding[], allowed: Finding[] }} Findings that still
277
+ * block vs. findings covered by a recorded exception
278
+ */
279
+ export function applyAllowList(findings, allowEntries) {
280
+ const blocked = [];
281
+ const allowed = [];
282
+ for (const finding of findings) {
283
+ const isAllowed =
284
+ finding.type !== "allow-added" &&
285
+ allowEntries.some(
286
+ e =>
287
+ (finding.file === e.file || finding.file.endsWith(`/${e.file}`)) &&
288
+ (e.key === "*" || e.key === finding.key)
289
+ );
290
+ if (isAllowed) allowed.push(finding);
291
+ else blocked.push(finding);
292
+ }
293
+ return { blocked, allowed };
294
+ }
295
+
296
+ /**
297
+ * Render the operator-facing block message.
298
+ * @param {Finding[]} findings Blocked findings
299
+ * @returns {string} Multi-line report explaining what weakened and the
300
+ * human-approved exception path
301
+ */
302
+ export function formatReport(findings) {
303
+ return [
304
+ "⛔ Quality gate weakened — blocked by the threshold ratchet.",
305
+ "",
306
+ ...findings.map(f => ` • ${f.message}`),
307
+ "",
308
+ "Quality thresholds are a one-way ratchet: they may tighten but never",
309
+ "loosen. Fix the code so it meets the current gate instead of lowering the",
310
+ "gate. If a human decides an exception is genuinely correct, they record it",
311
+ "in .lisa.config.json under thresholdRatchet.allow (with a reason) in a",
312
+ "separate human-approved change; this check honors exceptions only after",
313
+ "they are merged.",
314
+ ].join("\n");
315
+ }