@codyswann/lisa 4.10.6 → 4.10.8
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/all/copy-overwrite/scripts/lisa-gates.mjs +82 -1
- package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +269 -44
- package/dist/cli/doctor-declared-contexts.d.ts.map +1 -1
- package/dist/cli/doctor-declared-contexts.js +16 -0
- package/dist/cli/doctor-declared-contexts.js.map +1 -1
- package/dist/cli/gate-report-drift-section.d.ts.map +1 -1
- package/dist/cli/gate-report-drift-section.js +6 -0
- package/dist/cli/gate-report-drift-section.js.map +1 -1
- package/dist/cli/gate-report-joins.d.ts +0 -15
- package/dist/cli/gate-report-joins.d.ts.map +1 -1
- package/dist/cli/gate-report-joins.js +2 -1
- package/dist/cli/gate-report-joins.js.map +1 -1
- package/dist/cli/gate-report-registry.d.ts +8 -0
- package/dist/cli/gate-report-registry.d.ts.map +1 -1
- package/dist/cli/gate-report-registry.js.map +1 -1
- package/dist/cli/gate-report-types.d.ts +2 -1
- package/dist/cli/gate-report-types.d.ts.map +1 -1
- package/dist/cli/gate-report-types.js.map +1 -1
- package/dist/core/gate-context-owners.d.ts +122 -0
- package/dist/core/gate-context-owners.d.ts.map +1 -0
- package/dist/core/gate-context-owners.js +174 -0
- package/dist/core/gate-context-owners.js.map +1 -0
- package/dist/core/gate-declaration-drift.d.ts +56 -79
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +73 -115
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +5 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +9 -4
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/health/declared-checks-inspection.d.ts +0 -22
- package/dist/health/declared-checks-inspection.d.ts.map +1 -1
- package/dist/health/declared-checks-inspection.js +44 -5
- package/dist/health/declared-checks-inspection.js.map +1 -1
- package/dist/opencode/plugin-templates/parity-safety-net.sh +269 -44
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/hooks/parity-safety-net.sh +269 -44
- package/plugins/lisa-agy/hooks/parity-safety-net.sh +269 -44
- package/plugins/lisa-agy/plugin.json +1 -1
- 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/hooks/parity-safety-net.sh +269 -44
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/parity-safety-net.sh +269 -44
- 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/hooks/parity-safety-net.sh +269 -44
- package/scripts/lisa-github-rulesets.sh +138 -0
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hold the gates declaration against the live ruleset, on a path a machine
|
|
3
|
-
* takes on its own.
|
|
4
|
-
*
|
|
5
|
-
* The comparison itself was not the missing piece. A finished reconciler has
|
|
6
|
-
* existed for some time, unit- and mutation-covered, reporting MISSING, EXTRA,
|
|
7
|
-
* MATCHED and a distinct UNPROVEN — and nothing invoked it. Its only callers
|
|
8
|
-
* were copies of prose in a skill telling a human to type the command, which
|
|
9
|
-
* makes it indistinguishable from a control that was never written. This module
|
|
10
|
-
* is the same comparison sitting on a scheduled, machine-invoked path.
|
|
11
|
-
*
|
|
12
|
-
* Two rules it does not get to bend:
|
|
13
|
-
*
|
|
14
|
-
* - **A source this run could not read is `warn`, never `pass`.** A comparison
|
|
15
|
-
* that silently passes when it could not reach the live ruleset is the exact
|
|
16
|
-
* defect this check exists to catch, sited on the check itself.
|
|
17
|
-
* - **Nothing here proposes removing a live required context.** A context no
|
|
18
|
-
* declaration asks for is reported so it can be told apart from a third-party
|
|
19
|
-
* check, not so it can be pruned. The remedy vocabulary in
|
|
20
|
-
* `core/gate-declaration-drift` structurally contains no removal.
|
|
21
|
-
* @module health/declared-checks-inspection
|
|
22
|
-
*/
|
|
23
1
|
import { type DeclarationDriftReport } from "../core/gate-declaration-drift.js";
|
|
24
2
|
import type { HealthFinding } from "./contract.js";
|
|
25
3
|
import { type RulesetReader } from "./ruleset-inspection.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-checks-inspection.d.ts","sourceRoot":"","sources":["../../src/health/declared-checks-inspection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"declared-checks-inspection.d.ts","sourceRoot":"","sources":["../../src/health/declared-checks-inspection.ts"],"names":[],"mappings":"AA0CA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAiCjC;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,sBAAsB,GAC7B,aAAa,CAqDf;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC9C,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,CAgExB"}
|
|
@@ -14,13 +14,33 @@
|
|
|
14
14
|
* - **A source this run could not read is `warn`, never `pass`.** A comparison
|
|
15
15
|
* that silently passes when it could not reach the live ruleset is the exact
|
|
16
16
|
* defect this check exists to catch, sited on the check itself.
|
|
17
|
-
* - **Nothing here proposes removing a live required context
|
|
18
|
-
* declaration asks for is reported so it
|
|
19
|
-
* check, not so it can be pruned. The
|
|
20
|
-
* `core/gate-declaration-drift`
|
|
17
|
+
* - **Nothing here proposes removing a live required context, with one
|
|
18
|
+
* evidenced exception.** A context no declaration asks for is reported so it
|
|
19
|
+
* can be told apart from a third-party check, not so it can be pruned. The
|
|
20
|
+
* sole removal in `core/gate-declaration-drift`'s vocabulary is reachable
|
|
21
|
+
* only from a `previousLabels` match — Lisa's own record that Lisa renamed
|
|
22
|
+
* the job — and is a REPORT even then: the ruleset carrying the retired name
|
|
23
|
+
* is frequently one Lisa does not manage, and editing somebody else's
|
|
24
|
+
* ruleset is not this check's decision to make.
|
|
25
|
+
*
|
|
26
|
+
* The live reader here lists every ruleset the repository has, managed or not,
|
|
27
|
+
* and the comparison runs over all of them. That breadth is the point: every
|
|
28
|
+
* RECONCILING surface is scoped per MANAGED ruleset name. The reconciliation
|
|
29
|
+
* in `lisa-github-rulesets.sh` makes Lisa's own templates match and never
|
|
30
|
+
* touches a ruleset somebody hand-made, and `health/ruleset-inspection`
|
|
31
|
+
* compares the same managed names — so a hand-made ruleset requiring a retired
|
|
32
|
+
* context was invisible to both. That is the #3067 failure.
|
|
33
|
+
*
|
|
34
|
+
* Since #3067, `lisa-github-rulesets.sh` also carries a REPORT-ONLY sweep
|
|
35
|
+
* (`report_retired_contexts`) that does read every live ruleset. An operator
|
|
36
|
+
* chasing a hand-made ruleset therefore has two places to look, and neither
|
|
37
|
+
* one edits it: that sweep prints what it found at the end of a run, and this
|
|
38
|
+
* module is the same finding on a scheduled, machine-invoked path. The
|
|
39
|
+
* managed-only scoping above still describes what either surface will CHANGE.
|
|
21
40
|
* @module health/declared-checks-inspection
|
|
22
41
|
*/
|
|
23
|
-
import {
|
|
42
|
+
import { contextOwners } from "../core/gate-context-owners.js";
|
|
43
|
+
import { classifyDeclarationDrift, } from "../core/gate-declaration-drift.js";
|
|
24
44
|
import { loadGateRegistry } from "../cli/gate-report-registry.js";
|
|
25
45
|
import { deterministicFinding, namedReason } from "./finding-utils.js";
|
|
26
46
|
import { liveRequiredContexts, } from "./ruleset-inspection.js";
|
|
@@ -61,6 +81,15 @@ function githubTarget(config) {
|
|
|
61
81
|
* @returns The finding
|
|
62
82
|
*/
|
|
63
83
|
export function declaredChecksFinding(report) {
|
|
84
|
+
// FIRST, ahead of the contradictions. A retired context is the only verdict
|
|
85
|
+
// here that may be blocking every pull request in the repository at this
|
|
86
|
+
// moment, and it is the one an operator cannot find on their own: there is
|
|
87
|
+
// no failing job to open and no log to read, so the reason it blocks has to
|
|
88
|
+
// come from this line or from nowhere.
|
|
89
|
+
const retired = report.entries.filter(entry => entry.verdict === "enforced-context-retired");
|
|
90
|
+
if (retired.length > 0) {
|
|
91
|
+
return deterministicFinding(CHECK, "fail", namedReason("Live branch protection requires contexts nothing will ever post — these are not failing, they can never report, and every pull request here waits on them forever", retired.map(entry => entry.detail)));
|
|
92
|
+
}
|
|
64
93
|
const contradictions = report.entries.filter(entry => entry.verdict === "declared-not-enforced" ||
|
|
65
94
|
entry.verdict === "enforced-declared-off");
|
|
66
95
|
if (contradictions.length > 0) {
|
|
@@ -100,6 +129,16 @@ export async function declaredChecksDriftFinding(projectRoot, config, reader, ti
|
|
|
100
129
|
if (actual === undefined) {
|
|
101
130
|
return deterministicFinding(CHECK, "warn", "Unproven: live branch protection could not be read within the deterministic deadline, so nothing here claims a declaration does or does not match it.");
|
|
102
131
|
}
|
|
132
|
+
// An empty sweep and a clean repository are otherwise identical, and the
|
|
133
|
+
// empty one is the more likely: a token without the ruleset scope, an
|
|
134
|
+
// organization-level ruleset the reader cannot see, and a repository that
|
|
135
|
+
// genuinely has no protection all arrive here as zero rows. Comparing
|
|
136
|
+
// against zero rulesets would report every declared requirement as enforced
|
|
137
|
+
// by nothing — a different and false claim, and exactly what the
|
|
138
|
+
// comparator's own contract forbids its callers from asking it for.
|
|
139
|
+
if (actual.length === 0) {
|
|
140
|
+
return deterministicFinding(CHECK, "warn", "Unproven: the repository reported no rulesets at all. A token without the ruleset scope, an organization ruleset this reader cannot see, and a repository with no protection are indistinguishable from here — so this run inspected nothing rather than finding nothing.");
|
|
141
|
+
}
|
|
103
142
|
const gates = readGatesSafely(registry, projectRoot);
|
|
104
143
|
if (gates === null) {
|
|
105
144
|
return deterministicFinding(CHECK, "warn", "Unproven: the gates block could not be read, so the contexts it implies could not be compared with live branch protection.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-checks-inspection.js","sourceRoot":"","sources":["../../src/health/declared-checks-inspection.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"declared-checks-inspection.js","sourceRoot":"","sources":["../../src/health/declared-checks-inspection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EACL,wBAAwB,GAEzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAA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AAK;YACL,YAAY,EAAE,qBAAqB;SACpC,CAAC;QACF,QAAQ,EAAE,oBAAoB,CAAC,MAAM,CAAC;KACvC,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,KAAK,UAAU,QAAQ,CACrB,MAAqB,EACrB,OAMC;IAED,IAAI,CAAC;QACH,OAAO,MAAM,MAAM,CACjB,OAAO,CAAC,KAAK,EACb,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,SAAS,EACjB,OAAO,CAAC,MAAM,CACf,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAOD;;;;;GAKG;AACH,SAAS,eAAe,CACtB,QAAqB,EACrB,WAAmB;IAEnB,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
# guards also match path-prefixed invocations like `/bin/rm` and `./rm`)
|
|
13
13
|
# - `rm -rf` of the cwd (`.`), a `..`-traversal path, a `~/`-anchored path,
|
|
14
14
|
# an absolute path outside the project (with a /tmp, /var/tmp, $TMPDIR
|
|
15
|
-
# allowance
|
|
16
|
-
#
|
|
15
|
+
# allowance, each also matched by its symlink-resolved spelling so /tmp and
|
|
16
|
+
# /private/tmp are ONE location), a `$VAR` target that neither is $TMPDIR
|
|
17
|
+
# nor resolves through an unambiguous in-command assignment, or ANY
|
|
18
|
+
# recursive forced delete while cwd is $HOME
|
|
17
19
|
# - force-pushing a protected branch (main/master/production/prod/release) —
|
|
18
20
|
# feature-branch force-push stays allowed (sanctioned rebase workflow;
|
|
19
21
|
# deliberate divergence from upstream's any-branch block). Every git guard
|
|
@@ -45,9 +47,19 @@
|
|
|
45
47
|
# CLOSED: any parse error exits 2 (a non-2 exit would be a non-blocking hook
|
|
46
48
|
# error in Claude Code, silently failing open).
|
|
47
49
|
#
|
|
50
|
+
# Narrowed false-positive class (issue #3106): the rm TARGET WALK is now scoped
|
|
51
|
+
# to the quoting region that contains the rm, so a recursive delete quoted as
|
|
52
|
+
# PROSE no longer turns every later token on the line into a deletion target. A
|
|
53
|
+
# variable in an unrelated argument — a `gh issue create --body-file "$G/x"`, a
|
|
54
|
+
# `git commit -F "$MSG"` — is no longer read as the thing being deleted. An rm
|
|
55
|
+
# outside quotes, or first inside its quoted run (`bash -c "rm -rf /"`,
|
|
56
|
+
# `echo "$(rm -rf /)"`), still hands the whole statement to the walk. See
|
|
57
|
+
# rm_scan_scope below for the rule and its accepted residual.
|
|
58
|
+
#
|
|
48
59
|
# Known accepted false-positive class: this is a text scan, not a shell engine,
|
|
49
60
|
# so display commands quoting a destructive string (`echo "docs about rm -rf /"`)
|
|
50
|
-
# can match
|
|
61
|
+
# can match — including one whose target sits in the SAME quoted run as the
|
|
62
|
+
# prose, which the #3106 scoping deliberately does not reach. Upstream exempts those via an engine-only DISPLAY_COMMANDS list a
|
|
51
63
|
# grep hook cannot replicate. The same text-scan limit means the rm guard treats
|
|
52
64
|
# a substitution-wrapped catastrophic delete as verdict-neutral (issue #1982): an
|
|
53
65
|
# executable `echo "$(rm -rf /)"` is blocked, but so are inert twins the shell
|
|
@@ -271,6 +283,36 @@ project_dir="${CLAUDE_PROJECT_DIR:-$PWD}"
|
|
|
271
283
|
tmp_dir_allow="${TMPDIR:-/tmp}"
|
|
272
284
|
tmp_dir_allow="${tmp_dir_allow%/}"
|
|
273
285
|
[ -n "$tmp_dir_allow" ] || tmp_dir_allow="/tmp"
|
|
286
|
+
# Physical (symlink-resolved) spelling of an allowed root — issue #3106 arm B.
|
|
287
|
+
# The allowance below is a set of LITERAL string prefixes, so on macOS, where
|
|
288
|
+
# /tmp is a symlink to /private/tmp, one directory had two spellings and only
|
|
289
|
+
# one of them was allowed: `rm -rf /tmp/x` passed while `rm -rf /private/tmp/x`
|
|
290
|
+
# — the SAME directory, and the spelling an agent's own scratchpad path is
|
|
291
|
+
# handed to it in — was refused as "outside the project". Two opposite verdicts
|
|
292
|
+
# for one location is a defect regardless of which verdict is right.
|
|
293
|
+
#
|
|
294
|
+
# This widens no LOCATION. It adds the second name of a location the guard has
|
|
295
|
+
# always allowed, computed from the filesystem rather than hardcoded, so a
|
|
296
|
+
# platform where /tmp is not a symlink gains nothing. Falls back to the logical
|
|
297
|
+
# path when the directory does not exist or resolves to `/`, so the allowance
|
|
298
|
+
# can never become an empty or root-anchored prefix (an empty prefix would make
|
|
299
|
+
# `""/*` match every absolute path).
|
|
300
|
+
phys_dir() {
|
|
301
|
+
local logical="$1" real=""
|
|
302
|
+
real="$(cd -- "$logical" 2>/dev/null && pwd -P)" || real=""
|
|
303
|
+
case "$real" in
|
|
304
|
+
"" | /) printf '%s' "$logical" ;;
|
|
305
|
+
*) printf '%s' "$real" ;;
|
|
306
|
+
esac
|
|
307
|
+
}
|
|
308
|
+
project_dir_phys="$(phys_dir "$project_dir")"
|
|
309
|
+
tmp_phys="$(phys_dir /tmp)"
|
|
310
|
+
var_tmp_phys="$(phys_dir /var/tmp)"
|
|
311
|
+
tmp_dir_allow_phys="$(phys_dir "$tmp_dir_allow")"
|
|
312
|
+
[ -n "$project_dir_phys" ] || project_dir_phys="$project_dir"
|
|
313
|
+
[ -n "$tmp_phys" ] || tmp_phys="/tmp"
|
|
314
|
+
[ -n "$var_tmp_phys" ] || var_tmp_phys="/var/tmp"
|
|
315
|
+
[ -n "$tmp_dir_allow_phys" ] || tmp_dir_allow_phys="$tmp_dir_allow"
|
|
274
316
|
# Peel command-substitution wrappers off a token so an rm nested in `$(…)`,
|
|
275
317
|
# backticks, `<(…)`/`>(…)`, a `"…"`/`'…'` quote, or a leading `\` alias-bypass
|
|
276
318
|
# (`\rm`) is recognized and its target classified as if the token were unwrapped
|
|
@@ -310,6 +352,224 @@ strip_subst_wrappers() {
|
|
|
310
352
|
done
|
|
311
353
|
printf '%s' "$t"
|
|
312
354
|
}
|
|
355
|
+
# Decide which text of an rm statement the TARGET WALK may read — issue #3106
|
|
356
|
+
# arm A. The statement selector matches the RAW command text, so a recursive
|
|
357
|
+
# delete quoted as PROSE inside a string argument selects the line, and every
|
|
358
|
+
# remaining token on it is then classified as a deletion target. Three
|
|
359
|
+
# independent sightings in one day, all of them commands that delete nothing:
|
|
360
|
+
# a `printf` reduction, a `gh issue create --title …` filing the report about
|
|
361
|
+
# this guard, and a commit message describing it. Each was refused for a
|
|
362
|
+
# variable in a LATER, unrelated argument.
|
|
363
|
+
#
|
|
364
|
+
# The rule is structural, with no allowlist of "display commands":
|
|
365
|
+
# - an rm invocation OUTSIDE any quote is real; the walk reads the whole
|
|
366
|
+
# statement, exactly as before (`rm -rf "$HOME"` keeps its target),
|
|
367
|
+
# - an rm at the START of its quoted run is an invocation the quote merely
|
|
368
|
+
# wraps (`bash -c "rm -rf /"`, `echo "$(rm -rf /)"`); the walk reads the
|
|
369
|
+
# whole statement, exactly as before,
|
|
370
|
+
# - an rm preceded by other words INSIDE its quoted run is prose; the walk is
|
|
371
|
+
# scoped to that run, so the rm's own quoted arguments are still classified
|
|
372
|
+
# in full while a variable in a later argument is no longer read as a
|
|
373
|
+
# deletion target.
|
|
374
|
+
#
|
|
375
|
+
# Failure directions all point at blocking: an unterminated quote, an
|
|
376
|
+
# over-long statement, or any run the scan cannot place falls back to the whole
|
|
377
|
+
# statement. Residual (accepted, documented): `eval "prose rm -rf" "$X"` would
|
|
378
|
+
# concatenate its words at run time and is scoped to the first run here.
|
|
379
|
+
rm_scan_scope() {
|
|
380
|
+
local stmt="$1"
|
|
381
|
+
local n=${#stmt}
|
|
382
|
+
# Long statements fall back to the full walk rather than pay a char scan.
|
|
383
|
+
if [ "$n" -gt 4000 ]; then
|
|
384
|
+
printf '%s' "$stmt"
|
|
385
|
+
return
|
|
386
|
+
fi
|
|
387
|
+
local i=0 ch q="" esc=0 outside="" cur_run="" first_rm_run="" found=0
|
|
388
|
+
while [ "$i" -lt "$n" ]; do
|
|
389
|
+
ch="${stmt:i:1}"
|
|
390
|
+
i=$((i + 1))
|
|
391
|
+
if [ "$esc" -eq 1 ]; then
|
|
392
|
+
esc=0
|
|
393
|
+
if [ -n "$q" ]; then cur_run="$cur_run$ch"; else outside="$outside$ch"; fi
|
|
394
|
+
continue
|
|
395
|
+
fi
|
|
396
|
+
if [ "$ch" = '\' ] && [ "$q" != "'" ]; then
|
|
397
|
+
esc=1
|
|
398
|
+
continue
|
|
399
|
+
fi
|
|
400
|
+
if [ -n "$q" ]; then
|
|
401
|
+
if [ "$ch" = "$q" ]; then
|
|
402
|
+
if [ "$found" -eq 0 ]; then
|
|
403
|
+
case "$cur_run" in
|
|
404
|
+
*[Rr][Mm]*)
|
|
405
|
+
if printf '%s' "$cur_run" | grep -Eiq -- "$RM_CMD"'([[:space:]]|$)'; then
|
|
406
|
+
found=1
|
|
407
|
+
first_rm_run="$cur_run"
|
|
408
|
+
fi
|
|
409
|
+
;;
|
|
410
|
+
esac
|
|
411
|
+
fi
|
|
412
|
+
q=""
|
|
413
|
+
cur_run=""
|
|
414
|
+
else
|
|
415
|
+
cur_run="$cur_run$ch"
|
|
416
|
+
fi
|
|
417
|
+
continue
|
|
418
|
+
fi
|
|
419
|
+
case "$ch" in
|
|
420
|
+
'"' | "'")
|
|
421
|
+
q="$ch"
|
|
422
|
+
cur_run=""
|
|
423
|
+
;;
|
|
424
|
+
*) outside="$outside$ch" ;;
|
|
425
|
+
esac
|
|
426
|
+
done
|
|
427
|
+
# An unterminated quote is text the scan cannot place: treat it as unquoted so
|
|
428
|
+
# the fallback below hands back the whole statement.
|
|
429
|
+
[ -z "$q" ] || outside="$outside$cur_run"
|
|
430
|
+
if printf '%s' "$outside" | grep -Eiq -- "$RM_CMD"'([[:space:]]|$)'; then
|
|
431
|
+
printf '%s' "$stmt"
|
|
432
|
+
return
|
|
433
|
+
fi
|
|
434
|
+
if [ "$found" -eq 0 ]; then
|
|
435
|
+
printf '%s' "$stmt"
|
|
436
|
+
return
|
|
437
|
+
fi
|
|
438
|
+
# `rm` first in its run (modulo whitespace and substitution/alias openers) is
|
|
439
|
+
# an invocation, not prose.
|
|
440
|
+
if printf '%s' "$first_rm_run" \
|
|
441
|
+
| grep -Eiq -- '^[[:space:]]*(\\|\$\(|`|\(|<\(|>\()*[[:space:]]*([[:alnum:]_./-]*/)?rm([[:space:]]|$)'; then
|
|
442
|
+
printf '%s' "$stmt"
|
|
443
|
+
return
|
|
444
|
+
fi
|
|
445
|
+
printf '%s' "$first_rm_run"
|
|
446
|
+
}
|
|
447
|
+
# Look up the ONE unambiguous assignment of NAME inside the command being
|
|
448
|
+
# classified — issue #3106 arm B, the variable half.
|
|
449
|
+
#
|
|
450
|
+
# Prints the recorded right-hand side, or fails when the name is never assigned
|
|
451
|
+
# here or is assigned more than one distinct value. Ambiguity must fail: the
|
|
452
|
+
# last write wins at run time and a text scan cannot order writes against the
|
|
453
|
+
# delete, so `V=/etc; rm -rf "$V"; V=/tmp/x` must not resolve to the harmless
|
|
454
|
+
# one. Only assignments literally present in this command are ever trusted;
|
|
455
|
+
# nothing is expanded from the hook's own environment.
|
|
456
|
+
rm_assignment_value() {
|
|
457
|
+
local name="$1" hits="" count=""
|
|
458
|
+
case "$name" in
|
|
459
|
+
"" | *[!A-Za-z0-9_]*) return 1 ;;
|
|
460
|
+
esac
|
|
461
|
+
hits="$(printf '%s\n' "$normalized_command_str" | tr ';&|' '\n' \
|
|
462
|
+
| grep -oE "(^|[[:space:]])${name}=[^[:space:]]*" \
|
|
463
|
+
| sed -E "s/^.*${name}=//")"
|
|
464
|
+
[ -n "$hits" ] || return 1
|
|
465
|
+
count="$(printf '%s\n' "$hits" | sort -u | grep -c '' | tr -d '[:space:]')"
|
|
466
|
+
[ "$count" = "1" ] || return 1
|
|
467
|
+
printf '%s' "$(printf '%s\n' "$hits" | head -n 1)"
|
|
468
|
+
}
|
|
469
|
+
# Rewrite a leading `$NAME` / `${NAME}` in a deletion target to the value the
|
|
470
|
+
# command itself assigns it, so the target is classified as if the agent had
|
|
471
|
+
# written that value literally — issue #3106 arm B.
|
|
472
|
+
#
|
|
473
|
+
# The guard's standing reason for refusing variable targets is that "unset or
|
|
474
|
+
# mistyped variables can point anywhere", and that reason survives intact: a
|
|
475
|
+
# name with no in-command assignment, an ambiguous one, or a value that is
|
|
476
|
+
# itself a command substitution never resolves and stays refused. What changes
|
|
477
|
+
# is only that a target the agent could have spelled literally is no longer
|
|
478
|
+
# refused for being spelled through a variable.
|
|
479
|
+
resolve_var_prefix() {
|
|
480
|
+
local token="$1" name="" rest="" value=""
|
|
481
|
+
case "$token" in
|
|
482
|
+
'${'*'}'*)
|
|
483
|
+
name="${token#'${'}"
|
|
484
|
+
name="${name%%\}*}"
|
|
485
|
+
rest="${token#'${'"$name"'}'}"
|
|
486
|
+
;;
|
|
487
|
+
'$'*)
|
|
488
|
+
rest="${token#'$'}"
|
|
489
|
+
name="${rest%%[!A-Za-z0-9_]*}"
|
|
490
|
+
rest="${rest#"$name"}"
|
|
491
|
+
;;
|
|
492
|
+
*) return 1 ;;
|
|
493
|
+
esac
|
|
494
|
+
[ -n "$name" ] || return 1
|
|
495
|
+
value="$(rm_assignment_value "$name")" || return 1
|
|
496
|
+
# A value that is itself a command substitution names no location the guard
|
|
497
|
+
# can read, so it never resolves — the refusal stands. `$(…)` already fails
|
|
498
|
+
# below (its leading `$` yields no variable name); backticks are named here so
|
|
499
|
+
# both spellings of substitution behave the same way.
|
|
500
|
+
case "$value" in
|
|
501
|
+
*'`'*) return 1 ;;
|
|
502
|
+
esac
|
|
503
|
+
case "$value" in
|
|
504
|
+
'"'*'"')
|
|
505
|
+
value="${value#\"}"
|
|
506
|
+
value="${value%\"}"
|
|
507
|
+
;;
|
|
508
|
+
"'"*"'")
|
|
509
|
+
value="${value#\'}"
|
|
510
|
+
value="${value%\'}"
|
|
511
|
+
;;
|
|
512
|
+
esac
|
|
513
|
+
[ -n "$value" ] || return 1
|
|
514
|
+
printf '%s%s' "$value" "$rest"
|
|
515
|
+
}
|
|
516
|
+
# Classify ONE deletion target. Extracted from the token walk so a variable
|
|
517
|
+
# target can be re-classified through every arm after resolution (#3106),
|
|
518
|
+
# instead of the variable arm being a terminal verdict of its own.
|
|
519
|
+
classify_rm_target() {
|
|
520
|
+
local token="$1" depth="${2:-0}" resolved=""
|
|
521
|
+
case "$token" in
|
|
522
|
+
-*) return 0 ;;
|
|
523
|
+
. | ./)
|
|
524
|
+
set +f
|
|
525
|
+
block "recursive forced delete of the current directory (rm -rf .)"
|
|
526
|
+
;;
|
|
527
|
+
.. | ../* | */.. | */../*)
|
|
528
|
+
set +f
|
|
529
|
+
block "recursive forced delete of a path outside the project (.. traversal)"
|
|
530
|
+
;;
|
|
531
|
+
'~' | '~'/*)
|
|
532
|
+
set +f
|
|
533
|
+
block "recursive forced delete of a home-anchored path (~/…) outside the project"
|
|
534
|
+
;;
|
|
535
|
+
/*)
|
|
536
|
+
case "$token" in
|
|
537
|
+
"$project_dir" | "$project_dir"/* | "$project_dir_phys" | "$project_dir_phys"/* \
|
|
538
|
+
| /tmp | /tmp/* | "$tmp_phys" | "$tmp_phys"/* \
|
|
539
|
+
| /var/tmp | /var/tmp/* | "$var_tmp_phys" | "$var_tmp_phys"/* \
|
|
540
|
+
| "$tmp_dir_allow" | "$tmp_dir_allow"/* | "$tmp_dir_allow_phys" | "$tmp_dir_allow_phys"/*) : ;;
|
|
541
|
+
*)
|
|
542
|
+
set +f
|
|
543
|
+
block "recursive forced delete of an absolute path outside the project (only the project, /tmp, /var/tmp, and \$TMPDIR are allowed)"
|
|
544
|
+
;;
|
|
545
|
+
esac
|
|
546
|
+
;;
|
|
547
|
+
'*')
|
|
548
|
+
# Bare top-level wildcard expands to every entry in the cwd. Guard 1a no
|
|
549
|
+
# longer bounds `*)` (T4b F1), so a substitution-wrapped `rm -rf *` is
|
|
550
|
+
# caught here after the trailing-closer strip peels `*)"` down to `*`.
|
|
551
|
+
set +f
|
|
552
|
+
block "recursive forced delete of a top-level wildcard (rm -rf *)"
|
|
553
|
+
;;
|
|
554
|
+
*'$'*)
|
|
555
|
+
case "$token" in
|
|
556
|
+
'$TMPDIR' | '$TMPDIR'/* | '${TMPDIR}' | '${TMPDIR}'/*) : ;;
|
|
557
|
+
*)
|
|
558
|
+
if [ "$depth" -lt 4 ] \
|
|
559
|
+
&& resolved="$(resolve_var_prefix "$token")" \
|
|
560
|
+
&& [ -n "$resolved" ] \
|
|
561
|
+
&& [ "$resolved" != "$token" ]; then
|
|
562
|
+
classify_rm_target "$resolved" $((depth + 1))
|
|
563
|
+
else
|
|
564
|
+
set +f
|
|
565
|
+
block "recursive forced delete of a variable-expanded target (unset or mistyped variables can point anywhere; \$TMPDIR is the only sanctioned dynamic target)"
|
|
566
|
+
fi
|
|
567
|
+
;;
|
|
568
|
+
esac
|
|
569
|
+
;;
|
|
570
|
+
esac
|
|
571
|
+
return 0
|
|
572
|
+
}
|
|
313
573
|
while IFS= read -r rm_stmt; do
|
|
314
574
|
if ! printf '%s' "$rm_stmt" | grep -Eiq -- "$RM_RF_CLUSTER" \
|
|
315
575
|
&& ! printf '%s' "$rm_stmt" | grep -Eiq -- "$RM_RF_SPLIT"; then
|
|
@@ -325,9 +585,13 @@ while IFS= read -r rm_stmt; do
|
|
|
325
585
|
&& [ "$(pwd -P)" = "$(cd -- "$HOME" 2>/dev/null && pwd -P)" ]; then
|
|
326
586
|
block "recursive forced delete while the working directory is \$HOME (cd into a project first)"
|
|
327
587
|
fi
|
|
588
|
+
# Scope the walk to the quoting region that actually contains the rm (#3106
|
|
589
|
+
# arm A). Unquoted and run-leading invocations get the whole statement back,
|
|
590
|
+
# so this is a no-op for every real delete.
|
|
591
|
+
rm_walk_text="$(rm_scan_scope "$rm_stmt")"
|
|
328
592
|
set -f
|
|
329
593
|
seen_rm=0
|
|
330
|
-
for raw_token in $
|
|
594
|
+
for raw_token in $rm_walk_text; do
|
|
331
595
|
token="$(strip_subst_wrappers "$raw_token")"
|
|
332
596
|
if [ "$seen_rm" -eq 0 ]; then
|
|
333
597
|
# Path-prefixed spellings (`/bin/rm`, `./rm`) are still rm (F2).
|
|
@@ -336,46 +600,7 @@ while IFS= read -r rm_stmt; do
|
|
|
336
600
|
esac
|
|
337
601
|
continue
|
|
338
602
|
fi
|
|
339
|
-
|
|
340
|
-
-*) continue ;;
|
|
341
|
-
. | ./)
|
|
342
|
-
set +f
|
|
343
|
-
block "recursive forced delete of the current directory (rm -rf .)"
|
|
344
|
-
;;
|
|
345
|
-
.. | ../* | */.. | */../*)
|
|
346
|
-
set +f
|
|
347
|
-
block "recursive forced delete of a path outside the project (.. traversal)"
|
|
348
|
-
;;
|
|
349
|
-
'~' | '~'/*)
|
|
350
|
-
set +f
|
|
351
|
-
block "recursive forced delete of a home-anchored path (~/…) outside the project"
|
|
352
|
-
;;
|
|
353
|
-
/*)
|
|
354
|
-
case "$token" in
|
|
355
|
-
"$project_dir" | "$project_dir"/* | /tmp | /tmp/* | /var/tmp | /var/tmp/* | "$tmp_dir_allow" | "$tmp_dir_allow"/*) : ;;
|
|
356
|
-
*)
|
|
357
|
-
set +f
|
|
358
|
-
block "recursive forced delete of an absolute path outside the project (only the project, /tmp, /var/tmp, and \$TMPDIR are allowed)"
|
|
359
|
-
;;
|
|
360
|
-
esac
|
|
361
|
-
;;
|
|
362
|
-
'*')
|
|
363
|
-
# Bare top-level wildcard expands to every entry in the cwd. Guard 1a no
|
|
364
|
-
# longer bounds `*)` (T4b F1), so a substitution-wrapped `rm -rf *` is
|
|
365
|
-
# caught here after the trailing-closer strip peels `*)"` down to `*`.
|
|
366
|
-
set +f
|
|
367
|
-
block "recursive forced delete of a top-level wildcard (rm -rf *)"
|
|
368
|
-
;;
|
|
369
|
-
*'$'*)
|
|
370
|
-
case "$token" in
|
|
371
|
-
'$TMPDIR' | '$TMPDIR'/* | '${TMPDIR}' | '${TMPDIR}'/*) : ;;
|
|
372
|
-
*)
|
|
373
|
-
set +f
|
|
374
|
-
block "recursive forced delete of a variable-expanded target (unset or mistyped variables can point anywhere; \$TMPDIR is the only sanctioned dynamic target)"
|
|
375
|
-
;;
|
|
376
|
-
esac
|
|
377
|
-
;;
|
|
378
|
-
esac
|
|
603
|
+
classify_rm_target "$token"
|
|
379
604
|
done
|
|
380
605
|
set +f
|
|
381
606
|
done < <(printf '%s' "$normalized_command_str" | tr '&|;' '\n' \
|
package/package.json
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"zod-validation-error": "^4.0.0"
|
|
150
150
|
},
|
|
151
151
|
"name": "@codyswann/lisa",
|
|
152
|
-
"version": "4.10.
|
|
152
|
+
"version": "4.10.8",
|
|
153
153
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
154
154
|
"main": "dist/index.js",
|
|
155
155
|
"exports": {
|