@codyswann/lisa 8.10.5 → 8.10.6

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 (85) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.json +15 -2
  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/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  7. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
  8. package/plugins/lisa/rules/reference/tracked-work.md +2 -0
  9. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  10. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
  11. package/plugins/lisa-agy/plugin.json +1 -1
  12. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  13. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
  14. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  16. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  17. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  21. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-copilot/rules/reference/tracked-work.md +2 -0
  23. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  24. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
  25. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +2 -0
  27. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  28. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
  29. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  31. package/plugins/lisa-devin/rules/reference/tracked-work.md +2 -0
  32. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  33. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
  34. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  36. package/plugins/lisa-expo-agy/plugin.json +1 -1
  37. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  41. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  43. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  48. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  50. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  51. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  55. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  58. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  62. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails-agy/plugin.json +1 -1
  65. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  69. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  72. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  76. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  79. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  83. package/plugins/src/base/rules/reference/tracked-work.md +2 -0
  84. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs +23 -1
  85. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-stale.mjs +112 -0
@@ -27,9 +27,9 @@ export const NIGHTLY_E2E_GUARD_BEHAVIOR_CERTIFICATES = Object.freeze({
27
27
  }),
28
28
  "4679c1e7cc92f960bad81854b9ce68a14aa0e404f2264cca0c2d6186008a17eb": Object.freeze({
29
29
  contractVersion: "1.9.0",
30
- packageVersions: Object.freeze(["8.10.5"]),
30
+ packageVersions: Object.freeze(["8.10.6"]),
31
31
  provenances: Object.freeze([
32
- "workspace package @codyswann/lisa@8.10.5 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
32
+ "workspace package @codyswann/lisa@8.10.6 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
33
33
  ]),
34
34
  }),
