@codyswann/lisa 8.2.0 → 8.2.2

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 (98) hide show
  1. package/all/copy-overwrite/scripts/lib/gate-pass-cache.mjs +4 -0
  2. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.d.mts +17 -0
  3. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs +71 -8
  4. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
  5. package/dist/cli/lisa-test-run-sweep.d.ts +3 -1
  6. package/dist/cli/lisa-test-run-sweep.d.ts.map +1 -1
  7. package/dist/cli/lisa-test-run-sweep.js +10 -7
  8. package/dist/cli/lisa-test-run-sweep.js.map +1 -1
  9. package/dist/core/lisa-owned-hash-ledger.json +12 -2
  10. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  11. package/dist/core/upstream-evidence-manifest.json +24 -9
  12. package/eslint-plugin-component-structure/__tests__/enforce-component-structure.test.js +10 -0
  13. package/package.json +4 -4
  14. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  16. package/plugins/lisa/.codex-plugin/scripts/stale-blocker-summary.mjs +20 -3
  17. package/plugins/lisa/.codex-plugin/scripts/stale-blocker-sweep.mjs +3 -0
  18. package/plugins/lisa/.codex-plugin/scripts/stale-blocker-verify.mjs +3 -2
  19. package/plugins/lisa/scripts/stale-blocker-summary.mjs +20 -3
  20. package/plugins/lisa/scripts/stale-blocker-sweep.mjs +3 -0
  21. package/plugins/lisa/scripts/stale-blocker-verify.mjs +3 -2
  22. package/plugins/lisa-agy/plugin.json +1 -1
  23. package/plugins/lisa-agy/scripts/stale-blocker-summary.mjs +20 -3
  24. package/plugins/lisa-agy/scripts/stale-blocker-sweep.mjs +3 -0
  25. package/plugins/lisa-agy/scripts/stale-blocker-verify.mjs +3 -2
  26. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  28. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  29. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  33. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-copilot/scripts/stale-blocker-summary.mjs +20 -3
  35. package/plugins/lisa-copilot/scripts/stale-blocker-sweep.mjs +3 -0
  36. package/plugins/lisa-copilot/scripts/stale-blocker-verify.mjs +3 -2
  37. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cursor/scripts/stale-blocker-summary.mjs +20 -3
  39. package/plugins/lisa-cursor/scripts/stale-blocker-sweep.mjs +3 -0
  40. package/plugins/lisa-cursor/scripts/stale-blocker-verify.mjs +3 -2
  41. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  43. package/plugins/lisa-devin/scripts/stale-blocker-summary.mjs +20 -3
  44. package/plugins/lisa-devin/scripts/stale-blocker-sweep.mjs +3 -0
  45. package/plugins/lisa-devin/scripts/stale-blocker-verify.mjs +3 -2
  46. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  48. package/plugins/lisa-expo-agy/plugin.json +1 -1
  49. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  53. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  55. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  60. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  62. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  63. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  67. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  69. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  70. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  74. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  76. package/plugins/lisa-rails-agy/plugin.json +1 -1
  77. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  81. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  83. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  84. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  88. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  90. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  91. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  95. package/plugins/src/base/scripts/stale-blocker-summary.mjs +20 -3
  96. package/plugins/src/base/scripts/stale-blocker-sweep.mjs +3 -0
  97. package/plugins/src/base/scripts/stale-blocker-verify.mjs +3 -2
  98. package/scripts/check-workflow-package-paths.mjs +32 -12
