@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
@@ -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 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"
@@ -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-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (hand-written migration warning)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills and a hand-written migration warning hook.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (hand-written migration warning)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (hand-written migration warning)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (hand-written migration warning)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (hand-written migration warning)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (hand-written migration warning)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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": "8.2.0",
3
+ "version": "8.2.2",
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"
@@ -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
 
@@ -104,7 +104,7 @@ import {
104
104
  readFileSync,
105
105
  writeFileSync,
106
106
  } from "node:fs";
107
- import { mkdtempSync, statSync } from "node:fs";
107
+ import { mkdtempSync, rmSync, statSync } from "node:fs";
108
108
  import { tmpdir } from "node:os";
109
109
  import path from "node:path";
110
110
 
@@ -527,6 +527,23 @@ function introducedLater(version, contract) {
527
527
  );
528
528
  }
529
529
 
530
+ /**
531
+ * Run the contract probes in a scratch folder and remove it afterwards,
532
+ * success or failure; every run used to leave one `lisa-contract-probe-*`
533
+ * folder behind (CodySwannGT/lisa#5095).
534
+ * @template T
535
+ * @param {(workRoot: string) => T} probe - The probes, given the folder.
536
+ * @returns {T} What the probes returned.
537
+ */
538
+ function probeInScratch(probe) {
539
+ const workRoot = mkdtempSync(path.join(tmpdir(), "lisa-contract-probe-"));
540
+ try {
541
+ return probe(workRoot);
542
+ } finally {
543
+ rmSync(workRoot, { force: true, maxRetries: 10, recursive: true });
544
+ }
545
+ }
546
+
530
547
  /**
531
548
  * Run the check.
532
549
  * @returns {void}
@@ -577,17 +594,20 @@ function main() {
577
594
  operational: [],
578
595
  probed: [],
579
596
  }
580
- : probeReleases({
581
- groups: claims.groups,
582
- releases: probeable.map(([version, release]) => ({
583
- version,
584
- root: release.root,
585
- contains: candidate => releaseContains(release.entries, candidate),
586
- })),
587
- contracts: declaration.contracts,
588
- fixtures: declaration.fixtures,
589
- workRoot: mkdtempSync(path.join(tmpdir(), "lisa-contract-probe-")),
590
- });
597
+ : probeInScratch(workRoot =>
598
+ probeReleases({
599
+ groups: claims.groups,
600
+ releases: probeable.map(([version, release]) => ({
601
+ version,
602
+ root: release.root,
603
+ contains: candidate =>
604
+ releaseContains(release.entries, candidate),
605
+ })),
606
+ contracts: declaration.contracts,
607
+ fixtures: declaration.fixtures,
608
+ workRoot,
609
+ })
610
+ );
591
611
 
592
612
  const breakages = [
593
613
  ...findBreakages(claims.groups, listings, declaration.contracts),