@codyswann/lisa 4.109.2 → 4.110.1
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/check-threshold-ratchet.mjs +4 -2
- package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +10 -5
- package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +4 -3
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
- package/all/create-only/.agents/rules/README.md +3 -2
- package/all/create-only/.lisa/ACCOUNTABILITY.md +16 -10
- package/all/create-only/.lisa/DEPENDENCY_DECISIONS.md +15 -12
- package/dist/codex/scripts/block-no-verify.sh +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +18 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa.d.ts +4 -3
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +12 -5
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/project-config-dependencies.d.ts +29 -8
- package/dist/core/project-config-dependencies.d.ts.map +1 -1
- package/dist/core/project-config-dependencies.js +55 -15
- package/dist/core/project-config-dependencies.js.map +1 -1
- package/dist/core/project-config-human-gate.d.ts +105 -0
- package/dist/core/project-config-human-gate.d.ts.map +1 -0
- package/dist/core/project-config-human-gate.js +178 -0
- package/dist/core/project-config-human-gate.js.map +1 -0
- package/dist/core/project-config-learnings.d.ts +28 -9
- package/dist/core/project-config-learnings.d.ts.map +1 -1
- package/dist/core/project-config-learnings.js +51 -13
- package/dist/core/project-config-learnings.js.map +1 -1
- package/dist/core/project-config.d.ts +13 -3
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +6 -2
- package/dist/core/project-config.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +84 -69
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/block-no-verify.sh +4 -3
- package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +10 -4
- package/dist/utils/usage-accounting.d.ts +13 -0
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +67 -4
- package/dist/utils/usage-accounting.js.map +1 -1
- package/dist/utils/usage-artifact-ref.d.ts +30 -0
- package/dist/utils/usage-artifact-ref.d.ts.map +1 -0
- package/dist/utils/usage-artifact-ref.js +55 -0
- package/dist/utils/usage-artifact-ref.js.map +1 -0
- 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/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/lisa/.codex-plugin/scripts/human-gate-act.mjs +278 -0
- package/plugins/lisa/.codex-plugin/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +9 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/SKILL.md +4 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/agents/openai.yaml +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-usage-accounting/SKILL.md +5 -1
- package/plugins/lisa/agents/learning-judge.md +5 -5
- package/plugins/lisa/agents/skill-evaluator.md +4 -4
- package/plugins/lisa/commands/debrief/apply.md +1 -1
- package/plugins/lisa/commands/learnings/audit.md +2 -2
- package/plugins/lisa/commands/persist-learning.md +1 -1
- package/plugins/lisa/hooks/block-direct-issue-create.sh +10 -5
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.sh +4 -3
- package/plugins/lisa/hooks/inject-resolved-config.mjs +236 -14
- package/plugins/lisa/hooks/threshold-ratchet.mjs +4 -2
- package/plugins/lisa/rules/eager/base-rules.md +1 -1
- package/plugins/lisa/rules/eager/do-it-now.md +2 -2
- package/plugins/lisa/rules/eager/learnings-ladder.md +1 -1
- package/plugins/lisa/rules/eager/security-audit-handling.md +5 -5
- package/plugins/lisa/rules/reference/automation-runbook-contract.md +37 -22
- package/plugins/lisa/rules/reference/base-rules.md +1 -1
- package/plugins/lisa/rules/reference/config-resolution.md +7 -6
- package/plugins/lisa/rules/reference/dependency-trust-classes.md +28 -18
- package/plugins/lisa/rules/reference/factory-model.md +17 -8
- package/plugins/lisa/rules/reference/intent-routing.md +3 -3
- package/plugins/lisa/rules/reference/learnings-ladder.md +1 -1
- package/plugins/lisa/rules/reference/promotion-contract.md +5 -2
- package/plugins/lisa/rules/reference/ready-role-filing.md +32 -22
- package/plugins/lisa/rules/reference/security-audit-handling.md +9 -6
- package/plugins/lisa/rules/reference/usage-accounting.md +29 -1
- package/plugins/lisa/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/lisa/scripts/human-gate-act.mjs +104 -8
- package/plugins/lisa/scripts/human-gate-lift.mjs +14 -7
- package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/lisa/scripts/ready-queue-order.mjs +9 -3
- package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-debrief-apply/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/lisa/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/lisa/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/lisa/skills/lisa-track/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-usage-accounting/SKILL.md +5 -1
- package/plugins/lisa-agy/agents/learning-judge.md +5 -5
- package/plugins/lisa-agy/agents/skill-evaluator.md +4 -4
- package/plugins/lisa-agy/commands/lisa/debrief/apply.md +1 -1
- package/plugins/lisa-agy/commands/lisa/learnings/audit.md +2 -2
- package/plugins/lisa-agy/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +10 -5
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/lisa-agy/scripts/human-gate-act.mjs +104 -8
- package/plugins/lisa-agy/scripts/human-gate-lift.mjs +14 -7
- package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/lisa-agy/scripts/ready-queue-order.mjs +9 -3
- package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-usage-accounting/SKILL.md +5 -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/agents/learning-judge.agent.md +5 -5
- package/plugins/lisa-copilot/agents/skill-evaluator.agent.md +4 -4
- package/plugins/lisa-copilot/commands/lisa/debrief/apply.md +1 -1
- package/plugins/lisa-copilot/commands/lisa/learnings/audit.md +2 -2
- package/plugins/lisa-copilot/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +10 -5
- package/plugins/lisa-copilot/hooks/block-no-verify.sh +4 -3
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +236 -14
- package/plugins/lisa-copilot/hooks/threshold-ratchet.mjs +4 -2
- package/plugins/lisa-copilot/rules/eager/base-rules.md +1 -1
- package/plugins/lisa-copilot/rules/eager/do-it-now.md +2 -2
- package/plugins/lisa-copilot/rules/eager/learnings-ladder.md +1 -1
- package/plugins/lisa-copilot/rules/eager/security-audit-handling.md +5 -5
- package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +37 -22
- package/plugins/lisa-copilot/rules/reference/base-rules.md +1 -1
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +7 -6
- package/plugins/lisa-copilot/rules/reference/dependency-trust-classes.md +28 -18
- package/plugins/lisa-copilot/rules/reference/factory-model.md +17 -8
- package/plugins/lisa-copilot/rules/reference/intent-routing.md +3 -3
- package/plugins/lisa-copilot/rules/reference/learnings-ladder.md +1 -1
- package/plugins/lisa-copilot/rules/reference/promotion-contract.md +5 -2
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +32 -22
- package/plugins/lisa-copilot/rules/reference/security-audit-handling.md +9 -6
- package/plugins/lisa-copilot/rules/reference/usage-accounting.md +29 -1
- package/plugins/lisa-copilot/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/lisa-copilot/scripts/human-gate-act.mjs +104 -8
- package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +14 -7
- package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/lisa-copilot/scripts/ready-queue-order.mjs +9 -3
- package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-usage-accounting/SKILL.md +5 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/learning-judge.md +5 -5
- package/plugins/lisa-cursor/agents/skill-evaluator.md +4 -4
- package/plugins/lisa-cursor/commands/lisa/debrief/apply.md +1 -1
- package/plugins/lisa-cursor/commands/lisa/learnings/audit.md +2 -2
- package/plugins/lisa-cursor/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +10 -5
- package/plugins/lisa-cursor/hooks/block-no-verify.sh +4 -3
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +236 -14
- package/plugins/lisa-cursor/hooks/threshold-ratchet.mjs +4 -2
- package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +37 -22
- package/plugins/lisa-cursor/rules/base-rules-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/base-rules.mdc +1 -1
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +7 -6
- package/plugins/lisa-cursor/rules/dependency-trust-classes-reference.mdc +28 -18
- package/plugins/lisa-cursor/rules/do-it-now.mdc +2 -2
- package/plugins/lisa-cursor/rules/factory-model-reference.mdc +17 -8
- package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +3 -3
- package/plugins/lisa-cursor/rules/learnings-ladder-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/learnings-ladder.mdc +1 -1
- package/plugins/lisa-cursor/rules/promotion-contract-reference.mdc +5 -2
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +32 -22
- package/plugins/lisa-cursor/rules/security-audit-handling-reference.mdc +9 -6
- package/plugins/lisa-cursor/rules/security-audit-handling.mdc +5 -5
- package/plugins/lisa-cursor/rules/usage-accounting-reference.mdc +29 -1
- package/plugins/lisa-cursor/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/lisa-cursor/scripts/human-gate-act.mjs +104 -8
- package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +14 -7
- package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/lisa-cursor/scripts/ready-queue-order.mjs +9 -3
- package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-usage-accounting/SKILL.md +5 -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/agents/learning-judge.md +5 -5
- package/plugins/lisa-devin/agents/skill-evaluator.md +4 -4
- package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +10 -5
- package/plugins/lisa-devin/hooks/block-no-verify.sh +4 -3
- package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +236 -14
- package/plugins/lisa-devin/hooks/threshold-ratchet.mjs +4 -2
- package/plugins/lisa-devin/rules/eager/base-rules.md +1 -1
- package/plugins/lisa-devin/rules/eager/do-it-now.md +2 -2
- package/plugins/lisa-devin/rules/eager/learnings-ladder.md +1 -1
- package/plugins/lisa-devin/rules/eager/security-audit-handling.md +5 -5
- package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +37 -22
- package/plugins/lisa-devin/rules/reference/base-rules.md +1 -1
- package/plugins/lisa-devin/rules/reference/config-resolution.md +7 -6
- package/plugins/lisa-devin/rules/reference/dependency-trust-classes.md +28 -18
- package/plugins/lisa-devin/rules/reference/factory-model.md +17 -8
- package/plugins/lisa-devin/rules/reference/intent-routing.md +3 -3
- package/plugins/lisa-devin/rules/reference/learnings-ladder.md +1 -1
- package/plugins/lisa-devin/rules/reference/promotion-contract.md +5 -2
- package/plugins/lisa-devin/rules/reference/ready-role-filing.md +32 -22
- package/plugins/lisa-devin/rules/reference/security-audit-handling.md +9 -6
- package/plugins/lisa-devin/rules/reference/usage-accounting.md +29 -1
- package/plugins/lisa-devin/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/lisa-devin/scripts/human-gate-act.mjs +104 -8
- package/plugins/lisa-devin/scripts/human-gate-lift.mjs +14 -7
- package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/lisa-devin/scripts/ready-queue-order.mjs +9 -3
- package/plugins/lisa-devin/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-debrief-apply/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/lisa-devin/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/lisa-devin/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/lisa-devin/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/lisa-devin/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/lisa-devin/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/lisa-devin/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/lisa-devin/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/lisa-devin/skills/lisa-track/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-usage-accounting/SKILL.md +5 -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/agents/learning-judge.md +5 -5
- package/plugins/src/base/agents/skill-evaluator.md +4 -4
- package/plugins/src/base/commands/debrief/apply.md +1 -1
- package/plugins/src/base/commands/learnings/audit.md +2 -2
- package/plugins/src/base/commands/persist-learning.md +1 -1
- package/plugins/src/base/hooks/block-direct-issue-create.sh +10 -5
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.sh +4 -3
- package/plugins/src/base/hooks/inject-resolved-config.mjs +236 -14
- package/plugins/src/base/hooks/threshold-ratchet.mjs +4 -2
- package/plugins/src/base/rules/eager/base-rules.md +1 -1
- package/plugins/src/base/rules/eager/do-it-now.md +2 -2
- package/plugins/src/base/rules/eager/learnings-ladder.md +1 -1
- package/plugins/src/base/rules/eager/security-audit-handling.md +5 -5
- package/plugins/src/base/rules/reference/automation-runbook-contract.md +37 -22
- package/plugins/src/base/rules/reference/base-rules.md +1 -1
- package/plugins/src/base/rules/reference/config-resolution.md +7 -6
- package/plugins/src/base/rules/reference/dependency-trust-classes.md +28 -18
- package/plugins/src/base/rules/reference/factory-model.md +17 -8
- package/plugins/src/base/rules/reference/intent-routing.md +3 -3
- package/plugins/src/base/rules/reference/learnings-ladder.md +1 -1
- package/plugins/src/base/rules/reference/promotion-contract.md +5 -2
- package/plugins/src/base/rules/reference/ready-role-filing.md +32 -22
- package/plugins/src/base/rules/reference/security-audit-handling.md +9 -6
- package/plugins/src/base/rules/reference/usage-accounting.md +29 -1
- package/plugins/src/base/scripts/blocker-edge-resolution.mjs +9 -5
- package/plugins/src/base/scripts/human-gate-act.mjs +104 -8
- package/plugins/src/base/scripts/human-gate-lift.mjs +14 -7
- package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +215 -39
- package/plugins/src/base/scripts/ready-queue-order.mjs +9 -3
- package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
- package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +23 -12
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +14 -9
- package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +24 -7
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +14 -10
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +4 -4
- package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +64 -32
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +9 -9
- package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +5 -5
- package/plugins/src/base/skills/lisa-monitor/SKILL.md +10 -4
- package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +5 -5
- package/plugins/src/base/skills/lisa-project-ideation/SKILL.md +10 -4
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +24 -13
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +19 -2
- package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +8 -4
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
- package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +7 -5
- package/plugins/src/base/skills/lisa-track/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-usage-accounting/SKILL.md +5 -1
- package/rails/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
- package/typescript/copy-contents/.husky/pre-commit +3 -2
- package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +2 -1
- package/typescript/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
|
@@ -5,7 +5,7 @@ alwaysApply: false
|
|
|
5
5
|
|
|
6
6
|
# Security Audit Handling
|
|
7
7
|
|
|
8
|
-
If `git push` fails because the pre-push hook reports security vulnerabilities, work the decision ladder below **autonomously**.
|
|
8
|
+
If `git push` fails because the pre-push hook reports security vulnerabilities, work the decision ladder below **autonomously**. No rung pauses for a human unless the project sets `humanGate.mode: "strict"`. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
|
|
9
9
|
|
|
10
10
|
## The decision ladder
|
|
11
11
|
|
|
@@ -14,10 +14,10 @@ The remediation for any high/critical advisory is a simple, ordered decision —
|
|
|
14
14
|
1. **Update the offending package** to a patched version.
|
|
15
15
|
2. **If that's not possible**, force a resolution/override on the vulnerable leaf package.
|
|
16
16
|
3. **If that's not possible**, evaluate whether the advisory actually affects the project.
|
|
17
|
-
4. **If it affects the project** (and 1 and 2 weren't possible), ask a human
|
|
17
|
+
4. **If it affects the project** (and 1 and 2 weren't possible), decide yourself: mitigate it, or accept the risk with your reasoning and an expiry recorded. Under `humanGate.mode: "strict"`, ask a human instead.
|
|
18
18
|
5. **If it doesn't affect the project**, add it to the ignore list yourself.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Every step is autonomous by default. Take step 4 only after you have genuinely attempted steps 1 and 2 and performed the step-3 evaluation; under `strict`, it is the one step that asks the user.
|
|
21
21
|
|
|
22
22
|
## Node.js Projects (GHSA advisories)
|
|
23
23
|
|
|
@@ -26,7 +26,10 @@ Steps 1, 2, 3, and 5 are autonomous. Do not stop and ask the user except at step
|
|
|
26
26
|
3. **Step 1 — update:** If a patched version exists and is compatible, add a resolution/override in `package.json` to force the patched version (add to **both** `resolutions` and `overrides`), run the package manager install to regenerate the lockfile, commit, and retry the push.
|
|
27
27
|
4. **Step 2 — force override:** If no straight upgrade lands the patched version but a compatible patched version exists somewhere on the graph, pin it via `resolutions` + `overrides` on the **leaf** package (see "Override the vulnerable package, not its parent" below), regenerate the lockfile, commit, and retry.
|
|
28
28
|
5. **Step 3 — evaluate impact:** If neither an upgrade nor an override is possible (no fixed version exists, or every compatible pin breaks a dependent), determine whether the vulnerability actually affects this project. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? Record the conclusion.
|
|
29
|
-
6. **Step 4 —
|
|
29
|
+
6. **Step 4 — decide:** If the evaluation shows the vulnerability **does** affect the project and neither step 1 nor step 2 was possible, make the call yourself and record it on the work item so a person can reverse it:
|
|
30
|
+
- **Mitigate** if you can: replace or remove the vulnerable package, or guard the reachable code path so untrusted input cannot reach it, then retry.
|
|
31
|
+
- **Otherwise accept the risk**: add an exclusion entry (as in step 5) whose `reason` records the impact, why no fix or mitigation is possible now, and an expiry date, and file a build-ready follow-up work item to remove the exclusion when a fix ships.
|
|
32
|
+
- Under `humanGate.mode: "strict"`, ask the user what to do instead. That is the only step that pauses for a human in strict mode.
|
|
30
33
|
7. **Step 5 — ignore:** If the evaluation shows the vulnerability **does not** affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation.
|
|
31
34
|
- **Scope the exclusion to the copy you evaluated.** An entry with only `id` (and `package`) hides the advisory for every copy of the package, including one a production dependency pulls in later. Two optional fields narrow it, and every field present must hold together:
|
|
32
35
|
- `versions` — a semver range the excused installed copies must fall inside, such as `">=3.0.0 <4.0.0"`.
|
|
@@ -54,7 +57,7 @@ If any of these checks fail, the override is "not possible" for the purposes of
|
|
|
54
57
|
### Never
|
|
55
58
|
|
|
56
59
|
- Never add a blanket audit bypass or lower the configured audit level.
|
|
57
|
-
- Never jump to step 4 (ask a human) before genuinely attempting steps 1–3.
|
|
60
|
+
- Never jump to step 4 (decide or, under `strict`, ask a human) before genuinely attempting steps 1–3.
|
|
58
61
|
- Never add a step-5 ignore entry without an impact evaluation recorded in its `reason`.
|
|
59
62
|
|
|
60
63
|
## Rails Projects (bundler-audit)
|
|
@@ -66,4 +69,4 @@ Same ladder, bundler mechanics:
|
|
|
66
69
|
3. **Step 1 — update:** If a patched version exists:
|
|
67
70
|
- **Direct dependency** (in Gemfile): update its version constraint, run `bundle update <gem>`, commit, retry.
|
|
68
71
|
- **Transitive dependency** (only in Gemfile.lock): run `bundle update <gem>` to pull the patched version without changing the Gemfile, commit the lockfile change, retry.
|
|
69
|
-
4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, ask the user
|
|
72
|
+
4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, decide it yourself (step 4; ask the user under `strict`). If it **does not**, document the exception and retry (step 5).
|
|
@@ -5,7 +5,7 @@ alwaysApply: true
|
|
|
5
5
|
|
|
6
6
|
# Security Audit Handling (load-bearing)
|
|
7
7
|
|
|
8
|
-
If `git push` fails because the pre-push hook reports security vulnerabilities, work the decision ladder below **autonomously
|
|
8
|
+
If `git push` fails because the pre-push hook reports security vulnerabilities, work the decision ladder below **autonomously**. **Never use `--no-verify`**, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
|
|
9
9
|
|
|
10
10
|
## Decision ladder (do not skip rungs)
|
|
11
11
|
|
|
@@ -14,8 +14,8 @@ For each high/critical advisory the gate reports, take the **first** action that
|
|
|
14
14
|
1. **Update the offending package.** Upgrade the actually-vulnerable leaf package to a patched compatible version, regenerate the lockfile, retry the gate. Done.
|
|
15
15
|
2. **If an upgrade isn't possible** (no compatible patched version on the dependency graph): **force a resolution/override** on the vulnerable leaf package (both `resolutions` and `overrides`), regenerate the lockfile, retry. Done.
|
|
16
16
|
3. **If an override isn't possible either** (would break a dependent, or no fixed version exists anywhere): **evaluate whether the advisory actually affects this project** — is the vulnerable code path reachable, does it process untrusted input, is it runtime vs. dev/build-only?
|
|
17
|
-
4. **If it does affect the project** and neither (1) nor (2) was possible: **
|
|
18
|
-
5. **If it does not affect the project**: **add a documented exclusion yourself** to `audit.ignore.local.json` (`id`, `package`, `reason` = impact evaluation; dev-only copy: add `versions`, `paths`; see https://github.com/CodySwannGT/lisa/blob/main/docs/dependency-audit-exclusions.md), commit, retry.
|
|
17
|
+
4. **If it does affect the project** and neither (1) nor (2) was possible: **decide yourself**: mitigate, or accept it via step 5 with an expiry and a follow-up ticket. Strict `humanGate.mode` asks a human.
|
|
18
|
+
5. **If it does not affect the project**: **add a documented exclusion yourself** to `audit.ignore.local.json` (`id`, `package`, `reason` = impact evaluation; dev-only copy: add `versions`, `paths`; see https://github.com/CodySwannGT/lisa/blob/main/docs/dependency-audit-exclusions.md), commit, retry.
|
|
19
19
|
|
|
20
20
|
## Core override rule
|
|
21
21
|
|
|
@@ -33,11 +33,11 @@ If those checks fail, the override is "not possible" — drop to step 3.
|
|
|
33
33
|
## Never
|
|
34
34
|
|
|
35
35
|
- Never add a blanket audit bypass or lower the configured audit level.
|
|
36
|
-
- Never
|
|
36
|
+
- Never take step 4 before genuinely attempting steps 1–3.
|
|
37
37
|
- Never add an ignore entry (step 5) without an impact evaluation recorded in its `reason`. (`lisa doctor` flags an exclusion with no written decision; the audit itself does not read `reason`.)
|
|
38
38
|
|
|
39
39
|
## Rails (bundler-audit)
|
|
40
40
|
|
|
41
|
-
Same ladder. Note advisory ID, gem, URL. (1) Direct dep with patch → update Gemfile constraint, `bundle update <gem>`, retry. (2) Transitive with patch → `bundle update <gem>` to bump the lockfile only, retry. (3) No patch → evaluate impact. (4) Affects
|
|
41
|
+
Same ladder. Note advisory ID, gem, URL. (1) Direct dep with patch → update Gemfile constraint, `bundle update <gem>`, retry. (2) Transitive with patch → `bundle update <gem>` to bump the lockfile only, retry. (3) No patch → evaluate impact. (4) Affects it → step 4. (5) Doesn't affect → document the exception, retry.
|
|
42
42
|
|
|
43
43
|
Full procedure with examples: [reference/security-audit-handling.md](security-audit-handling-reference.mdc).
|
|
@@ -79,9 +79,34 @@ Each direct usage entry records one logical Lisa run or sub-run on one artifact.
|
|
|
79
79
|
| `currency` | ISO currency code when `cost` is known, otherwise `null`. |
|
|
80
80
|
| `pricing_status` | `observed`, `estimated`, `missing`, or `unavailable`. |
|
|
81
81
|
| `pricing_source` | Runtime billing source, config/pricing snapshot ref, or `null`. |
|
|
82
|
-
| `artifact_ref` | Canonical ref of the artifact carrying the entry. |
|
|
82
|
+
| `artifact_ref` | Canonical ref of the artifact carrying the entry, in the per-provider grammar below. |
|
|
83
83
|
| `parent_artifact_ref` | Canonical parent artifact ref when the entry is attached below a parent, otherwise empty. |
|
|
84
84
|
|
|
85
|
+
### `artifact_ref` grammar
|
|
86
|
+
|
|
87
|
+
The completion proof finds a work item's Verify entry by its `artifact_ref`. Writers are required
|
|
88
|
+
to produce exactly one form per provider:
|
|
89
|
+
|
|
90
|
+
| Provider | Form | Example |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| GitHub | `github:<owner>/<repo>#<N>` | `github:acme/code#42` |
|
|
93
|
+
| Linear | `linear:<workspace>/<KEY-N>` | `linear:acme/ENG-11` |
|
|
94
|
+
| Jira | bare `<KEY-N>` | `ENG-11` |
|
|
95
|
+
|
|
96
|
+
The reader is a little more tolerant than the writer: it also accepts a bare `<KEY-N>` for Linear
|
|
97
|
+
(and `<owner>/<repo>#<N>` or the issue URL for GitHub). It never accepts a short `linear:<KEY-N>`,
|
|
98
|
+
and it compares case-sensitively against the uppercase issue identifier.
|
|
99
|
+
|
|
100
|
+
The Linear `<workspace>` must equal the `linear.workspace` key in `.lisa.config.json` exactly,
|
|
101
|
+
including case. The writer checks only the shape, not the value: it cannot see the config. The
|
|
102
|
+
writer (`renderLisaUsageEntryToken`, `renderLisaUsageSection`, `upsertLisaUsageSection`) refuses a
|
|
103
|
+
short `linear:<KEY-N>`, a lowercase key, a workspace containing `/` or whitespace, or any other
|
|
104
|
+
`linear:` ref that is not `linear:<workspace>/<KEY-N>`, with an error naming the required form: the
|
|
105
|
+
reader would otherwise reject that entry later as absent. Refs for other providers are written
|
|
106
|
+
unchanged. `renderLisaUsageSection` validates every entry it is given; `upsertLisaUsageSection`
|
|
107
|
+
validates only new entries, so a legacy short-form row already stored in a section is preserved on
|
|
108
|
+
rewrite, and upserting the qualified entry with the same `entry_id` repairs it.
|
|
109
|
+
|
|
85
110
|
`entry_id` must be stable across rewrites of the same logical run. Rewriting an existing entry with the same `entry_id` updates it in place. A different run gets a different `entry_id` and is appended as a new direct entry.
|
|
86
111
|
|
|
87
112
|
## Source semantics
|
|
@@ -141,6 +166,9 @@ extension. Writers serialize an omitted value as `null` instead of `undefined`:
|
|
|
141
166
|
<!-- lisa:usage-entry-measured-subset entry_id=<id> measured_subset_tokens=<n|null> -->
|
|
142
167
|
```
|
|
143
168
|
|
|
169
|
+
`artifact_ref=<ref>` carries the percent-encoded ref in the grammar above, for example
|
|
170
|
+
`artifact_ref=linear%3Aacme%2FENG-11`.
|
|
171
|
+
|
|
144
172
|
The primary field order is fixed and deliberately matches the pre-measured-subset contract so
|
|
145
173
|
legacy 17-field readers continue to enumerate entries. Current readers correlate the extension by
|
|
146
174
|
its percent-encoded `entry_id`. They also accept the `@codyswann/lisa@2.222.0` transitional marker,
|
|
@@ -34,8 +34,10 @@
|
|
|
34
34
|
* we needed is cancelled" into "we are unblocked", which is the same wrong-write
|
|
35
35
|
* family as CodySwannGT/lisa#3479, where a reason-blind repair would have
|
|
36
36
|
* stamped a production terminal on abandoned work. So an abandoned blocker
|
|
37
|
-
* ESCALATES
|
|
38
|
-
*
|
|
37
|
+
* ESCALATES rather than dissolving or silently holding forever: someone has
|
|
38
|
+
* to decide whether the dependent still makes sense, and who decides follows
|
|
39
|
+
* `humanGate.mode` — the agent under `access-only`, a person under `strict`
|
|
40
|
+
* (see the session manager's `reconcile.mjs`).
|
|
39
41
|
*
|
|
40
42
|
* ## What this module does not decide
|
|
41
43
|
*
|
|
@@ -77,8 +79,9 @@ export function resolveBlockerEdge(input = {}) {
|
|
|
77
79
|
|
|
78
80
|
// Checked BEFORE containment, because an abandoned blocker whose branch
|
|
79
81
|
// happens to contain some earlier commit of its own is still abandoned. The
|
|
80
|
-
// question
|
|
81
|
-
//
|
|
82
|
+
// open question is whether the dependent still makes sense — answered by the
|
|
83
|
+
// agent or a person as `humanGate.mode` says — and a containment true would
|
|
84
|
+
// silently answer it for them.
|
|
82
85
|
if (state === "closed" && reason === NOT_PLANNED) {
|
|
83
86
|
return {
|
|
84
87
|
action: "escalate",
|
|
@@ -86,7 +89,8 @@ export function resolveBlockerEdge(input = {}) {
|
|
|
86
89
|
"the blocker was closed as NOT PLANNED, so the work this item depends on will never be " +
|
|
87
90
|
"delivered. Dissolving the edge would read as 'unblocked' when nothing was built, and " +
|
|
88
91
|
"holding it forever hides a decision somebody has to make: does this item still make sense " +
|
|
89
|
-
"without its blocker? That is a
|
|
92
|
+
"without its blocker? That is a decision to make and record, not one a sweep may " +
|
|
93
|
+
"round away; who makes it follows humanGate.mode.",
|
|
90
94
|
};
|
|
91
95
|
}
|
|
92
96
|
|
|
@@ -16,6 +16,15 @@
|
|
|
16
16
|
* (`humanGate.humanOnly`). Anything else is a decision: the agent picks the
|
|
17
17
|
* reasonable default, records it on the item, and files it build-ready.
|
|
18
18
|
*
|
|
19
|
+
* Which acts count depends on `humanGate.mode` (CodySwannGT/lisa#4687). Under
|
|
20
|
+
* the default `access-only` mode an agent performs every act it has access to,
|
|
21
|
+
* so only an act it genuinely lacks access to is a gate: an interactive login
|
|
22
|
+
* or a credential only a person holds, spending money, opening an external
|
|
23
|
+
* account, a legal signature, an account only a person holds, a system the
|
|
24
|
+
* agent cannot reach, or a hold the operator explicitly asked for. `strict`
|
|
25
|
+
* also holds a compliance judgement, naming an accountable person, and Lisa's
|
|
26
|
+
* own policy calls. `humanGate.humanOnly` widens the gate in either mode.
|
|
27
|
+
*
|
|
19
28
|
* Refusal is the default, deliberately. A closed vocabulary of acts can be
|
|
20
29
|
* audited; an open vocabulary of "topics that feel important" is exactly the
|
|
21
30
|
* reading that produced the false gates.
|
|
@@ -29,8 +38,17 @@
|
|
|
29
38
|
* Usage:
|
|
30
39
|
* node human-gate-act.mjs check --reason "<human_gate reason>" \
|
|
31
40
|
* [--config .lisa.config.json] [--local .lisa.config.local.json]
|
|
32
|
-
*
|
|
33
|
-
*
|
|
41
|
+
* node human-gate-act.mjs policy \
|
|
42
|
+
* [--config .lisa.config.json] [--local .lisa.config.local.json]
|
|
43
|
+
* `check` prints a JSON verdict carrying the `mode` it was judged under. Exit 0
|
|
44
|
+
* when the gate is legitimate, 1 when refused, 2 on a usage or config error.
|
|
45
|
+
* `policy` prints the resolved `{ mode, humanOnly }` a sweep passes to
|
|
46
|
+
* `planHumanGateLift` as `humanGateMode` and `humanOnly`; it exits 0.
|
|
47
|
+
* `humanGate.mode` is read case- and whitespace-insensitively. A value that is
|
|
48
|
+
* still not a mode is reported on stderr, never fatal. It resolves to the
|
|
49
|
+
* global file's valid mode when only the local one is wrong; with no valid
|
|
50
|
+
* value anywhere it fails safe, to `strict`: a typo must never quietly loosen
|
|
51
|
+
* the gate. Only an absent mode means `access-only`.
|
|
34
52
|
* @module human-gate-act
|
|
35
53
|
*/
|
|
36
54
|
import { readFileSync, realpathSync } from "node:fs";
|
|
@@ -38,9 +56,12 @@ import { fileURLToPath } from "node:url";
|
|
|
38
56
|
|
|
39
57
|
import {
|
|
40
58
|
DECIDE_AND_RECORD,
|
|
59
|
+
DEFAULT_HUMAN_GATE_MODE,
|
|
41
60
|
HUMAN_GATE_ACTS,
|
|
61
|
+
HUMAN_GATE_MODES,
|
|
42
62
|
classifyHumanGateReason,
|
|
43
63
|
normalizeGateText,
|
|
64
|
+
normalizeHumanGateMode,
|
|
44
65
|
} from "./intake-blocker-reprobe.mjs";
|
|
45
66
|
|
|
46
67
|
// The classifier lives in `intake-blocker-reprobe.mjs` so the hold verdict
|
|
@@ -49,7 +70,9 @@ import {
|
|
|
49
70
|
// and adds the writer-side CLI and config resolution.
|
|
50
71
|
export {
|
|
51
72
|
DECIDE_AND_RECORD,
|
|
73
|
+
DEFAULT_HUMAN_GATE_MODE,
|
|
52
74
|
HUMAN_GATE_ACTS,
|
|
75
|
+
HUMAN_GATE_MODES,
|
|
53
76
|
classifyHumanGateReason,
|
|
54
77
|
normalizeGateText,
|
|
55
78
|
};
|
|
@@ -105,6 +128,66 @@ export function resolveHumanOnly(local, global) {
|
|
|
105
128
|
return Array.isArray(value) ? value : [];
|
|
106
129
|
}
|
|
107
130
|
|
|
131
|
+
/**
|
|
132
|
+
* The effective `humanGate.mode`: a valid local declaration replaces the
|
|
133
|
+
* global one, the same way {@link resolveHumanOnly} does. Values are compared
|
|
134
|
+
* trimmed and lower-cased. An invalid local value falls back to a valid
|
|
135
|
+
* global one, so a typo in a personal override cannot silently hide a
|
|
136
|
+
* committed `strict`. When a value is present but none is valid, the mode
|
|
137
|
+
* fails safe, to `"strict"`; only when no value is declared at all does
|
|
138
|
+
* {@link DEFAULT_HUMAN_GATE_MODE} apply. The first rejected value is returned
|
|
139
|
+
* as `rejected` (its JSON spelling) so the caller can report it.
|
|
140
|
+
* @param {unknown} local - Parsed local config
|
|
141
|
+
* @param {unknown} global - Parsed global config
|
|
142
|
+
* @returns {{ mode: string, rejected?: string }} The mode in force
|
|
143
|
+
*/
|
|
144
|
+
export function resolveHumanGateMode(local, global) {
|
|
145
|
+
const pick = config =>
|
|
146
|
+
config && typeof config === "object" ? config.humanGate?.mode : undefined;
|
|
147
|
+
// Every declaration is judged, so a typo in the committed file is reported
|
|
148
|
+
// even while a valid local value is in force.
|
|
149
|
+
const declared = [pick(local), pick(global)].filter(
|
|
150
|
+
value => value !== undefined
|
|
151
|
+
);
|
|
152
|
+
const valid = declared
|
|
153
|
+
.map(normalizeHumanGateMode)
|
|
154
|
+
.find(mode => HUMAN_GATE_MODES.includes(mode));
|
|
155
|
+
const invalid = declared.find(
|
|
156
|
+
value => !HUMAN_GATE_MODES.includes(normalizeHumanGateMode(value))
|
|
157
|
+
);
|
|
158
|
+
const mode =
|
|
159
|
+
valid ?? (invalid === undefined ? DEFAULT_HUMAN_GATE_MODE : "strict");
|
|
160
|
+
return invalid === undefined
|
|
161
|
+
? { mode }
|
|
162
|
+
: { mode, rejected: JSON.stringify(invalid) };
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The whole human-gate policy a reader passes on: the mode and the declared
|
|
167
|
+
* human-only classes, each resolved local-then-global.
|
|
168
|
+
* @param {unknown} local - Parsed local config
|
|
169
|
+
* @param {unknown} global - Parsed global config
|
|
170
|
+
* @returns {{ mode: string, humanOnly: unknown[], rejected?: string }} Policy
|
|
171
|
+
*/
|
|
172
|
+
export function resolveHumanGatePolicy(local, global) {
|
|
173
|
+
const { mode, rejected } = resolveHumanGateMode(local, global);
|
|
174
|
+
return {
|
|
175
|
+
mode,
|
|
176
|
+
humanOnly: resolveHumanOnly(local, global),
|
|
177
|
+
...(rejected === undefined ? {} : { rejected }),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The stderr line for an invalid `humanGate.mode`.
|
|
183
|
+
* @param {string} rejected - JSON spelling of the declared value
|
|
184
|
+
* @returns {string} One warning line
|
|
185
|
+
*/
|
|
186
|
+
function invalidModeWarning(rejected) {
|
|
187
|
+
const accepted = HUMAN_GATE_MODES.map(value => `"${value}"`).join(" | ");
|
|
188
|
+
return `Invalid humanGate.mode: ${rejected} is not one of ${accepted}; ignored.\n`;
|
|
189
|
+
}
|
|
190
|
+
|
|
108
191
|
/**
|
|
109
192
|
* Parse `--key value` / `--key=value` flags.
|
|
110
193
|
* @param {string[]} argv - Raw arguments
|
|
@@ -148,9 +231,12 @@ export function main(argv, io = {}) {
|
|
|
148
231
|
const missing = ["reason", "config", "local"].filter(
|
|
149
232
|
key => key in flags && (flags[key] === null || flags[key].trim() === "")
|
|
150
233
|
);
|
|
151
|
-
|
|
234
|
+
const usable =
|
|
235
|
+
command === "policy" || (command === "check" && Boolean(flags.reason));
|
|
236
|
+
if (!usable || missing.length > 0) {
|
|
152
237
|
error(
|
|
153
|
-
"usage: human-gate-act.mjs check --reason <text> [--config <path>] [--local <path>]\n"
|
|
238
|
+
"usage: human-gate-act.mjs check --reason <text> [--config <path>] [--local <path>]\n" +
|
|
239
|
+
" human-gate-act.mjs policy [--config <path>] [--local <path>]\n"
|
|
154
240
|
);
|
|
155
241
|
return 2;
|
|
156
242
|
}
|
|
@@ -161,10 +247,20 @@ export function main(argv, io = {}) {
|
|
|
161
247
|
error(`${failed.error}\n`);
|
|
162
248
|
return 2;
|
|
163
249
|
}
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
250
|
+
const { rejected, ...policy } = resolveHumanGatePolicy(
|
|
251
|
+
local.value,
|
|
252
|
+
global.value
|
|
253
|
+
);
|
|
254
|
+
if (rejected !== undefined) {
|
|
255
|
+
error(invalidModeWarning(rejected));
|
|
256
|
+
error(`humanGate.mode in force: "${policy.mode}".\n`);
|
|
257
|
+
}
|
|
258
|
+
if (command === "policy") {
|
|
259
|
+
write(`${JSON.stringify(policy)}\n`);
|
|
260
|
+
return 0;
|
|
261
|
+
}
|
|
262
|
+
const verdict = classifyHumanGateReason(flags.reason, policy);
|
|
263
|
+
write(`${JSON.stringify({ ...verdict, mode: policy.mode })}\n`);
|
|
168
264
|
return verdict.valid ? 0 : 1;
|
|
169
265
|
}
|
|
170
266
|
|
|
@@ -5,15 +5,18 @@
|
|
|
5
5
|
* stalling items, and the operator should never have to comment to release
|
|
6
6
|
* one (CodySwannGT/lisa#4658, item 5). The intake and repair sweeps call
|
|
7
7
|
* {@link planHumanGateLift} on every open item carrying a `[lisa-human-gate]`
|
|
8
|
-
* hold. A hold
|
|
9
|
-
* `human-gate-act.mjs`) is lifted: the sweep posts a visible
|
|
8
|
+
* hold. A hold that is not valid under the project's `humanGate.mode` and
|
|
9
|
+
* `humanGate.humanOnly` (see `human-gate-act.mjs`) is lifted: the sweep posts a visible
|
|
10
10
|
* `[lisa-human-gate-lifted] reason=<slug>` comment saying why, removes the
|
|
11
11
|
* human-needed marker, and moves the item to the build-ready role.
|
|
12
12
|
*
|
|
13
13
|
* This is not a forged human release. A release records a person's answer; a
|
|
14
14
|
* lift records that there was no question a person had to answer. A valid
|
|
15
|
-
* hold — a credential, spend, a
|
|
16
|
-
* its act.
|
|
15
|
+
* hold — a credential, spend, a legal signature — is never lifted and still
|
|
16
|
+
* waits for its act. Pass `humanGateMode` (`humanGate.mode`) alongside
|
|
17
|
+
* `humanOnly`: under `"strict"` a pre-#4687 gate such as naming an accountable
|
|
18
|
+
* person is valid and kept; omitted, the default `access-only` mode lifts it
|
|
19
|
+
* (CodySwannGT/lisa#4687). A label-only hold (access blocked, a blocked verdict) has no
|
|
17
20
|
* declared reason to judge and is never lifted either.
|
|
18
21
|
* @module human-gate-lift
|
|
19
22
|
*/
|
|
@@ -42,8 +45,9 @@ export function formatHumanGateLift(lift = {}) {
|
|
|
42
45
|
return [
|
|
43
46
|
declaration,
|
|
44
47
|
`Hold lifted: ${named} is a decision an agent can make, not an act only a ` +
|
|
45
|
-
"person can perform (a credential, spend, an external account,
|
|
46
|
-
"
|
|
48
|
+
"person can perform (a login or credential, spend, an external account, " +
|
|
49
|
+
"a legal signature, an account only a person holds, or a system the " +
|
|
50
|
+
"agent cannot reach), so this item is back in " +
|
|
47
51
|
"the build queue and whoever builds it decides and records the call; " +
|
|
48
52
|
"the description is unchanged.",
|
|
49
53
|
].join("\n");
|
|
@@ -64,6 +68,7 @@ export function formatHumanGateLift(lift = {}) {
|
|
|
64
68
|
* trustedHumanActorIds?: unknown
|
|
65
69
|
* humanNeededLabel?: unknown
|
|
66
70
|
* humanOnly?: unknown
|
|
71
|
+
* humanGateMode?: unknown
|
|
67
72
|
* readyLabel?: unknown
|
|
68
73
|
* lifecycleLabels?: unknown
|
|
69
74
|
* }} input - Candidate surfaces plus lane vocabulary and project policy
|
|
@@ -75,7 +80,9 @@ export function planHumanGateLift(input = {}) {
|
|
|
75
80
|
addReadyLabel: null,
|
|
76
81
|
});
|
|
77
82
|
const verdict = humanGateVerdict(input);
|
|
78
|
-
const liftable = new Set(
|
|
83
|
+
const liftable = new Set(
|
|
84
|
+
invalidHumanGateHolds(input.body, input.humanOnly, input.humanGateMode)
|
|
85
|
+
);
|
|
79
86
|
const toLift = verdict.outstanding.filter(reason => liftable.has(reason));
|
|
80
87
|
const kept = verdict.outstanding.filter(reason => !toLift.includes(reason));
|
|
81
88
|
const comments = toLift.map(reason => formatHumanGateLift({ reason }));
|