@codyswann/lisa 4.103.8 → 4.103.9

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 (184) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +12 -13
  2. package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +4 -5
  3. package/all/copy-overwrite/scripts/lisa-hooks/worktree-binding-guard.mjs +16 -30
  4. package/all/copy-overwrite/scripts/lisa-postinstall.mjs +4 -15
  5. package/all/deletions.json +92 -2
  6. package/dist/cli/apply.d.ts.map +1 -1
  7. package/dist/cli/apply.js +1 -22
  8. package/dist/cli/apply.js.map +1 -1
  9. package/dist/cli/refresh-hooks-cmd.d.ts.map +1 -1
  10. package/dist/cli/refresh-hooks-cmd.js +3 -8
  11. package/dist/cli/refresh-hooks-cmd.js.map +1 -1
  12. package/dist/cli/worktree-prune.d.ts.map +1 -1
  13. package/dist/cli/worktree-prune.js +2 -4
  14. package/dist/cli/worktree-prune.js.map +1 -1
  15. package/dist/codex/scripts/block-no-verify.sh +4 -5
  16. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  17. package/dist/core/lisa-owned-hash-ledger.js +8 -0
  18. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  19. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  20. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  21. package/dist/core/upstream-evidence-manifest.js +24 -71
  22. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  23. package/dist/migrations/index.d.ts +0 -1
  24. package/dist/migrations/index.d.ts.map +1 -1
  25. package/dist/migrations/index.js +0 -3
  26. package/dist/migrations/index.js.map +1 -1
  27. package/dist/migrations/prune-retired-third-party-plugins.d.ts +2 -2
  28. package/dist/migrations/prune-retired-third-party-plugins.js +2 -2
  29. package/dist/opencode/hooks-installer.d.ts.map +1 -1
  30. package/dist/opencode/hooks-installer.js +17 -4
  31. package/dist/opencode/hooks-installer.js.map +1 -1
  32. package/dist/opencode/plugin-catalog.d.ts.map +1 -1
  33. package/dist/opencode/plugin-catalog.js +0 -6
  34. package/dist/opencode/plugin-catalog.js.map +1 -1
  35. package/dist/opencode/plugin-templates/block-no-verify.sh +4 -5
  36. package/dist/opencode/plugin-templates/lisa-block-no-verify.ts +1 -1
  37. package/package.json +6 -8
  38. package/plugins/lisa/.claude-plugin/plugin.json +1 -5
  39. package/plugins/lisa/.codex-plugin/hooks.json +0 -4
  40. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa/hooks/block-direct-issue-create.sh +12 -13
  42. package/plugins/lisa/hooks/block-no-verify.agy.sh +4 -5
  43. package/plugins/lisa/hooks/block-no-verify.sh +4 -5
  44. package/plugins/lisa/hooks/block-shell-json-parsing.agy.sh +3 -3
  45. package/plugins/lisa/hooks/failure-signature-index.mjs +2 -2
  46. package/plugins/lisa/hooks/worktree-binding-guard.mjs +16 -30
  47. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +12 -13
  48. package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +4 -5
  49. package/plugins/lisa-agy/hooks/block-shell-json-parsing.agy.sh +3 -3
  50. package/plugins/lisa-agy/hooks.json +0 -13
  51. package/plugins/lisa-agy/plugin.json +1 -1
  52. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  55. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  59. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -5
  60. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +12 -13
  61. package/plugins/lisa-copilot/hooks/block-no-verify.sh +4 -5
  62. package/plugins/lisa-copilot/hooks/failure-signature-index.mjs +2 -2
  63. package/plugins/lisa-copilot/hooks/worktree-binding-guard.mjs +16 -30
  64. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +12 -13
  66. package/plugins/lisa-cursor/hooks/block-no-verify.sh +4 -5
  67. package/plugins/lisa-cursor/hooks/failure-signature-index.mjs +2 -2
  68. package/plugins/lisa-cursor/hooks/hooks.json +0 -4
  69. package/plugins/lisa-cursor/hooks/worktree-binding-guard.mjs +16 -30
  70. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  72. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +12 -13
  73. package/plugins/lisa-devin/hooks/block-no-verify.sh +4 -5
  74. package/plugins/lisa-devin/hooks/failure-signature-index.mjs +2 -2
  75. package/plugins/lisa-devin/hooks/worktree-binding-guard.mjs +16 -30
  76. package/plugins/lisa-devin/hooks.json +0 -4
  77. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  79. package/plugins/lisa-expo-agy/plugin.json +1 -1
  80. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  84. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  86. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  87. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  91. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  93. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  94. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  98. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  100. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  101. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  105. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  107. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  108. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  112. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  113. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  114. package/plugins/lisa-rails-agy/plugin.json +1 -1
  115. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  118. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  119. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  120. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  121. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  122. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  123. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  124. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  125. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  126. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  127. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  128. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  129. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  131. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  132. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  133. package/plugins/materialized-artifacts.json +0 -2
  134. package/plugins/src/base/.claude-plugin/plugin.json +0 -4
  135. package/plugins/src/base/hooks/block-direct-issue-create.sh +12 -13
  136. package/plugins/src/base/hooks/block-no-verify.agy.sh +4 -5
  137. package/plugins/src/base/hooks/block-no-verify.sh +4 -5
  138. package/plugins/src/base/hooks/block-shell-json-parsing.agy.sh +3 -3
  139. package/plugins/src/base/hooks/failure-signature-index.mjs +2 -2
  140. package/plugins/src/base/hooks/worktree-binding-guard.mjs +16 -30
  141. package/scripts/build-plugins.sh +10 -15
  142. package/scripts/check-cwd-resolution-corpus.mjs +4 -5
  143. package/scripts/check-generated-artifact-merge-coverage.mjs +0 -7
  144. package/scripts/copy-opencode-plugin-templates.mjs +0 -1
  145. package/scripts/generate-agy-plugin-artifacts.mjs +8 -13
  146. package/scripts/install-claude-plugins.sh +7 -11
  147. package/scripts/lib/packaged-apply-driver.mjs +4 -22
  148. package/scripts/lib/shell-guard-refusal-coverage.mjs +3 -3
  149. package/scripts/materialize-copy-overwrite.mjs +2 -2
  150. package/scripts/merge-generated-artifact.mjs +3 -3
  151. package/scripts/remedy-conformance.mjs +12 -13
  152. package/scripts/two-channel-couplings.json +1 -1
  153. package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +0 -16
  154. package/dist/core/native-safety-net-retirement.d.ts +0 -13
  155. package/dist/core/native-safety-net-retirement.d.ts.map +0 -1
  156. package/dist/core/native-safety-net-retirement.js +0 -23
  157. package/dist/core/native-safety-net-retirement.js.map +0 -1
  158. package/dist/migrations/retire-native-safety-net.d.ts +0 -18
  159. package/dist/migrations/retire-native-safety-net.d.ts.map +0 -1
  160. package/dist/migrations/retire-native-safety-net.js +0 -36
  161. package/dist/migrations/retire-native-safety-net.js.map +0 -1
  162. package/dist/opencode/plugin-templates/lisa-parity-safety-net.ts +0 -4
  163. package/dist/opencode/plugin-templates/parity-safety-net.sh +0 -16
  164. package/plugins/lisa/hooks/parity-safety-net.agy.sh +0 -6
  165. package/plugins/lisa/hooks/parity-safety-net.sh +0 -16
  166. package/plugins/lisa-agy/hooks/parity-safety-net.agy.sh +0 -6
  167. package/plugins/lisa-agy/hooks/parity-safety-net.sh +0 -16
  168. package/plugins/lisa-copilot/hooks/parity-safety-net.sh +0 -16
  169. package/plugins/lisa-cursor/hooks/parity-safety-net.sh +0 -16
  170. package/plugins/lisa-devin/hooks/parity-safety-net.sh +0 -16
  171. package/plugins/src/base/hooks/parity-safety-net.agy.sh +0 -6
  172. package/plugins/src/base/hooks/parity-safety-net.sh +0 -13
  173. package/scripts/deployed-guard-advice.mjs +0 -637
  174. package/scripts/fixtures/native-safety-net-retirement/Dockerfile +0 -5
  175. package/scripts/fixtures/native-safety-net-retirement/invoke-opencode.mjs +0 -13
  176. package/scripts/fixtures/native-safety-net-retirement/isolated-linker.mjs +0 -101
  177. package/scripts/fixtures/native-safety-net-retirement/journey.mjs +0 -381
  178. package/scripts/fixtures/native-safety-net-retirement/probes.mjs +0 -208
  179. package/scripts/fixtures/native-safety-net-retirement/reduced-core.mjs +0 -93
  180. package/scripts/generate-retired-safety-net-manifest.mjs +0 -56
  181. package/scripts/generate-scratch-supervisor-profile.mjs +0 -75
  182. package/scripts/lib/retired-safety-net-manifest.json +0 -150
  183. package/scripts/retire-native-safety-net.mjs +0 -237
  184. package/scripts/verify-native-safety-net-retirement.mjs +0 -287
