@codyswann/lisa 2.217.3 → 2.217.4

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 (61) hide show
  1. package/dist/cli/doctor-monitor-thresholds.d.ts +7 -4
  2. package/dist/cli/doctor-monitor-thresholds.d.ts.map +1 -1
  3. package/dist/cli/doctor-monitor-thresholds.js +57 -66
  4. package/dist/cli/doctor-monitor-thresholds.js.map +1 -1
  5. package/package.json +1 -1
  6. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  7. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  8. package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +63 -8
  9. package/plugins/lisa/skills/lisa-monitor/SKILL.md +63 -8
  10. package/plugins/lisa-agy/plugin.json +1 -1
  11. package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +63 -8
  12. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  15. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +63 -8
  19. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +63 -8
  21. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  23. package/plugins/lisa-expo-agy/plugin.json +1 -1
  24. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  28. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  29. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  33. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  34. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  39. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  43. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  44. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  48. package/plugins/lisa-rails-agy/plugin.json +1 -1
  49. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  54. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  58. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  59. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/src/base/skills/lisa-monitor/SKILL.md +63 -8
@@ -1,8 +1,11 @@
1
- import type { DoctorCheck } from "./doctor.js";
2
1
  /**
3
- * Warn when projects still carry deprecated monitor threshold keys.
2
+ * Find legacy monitor keys in committed and local config independently.
4
3
  * @param targetPath - Project path to inspect
5
- * @returns Doctor check result
4
+ * @returns One named doctor check result
6
5
  */
7
- export declare function checkLegacyMonitorThresholds(targetPath: string): Promise<DoctorCheck>;
6
+ export declare function checkLegacyMonitorThresholds(targetPath: string): Promise<{
7
+ name: string;
8
+ status: "ok" | "warn";
9
+ detail: string;
10
+ }>;
8
11
  //# sourceMappingURL=doctor-monitor-thresholds.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-monitor-thresholds.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-monitor-thresholds.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAwE/C;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,CAAC,CA4BtB"}
1
+ {"version":3,"file":"doctor-monitor-thresholds.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-monitor-thresholds.ts"],"names":[],"mappings":"AAqEA;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CA6BD"}
@@ -1,90 +1,81 @@
1
1
  import { existsSync } from "node:fs";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import * as path from "node:path";
