@codyswann/lisa 4.23.39 → 4.24.0

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 (79) hide show
  1. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  2. package/dist/core/lisa-owned-hash-ledger.js +4 -0
  3. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  4. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  5. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  6. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  7. package/dist/core/upstream-evidence-manifest.js +16 -5
  8. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  9. package/expo/copy-overwrite/scripts/classify-maestro-failures.mjs +535 -47
  10. package/expo/create-only/.maestro/flake-classification.json +6 -0
  11. package/package.json +3 -3
  12. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +1 -1
  15. package/plugins/lisa/.codex-plugin/skills/lisa-validate-tracker-mapping/SKILL.md +111 -1
  16. package/plugins/lisa/scripts/scoping-label-audit.mjs +474 -0
  17. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +1 -1
  18. package/plugins/lisa/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
  19. package/plugins/lisa-agy/plugin.json +1 -1
  20. package/plugins/lisa-agy/scripts/scoping-label-audit.mjs +474 -0
  21. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +1 -1
  22. package/plugins/lisa-agy/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
  23. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  26. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-copilot/scripts/scoping-label-audit.mjs +474 -0
  30. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +1 -1
  31. package/plugins/lisa-copilot/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
  32. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-cursor/scripts/scoping-label-audit.mjs +474 -0
  34. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +1 -1
  35. package/plugins/lisa-cursor/skills/lisa-validate-tracker-mapping/SKILL.md +112 -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-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-nestjs/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  48. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  49. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  54. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  58. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  59. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  63. package/plugins/lisa-rails-agy/plugin.json +1 -1
  64. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  68. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  69. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  74. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/src/base/scripts/scoping-label-audit.mjs +474 -0
  77. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +1 -1
  78. package/plugins/src/base/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
  79. package/typescript/copy-contents/.husky/pre-push +76 -0
@@ -1,5 +1,81 @@
1
1
  # BEGIN: AI GUARDRAILS
2
2
 
