@codyswann/lisa 4.23.38 → 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.
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +8 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +18 -6
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/expo/copy-overwrite/scripts/check-e2e-coverage.mjs +97 -11
- package/expo/copy-overwrite/scripts/classify-maestro-failures.mjs +535 -47
- package/expo/create-only/.maestro/flake-classification.json +6 -0
- package/package.json +3 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-validate-tracker-mapping/SKILL.md +111 -1
- package/plugins/lisa/scripts/scoping-label-audit.mjs +474 -0
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/scoping-label-audit.mjs +474 -0
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/scripts/scoping-label-audit.mjs +474 -0
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/scripts/scoping-label-audit.mjs +474 -0
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/scripts/scoping-label-audit.mjs +474 -0
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-validate-tracker-mapping/SKILL.md +112 -2
- 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"
|