@codyswann/lisa 4.88.0 → 4.88.2
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-hooks/block-direct-issue-create.sh +13 -9
- package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +150 -37
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +24 -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/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +42 -24
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +5 -2
- package/dist/opencode/plugin-templates/parity-safety-net.sh +150 -37
- package/package.json +4 -4
- 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-agent-ready/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa/hooks/parity-safety-net.sh +150 -37
- package/plugins/lisa/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/lisa/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa/rules/reference/ready-role-filing.md +56 -5
- package/plugins/lisa/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-agy/hooks/parity-safety-net.sh +150 -37
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-agy/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +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-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-copilot/hooks/parity-safety-net.sh +150 -37
- package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +56 -5
- package/plugins/lisa-copilot/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-cursor/hooks/parity-safety-net.sh +150 -37
- package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +3 -2
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +56 -5
- package/plugins/lisa-cursor/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-devin/hooks/parity-safety-net.sh +150 -37
- package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-devin/rules/reference/ready-role-filing.md +56 -5
- package/plugins/lisa-devin/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-devin/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-devin/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-devin/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-devin/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-devin/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-devin/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-devin/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-write/SKILL.md +1 -1
- 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-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-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-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-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-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-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-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-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-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-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-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-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-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-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/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/src/base/hooks/parity-safety-net.sh +150 -37
- package/plugins/src/base/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/src/base/rules/reference/config-resolution.md +1 -0
- package/plugins/src/base/rules/reference/ready-role-filing.md +56 -5
- package/plugins/src/base/scripts/human-gate-act.mjs +182 -0
- package/plugins/src/base/scripts/human-gate-lift.mjs +141 -0
- package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/src/base/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/src/base/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/src/base/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/src/base/skills/lisa-track/SKILL.md +5 -5
- package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -1
|
@@ -464,15 +464,19 @@ FILE IT THE SANCTIONED WAY — one of these three, always explicit:
|
|
|
464
464
|
write, and claims it. Complete means the \`work-item-definition-of-ready\`
|
|
465
465
|
bar — reproduction, observed-versus-expected, Gherkin acceptance criteria.
|
|
466
466
|
|
|
467
|
-
2. A
|
|
468
|
-
|
|
467
|
+
2. A person must perform an act an agent cannot: supply a credential only
|
|
468
|
+
they hold, approve spend, open an external account, give a legal or
|
|
469
|
+
compliance sign-off, or act in a system the agent cannot reach. A choice
|
|
470
|
+
with a reasonable default is NOT that: decide it, record the decision on
|
|
471
|
+
the item, and use 1. Otherwise route the same way but pass
|
|
472
|
+
\`human_gate: "<the act a person must perform>"\` in place of
|
|
469
473
|
\`build_ready: true\` — the two are mutually exclusive. The leaf is filed
|
|
470
474
|
into the default backlog role, outside the lane build-intake claims from,
|
|
471
475
|
and is deliberately NOT claimed, so it keeps attracting the human attention
|
|
472
476
|
it was filed for. The hold is stamped so it is auditable rather than
|
|
473
477
|
indistinguishable from an accident:
|
|
474
478
|
|
|
475
|
-
Held for a
|
|
479
|
+
Held for a person to <act>: <reason>.
|
|
476
480
|
<!-- [lisa-human-gate] reason=<short-slug> -->
|
|
477
481
|
|
|
478
482
|
3. The item is a CONTAINER — an Epic, or any item whose state rolls up from
|
|
@@ -499,8 +503,8 @@ declarations itself:
|
|
|
499
503
|
|
|
500
504
|
$(declaration_hint)
|
|
501
505
|
|
|
502
|
-
Or a \`[lisa-human-gate]\` marker in the body it submits, when a
|
|
503
|
-
|
|
506
|
+
Or a \`[lisa-human-gate]\` marker in the body it submits, when a person
|
|
507
|
+
really must perform an act an agent cannot.
|
|
504
508
|
|
|
505
509
|
Or, for a container, \`None — container: state rolls up from children\` in
|
|
506
510
|
that body, and no by-design leaf type on the command.
|
|
@@ -561,11 +565,11 @@ FILE IT THE SANCTIONED WAY:
|
|
|
561
565
|
|
|
562
566
|
DO NOT reach for \`[lisa-human-gate]\` to get past this one. It still satisfies
|
|
563
567
|
the guard — it is a real declaration — but on an upstream defect report it is a
|
|
564
|
-
false one: it stamps the item as held for a
|
|
568
|
+
false one: it stamps the item as held for a person, and the
|
|
565
569
|
target's build queue scans the ready role and nothing else. The report is filed
|
|
566
570
|
and never picked up, which is the incomplete handoff this guard exists to
|
|
567
|
-
prevent, committed one repository over. Use it only when a
|
|
568
|
-
|
|
571
|
+
prevent, committed one repository over. Use it only when a person must genuinely
|
|
572
|
+
perform an act an agent cannot on the target.
|
|
569
573
|
|
|
570
574
|
OPERATOR ESCAPE: a human can export \`LISA_ALLOW_DIRECT_ISSUE_CREATE=1\` in the
|
|
571
575
|
environment before starting the session. It is deliberately not reachable by
|
|
@@ -985,7 +989,7 @@ def payload_is_inert(text):
|
|
|
985
989
|
#
|
|
986
990
|
# So on a Linear-tracked project the only declaration left that passed was
|
|
987
991
|
# `[lisa-human-gate]`, which this file's own comments correctly forbid for a
|
|
988
|
-
# build-ready item: it stamps the item as held for a
|
|
992
|
+
# build-ready item: it stamps the item as held for a person, and
|
|
989
993
|
# build-intake scans the ready role and nothing else. An honest operator had NO
|
|
990
994
|
# compliant command and exactly one dishonest one — a guard failing in the
|
|
991
995
|
# harmful direction, where complying is worse than not.
|
|
@@ -731,6 +731,46 @@ follow_may_invoke() {
|
|
|
731
731
|
return 1
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
+
# Both the policy view and statement parser use these exact comment boundaries.
|
|
735
|
+
# This is fixed awk source, never source derived from the inspected command.
|
|
736
|
+
follow_comment_awk() {
|
|
737
|
+
printf '%s\n' '
|
|
738
|
+
# A hash starts a comment only at an unescaped shell word boundary.
|
|
739
|
+
# Backslash-newline pairs disappear before token recognition; a quoted or
|
|
740
|
+
# escaped blank is part of a word, not a boundary before its next hash.
|
|
741
|
+
function comment_start(at, before, escapes, k) {
|
|
742
|
+
before = at - 1;
|
|
743
|
+
while (before > 1 && substr(s, before, 1) == "\n" && substr(s, before - 1, 1) == "\\" && !comment_newline[before]) {
|
|
744
|
+
lookahead_step();
|
|
745
|
+
escapes = 0;
|
|
746
|
+
for (k = before - 1; k > 0 && substr(s, k, 1) == "\\"; k--) { lookahead_step(); escapes++ }
|
|
747
|
+
if (escapes % 2 == 0) { break }
|
|
748
|
+
before -= 2;
|
|
749
|
+
}
|
|
750
|
+
if (before == 0 || comment_newline[before]) { return 1 }
|
|
751
|
+
if (substr(s, before, 1) !~ /[ \t\n;&|()<>]/) { return 0 }
|
|
752
|
+
escapes = 0;
|
|
753
|
+
for (k = before - 1; k > 0 && substr(s, k, 1) == "\\"; k--) { lookahead_step(); escapes++ }
|
|
754
|
+
return escapes % 2 == 0;
|
|
755
|
+
}
|
|
756
|
+
function comment_end(at, end) {
|
|
757
|
+
# Address one byte at a time rather than copying the remaining file for
|
|
758
|
+
# every short comment. Repeated lookahead shares the existing work cap.
|
|
759
|
+
for (end = at; end <= n && substr(s, end, 1) != "\n"; end++) { lookahead_step() }
|
|
760
|
+
# Backslashes inside discarded comments do not escape their newline.
|
|
761
|
+
# Share this fact with the main walk and every lookahead that skips it.
|
|
762
|
+
if (end <= n) { comment_newline[end] = 1 }
|
|
763
|
+
return end;
|
|
764
|
+
}
|
|
765
|
+
# Lexical lookahead keeps an asynchronous return from ending its parent
|
|
766
|
+
# scan before the trailing & event. Aggregate work is capped linearly in
|
|
767
|
+
# input size, including overlap from nested scopes; no partial parse passes.
|
|
768
|
+
function lookahead_step() {
|
|
769
|
+
if (++lookahead_work > 8 * n + 1024) { exit 2 }
|
|
770
|
+
}
|
|
771
|
+
'
|
|
772
|
+
}
|
|
773
|
+
|
|
734
774
|
# Split the command into statements at UNQUOTED separators, printing one
|
|
735
775
|
# statement per line as "<separator><TAB><statement>". Quote-aware on purpose: a
|
|
736
776
|
# `;` or `|` inside a quoted string is not a statement boundary, and splitting
|
|
@@ -746,21 +786,18 @@ follow_may_invoke() {
|
|
|
746
786
|
# arrives through the ENVIRONMENT: `awk -v` processes backslash escapes in the
|
|
747
787
|
# value it is given and would rewrite the command before it was ever read.
|
|
748
788
|
follow_split() {
|
|
749
|
-
LC_ALL=C SN_FOLLOW_TEXT="$1" awk '
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
# input size, including overlap from nested scopes; no partial parse passes.
|
|
753
|
-
function lookahead_step() {
|
|
754
|
-
if (++lookahead_work > 8 * n + 1024) { exit 2 }
|
|
755
|
-
}
|
|
756
|
-
function brace_pipe(from, opening, closing, j, c, quote, escape, braces, nesting, tail, tail_cases, tail_header, word, word_end) {
|
|
757
|
-
quote = ""; escape = 0; braces = 1; nesting = 0; brace_redirect = ""; tail_cases = 0; tail_header = 0;
|
|
789
|
+
LC_ALL=C SN_FOLLOW_TEXT="$1" awk "$(follow_comment_awk)"'
|
|
790
|
+
function brace_pipe(from, opening, closing, j, c, quote, escape, braces, nesting, tail, tail_cases, tail_header, word, word_end, parameters) {
|
|
791
|
+
quote = ""; escape = 0; braces = 1; nesting = 0; brace_redirect = ""; tail_cases = 0; tail_header = 0; parameters = 0;
|
|
758
792
|
for (j = from; j <= n; j++) {
|
|
759
793
|
lookahead_step(); c = substr(s, j, 1);
|
|
760
|
-
if (escape) { escape = 0; continue }
|
|
794
|
+
if (escape) { if (c == "$") { literal_dollars[j] = 1 } escape = 0; continue }
|
|
761
795
|
if (c == "\\" && quote != "\047") { escape = 1; continue }
|
|
762
796
|
if (quote != "") { if (c == quote) { quote = "" } continue }
|
|
763
797
|
if (c == "\"" || c == "\047" || c == "`") { quote = c; continue }
|
|
798
|
+
if (c == "{" && (parameters > 0 || (substr(s, j - 1, 1) == "$" && !literal_dollars[j - 1]))) { parameters++; continue }
|
|
799
|
+
if (c == "}" && parameters > 0) { parameters--; continue }
|
|
800
|
+
if (c == "#" && parameters == 0 && comment_start(j)) { j = comment_end(j) - 1; continue }
|
|
764
801
|
if (braces > 0) {
|
|
765
802
|
# A case-pattern ) is not the closing parenthesis of its shell.
|
|
766
803
|
if (opening == "(" && c ~ /[A-Za-z_]/) {
|
|
@@ -794,15 +831,18 @@ follow_split() {
|
|
|
794
831
|
if (tail > 0) { brace_redirect = substr(s, tail) }
|
|
795
832
|
return 0;
|
|
796
833
|
}
|
|
797
|
-
function list_async(from, j, c, quote, escape, nesting, braces) {
|
|
798
|
-
quote = ""; escape = 0; nesting = 0; braces = 0;
|
|
834
|
+
function list_async(from, j, c, quote, escape, nesting, braces, parameters) {
|
|
835
|
+
quote = ""; escape = 0; nesting = 0; braces = 0; parameters = 0;
|
|
799
836
|
for (j = from; j <= n; j++) {
|
|
800
837
|
lookahead_step();
|
|
801
838
|
c = substr(s, j, 1);
|
|
802
|
-
if (escape) { escape = 0; continue }
|
|
839
|
+
if (escape) { if (c == "$") { literal_dollars[j] = 1 } escape = 0; continue }
|
|
803
840
|
if (c == "\\" && quote != "\047") { escape = 1; continue }
|
|
804
841
|
if (quote != "") { if (c == quote) { quote = "" } continue }
|
|
805
842
|
if (c == "\"" || c == "\047" || c == "`") { quote = c; continue }
|
|
843
|
+
if (c == "{" && (parameters > 0 || (substr(s, j - 1, 1) == "$" && !literal_dollars[j - 1]))) { parameters++; continue }
|
|
844
|
+
if (c == "}" && parameters > 0) { parameters--; continue }
|
|
845
|
+
if (c == "#" && parameters == 0 && comment_start(j)) { j = comment_end(j) - 1; continue }
|
|
806
846
|
if (c == "(") { nesting++; continue }
|
|
807
847
|
if (c == ")") { if (nesting == 0) { return 0 } nesting--; continue }
|
|
808
848
|
if (c == "{") { braces++; continue }
|
|
@@ -813,6 +853,24 @@ follow_split() {
|
|
|
813
853
|
}
|
|
814
854
|
return 0;
|
|
815
855
|
}
|
|
856
|
+
# The reader consumes physical lines, but an unquoted/double-quoted
|
|
857
|
+
# backslash-newline is absent from the shell word. Preserve that join in
|
|
858
|
+
# emitted statements too: otherwise the next physical line can start with
|
|
859
|
+
# a literal word-owned hash and be discarded as a full-line comment.
|
|
860
|
+
function logical_lines(text, k, c, quote, escape, from, out) {
|
|
861
|
+
quote = ""; escape = 0; from = 1; out = "";
|
|
862
|
+
for (k = 1; k <= length(text); k++) {
|
|
863
|
+
c = substr(text, k, 1);
|
|
864
|
+
if (escape) {
|
|
865
|
+
if (c == "\n") { out = out substr(text, from, k - from - 1); from = k + 1 }
|
|
866
|
+
escape = 0; continue;
|
|
867
|
+
}
|
|
868
|
+
if (c == "\\" && quote != "\047") { escape = 1; continue }
|
|
869
|
+
if (quote != "") { if (c == quote) { quote = "" } continue }
|
|
870
|
+
if (c == "\"" || c == "\047") { quote = c }
|
|
871
|
+
}
|
|
872
|
+
return out substr(text, from);
|
|
873
|
+
}
|
|
816
874
|
# U records tell the walker the stream below may not match the shell, so
|
|
817
875
|
# a compound closer can no longer be trusted (follow_compound_close). They
|
|
818
876
|
# only ever ADD distrust; every other record is emitted exactly as before.
|
|
@@ -822,6 +880,7 @@ follow_split() {
|
|
|
822
880
|
# can spell `done` or `fi` on its own.
|
|
823
881
|
function record(kind, text) {
|
|
824
882
|
if (text ~ /\n/) { printf "U\t\n" }
|
|
883
|
+
text = logical_lines(text);
|
|
825
884
|
printf "%s\t%s\n", kind, text;
|
|
826
885
|
}
|
|
827
886
|
# The first word of one separator-delimited piece of a comment, as the
|
|
@@ -831,8 +890,10 @@ follow_split() {
|
|
|
831
890
|
gsub(/["\047]/, "", piece);
|
|
832
891
|
return piece ~ /^(fi|done|esac|case|if|then|else|elif|do|while|until|for|select|function|!|\{|\})$/;
|
|
833
892
|
}
|
|
834
|
-
#
|
|
835
|
-
#
|
|
893
|
+
# Retain the existing distrust signal for comments whose former split could
|
|
894
|
+
# change scope. Removing their text must not loosen a refusal that depended
|
|
895
|
+
# on conservative flow tracking. A comment is harmless to that tracking only
|
|
896
|
+
# when its former split cannot change any structure the walker
|
|
836
897
|
# tracks: no piece after a separator starts with a reserved word, quotes
|
|
837
898
|
# close, parentheses and braces balance, and nothing escapes or substitutes.
|
|
838
899
|
# Inside a case pattern a `)` ends the pattern, so it is never harmless
|
|
@@ -864,7 +925,13 @@ follow_split() {
|
|
|
864
925
|
if (pieces > 0 && comment_reserved(piece)) { return 1 }
|
|
865
926
|
return cq != "" || parens != 0 || braces != 0;
|
|
866
927
|
}
|
|
867
|
-
function comment_check(at, pattern) {
|
|
928
|
+
function comment_check(at, pattern, from) {
|
|
929
|
+
# Full physical comment lines were absent from the old policy view and
|
|
930
|
+
# must not introduce new scope uncertainty merely because the parser now
|
|
931
|
+
# receives raw source. Inline comments keep the existing distrust rule.
|
|
932
|
+
if (at != 1 && substr(s, at - 1, 1) !~ /[[:space:];&|()]/) { return }
|
|
933
|
+
for (from = at - 1; from > 0 && substr(s, from, 1) != "\n"; from--) { lookahead_step() }
|
|
934
|
+
if (substr(s, from + 1, at - from - 1) ~ /^[[:space:]]*$/) { return }
|
|
868
935
|
if ((at == 1 || substr(s, at - 1, 1) ~ /[[:space:];&|()]/) && comment_unsafe(at + 1, pattern)) {
|
|
869
936
|
printf "U\t\n";
|
|
870
937
|
}
|
|
@@ -872,16 +939,21 @@ follow_split() {
|
|
|
872
939
|
BEGIN {
|
|
873
940
|
s = ENVIRON["SN_FOLLOW_TEXT"]; n = length(s);
|
|
874
941
|
q = ""; esc = 0; start = 1; sep = "o"; parens = 0;
|
|
875
|
-
functions = 0; cases = 0; backtick = 0; brace_depth = 0; post_brace = 0;
|
|
942
|
+
functions = 0; cases = 0; backtick = 0; brace_depth = 0; post_brace = 0; parameters = 0;
|
|
876
943
|
printf "L\t%d\n", list_async(1);
|
|
877
944
|
for (i = 1; i <= n; i++) {
|
|
878
|
-
c = substr(s, i, 1);
|
|
945
|
+
c = substr(s, i, 1); comment_from = 0;
|
|
879
946
|
if (esc == 1) { if (c == "$") { literal_dollars[i] = 1 } esc = 0; continue }
|
|
880
947
|
if (c == "\\" && q != "\047") { esc = 1; continue }
|
|
881
948
|
if (functions > 0) {
|
|
882
949
|
if (q != "") { if (c == q) { q = "" } continue }
|
|
883
950
|
if (c == "\"" || c == "\047") { q = c; continue }
|
|
884
|
-
if (c == "
|
|
951
|
+
if (c == "{" && (parameters > 0 || (substr(s, i - 1, 1) == "$" && !literal_dollars[i - 1]))) { parameters++; continue }
|
|
952
|
+
if (parameters > 0) { if (c == "}") { parameters-- } continue }
|
|
953
|
+
if (c == "#") {
|
|
954
|
+
comment_check(i, 0);
|
|
955
|
+
if (comment_start(i)) { i = comment_end(i) - 1; continue }
|
|
956
|
+
}
|
|
885
957
|
if (c == "{") { functions++ }
|
|
886
958
|
if (c == "}" && --functions == 0) {
|
|
887
959
|
printf "N\t%s\t%s\n", sep, function_name;
|
|
@@ -895,7 +967,12 @@ follow_split() {
|
|
|
895
967
|
quoted_expression = q == "\"" && ((c == "(" && substr(s, i - 1, 1) == "$" && !literal_dollars[i - 1]) || c == "`");
|
|
896
968
|
if (q != "" && !quoted_expression) { if (c == q) { q = "" } continue }
|
|
897
969
|
if (c == "\"" || c == "\047") { q = c; continue }
|
|
898
|
-
if (c == "
|
|
970
|
+
if (c == "{" && (parameters > 0 || (substr(s, i - 1, 1) == "$" && !literal_dollars[i - 1]))) { parameters++; continue }
|
|
971
|
+
if (c == "}" && parameters > 0) { parameters--; continue }
|
|
972
|
+
if (c == "#") {
|
|
973
|
+
comment_check(i, cases > 0 && case_scopes[cases] == parens && case_patterns[cases]);
|
|
974
|
+
if (parameters == 0 && comment_start(i)) { comment_from = i; i = comment_end(i); if (i > n) { i = n } c = "\n" }
|
|
975
|
+
}
|
|
899
976
|
if (c == "`") {
|
|
900
977
|
if (backtick) {
|
|
901
978
|
piece = substr(s, start, i - start);
|
|
@@ -907,7 +984,7 @@ follow_split() {
|
|
|
907
984
|
}
|
|
908
985
|
continue;
|
|
909
986
|
}
|
|
910
|
-
if (i == start && c ~ /[
|
|
987
|
+
if (i == start && c ~ /[ \t\n]/) { start = i + 1; continue }
|
|
911
988
|
if (c ~ /[[:space:]]/ && substr(s, i - 1, 1) !~ /[[:space:]]/ && substr(s, start, 4) == "case") {
|
|
912
989
|
piece = substr(s, start, i - start);
|
|
913
990
|
if (piece ~ /^case[[:space:]].*[[:space:]]in$/) {
|
|
@@ -925,17 +1002,17 @@ follow_split() {
|
|
|
925
1002
|
}
|
|
926
1003
|
if (c == "{") {
|
|
927
1004
|
piece = substr(s, start, i - start);
|
|
928
|
-
definition = piece ~ /^[
|
|
1005
|
+
definition = piece ~ /^[ \t\n]*([A-Za-z_][A-Za-z_0-9]*[ \t]*\([ \t]*\)|function[ \t]+[A-Za-z_][A-Za-z_0-9]*([ \t]*\([ \t]*\))?)[ \t\n]*$/;
|
|
929
1006
|
if (definition) {
|
|
930
1007
|
function_name = piece;
|
|
931
|
-
sub(/^[
|
|
932
|
-
sub(/[
|
|
1008
|
+
sub(/^[ \t\n]*(function[ \t]+)?/, "", function_name);
|
|
1009
|
+
sub(/[ \t\n\(].*$/, "", function_name);
|
|
933
1010
|
functions = 1; function_start = i + 1;
|
|
934
1011
|
continue;
|
|
935
1012
|
}
|
|
936
1013
|
previous = i > 1 ? substr(s, i - 1, 1) : "";
|
|
937
|
-
group = (i == 1 || previous ~ /[
|
|
938
|
-
piece ~ /^[
|
|
1014
|
+
group = (i == 1 || previous ~ /[ \t\n;&|()]/) && substr(s, i + 1, 1) ~ /[ \t\n;]/ &&
|
|
1015
|
+
piece ~ /^[ \t\n]*((then|do|else|!|time)[ \t\n]+)*$/;
|
|
939
1016
|
brace_groups[++brace_depth] = group;
|
|
940
1017
|
if (group) {
|
|
941
1018
|
brace_sep = sep;
|
|
@@ -966,10 +1043,10 @@ follow_split() {
|
|
|
966
1043
|
if (c == "(") {
|
|
967
1044
|
previous = i > 1 ? substr(s, i - 1, 1) : "";
|
|
968
1045
|
piece = substr(s, start, i - start);
|
|
969
|
-
header = piece ~ /^[
|
|
1046
|
+
header = piece ~ /^[ \t]*(function[ \t]+)?[A-Za-z_][A-Za-z_0-9]*[ \t]*$/ && substr(s, i + 1) ~ /^[ \t]*\)/;
|
|
970
1047
|
expression = previous ~ /[$<>]/ && !literal_dollars[i - 1] && substr(s, i + 1, 1) != "(";
|
|
971
1048
|
group = (parens == 0 || scopes[parens] != 0) &&
|
|
972
|
-
(i == 1 || previous ~ /[
|
|
1049
|
+
(i == 1 || previous ~ /[ \t\n;&|()]/) && substr(s, i + 1, 1) != "(" && !header;
|
|
973
1050
|
scopes[++parens] = expression ? 2 : group;
|
|
974
1051
|
if (expression) {
|
|
975
1052
|
expression_starts[parens] = start;
|
|
@@ -1002,7 +1079,7 @@ follow_split() {
|
|
|
1002
1079
|
if (c == ";" || c == "&" || c == "|" || c == "\n") {
|
|
1003
1080
|
if (parens > 0 && scopes[parens] == 0) { continue }
|
|
1004
1081
|
if (c == "&" && (substr(s, i - 1, 1) ~ /[<>]/ || substr(s, i + 1, 1) == ">")) { continue }
|
|
1005
|
-
piece = substr(s, start, i - start);
|
|
1082
|
+
piece = substr(s, start, (comment_from ? comment_from : i) - start);
|
|
1006
1083
|
pipe = c == "|" && substr(s, i + 1, 1) != "|";
|
|
1007
1084
|
if (pipe || sep == "|") { printf "(\t%s%s\nL\t%d\n", (sep == "|" ? "|" : ""), (pipe ? "+" : ""), list_async(start) }
|
|
1008
1085
|
if (piece ~ /[^[:space:]]/) { record(post_brace ? "R" : sep, piece) }
|
|
@@ -1175,11 +1252,46 @@ follow_locate() {
|
|
|
1175
1252
|
return 1
|
|
1176
1253
|
}
|
|
1177
1254
|
|
|
1255
|
+
# Drop a physical comment line only at a real logical shell word boundary.
|
|
1256
|
+
# A blank after a joined newline can start a comment, but a hash in a quoted or
|
|
1257
|
+
# continued word cannot. Keep the old conservative inline-comment policy while
|
|
1258
|
+
# sharing comment/newline provenance and work bounds with the statement parser.
|
|
1259
|
+
follow_policy_text() {
|
|
1260
|
+
LC_ALL=C SN_FOLLOW_TEXT="$1" awk "$(follow_comment_awk)"'
|
|
1261
|
+
BEGIN {
|
|
1262
|
+
s = ENVIRON["SN_FOLLOW_TEXT"]; n = length(s);
|
|
1263
|
+
quote = ""; escape = 0; parameters = 0; line_start = 1; from = 1;
|
|
1264
|
+
for (i = 1; i <= n; i++) {
|
|
1265
|
+
lookahead_step(); c = substr(s, i, 1);
|
|
1266
|
+
if (c == "\n") { line_start = i + 1 }
|
|
1267
|
+
if (escape) { if (c == "$") { literal_dollars[i] = 1 } escape = 0; continue }
|
|
1268
|
+
if (c == "\\" && quote != "\047") { escape = 1; continue }
|
|
1269
|
+
if (quote != "") { if (c == quote) { quote = "" } continue }
|
|
1270
|
+
if (c == "\"" || c == "\047" || c == "`") { quote = c; continue }
|
|
1271
|
+
if (c == "{" && (parameters > 0 || (substr(s, i - 1, 1) == "$" && !literal_dollars[i - 1]))) { parameters++; continue }
|
|
1272
|
+
if (c == "}" && parameters > 0) { parameters--; continue }
|
|
1273
|
+
if (c == "#" && parameters == 0 && comment_start(i)) {
|
|
1274
|
+
end = comment_end(i);
|
|
1275
|
+
if (substr(s, line_start, i - line_start) ~ /^[ \t]*$/) {
|
|
1276
|
+
printf "%s", substr(s, from, line_start - from);
|
|
1277
|
+
from = end;
|
|
1278
|
+
}
|
|
1279
|
+
# Ignore quotes and backslashes owned by any real comment, including
|
|
1280
|
+
# inline comments whose bytes the conservative policy view retains.
|
|
1281
|
+
i = end - 1;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
printf "%s", substr(s, from);
|
|
1285
|
+
}
|
|
1286
|
+
'
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1178
1289
|
# Read one executed file into the text the guards will scan, then follow what IT
|
|
1179
|
-
# executes, to a bounded depth.
|
|
1180
|
-
#
|
|
1290
|
+
# executes, to a bounded depth. Text policies retain their comment-free view;
|
|
1291
|
+
# the statement parser needs original physical lines to distinguish a comment
|
|
1292
|
+
# from a word-owned hash after a backslash-newline join.
|
|
1181
1293
|
follow_take() {
|
|
1182
|
-
local path="$1" depth="$2" size="" content="" rm_content="${3-}"
|
|
1294
|
+
local path="$1" depth="$2" size="" content="" source_content="" rm_content="${3-}"
|
|
1183
1295
|
local invocation_kind=child
|
|
1184
1296
|
if [ "$#" -eq 3 ]; then invocation_kind="$3"; fi
|
|
1185
1297
|
case "$follow_paths" in
|
|
@@ -1208,17 +1320,18 @@ follow_take() {
|
|
|
1208
1320
|
if [ "$#" -eq 4 ]; then
|
|
1209
1321
|
# Scan the same complete bytes whose digest was authenticated, not a
|
|
1210
1322
|
# second file read that could pair changed source with the cleanup view.
|
|
1211
|
-
|
|
1323
|
+
source_content="$4"
|
|
1212
1324
|
else
|
|
1213
|
-
|
|
1325
|
+
source_content="$(LC_ALL=C tr -d '\000' <"$path")" \
|
|
1214
1326
|
|| follow_refuse "$path" "it could not be read"
|
|
1215
1327
|
fi
|
|
1328
|
+
content="$(follow_policy_text "$source_content")" || follow_refuse "$path" "source policy view could not be read"
|
|
1216
1329
|
follow_names="$follow_names $path"
|
|
1217
1330
|
followed_text="$followed_text"$'\n'"$content"
|
|
1218
1331
|
if [ "$#" -ne 4 ]; then
|
|
1219
1332
|
rm_content="$content"
|
|
1220
1333
|
else
|
|
1221
|
-
rm_content="$(
|
|
1334
|
+
rm_content="$(follow_policy_text "$rm_content")" || follow_refuse "$path" "supervisor cleanup view could not be read"
|
|
1222
1335
|
fi
|
|
1223
1336
|
followed_rm_text="$followed_rm_text"$'\n'"$rm_content"
|
|
1224
1337
|
if [ "$depth" -lt "$FOLLOW_MAX_DEPTH" ]; then
|
|
@@ -1232,9 +1345,9 @@ follow_take() {
|
|
|
1232
1345
|
# followed separately by follow_supervisor. Re-expanding all bootstrap
|
|
1233
1346
|
# functions would re-interpret its internal protocol, not inspect a new
|
|
1234
1347
|
# user-controlled file, and multiplied its native hook time fourfold.
|
|
1235
|
-
follow_scan "$
|
|
1348
|
+
follow_scan "$source_content" "$((depth + 1))" 0 1
|
|
1236
1349
|
else
|
|
1237
|
-
follow_scan "$
|
|
1350
|
+
follow_scan "$source_content" "$((depth + 1))" 0 0 "$invocation_kind"
|
|
1238
1351
|
fi
|
|
1239
1352
|
if [ "$invocation_kind" != source ]; then
|
|
1240
1353
|
follow_cwd="$saved_cwd"
|
|
@@ -1442,7 +1442,7 @@
|
|
|
1442
1442
|
"children": []
|
|
1443
1443
|
},
|
|
1444
1444
|
"package/plugins/lisa/scripts/intake-blocker-reprobe.mjs": {
|
|
1445
|
-
"sha256": "
|
|
1445
|
+
"sha256": "5685dbb6bc5f559c0c7bc5881827b0b40c7a5cf90bc7f5d8360c526399c30a29",
|
|
1446
1446
|
"staticImports": [
|
|
1447
1447
|
"package/plugins/lisa/scripts/intake-prework-denominator.mjs"
|
|
1448
1448
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAiuEjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAooEjC,CAAC"}
|
|
@@ -1417,9 +1417,11 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
1417
1417
|
"1d9acef616f87946857e58a89a841f020fb19f7bffda78a688c0a446543eaa0a",
|
|
1418
1418
|
"22184f1dd1b96e818741bd4ae659446299535d7ce594817155edebac4172a7ba",
|
|
1419
1419
|
"2832037d6c8d7930a111519dee0cca0ed0110deba3988f8e713bb9203de254df",
|
|
1420
|
+
"285beb4f59d18c1b52f7499daa82a5b0e828e96df118242993dd2bda68f43a06",
|
|
1420
1421
|
"2e030d5a394d3edb48c391db49661fb3d45545c85f88ea03d1ab07ad3787c089",
|
|
1421
1422
|
"365ed7304506ac7f2ee8c70ef120ab131a2dedd1c1d208c94a025fba306958a8",
|
|
1422
1423
|
"412209ea2329a64737eeffa4ffc9b6f9371f14cf86419fd0626361a99188a3f8",
|
|
1424
|
+
"41e6d02e98220c0e0d6d078c511ece1b516cc1891295100501272fc938715d4c",
|
|
1423
1425
|
"49fb071d5e062200b09babdc56002bc6bd8aceefd8508c49763c05d505f5083e",
|
|
1424
1426
|
"4e9b1e4d709fecbef5be616d76b641e6edf9a96c7b811e91df3d7842d1450f51",
|
|
1425
1427
|
"500b5d5770cf7a6bf5588effe6db462fe0a4646d1de3e8b799115279af1b2662",
|
|
@@ -1628,6 +1630,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
1628
1630
|
"cc9b44042d184a65277116009fccc26a678b57dbc51699e5acaae8afdf9735ff",
|
|
1629
1631
|
"cda051c451145d6ff93a744a290176640cae39309cd346a00e73a924add089d8",
|
|
1630
1632
|
"cecab19d8997af8a0864cebf25f32d9bb537043894fc06cc2389fe9c159da529",
|
|
1633
|
+
"cfa7f56b1db4e1c0cedb8c3af39eb1af25202569ad5299b278db002ae3584913",
|
|
1631
1634
|
"d12583803e8ff5e4b64e68eafc8d3c377af4c400d8b7ecd1c7fe699d8f92784a",
|
|
1632
1635
|
"d9ea58150aa27e7f0aa9a4ef155ed446d30bdfc932d01c64e2b8ca211aa0de7b",
|
|
1633
1636
|
"db56b49f8a069f5a2f7d352b4f880d8637c3b82ae106e9bf148747f0de424dce",
|
|
@@ -1635,6 +1638,8 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
1635
1638
|
"e192737a8756b97e406d2b1cbdb099e3b7f190cc6b96c3681284637de95c1646",
|
|
1636
1639
|
"e63b511a942eb2735db2d1b26f13b7eabc60f56e2f40d343dbd58cd3ffe765ba",
|
|
1637
1640
|
"e6a7f34b68e7c0f1c91669aa90dbbc52d475776efd48922b4cfdf6c4736ccec0",
|
|
1641
|
+
"e77079eaa42abf6ab05b4b9140c56a9e9ebbbcac2bc4c01c369e5c1bc5104e6f",
|
|
1642
|
+
"eac730634b0f36a91d8a1c18dfb52bdcd668d353420faf525c7bdfdeafb6b509",
|
|
1638
1643
|
"eb1eb871e8f2f2a21d4bf5bd3a0197975269bf80faf12063bc4ca2bc8660bc1b",
|
|
1639
1644
|
"ed490ea5c1cfde1b224d935a071cd82ce7578c83fe53815aaf91f1fc4e46f216",
|
|
1640
1645
|
"f740f600b255742a50f28e5c9d09427c5783c4084e84052dca46bc1f0c94a187",
|
|
@@ -2122,6 +2127,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2122
2127
|
"scripts/npm-updater-helper-graph.json": Object.freeze([
|
|
2123
2128
|
"035a459e896b98e0f52a1b7dc61bf45ee0701891bb5d12c6d093f85d4fba8681",
|
|
2124
2129
|
"07349149a13f75cf3d517202317aaa1dbe6b06b8c46a45a1512097dca85157da",
|
|
2130
|
+
"08fce845f478d3d4a29c343b93365355c69d4aba73c035c36971e72c7861d939",
|
|
2125
2131
|
"09352aa145bc81c3c5dab282c61d084cbbe5af6242d7d12303ad764fbad53de2",
|
|
2126
2132
|
"09ef191f06018f4fe7ac580b94e096d6370ab5a3e816e00401597a70470ebb2b",
|
|
2127
2133
|
"0b8d6e6cd22d8a2edef3437c772a7ddf7afc7e7c61e73476323da11d0972a888",
|
|
@@ -2141,6 +2147,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2141
2147
|
"322d4edf19711c6ff19d4152172669320bf4806a2190d3b5e2aa420901acebbb",
|
|
2142
2148
|
"33fb1ed24533df65dbc98076055c91397d5d57669fb0cb6407013e5c165da5b8",
|
|
2143
2149
|
"381611fa7242751ab28617797c257b5137f928c8bff1041eec0821014638fbd5",
|
|
2150
|
+
"4147c90547b1b67d1ea213fbd1e1e55917335325374e65b0ec4039311184713e",
|
|
2144
2151
|
"470715340b46b978c5fb2e129f952889acfc3e92a28767b849b456b2bf557c04",
|
|
2145
2152
|
"4eb102ead5b07918bd071a2e9588c7c515b55cfe7b06b77a1c735ecd90246195",
|
|
2146
2153
|
"559f96f189ec0c11f8a2ef0c6efca16b2728702f6d3f8aeda418b2ab9d98c4e4",
|
|
@@ -2164,7 +2171,9 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2164
2171
|
"7b1444433c16ae4b580ad71f908ae9788862b9f814d08c447c78f3dfd49226a4",
|
|
2165
2172
|
"7b1d6bba391f105b9d53b91773fd207c9a5e9b5bfcd638e1e6b579d507279d7d",
|
|
2166
2173
|
"7c8b9d5b8f7d77dbf520c1009497d041eeb9930103c7f52bfd8b04a4492eb023",
|
|
2174
|
+
"805f46fe1c469ee4192d31bd96d4288f96905d5ca86d6eebe0516cf692389a99",
|
|
2167
2175
|
"8222dc8691ef84a30c06a6427aa17b353082ee53ee513cdd5cbe69e936d82698",
|
|
2176
|
+
"882eea5c12e86fbf038c46142ce3ead3a2f6cdb014fc24a3bf67a1adeec0fa21",
|
|
2168
2177
|
"8a3c46d3501797ebb53a081c8b35e78e0ceb2b060503332b48e44ccc30d6d0df",
|
|
2169
2178
|
"8b3ef61c17d94bdf8eee99e02d396c975a12a8b8a3c2e34231eff6aaea3bf392",
|
|
2170
2179
|
"901c52e08a53f0c7420ddc3308aa49e656429827770c1fd6a3f4ba8c9029d8ad",
|
|
@@ -2180,6 +2189,8 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2180
2189
|
"ab1e4e2810b47e1c14db8386cf1175bf5b58f42000f784f440cb06b4ad4bab01",
|
|
2181
2190
|
"b2f392ac7eb9f645583dfbe357d608ab266c19177230b9b4420baa8975573b2c",
|
|
2182
2191
|
"b45d7b88eeadaf859ac312398aa49fc7e1f1882d1b5afcf58676178ea0695b58",
|
|
2192
|
+
"b67b99e08c15aedbb2f1c4246c94106217eb83c5956d07e198f0e90d40893895",
|
|
2193
|
+
"b922ba883be07b5bef68c3a9e5718bbd41eec7cbf8b2b1c28a7beb8fed38d19d",
|
|
2183
2194
|
"baa8ffc248ce29c30d10b579960b34b7836c7d7f47651ced3cbb551dfee65291",
|
|
2184
2195
|
"bddb9b01bb7553dfd54b13d128b053d8def52bee69b591906aa6ce4a270aafcd",
|
|
2185
2196
|
"c11328d3d4fd6d0f82ad51afc21f710877bd8dd2643c9d1a7d0fd2fed60358eb",
|
|
@@ -2204,6 +2215,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2204
2215
|
"f8107ab60b2ceb3845a0fa72d487956c47b3579aa40a97eee5d310355eb5847c",
|
|
2205
2216
|
"f87ed61167837cbf09691ae97a10b02f64b1fa1bc36a558bd5d903f49db10207",
|
|
2206
2217
|
"fb43be1093b0219b8756281185d41d9786ef50018cf3aa25bc3e3f6f7617ed59",
|
|
2218
|
+
"fd03f197b4db3dee95244df3d0af638fb371fd5d2726c173e0f6be40f5e92b88",
|
|
2207
2219
|
"fd96a6f85f2a3dae85c032d7a32a31258305e04aaaa0aa8ed5c25a39e5a3d73c",
|
|
2208
2220
|
"fdb4437f15a0be6a5a14377d1efcd93b2fc7b0d86d780200a4df249ec1b8f3d1",
|
|
2209
2221
|
"fe96d8b0227ca76e2ee92bcc233fa60b011d0990e69c35e80fc752ca7977e6b9",
|
|
@@ -3627,9 +3639,11 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
3627
3639
|
"1d9acef616f87946857e58a89a841f020fb19f7bffda78a688c0a446543eaa0a",
|
|
3628
3640
|
"22184f1dd1b96e818741bd4ae659446299535d7ce594817155edebac4172a7ba",
|
|
3629
3641
|
"2832037d6c8d7930a111519dee0cca0ed0110deba3988f8e713bb9203de254df",
|
|
3642
|
+
"285beb4f59d18c1b52f7499daa82a5b0e828e96df118242993dd2bda68f43a06",
|
|
3630
3643
|
"2e030d5a394d3edb48c391db49661fb3d45545c85f88ea03d1ab07ad3787c089",
|
|
3631
3644
|
"365ed7304506ac7f2ee8c70ef120ab131a2dedd1c1d208c94a025fba306958a8",
|
|
3632
3645
|
"412209ea2329a64737eeffa4ffc9b6f9371f14cf86419fd0626361a99188a3f8",
|
|
3646
|
+
"41e6d02e98220c0e0d6d078c511ece1b516cc1891295100501272fc938715d4c",
|
|
3633
3647
|
"49fb071d5e062200b09babdc56002bc6bd8aceefd8508c49763c05d505f5083e",
|
|
3634
3648
|
"4e9b1e4d709fecbef5be616d76b641e6edf9a96c7b811e91df3d7842d1450f51",
|
|
3635
3649
|
"500b5d5770cf7a6bf5588effe6db462fe0a4646d1de3e8b799115279af1b2662",
|
|
@@ -3836,6 +3850,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
3836
3850
|
"cc9b44042d184a65277116009fccc26a678b57dbc51699e5acaae8afdf9735ff",
|
|
3837
3851
|
"cda051c451145d6ff93a744a290176640cae39309cd346a00e73a924add089d8",
|
|
3838
3852
|
"cecab19d8997af8a0864cebf25f32d9bb537043894fc06cc2389fe9c159da529",
|
|
3853
|
+
"cfa7f56b1db4e1c0cedb8c3af39eb1af25202569ad5299b278db002ae3584913",
|
|
3839
3854
|
"d12583803e8ff5e4b64e68eafc8d3c377af4c400d8b7ecd1c7fe699d8f92784a",
|
|
3840
3855
|
"d9ea58150aa27e7f0aa9a4ef155ed446d30bdfc932d01c64e2b8ca211aa0de7b",
|
|
3841
3856
|
"db56b49f8a069f5a2f7d352b4f880d8637c3b82ae106e9bf148747f0de424dce",
|
|
@@ -3843,6 +3858,8 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
3843
3858
|
"e192737a8756b97e406d2b1cbdb099e3b7f190cc6b96c3681284637de95c1646",
|
|
3844
3859
|
"e63b511a942eb2735db2d1b26f13b7eabc60f56e2f40d343dbd58cd3ffe765ba",
|
|
3845
3860
|
"e6a7f34b68e7c0f1c91669aa90dbbc52d475776efd48922b4cfdf6c4736ccec0",
|
|
3861
|
+
"e77079eaa42abf6ab05b4b9140c56a9e9ebbbcac2bc4c01c369e5c1bc5104e6f",
|
|
3862
|
+
"eac730634b0f36a91d8a1c18dfb52bdcd668d353420faf525c7bdfdeafb6b509",
|
|
3846
3863
|
"eb1eb871e8f2f2a21d4bf5bd3a0197975269bf80faf12063bc4ca2bc8660bc1b",
|
|
3847
3864
|
"ed490ea5c1cfde1b224d935a071cd82ce7578c83fe53815aaf91f1fc4e46f216",
|
|
3848
3865
|
"f740f600b255742a50f28e5c9d09427c5783c4084e84052dca46bc1f0c94a187",
|
|
@@ -4307,6 +4324,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4307
4324
|
"scripts/npm-updater-helper-graph.json": Object.freeze([
|
|
4308
4325
|
"035a459e896b98e0f52a1b7dc61bf45ee0701891bb5d12c6d093f85d4fba8681",
|
|
4309
4326
|
"07349149a13f75cf3d517202317aaa1dbe6b06b8c46a45a1512097dca85157da",
|
|
4327
|
+
"08fce845f478d3d4a29c343b93365355c69d4aba73c035c36971e72c7861d939",
|
|
4310
4328
|
"09352aa145bc81c3c5dab282c61d084cbbe5af6242d7d12303ad764fbad53de2",
|
|
4311
4329
|
"09ef191f06018f4fe7ac580b94e096d6370ab5a3e816e00401597a70470ebb2b",
|
|
4312
4330
|
"0b8d6e6cd22d8a2edef3437c772a7ddf7afc7e7c61e73476323da11d0972a888",
|
|
@@ -4326,6 +4344,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4326
4344
|
"322d4edf19711c6ff19d4152172669320bf4806a2190d3b5e2aa420901acebbb",
|
|
4327
4345
|
"33fb1ed24533df65dbc98076055c91397d5d57669fb0cb6407013e5c165da5b8",
|
|
4328
4346
|
"381611fa7242751ab28617797c257b5137f928c8bff1041eec0821014638fbd5",
|
|
4347
|
+
"4147c90547b1b67d1ea213fbd1e1e55917335325374e65b0ec4039311184713e",
|
|
4329
4348
|
"470715340b46b978c5fb2e129f952889acfc3e92a28767b849b456b2bf557c04",
|
|
4330
4349
|
"4eb102ead5b07918bd071a2e9588c7c515b55cfe7b06b77a1c735ecd90246195",
|
|
4331
4350
|
"559f96f189ec0c11f8a2ef0c6efca16b2728702f6d3f8aeda418b2ab9d98c4e4",
|
|
@@ -4349,7 +4368,9 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4349
4368
|
"7b1444433c16ae4b580ad71f908ae9788862b9f814d08c447c78f3dfd49226a4",
|
|
4350
4369
|
"7b1d6bba391f105b9d53b91773fd207c9a5e9b5bfcd638e1e6b579d507279d7d",
|
|
4351
4370
|
"7c8b9d5b8f7d77dbf520c1009497d041eeb9930103c7f52bfd8b04a4492eb023",
|
|
4371
|
+
"805f46fe1c469ee4192d31bd96d4288f96905d5ca86d6eebe0516cf692389a99",
|
|
4352
4372
|
"8222dc8691ef84a30c06a6427aa17b353082ee53ee513cdd5cbe69e936d82698",
|
|
4373
|
+
"882eea5c12e86fbf038c46142ce3ead3a2f6cdb014fc24a3bf67a1adeec0fa21",
|
|
4353
4374
|
"8a3c46d3501797ebb53a081c8b35e78e0ceb2b060503332b48e44ccc30d6d0df",
|
|
4354
4375
|
"8b3ef61c17d94bdf8eee99e02d396c975a12a8b8a3c2e34231eff6aaea3bf392",
|
|
4355
4376
|
"901c52e08a53f0c7420ddc3308aa49e656429827770c1fd6a3f4ba8c9029d8ad",
|
|
@@ -4365,6 +4386,8 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4365
4386
|
"ab1e4e2810b47e1c14db8386cf1175bf5b58f42000f784f440cb06b4ad4bab01",
|
|
4366
4387
|
"b2f392ac7eb9f645583dfbe357d608ab266c19177230b9b4420baa8975573b2c",
|
|
4367
4388
|
"b45d7b88eeadaf859ac312398aa49fc7e1f1882d1b5afcf58676178ea0695b58",
|
|
4389
|
+
"b67b99e08c15aedbb2f1c4246c94106217eb83c5956d07e198f0e90d40893895",
|
|
4390
|
+
"b922ba883be07b5bef68c3a9e5718bbd41eec7cbf8b2b1c28a7beb8fed38d19d",
|
|
4368
4391
|
"baa8ffc248ce29c30d10b579960b34b7836c7d7f47651ced3cbb551dfee65291",
|
|
4369
4392
|
"bddb9b01bb7553dfd54b13d128b053d8def52bee69b591906aa6ce4a270aafcd",
|
|
4370
4393
|
"c11328d3d4fd6d0f82ad51afc21f710877bd8dd2643c9d1a7d0fd2fed60358eb",
|
|
@@ -4389,6 +4412,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4389
4412
|
"f8107ab60b2ceb3845a0fa72d487956c47b3579aa40a97eee5d310355eb5847c",
|
|
4390
4413
|
"f87ed61167837cbf09691ae97a10b02f64b1fa1bc36a558bd5d903f49db10207",
|
|
4391
4414
|
"fb43be1093b0219b8756281185d41d9786ef50018cf3aa25bc3e3f6f7617ed59",
|
|
4415
|
+
"fd03f197b4db3dee95244df3d0af638fb371fd5d2726c173e0f6be40f5e92b88",
|
|
4392
4416
|
"fd96a6f85f2a3dae85c032d7a32a31258305e04aaaa0aa8ed5c25a39e5a3d73c",
|
|
4393
4417
|
"fdb4437f15a0be6a5a14377d1efcd93b2fc7b0d86d780200a4df249ec1b8f3d1",
|
|
4394
4418
|
"fe96d8b0227ca76e2ee92bcc233fa60b011d0990e69c35e80fc752ca7977e6b9",
|