@@ -116,6 +116,10 @@ export const VOLATILE_LISA_ENV = Object.freeze([
116
116
  CACHE_ENV,
117
117
  "LISA_PUSHED_REFS_FILE",
118
118
  "LISA_CLEANUP_SWEPT",
119
+ // The temp roots that sweeper already covered (CodySwannGT/lisa#5095): set
120
+ // by the gate runner on a push and absent from a `lisa check`, so keying on
121
+ // it would make every push miss the passes `lisa check` recorded.
122
+ "LISA_CLEANUP_SWEPT_ROOTS",
119
123
  // The test-run owner marker (`<pid>:0`) a Rails pre-push command exports
120
124
  // before its payload (CodySwannGT/lisa#4603, #4613): a new pid every run.
121
125
  "LISA_TEST_RUN_OWNER",
@@ -70,6 +70,23 @@ export function main(
70
70
  }
71
71
  ): Promise<number>;
72
72
 
73
+ /** Env var listing the temp roots the live sweeper already swept. */
74
+ export const SWEPT_ROOTS_ENV: "LISA_CLEANUP_SWEPT_ROOTS";
75
+
76
+ /** The temp root a process with this environment writes to. */
77
+ export function tempRootOf(env: Record<string, string | undefined>): string;
78
+
79
+ /** What an entry point still has to sweep, and the marks it hands on. */
80
+ export function planStartOfRunSweep(
81
+ env: Readonly<Record<string, string | undefined>>,
82
+ root: string,
83
+ sweeper: number | null,
84
+ marker: string
85
+ ): {
86
+ readonly sweep: "all" | "temp" | "none";
87
+ readonly marks: Readonly<Record<string, string>>;
88
+ };
89
+
73
90
  /** Sweep once from a synchronous caller, never failing it. */
74
91
  export function runStartOfRunSweep(seams?: {
75
92
  env?: Record<string, string | undefined>;
@@ -62,6 +62,9 @@
62
62
  * an entry point skips the sweep — saying so in one line — only while that
63
63
  * exact process is still alive. A stale or copied value cannot disable the
64
64
  * sweep for good. A nested `lisa-test-run` still sets its own owner marker.
65
+ * The temp half is once per ROOT: {@link SWEPT_ROOTS_ENV} lists the roots the
66
+ * live sweeper covered, and an entry point whose `TMPDIR` is not among them
67
+ * still sweeps that root's temp entries.
65
68
  * @module scripts/lib/lisa-cleanup-sweep
66
69
  */
67
70
  import { lstat, opendir, realpath, rm } from "node:fs/promises";
@@ -110,6 +113,17 @@ export const LISA_PROTECTED_TEMP_PREFIXES = Object.freeze([
110
113
  */
111
114
  export const SWEPT_ENV = "LISA_CLEANUP_SWEPT";
112
115
 
116
+ /**
117
+ * The temp roots the live {@link SWEPT_ENV} sweeper has already swept, joined
118
+ * with `path.delimiter`. The process half needs one sweep per run, but the
119
+ * temp half needs one per root: `lisa-test-run` moves a run whose `TMPDIR` is
120
+ * too long for Unix sockets to `/private/tmp`, after the gate runner already
121
+ * swept the platform temp directory, so a marker that ignored the root left
122
+ * the root the tests actually write to unswept on every push
123
+ * (CodySwannGT/lisa#5095).
124
+ */
125
+ export const SWEPT_ROOTS_ENV = "LISA_CLEANUP_SWEPT_ROOTS";
126
+
113
127
  /** Default age, in hours, past which a Lisa temp entry is stale. */
114
128
  export const DEFAULT_MAX_AGE_HOURS = 24;
115
129
 
@@ -562,14 +576,56 @@ export function formatAlreadySwept(pid) {
562
576
  return `🧹 cleanup sweep already ran (pid ${pid}); skipping`;
563
577
  }
564
578
 
579
+ /**
580
+ * The temp root a process with this environment writes to, as `os.tmpdir()`
581
+ * would resolve it there.
582
+ * @param {Record<string, string | undefined>} env - That process's environment.
583
+ * @returns {string} Absolute root, no trailing separator.
584
+ */
585
+ export function tempRootOf(env) {
586
+ return path.resolve(env.TMPDIR || env.TMP || env.TEMP || tmpdir());
587
+ }
588
+
589
+ /**
590
+ * Decide what this entry point still has to sweep, and the marks it hands on.
591
+ *
592
+ * With no live sweeper it sweeps everything and owns the marks. With a live
593
+ * sweeper that already swept this root it sweeps nothing. With a live sweeper
594
+ * that swept other roots it sweeps this root's temp entries only — the
595
+ * sweeper already reaped orphans — and adds the root to the list.
596
+ * @param {Record<string, string | undefined>} env - Inherited environment.
597
+ * @param {string} root - Temp root this run writes to.
598
+ * @param {number | null} sweeper - Pid of the live sweeper, or null.
599
+ * @param {string} marker - This process's `<pid>:<start>`.
600
+ * @returns {{sweep: "all" | "temp" | "none", marks: Record<string, string>}} The plan.
601
+ */
602
+ export function planStartOfRunSweep(env, root, sweeper, marker) {
603
+ if (sweeper === null) {
604
+ return {
605
+ sweep: "all",
606
+ marks: { [SWEPT_ENV]: marker, [SWEPT_ROOTS_ENV]: root },
607
+ };
608
+ }
609
+ const swept = String(env[SWEPT_ROOTS_ENV] ?? "")
610
+ .split(path.delimiter)
611
+ .filter(Boolean);
612
+ if (swept.includes(root)) return { sweep: "none", marks: {} };
613
+ return {
614
+ sweep: "temp",
615
+ marks: { [SWEPT_ROOTS_ENV]: [...swept, root].join(path.delimiter) },
616
+ };
617
+ }
618
+
565
619
  /**
566
620
  * Sweep once from a synchronous caller (the gate runner), never failing it.
567
621
  *
568
622
  * Runs this file as a bounded child because the caller cannot await, forwards
569
623
  * its one summary line, and on any failure prints one line and returns. Skips,
570
- * with one line, when {@link SWEPT_ENV} names a sweeper that is still alive;
571
- * otherwise writes the CALLER's own `<pid>:<start>` there first, so everything
572
- * the caller starts afterwards skips for as long as the caller runs.
624
+ * with one line, when {@link SWEPT_ENV} names a sweeper that is still alive
625
+ * and {@link SWEPT_ROOTS_ENV} already lists this temp root; sweeps only this
626
+ * root's temp entries when the live sweeper swept other roots; otherwise
627
+ * writes the CALLER's own `<pid>:<start>` there first, so everything the
628
+ * caller starts afterwards skips for as long as the caller runs.
573
629
  * @param {object} [seams] - Test seams.
574
630
  * @param {Record<string, string | undefined>} [seams.env] - Environment, defaults to `process.env`.
575
631
  * @param {typeof boundedSpawnSync} [seams.spawn] - Child launcher.
@@ -587,12 +643,18 @@ export function runStartOfRunSweep(seams = {}) {
587
643
  liveSweeper: sweptBy = liveSweeper,
588
644
  } = seams;
589
645
  const sweeper = sweptBy(env[SWEPT_ENV]);
590
- if (sweeper !== null) {
646
+ const plan = planStartOfRunSweep(
647
+ env,
648
+ tempRootOf(env),
649
+ sweeper,
650
+ sweeper === null ? ownerMarker() : ""
651
+ );
652
+ if (plan.sweep === "none") {
591
653
  log(formatAlreadySwept(sweeper));
592
654
  return;
593
655
  }
594
- env[SWEPT_ENV] = ownerMarker();
595
- launchSweep(spawn, env, log);
656
+ Object.assign(env, plan.marks);
657
+ launchSweep(spawn, env, log, plan.sweep === "temp" ? ["--no-processes"] : []);
596
658
  }
597
659
 
598
660
  /**
@@ -600,13 +662,14 @@ export function runStartOfRunSweep(seams = {}) {
600
662
  * @param {typeof boundedSpawnSync} spawn - Child launcher.
601
663
  * @param {Record<string, string | undefined>} env - Child environment.
602
664
  * @param {(line: string) => void} log - Output sink.
665
+ * @param {readonly string[]} flags - Extra CLI flags, e.g. `--no-processes`.
603
666
  * @returns {void}
604
667
  */
605
- function launchSweep(spawn, env, log) {
668
+ function launchSweep(spawn, env, log, flags) {
606
669
  const didNotFinish = why =>
607
670
  log(`🧹 cleanup sweep did not finish (${why}); continuing`);
608
671
  try {
609
- const child = spawn(process.execPath, [SELF], {
672
+ const child = spawn(process.execPath, [SELF, ...flags], {
610
673
  encoding: "utf8",
611
674
  env: { ...env },
612
675
  stdio: ["ignore", "pipe", "pipe"],
@@ -253,7 +253,7 @@
253
253
  "children": []
254
254
  },
255
255
  "lib/gate-pass-cache.mjs": {
256
- "sha256": "db7d75cfd8cb62fb24a2643aa015aa0fdb33a6de110c56b638b27a2b869ddcb8",
256
+ "sha256": "d903661e976628151b6b1350314b85370ffc396f4f2416fd614f9160c70ed880",
257
257
  "staticImports": [
258
258
  "node:child_process",
259
259
  "node:crypto",
@@ -380,7 +380,7 @@
380
380
  "children": []
381
381
  },
382
382
  "lib/lisa-cleanup-sweep.mjs": {
383
- "sha256": "08450444d7f03d5a0e560f023a4e30db74821209ea45df41959b46636f6191bd",
383
+ "sha256": "329a6f2b549c829dec7fbc1f567427fc9f726082fb8bfda877f8e6366a23020b",
384
384
  "staticImports": [
385
385
  "lib/bounded-spawn.mjs",
386
386
  "lib/invoked-as-script.mjs",
@@ -22,7 +22,9 @@
22
22
  import { type SweepResult } from "../../all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs";
23
23
  /** Seams for {@link startOfRunSweep}; production uses the defaults. */
24
24
  export interface StartOfRunSweepSeams {
25
- readonly sweep?: () => Promise<SweepResult>;
25
+ readonly sweep?: (options: {
26
+ readonly orphans?: false;
27
+ }) => Promise<SweepResult>;
26
28
  readonly ownerMarker?: () => string;
27
29
  readonly write?: (line: string) => void;
28
30
  readonly timeoutMs?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"lisa-test-run-sweep.d.ts","sourceRoot":"","sources":["../../src/cli/lisa-test-run-sweep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,6DAA6D,CAAC;AAWrE,uEAAuE;AACvE,MA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,OAAO,KAAK,MAAM,GAAG,IAAI,CAAC;CAC1D;AA8ED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EACzD,KAAK,GAAE,oBAAyB,GAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAsB3C"}
@@ -19,7 +19,7 @@
19
19
  * gate runner allows is abandoned with one line.
20
20
  * @module cli/lisa-test-run-sweep
21
21
  */
22
- import { formatAlreadySwept, formatSummary, sweep as defaultSweep, SWEPT_ENV, } from "../../all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs";
22
+ import { formatAlreadySwept, formatSummary, planStartOfRunSweep, sweep as defaultSweep, SWEPT_ENV, tempRootOf, } from "../../all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs";
23
23
  import { formatOwnerMarker, liveSweeper as defaultLiveSweeper, OWNER_ENV, ownerMarkerFor, } from "../../all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.mjs";
24
24
  /** Longest the sweep may hold up a test run; matches the gate runner's child deadline. */
25
25
  const SWEEP_DEADLINE_MS = 15_000;
@@ -89,13 +89,16 @@ async function reportSweep(sweep, timeoutMs, write) {
89
89
  * @returns The variables the payload must inherit
90
90
  */
91
91
  export async function startOfRunSweep(environment, seams = {}) {
92
- const { sweep = () => defaultSweep(), ownerMarker = () => ownerMarkerFor(process.pid), write = (line) => process.stderr.write(line), timeoutMs = SWEEP_DEADLINE_MS, liveSweeper = defaultLiveSweeper, } = seams;
92
+ const { sweep = options => defaultSweep(options), ownerMarker = () => ownerMarkerFor(process.pid), write = (line) => process.stderr.write(line), timeoutMs = SWEEP_DEADLINE_MS, liveSweeper = defaultLiveSweeper, } = seams;
93
93
  const marker = markerOrFallback(ownerMarker, write);
94
94
  const sweeper = liveSweeper(environment[SWEPT_ENV]);
95
- if (sweeper === null)
96
- await reportSweep(sweep, timeoutMs, write);
97
- else
98
- write(`${formatAlreadySwept(sweeper)}\n`);
99
- return { [OWNER_ENV]: marker, [SWEPT_ENV]: marker };
95
+ const plan = planStartOfRunSweep(environment, tempRootOf(environment), sweeper, marker);
96
+ if (plan.sweep === "none")
97
+ write(`${formatAlreadySwept(sweeper ?? 0)}\n`);
98
+ else {
99
+ const options = plan.sweep === "temp" ? { orphans: false } : {};
100
+ await reportSweep(() => sweep(options), timeoutMs, write);
101
+ }
102
+ return { ...plan.marks, [OWNER_ENV]: marker, [SWEPT_ENV]: marker };
100
103
  }
101
104
  //# sourceMappingURL=lisa-test-run-sweep.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lisa-test-run-sweep.js","sourceRoot":"","sources":["../../src/cli/lisa-test-run-sweep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,KAAK,IAAI,YAAY,EACrB,SAAS,GAEV,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,iBAAiB,EACjB,WAAW,IAAI,kBAAkB,EACjC,SAAS,EACT,cAAc,GACf,MAAM,uEAAuE,CAAC;AAE/E,0FAA0F;AAC1F,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAWjC;;;;GAIG;AACH,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC;AAED;;;;;GAKG;AACH,SAAS,gBAAgB,CACvB,WAAyB,EACzB,KAA6B;IAE7B,IAAI,CAAC;QACH,OAAO,WAAW,EAAE,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,KAAK,CAAC,2BAA2B,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAClE,OAAO,iBAAiB,CAAC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AAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;AACrE,CAAC"}
@@ -778,6 +778,7 @@
778
778
  "7ac76be30b821b76aaba184810da9ea8f95b4303b44cbe7ad702fffc8c86bfe4",
779
779
  "b853877bd6e39eaac4d6e469ccec7e10b6f34ba1e4e5ef70376cc3971b908092",
780
780
  "cdb0f34a6cf6015718754bfedd0d0e7e58f9326a706ae2650da8d69a2102b635",
781
+ "d903661e976628151b6b1350314b85370ffc396f4f2416fd614f9160c70ed880",
781
782
  "db7d75cfd8cb62fb24a2643aa015aa0fdb33a6de110c56b638b27a2b869ddcb8",
782
783
  "e1db0421f446d88e5b9b0fd5f215dbb644de244b9cf953c4a9cfe45b200f329e"
783
784
  ],
@@ -879,10 +880,12 @@
879
880
  "scripts/lib/lisa-cleanup-sweep.d.mts": [
880
881
  "46fbb6730747ddee90b9275797de67cacfceab26ca14436460c11da638fb604b",
881
882
  "72cb6e3bfa87c3392d9f20c70f81d142064377a75ebee0ec2953eccdc03649ad",
882
- "daf47b952e09e9a25361bec7e7b0bfb61df7f669db842e7fdc318d2254efffe3"
883
+ "daf47b952e09e9a25361bec7e7b0bfb61df7f669db842e7fdc318d2254efffe3",
884
+ "e901069099f23eb32232f60068b055137079754173d88624ac51c77e852a15f0"
883
885
  ],
884
886
  "scripts/lib/lisa-cleanup-sweep.mjs": [
885
887
  "08450444d7f03d5a0e560f023a4e30db74821209ea45df41959b46636f6191bd",
888
+ "329a6f2b549c829dec7fbc1f567427fc9f726082fb8bfda877f8e6366a23020b",
886
889
  "48003f887ca744592f2c4f106563e14ce20f48a44b57fe141a52f8309b368157",
887
890
  "6c69bcf512fbe169e0b3c51546e21e72d6203a1d3c3ee5651fb0129fb7d57f91",
888
891
  "ad8dafbc3589df27e9cfc339e116a833f48eb9595b34a6973f3bd37911a992e3"
@@ -2859,9 +2862,11 @@
2859
2862
  "57d2072ff209a1188bcd89cf3276baadf626201182a672a4e477a96488bd3a0e",
2860
2863
  "5845a79f222c3db57d9d0a3da10688057c06af471dcaa057a0ca2e6f0e459e7a",
2861
2864
  "585ba8988ebc13363c86e054c80aab713f288e159d33e795305f52f851090431",
2865
+ "58a038333dd6b90786d61b65d5782392bd2f0b056cba02f8eef5f9a5bea29d7e",
2862
2866
  "5a4410c41b89aad08144dce26611d0d841923f0a8f4ca141703e6297be7423d4",
2863
2867
  "5c262922f3c0f5a4a04ae7765c3d4781cfb3aa3f974d6a14ff2efa260e56c7ce",
2864
2868
  "5c74faeb50ba7a04db3015852c7ca1513bddfa37f7a252226b4d750c94578531",
2869
+ "5cc2c4952c03dde8501372996435d38d3363b30f99cc2b50649af7f15545ec54",
2865
2870
  "5e3bdbf0f936409c9f619fae7efb7b2359899b4e05e51d94a8c8b36f2a60bd5b",
2866
2871
  "5e7d56bcdc2ec310ff7b3bc4bbd018d718977ec4b43e7b14f241e1c4824ae4e1",
2867
2872
  "5e8881466a13bdfcaefa5ae056c59e9fc869c85f83701ef3d770473aaece3b12",
@@ -3865,6 +3870,7 @@
3865
3870
  "7ac76be30b821b76aaba184810da9ea8f95b4303b44cbe7ad702fffc8c86bfe4",
3866
3871
  "b853877bd6e39eaac4d6e469ccec7e10b6f34ba1e4e5ef70376cc3971b908092",
3867
3872
  "cdb0f34a6cf6015718754bfedd0d0e7e58f9326a706ae2650da8d69a2102b635",
3873
+ "d903661e976628151b6b1350314b85370ffc396f4f2416fd614f9160c70ed880",
3868
3874
  "db7d75cfd8cb62fb24a2643aa015aa0fdb33a6de110c56b638b27a2b869ddcb8",
3869
3875
  "e1db0421f446d88e5b9b0fd5f215dbb644de244b9cf953c4a9cfe45b200f329e"
3870
3876
  ],
@@ -3966,10 +3972,12 @@
3966
3972
  "scripts/lib/lisa-cleanup-sweep.d.mts": [
3967
3973
  "46fbb6730747ddee90b9275797de67cacfceab26ca14436460c11da638fb604b",
3968
3974
  "72cb6e3bfa87c3392d9f20c70f81d142064377a75ebee0ec2953eccdc03649ad",
3969
- "daf47b952e09e9a25361bec7e7b0bfb61df7f669db842e7fdc318d2254efffe3"
3975
+ "daf47b952e09e9a25361bec7e7b0bfb61df7f669db842e7fdc318d2254efffe3",
3976
+ "e901069099f23eb32232f60068b055137079754173d88624ac51c77e852a15f0"
3970
3977
  ],
3971
3978
  "scripts/lib/lisa-cleanup-sweep.mjs": [
3972
3979
  "08450444d7f03d5a0e560f023a4e30db74821209ea45df41959b46636f6191bd",
3980
+ "329a6f2b549c829dec7fbc1f567427fc9f726082fb8bfda877f8e6366a23020b",
3973
3981
  "48003f887ca744592f2c4f106563e14ce20f48a44b57fe141a52f8309b368157",
3974
3982
  "6c69bcf512fbe169e0b3c51546e21e72d6203a1d3c3ee5651fb0129fb7d57f91",
3975
3983
  "ad8dafbc3589df27e9cfc339e116a833f48eb9595b34a6973f3bd37911a992e3"
@@ -5876,9 +5884,11 @@
5876
5884
  "57d2072ff209a1188bcd89cf3276baadf626201182a672a4e477a96488bd3a0e",
5877
5885
  "5845a79f222c3db57d9d0a3da10688057c06af471dcaa057a0ca2e6f0e459e7a",
5878
5886
  "585ba8988ebc13363c86e054c80aab713f288e159d33e795305f52f851090431",
5887
+ "58a038333dd6b90786d61b65d5782392bd2f0b056cba02f8eef5f9a5bea29d7e",
5879
5888
  "5a4410c41b89aad08144dce26611d0d841923f0a8f4ca141703e6297be7423d4",
5880
5889
  "5c262922f3c0f5a4a04ae7765c3d4781cfb3aa3f974d6a14ff2efa260e56c7ce",
5881
5890
  "5c74faeb50ba7a04db3015852c7ca1513bddfa37f7a252226b4d750c94578531",
5891
+ "5cc2c4952c03dde8501372996435d38d3363b30f99cc2b50649af7f15545ec54",
5882
5892
  "5e3bdbf0f936409c9f619fae7efb7b2359899b4e05e51d94a8c8b36f2a60bd5b",
5883
5893
  "5e7d56bcdc2ec310ff7b3bc4bbd018d718977ec4b43e7b14f241e1c4824ae4e1",
5884
5894
  "5e8881466a13bdfcaefa5ae056c59e9fc869c85f83701ef3d770473aaece3b12",
@@ -48,9 +48,9 @@ export const NIGHTLY_E2E_GUARD_BEHAVIOR_CERTIFICATES = Object.freeze({
48
48
  }),
49
49
  df39aa29b19817f67726107fec45078ce639f14a682cf6d5587ba37617f31ac9: Object.freeze({
50
50
  contractVersion: "1.9.0",
51
- packageVersions: Object.freeze(["8.2.0"]),
51
+ packageVersions: Object.freeze(["8.2.2"]),
52
52
  provenances: Object.freeze([
53
- "workspace package @codyswann/lisa@8.2.0 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
53
+ "workspace package @codyswann/lisa@8.2.2 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
54
54
  ]),
55
55
  }),
56
56
  dfd2fef680de5ef03e63075e8a61c62ca4d95cdfdff6201939b79c748d3397f6: Object.freeze({
@@ -42,7 +42,7 @@
42
42
  "all/copy-overwrite/scripts/lib/evidence-prune.mjs": "ae141d9a3e8d438365192f3c05de86002ebf36cd53ed63c639474317b9c007a4",
43
43
  "all/copy-overwrite/scripts/lib/evidence-release-capacity.mjs": "3426aeee6aed4ab7673c69a2812a4761f3bc5b5cf142af9050da77f182a93c76",
44
44
  "all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs": "16aa855e6eeaabb5d79db280a97d9a7ae60fbe849e66552b3bd74dd24dadfa34",
45
- "all/copy-overwrite/scripts/lib/gate-pass-cache.mjs": "db7d75cfd8cb62fb24a2643aa015aa0fdb33a6de110c56b638b27a2b869ddcb8",
45
+ "all/copy-overwrite/scripts/lib/gate-pass-cache.mjs": "d903661e976628151b6b1350314b85370ffc396f4f2416fd614f9160c70ed880",
46
46
  "all/copy-overwrite/scripts/lib/github-attestation-provider.mjs": "728dbf966535cf04d112c4b474357336c718c621da2bb247358d86672942dcf2",
47
47
  "all/copy-overwrite/scripts/lib/github-attestation-recovery.mjs": "59aacb76671aff4dfba49531dfeca0e796f30af74d8dc29a23c39221566ba064",
48
48
  "all/copy-overwrite/scripts/lib/github-attestation-verifier.mjs": "2718758807537e24c033474069ccaf61cc99403001764cd67bc73b144589f945",
@@ -56,8 +56,8 @@
56
56
  "all/copy-overwrite/scripts/lib/kill-marks.mjs": "abbfda1fafce96930e9e8b2e61d9ce0196692c1a71c83fe6340c9dfa97b3583a",
57
57
  "all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.d.mts": "e122ce4420e81d2d9f352e3f1400f686dcd73ee9996c99172e1a3d3035b485c6",
58
58
  "all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.mjs": "026d79cf54594e41cecd24d1f5df72dd2338b786dce485e69eeaa6b61dce1059",
59
- "all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.d.mts": "46fbb6730747ddee90b9275797de67cacfceab26ca14436460c11da638fb604b",
60
- "all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs": "08450444d7f03d5a0e560f023a4e30db74821209ea45df41959b46636f6191bd",
59
+ "all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.d.mts": "e901069099f23eb32232f60068b055137079754173d88624ac51c77e852a15f0",
60
+ "all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs": "329a6f2b549c829dec7fbc1f567427fc9f726082fb8bfda877f8e6366a23020b",
61
61
  "all/copy-overwrite/scripts/lib/npm-update-allocate.mjs": "a40eae9a3253e556159a5f152fe5bf15daa0b29d18f67f6199f4567dde700380",
62
62
  "all/copy-overwrite/scripts/lib/npm-update-authorization.mjs": "4d42d700761f61b7f2c94173fc23e0d3611c480d1a9e94515e5fb6417802e596",
63
63
  "all/copy-overwrite/scripts/lib/npm-update-broker-client.mjs": "bb785fc64de1dfeb09241d228c11eaf7aaf3821bafa96da4bc37f2bac28cd8d0",
@@ -210,7 +210,7 @@
210
210
  "all/copy-overwrite/scripts/npm-updater-gate-runtime.json": "5c2af03360bfd59df26934ea0a2e47baa3999cbaa0ad3a9a03dd74575589218d",
211
211
  "all/copy-overwrite/scripts/npm-updater-gate-supervisor.c": "e7d6ed62ce27a466a097c879372b8c2ec18731371e682d04542de4d83f3daa00",
212
212
  "all/copy-overwrite/scripts/npm-updater-gate.Dockerfile": "850a4ee809d49e3d9da6bdd674cb43e4f5a6dcfa0aa73116b1a43caeed42748c",
213
- "all/copy-overwrite/scripts/npm-updater-helper-graph.json": "7aed270e8266d828900d58c2731fd66e5a1fa00ea6263e7853b684bcad8fe44a",
213
+ "all/copy-overwrite/scripts/npm-updater-helper-graph.json": "58a038333dd6b90786d61b65d5782392bd2f0b056cba02f8eef5f9a5bea29d7e",
214
214
  "all/copy-overwrite/scripts/review-evidence-event.mjs": "61720cafcbab2d0193cb5fb377264008a765f338e12415b7adf30322342f634c",
215
215
  "all/copy-overwrite/scripts/schemas/lisa-command-envelope.v1.schema.json": "d153b7c2953a30f180e38f09e98240c63327f5196eeba9bdf545e5a1f125a879",
216
216
  "all/copy-overwrite/scripts/schemas/lisa-state-contract.v1.schema.json": "6b7afe4ffeba8aaa53871d8855172f7eacde05953b1321145218ec638ff5c1c4",
@@ -258,7 +258,7 @@
258
258
  "eslint-plugin-code-organization/package.json": "98ddbb102c1ab145130b90f8bbc1cf274decf58ff85fa4c0993fdaf2c71bb1eb",
259
259
  "eslint-plugin-code-organization/rules/enforce-statement-order.js": "f6119f29658b426ac7305343b7fa2b4fffecc405390597f61501f1da88f51a4f",
260
260
  "eslint-plugin-component-structure/README.md": "7c4a6bddb07d36816bcecfa6213d5b55fc2df0169dc54b3370115e6d12c45234",
261
- "eslint-plugin-component-structure/__tests__/enforce-component-structure.test.js": "f507216be4bf630563e28010a40cb99e6a5756c3b6f5b83647775fd1ab4f33ea",
261
+ "eslint-plugin-component-structure/__tests__/enforce-component-structure.test.js": "921c7951328ad8be593925412b704978e6a5bdbf1c6eeb2bbaa674d0473d1292",
262
262
  "eslint-plugin-component-structure/__tests__/no-hooks-in-view.test.js": "f9e955f91821be459c9670037d82abb030009a8fe243d5505a14c5b6d5ccae46",
263
263
  "eslint-plugin-component-structure/__tests__/no-return-in-view.test.js": "7776eadc79d2c5b8214f9f6c4e62a215362444ad16f8e9b078ca6dd94c8f0cac",
264
264
  "eslint-plugin-component-structure/__tests__/plugin-index.test.js": "26494d453552a49ae1ca720515ff3aa68a1a050c851c190d0052a87f34a41a9a",
@@ -725,9 +725,9 @@
725
725
  "plugins/src/base/scripts/stale-blocker-edges.mjs": "662e5c4750eb5103ce4519d522d2241824e5c488abebbb5f8abe2d6b6564154e",
726
726
  "plugins/src/base/scripts/stale-blocker-pending.mjs": "7dee0b7c0809a3f6aed6bc3c77eb9de8d89f95b6fb5b178bf254257d9144cbeb",
727
727
  "plugins/src/base/scripts/stale-blocker-restore.mjs": "89ba35ebddb878f1f7f6089f4f51a9b368f410392bd903c1da35d0b8e220290d",
728
- "plugins/src/base/scripts/stale-blocker-summary.mjs": "b87f34fbffd308ae027d3ce7464574e7c4c159c8f24f60d3559605590a9773ba",
729
- "plugins/src/base/scripts/stale-blocker-sweep.mjs": "c14a73382e8493c1e0dbb521a660fc9c4dd2172365eb03c3dd0b8ceb84206c95",
730
- "plugins/src/base/scripts/stale-blocker-verify.mjs": "a79929b0fa4eed83da4e079c7bee162838dc870651c2e19c65bd1936463cb1f3",
728
+ "plugins/src/base/scripts/stale-blocker-summary.mjs": "8ca9a6f7bd6c2df7326972042661b40cf93b80c57e284ac01220964688b74480",
729
+ "plugins/src/base/scripts/stale-blocker-sweep.mjs": "33a31ccd36ebc7fa4d1924f14902716065344bc71d8caa1932b6952090576d5e",
730
+ "plugins/src/base/scripts/stale-blocker-verify.mjs": "e2063d29a4fca67941e2a73ec91050669a5adce16e04c11bcf696de0c5f35132",
731
731
  "plugins/src/base/skills/lisa-acceptance-criteria/SKILL.md": "ddcb4f10b092f27bbff67782cc4472c3a3c8b8fa08507ee67ca5d1ea4f0f1a20",
732
732
  "plugins/src/base/skills/lisa-agent-design-best-practices/SKILL.md": "08647e365ad48e063fa69d5bf1671cc2947b200bebdaa4f645b7dc1689bd95b8",
733
733
  "plugins/src/base/skills/lisa-agent-ready/SKILL.md": "d41e2c4a917861d24a29866e1d373984d2d182ff8f4bbd5592acd68cfce536ef",
@@ -1376,7 +1376,7 @@
1376
1376
  "scripts/check-whole-output-guards.mjs": "3c694de42c681ff25ba5eaa18abdc48d39c6fa8bfd27f48d0e5cdf71c3733a81",
1377
1377
  "scripts/check-workflow-contract-assertions.mjs": "ea31f1ddaf2cea36177dc1415e8dd5e324b2c36d26453c43f4ae100cbf68471d",
1378
1378
  "scripts/check-workflow-load-failures.mjs": "31e8404316dc95527ff87ee2bcbc7d19bcf70f6cb54b608fd7235e9c767506a1",
1379
- "scripts/check-workflow-package-paths.mjs": "6f0148fe804d4c36eddb137b6c16d4d49694e287303e38a95bfc82d49480954a",
1379
+ "scripts/check-workflow-package-paths.mjs": "863b39f58644bc3bbf4f4f6d4870dd03e89deafd78f442bcbef2bce8a2c4b1f5",
1380
1380
  "scripts/classify-markdown-assertions.mjs": "4b5ec8747ade3767b7d4f5b8bccf3e5a46f8cc296ad4397dabd89e4768ac68cd",
1381
1381
  "scripts/classify-phrase-tests.mjs": "a7a4a0516d79b756dce6271d2709758155bd2fdb935f193d3148c55151687520",
1382
1382
  "scripts/claude-remote-setup.sh": "9d0f92aa2c5c7ea31fff0af5299e2ded3468b13650d14ed3eed3c5fc174f2bac",
@@ -10631,6 +10631,7 @@
10631
10631
  "tests/helpers/audit-skill.ts": true,
10632
10632
  "tests/helpers/auto-update-fixture.ts": true,
10633
10633
  "tests/helpers/bounded-bash.ts": true,
10634
+ "tests/helpers/canonical-entry.ts": true,
10634
10635
  "tests/helpers/child-bound-scan.ts": true,
10635
10636
  "tests/helpers/child-output-tail.ts": true,
10636
10637
  "tests/helpers/cleanup-sweep-skip.ts": true,
@@ -10685,6 +10686,7 @@
10685
10686
  "tests/helpers/nightly-e2e-selection-harness.ts": true,
10686
10687
  "tests/helpers/nightly-e2e-tracking-harness.ts": true,
10687
10688
  "tests/helpers/nightly-e2e-waiver-harness.ts": true,
10689
+ "tests/helpers/owned-temp-dirs.ts": true,
10688
10690
  "tests/helpers/package-lisa-apply-harness.ts": true,
10689
10691
  "tests/helpers/package-mention-fixture.ts": true,
10690
10692
  "tests/helpers/pinned-revision.ts": true,
@@ -10841,6 +10843,7 @@
10841
10843
  "tests/integration/expo-provider-workflow.test.ts": true,
10842
10844
  "tests/integration/facade-proof-not-step.test.ts": true,
10843
10845
  "tests/integration/failure-issue-workflows.test.ts": true,
10846
+ "tests/integration/fixture-temp-cleanup.test.ts": true,
10844
10847
  "tests/integration/floor-collisions-gate-fail-closed.test.ts": true,
10845
10848
  "tests/integration/fs-probe-diagnostic.test.ts": true,
10846
10849
  "tests/integration/gate-config-validity-job.test.ts": true,
@@ -12064,6 +12067,7 @@
12064
12067
  "tests/unit/helpers/io-latency-budget.test.ts": true,
12065
12068
  "tests/unit/helpers/latch.test.ts": true,
12066
12069
  "tests/unit/helpers/mutation-kill-counts.test.ts": true,
12070
+ "tests/unit/helpers/owned-temp-dirs.test.ts": true,
12067
12071
  "tests/unit/helpers/staged-dependency-conformance.test.ts": true,
12068
12072
  "tests/unit/helpers/stderr-sync.test.ts": true,
12069
12073
  "tests/unit/helpers/supervised-unix-fixture.test.ts": true,
@@ -13266,6 +13270,7 @@
13266
13270
  "tests/unit/strategies/shipped-prerequisite-check.test.ts": true,
13267
13271
  "tests/unit/strategies/skill-machine-read-names.test.ts": true,
13268
13272
  "tests/unit/strategies/stale-blocker-confirm.test.ts": true,
13273
+ "tests/unit/strategies/stale-blocker-cross-project.test.ts": true,
13269
13274
  "tests/unit/strategies/stale-blocker-cycles.test.ts": true,
13270
13275
  "tests/unit/strategies/stale-blocker-fixtures.ts": true,
13271
13276
  "tests/unit/strategies/stale-blocker-landed.test.ts": true,
@@ -14696,6 +14701,7 @@
14696
14701
  "0ee8a739edb51feea8405fc244f45aacc58735b3": true,
14697
14702
  "0eea737303fdb21926ce13cb22f9611cef48bb9f": true,
14698
14703
  "0eea7bdda41e36e52f157c178472c06fc1dd8344": true,
14704
+ "0eeba571453e28092bd2fb3fe03beb3793ec38bd": true,
14699
14705
  "0eeea686669fc2f6fae1deea8fe084bdb7b5ddf2": true,
14700
14706
  "0eef242b42a1ea0a40b4fbd932a1309aebe02057": true,
14701
14707
  "0ef57c9ed31be1fbe500cf1a1f53f6a59f687361": true,
@@ -16491,6 +16497,7 @@
16491
16497
  "29ff3dfc7784595508c5851a6f2211fcd04a9996": true,
16492
16498
  "2a0261b888417c615a50aece08939ab73ce18366": true,
16493
16499
  "2a04fa357bbfa4eb00277957884090680c6068ac": true,
16500
+ "2a09ba7fb8e13da873ce483f5d2cfcce7dc9ac47": true,
16494
16501
  "2a0e9e2861b54fca16cc57c2da0792bcce8f6381": true,
16495
16502
  "2a1777df939df9183d0dbfdc1d9e801badaa309f": true,
16496
16503
  "2a1eb1a7f4348d49ea0b989f8ed53ed2a04cd281": true,
@@ -18905,6 +18912,7 @@
18905
18912
  "4f92e342eef186e89731cefadbe4ffd799dff741": true,
18906
18913
  "4f9408e30c7f1c5de291db2b2c6e016aba881dd9": true,
18907
18914
  "4f955e6fce377e6105195428e2e4dd6beb46ba13": true,
18915
+ "4f96a4a4d15a06b70ce7b36b2559fda943da8791": true,
18908
18916
  "4f9a4033c4cce86e46a50e27c8613e90ba2a41c4": true,
18909
18917
  "4f9b5db7d581ee431c408530ff2e8d441bf607fc": true,
18910
18918
  "4f9cee3d282cee0fb6f4d9a541c74886c506361c": true,
@@ -19167,6 +19175,7 @@
19167
19175
  "53a3b7ff3ab946dec6b56da78795cbb1018c277c": true,
19168
19176
  "53a5118ec1bd7a2bc8efa58da74a3cdbe7887ef4": true,
19169
19177
  "53b110d34f9ea985b7d94a3d8004719df1dade23": true,
19178
+ "53b50d6935e5c59bbfc9d7d88a5d27938a1b1bf7": true,
19170
19179
  "53bb5c2d3aaceb76f28df9b73b8c0b331928d776": true,
19171
19180
  "53bf5b270087871a56bd0ac04cf4227e24a1f501": true,
19172
19181
  "53bfc2d83b7686b13a478020db6b5a4725685ef6": true,
@@ -19913,6 +19922,7 @@
19913
19922
  "5f30ab85e0765d1863a1aa933cceda0035cd0a42": true,
19914
19923
  "5f39b720952701ae9d15651c0dfc56c8d7f50cf6": true,
19915
19924
  "5f40c37e7b3d865d18161f7333ab10bc064c72aa": true,
19925
+ "5f41031f7e512872dc655c093fa790836860fb71": true,
19916
19926
  "5f4442db8a4648b7623d23c7d50319371dd46e14": true,
19917
19927
  "5f47d40b918e2642c418f20db5550f227e4721a5": true,
19918
19928
  "5f4ebd5e8ca8c4d5d49de0bf10e09428877bdd85": true,
@@ -24723,6 +24733,7 @@
24723
24733
  "a7be074dd82b351df2681f9885d8a60d205ceaba": true,
24724
24734
  "a7bf6aab214fbdd982f6d0b65f9fbe307c05cc78": true,
24725
24735
  "a7c163bd48cffb1fb9b2e9db3755021662a6bc2c": true,
24736
+ "a7c1995327c8c6afd13cfb0164ee70780abc953b": true,
24726
24737
  "a7c24a601266246ad2f1619d376ceb6e63a020d1": true,
24727
24738
  "a7c8f29f1bc4d1f7b14bc655b26f8011b8f5e1c8": true,
24728
24739
  "a7cc38651c16f94b5c5327c7723696fba8176eb7": true,
@@ -25211,6 +25222,7 @@
25211
25222
  "aed6c26db21033d6dd465ea9cd5072ef362b2ad7": true,
25212
25223
  "aeda9d8078b5a25cd27958cec9895442d71931b9": true,
25213
25224
  "aedc3ac1abb0fd6f1c9760750007dc3e3978178d": true,
25225
+ "aee87d55483faf5e080ee40fd3ef585221b38306": true,
25214
25226
  "aee9ba7f2e9b99a08609ee00b7b65aa658b26b1f": true,
25215
25227
  "aeed71dba0e6f91e12e1936eaac1db0d2f4f5cdc": true,
25216
25228
  "aef41423c712f8f745b81c82757f67d0fea2e57d": true,
@@ -25324,6 +25336,7 @@
25324
25336
  "b0947a3f7427ae5ac4d3ee597d550ba11ff5393b": true,
25325
25337
  "b099605b2713e512028d3d2771377e158c22e167": true,
25326
25338
  "b0a5d0781ed1e9df6f67ec99c5c488d0830c083c": true,
25339
+ "b0a751f1d05ab8f90513898cb1750e174eb23ab7": true,
25327
25340
  "b0af2e8f641f9d9e162dafb2a1bc0bb600f141b0": true,
25328
25341
  "b0b1f3da964d490677b398524e1ee90825ba0e41": true,
25329
25342
  "b0b1f9c2fd4f3a3a50b98377436dc70842cd01f9": true,
@@ -27992,6 +28005,7 @@
27992
28005
  "d8155a0a4558135d70060d5242957b4b86171657": true,
27993
28006
  "d82037732e2a2c80ec34ce39235ba7d4b1d078aa": true,
27994
28007
  "d8207f81acd55a9f8b545aeb4808154e6d6ee3a6": true,
28008
+ "d82364779d9bb2d52196a9b30bc75e60952b5979": true,
27995
28009
  "d82739239aaa89edb7847efae9e836469e42aefe": true,
27996
28010
  "d82847e4ad05a4967b64e12ec556b01d3b5e6fee": true,
27997
28011
  "d829c6f4fdbef07cb6bf464dc46e12b44a7eefb4": true,
@@ -29382,6 +29396,7 @@
29382
29396
  "ed8198dfdd4999eae1c2b37474b1ac88fbcd40d8": true,
29383
29397
  "ed82af203a1a99b736b316ae8bfe8adaf380d749": true,
29384
29398
  "ed875826dcb24478217cb369fc880534856b39a9": true,
29399
+ "ed882a4aad6ee0387c4866e53bb8e41a398e150f": true,
29385
29400
  "ed900d3721ccf08723d638a710991524fb64e793": true,
29386
29401
  "ed931d8c151f601096a1f641f3602323301de832": true,
29387
29402
  "ed954b60657e7affb198bb57ca64e8aa031eaa05": true,
@@ -22,6 +22,15 @@ const ruleTester = new RuleTester({
22
22
  },
23
23
  });
24
24
 
25
+ /** Fixture roots this file created; removed when it finishes (CodySwannGT/lisa#5095). */
26
+ const fixtureRoots = [];
27
+
28
+ afterAll(() => {
29
+ fixtureRoots.forEach(root =>
30
+ fs.rmSync(root, { force: true, maxRetries: 10, recursive: true })
31
+ );
32
+ });
33
+
25
34
  /**
26
35
  * Creates an index file fixture whose component siblings are intentionally missing.
27
36
  * @param {string} componentName Component directory name
@@ -46,6 +55,7 @@ function createComponentIndexFixture(componentName) {
46
55
  filename,
47
56
  `export { default } from "./${componentName}View";\n`
48
57
  );
58
+ fixtureRoots.push(rootDir);
49
59
  return filename;
50
60
  }
51
61
 
package/package.json CHANGED
@@ -199,7 +199,7 @@
199
199
  "zod": "^4.6.7"
200
200
  },
201
201
  "name": "@codyswann/lisa",
202
- "version": "8.2.0",
202
+ "version": "8.2.2",
203
203
  "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",
204
204
  "main": "dist/index.js",
205
205
  "exports": {
@@ -370,7 +370,7 @@
370
370
  "optional": true
371
371
  }
372
372
  },
373
- "lisaReleaseCommit": "d82364779d9bb2d52196a9b30bc75e60952b5979",
374
- "gitHead": "d82364779d9bb2d52196a9b30bc75e60952b5979",
375
- "lisaReleaseTag": "v8.2.0"
373
+ "lisaReleaseCommit": "47f7ed1386d59ad9d82061bf3be9236876f94ce9",
374
+ "gitHead": "47f7ed1386d59ad9d82061bf3be9236876f94ce9",
375
+ "lisaReleaseTag": "v8.2.2"
376
376
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -8,6 +8,8 @@
8
8
  * @module stale-blocker-summary
9
9
  */
10
10
 
11
+ import { isResolved } from "./stale-blocker-edges.mjs";
12
+
11
13
  /**
12
14
  * What one sweep found.
13
15
  * @typedef {object} StaleLinkReport
@@ -18,7 +20,8 @@
18
20
  * @property {number} itemsCleared - Items with a planned removal
19
21
  * @property {string[]} claimable - Ready items nothing holds any more
20
22
  * @property {string[]} deferred - Items left for the next cycle
21
- * @property {number} realBlockers - Open blockers in the same project
23
+ * @property {number} realBlockers - Links that still hold their item: an
24
+ * open blocker in this project or in another one
22
25
  * @property {number} itemsWithRealBlockers - Items with one
23
26
  * @property {number} crossProject - Links to another project, left alone
24
27
  * @property {{ ref: string, blocker: string }[]} inaccessible - Blockers that could not be read
@@ -41,6 +44,19 @@ const size = list => list.length;
41
44
  const pairs = (ref, edges) =>
42
45
  edges.map(edge => ({ ref, blocker: edge.blockerRef }));
43
46
 
47
+ /**
48
+ * The links that hold an item as real blockers: every open one in this
49
+ * project, and every open one in another project. A cross-project link the
50
+ * sweep keeps because it cannot touch another project still holds the item
51
+ * while its blocker is open, so it is counted; a finished one holds nothing.
52
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[] }} groups
53
+ * @returns {object[]}
54
+ */
55
+ export const holdingReal = groups => [
56
+ ...(groups.real ?? []),
57
+ ...(groups.crossProject ?? []).filter(edge => !isResolved(edge.verdict)),
58
+ ];
59
+
44
60
  /** How an item whose own blocker list could not be read is reported. */
45
61
  export const UNREAD_LIST = "its blocker list";
46
62
 
@@ -66,8 +82,9 @@ export function tallySweep(judged, plans, deferred) {
66
82
  .filter(plan => plan.becomesClaimable)
67
83
  .map(plan => plan.ref),
68
84
  deferred: [...deferred],
69
- realBlockers: open.reduce((sum, e) => sum + size(e.sorted.real), 0),
70
- itemsWithRealBlockers: open.filter(e => size(e.sorted.real) > 0).length,
85
+ realBlockers: open.reduce((sum, e) => sum + size(holdingReal(e.sorted)), 0),
86
+ itemsWithRealBlockers: open.filter(e => size(holdingReal(e.sorted)) > 0)
87
+ .length,
71
88
  crossProject: open.reduce((sum, e) => sum + size(e.sorted.crossProject), 0),
72
89
  inaccessible: [
73
90
  ...open
@@ -370,6 +370,9 @@ export function planStaleLinkSweep(input) {
370
370
  // An item whose blocker list could not be read (a failed native
371
371
  // dependency read) plans nothing: it is reported, never touched.
372
372
  entry.item.relationsRead &&
373
+ // An item closed since it was listed is never cleaned (Out of
374
+ // Scope), so it never takes a cap slot either; confirm refuses it too.
375
+ !entry.item.closed &&
373
376
  entry.item.statusKnown &&
374
377
  !entry.inBlocked &&
375
378
  entry.sorted.stale.length > 0