3
+ # BEGIN: deletion-only push guard
4
+ # ---------------------------------------------------------------------------
5
+ # A push that only deletes refs has nothing for a gate to prove.
6
+ #
7
+ # Git runs this hook for `git push --delete` too, and before this block existed
8
+ # the whole file ran: slow lint, the coverage test run, integration, dead-code,
9
+ # thresholds, typecheck, against a push carrying zero commits. Measured on a
10
+ # fixture project with a valid `gates` block, a pure deletion executed every
11
+ # declared push gate and was then REFUSED — the ref was still on the remote
12
+ # afterwards. The only way through was `--no-verify`, which is the one flag this
13
+ # repository keeps a hook devoted to blocking. A policy that forces the bypass
14
+ # it forbids teaches that the bypass is negotiable, and the next use of it will
15
+ # not be for a branch deletion.
16
+ #
17
+ # Git feeds one line per ref on stdin, `<local ref> <local sha> <remote ref>
18
+ # <remote sha>`. Captured from real pushes:
19
+ #
20
+ # (delete) 000...000 refs/heads/doomed 2163bd5... deletion: LOCAL sha zeroed
21
+ # HEAD 8239f41... refs/heads/live 000...000 new branch: REMOTE zeroed
22
+ #
23
+ # So the SECOND field decides, not "a line containing zeroes" — the first push
24
+ # of a new branch carries an all-zero remote sha and must still run everything.
25
+ # A push that mixes a deletion with a commit-carrying ref introduces commits, so
26
+ # it runs everything too.
27
+ #
28
+ # READING THE STREAM SPENDS IT. Git delivers those lines exactly once, and
29
+ # `lisa-work-item.mjs validate-push` below parses the same stream to learn which
30
+ # refs are being pushed, as does any declared gate that reads it. So this
31
+ # captures the stream and REPLAYS it with `exec <`, restoring stdin for the rest
32
+ # of the hook byte for byte. Piping it to the validator alone would not be
33
+ # enough: a declared gate would still be starved. Letting it fall back to empty
34
+ # stdin would be worse than that — `validate-push` tolerates empty stdin by
35
+ # falling back to `git rev-list HEAD --not --remotes=<remote>`, so a guard that
36
+ # consumed and did not replay would silently downgrade traceability on EVERY
37
+ # push rather than fix anything. A hook that runs too much is a worse hook; a
38
+ # hook that proves too little is a worse gate.
39
+ #
40
+ # If no scratch file can be created, the guard stands down without reading a
41
+ # single byte and the hook behaves exactly as it did before. Failing towards
42
+ # "run the gates" is the only safe direction here.
43
+ #
44
+ # The project-specific extension slot at the bottom of this file does not run on
45
+ # a deletion either. That is deliberate rather than overlooked: the slot exists
46
+ # to add push-moment checks, and a push carrying no commits is exactly the push
47
+ # there is nothing to check. A host that needs to act on deletions should hook
48
+ # `reference-transaction` on the remote, not the local pre-push.
49
+ # ---------------------------------------------------------------------------
50
+ LISA_PUSHED_REFS="$(mktemp "${TMPDIR:-/tmp}/lisa-pushed-refs.XXXXXXXX")" || LISA_PUSHED_REFS=""
51
+ if [ -n "$LISA_PUSHED_REFS" ]; then
52
+ cat > "$LISA_PUSHED_REFS"
53
+ LISA_PUSHED_REF_COUNT=0
54
+ LISA_PUSHED_COMMIT_COUNT=0
55
+ # The `||` keeps a final line with no trailing newline. A line whose second
56
+ # field is empty — a blank or malformed line — counts as commit-carrying,
57
+ # because a push this cannot read must never be classified as a deletion.
58
+ while read -r LISA_PUSHED_LOCAL_REF LISA_PUSHED_LOCAL_SHA LISA_PUSHED_TAIL || [ -n "$LISA_PUSHED_LOCAL_REF" ]; do
59
+ LISA_PUSHED_REF_COUNT=$((LISA_PUSHED_REF_COUNT + 1))
60
+ case "$LISA_PUSHED_LOCAL_SHA" in
61
+ *[!0]* | "") LISA_PUSHED_COMMIT_COUNT=$((LISA_PUSHED_COMMIT_COUNT + 1)) ;;
62
+ esac
63
+ done < "$LISA_PUSHED_REFS"
64
+ if [ "$LISA_PUSHED_REF_COUNT" -gt 0 ] && [ "$LISA_PUSHED_COMMIT_COUNT" -eq 0 ]; then
65
+ rm -f "$LISA_PUSHED_REFS"
66
+ echo "ℹ️ Deletion-only push: no commits are leaving this machine, so the push gates have nothing to prove."
67
+ exit 0
68
+ fi
69
+ # Put the stream back for the validator and for every declared gate below.
70
+ exec < "$LISA_PUSHED_REFS"
71
+ # Unlinked while the descriptor above is still open, so nothing is left in
72
+ # TMPDIR and no later `trap ... EXIT` in this file can drop the cleanup.
73
+ rm -f "$LISA_PUSHED_REFS"
74
+ fi
75
+ unset LISA_PUSHED_REFS LISA_PUSHED_REF_COUNT LISA_PUSHED_COMMIT_COUNT
76
+ unset LISA_PUSHED_LOCAL_REF LISA_PUSHED_LOCAL_SHA LISA_PUSHED_TAIL
77
+ # END: deletion-only push guard
78
+
3
79
  WORK_ITEM_SCRIPT="node_modules/@codyswann/lisa/all/copy-overwrite/scripts/lisa-work-item.mjs"
4
80
  if [ ! -f "$WORK_ITEM_SCRIPT" ]; then
5
81
  WORK_ITEM_SCRIPT="scripts/lisa-work-item.mjs"