35
35
  "898ee0247806c7aa6e98328662d80bcff22ff067999298865462a58daef8bb22": Object.freeze({
@@ -682,7 +682,7 @@
682
682
  "plugins/src/base/rules/reference/settled-decisions.md": "53064fc04010e330cce04459bb2e26e39b4868117376319fe303caafffe0f910",
683
683
  "plugins/src/base/rules/reference/stale-state-claims.md": "ea788d884c297ef8c8b573625172cdb123bb80690907cea0efa789b8dd60e466",
684
684
  "plugins/src/base/rules/reference/tool-access-gate.md": "aad1678a046d84d742e416aba0a783584ba281a2a7de3bd12cd66b1a1ea8bd04",
685
- "plugins/src/base/rules/reference/tracked-work.md": "c81363721c0ec113eaa76ceacfa33ed48fbbd49036b51c913507ff5d13404c65",
685
+ "plugins/src/base/rules/reference/tracked-work.md": "04f41ff13de593a8a4fd06da9f0b6a10ffff955a6ae9ceb23023e194c731b0cf",
686
686
  "plugins/src/base/rules/reference/upstream-to-lisa.md": "6b82577bf182fa1ed05e8dc3e1f68d9f76eb1eb7497de75031595db488c396de",
687
687
  "plugins/src/base/rules/reference/usage-accounting.md": "53dec94f4cba696d4b4f6e990565173c6aa0c9972432b8b127517fc3617ca7cc",
688
688
  "plugins/src/base/rules/reference/verification.md": "cb8d03601dcc4ed4fb8e2bfd0aa9d7879dfa00be3401d6a33864a8c34cde38ef",
@@ -903,7 +903,7 @@
903
903
  "plugins/src/base/skills/lisa-secrets-access/scripts/surfaces.mjs": "d9259269fd2d0a8387bef8a13c9d167bd1f9d20dd58e6b51ce02119dfe1d4c87",
904
904
  "plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs": "8c5b8e5aa775420d0778436666c9b03b67fae443809d9b5fd57ebf0f04d9a4e2",
905
905
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-access.mjs": "ee88c5f1d39e11c2d7233df255bdbb2246be808baa7825173111edaa8517a490",
906
- "plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs": "49a3801bceddb0cf8383f98bfb570c33aa8b2b20a1c71340a97e5c5d0b09a8cc",
906
+ "plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs": "8edc0db40888c0f0cc4f71d02d29c6bbdc3adaa49bc4ae907cd84daff4bc7359",
907
907
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs": "b9231c667bb62d3d30edf1a45d632696fc3c1d81ae8b32652e5e37a9635cb2f4",
908
908
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-context-data.mjs": "14a1a873e92e45cc4e1f50ca6bf93484ad78315249e39c62772c6e4d2d305eed",
909
909
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs": "ed0beb0fdf8443e6cf3ac551fde582fc40b0ffd44b9050ec781f35dec1e837c9",
@@ -917,6 +917,7 @@
917
917
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-native-state.mjs": "1125f4ed73ccec4c85ef5a117d1e6b79ac0dd22a4bf784affe6ec5f9ad977e4f",
918
918
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-readiness.mjs": "dc29611bc57a0cabefe1e7631659bc6d85b487eed19b7483bfb7fc443b175273",
919
919
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-requirements.mjs": "e184ed7fb4eacb448553cca5a1c440707449066ef9edddb81f6eeba8b79e879d",
920
+ "plugins/src/base/skills/lisa-secrets-access/scripts/task-stale.mjs": "0254a65f42bf0d596c1d5a998b7340530265a0d54b0fde2b0690f1ee71b8eb5c",
920
921
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": "7d8c3a37cf2806a872835af340c4f8171fcfc760002ebf97a5d6155dbbaa32b8",
921
922
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": "35be572aa5596a44e31aff71440ab274afd5147d3e38c785747bf3f458821c74",
922
923
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-unbound.mjs": "73153219153097f3ab451f9e93b1d50075c0554be26aff565b5b0d5b1c3e8c72",
@@ -3712,6 +3713,7 @@
3712
3713
  "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
3713
3714
  "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
3714
3715
  "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
3716
+ "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
3715
3717
  "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
3716
3718
  "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
3717
3719
  "plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -4311,6 +4313,7 @@
4311
4313
  "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
4312
4314
  "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
4313
4315
  "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
4316
+ "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
4314
4317
  "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
4315
4318
  "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
4316
4319
  "plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -4894,6 +4897,7 @@
4894
4897
  "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
4895
4898
  "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
4896
4899
  "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
4900
+ "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
4897
4901
  "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
4898
4902
  "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
4899
4903
  "plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -5406,6 +5410,7 @@
5406
5410
  "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
5407
5411
  "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
5408
5412
  "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
5413
+ "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
5409
5414
  "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
5410
5415
  "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
5411
5416
  "plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -7654,6 +7659,7 @@
7654
7659
  "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
7655
7660
  "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
7656
7661
  "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
7662
+ "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
7657
7663
  "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
7658
7664
  "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
7659
7665
  "plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -8422,6 +8428,7 @@
8422
8428
  "plugins/lisa/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
8423
8429
  "plugins/lisa/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
8424
8430
  "plugins/lisa/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
8431
+ "plugins/lisa/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
8425
8432
  "plugins/lisa/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
8426
8433
  "plugins/lisa/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
8427
8434
  "plugins/lisa/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -9065,6 +9072,7 @@
9065
9072
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-native-state.mjs": true,
9066
9073
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-readiness.mjs": true,
9067
9074
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-requirements.mjs": true,
9075
+ "plugins/src/base/skills/lisa-secrets-access/scripts/task-stale.mjs": true,
9068
9076
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-create.mjs": true,
9069
9077
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs": true,
9070
9078
  "plugins/src/base/skills/lisa-secrets-access/scripts/task-unbound.mjs": true,
@@ -13295,6 +13303,7 @@
13295
13303
  "tests/unit/secrets/task-readiness-postlaunch.test.ts": true,
13296
13304
  "tests/unit/secrets/task-readiness-qualification.test.ts": true,
13297
13305
  "tests/unit/secrets/task-readiness-scope.test.ts": true,
13306
+ "tests/unit/secrets/task-readiness-stale-binding.test.ts": true,
13298
13307
  "tests/unit/secrets/task-readiness-unbound-prepare.test.ts": true,
13299
13308
  "tests/unit/secrets/task-readiness-unbound.test.ts": true,
13300
13309
  "tests/unit/secrets/task-readiness.test.ts": true,
@@ -15021,6 +15030,7 @@
15021
15030
  "0d3d0782f3f01abbcb94c0f1c6e91f833dfd613c": true,
15022
15031
  "0d45f14fd7b220852d3fd895e89c9d593fdf3fc6": true,
15023
15032
  "0d52b76ca21c898671f45adf802462ed606ebde0": true,
15033
+ "0d55d89b5d67bbc5ea8f88d0fc524e17e4e86e81": true,
15024
15034
  "0d60fcb23c7e60ba1e9897260cbc0635f777c862": true,
15025
15035
  "0d622d7517e2d48ec04989e79d4b934c4d2c2460": true,
15026
15036
  "0d62bc2aa088ca56e48bbcc276507ecfdaab9287": true,
@@ -19128,6 +19138,7 @@
19128
19138
  "4b7d54cb5b8f73a7a8c8520070dc31ef5f3275f2": true,
19129
19139
  "4b83b3f91deeea5b31a60beb403cd984f684f770": true,
19130
19140
  "4b8f1136bb27413b7534e645ae8a639a6d958175": true,
19141
+ "4b8f63b56b9ecd21310e351b1205b363552c4f84": true,
19131
19142
  "4b9142112edffa4aceaa70cc5c44efa00367a64e": true,
19132
19143
  "4b93dc23a07bbd2fc84c5a3eb61b9a067037b1a6": true,
19133
19144
  "4b9a0bbdb0d0f9227740fa7411da4470c6004864": true,
@@ -20064,6 +20075,7 @@
20064
20075
  "59dd412de44eda240ff449f7c692e1670d214a02": true,
20065
20076
  "59e42e8e3802cdc5b902119d78434bc256935467": true,
20066
20077
  "59e5f5677aa76fb3e55ed87e3fc66b8dc5dc6247": true,
20078
+ "59e863e1f35791b376a008093b5d0780cf0ed2b8": true,
20067
20079
  "59e8b076ee9ffcd5f9df2c50b335774e3338868a": true,
20068
20080
  "59ed0b767d3037ecc61513f166e25cefb0216873": true,
20069
20081
  "59f2a734d98d63d709da777111d1201fd4c97d5c": true,
@@ -27454,6 +27466,7 @@
27454
27466
  "c74c81b2687be067e73c845f9aa721feee441055": true,
27455
27467
  "c74c88aad16d144775edbfb2aafc786f3eb7ded4": true,
27456
27468
  "c750b0982a84e87e41594d9d3ef4ca6c050a6062": true,
27469
+ "c75173306d5e2b69e8dc38e6d54fa9325ad0037b": true,
27457
27470
  "c75364570cbcded6e6bcc658211ea58a85f02627": true,
27458
27471
  "c756d332b49ac7c4efff25c3a925ecd8ce60f6b2": true,
27459
27472
  "c757253d7a515d42d715415f10b667efc00d9693": true,
package/package.json CHANGED
@@ -200,7 +200,7 @@
200
200
  "zod": "^4.6.7"
201
201
  },
202
202
  "name": "@codyswann/lisa",
203
- "version": "8.10.5",
203
+ "version": "8.10.6",
204
204
  "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",
205
205
  "main": "dist/index.js",
206
206
  "exports": {
@@ -371,7 +371,7 @@
371
371
  "optional": true
372
372
  }
373
373
  },