4
- const CHECK_NAME = "Monitor threshold keys current?";
5
- const COMMITTED_CONFIG = ".lisa.config.json";
6
- const LOCAL_CONFIG = ".lisa.config.local.json";
7
- const MONITOR_THRESHOLDS_PREFIX = "monitor.thresholds.";
8
- const LEGACY_MONITOR_THRESHOLD_KEYS = [
4
+ const MONITOR_THRESHOLD_CONFIG_CHECK_NAME = "Monitor threshold keys current?";
5
+ const CONFIG_FILES = [".lisa.config.json", ".lisa.config.local.json"];
6
+ const LEGACY_MONITOR_THRESHOLDS = [
9
7
  {
10
- legacy: `${MONITOR_THRESHOLDS_PREFIX}sentryMinEvents24h`,
11
- replacement: `${MONITOR_THRESHOLDS_PREFIX}minEvents24h`,
8
+ legacy: "monitor.thresholds.sentryMinEvents24h",
9
+ current: "monitor.thresholds.minEvents24h",
10
+ property: "sentryMinEvents24h",
12
11
  },
13
12
  {
14
- legacy: `${MONITOR_THRESHOLDS_PREFIX}xrayFaultRatePct`,
15
- replacement: `${MONITOR_THRESHOLDS_PREFIX}faultRatePct`,
13
+ legacy: "monitor.thresholds.xrayFaultRatePct",
14
+ current: "monitor.thresholds.faultRatePct",
15
+ property: "xrayFaultRatePct",
16
16
  },
17
17
  ];
18
18
  /**
19
- * Safely parse a Lisa config file for non-blocking advisory checks.
20
- * @param configPath - Config path to parse
21
- * @returns Parsed config or undefined when unavailable/malformed
19
+ * Return an object-shaped value as a string-keyed record.
20
+ * @param value - Value to narrow
21
+ * @returns Record for objects, otherwise undefined
22
22
  */
23
- async function readConfigForAdvisoryCheck(configPath) {
24
- if (!existsSync(configPath)) {
25
- return undefined;
26
- }
27
- try {
28
- return JSON.parse(await readFile(configPath, "utf8"));
29
- }
30
- catch {
31
- return undefined;
32
- }
23
+ function asRecord(value) {
24
+ return typeof value === "object" && value !== null
25
+ ? value
26
+ : undefined;
33
27
  }
34
28
  /**
35
- * Determine whether an object owns a dotted config path.
36
- * @param value - Object to inspect
37
- * @param segments - Config key path segments
38
- * @returns True when every segment exists as an own property
29
+ * Find legacy monitor threshold keys in one raw config file.
30
+ * Parse failures are reported by doctor's existing project-config check.
31
+ * @param targetPath - Project path to inspect
32
+ * @param fileName - Raw config file to inspect
33
+ * @returns Legacy-path migration findings
39
34
  */
40
- function hasConfigPathSegments(value, segments) {
41
- if (segments.length === 0) {
42
- return true;
43
- }
44
- if (value === null || typeof value !== "object") {
45
- return false;
46
- }
47
- const segment = segments[0];
48
- const remaining = segments.slice(1);
49
- if (segment === undefined) {
50
- return true;
35
+ async function legacyFindingsForFile(targetPath, fileName) {
36
+ const configPath = path.join(targetPath, fileName);
37
+ if (!existsSync(configPath))
38
+ return { findings: [] };
39
+ try {
40
+ const config = asRecord(JSON.parse(await readFile(configPath, "utf8")));
41
+ const monitor = asRecord(config?.["monitor"]);
42
+ const thresholds = asRecord(monitor?.["thresholds"]);
43
+ return {
44
+ findings: LEGACY_MONITOR_THRESHOLDS.filter(threshold => Object.hasOwn(thresholds ?? {}, threshold.property)).map(threshold => `${fileName}: ${threshold.legacy} -> ${threshold.current}`),
45
+ };
51
46
  }
52
- if (!Object.prototype.hasOwnProperty.call(value, segment)) {
53
- return false;
47
+ catch {
48
+ return { findings: [], uninspectable: fileName };
54
49
  }
55
- return hasConfigPathSegments(value[segment], remaining);
56
- }
57
- /**
58
- * Determine whether an object owns a dotted config path.
59
- * @param value - Object to inspect
60
- * @param dottedPath - Dot-separated config key path
61
- * @returns True when every segment exists as an own property
62
- */
63
- function hasConfigPath(value, dottedPath) {
64
- return hasConfigPathSegments(value, dottedPath.split("."));
65
50
  }
66
51
  /**
67
- * Warn when projects still carry deprecated monitor threshold keys.
52
+ * Find legacy monitor keys in committed and local config independently.
68
53
  * @param targetPath - Project path to inspect
69
- * @returns Doctor check result
54
+ * @returns One named doctor check result
70
55
  */
71
56
  export async function checkLegacyMonitorThresholds(targetPath) {
72
- const configs = await Promise.all([COMMITTED_CONFIG, LOCAL_CONFIG].map(async (fileName) => ({
73
- fileName,
74
- config: await readConfigForAdvisoryCheck(path.join(targetPath, fileName)),
75
- })));
76
- const findings = configs.flatMap(({ fileName, config }) => LEGACY_MONITOR_THRESHOLD_KEYS.filter(({ legacy }) => hasConfigPath(config, legacy)).map(({ legacy, replacement }) => `${fileName}: ${legacy} -> ${replacement}`));
77
- if (findings.length === 0) {
78
- return {
79
- name: CHECK_NAME,
57
+ const inspections = await Promise.all(CONFIG_FILES.map(fileName => legacyFindingsForFile(targetPath, fileName)));
58
+ const findings = inspections.flatMap(inspection => inspection.findings);
59
+ const uninspectable = inspections.flatMap(inspection => inspection.uninspectable ? [inspection.uninspectable] : []);
60
+ return findings.length === 0 && uninspectable.length === 0
61
+ ? {
62
+ name: MONITOR_THRESHOLD_CONFIG_CHECK_NAME,
80
63
  status: "ok",
81
- detail: "No legacy monitor threshold keys present",
64
+ detail: "No legacy monitor threshold keys found",
65
+ }
66
+ : {
67
+ name: MONITOR_THRESHOLD_CONFIG_CHECK_NAME,
68
+ status: "warn",
69
+ detail: [
70
+ findings.length > 0
71
+ ? `Replace legacy monitor threshold keys: ${findings.join(", ")}`
72
+ : undefined,
73
+ uninspectable.length > 0
74
+ ? `Could not inspect monitor threshold keys in: ${uninspectable.join(", ")}`
75
+ : undefined,
76
+ ]
77
+ .filter((message) => message !== undefined)
78
+ .join(". "),
82
79
  };
83
- }
84
- return {
85
- name: CHECK_NAME,
86
- status: "warn",
87
- detail: `Legacy monitor threshold keys found; migrate ${findings.join(", ")}`,
88
- };
89
80
  }
90
81
  //# sourceMappingURL=doctor-monitor-thresholds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-monitor-thresholds.js","sourceRoot":"","sources":["../../src/cli/doctor-monitor-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ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,CAAC,CAAC;YACE,IAAI,EAAE,mCAAmC;YACzC,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,wCAAwC;SACjD;QACH,CAAC,CAAC;YACE,IAAI,EAAE,mCAAmC;YACzC,MAAM,EAAE,MAAM;YACd,MAAM,EAAE;gBACN,QAAQ,CAAC,MAAM,GAAG,CAAC;oBACjB,CAAC,CAAC,0CAA0C,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBACjE,CAAC,CAAC,SAAS;gBACb,aAAa,CAAC,MAAM,GAAG,CAAC;oBACtB,CAAC,CAAC,gDAAgD,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC5E,CAAC,CAAC,SAAS;aACd;iBACE,MAAM,CAAC,CAAC,OAAO,EAAqB,EAAE,CAAC,OAAO,KAAK,SAAS,CAAC;iBAC7D,IAAI,CAAC,IAAI,CAAC;SACd,CAAC;AACR,CAAC"}
package/package.json CHANGED
@@ -95,7 +95,7 @@
95
95
  "ws": ">=8.20.1"
96
96
  },
97
97
  "name": "@codyswann/lisa",
98
- "version": "2.217.3",
98
+ "version": "2.217.4",
99
99
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
100
100
  "main": "dist/index.js",
101
101
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
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": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,14 +15,69 @@ Spot-check application health, **audit observability completeness**, and **file
15
15
  - `--all-gaps` — also file `recommended`-tier gaps (session replay, product analytics, etc.), not just `core`. Does not change anomaly thresholds.
16
16
  - `max_candidates=<n>` — cap tickets filed this run (default 20; config `monitor.maxCandidates`).
17
17
 
18
- ## Threshold compatibility
19
-
20
- Resolve monitor thresholds from `.lisa.config.local.json` first and `.lisa.config.json` second, using the local-overrides-global semantics from the `config-resolution` rule. For renamed thresholds, prefer the provider-neutral key when present, then fall back to the legacy provider-named key, then fall back to the documented default:
21
-
22
- - `monitor.thresholds.minEvents24h` falls back to `monitor.thresholds.sentryMinEvents24h`, then default `1`.
23
- - `monitor.thresholds.faultRatePct` falls back to `monitor.thresholds.xrayFaultRatePct`, then default `5`.
24
-
25
- A project carrying both keys uses the provider-neutral value. A project carrying only the legacy key keeps using that explicit legacy value; never silently substitute the new default just because the new key is absent.
18
+ ## Monitor threshold compatibility
19
+
20
+ Before resolving anomaly thresholds, inspect the committed
21
+ `.lisa.config.json` and local `.lisa.config.local.json` separately with `jq`.
22
+ Use a literal, fixed-path projection that returns presence and value for only
23
+ these four exact paths; do not use `Read`, `cat`, interpolation, or a filter
24
+ that emits either entire config into agent context:
25
+
26
+ - `monitor.thresholds.minEvents24h`, then
27
+ `monitor.thresholds.sentryMinEvents24h`.
28
+ - `monitor.thresholds.faultRatePct`, then
29
+ `monitor.thresholds.xrayFaultRatePct`.
30
+
31
+ Run this fixed filter once with literal final argument `.lisa.config.json` and
32
+ once with literal final argument `.lisa.config.local.json` when the respective
33
+ file exists:
34
+
35
+ ```bash
36
+ jq 'def threshold($object; $name):
37
+ if ($object | has($name)) then
38
+ ($object[$name] | type) as $type |
39
+ if $type == "number" then
40
+ if ($object[$name] | isfinite and (isnan | not)) then
41
+ {present: true, valid: true, type: "number", value: $object[$name]}
42
+ else
43
+ {present: true, valid: false, type: "non-finite-number"}
44
+ end
45
+ else
46
+ {present: true, valid: false, type: $type}
47
+ end
48
+ else
49
+ {present: false, valid: false, type: "missing"}
50
+ end;
51
+ (.monitor.thresholds | if type == "object" then . else {} end) as $t |
52
+ {
53
+ "monitor.thresholds.minEvents24h": threshold($t; "minEvents24h"),
54
+ "monitor.thresholds.sentryMinEvents24h": threshold($t; "sentryMinEvents24h"),
55
+ "monitor.thresholds.faultRatePct": threshold($t; "faultRatePct"),
56
+ "monitor.thresholds.xrayFaultRatePct": threshold($t; "xrayFaultRatePct")
57
+ }' .lisa.config.json
58
+ ```
59
+
60
+ A nonzero `jq` result fails threshold collection; do not treat an uninspectable
61
+ present file as if it were absent.
62
+
63
+ For each exact path, keep the raw `jq` presence/value result from each file;
64
+ do not inject defaults during this merge. Local presence overrides committed
65
+ presence per path. After that merge, resolve the current key before the legacy
66
+ key, then use default `1` for `monitor.thresholds.minEvents24h` or default `5`
67
+ for `monitor.thresholds.faultRatePct`. Current key wins over legacy key even
68
+ when its configured value is invalid.
69
+
70
+ Every configured threshold must be a finite JSON number. If the selected path
71
+ is null, a string, a boolean, an object, an array, or otherwise non-finite,
72
+ fail threshold collection and report the exact path and source without echoing
73
+ the invalid value; never fall through to a legacy value or default. Never quote
74
+ or report either whole config. The fixed `jq` projection itself must redact
75
+ invalid configured content: it emits only presence, validity, and a fixed type
76
+ classification, and includes the numeric `value` field only for a finite number.
77
+ For a valid resolution, the monitor report must include the resolved value and
78
+ source. Report only a validated numeric resolved value and one fixed source enum:
79
+ `local-current`, `committed-current`, `local-legacy`, `committed-legacy`, or
80
+ `default`.
26
81
 
27
82
  ## Orchestration: agent team
28
83
 
@@ -15,14 +15,69 @@ Spot-check application health, **audit observability completeness**, and **file
15
15
  - `--all-gaps` — also file `recommended`-tier gaps (session replay, product analytics, etc.), not just `core`. Does not change anomaly thresholds.
16
16
  - `max_candidates=<n>` — cap tickets filed this run (default 20; config `monitor.maxCandidates`).
17
17
 
18
- ## Threshold compatibility
19
-
20
- Resolve monitor thresholds from `.lisa.config.local.json` first and `.lisa.config.json` second, using the local-overrides-global semantics from the `config-resolution` rule. For renamed thresholds, prefer the provider-neutral key when present, then fall back to the legacy provider-named key, then fall back to the documented default:
21
-
22
- - `monitor.thresholds.minEvents24h` falls back to `monitor.thresholds.sentryMinEvents24h`, then default `1`.
23
- - `monitor.thresholds.faultRatePct` falls back to `monitor.thresholds.xrayFaultRatePct`, then default `5`.
24
-
25
- A project carrying both keys uses the provider-neutral value. A project carrying only the legacy key keeps using that explicit legacy value; never silently substitute the new default just because the new key is absent.
18
+ ## Monitor threshold compatibility
19
+
20
+ Before resolving anomaly thresholds, inspect the committed
21
+ `.lisa.config.json` and local `.lisa.config.local.json` separately with `jq`.
22
+ Use a literal, fixed-path projection that returns presence and value for only
23
+ these four exact paths; do not use `Read`, `cat`, interpolation, or a filter
24
+ that emits either entire config into agent context:
25
+
26
+ - `monitor.thresholds.minEvents24h`, then
27
+ `monitor.thresholds.sentryMinEvents24h`.
28
+ - `monitor.thresholds.faultRatePct`, then
29
+ `monitor.thresholds.xrayFaultRatePct`.
30
+
31
+ Run this fixed filter once with literal final argument `.lisa.config.json` and
32
+ once with literal final argument `.lisa.config.local.json` when the respective
33
+ file exists:
34
+
35
+ ```bash
36
+ jq 'def threshold($object; $name):
37
+ if ($object | has($name)) then
38
+ ($object[$name] | type) as $type |
39
+ if $type == "number" then
40
+ if ($object[$name] | isfinite and (isnan | not)) then
41
+ {present: true, valid: true, type: "number", value: $object[$name]}
42
+ else
43
+ {present: true, valid: false, type: "non-finite-number"}
44
+ end
45
+ else
46
+ {present: true, valid: false, type: $type}
47
+ end
48
+ else
49
+ {present: false, valid: false, type: "missing"}
50
+ end;
51
+ (.monitor.thresholds | if type == "object" then . else {} end) as $t |
52
+ {
53
+ "monitor.thresholds.minEvents24h": threshold($t; "minEvents24h"),
54
+ "monitor.thresholds.sentryMinEvents24h": threshold($t; "sentryMinEvents24h"),
55
+ "monitor.thresholds.faultRatePct": threshold($t; "faultRatePct"),
56
+ "monitor.thresholds.xrayFaultRatePct": threshold($t; "xrayFaultRatePct")
57
+ }' .lisa.config.json
58
+ ```
59
+
60
+ A nonzero `jq` result fails threshold collection; do not treat an uninspectable
61
+ present file as if it were absent.
62
+
63
+ For each exact path, keep the raw `jq` presence/value result from each file;
64
+ do not inject defaults during this merge. Local presence overrides committed
65
+ presence per path. After that merge, resolve the current key before the legacy
66
+ key, then use default `1` for `monitor.thresholds.minEvents24h` or default `5`
67
+ for `monitor.thresholds.faultRatePct`. Current key wins over legacy key even
68
+ when its configured value is invalid.
69
+
70
+ Every configured threshold must be a finite JSON number. If the selected path
71
+ is null, a string, a boolean, an object, an array, or otherwise non-finite,
72
+ fail threshold collection and report the exact path and source without echoing
73
+ the invalid value; never fall through to a legacy value or default. Never quote
74
+ or report either whole config. The fixed `jq` projection itself must redact
75
+ invalid configured content: it emits only presence, validity, and a fixed type
76
+ classification, and includes the numeric `value` field only for a finite number.
77
+ For a valid resolution, the monitor report must include the resolved value and
78
+ source. Report only a validated numeric resolved value and one fixed source enum:
79
+ `local-current`, `committed-current`, `local-legacy`, `committed-legacy`, or
80
+ `default`.
26
81
 
27
82
  ## Orchestration: agent team
28
83
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,14 +15,69 @@ Spot-check application health, **audit observability completeness**, and **file
15
15
  - `--all-gaps` — also file `recommended`-tier gaps (session replay, product analytics, etc.), not just `core`. Does not change anomaly thresholds.
16
16
  - `max_candidates=<n>` — cap tickets filed this run (default 20; config `monitor.maxCandidates`).
17
17
 
18
- ## Threshold compatibility
19
-
20
- Resolve monitor thresholds from `.lisa.config.local.json` first and `.lisa.config.json` second, using the local-overrides-global semantics from the `config-resolution` rule. For renamed thresholds, prefer the provider-neutral key when present, then fall back to the legacy provider-named key, then fall back to the documented default:
21
-
22
- - `monitor.thresholds.minEvents24h` falls back to `monitor.thresholds.sentryMinEvents24h`, then default `1`.
23
- - `monitor.thresholds.faultRatePct` falls back to `monitor.thresholds.xrayFaultRatePct`, then default `5`.
24
-
25
- A project carrying both keys uses the provider-neutral value. A project carrying only the legacy key keeps using that explicit legacy value; never silently substitute the new default just because the new key is absent.
18
+ ## Monitor threshold compatibility
19
+
20
+ Before resolving anomaly thresholds, inspect the committed
21
+ `.lisa.config.json` and local `.lisa.config.local.json` separately with `jq`.
22
+ Use a literal, fixed-path projection that returns presence and value for only
23
+ these four exact paths; do not use `Read`, `cat`, interpolation, or a filter
24
+ that emits either entire config into agent context:
25
+
26
+ - `monitor.thresholds.minEvents24h`, then
27
+ `monitor.thresholds.sentryMinEvents24h`.
28
+ - `monitor.thresholds.faultRatePct`, then
29
+ `monitor.thresholds.xrayFaultRatePct`.
30
+
31
+ Run this fixed filter once with literal final argument `.lisa.config.json` and
32
+ once with literal final argument `.lisa.config.local.json` when the respective
33
+ file exists:
34
+
35
+ ```bash
36
+ jq 'def threshold($object; $name):
37
+ if ($object | has($name)) then
38
+ ($object[$name] | type) as $type |
39
+ if $type == "number" then
40
+ if ($object[$name] | isfinite and (isnan | not)) then
41
+ {present: true, valid: true, type: "number", value: $object[$name]}
42
+ else
43
+ {present: true, valid: false, type: "non-finite-number"}
44
+ end
45
+ else
46
+ {present: true, valid: false, type: $type}
47
+ end
48
+ else
49
+ {present: false, valid: false, type: "missing"}
50
+ end;
51
+ (.monitor.thresholds | if type == "object" then . else {} end) as $t |
52
+ {
53
+ "monitor.thresholds.minEvents24h": threshold($t; "minEvents24h"),
54
+ "monitor.thresholds.sentryMinEvents24h": threshold($t; "sentryMinEvents24h"),
55
+ "monitor.thresholds.faultRatePct": threshold($t; "faultRatePct"),
56
+ "monitor.thresholds.xrayFaultRatePct": threshold($t; "xrayFaultRatePct")
57
+ }' .lisa.config.json
58
+ ```
59
+
60
+ A nonzero `jq` result fails threshold collection; do not treat an uninspectable
61
+ present file as if it were absent.
62
+
63
+ For each exact path, keep the raw `jq` presence/value result from each file;
64
+ do not inject defaults during this merge. Local presence overrides committed
65
+ presence per path. After that merge, resolve the current key before the legacy
66
+ key, then use default `1` for `monitor.thresholds.minEvents24h` or default `5`
67
+ for `monitor.thresholds.faultRatePct`. Current key wins over legacy key even
68
+ when its configured value is invalid.
69
+
70
+ Every configured threshold must be a finite JSON number. If the selected path
71
+ is null, a string, a boolean, an object, an array, or otherwise non-finite,
72
+ fail threshold collection and report the exact path and source without echoing
73
+ the invalid value; never fall through to a legacy value or default. Never quote
74
+ or report either whole config. The fixed `jq` projection itself must redact
75
+ invalid configured content: it emits only presence, validity, and a fixed type
76
+ classification, and includes the numeric `value` field only for a finite number.
77
+ For a valid resolution, the monitor report must include the resolved value and
78
+ source. Report only a validated numeric resolved value and one fixed source enum:
79
+ `local-current`, `committed-current`, `local-legacy`, `committed-legacy`, or
80
+ `default`.
26
81
 
27
82
  ## Orchestration: agent team
28
83
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,14 +15,69 @@ Spot-check application health, **audit observability completeness**, and **file
15
15
  - `--all-gaps` — also file `recommended`-tier gaps (session replay, product analytics, etc.), not just `core`. Does not change anomaly thresholds.
16
16
  - `max_candidates=<n>` — cap tickets filed this run (default 20; config `monitor.maxCandidates`).
17
17
 
18
- ## Threshold compatibility
19
-
20
- Resolve monitor thresholds from `.lisa.config.local.json` first and `.lisa.config.json` second, using the local-overrides-global semantics from the `config-resolution` rule. For renamed thresholds, prefer the provider-neutral key when present, then fall back to the legacy provider-named key, then fall back to the documented default:
21
-
22
- - `monitor.thresholds.minEvents24h` falls back to `monitor.thresholds.sentryMinEvents24h`, then default `1`.
23
- - `monitor.thresholds.faultRatePct` falls back to `monitor.thresholds.xrayFaultRatePct`, then default `5`.
24
-
25
- A project carrying both keys uses the provider-neutral value. A project carrying only the legacy key keeps using that explicit legacy value; never silently substitute the new default just because the new key is absent.
18
+ ## Monitor threshold compatibility
19
+
20
+ Before resolving anomaly thresholds, inspect the committed
21
+ `.lisa.config.json` and local `.lisa.config.local.json` separately with `jq`.
22
+ Use a literal, fixed-path projection that returns presence and value for only
23
+ these four exact paths; do not use `Read`, `cat`, interpolation, or a filter
24
+ that emits either entire config into agent context:
25
+
26
+ - `monitor.thresholds.minEvents24h`, then
27
+ `monitor.thresholds.sentryMinEvents24h`.
28
+ - `monitor.thresholds.faultRatePct`, then
29
+ `monitor.thresholds.xrayFaultRatePct`.
30
+
31
+ Run this fixed filter once with literal final argument `.lisa.config.json` and
32
+ once with literal final argument `.lisa.config.local.json` when the respective
33
+ file exists:
34
+
35
+ ```bash
36
+ jq 'def threshold($object; $name):
37
+ if ($object | has($name)) then
38
+ ($object[$name] | type) as $type |
39
+ if $type == "number" then
40
+ if ($object[$name] | isfinite and (isnan | not)) then
41
+ {present: true, valid: true, type: "number", value: $object[$name]}
42
+ else
43
+ {present: true, valid: false, type: "non-finite-number"}
44
+ end
45
+ else
46
+ {present: true, valid: false, type: $type}
47
+ end
48
+ else
49
+ {present: false, valid: false, type: "missing"}
50
+ end;
51
+ (.monitor.thresholds | if type == "object" then . else {} end) as $t |
52
+ {
53
+ "monitor.thresholds.minEvents24h": threshold($t; "minEvents24h"),
54
+ "monitor.thresholds.sentryMinEvents24h": threshold($t; "sentryMinEvents24h"),
55
+ "monitor.thresholds.faultRatePct": threshold($t; "faultRatePct"),
56
+ "monitor.thresholds.xrayFaultRatePct": threshold($t; "xrayFaultRatePct")
57
+ }' .lisa.config.json
58
+ ```
59
+
60
+ A nonzero `jq` result fails threshold collection; do not treat an uninspectable
61
+ present file as if it were absent.
62
+
63
+ For each exact path, keep the raw `jq` presence/value result from each file;
64
+ do not inject defaults during this merge. Local presence overrides committed
65
+ presence per path. After that merge, resolve the current key before the legacy
66
+ key, then use default `1` for `monitor.thresholds.minEvents24h` or default `5`
67
+ for `monitor.thresholds.faultRatePct`. Current key wins over legacy key even
68
+ when its configured value is invalid.
69
+
70
+ Every configured threshold must be a finite JSON number. If the selected path
71
+ is null, a string, a boolean, an object, an array, or otherwise non-finite,
72
+ fail threshold collection and report the exact path and source without echoing
73
+ the invalid value; never fall through to a legacy value or default. Never quote
74
+ or report either whole config. The fixed `jq` projection itself must redact
75
+ invalid configured content: it emits only presence, validity, and a fixed type
76
+ classification, and includes the numeric `value` field only for a finite number.
77
+ For a valid resolution, the monitor report must include the resolved value and
78
+ source. Report only a validated numeric resolved value and one fixed source enum:
79
+ `local-current`, `committed-current`, `local-legacy`, `committed-legacy`, or
80
+ `default`.
26
81
 
27
82
  ## Orchestration: agent team
28
83
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,14 +15,69 @@ Spot-check application health, **audit observability completeness**, and **file
15
15
  - `--all-gaps` — also file `recommended`-tier gaps (session replay, product analytics, etc.), not just `core`. Does not change anomaly thresholds.
16
16
  - `max_candidates=<n>` — cap tickets filed this run (default 20; config `monitor.maxCandidates`).
17
17
 
18
- ## Threshold compatibility
19
-
20
- Resolve monitor thresholds from `.lisa.config.local.json` first and `.lisa.config.json` second, using the local-overrides-global semantics from the `config-resolution` rule. For renamed thresholds, prefer the provider-neutral key when present, then fall back to the legacy provider-named key, then fall back to the documented default:
21
-
22
- - `monitor.thresholds.minEvents24h` falls back to `monitor.thresholds.sentryMinEvents24h`, then default `1`.
23
- - `monitor.thresholds.faultRatePct` falls back to `monitor.thresholds.xrayFaultRatePct`, then default `5`.
24
-
25
- A project carrying both keys uses the provider-neutral value. A project carrying only the legacy key keeps using that explicit legacy value; never silently substitute the new default just because the new key is absent.
18
+ ## Monitor threshold compatibility
19
+
20
+ Before resolving anomaly thresholds, inspect the committed
21
+ `.lisa.config.json` and local `.lisa.config.local.json` separately with `jq`.
22
+ Use a literal, fixed-path projection that returns presence and value for only
23
+ these four exact paths; do not use `Read`, `cat`, interpolation, or a filter
24
+ that emits either entire config into agent context:
25
+
26
+ - `monitor.thresholds.minEvents24h`, then
27
+ `monitor.thresholds.sentryMinEvents24h`.
28
+ - `monitor.thresholds.faultRatePct`, then
29
+ `monitor.thresholds.xrayFaultRatePct`.
30
+
31
+ Run this fixed filter once with literal final argument `.lisa.config.json` and
32
+ once with literal final argument `.lisa.config.local.json` when the respective
33
+ file exists:
34
+
35
+ ```bash
36
+ jq 'def threshold($object; $name):
37
+ if ($object | has($name)) then
38
+ ($object[$name] | type) as $type |
39
+ if $type == "number" then
40
+ if ($object[$name] | isfinite and (isnan | not)) then
41
+ {present: true, valid: true, type: "number", value: $object[$name]}
42
+ else
43
+ {present: true, valid: false, type: "non-finite-number"}
44
+ end
45
+ else
46
+ {present: true, valid: false, type: $type}
47
+ end
48
+ else
49
+ {present: false, valid: false, type: "missing"}
50
+ end;
51
+ (.monitor.thresholds | if type == "object" then . else {} end) as $t |
52
+ {
53
+ "monitor.thresholds.minEvents24h": threshold($t; "minEvents24h"),
54
+ "monitor.thresholds.sentryMinEvents24h": threshold($t; "sentryMinEvents24h"),
55
+ "monitor.thresholds.faultRatePct": threshold($t; "faultRatePct"),
56
+ "monitor.thresholds.xrayFaultRatePct": threshold($t; "xrayFaultRatePct")
57
+ }' .lisa.config.json
58
+ ```
59
+
60
+ A nonzero `jq` result fails threshold collection; do not treat an uninspectable
61
+ present file as if it were absent.
62
+
63
+ For each exact path, keep the raw `jq` presence/value result from each file;
64
+ do not inject defaults during this merge. Local presence overrides committed
65
+ presence per path. After that merge, resolve the current key before the legacy
66
+ key, then use default `1` for `monitor.thresholds.minEvents24h` or default `5`
67
+ for `monitor.thresholds.faultRatePct`. Current key wins over legacy key even
68
+ when its configured value is invalid.
69
+
70
+ Every configured threshold must be a finite JSON number. If the selected path
71
+ is null, a string, a boolean, an object, an array, or otherwise non-finite,
72
+ fail threshold collection and report the exact path and source without echoing
73
+ the invalid value; never fall through to a legacy value or default. Never quote
74
+ or report either whole config. The fixed `jq` projection itself must redact
75
+ invalid configured content: it emits only presence, validity, and a fixed type
76
+ classification, and includes the numeric `value` field only for a finite number.
77
+ For a valid resolution, the monitor report must include the resolved value and
78
+ source. Report only a validated numeric resolved value and one fixed source enum:
79
+ `local-current`, `committed-current`, `local-legacy`, `committed-legacy`, or
80
+ `default`.
26
81
 
27
82
  ## Orchestration: agent team
28
83
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.217.3",
3
+ "version": "2.217.4",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -15,14 +15,69 @@ Spot-check application health, **audit observability completeness**, and **file
15
15
  - `--all-gaps` — also file `recommended`-tier gaps (session replay, product analytics, etc.), not just `core`. Does not change anomaly thresholds.
16
16
  - `max_candidates=<n>` — cap tickets filed this run (default 20; config `monitor.maxCandidates`).
17
17
 
18
- ## Threshold compatibility
19
-
20
- Resolve monitor thresholds from `.lisa.config.local.json` first and `.lisa.config.json` second, using the local-overrides-global semantics from the `config-resolution` rule. For renamed thresholds, prefer the provider-neutral key when present, then fall back to the legacy provider-named key, then fall back to the documented default:
21
-
22
- - `monitor.thresholds.minEvents24h` falls back to `monitor.thresholds.sentryMinEvents24h`, then default `1`.
23
- - `monitor.thresholds.faultRatePct` falls back to `monitor.thresholds.xrayFaultRatePct`, then default `5`.
24
-
25
- A project carrying both keys uses the provider-neutral value. A project carrying only the legacy key keeps using that explicit legacy value; never silently substitute the new default just because the new key is absent.
18
+ ## Monitor threshold compatibility
19
+
20
+ Before resolving anomaly thresholds, inspect the committed
21
+ `.lisa.config.json` and local `.lisa.config.local.json` separately with `jq`.
22
+ Use a literal, fixed-path projection that returns presence and value for only
23
+ these four exact paths; do not use `Read`, `cat`, interpolation, or a filter
24
+ that emits either entire config into agent context:
25
+
26
+ - `monitor.thresholds.minEvents24h`, then
27
+ `monitor.thresholds.sentryMinEvents24h`.
28
+ - `monitor.thresholds.faultRatePct`, then
29
+ `monitor.thresholds.xrayFaultRatePct`.
30
+
31
+ Run this fixed filter once with literal final argument `.lisa.config.json` and
32
+ once with literal final argument `.lisa.config.local.json` when the respective
33
+ file exists:
34
+
35
+ ```bash
36
+ jq 'def threshold($object; $name):
37
+ if ($object | has($name)) then
38
+ ($object[$name] | type) as $type |
39
+ if $type == "number" then
40
+ if ($object[$name] | isfinite and (isnan | not)) then
41
+ {present: true, valid: true, type: "number", value: $object[$name]}
42
+ else
43
+ {present: true, valid: false, type: "non-finite-number"}
44
+ end
45
+ else
46
+ {present: true, valid: false, type: $type}
47
+ end
48
+ else
49
+ {present: false, valid: false, type: "missing"}
50
+ end;
51
+ (.monitor.thresholds | if type == "object" then . else {} end) as $t |
52
+ {
53
+ "monitor.thresholds.minEvents24h": threshold($t; "minEvents24h"),
54
+ "monitor.thresholds.sentryMinEvents24h": threshold($t; "sentryMinEvents24h"),
55
+ "monitor.thresholds.faultRatePct": threshold($t; "faultRatePct"),
56
+ "monitor.thresholds.xrayFaultRatePct": threshold($t; "xrayFaultRatePct")
57
+ }' .lisa.config.json
58
+ ```
59
+
60
+ A nonzero `jq` result fails threshold collection; do not treat an uninspectable
61
+ present file as if it were absent.
62
+
63
+ For each exact path, keep the raw `jq` presence/value result from each file;
64
+ do not inject defaults during this merge. Local presence overrides committed
65
+ presence per path. After that merge, resolve the current key before the legacy
66
+ key, then use default `1` for `monitor.thresholds.minEvents24h` or default `5`
67
+ for `monitor.thresholds.faultRatePct`. Current key wins over legacy key even
68
+ when its configured value is invalid.
69
+
70
+ Every configured threshold must be a finite JSON number. If the selected path
71
+ is null, a string, a boolean, an object, an array, or otherwise non-finite,
72
+ fail threshold collection and report the exact path and source without echoing
73
+ the invalid value; never fall through to a legacy value or default. Never quote
74
+ or report either whole config. The fixed `jq` projection itself must redact
75
+ invalid configured content: it emits only presence, validity, and a fixed type
76
+ classification, and includes the numeric `value` field only for a finite number.
77
+ For a valid resolution, the monitor report must include the resolved value and
78
+ source. Report only a validated numeric resolved value and one fixed source enum:
79
+ `local-current`, `committed-current`, `local-legacy`, `committed-legacy`, or
80
+ `default`.
26
81
 
27
82
  ## Orchestration: agent team
28
83