@codyswann/lisa 8.2.0 → 8.2.1

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 (87) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.json +11 -3
  3. package/package.json +4 -4
  4. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  5. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  6. package/plugins/lisa/.codex-plugin/scripts/stale-blocker-summary.mjs +20 -3
  7. package/plugins/lisa/.codex-plugin/scripts/stale-blocker-sweep.mjs +3 -0
  8. package/plugins/lisa/.codex-plugin/scripts/stale-blocker-verify.mjs +3 -2
  9. package/plugins/lisa/scripts/stale-blocker-summary.mjs +20 -3
  10. package/plugins/lisa/scripts/stale-blocker-sweep.mjs +3 -0
  11. package/plugins/lisa/scripts/stale-blocker-verify.mjs +3 -2
  12. package/plugins/lisa-agy/plugin.json +1 -1
  13. package/plugins/lisa-agy/scripts/stale-blocker-summary.mjs +20 -3
  14. package/plugins/lisa-agy/scripts/stale-blocker-sweep.mjs +3 -0
  15. package/plugins/lisa-agy/scripts/stale-blocker-verify.mjs +3 -2
  16. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  18. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  19. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  23. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-copilot/scripts/stale-blocker-summary.mjs +20 -3
  25. package/plugins/lisa-copilot/scripts/stale-blocker-sweep.mjs +3 -0
  26. package/plugins/lisa-copilot/scripts/stale-blocker-verify.mjs +3 -2
  27. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-cursor/scripts/stale-blocker-summary.mjs +20 -3
  29. package/plugins/lisa-cursor/scripts/stale-blocker-sweep.mjs +3 -0
  30. package/plugins/lisa-cursor/scripts/stale-blocker-verify.mjs +3 -2
  31. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  33. package/plugins/lisa-devin/scripts/stale-blocker-summary.mjs +20 -3
  34. package/plugins/lisa-devin/scripts/stale-blocker-sweep.mjs +3 -0
  35. package/plugins/lisa-devin/scripts/stale-blocker-verify.mjs +3 -2
  36. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-expo-agy/plugin.json +1 -1
  39. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  43. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  50. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  53. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  57. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  59. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  60. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails-agy/plugin.json +1 -1
  67. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  74. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  80. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  81. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  85. package/plugins/src/base/scripts/stale-blocker-summary.mjs +20 -3
  86. package/plugins/src/base/scripts/stale-blocker-sweep.mjs +3 -0
  87. package/plugins/src/base/scripts/stale-blocker-verify.mjs +3 -2
@@ -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.1"]),
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.1 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
54
54
  ]),
55
55
  }),