374
- "lisaReleaseCommit": "c75173306d5e2b69e8dc38e6d54fa9325ad0037b",
375
- "gitHead": "c75173306d5e2b69e8dc38e6d54fa9325ad0037b",
376
- "lisaReleaseTag": "v8.10.5"
374
+ "lisaReleaseCommit": "4a07fad0f222797ba7f8f001155ebc8664ba3718",
375
+ "gitHead": "4a07fad0f222797ba7f8f001155ebc8664ba3718",
376
+ "lisaReleaseTag": "v8.10.6"
377
377
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "8.10.5",
3
+ "version": "8.10.6",
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.10.5",
3
+ "version": "8.10.6",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -14,6 +14,7 @@ import {
14
14
  unboundRefusal,
15
15
  unboundWrite,
16
16
  } from "./task-unbound.mjs";
17
+ import { staleBinding } from "./task-stale.mjs";
17
18
  import {
18
19
  linearIntakeRead,
19
20
  observeLinearIntake,
@@ -177,7 +178,28 @@ export function runTaskAction(argv = process.argv) {
177
178
  }
178
179
  const refIndex = argv.indexOf("--ref"),
179
180
  ref = refIndex >= 0 ? argv[refIndex + 1] : undefined;
180
- const header = readTaskRequirements(cfg, { ref });
181
+ let header;
182
+ try {
183
+ header = readTaskRequirements(cfg, { ref });
184
+ } catch (error) {
185
+ // A stale binding keeps its ways out instead of locking the session
186
+ // (#5203): a scratch input file for prepare, and `clear`.
187
+ const stale =
188
+ hook &&
189
+ input?.hook_event_name === "PreToolUse" &&
190
+ error instanceof AccessFailure &&
191
+ error.code === "requirements-stale"
192
+ ? staleBinding(input, cfg)
193
+ : null;
194
+ if (!stale) throw error;
195
+ // Rotate the native epoch as the stale refusal always did, so no
196
+ // earlier ready state outlives the stale read.
197
+ resetNativeEvent(input);
198
+ if (stale.allowed) return;
199
+ console.error(`${stale.code}: ${stale.action}`);
200
+ process.exitCode = 2;
201
+ return;
202
+ }
181
203
  if (
182
204
  hook &&
183
205
  !header &&
@@ -0,0 +1,112 @@
1
+ /**
2
+ * What a session bound to a ticket whose requirements went stale may still do
3
+ * (CodySwannGT/lisa#5203).
4
+ *
5
+ * A bound ticket's requirements header goes stale when its context file is
6
+ * removed, or when the project configuration changes under it (a pull of
7
+ * `main` can do that). Until this module, a stale binding refused everything
8
+ * except orientation, including the two ways out: a scratch file for the
9
+ * prepare step's input, and `clear`. Only a person could end the session's
10
+ * lockout. Both ways out change no project work, so they stay possible. All
11
+ * other work is still refused, because a stale binding proves no access.
12
+ */
13
+ import { existsSync, realpathSync } from "node:fs";
14
+ import { dirname, join } from "node:path";
15
+ import { fileURLToPath } from "node:url";
16
+ import { taskBinding } from "./task-requirements.mjs";
17
+ import { unboundWrite } from "./task-unbound.mjs";
18
+
19
+ const owner = join(
20
+ dirname(fileURLToPath(import.meta.url)),
21
+ "preflight-secrets.mjs"
22
+ );
23
+ const CONTEXT = ".lisa/work-item-context.md";
24
+ const CLEAR = "scripts/lisa-work-item.mjs clear";
25
+ const shownRef =
26
+ /^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/u;
27
+
28
+ /**
29
+ * The binding of this checkout, or null when none is readable.
30
+ * @param {string} root Project root.
31
+ * @returns {{ref?: unknown}|null} The binding.
32
+ */
33
+ function binding(root) {
34
+ try {
35
+ return taskBinding(root) ?? null;
36
+ } catch {
37
+ return null;
38
+ }
39
+ }
40
+
41
+ /**
42
+ * The real path of a directory, or null.
43
+ * @param {unknown} dir Directory.
44
+ * @returns {string|null} Its real path.
45
+ */
46
+ function real(dir) {
47
+ try {
48
+ return typeof dir === "string" ? realpathSync(dir) : null;
49
+ } catch {
50
+ return null;
51
+ }
52
+ }
53
+
54
+ /**
55
+ * Whether a shell command is exactly the work-item `clear` of this project.
56
+ *
57
+ * `clear` acts on the checkout it runs in, not the one its script lives in,
58
+ * so it is admitted only when run from the stale checkout's root. From
59
+ * anywhere else it would clear some other checkout's binding.
60
+ * @param {Record<string, any>} input Hook event.
61
+ * @param {string} root Project root.
62
+ * @returns {boolean} True for the exact relative form, the exact absolute
63
+ * form, or the absolute form shell-quoted, each run from the root.
64
+ */
65
+ function clearCommand(input, root) {
66
+ if (input?.tool_name !== "Bash") return false;
67
+ const command = input.tool_input?.command;
68
+ const projectRoot = real(root);
69
+ if (typeof command !== "string" || !projectRoot) return false;
70
+ if (real(input.cwd) !== projectRoot) return false;
71
+ const [script, verb] = CLEAR.split(" ");
72
+ const absolute = join(projectRoot, script);
73
+ return [
74
+ `node ${CLEAR}`,
75
+ // Unquoted only when the shell reads the path as one word.
76
+ ...(/^[\w./@+-]+$/u.test(absolute) ? [`node ${absolute} ${verb}`] : []),
77
+ `node '${absolute.replaceAll("'", "'\\''")}' ${verb}`,
78
+ ].includes(command);
79
+ }
80
+
81
+ /**
82
+ * The guard's decision for a stale binding: admit the ways out, refuse the
83
+ * rest naming the cause and both exits. Null when nothing is bound, so the
84
+ * caller keeps its ordinary refusal.
85
+ * @param {Record<string, any>} input Hook event.
86
+ * @param {{projectRoot: string}} cfg Task configuration.
87
+ * @returns {{allowed: true}|{allowed: false, code: string, action: string}|null}
88
+ * The decision.
89
+ */
90
+ export function staleBinding(input, cfg) {
91
+ const bound = binding(cfg.projectRoot);
92
+ if (!bound) return null;
93
+ if (unboundWrite(input, cfg) || clearCommand(input, cfg.projectRoot))
94
+ return { allowed: true };
95
+ const ref =
96
+ typeof bound.ref === "string" && shownRef.test(bound.ref)
97
+ ? bound.ref
98
+ : "<bound ticket>";
99
+ const cause = existsSync(join(cfg.projectRoot, CONTEXT))
100
+ ? `its ${CONTEXT} no longer matches this checkout (the project configuration or the file changed after it was prepared)`
101
+ : `its ${CONTEXT} is missing`;
102
+ return {
103
+ allowed: false,
104
+ code: "requirements-stale",
105
+ action: [
106
+ `This checkout is bound to ${ref}, but ${cause}, so no access is proved and project work is refused.`,
107
+ `If ${ref} is still being worked on, refresh it: write {"requirements_complete": true, "required_access": []} to a file outside every repository (add "context_body" with the ticket's full text if the context file is missing), then run exactly: node ${owner} --prepare --ref ${ref} --input-file <absolute path of that file>.`,
108
+ `If ${ref} is finished, run exactly: node ${CLEAR}, from the project root.`,
109
+ "Reading with the Read, Grep and Glob tools, and writing a file outside every git repository, stay allowed.",
110
+ ].join(" "),
111
+ };
112
+ }
@@ -17,6 +17,8 @@ Answering a question about a ticket needs none of this. Never bind a ticket just
17
17
 
18
18
  To start work on an existing ticket from an unbound session, prepare it first, then bind it. Write the prepare JSON to a file outside every repository, then run the admitted `preflight-secrets.mjs --prepare --ref <ticket> --input-file <absolute path>` (see `tool-access-gate`). Once the ticket is prepared, the guard decides by that ticket's readiness, and `lisa-work-item.mjs link`, the claim and the work run normally.
19
19
 
20
+ A bound ticket's requirements go stale when its `.lisa/work-item-context.md` is removed, or when the project configuration changes after it was prepared (a pull can do that). The guard then refuses project work with `requirements-stale`, naming the cause, and still admits the two ways out: a write outside every repository, for the prepare input, and the exact `node scripts/lisa-work-item.mjs clear` from the project root. Refresh a ticket still in progress with the admitted prepare command; clear a finished one.
21
+
20
22
  ## Resolve, claim, bind
21
23
 
22
24
  Use `lisa-track` as the single entry point:
@@ -14,6 +14,7 @@ import {
14
14
  unboundRefusal,
15
15
  unboundWrite,
16
16
  } from "./task-unbound.mjs";
17
+ import { staleBinding } from "./task-stale.mjs";
17
18
  import {
18
19
  linearIntakeRead,
19
20
  observeLinearIntake,
@@ -177,7 +178,28 @@ export function runTaskAction(argv = process.argv) {
177
178
  }
178
179
  const refIndex = argv.indexOf("--ref"),
179
180
  ref = refIndex >= 0 ? argv[refIndex + 1] : undefined;
180
- const header = readTaskRequirements(cfg, { ref });
181
+ let header;
182
+ try {
183
+ header = readTaskRequirements(cfg, { ref });
184
+ } catch (error) {
185
+ // A stale binding keeps its ways out instead of locking the session
186
+ // (#5203): a scratch input file for prepare, and `clear`.
187
+ const stale =
188
+ hook &&
189
+ input?.hook_event_name === "PreToolUse" &&
190
+ error instanceof AccessFailure &&
191
+ error.code === "requirements-stale"
192
+ ? staleBinding(input, cfg)
193
+ : null;
194
+ if (!stale) throw error;
195
+ // Rotate the native epoch as the stale refusal always did, so no
196
+ // earlier ready state outlives the stale read.
197
+ resetNativeEvent(input);
198
+ if (stale.allowed) return;
199
+ console.error(`${stale.code}: ${stale.action}`);
200
+ process.exitCode = 2;
201
+ return;
202
+ }
181
203
  if (
182
204
  hook &&
183
205
  !header &&
@@ -0,0 +1,112 @@
1
+ /**
2
+ * What a session bound to a ticket whose requirements went stale may still do
3
+ * (CodySwannGT/lisa#5203).
4
+ *
5
+ * A bound ticket's requirements header goes stale when its context file is
6
+ * removed, or when the project configuration changes under it (a pull of
7
+ * `main` can do that). Until this module, a stale binding refused everything
8
+ * except orientation, including the two ways out: a scratch file for the
9
+ * prepare step's input, and `clear`. Only a person could end the session's
10
+ * lockout. Both ways out change no project work, so they stay possible. All
11
+ * other work is still refused, because a stale binding proves no access.
12
+ */
13
+ import { existsSync, realpathSync } from "node:fs";
14
+ import { dirname, join } from "node:path";
15
+ import { fileURLToPath } from "node:url";
16
+ import { taskBinding } from "./task-requirements.mjs";
17
+ import { unboundWrite } from "./task-unbound.mjs";
18
+
19
+ const owner = join(
20
+ dirname(fileURLToPath(import.meta.url)),
21
+ "preflight-secrets.mjs"
22
+ );
23
+ const CONTEXT = ".lisa/work-item-context.md";
24
+ const CLEAR = "scripts/lisa-work-item.mjs clear";
25
+ const shownRef =
26
+ /^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/u;
27
+
28
+ /**
29
+ * The binding of this checkout, or null when none is readable.
30
+ * @param {string} root Project root.
31
+ * @returns {{ref?: unknown}|null} The binding.
32
+ */
33
+ function binding(root) {
34
+ try {
35
+ return taskBinding(root) ?? null;
36
+ } catch {
37
+ return null;
38
+ }
39
+ }
40
+
41
+ /**
42
+ * The real path of a directory, or null.
43
+ * @param {unknown} dir Directory.
44
+ * @returns {string|null} Its real path.
45
+ */
46
+ function real(dir) {
47
+ try {
48
+ return typeof dir === "string" ? realpathSync(dir) : null;
49
+ } catch {
50
+ return null;
51
+ }
52
+ }
53
+
54
+ /**
55
+ * Whether a shell command is exactly the work-item `clear` of this project.
56
+ *
57
+ * `clear` acts on the checkout it runs in, not the one its script lives in,
58
+ * so it is admitted only when run from the stale checkout's root. From
59
+ * anywhere else it would clear some other checkout's binding.
60
+ * @param {Record<string, any>} input Hook event.
61
+ * @param {string} root Project root.
62
+ * @returns {boolean} True for the exact relative form, the exact absolute
63
+ * form, or the absolute form shell-quoted, each run from the root.
64
+ */
65
+ function clearCommand(input, root) {
66
+ if (input?.tool_name !== "Bash") return false;
67
+ const command = input.tool_input?.command;
68
+ const projectRoot = real(root);
69
+ if (typeof command !== "string" || !projectRoot) return false;
70
+ if (real(input.cwd) !== projectRoot) return false;
71
+ const [script, verb] = CLEAR.split(" ");
72
+ const absolute = join(projectRoot, script);
73
+ return [
74
+ `node ${CLEAR}`,
75
+ // Unquoted only when the shell reads the path as one word.
76
+ ...(/^[\w./@+-]+$/u.test(absolute) ? [`node ${absolute} ${verb}`] : []),
77
+ `node '${absolute.replaceAll("'", "'\\''")}' ${verb}`,
78
+ ].includes(command);
79
+ }
80
+
81
+ /**
82
+ * The guard's decision for a stale binding: admit the ways out, refuse the
83
+ * rest naming the cause and both exits. Null when nothing is bound, so the
84
+ * caller keeps its ordinary refusal.
85
+ * @param {Record<string, any>} input Hook event.
86
+ * @param {{projectRoot: string}} cfg Task configuration.
87
+ * @returns {{allowed: true}|{allowed: false, code: string, action: string}|null}
88
+ * The decision.
89
+ */
90
+ export function staleBinding(input, cfg) {
91
+ const bound = binding(cfg.projectRoot);
92
+ if (!bound) return null;
93
+ if (unboundWrite(input, cfg) || clearCommand(input, cfg.projectRoot))
94
+ return { allowed: true };
95
+ const ref =
96
+ typeof bound.ref === "string" && shownRef.test(bound.ref)
97
+ ? bound.ref
98
+ : "<bound ticket>";
99
+ const cause = existsSync(join(cfg.projectRoot, CONTEXT))
100
+ ? `its ${CONTEXT} no longer matches this checkout (the project configuration or the file changed after it was prepared)`
101
+ : `its ${CONTEXT} is missing`;
102
+ return {
103
+ allowed: false,
104
+ code: "requirements-stale",
105
+ action: [
106
+ `This checkout is bound to ${ref}, but ${cause}, so no access is proved and project work is refused.`,
107
+ `If ${ref} is still being worked on, refresh it: write {"requirements_complete": true, "required_access": []} to a file outside every repository (add "context_body" with the ticket's full text if the context file is missing), then run exactly: node ${owner} --prepare --ref ${ref} --input-file <absolute path of that file>.`,
108
+ `If ${ref} is finished, run exactly: node ${CLEAR}, from the project root.`,
109
+ "Reading with the Read, Grep and Glob tools, and writing a file outside every git repository, stay allowed.",
110
+ ].join(" "),
111
+ };
112
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "8.10.5",
3
+ "version": "8.10.6",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -14,6 +14,7 @@ import {
14
14
  unboundRefusal,
15
15
  unboundWrite,
16
16
  } from "./task-unbound.mjs";
17
+ import { staleBinding } from "./task-stale.mjs";
17
18
  import {
18
19
  linearIntakeRead,
19
20
  observeLinearIntake,
@@ -177,7 +178,28 @@ export function runTaskAction(argv = process.argv) {
177
178
  }
178
179
  const refIndex = argv.indexOf("--ref"),
179
180
  ref = refIndex >= 0 ? argv[refIndex + 1] : undefined;
180
- const header = readTaskRequirements(cfg, { ref });
181
+ let header;
182
+ try {
183
+ header = readTaskRequirements(cfg, { ref });
184
+ } catch (error) {
185
+ // A stale binding keeps its ways out instead of locking the session
186
+ // (#5203): a scratch input file for prepare, and `clear`.
187
+ const stale =
188
+ hook &&
189
+ input?.hook_event_name === "PreToolUse" &&
190
+ error instanceof AccessFailure &&
191
+ error.code === "requirements-stale"
192
+ ? staleBinding(input, cfg)
193
+ : null;
194
+ if (!stale) throw error;
195
+ // Rotate the native epoch as the stale refusal always did, so no
196
+ // earlier ready state outlives the stale read.
197
+ resetNativeEvent(input);
198
+ if (stale.allowed) return;
199
+ console.error(`${stale.code}: ${stale.action}`);
200
+ process.exitCode = 2;
201
+ return;
202
+ }
181
203
  if (
182
204
  hook &&
183
205
  !header &&
@@ -0,0 +1,112 @@
1
+ /**
2
+ * What a session bound to a ticket whose requirements went stale may still do
3
+ * (CodySwannGT/lisa#5203).
4
+ *
5
+ * A bound ticket's requirements header goes stale when its context file is
6
+ * removed, or when the project configuration changes under it (a pull of
7
+ * `main` can do that). Until this module, a stale binding refused everything
8
+ * except orientation, including the two ways out: a scratch file for the
9
+ * prepare step's input, and `clear`. Only a person could end the session's
10
+ * lockout. Both ways out change no project work, so they stay possible. All
11
+ * other work is still refused, because a stale binding proves no access.
12
+ */
13
+ import { existsSync, realpathSync } from "node:fs";
14
+ import { dirname, join } from "node:path";
15
+ import { fileURLToPath } from "node:url";
16
+ import { taskBinding } from "./task-requirements.mjs";
17
+ import { unboundWrite } from "./task-unbound.mjs";
18
+
19
+ const owner = join(
20
+ dirname(fileURLToPath(import.meta.url)),
21
+ "preflight-secrets.mjs"
22
+ );
23
+ const CONTEXT = ".lisa/work-item-context.md";
24
+ const CLEAR = "scripts/lisa-work-item.mjs clear";
25
+ const shownRef =
26
+ /^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/u;
27
+
28
+ /**
29
+ * The binding of this checkout, or null when none is readable.
30
+ * @param {string} root Project root.
31
+ * @returns {{ref?: unknown}|null} The binding.
32
+ */
33
+ function binding(root) {
34
+ try {
35
+ return taskBinding(root) ?? null;
36
+ } catch {
37
+ return null;
38
+ }
39
+ }
40
+
41
+ /**
42
+ * The real path of a directory, or null.
43
+ * @param {unknown} dir Directory.
44
+ * @returns {string|null} Its real path.
45
+ */
46
+ function real(dir) {
47
+ try {
48
+ return typeof dir === "string" ? realpathSync(dir) : null;
49
+ } catch {
50
+ return null;
51
+ }
52
+ }
53
+
54
+ /**
55
+ * Whether a shell command is exactly the work-item `clear` of this project.
56
+ *
57
+ * `clear` acts on the checkout it runs in, not the one its script lives in,
58
+ * so it is admitted only when run from the stale checkout's root. From
59
+ * anywhere else it would clear some other checkout's binding.
60
+ * @param {Record<string, any>} input Hook event.
61
+ * @param {string} root Project root.
62
+ * @returns {boolean} True for the exact relative form, the exact absolute
63
+ * form, or the absolute form shell-quoted, each run from the root.
64
+ */
65
+ function clearCommand(input, root) {
66
+ if (input?.tool_name !== "Bash") return false;
67
+ const command = input.tool_input?.command;
68
+ const projectRoot = real(root);
69
+ if (typeof command !== "string" || !projectRoot) return false;
70
+ if (real(input.cwd) !== projectRoot) return false;
71
+ const [script, verb] = CLEAR.split(" ");
72
+ const absolute = join(projectRoot, script);
73
+ return [
74
+ `node ${CLEAR}`,
75
+ // Unquoted only when the shell reads the path as one word.
76
+ ...(/^[\w./@+-]+$/u.test(absolute) ? [`node ${absolute} ${verb}`] : []),
77
+ `node '${absolute.replaceAll("'", "'\\''")}' ${verb}`,
78
+ ].includes(command);
79
+ }
80
+
81
+ /**
82
+ * The guard's decision for a stale binding: admit the ways out, refuse the
83
+ * rest naming the cause and both exits. Null when nothing is bound, so the
84
+ * caller keeps its ordinary refusal.
85
+ * @param {Record<string, any>} input Hook event.
86
+ * @param {{projectRoot: string}} cfg Task configuration.
87
+ * @returns {{allowed: true}|{allowed: false, code: string, action: string}|null}
88
+ * The decision.
89
+ */
90
+ export function staleBinding(input, cfg) {
91
+ const bound = binding(cfg.projectRoot);
92
+ if (!bound) return null;
93
+ if (unboundWrite(input, cfg) || clearCommand(input, cfg.projectRoot))
94
+ return { allowed: true };
95
+ const ref =
96
+ typeof bound.ref === "string" && shownRef.test(bound.ref)
97
+ ? bound.ref
98
+ : "<bound ticket>";
99
+ const cause = existsSync(join(cfg.projectRoot, CONTEXT))
100
+ ? `its ${CONTEXT} no longer matches this checkout (the project configuration or the file changed after it was prepared)`
101
+ : `its ${CONTEXT} is missing`;
102
+ return {
103
+ allowed: false,
104
+ code: "requirements-stale",
105
+ action: [
106
+ `This checkout is bound to ${ref}, but ${cause}, so no access is proved and project work is refused.`,
107
+ `If ${ref} is still being worked on, refresh it: write {"requirements_complete": true, "required_access": []} to a file outside every repository (add "context_body" with the ticket's full text if the context file is missing), then run exactly: node ${owner} --prepare --ref ${ref} --input-file <absolute path of that file>.`,
108
+ `If ${ref} is finished, run exactly: node ${CLEAR}, from the project root.`,
109
+ "Reading with the Read, Grep and Glob tools, and writing a file outside every git repository, stay allowed.",
110
+ ].join(" "),
111
+ };
112
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "8.10.5",
3
+ "version": "8.10.6",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"