@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
@@ -25,6 +25,7 @@ import {
25
25
  } from "./stale-blocker-comment.mjs";
26
26
  import { isResolved } from "./stale-blocker-edges.mjs";
27
27
  import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
28
+ import { holdingReal } from "./stale-blocker-summary.mjs";
28
29
  import {
29
30
  itemRoles,
30
31
  normalizeStaleLinkItem,
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
80
81
  }
81
82
 
82
83
  /**
83
- * @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
85
  * @returns {{ real: number, inaccessible: string[] }}
85
86
  */
86
87
  const holding = groups => ({
87
- real: (groups.real ?? []).length,
88
+ real: holdingReal(groups).length,
88
89
  inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
89
90
  });
90
91
 
@@ -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
@@ -25,6 +25,7 @@ import {
25
25
  } from "./stale-blocker-comment.mjs";
26
26
  import { isResolved } from "./stale-blocker-edges.mjs";
27
27
  import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
28
+ import { holdingReal } from "./stale-blocker-summary.mjs";
28
29
  import {
29
30
  itemRoles,
30
31
  normalizeStaleLinkItem,
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
80
81
  }
81
82
 
82
83
  /**
83
- * @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
85
  * @returns {{ real: number, inaccessible: string[] }}
85
86
  */
86
87
  const holding = groups => ({
87
- real: (groups.real ?? []).length,
88
+ real: holdingReal(groups).length,
88
89
  inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
89
90
  });
90
91
 
@@ -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
@@ -25,6 +25,7 @@ import {
25
25
  } from "./stale-blocker-comment.mjs";
26
26
  import { isResolved } from "./stale-blocker-edges.mjs";
27
27
  import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
28
+ import { holdingReal } from "./stale-blocker-summary.mjs";
28
29
  import {
29
30
  itemRoles,
30
31
  normalizeStaleLinkItem,
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
80
81
  }
81
82
 
82
83
  /**
83
- * @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
85
  * @returns {{ real: number, inaccessible: string[] }}
85
86
  */
86
87
  const holding = groups => ({
87
- real: (groups.real ?? []).length,
88
+ real: holdingReal(groups).length,
88
89
  inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
89
90
  });
90
91
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "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
@@ -25,6 +25,7 @@ import {
25
25
  } from "./stale-blocker-comment.mjs";
26
26
  import { isResolved } from "./stale-blocker-edges.mjs";
27
27
  import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
28
+ import { holdingReal } from "./stale-blocker-summary.mjs";
28
29
  import {
29
30
  itemRoles,
30
31
  normalizeStaleLinkItem,
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
80
81
  }
81
82
 
82
83
  /**
83
- * @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
85
  * @returns {{ real: number, inaccessible: string[] }}
85
86
  */
86
87
  const holding = groups => ({
87
- real: (groups.real ?? []).length,
88
+ real: holdingReal(groups).length,
88
89
  inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
89
90
  });
90
91
 
@@ -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
@@ -25,6 +25,7 @@ import {
25
25
  } from "./stale-blocker-comment.mjs";
26
26
  import { isResolved } from "./stale-blocker-edges.mjs";
27
27
  import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
28
+ import { holdingReal } from "./stale-blocker-summary.mjs";
28
29
  import {
29
30
  itemRoles,
30
31
  normalizeStaleLinkItem,
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
80
81
  }
81
82
 
82
83
  /**
83
- * @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
85
  * @returns {{ real: number, inaccessible: string[] }}
85
86
  */
86
87
  const holding = groups => ({
87
- real: (groups.real ?? []).length,
88
+ real: holdingReal(groups).length,
88
89
  inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
89
90
  });
90
91
 
@@ -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
@@ -25,6 +25,7 @@ import {
25
25
  } from "./stale-blocker-comment.mjs";
26
26
  import { isResolved } from "./stale-blocker-edges.mjs";
27
27
  import { splitReopened, verdictNow } from "./stale-blocker-restore.mjs";
28
+ import { holdingReal } from "./stale-blocker-summary.mjs";
28
29
  import {
29
30
  itemRoles,
30
31
  normalizeStaleLinkItem,
@@ -80,11 +81,11 @@ function withLaterVerdicts(sorted, later) {
80
81
  }
81
82
 
82
83
  /**
83
- * @param {{ real?: readonly object[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
+ * @param {{ real?: readonly object[], crossProject?: readonly { verdict: string }[], inaccessible?: readonly { blockerRef: string }[] }} groups
84
85
  * @returns {{ real: number, inaccessible: string[] }}
85
86
  */
86
87
  const holding = groups => ({
87
- real: (groups.real ?? []).length,
88
+ real: holdingReal(groups).length,
88
89
  inaccessible: (groups.inaccessible ?? []).map(edge => edge.blockerRef),
89
90
  });
90
91
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"