56
56
  dfd2fef680de5ef03e63075e8a61c62ca4d95cdfdff6201939b79c748d3397f6: Object.freeze({
@@ -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",
@@ -13266,6 +13266,7 @@
13266
13266
  "tests/unit/strategies/shipped-prerequisite-check.test.ts": true,
13267
13267
  "tests/unit/strategies/skill-machine-read-names.test.ts": true,
13268
13268
  "tests/unit/strategies/stale-blocker-confirm.test.ts": true,
13269
+ "tests/unit/strategies/stale-blocker-cross-project.test.ts": true,
13269
13270
  "tests/unit/strategies/stale-blocker-cycles.test.ts": true,
13270
13271
  "tests/unit/strategies/stale-blocker-fixtures.ts": true,
13271
13272
  "tests/unit/strategies/stale-blocker-landed.test.ts": true,
@@ -14696,6 +14697,7 @@
14696
14697
  "0ee8a739edb51feea8405fc244f45aacc58735b3": true,
14697
14698
  "0eea737303fdb21926ce13cb22f9611cef48bb9f": true,
14698
14699
  "0eea7bdda41e36e52f157c178472c06fc1dd8344": true,
14700
+ "0eeba571453e28092bd2fb3fe03beb3793ec38bd": true,
14699
14701
  "0eeea686669fc2f6fae1deea8fe084bdb7b5ddf2": true,
14700
14702
  "0eef242b42a1ea0a40b4fbd932a1309aebe02057": true,
14701
14703
  "0ef57c9ed31be1fbe500cf1a1f53f6a59f687361": true,
@@ -19167,6 +19169,7 @@
19167
19169
  "53a3b7ff3ab946dec6b56da78795cbb1018c277c": true,
19168
19170
  "53a5118ec1bd7a2bc8efa58da74a3cdbe7887ef4": true,
19169
19171
  "53b110d34f9ea985b7d94a3d8004719df1dade23": true,
19172
+ "53b50d6935e5c59bbfc9d7d88a5d27938a1b1bf7": true,
19170
19173
  "53bb5c2d3aaceb76f28df9b73b8c0b331928d776": true,
19171
19174
  "53bf5b270087871a56bd0ac04cf4227e24a1f501": true,
19172
19175
  "53bfc2d83b7686b13a478020db6b5a4725685ef6": true,
@@ -19913,6 +19916,7 @@
19913
19916
  "5f30ab85e0765d1863a1aa933cceda0035cd0a42": true,
19914
19917
  "5f39b720952701ae9d15651c0dfc56c8d7f50cf6": true,
19915
19918
  "5f40c37e7b3d865d18161f7333ab10bc064c72aa": true,
19919
+ "5f41031f7e512872dc655c093fa790836860fb71": true,
19916
19920
  "5f4442db8a4648b7623d23c7d50319371dd46e14": true,
19917
19921
  "5f47d40b918e2642c418f20db5550f227e4721a5": true,
19918
19922
  "5f4ebd5e8ca8c4d5d49de0bf10e09428877bdd85": true,
@@ -25211,6 +25215,7 @@
25211
25215
  "aed6c26db21033d6dd465ea9cd5072ef362b2ad7": true,
25212
25216
  "aeda9d8078b5a25cd27958cec9895442d71931b9": true,
25213
25217
  "aedc3ac1abb0fd6f1c9760750007dc3e3978178d": true,
25218
+ "aee87d55483faf5e080ee40fd3ef585221b38306": true,
25214
25219
  "aee9ba7f2e9b99a08609ee00b7b65aa658b26b1f": true,
25215
25220
  "aeed71dba0e6f91e12e1936eaac1db0d2f4f5cdc": true,
25216
25221
  "aef41423c712f8f745b81c82757f67d0fea2e57d": true,
@@ -25324,6 +25329,7 @@
25324
25329
  "b0947a3f7427ae5ac4d3ee597d550ba11ff5393b": true,
25325
25330
  "b099605b2713e512028d3d2771377e158c22e167": true,
25326
25331
  "b0a5d0781ed1e9df6f67ec99c5c488d0830c083c": true,
25332
+ "b0a751f1d05ab8f90513898cb1750e174eb23ab7": true,
25327
25333
  "b0af2e8f641f9d9e162dafb2a1bc0bb600f141b0": true,
25328
25334
  "b0b1f3da964d490677b398524e1ee90825ba0e41": true,
25329
25335
  "b0b1f9c2fd4f3a3a50b98377436dc70842cd01f9": true,
@@ -27992,6 +27998,7 @@
27992
27998
  "d8155a0a4558135d70060d5242957b4b86171657": true,
27993
27999
  "d82037732e2a2c80ec34ce39235ba7d4b1d078aa": true,
27994
28000
  "d8207f81acd55a9f8b545aeb4808154e6d6ee3a6": true,
28001
+ "d82364779d9bb2d52196a9b30bc75e60952b5979": true,
27995
28002
  "d82739239aaa89edb7847efae9e836469e42aefe": true,
27996
28003
  "d82847e4ad05a4967b64e12ec556b01d3b5e6fee": true,
27997
28004
  "d829c6f4fdbef07cb6bf464dc46e12b44a7eefb4": true,
@@ -29382,6 +29389,7 @@
29382
29389
  "ed8198dfdd4999eae1c2b37474b1ac88fbcd40d8": true,
29383
29390
  "ed82af203a1a99b736b316ae8bfe8adaf380d749": true,
29384
29391
  "ed875826dcb24478217cb369fc880534856b39a9": true,
29392
+ "ed882a4aad6ee0387c4866e53bb8e41a398e150f": true,
29385
29393
  "ed900d3721ccf08723d638a710991524fb64e793": true,
29386
29394
  "ed931d8c151f601096a1f641f3602323301de832": true,
29387
29395
  "ed954b60657e7affb198bb57ca64e8aa031eaa05": true,
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.1",
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": "a7c1995327c8c6afd13cfb0164ee70780abc953b",
374
+ "gitHead": "a7c1995327c8c6afd13cfb0164ee70780abc953b",
375
+ "lisaReleaseTag": "v8.2.1"
376
376
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
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.1",
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
 
@@ -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.1",
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.1",
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.1",
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.1",
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.1",
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.1",
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.1",
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.1",
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.1",
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.1",
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