@@ -108,10 +108,6 @@
108
108
  "type": "command",
109
109
  "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-no-verify.sh"
110
110
  },
111
- {
112
- "type": "command",
113
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/parity-safety-net.sh"
114
- },
115
111
  {
116
112
  "type": "command",
117
113
  "command": "${CLAUDE_PLUGIN_ROOT}/hooks/block-shell-json-parsing.sh"
@@ -41,9 +41,9 @@
41
41
  # over stdin from the same pipeline), and the contents of any file the command
42
42
  # names. The last of those is what CodySwannGT/lisa#3484 was: the guard
43
43
  # inspected argv and nothing else, so `bash /path/create.sh` showed it two
44
- # tokens and the creation was one file away. Lisa's own `parity-safety-net.sh`
45
- # tells agents to write payloads to a file and execute the file, so complying
46
- # with Lisa's guidance produced the bypass.
44
+ # tokens and the creation was one file away. Lisa's own guidance told agents to
45
+ # write payloads to a file and execute the file, so complying with Lisa's
46
+ # guidance produced the bypass.
47
47
  #
48
48
  # That is exactly the machine-checkable content of `ready-role-filing`, and it
49
49
  # lets `lisa-github-write-issue` / `lisa-jira-write-ticket` /
@@ -851,10 +851,10 @@ GRAPHQL_CREATE = re.compile(r"createIssue|issueCreate")
851
851
  # classifier two tokens, neither of which is a tracker CLI.
852
852
  #
853
853
  # It is not an oversight that an operator had to be clever to find. Lisa's OWN
854
- # guards instruct agents into this shape: `parity-safety-net.sh` refuses
855
- # heredocs and says "write the payload to a file with the Write tool, then
856
- # execute that file directly", and `block-shell-json-parsing.sh` pushes JSON
857
- # construction into `jq` scripts. An agent complying perfectly with Lisa's
854
+ # guards instruct agents into this shape: a guard that refuses heredocs says
855
+ # "write the payload to a file with the Write tool, then execute that file
856
+ # directly", and `block-shell-json-parsing.sh` pushes JSON construction into
857
+ # `jq` scripts. An agent complying perfectly with Lisa's
858
858
  # guidance lands in the uninspected path BY DEFAULT. The guards were
859
859
  # individually reasonable and jointly self-defeating.
860
860
  #
@@ -2135,12 +2135,11 @@ def executed_operand(argv):
2135
2135
  `wc -l`, a `git grep` PATHSPEC and a test run — every one of them read-only,
2136
2136
  and one of them blocked running the tests that would have proved a fix.
2137
2137
 
2138
- `parity-safety-net.sh` already states the rule this restores, and names the
2139
- opposite as the known-wrong fix (`origin/main`, lines 337-346 and 704-705):
2140
- "Only a COMMAND POSITION can execute something. A path anywhere else is an
2141
- argument, and an argument is data." `block-no-verify.sh:495-513`
2142
- (`strip_command_prefix`) implements the same split with a fail-closed third
2143
- state. Both live in this directory; this guard was the one that declined.
2138
+ The rule this restores: "Only a COMMAND POSITION can execute something. A
2139
+ path anywhere else is an argument, and an argument is data." Following
2140
+ data is the known-wrong fix. `block-no-verify.sh` (`strip_command_prefix`)
2141
+ implements the same split with a fail-closed third state, in this same
2142
+ directory; this guard was the one that declined.
2144
2143
 
2145
2144
  NOT narrowed to shells, and NOT narrowed to an enumerated interpreter list.
2146
2145
  `file_creation` recognises a creation in any language, so `node wrapper.mjs`
@@ -703,11 +703,10 @@ def nested_shell_payload(tokens, index):
703
703
  # file away ALLOW — on bash, sh, zsh, `source`, `.`, an absolute interpreter
704
704
  # path, and behind every wrapper.
705
705
  #
706
- # THE RULE IS TAKEN FROM parity-safety-net.sh RATHER THAN INVENTED HERE: a path
707
- # is followed ONLY when the command EXECUTES it. `grep -n x nv.sh`,
708
- # `git commit -F msg.txt` and `gh pr create --body-file body.md` name a file as
709
- # DATA, and following those is the known-wrong fix that guard names by number —
710
- # it refuses ordinary reads and attributes a file's capability to a command that
706
+ # THE RULE: a path is followed ONLY when the command EXECUTES it.
707
+ # `grep -n x nv.sh`, `git commit -F msg.txt` and `gh pr create --body-file
708
+ # body.md` name a file as DATA, and following those is a known-wrong fix — it
709
+ # refuses ordinary reads and attributes a file's capability to a command that
711
710
  # merely mentions it. So COMMAND POSITION decides, never the presence of a path.
712
711
  #
713
712
  # Non-shell interpreters (`python3 x.py`, `node x.mjs`) are deliberately NOT
@@ -801,11 +801,10 @@ def nested_shell_payload(tokens, index):
801
801
  # file away ALLOW — on bash, sh, zsh, `source`, `.`, an absolute interpreter
802
802
  # path, and behind every wrapper.
803
803
  #
804
- # THE RULE IS TAKEN FROM parity-safety-net.sh RATHER THAN INVENTED HERE: a path
805
- # is followed ONLY when the command EXECUTES it. `grep -n x nv.sh`,
806
- # `git commit -F msg.txt` and `gh pr create --body-file body.md` name a file as
807
- # DATA, and following those is the known-wrong fix that guard names by number —
808
- # it refuses ordinary reads and attributes a file's capability to a command that
804
+ # THE RULE: a path is followed ONLY when the command EXECUTES it.
805
+ # `grep -n x nv.sh`, `git commit -F msg.txt` and `gh pr create --body-file
806
+ # body.md` name a file as DATA, and following those is a known-wrong fix — it
807
+ # refuses ordinary reads and attributes a file's capability to a command that
809
808
  # merely mentions it. So COMMAND POSITION decides, never the presence of a path.
810
809
  #
811
810
  # Non-shell interpreters (`python3 x.py`, `node x.mjs`) are deliberately NOT
@@ -5,9 +5,9 @@
5
5
  # expects an allow/deny JSON object on stdout. The canonical hook consumes the
6
6
  # Claude Bash-hook envelope and communicates denial with exit status 2. This
7
7
  # adapter only translates protocols; all classification stays in the canonical
8
- # block-shell-json-parsing.sh beside it (same delegation pattern as
9
- # parity-safety-net.agy.sh). Fail-open on missing runtimes: unlike the
10
- # safety net, a missed nudge here risks a fragile script, not data loss.
8
+ # block-shell-json-parsing.sh beside it (same delegation pattern as the other
9
+ # *.agy.sh adapters). Fail-open on missing runtimes: a missed nudge here risks
10
+ # a fragile script, not data loss.
11
11
  set -uo pipefail
12
12
 
13
13
  allow() {
@@ -78,8 +78,8 @@
78
78
  * rotted, which is exactly what happened to the reference that named
79
79
  * `src/cli/doctor-learnings-merge-driver.ts` before it was renamed;
80
80
  * - an entry whose `signature` does not match its own recorded `sample` — a
81
- * regex typo silently disables an entry, the same way a malformed ERE
82
- * silently disabled a project safety rule in `parity-safety-net.sh`;
81
+ * regex typo silently disables an entry, the same way a malformed ERE can
82
+ * silently disable a shell guard's project rule;
83
83
  * - an index that resolves ZERO entries — an empty routing table is a broken
84
84
  * one, never a clean one;
85
85
  * - an entry whose `excludes` has no `counterSample` proving it excludes
@@ -376,8 +376,8 @@ function foreignTreeIn(text, bound, cwd) {
376
376
  /**
377
377
  * A `cd` target this guard cannot turn into a literal directory.
378
378
  *
379
- * Mirrors `parity-safety-net.sh`'s `follow_cd` test exactly, and the mirror is
380
- * the point: two spellings of one rule are how the guards drift.
379
+ * Contract point 3 of `tests/unit/hooks/support/cwd-resolution-corpus.json`
380
+ * spells out the same rule; keep the two in step.
381
381
  */
382
382
  const UNLITERAL_CD_TARGET = /[$`*?[{]/u;
383
383
 
@@ -468,33 +468,21 @@ function applyCd(current, target) {
468
468
  * copy of every script at the same relative path, and they differ by whatever
469
469
  * each lane is doing.
470
470
  *
471
- * ## One contract, two implementations, and why that is the honest answer
471
+ * ## A written contract, driven by a corpus
472
472
  *
473
- * `parity-safety-net.sh` answers this same question — "which file will this
474
- * command actually execute?" — in POSIX shell, where `follow_cd` mutates
475
- * file-scope state that `follow_locate` reads. This guard is Node. **There is
476
- * no call that reaches from here into a shell function's file-scope state**, so
477
- * the duplication is not a factoring somebody skipped; it is one idea that
478
- * cannot cross a language boundary as a function call.
473
+ * The resolution rule is a written contract with a corpus of adversarial rows
474
+ * this guard is driven over in CI, so a change to the resolver fails a test on
475
+ * the commit that causes it rather than surfacing later as a wrong verdict.
476
+ * Contract and corpus live in `tests/unit/hooks/support/cwd-resolution-corpus.json`
477
+ * (CodySwannGT/lisa#3952). **A behaviour with no row in the corpus is
478
+ * unpinned — add a row when you add a branch.**
479
479
  *
480
- * What binds the two is a written contract and a corpus of rows that BOTH
481
- * guards are driven over in CI, so a divergence fails a test on the commit that
482
- * causes it rather than surfacing later as a wrong verdict. Contract and corpus
483
- * live in `tests/unit/hooks/support/cwd-resolution-corpus.json`.
480
+ * ## The corpus pins the RESOLUTION, not the verdict
484
481
  *
485
- * This is explicitly NOT unification, and CodySwannGT/lisa#3952 records it as
486
- * such: two implementations remain. **A behaviour with no row in the corpus is
487
- * free to diverge — add a row when you add a branch.**
488
- *
489
- * ## The two guards agree on the RESOLUTION, not on the verdict
490
- *
491
- * When the effective directory cannot be known, both guards decline to resolve
492
- * the token. What they then do differs, and that difference is deliberate:
493
- * `parity-safety-net.sh` refuses, because a destructive command it cannot see
494
- * is the thing it exists to stop. This guard fails open, which is the doctrine
495
- * every other undecidable case in this file follows. The corpus asserts the
496
- * resolved path, not the exit code, precisely so that one contract can bind two
497
- * guards whose fail directions are correctly different.
482
+ * When the effective directory cannot be known, this guard declines to resolve
483
+ * the token and fails open, which is the doctrine every other undecidable case
484
+ * in this file follows. The corpus asserts the resolved path rather than the
485
+ * exit code, so the contract stays about resolution.
498
486
  *
499
487
  * Fails OPEN and says so, like every other undecidable case in this file.
500
488
  */
@@ -513,10 +501,8 @@ function scriptReachingForeignTree(payload, bound) {
513
501
  if (!isAbsolute(named) && cwd === null) {
514
502
  // Contract point 3: the effective directory is unknown, so WHICH copy of
515
503
  // a same-named script would run is unknown too. Declining to resolve is
516
- // the half shared with parity-safety-net.sh; failing open rather than
517
- // refusing is this guard's own doctrine, and the corpus binds the two
518
- // guards on the resolution precisely so it does not have to bind them
519
- // on a verdict one of them would be wrong to reach.
504
+ // the contract; failing open rather than refusing is this guard's own
505
+ // doctrine, and the corpus pins the resolution rather than the verdict.
520
506
  say(
521
507
  `cannot tell which directory ${named} would run from; NOT enforcing on it`
522
508
  );
@@ -126,9 +126,6 @@ build_per_agent_variant() {
126
126
  }
127
127
 
128
128
  # Base plugin
129
- if [ -f "$ROOT_DIR/scripts/generate-scratch-supervisor-profile.mjs" ]; then
130
- node "$ROOT_DIR/scripts/generate-scratch-supervisor-profile.mjs"
131
- fi
132
129
  build_plugin base lisa
133
130
 
134
131
  # Startup and the CLI share one Node-builtins-only Rails hook engine. Stage
@@ -180,7 +177,7 @@ HOST_GUARD_DIR="$ROOT_DIR/all/copy-overwrite/scripts/lisa-hooks"
180
177
  if [ -d "$SRC_DIR/base/hooks" ]; then
181
178
  mkdir -p "$HOST_GUARD_DIR"
182
179
  fi
183
- for guard in block-no-verify parity-safety-net block-shell-json-parsing \
180
+ for guard in block-no-verify block-shell-json-parsing \
184
181
  block-instruction-file-edits block-direct-issue-create \
185
182
  block-managed-file-edits block-blind-automerge worktree-binding-guard; do
186
183
  if [ -f "$SRC_DIR/base/hooks/$guard.sh" ]; then
@@ -202,15 +199,15 @@ fi
202
199
  # Companions: files a guard resolves as a SIBLING OF ITSELF at run time.
203
200
  #
204
201
  # The loop above appends `.sh` to every roster entry, so it can only ever
205
- # deliver a guard's shell half. `parity-safety-net.sh` resolves its heredoc
206
- # classifier at `$(dirname "${BASH_SOURCE[0]}")/parity-safety-net-heredoc.py`,
207
- # and that literal `.sh` was an extension filter no roster entry could get past:
208
- # the plugin trees all carry the classifier, the host tree carried seven `.sh`
209
- # files and nothing else, and the sibling lookup in an applied host checkout
210
- # therefore failed on every machine. The guard fails closed, correctly, so the
211
- # consequence was that EVERY heredoc was blocked in every host project that had
212
- # taken these hooks — permanently, and not fixable by installing anything
213
- # (issue #3483).
202
+ # deliver a guard's shell half. A guard that resolves a sibling helper — the
203
+ # heredoc classifier `parity-safety-net-heredoc.py` that
204
+ # `block-instruction-file-edits.sh` hands display commands to, for one — needs
205
+ # that file beside it, and the literal `.sh` was an extension filter no roster
206
+ # entry could get past: the plugin trees all carried the classifier, the host
207
+ # tree carried `.sh` files and nothing else, and the sibling lookup in an
208
+ # applied host checkout therefore failed on every machine. A guard that fails
209
+ # closed on a missing helper then blocks every command needing it, permanently,
210
+ # and not fixably by installing anything (issue #3483).
214
211
  #
215
212
  # Enumerated rather than globbed, for the reason the roster itself is: a file
216
213
  # appearing in `plugins/src/base/hooks/` is not by itself a decision to ship it
@@ -353,5 +350,3 @@ for agent in "${PER_AGENT_VARIANTS[@]}"; do
353
350
  done
354
351
  done
355
352
 
356
- # Historical ownership plus the newly emitted compatibility handlers must agree.
357
- node "$ROOT_DIR/scripts/generate-retired-safety-net-manifest.mjs"
@@ -2,10 +2,9 @@
2
2
  /**
3
3
  * Refuse a cwd-resolution corpus that cannot bite.
4
4
  *
5
- * Two guards answer "which file will this command actually execute?" in two
6
- * languages — POSIX shell in `parity-safety-net.sh`, Node in
7
- * `worktree-binding-guard.mjs` — and one corpus of rows is what keeps their
8
- * answers the same (CodySwannGT/lisa#3952). That arrangement is only worth
5
+ * `worktree-binding-guard.mjs` answers "which file will this command actually
6
+ * execute?", and a corpus of rows is the written contract that answer is held
7
+ * to (CodySwannGT/lisa#3952). That arrangement is only worth
9
8
  * anything while the rows are adversarial, and rows decay in one direction: a
10
9
  * `holds` row is easy to write and always passes, so a corpus left alone drifts
11
10
  * towards proving the resolver RAN rather than that it BITES.
@@ -30,7 +29,7 @@ import path from "node:path";
30
29
  const CORPUS = path.resolve(
31
30
  "tests/unit/hooks/support/cwd-resolution-corpus.json"
32
31
  );
33
- const GUARDS = ["shell", "node"];
32
+ const GUARDS = ["node"];
34
33
  const CONTROLS = ["bites", "wall", "holds"];
35
34
  /** The classes that fail under a wrong implementation. `holds` does not. */
36
35
  const ADVERSARIAL = ["bites", "wall"];
@@ -80,13 +80,6 @@ export const DISPOSITION = Object.freeze({
80
80
  * fifth artifact cannot join `check:artifacts` without also appearing here.
81
81
  */
82
82
  export const GENERATED_ARTIFACTS = Object.freeze([
83
- Object.freeze({
84
- path: "scripts/lib/retired-safety-net-manifest.json",
85
- check: "check:retired-safety-net-manifest",
86
- disposition: DISPOSITION.UNSUPPORTED,
87
- reason:
88
- "nested: each entry contains source, hashes and current shim bytes; the flat merge parser cannot preserve that ownership contract",
89
- }),
90
83
  Object.freeze({
91
84
  path: "src/core/upstream-evidence-manifest.ts",
92
85
  check: "check:upstream-evidence-manifest",
@@ -29,7 +29,6 @@ const canonicalSupportFiles = [
29
29
  "discharge-work-item-gates.sh",
30
30
  "block-managed-file-edits.sh",
31
31
  "block-no-verify.sh",
32
- "parity-safety-net.sh",
33
32
  "parity-safety-net-heredoc.py",
34
33
  "guard-dedupe.bash",
35
34
  ...RAILS_HOOK_ENGINE_FILES,
@@ -233,18 +233,6 @@ const AGY_PLUGIN_HOOKS = [
233
233
  agyScript: "block-no-verify.agy.sh",
234
234
  supportScripts: [],
235
235
  },
236
- {
237
- sourceScript: "parity-safety-net.sh",
238
- hookName: "lisa-parity-safety-net",
239
- event: "PreToolUse",
240
- matcher: "run_command",
241
- agyScript: "parity-safety-net.agy.sh",
242
- supportScripts: [
243
- "parity-safety-net.sh",
244
- "parity-safety-net-heredoc.py",
245
- GUARD_DEDUPE_LIB,
246
- ],
247
- },
248
236
  {
249
237
  sourceScript: "block-shell-json-parsing.sh",
250
238
  hookName: "lisa-block-shell-json-parsing",
@@ -262,7 +250,14 @@ const AGY_PLUGIN_HOOKS = [
262
250
  event: "PreToolUse",
263
251
  matcher: "run_command",
264
252
  agyScript: "block-instruction-file-edits.agy.sh",
265
- supportScripts: ["block-instruction-file-edits.sh", GUARD_DEDUPE_LIB],
253
+ // The canonical guard hands literal printf/echo commands to the heredoc
254
+ // classifier it resolves as a sibling of itself; without it the display
255
+ // projection is skipped and a quoted filename reads as a write target.
256
+ supportScripts: [
257
+ "block-instruction-file-edits.sh",
258
+ "parity-safety-net-heredoc.py",
259
+ GUARD_DEDUPE_LIB,
260
+ ],
266
261
  },
267
262
  {
268
263
  // Bash arm only, on the same terms as the instruction-file entry above:
@@ -1,14 +1,10 @@
1
1
  #!/usr/bin/env bash
2
- # Explicit setup helper. Installation reconciles only the retired safety net.
2
+ # Explicit setup helper.
3
3
  set -euo pipefail
4
4
 
5
5
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
6
6
  PACKAGE_ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
7
7
 
8
- # Target-only retirement also runs for legacy direct setup callers. It never
9
- # invokes full apply or changes unrelated templates, checks or plugin choices.
10
- node "$SCRIPT_DIR/retire-native-safety-net.mjs" --install
11
-
12
8
  # Inspect the lifecycle before sanitizing the package manager's environment.
13
9
  # Older host postinstall commands are also handled by the CLI bootstrap guard.
14
10
  if [[ "${npm_lifecycle_event:-}" = "postinstall" ||
@@ -298,8 +294,8 @@ fi
298
294
  # unattended/scheduled run there is no human to intervene.
299
295
  #
300
296
  # 1.0.1 runs fine on its built-in rules with no config file, and Lisa's own
301
- # block-no-verify.sh + parity-safety-net.sh hooks already enforce --no-verify and
302
- # destructive-command guards across every agent, so the file is now dead weight.
297
+ # block-no-verify.sh hook already enforces --no-verify across every agent, so the
298
+ # file is now dead weight.
303
299
  # Lisa no longer ships it (removed from all/copy-overwrite/), but copy-overwrite
304
300
  # never deletes, so already-provisioned projects keep a stale copy. Remove it
305
301
  # here — but ONLY the Lisa-shipped file (identified by its marker rule name), so a
@@ -583,10 +579,10 @@ done
583
579
  # bundles the Sentry MCP server (plugins/src/base/.mcp.json) for every agent
584
580
  # runtime. The official Claude plugin remains disabled by default to avoid
585
581
  # duplicate registration (#1955), but an explicit host choice enables its own
586
- # maintained skills and must survive sync (#4318). Likewise, the Lisa-native
587
- # parity-safety-net.sh hook screens every Bash command, so the upstream
588
- # safety-net plugin double-screened each command; its material guards were
589
- # absorbed into the Lisa hook (issue #1960). Remove unchosen retired installs.
582
+ # maintained skills and must survive sync (#4318). Likewise, the upstream
583
+ # safety-net plugin double-screened every Bash command alongside a Lisa-native
584
+ # hook that absorbed its material guards (issue #1960); that hook was itself
585
+ # retired in #4672 and removed in #4803. Remove unchosen retired installs.
590
586
  #
591
587
  # The upstream plugin's real name is `cc-safety-net`. #1960 retired
592
588
  # `safety-net@cc-marketplace`, which names no plugin, so the real one stayed
@@ -201,29 +201,11 @@ try {
201
201
  );
202
202
  proof.apply_receipt = receipt;
203
203
  assert.equal(receipt.apply_mode, "full");
204
- // #4672 retired the safety net. Exercise a surviving emitted guard while
205
- // keeping every proposed command inert, including the retired-target control.
204
+ // The safety-net hook was removed (CodySwannGT/lisa#4803); a full apply must
205
+ // not ship it. Exercise a surviving emitted guard, keeping every command inert.
206
206
  const retired = path.join(root, "scripts/lisa-hooks/parity-safety-net.sh");
207
- const retiredResult = spawnSync("/bin/bash", [retired], {
208
- cwd: root,
209
- encoding: "utf8",
210
- timeout: 60_000,
211
- env: { ...process.env, CLAUDE_PROJECT_DIR: root },
212
- input: JSON.stringify({
213
- tool_name: "Bash",
214
- tool_input: { command: "rm -rf /outside-project" },
215
- }),
216
- });
217
- proof.retired_safety_net = {
218
- sha256: createHash("sha256").update(readFileSync(retired)).digest("hex"),
219
- status: retiredResult.status,
220
- signal: retiredResult.signal,
221
- stdout: retiredResult.stdout,
222
- stderr: retiredResult.stderr,
223
- };
224
- assert.equal(retiredResult.error, undefined);
225
- assert.equal(retiredResult.signal, null);
226
- assert.equal(retiredResult.status, 0);
207
+ proof.retired_safety_net = { present: existsSync(retired) };
208
+ assert.equal(proof.retired_safety_net.present, false);
227
209
  const guard = path.join(root, "scripts/lisa-hooks/block-no-verify.sh");
228
210
  const guardBytes = readFileSync(guard);
229
211
  proof.guard_sha256 = createHash("sha256").update(guardBytes).digest("hex");
@@ -16,9 +16,9 @@
16
16
  * green allows-only suite reads as covered.
17
17
  *
18
18
  * CodySwannGT/lisa#3054 is why the class is not hypothetical: every verdict
19
- * site in `parity-safety-net.sh` reached its answer through `printf … | grep -q
20
- * …`, and a `grep` exiting 2 made the shipped hook ALLOW catastrophic deletes,
21
- * silently. An allows-only suite cannot detect that by construction.
19
+ * site in a since-retired destructive-command guard reached its answer through
20
+ * `printf … | grep -q …`, and a `grep` exiting 2 made the shipped hook ALLOW
21
+ * catastrophic deletes, silently. An allows-only suite cannot detect that by construction.
22
22
  *
23
23
  * ## Why this reports on observations rather than on assertions
24
24
  *
@@ -49,8 +49,8 @@ export const OWNERSHIP_HEADER = [
49
49
  * pass-through that reintroduces the headerless copy this module exists to end.
50
50
  *
51
51
  * `.py` is here because a guard's dependency does not have to share the guard's
52
- * language. `parity-safety-net.sh` resolves its heredoc classifier as a sibling
53
- * of itself, and that classifier is Python; with `.py` absent from this map the
52
+ * language. `block-instruction-file-edits.sh` resolves its heredoc classifier
53
+ * as a sibling of itself, and that classifier is Python; with `.py` absent from this map the
54
54
  * companion could not have been materialized even once someone named it, so the
55
55
  * closed map was the second of the two extension filters that kept it out of
56
56
  * the shipped tree (issue #3483). A `#` comment above a module docstring is a
@@ -664,9 +664,9 @@ export function runMergeGeneratedArtifact(
664
664
  );
665
665
  // The remedy is spelled with `git show` into a redirect, NOT `git checkout
666
666
  // --theirs --`, and that is load-bearing rather than stylistic
667
- // (CodySwannGT/lisa#3692). `parity-safety-net` refuses every `git checkout`
668
- // that discards worktree state, so the shape this driver used to print was
669
- // one its own sibling guard blocked: an operator following the refusal
667
+ // (CodySwannGT/lisa#3692). A sibling guard of the time refused every
668
+ // `git checkout` that discards worktree state, so the shape this driver used
669
+ // to print was one Lisa itself blocked: an operator following the refusal
670
670
  // faithfully was stopped by a second control, mid-conflict, with the
671
671
  // guard's own suggestion at the time being `git stash` — repo-global, shared
672
672
  // by every worktree, and a race against concurrent agents' work.
@@ -18,9 +18,9 @@
18
18
  *
19
19
  * The obvious mechanism is "run the remedy through the guard chain, assert
20
20
  * permitted". **That mechanism would have passed the instance that motivated
21
- * the ticket.** Measured on this repository: `git stash push` is PERMITTED by
22
- * `parity-safety-net.sh` — guard 7 refuses only `stash drop`/`clear`. So when a
23
- * guard advised "use git stash to preserve work first", a permission check
21
+ * the ticket.** Measured on this repository: `git stash push` was PERMITTED by
22
+ * the guard chain, which refused only `stash drop`/`clear`. So when a guard
23
+ * advised "use git stash to preserve work first", a permission check
24
24
  * would have gone green while the advice pointed every reader at one stash
25
25
  * stack shared by every worktree of the clone, racing concurrent agents.
26
26
  *
@@ -68,17 +68,16 @@ export const REMEDY_SWEEP_VERDICTS = Object.freeze([
68
68
  *
69
69
  * Each entry is a ruling this repository has already made and written down
70
70
  * somewhere other than a command pattern. `git stash` is the founding member:
71
- * `PRESERVE_GUIDANCE` in `parity-safety-net.sh` says "Do NOT reach for `git
72
- * stash`. One stash stack is shared by every worktree of a clone, so a
73
- * concurrently running agent can consume the entry you just pushed" — and yet
74
- * the guard permits the command, because refusing it outright would break the
75
- * legitimate single-worktree uses.
71
+ * one stash stack is shared by every worktree of a clone, so a concurrently
72
+ * running agent can consume the entry you just pushed — and yet no guard
73
+ * refuses the command, because refusing it outright would break the legitimate
74
+ * single-worktree uses.
76
75
  *
77
- * `advisory` is what separates a recommendation from a prohibition. Guard 7's
78
- * own message must keep containing the word "stash" while REFUSING it; only
79
- * text that offers the operation as the way forward is a finding. Keying on the
80
- * bare token would fail the one message doing the right thing — the mistake
81
- * `parity-safety-net-no-stash-advice.test.ts` records making.
76
+ * `advisory` is what separates a recommendation from a prohibition. A guard
77
+ * message that REFUSES a stash operation must keep containing the word
78
+ * "stash"; only text that offers the operation as the way forward is a
79
+ * finding. Keying on the bare token would fail the one message doing the right
80
+ * thing.
82
81
  */
83
82
  export const FORBIDDEN_REMEDY_OPERATIONS = Object.freeze([
84
83
  Object.freeze({
@@ -122,7 +122,7 @@
122
122
  "workflows": 26,
123
123
  "steps": 835,
124
124
  "couplings": 40,
125
- "inventory": 219
125
+ "inventory": 218
126
126
  },
127
127
  "counts": {
128
128
  "package-backed": 11,
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bash
2
- # This file is managed by Lisa and IS replaced on each `lisa` run.
3
- # Do not edit directly — durable changes belong upstream in Lisa.
4
-
5
- # Retired in #4672. Kept callable for persisted and already-loaded hooks.
6
- # The Lisa plugin and every unrelated guard remain enabled.
7
- # The shared parser remains for active instruction guards and legacy copies.
8
- # No input parsing, command execution, dependencies, or policy refusals.
9
- # Retained source-profile metadata for compatibility with build tooling. The
10
- # retired hook never uses this profile to classify a command.
11
- readonly SCRATCH_SUPERVISOR_SHA256='76ccf8ca6f98b214361f02ebf6ad58041129b76ed29128455e810095db6c292f'
12
- readonly SCRATCH_SUPERVISOR_CLEANUP_COUNT='7'
13
- # Drain hook input with bounded Bash builtins so native writers do not hit a
14
- # closed pipe. Nothing in the input is interpreted or executed.
15
- while IFS= read -r -n 8192 _lisa_retired_chunk || [ -n "$_lisa_retired_chunk" ]; do :; done
16
- exit 0
@@ -1,13 +0,0 @@
1
- /** One reported handler decision, without interpreting custom operator files. */
2
- export interface SafetyNetRetirementDecision {
3
- readonly path: string;
4
- readonly status: string;
5
- }
6
- /**
7
- * Retire hash-proven handlers without entering template application.
8
- * @param projectDir - Target project root
9
- * @param dryRun - Report without any writes
10
- * @returns Decisions from the common executable reconciler
11
- */
12
- export declare function retireNativeSafetyNet(projectDir: string, dryRun: boolean): Promise<readonly SafetyNetRetirementDecision[]>;
13
- //# sourceMappingURL=native-safety-net-retirement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"native-safety-net-retirement.d.ts","sourceRoot":"","sources":["../../src/core/native-safety-net-retirement.ts"],"names":[],"mappings":"AAWA,iFAAiF;AACjF,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,SAAS,2BAA2B,EAAE,CAAC,CAYjD"}
@@ -1,23 +0,0 @@
1
- /** Invoke the same target-only retirement used by package installation. */
2
- import { execFile } from "node:child_process";
3
- import path from "node:path";
4
- import { promisify } from "node:util";
5
- import { fileURLToPath } from "node:url";
6
- const run = promisify(execFile);
7
- const retirementScript = fileURLToPath(new URL("../../scripts/retire-native-safety-net.mjs", import.meta.url));
8
- /**
9
- * Retire hash-proven handlers without entering template application.
10
- * @param projectDir - Target project root
11
- * @param dryRun - Report without any writes
12
- * @returns Decisions from the common executable reconciler
13
- */
14
- export async function retireNativeSafetyNet(projectDir, dryRun) {
15
- const { stdout } = await run(process.execPath, [
16
- retirementScript,
17
- path.resolve(projectDir),
18
- "--json",
19
- ...(dryRun ? ["--dry-run"] : []),
20
- ], { timeout: 30_000, maxBuffer: 4 * 1024 * 1024 });
21
- return JSON.parse(stdout);
22
- }
23
- //# sourceMappingURL=native-safety-net-retirement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"native-safety-net-retirement.js","sourceRoot":"","sources":["../../src/core/native-safety-net-retirement.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAChC,MAAM,gBAAgB,GAAG,aAAa,CACpC,IAAI,GAAG,CAAC,4CAA4C,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CACvE,CAAC;AAQF;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,UAAkB,EAClB,MAAe;IAEf,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAC1B,OAAO,CAAC,QAAQ,EAChB;QACE,gBAAgB;QAChB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;QACxB,QAAQ;QACR,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACjC,EACD,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,EAAE,CAChD,CAAC;IACF,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAkC,CAAC;AAC7D,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { Migration, MigrationContext, MigrationResult } from "./migration.interface.js";
2
- /** Retire only the native target, including direct reduced-core apply callers. */
3
- export declare class RetireNativeSafetyNetMigration implements Migration {
4
- readonly name = "retire-native-safety-net";
5
- readonly description = "Disable retired Lisa-native safety-net handlers";
6
- /**
7
- * The common reconciler detects absent and already retired files itself.
8
- * @returns Whether to inspect the target-only retirement surface
9
- */
10
- applies(): Promise<boolean>;
11
- /**
12
- * Keep every non-target file, registration and operator field intact.
13
- * @param ctx - Apply context, including reduced mode and dry run
14
- * @returns Exact retirement results
15
- */
16
- apply(ctx: MigrationContext): Promise<MigrationResult>;
17
- }
18
- //# sourceMappingURL=retire-native-safety-net.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retire-native-safety-net.d.ts","sourceRoot":"","sources":["../../src/migrations/retire-native-safety-net.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAElC,kFAAkF;AAClF,qBAAa,8BAA+B,YAAW,SAAS;IAC9D,QAAQ,CAAC,IAAI,8BAA8B;IAC3C,QAAQ,CAAC,WAAW,qDAAqD;IAEzE;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjC;;;;OAIG;IACG,KAAK,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAqB7D"}