@codyswann/lisa 4.55.2 → 4.55.3
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-orphaned-branches.mjs +49 -13
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +9 -1
- package/all/copy-overwrite/scripts/lisa-hooks/block-blind-automerge.sh +10 -5
- package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +4 -0
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +73 -2
- package/all/copy-overwrite/scripts/lisa-hooks/guard-dedupe.bash +63 -29
- package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +2 -1
- package/all/copy-overwrite/scripts/lisa-hooks/worktree-binding-guard.sh +2 -1
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +7 -2
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +50 -14
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +36 -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 +86 -75
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +76 -2
- package/dist/opencode/plugin-templates/block-no-verify.sh +3 -0
- package/dist/opencode/plugin-templates/guard-dedupe.bash +66 -29
- package/dist/opencode/plugin-templates/parity-safety-net-heredoc.py +3 -0
- package/dist/opencode/plugin-templates/parity-safety-net.sh +5 -1
- package/dist/opencode/support-file-resolver.d.ts.map +1 -1
- package/dist/opencode/support-file-resolver.js +3 -1
- package/dist/opencode/support-file-resolver.js.map +1 -1
- package/expo/copy-overwrite/plugins/withAndroidSplashNoClientExit.js +23 -21
- package/expo/create-only/.github/required-checks.json +1 -1
- package/nestjs/create-only/.github/required-checks.json +1 -1
- 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-github-build-intake/SKILL.md +18 -10
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +18 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +45 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +18 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-prd-intake/SKILL.md +12 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +1 -18
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-verify/SKILL.md +0 -17
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +3 -34
- package/plugins/lisa/.codex-plugin/skills/lisa-prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +46 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-rework-triage/SKILL.md +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-linear/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs +7 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +11 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +17 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +18 -4
- package/plugins/lisa/hooks/block-blind-automerge.sh +13 -5
- package/plugins/lisa/hooks/block-direct-issue-create.sh +7 -0
- package/plugins/lisa/hooks/block-instruction-file-edits.sh +3 -0
- package/plugins/lisa/hooks/block-managed-file-edits.sh +76 -2
- package/plugins/lisa/hooks/block-no-verify.sh +3 -0
- package/plugins/lisa/hooks/block-shell-json-parsing.sh +3 -0
- package/plugins/lisa/hooks/guard-dedupe.bash +66 -29
- package/plugins/lisa/hooks/parity-safety-net-heredoc.py +3 -0
- package/plugins/lisa/hooks/parity-safety-net.sh +5 -1
- package/plugins/lisa/hooks/worktree-binding-guard.mjs +3 -0
- package/plugins/lisa/hooks/worktree-binding-guard.sh +5 -1
- package/plugins/lisa/rules/eager/00-rule-index.md +1 -0
- package/plugins/lisa/rules/eager/base-rules.md +3 -1
- package/plugins/lisa/rules/eager/withdrawn-rulings.md +14 -3
- package/plugins/lisa/rules/reference/automation-runbook-contract.md +1 -1
- package/plugins/lisa/rules/reference/bdd-e2e-coverage.md +1 -1
- package/plugins/lisa/rules/reference/blocker-containment.md +3 -3
- package/plugins/lisa/rules/reference/claim-archaeology.md +1 -1
- package/plugins/lisa/rules/reference/claim-evidence-mapping.md +1 -1
- package/plugins/lisa/rules/reference/claim-time-guards.md +1 -1
- package/plugins/lisa/rules/reference/control-reachability.md +1 -1
- package/plugins/lisa/rules/reference/convergent-review.md +1 -1
- package/plugins/lisa/rules/reference/credential-substrate-precedence.md +1 -1
- package/plugins/lisa/rules/reference/dependency-decision-records.md +1 -1
- package/plugins/lisa/rules/reference/dependency-internalization-kit.md +1 -1
- package/plugins/lisa/rules/reference/dependency-trust-classes.md +1 -1
- package/plugins/lisa/rules/reference/deployed-state-readback.md +1 -1
- package/plugins/lisa/rules/reference/derived-branch-plan.md +1 -1
- package/plugins/lisa/rules/reference/design-source-of-truth.md +1 -1
- package/plugins/lisa/rules/reference/design-value-binding.md +1 -1
- package/plugins/lisa/rules/reference/documentation-source-paths.md +1 -1
- package/plugins/lisa/rules/reference/leaf-only-lifecycle.md +1 -1
- package/plugins/lisa/rules/reference/observability-audit.md +1 -1
- package/plugins/lisa/rules/reference/prd-definition-of-ready.md +1 -1
- package/plugins/lisa/rules/reference/prd-lifecycle-rollup.md +1 -1
- package/plugins/lisa/rules/reference/pre-flight-autofill.md +1 -1
- package/plugins/lisa/rules/reference/promotion-contract.md +1 -1
- package/plugins/lisa/rules/reference/readiness-rubric.md +1 -1
- package/plugins/lisa/rules/reference/ready-role-filing.md +1 -1
- package/plugins/lisa/rules/reference/rejection-detection.md +1 -1
- package/plugins/lisa/rules/reference/repo-scope-split.md +9 -10
- package/plugins/lisa/rules/reference/reset-seed-coverage.md +1 -1
- package/plugins/lisa/rules/reference/usage-accounting.md +1 -1
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +1 -1
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +18 -10
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +18 -9
- package/plugins/lisa/skills/lisa-linear-access/SKILL.md +45 -6
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +18 -7
- package/plugins/lisa/skills/lisa-linear-prd-intake/SKILL.md +12 -2
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +1 -18
- package/plugins/lisa/skills/lisa-linear-verify/SKILL.md +0 -17
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +3 -34
- package/plugins/lisa/skills/lisa-prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +46 -6
- package/plugins/lisa/skills/lisa-rework-triage/SKILL.md +2 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +2 -1
- package/plugins/lisa/skills/lisa-setup-linear/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs +7 -2
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +11 -4
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +17 -5
- package/plugins/lisa/skills/lisa-track/SKILL.md +18 -4
- package/plugins/lisa-agy/hooks/block-blind-automerge.sh +13 -5
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +7 -0
- package/plugins/lisa-agy/hooks/block-instruction-file-edits.sh +3 -0
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +76 -2
- package/plugins/lisa-agy/hooks/block-shell-json-parsing.sh +3 -0
- package/plugins/lisa-agy/hooks/guard-dedupe.bash +66 -29
- package/plugins/lisa-agy/hooks/parity-safety-net-heredoc.py +3 -0
- package/plugins/lisa-agy/hooks/parity-safety-net.sh +5 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +18 -10
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +18 -9
- package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +45 -6
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +18 -7
- package/plugins/lisa-agy/skills/lisa-linear-prd-intake/SKILL.md +12 -2
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +1 -18
- package/plugins/lisa-agy/skills/lisa-linear-verify/SKILL.md +0 -17
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +3 -34
- package/plugins/lisa-agy/skills/lisa-prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +46 -6
- package/plugins/lisa-agy/skills/lisa-rework-triage/SKILL.md +2 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +2 -1
- package/plugins/lisa-agy/skills/lisa-setup-linear/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs +7 -2
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +11 -4
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +17 -5
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +18 -4
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-blind-automerge.sh +13 -5
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +7 -0
- package/plugins/lisa-copilot/hooks/block-instruction-file-edits.sh +3 -0
- package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +76 -2
- package/plugins/lisa-copilot/hooks/block-no-verify.sh +3 -0
- package/plugins/lisa-copilot/hooks/block-shell-json-parsing.sh +3 -0
- package/plugins/lisa-copilot/hooks/guard-dedupe.bash +66 -29
- package/plugins/lisa-copilot/hooks/parity-safety-net-heredoc.py +3 -0
- package/plugins/lisa-copilot/hooks/parity-safety-net.sh +5 -1
- package/plugins/lisa-copilot/hooks/worktree-binding-guard.mjs +3 -0
- package/plugins/lisa-copilot/hooks/worktree-binding-guard.sh +5 -1
- package/plugins/lisa-copilot/rules/eager/00-rule-index.md +1 -0
- package/plugins/lisa-copilot/rules/eager/base-rules.md +3 -1
- package/plugins/lisa-copilot/rules/eager/withdrawn-rulings.md +14 -3
- package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +1 -1
- package/plugins/lisa-copilot/rules/reference/bdd-e2e-coverage.md +1 -1
- package/plugins/lisa-copilot/rules/reference/blocker-containment.md +3 -3
- package/plugins/lisa-copilot/rules/reference/claim-archaeology.md +1 -1
- package/plugins/lisa-copilot/rules/reference/claim-evidence-mapping.md +1 -1
- package/plugins/lisa-copilot/rules/reference/claim-time-guards.md +1 -1
- package/plugins/lisa-copilot/rules/reference/control-reachability.md +1 -1
- package/plugins/lisa-copilot/rules/reference/convergent-review.md +1 -1
- package/plugins/lisa-copilot/rules/reference/credential-substrate-precedence.md +1 -1
- package/plugins/lisa-copilot/rules/reference/dependency-decision-records.md +1 -1
- package/plugins/lisa-copilot/rules/reference/dependency-internalization-kit.md +1 -1
- package/plugins/lisa-copilot/rules/reference/dependency-trust-classes.md +1 -1
- package/plugins/lisa-copilot/rules/reference/deployed-state-readback.md +1 -1
- package/plugins/lisa-copilot/rules/reference/derived-branch-plan.md +1 -1
- package/plugins/lisa-copilot/rules/reference/design-source-of-truth.md +1 -1
- package/plugins/lisa-copilot/rules/reference/design-value-binding.md +1 -1
- package/plugins/lisa-copilot/rules/reference/documentation-source-paths.md +1 -1
- package/plugins/lisa-copilot/rules/reference/leaf-only-lifecycle.md +1 -1
- package/plugins/lisa-copilot/rules/reference/observability-audit.md +1 -1
- package/plugins/lisa-copilot/rules/reference/prd-definition-of-ready.md +1 -1
- package/plugins/lisa-copilot/rules/reference/prd-lifecycle-rollup.md +1 -1
- package/plugins/lisa-copilot/rules/reference/pre-flight-autofill.md +1 -1
- package/plugins/lisa-copilot/rules/reference/promotion-contract.md +1 -1
- package/plugins/lisa-copilot/rules/reference/readiness-rubric.md +1 -1
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +1 -1
- package/plugins/lisa-copilot/rules/reference/rejection-detection.md +1 -1
- package/plugins/lisa-copilot/rules/reference/repo-scope-split.md +9 -10
- package/plugins/lisa-copilot/rules/reference/reset-seed-coverage.md +1 -1
- package/plugins/lisa-copilot/rules/reference/usage-accounting.md +1 -1
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +18 -10
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +18 -9
- package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +45 -6
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +18 -7
- package/plugins/lisa-copilot/skills/lisa-linear-prd-intake/SKILL.md +12 -2
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +1 -18
- package/plugins/lisa-copilot/skills/lisa-linear-verify/SKILL.md +0 -17
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +3 -34
- package/plugins/lisa-copilot/skills/lisa-prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +46 -6
- package/plugins/lisa-copilot/skills/lisa-rework-triage/SKILL.md +2 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +2 -1
- package/plugins/lisa-copilot/skills/lisa-setup-linear/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs +7 -2
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +11 -4
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +17 -5
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +18 -4
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-blind-automerge.sh +13 -5
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +7 -0
- package/plugins/lisa-cursor/hooks/block-instruction-file-edits.sh +3 -0
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +76 -2
- package/plugins/lisa-cursor/hooks/block-no-verify.sh +3 -0
- package/plugins/lisa-cursor/hooks/block-shell-json-parsing.sh +3 -0
- package/plugins/lisa-cursor/hooks/guard-dedupe.bash +66 -29
- package/plugins/lisa-cursor/hooks/parity-safety-net-heredoc.py +3 -0
- package/plugins/lisa-cursor/hooks/parity-safety-net.sh +5 -1
- package/plugins/lisa-cursor/hooks/worktree-binding-guard.mjs +3 -0
- package/plugins/lisa-cursor/hooks/worktree-binding-guard.sh +5 -1
- package/plugins/lisa-cursor/rules/00-rule-index.mdc +1 -0
- package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/base-rules.mdc +3 -1
- package/plugins/lisa-cursor/rules/bdd-e2e-coverage-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/blocker-containment-reference.mdc +3 -3
- package/plugins/lisa-cursor/rules/claim-archaeology-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/claim-evidence-mapping-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/claim-time-guards-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/control-reachability-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/convergent-review-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/credential-substrate-precedence-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/dependency-decision-records-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/dependency-internalization-kit-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/dependency-trust-classes-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/deployed-state-readback-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/derived-branch-plan-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/design-source-of-truth-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/design-value-binding-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/documentation-source-paths-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/leaf-only-lifecycle-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/observability-audit-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/prd-definition-of-ready-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/prd-lifecycle-rollup-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/pre-flight-autofill-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/promotion-contract-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/readiness-rubric-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/rejection-detection-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/repo-scope-split-reference.mdc +9 -10
- package/plugins/lisa-cursor/rules/reset-seed-coverage-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/usage-accounting-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/withdrawn-rulings.mdc +14 -3
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +18 -10
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +18 -9
- package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +45 -6
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +18 -7
- package/plugins/lisa-cursor/skills/lisa-linear-prd-intake/SKILL.md +12 -2
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +1 -18
- package/plugins/lisa-cursor/skills/lisa-linear-verify/SKILL.md +0 -17
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +3 -34
- package/plugins/lisa-cursor/skills/lisa-prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +46 -6
- package/plugins/lisa-cursor/skills/lisa-rework-triage/SKILL.md +2 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +2 -1
- package/plugins/lisa-cursor/skills/lisa-setup-linear/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs +7 -2
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +11 -4
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +17 -5
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +18 -4
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/materialized-artifacts.json +11 -0
- package/plugins/src/base/hooks/block-blind-automerge.sh +10 -5
- package/plugins/src/base/hooks/block-direct-issue-create.sh +4 -0
- package/plugins/src/base/hooks/block-managed-file-edits.sh +73 -2
- package/plugins/src/base/hooks/guard-dedupe.bash +63 -29
- package/plugins/src/base/hooks/parity-safety-net.sh +2 -1
- package/plugins/src/base/hooks/worktree-binding-guard.sh +2 -1
- package/plugins/src/base/rules/eager/00-rule-index.md +1 -0
- package/plugins/src/base/rules/eager/base-rules.md +3 -1
- package/plugins/src/base/rules/eager/withdrawn-rulings.md +14 -3
- package/plugins/src/base/rules/reference/automation-runbook-contract.md +1 -1
- package/plugins/src/base/rules/reference/bdd-e2e-coverage.md +1 -1
- package/plugins/src/base/rules/reference/blocker-containment.md +3 -3
- package/plugins/src/base/rules/reference/claim-archaeology.md +1 -1
- package/plugins/src/base/rules/reference/claim-evidence-mapping.md +1 -1
- package/plugins/src/base/rules/reference/claim-time-guards.md +1 -1
- package/plugins/src/base/rules/reference/control-reachability.md +1 -1
- package/plugins/src/base/rules/reference/convergent-review.md +1 -1
- package/plugins/src/base/rules/reference/credential-substrate-precedence.md +1 -1
- package/plugins/src/base/rules/reference/dependency-decision-records.md +1 -1
- package/plugins/src/base/rules/reference/dependency-internalization-kit.md +1 -1
- package/plugins/src/base/rules/reference/dependency-trust-classes.md +1 -1
- package/plugins/src/base/rules/reference/deployed-state-readback.md +1 -1
- package/plugins/src/base/rules/reference/derived-branch-plan.md +1 -1
- package/plugins/src/base/rules/reference/design-source-of-truth.md +1 -1
- package/plugins/src/base/rules/reference/design-value-binding.md +1 -1
- package/plugins/src/base/rules/reference/documentation-source-paths.md +1 -1
- package/plugins/src/base/rules/reference/leaf-only-lifecycle.md +1 -1
- package/plugins/src/base/rules/reference/observability-audit.md +1 -1
- package/plugins/src/base/rules/reference/prd-definition-of-ready.md +1 -1
- package/plugins/src/base/rules/reference/prd-lifecycle-rollup.md +1 -1
- package/plugins/src/base/rules/reference/pre-flight-autofill.md +1 -1
- package/plugins/src/base/rules/reference/promotion-contract.md +1 -1
- package/plugins/src/base/rules/reference/readiness-rubric.md +1 -1
- package/plugins/src/base/rules/reference/ready-role-filing.md +1 -1
- package/plugins/src/base/rules/reference/rejection-detection.md +1 -1
- package/plugins/src/base/rules/reference/repo-scope-split.md +9 -10
- package/plugins/src/base/rules/reference/reset-seed-coverage.md +1 -1
- package/plugins/src/base/rules/reference/usage-accounting.md +1 -1
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +1 -1
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +18 -10
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +18 -9
- package/plugins/src/base/skills/lisa-linear-access/SKILL.md +45 -6
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +18 -7
- package/plugins/src/base/skills/lisa-linear-prd-intake/SKILL.md +12 -2
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +1 -18
- package/plugins/src/base/skills/lisa-linear-verify/SKILL.md +0 -17
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +3 -34
- package/plugins/src/base/skills/lisa-prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +46 -6
- package/plugins/src/base/skills/lisa-rework-triage/SKILL.md +2 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs +2 -1
- package/plugins/src/base/skills/lisa-setup-linear/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs +7 -2
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +11 -4
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +17 -5
- package/plugins/src/base/skills/lisa-track/SKILL.md +18 -4
- package/scripts/build-plugins.sh +4 -0
- package/scripts/copy-opencode-plugin-templates.mjs +5 -1
- package/scripts/lisa-enforcement-fallback.sh +9 -1
- package/scripts/two-channel-couplings.json +5 -33
- package/typescript/copy-overwrite/scripts/check-skipped-required-checks.mjs +551 -13
- package/typescript/create-only/.github/required-checks.json +1 -1
|
@@ -188,7 +188,7 @@ Consumers pass business-shaped arguments only; they do not embed GraphQL.
|
|
|
188
188
|
|
|
189
189
|
**This layer does not accept a state to write. It resolves one.** A `save-issue`
|
|
190
190
|
that changes the workflow state declares `lifecycle_role:<ROLE>` — the semantic
|
|
191
|
-
role it is applying (`ready`, `claimed`, `blocked`, `review`, `done
|
|
191
|
+
role it is applying (for example, `ready`, `claimed`, `blocked`, `review`, `done`; the configured role contract is authoritative) — plus `env:<KEY>` when the role is the env-indexed
|
|
192
192
|
`done`. This layer then resolves that role against config and the team's own
|
|
193
193
|
catalog, and sends the ID **it** resolved.
|
|
194
194
|
|
|
@@ -319,9 +319,9 @@ same mutation, same result shape, same error handling.
|
|
|
319
319
|
```graphql
|
|
320
320
|
# list-comments project_id:<ID> — page via pageInfo so a long-lived PRD's
|
|
321
321
|
# feedback history never silently truncates.
|
|
322
|
-
query($id:String
|
|
322
|
+
query($id:String!,$after:String){
|
|
323
323
|
project(id:$id){
|
|
324
|
-
comments(first:100){
|
|
324
|
+
comments(first:100,after:$after){
|
|
325
325
|
pageInfo{ hasNextPage endCursor }
|
|
326
326
|
nodes{ id body createdAt url user{ name } }
|
|
327
327
|
}
|
|
@@ -329,8 +329,47 @@ query($id:String!){
|
|
|
329
329
|
}
|
|
330
330
|
```
|
|
331
331
|
|
|
332
|
-
The Issue form
|
|
333
|
-
node shape
|
|
332
|
+
The Issue form uses `issue(id:$id)` with the same `first:100,after:$after`
|
|
333
|
+
arguments and node shape. For **both** anchors, use this access-layer adapter with
|
|
334
|
+
`linear_graphql` above; it accumulates every page and prints no partial history.
|
|
335
|
+
A read succeeds only after `hasNextPage` is false. Errors, malformed pages, and
|
|
336
|
+
missing or repeated continuation cursors fail the whole read.
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
linear_list_comment_pages() { # issue|project id -> complete JSON node array
|
|
340
|
+
local anchor="$1" id="$2" after=null nodes='[]' seen='[]'
|
|
341
|
+
local query variables response connection cursor
|
|
342
|
+
case "$anchor" in issue|project) ;; *) echo "Error: invalid comment anchor" >&2; return 1 ;; esac
|
|
343
|
+
query='query($id:String!,$after:String){'"$anchor"'(id:$id){comments(first:100,after:$after){pageInfo{hasNextPage endCursor} nodes{id body createdAt url user{name}}}}}'
|
|
344
|
+
while :; do
|
|
345
|
+
variables=$(jq -cn --arg id "$id" --argjson after "$after" '{id:$id,after:$after}') || return 1
|
|
346
|
+
response=$(linear_graphql "$query" "$variables") || return 1
|
|
347
|
+
connection=$(printf '%s' "$response" | jq -ce --arg anchor "$anchor" '
|
|
348
|
+
if (.errors != null and .errors != []) then error("GraphQL comments read failed")
|
|
349
|
+
else .data[$anchor].comments end |
|
|
350
|
+
if (.nodes | type) != "array" or (.pageInfo.hasNextPage | type) != "boolean"
|
|
351
|
+
then error("Incomplete comments page") else . end') || return 1
|
|
352
|
+
nodes=$(jq -cn --argjson prior "$nodes" --argjson page "$connection" '$prior + $page.nodes') || return 1
|
|
353
|
+
if [ "$(printf '%s' "$connection" | jq -r '.pageInfo.hasNextPage')" = false ]; then
|
|
354
|
+
printf '%s\n' "$nodes"
|
|
355
|
+
return 0
|
|
356
|
+
fi
|
|
357
|
+
cursor=$(printf '%s' "$connection" | jq -ce '.pageInfo.endCursor | select(type == "string" and length > 0)') || {
|
|
358
|
+
echo "Error: incomplete comments history; missing cursor" >&2; return 1;
|
|
359
|
+
}
|
|
360
|
+
if jq -en --argjson seen "$seen" --argjson cursor "$cursor" '$seen | index($cursor) != null' >/dev/null; then
|
|
361
|
+
echo "Error: incomplete comments history; repeated cursor" >&2
|
|
362
|
+
return 1
|
|
363
|
+
fi
|
|
364
|
+
seen=$(jq -cn --argjson seen "$seen" --argjson cursor "$cursor" '$seen + [$cursor]') || return 1
|
|
365
|
+
after="$cursor"
|
|
366
|
+
done
|
|
367
|
+
}
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Call `linear_list_comment_pages project "$PROJECT_ID"` for `project_id`, or
|
|
371
|
+
`linear_list_comment_pages issue "$ISSUE_ID"` for `issue_id`. The caller receives
|
|
372
|
+
one complete node array; it must not interpret a failed command as zero comments.
|
|
334
373
|
|
|
335
374
|
**Substrate.** The Linear MCP exposes comments on Issues only, so the
|
|
336
375
|
`project_id` form resolves solely through the tier-1 `LINEAR_API_KEY` + GraphQL
|
|
@@ -339,7 +378,7 @@ That is not a gap in Linear: the precedence contract already puts GraphQL ahead
|
|
|
339
378
|
of the MCP, so the preferred substrate has always been able to do this. Only
|
|
340
379
|
this wrapper could not, which is what made callers fabricate an Issue to hold a
|
|
341
380
|
Project's comments. If tier 1 is unavailable, fail with the layer's standard
|
|
342
|
-
`Error:` result naming `save-comment project_id` — do **not** silently degrade
|
|
381
|
+
`Error:` result naming the requested `save-comment project_id` or `list-comments project_id` operation — do **not** silently degrade
|
|
343
382
|
into creating an Issue to comment on.
|
|
344
383
|
|
|
345
384
|
## `history` — transition history (read-only)
|
|
@@ -182,7 +182,15 @@ A blocker is a **claim with a timestamp, not a fact**. It is written once and go
|
|
|
182
182
|
|
|
183
183
|
For each pre-work candidate that is **not** in `$READY`:
|
|
184
184
|
|
|
185
|
-
1. **
|
|
185
|
+
1. **Read release comments before applying the human gate.** Pass all item comments, labels,
|
|
186
|
+
body and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
|
|
187
|
+
call `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
188
|
+
and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
|
|
189
|
+
until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
|
|
190
|
+
A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
|
|
191
|
+
comment history cannot discharge a hold. A release removes only the human hold: continue the
|
|
192
|
+
remaining blocker checks below before selecting the item.
|
|
193
|
+
|
|
186
194
|
2. **Extract the stated discharge condition** from the description or the most recent blocking comment — the sentence naming what has to become true.
|
|
187
195
|
3. **Probe it.** Machine-testable conditions are the ones that rot fastest and are cheapest to check: a version on trunk (`git show origin/<trunk>:<manifest>`), a published package, a run history (`gh run list`), an advisory's patched status. A condition that is a human decision is not machine-testable — leave it and move on.
|
|
188
196
|
4. **Classify with the shared helper** so the ordering and the evidence requirement cannot drift per vendor:
|
|
@@ -234,8 +242,9 @@ other gate's verdict — however conclusive — may promote an item a person par
|
|
|
234
242
|
is the same repair the leaf-only gate already performs for a ready item that must not be
|
|
235
243
|
dispatched.
|
|
236
244
|
4. **On `claimable: true` for an item that still carries a hold, RELEASE it — do not just proceed.**
|
|
237
|
-
|
|
238
|
-
|
|
245
|
+
This ready-lane candidate can retain a historical body marker and a human-needed label.
|
|
246
|
+
This step reconciles only candidates still in the ready lane; released holds outside it are
|
|
247
|
+
recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
|
|
239
248
|
`planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
240
249
|
and apply exactly the actions it returns: remove the configured human-needed marker, add the
|
|
241
250
|
configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
|
|
@@ -268,10 +277,12 @@ A Linear team can oversee multiple repos (`frontend` / `backend` / `infrastructu
|
|
|
268
277
|
1. **Resolve the current repo** per `config-resolution` "Repo scoping" (`.repo` → `.github.repo` → `git remote get-url origin` basename). If unresolvable, stop and report.
|
|
269
278
|
2. **Cheap path first.** Prefer candidates already carrying the `repo:<current>` label. Keep the Phase 2 scan broad so unlabeled Issues are still seen, determined, and stamped.
|
|
270
279
|
3. **Per candidate, apply the repo-scope decision (`repo-scope-split`):**
|
|
271
|
-
-
|
|
272
|
-
- **
|
|
273
|
-
- **
|
|
274
|
-
- **
|
|
280
|
+
- **Count distinct repository markers first**: collect all `repo:<name>` labels and, on JIRA, recognized repository components; deduplicate by repository. A container may carry multiple `repo:<name>` labels. Do not split or claim it here; send it to the leaf-only gate.
|
|
281
|
+
- **Multi-repo leaf → split, never claim.** More than one repository takes the work-time split before any wrong-repository skip. Each sibling is **build-ready** (`build_ready: true`) and stamped with its own `repo:<name>`; the current repo's sibling becomes a normal candidate.
|
|
282
|
+
- **Exactly one other repository** (`repo:<other>`) → **skip**, leaving the item ready for that repo's intake.
|
|
283
|
+
- **No repository marker** → determine target repo(s) from the ticket and code, stamp `repo:<name>` through the vendor access layer, and re-apply from the count.
|
|
284
|
+
- **Single-repo leaf for the current repo** → fall through to 3a and 3b.
|
|
285
|
+
|
|
275
286
|
4. Continue until a claimable current-repo leaf is found (claim it; one per cycle) or the candidate set is exhausted — exit cleanly on the denominator-stated summary, naming the current repo alongside the swept lanes.
|
|
276
287
|
|
|
277
288
|
#### 3a. Leaf-only claim gate (skip / safe-block containers)
|
|
@@ -130,6 +130,16 @@ Select the first ready project returned by Phase 2 and process only that project
|
|
|
130
130
|
|
|
131
131
|
#### 3a. Claim
|
|
132
132
|
|
|
133
|
+
**Preflight project comments before any claim or destination-ticket creation.** Through
|
|
134
|
+
`lisa-linear-access`, resolve an identity-matched tier-1 GraphQL credential and the
|
|
135
|
+
`save-comment project_id` adapter, then read the candidate's complete project comment
|
|
136
|
+
history with `list-comments project_id:<id>`. The issue-only MCP is insufficient for
|
|
137
|
+
this flow. If the required credential, adapter or read is unavailable, return the
|
|
138
|
+
layer's `Error:` naming the project-comment operation and leave the project ready;
|
|
139
|
+
create no tickets and no substitute comment-holder Issue. This is a read-only
|
|
140
|
+
capability preflight, not a test comment. It establishes the available transport;
|
|
141
|
+
later permission changes or write failures still follow the normal error handler.
|
|
142
|
+
|
|
133
143
|
Transition labels via `lisa-linear-access operation: save-project({id, labels})`: pass the full new label set with `$READY` removed and `$IN_REVIEW` added. This is the idempotency lock — a re-entrant cycle running concurrently won't see this project because its query filters on `label: "$READY"`.
|
|
134
144
|
|
|
135
145
|
If the update fails (permission error, race condition), log it and skip this project. Do not proceed to validation on a project you didn't successfully claim.
|
|
@@ -152,7 +162,7 @@ This call also indirectly invokes `lisa-tracker-source-artifacts` (artifact extr
|
|
|
152
162
|
|
|
153
163
|
1. Re-invoke `lisa-linear-to-tracker` with `dry_run: false` to actually write the tickets. This re-runs Phases 1-5 and runs the preservation gate (Phase 5.5).
|
|
154
164
|
2. Capture the created ticket keys from the skill's output.
|
|
155
|
-
3. Post a comment on the project via `lisa-linear-access operation: save-comment project_id:<id>` listing the created tickets (epic, stories, sub-tasks) with
|
|
165
|
+
3. Post a comment on the project via `lisa-linear-access operation: save-comment project_id:<id>` listing the created tickets (epic, stories, sub-tasks) with the URLs returned by the configured destination tracker. Lead with: `"Ticketed by Claude. Created N tickets — see below. Add the $SHIPPED label to the Linear project after the work is delivered."`
|
|
156
166
|
4. Transition labels: remove `$IN_REVIEW`, add `$TICKETED` via `save_project`.
|
|
157
167
|
5. **Run Phase 3e (coverage audit)** before considering this PRD done.
|
|
158
168
|
|
|
@@ -396,6 +406,6 @@ Before this skill can run against a Linear workspace or team, the team must adop
|
|
|
396
406
|
1. Apply the `ready` label (default: `prd-ready`) to projects that are ready for ticketing (replaces the Notion `Status = Ready` flip and the Confluence `prd-ready` page label).
|
|
397
407
|
2. Reserve `in_review`, `blocked`, `ticketed` (defaults: `prd-in-review`, `prd-blocked`, `prd-ticketed`) for this skill — humans should not set them manually except to recover from an error.
|
|
398
408
|
3. (Optional but recommended) Add the `draft` and `shipped` labels (defaults: `prd-draft`, `prd-shipped`) for in-progress PRDs and delivered work respectively, so the full lifecycle is visible at a glance.
|
|
399
|
-
4. The labels must exist as **project labels** in Linear (`
|
|
409
|
+
4. The labels must exist as **project labels** in Linear (`list-project-labels` should return them). Issue-level labels with the same names won't work; Linear keeps the two label kinds separate.
|
|
400
410
|
|
|
401
411
|
If the workspace hasn't adopted these labels, the first run exits with a label-convention error (not the idle empty-set message) — this distinguishes a setup issue from a genuinely empty queue so operators know to apply the convention rather than assuming there is no work. See Phase 2 for how the skill detects this case.
|
|
@@ -91,24 +91,7 @@ prd_source: "https://notion.so/..." # set when the Issue was generated from a
|
|
|
91
91
|
|
|
92
92
|
If the caller passes only an identifier, fetch the item via `lisa-linear-access operation: get-issue` (Issue) or `lisa-linear-access operation: get-project` (Project), derive the same fields from the fetched data — including `runtime_behavior_change` (derived from the `## Target Backend Environment` declaration per `derived-branch-plan`, and authoritative over any caller assertion), `build_ready` (the Issue's state is the configured `ready` state) and `child_refs` (sub-issues, project-member issues, plus `blocked_by` parentage, resolved as in `lisa-linear-read-issue`) so S15 can classify the item — then run gates.
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
This is a supported entry point, not only an internal step of a caller flow.
|
|
97
|
-
Point it at a live issue and it fetches and validates the stored state:
|
|
98
|
-
|
|
99
|
-
```text
|
|
100
|
-
Skill(lisa-linear-validate-issue) with ENG-1234
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Use it whenever the issue reached the tracker by some path other than
|
|
104
|
-
`lisa-linear-write-issue` — a team's own script, a workflow step, a cron, anything holding the
|
|
105
|
-
credentials but no skill runtime. Those paths get neither the pre-write nor the
|
|
106
|
-
post-write gate, and their own read-back substitutes for neither: a read-back
|
|
107
|
-
proves the tracker stored what was sent, never that what was sent was any good.
|
|
108
|
-
|
|
109
|
-
The gate definitions live here on purpose, so every caller picks up a change
|
|
110
|
-
automatically. Running this skill by hand is the same gate the write path runs,
|
|
111
|
-
not an approximation of it.
|
|
94
|
+
For existing items written through another path, use the [standalone entry point](#standalone-entry-point--validating-an-item-written-by-another-path). A transport read-back does not prove the stored specification passes the gates.
|
|
112
95
|
|
|
113
96
|
## Gates
|
|
114
97
|
|
|
@@ -63,20 +63,3 @@ normalize-then-compare. Byte-exact comparison of such text is forbidden.
|
|
|
63
63
|
- Never write to Linear. Read-only.
|
|
64
64
|
- Never short-circuit the validator. Always run the full gate set.
|
|
65
65
|
- If `get_issue` / `get_project` returns an access error, surface it and exit — don't pretend the item is fine.
|
|
66
|
-
|
|
67
|
-
## Comparison is semantic, never byte-exact
|
|
68
|
-
|
|
69
|
-
Re-run the validator against the live issue. Do NOT compare the stored body
|
|
70
|
-
against what was sent byte for byte.
|
|
71
|
-
|
|
72
|
-
The reason is measured rather than theoretical. Trackers normalize markdown on
|
|
73
|
-
write: `-` bullets become `*`, a bare URL is wrapped as `[url](<url>)`, bold
|
|
74
|
-
emphasis is re-segmented around inline code spans. All lossless, all
|
|
75
|
-
rendering-identical, and all of it makes a byte comparator report failure on a
|
|
76
|
-
write that was completely fine. A comparator that cannot tell vendor
|
|
77
|
-
normalization from corruption fails on healthy writes and trains its reader to
|
|
78
|
-
ignore it, which costs more than the check was ever worth.
|
|
79
|
-
|
|
80
|
-
Compare meaning: run `lisa-linear-validate-issue` against the stored item and let the gates
|
|
81
|
-
decide. Where a single field must be compared directly, normalize both sides
|
|
82
|
-
first.
|
|
@@ -33,40 +33,7 @@ Linear's data model maps Epic / Story / Sub-task to **different entity types**.
|
|
|
33
33
|
|
|
34
34
|
The build lifecycle uses native **workflow states** (`Ready`, `In Progress`, `Blocked`, `On Dev`, `On Stg`, `Done`, plus an optional review state a project may bind), resolved per role from `linear.workflow` — see "Why Linear uses states, not labels" in `config-resolution`. A new **leaf** work unit is created in the configured `ready` state only on explicit `build_ready: true`; omitted or `false` leaves it in the team's default backlog state, and a container is never put in `ready` at all (see the Build-ready control input below).
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
A team that talks to its tracker through its own script is doing a normal
|
|
39
|
-
thing — the script usually owns the credential plumbing, and Lisa neither
|
|
40
|
-
controls nor wants to control it. What that script does NOT get is either half
|
|
41
|
-
of this skill's quality gate, and nothing about the write says so.
|
|
42
|
-
|
|
43
|
-
**A read-back is not the missing check.** A bespoke path almost always re-reads
|
|
44
|
-
the issue after writing and confirms the tracker stored what was sent. That is
|
|
45
|
-
worth doing and it is not this. It proves TRANSPORT: the API accepted the
|
|
46
|
-
payload and the field values round-tripped. It cannot fail for the reason these
|
|
47
|
-
gates exist, because it never looks at whether what was sent was any good — a
|
|
48
|
-
issue with no acceptance criteria, no parent, and a human decision left sitting
|
|
49
|
-
in the middle of it round-trips perfectly. That is the dangerous half of the
|
|
50
|
-
shape: a failing control gets investigated, a misread one gets trusted.
|
|
51
|
-
|
|
52
|
-
So a write by any other path still owes both phases, and both run standalone
|
|
53
|
-
against an item that already exists:
|
|
54
|
-
|
|
55
|
-
| Phase | Skill | What it costs you |
|
|
56
|
-
|---|---|---|
|
|
57
|
-
| Pre-write validate | `lisa-linear-validate-issue` | Run it on the draft before you send it |
|
|
58
|
-
| Post-write verify | `lisa-linear-verify` | Run it on the live issue after you send it |
|
|
59
|
-
|
|
60
|
-
```text
|
|
61
|
-
Skill(lisa-linear-validate-issue) with the draft issue, or with a reference to a live one
|
|
62
|
-
Skill(lisa-linear-verify) with ENG-1234
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
**These are plugin-resident skills invoked through the Skill tool.** They are
|
|
66
|
-
not shell scripts and will not appear in any repository's `scripts/` directory,
|
|
67
|
-
including yours. An agent that searches the repo it is standing in, finds
|
|
68
|
-
nothing, and concludes the capability is absent has made the one mistake that
|
|
69
|
-
turns a local script from the convenient option into the only one.
|
|
36
|
+
For direct API or bespoke script writes, the [bespoke-path contract](#writing-by-a-bespoke-path-your-own-script-direct-api-or-graphql) still requires pre-write validation and post-write verification.
|
|
70
37
|
|
|
71
38
|
## Phase 1 — Resolve Intent
|
|
72
39
|
|
|
@@ -334,6 +301,8 @@ person scanning a board and to any path that has not yet been routed through the
|
|
|
334
301
|
If the label does not exist in the tracker, create it, or record that it could not be applied and
|
|
335
302
|
proceed — the marker still holds. Never file the label *instead of* the marker.
|
|
336
303
|
|
|
304
|
+
**Every marker reader must consult comments.** Use `classifyReadyCandidate` with labels, body, comments and the configured human-needed label, then `planHumanGateRelease` for any release actions. A historical body marker alone is not an active hold after its matching release; unreadable comments leave a hold in place.
|
|
305
|
+
|
|
337
306
|
**Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
|
|
338
307
|
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item, and the
|
|
339
308
|
next intake sweep then takes the marker label off and puts the item back in the build-ready role on
|
|
@@ -15,7 +15,7 @@ The PRD URL can be a **Notion page URL**, a **Confluence page URL**, a **Linear
|
|
|
15
15
|
|
|
16
16
|
- `notion.so` / `notion.site` → Notion. Fetch with `mcp__claude_ai_Notion__notion-fetch` (`include_discussions: true`) and `mcp__claude_ai_Notion__notion-get-comments`.
|
|
17
17
|
- Atlassian Confluence host (e.g. `*.atlassian.net/wiki/...`) → Confluence. Through `lisa-atlassian-access`, fetch the page, its descendants (for child epic pages), and its footer + inline comments including nested replies. State the operation, not a vendor tool name — the access skill owns substrate selection (`integration-access-layer`).
|
|
18
|
-
- `linear.app` host → Linear. Fetch with `lisa-linear-access operation: get-project` (capture description, labels, state, attached resources), `lisa-linear-access operation: list-documents({projectId})` + `lisa-linear-access operation: get-document` per attached document, `lisa-linear-access operation: list-issues({project})` for sub-issues that act as child epics / user stories, and `lisa-linear-access operation: list-comments({issueId})` per sub-issue for decisions and engineering notes.
|
|
18
|
+
- `linear.app` host → Linear. Fetch with `lisa-linear-access operation: get-project` (capture description, labels, state, attached resources), `lisa-linear-access operation: list-documents({projectId})` + `lisa-linear-access operation: get-document` per attached document, `lisa-linear-access operation: list-issues({project})` for sub-issues that act as child epics / user stories, and `lisa-linear-access operation: list-comments({issueId})` per sub-issue for decisions and engineering notes. Also fetch all project comments with `lisa-linear-access operation: list-comments project_id:<ID>`; the access layer pages through GraphQL even when the MCP lacks project comments. An incomplete comment read is an access failure, not an empty history.
|
|
19
19
|
- `github.com` host → GitHub Issues. Fetch with the `gh` CLI (no GitHub MCP — Lisa uses the CLI exclusively for GitHub):
|
|
20
20
|
- `gh issue view <number> --repo <org>/<repo> --json number,title,body,labels,milestone,assignees,author,createdAt,comments,url` for the PRD body and comments.
|
|
21
21
|
- `gh api graphql` with the `subIssues` field for native sub-issue children (these stand in for child epic pages — see `lisa-github-read-issue` Phase 3 for the exact query).
|
|
@@ -41,7 +41,7 @@ Per-ticket gates (`lisa-jira-validate-ticket`) prove each created ticket is well
|
|
|
41
41
|
2. Fetch the PRD using the vendor-appropriate tool surface:
|
|
42
42
|
- **Notion**: `notion-fetch` with `include_discussions: true`. Capture: title, body, child Epic pages, all comment threads.
|
|
43
43
|
- **Confluence**: `getConfluencePage` (capture title, body, labels), `getConfluencePageFooterComments` + `getConfluencePageInlineComments` (capture all comments; walk replies via `getConfluenceCommentChildren` for any thread with children).
|
|
44
|
-
- **Linear**: `get_project` (capture name, description, labels, state, attached resources). Capture sub-issues via `list_issues({project})` and per-issue comments via `list_comments({issueId})`.
|
|
44
|
+
- **Linear**: `get_project` (capture name, description, labels, state, attached resources). Capture all project comments via `lisa-linear-access operation: list-comments project_id:<ID>`, plus sub-issues via `list_issues({project})` and per-issue comments via `list_comments({issueId})`. Include both comment sources in destination URL discovery; refuse to report `NO_TICKETS_FOUND` from an incomplete read.
|
|
45
45
|
- **GitHub**: `gh issue view --json` for the source PRD issue (title, body, labels, comments). Capture sub-issues via the GraphQL `subIssues` traversal.
|
|
46
46
|
3. If the PRD has child Epic sub-pages / sub-issues (a multi-epic PRD), fetch each in parallel:
|
|
47
47
|
- **Notion**: `notion-fetch` per child page with `include_discussions: true`.
|
|
@@ -189,7 +189,7 @@ In addition to the lifecycle roles above, the build lifecycle defines the **`hum
|
|
|
189
189
|
- The blocks repair-intake **itself writes** are the auto-recoverable kind — it files a build-ready fix ticket and moves the item `blocked` *blocked by that ticket*, expecting the next cycle to self-heal. Those are **not** `human_needed`; if such an item arrives carrying a `human_needed` marker **this skill applied on an earlier cycle**, repair-intake **clears** it (the block is no longer waiting on a human).
|
|
190
190
|
- **Never remove a `human_needed` marker this skill did not apply.** "Stale" is a judgment about the block's kind, not about who applied the marker or when — so without this rule an operator's deliberate hold, applied *after* correcting a wrong transition, is indistinguishable from a leftover the sweep is designed to clear, and gets swept. Establish provenance from the label event's actor (`rejection-detection` **Automation-reversal memory** reads the same surfaces); if provenance is not readable, **leave the marker in place**. Removing a human's hold is unrecoverable within the loop; leaving a stale one costs a cycle and is visible.
|
|
191
191
|
- **The one exception is a hold that has recorded its own discharge.** A `[lisa-human-gate-release]` comment naming the hold's `reason=` is not a guess about provenance — it is the hold's stated void condition, recorded on the item by the person who answered it. Clearing the marker there is not overriding a human's judgment; it is *enacting* it. That is the whole of the exception: no other reading of "this looks stale" reopens the question above, and an item whose release cannot be read stays held. See "Release the holds that have been answered" below (#3852).
|
|
192
|
-
- The marker is consulted **before **any** repair transition**, not only before Class C. Class C's hard stop is the strictest reading of it, but a marker that is honoured on one classification path and ignored on the other three is not a guard — and Class A, dependency clearing, is exactly the path an operator reverting a wrongly-cleared blocker is trying to protect.
|
|
192
|
+
- The marker is consulted **before **any** repair transition**, not only before Class C. Class C's hard stop is the strictest reading of it, but a marker that is honoured on one classification path and ignored on the other three is not a guard — and Class A, dependency clearing, is exactly the path an operator reverting a wrongly-cleared blocker is trying to protect. Read all comments and consult `classifyReadyCandidate` / `planHumanGateRelease` before treating the marker as active; a matching release discharges the historical body marker. Use the shared helpers for robust label and declaration matching, and leave unreadable releases held.
|
|
193
193
|
- The blocks the **vendor agent** writes when repair-intake re-dispatches it (its pre-flight gate) carry `human_needed` already — the agent owns that marker. repair-intake leaves it in place.
|
|
194
194
|
|
|
195
195
|
Resolve with the standard role-read pattern (local overrides global, default fallback):
|
|
@@ -621,6 +621,41 @@ the item open. Recording "the fix reached dev and production but skipped staging
|
|
|
621
621
|
branch back-fill, not outstanding delivery" and then closing anyway is this defect exactly — the
|
|
622
622
|
condition observed, filed under the wrong heading, and overridden.
|
|
623
623
|
|
|
624
|
+
### Resolve the shipped blocker-edge module
|
|
625
|
+
|
|
626
|
+
The helper ships in the plugin and npm package. Only the runtime-supplied plugin roots
|
|
627
|
+
and installed package are trusted here; do not search arbitrary checkout-local plugin folders.
|
|
628
|
+
Write the evaluated edge inputs to a JSON array file, then call `blocker_edge_decisions`.
|
|
629
|
+
An absent module, unreadable input or import failure stops this repair without tracker writes.
|
|
630
|
+
|
|
631
|
+
```bash
|
|
632
|
+
resolve_blocker_guard() {
|
|
633
|
+
local candidate
|
|
634
|
+
for candidate in \
|
|
635
|
+
"${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/scripts/blocker-edge-resolution.mjs}" \
|
|
636
|
+
"${PLUGIN_ROOT:+$PLUGIN_ROOT/scripts/blocker-edge-resolution.mjs}" \
|
|
637
|
+
node_modules/@codyswann/lisa/plugins/lisa/scripts/blocker-edge-resolution.mjs; do
|
|
638
|
+
[ -n "$candidate" ] && [ -f "$candidate" ] && { printf '%s\n' "$candidate"; return; }
|
|
639
|
+
done
|
|
640
|
+
echo "Error: could not locate blocker-edge-resolution.mjs; refusing repair." >&2
|
|
641
|
+
return 1
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
blocker_edge_decisions() { # JSON array file -> decision object
|
|
645
|
+
local guard
|
|
646
|
+
guard=$(resolve_blocker_guard) || return 1
|
|
647
|
+
node --input-type=module - "$guard" "$1" <<'LISA_BLOCKER_NODE'
|
|
648
|
+
import { readFileSync } from "node:fs";
|
|
649
|
+
import { resolve } from "node:path";
|
|
650
|
+
import { pathToFileURL } from "node:url";
|
|
651
|
+
const { resolveBlockerEdges } = await import(pathToFileURL(resolve(process.argv[2])).href);
|
|
652
|
+
const edges = JSON.parse(readFileSync(process.argv[3], "utf8"));
|
|
653
|
+
if (!Array.isArray(edges)) throw new Error("Expected an array of blocker edges");
|
|
654
|
+
console.log(JSON.stringify(resolveBlockerEdges(edges)));
|
|
655
|
+
LISA_BLOCKER_NODE
|
|
656
|
+
}
|
|
657
|
+
```
|
|
658
|
+
|
|
624
659
|
### Build `blocked` → re-evaluate, unblock if cleared
|
|
625
660
|
|
|
626
661
|
1. Read the block reason and classify the blocker (see Blocker classification & clearing). An item
|
|
@@ -629,8 +664,11 @@ condition observed, filed under the wrong heading, and overridden.
|
|
|
629
664
|
Re-check **every** class present — do not stop at "no `is blocked by` links, therefore nothing
|
|
630
665
|
to do." A self-block has zero dependencies by definition, yet is fully re-checkable.
|
|
631
666
|
2. **Dependency cleared** — decide each parsed `is blocked by` edge with
|
|
632
|
-
`scripts/blocker-edge-resolution.mjs`, feeding it the
|
|
633
|
-
blocker's state and closure reason.
|
|
667
|
+
the shipped plugin helper `scripts/blocker-edge-resolution.mjs`, feeding it the
|
|
668
|
+
`blocker-containment` verdict plus the blocker's state and closure reason. This is a module,
|
|
669
|
+
not a CLI and not a required host `scripts/` file. Resolve a trusted plugin/package path and
|
|
670
|
+
invoke `resolveBlockerEdges` as shown above; never create a second resolver in the host.
|
|
671
|
+
It returns `dissolve` / `keep` / `escalate` per edge.
|
|
634
672
|
**Dissolve the edge in the SAME write that records the ruling, then read the relation back and
|
|
635
673
|
confirm it is gone.** Only when every edge dissolves → move `blocked → claimed`, then run the
|
|
636
674
|
same agent-dispatch + post-agent `claimed → done` sequence as the stalled-`claimed` path above
|
|
@@ -1033,7 +1071,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
|
|
|
1033
1071
|
`intake_mode=build`, every non-PRD issue is normalized as a build ticket. If `intake_mode=both`,
|
|
1034
1072
|
classify PRDs first and normalize all remaining issues as build tickets.
|
|
1035
1073
|
2a. **Ask whether a person is holding it, before anything else.** Call
|
|
1036
|
-
`planLabelNormalization({ labels, body, humanNeededLabel, lifecycleLabels, readyLabel })` from
|
|
1074
|
+
`planLabelNormalization({ labels, body, comments, humanNeededLabel, lifecycleLabels, readyLabel })` from
|
|
1037
1075
|
`scripts/intake-blocker-reprobe.mjs` for every candidate and apply exactly the verdict it
|
|
1038
1076
|
returns. Do **not** re-implement the test here and do **not** decide held-ness from labels
|
|
1039
1077
|
alone: the vendor writers stamp the `[lisa-human-gate]` marker into the body of a deliberate
|
|
@@ -1187,9 +1225,11 @@ layer, and test ancestry against the remote.
|
|
|
1187
1225
|
remote, ancestry query errored) → **still blocking**, with the rule's reason key in the run
|
|
1188
1226
|
record.
|
|
1189
1227
|
- **Ships no code** — the blocker is closed as completed, positively declares
|
|
1190
|
-
|
|
1228
|
+
`## Target Backend Environment` reading `None — no runtime behavior change: <kind>`
|
|
1229
|
+
with kind `doc-only`, `config-only`, or `type-only`, and has no linked PR and no merge commit →
|
|
1191
1230
|
**cleared** under the rule's carve-out. This is a positive determination, never an absence:
|
|
1192
|
-
"no PR found" is `no-pr` and stays blocking.
|
|
1231
|
+
"no PR found" is `no-pr` and stays blocking. A missing kind does not qualify; any linked
|
|
1232
|
+
open or unmerged PR stays blocking under the normal containment test.
|
|
1193
1233
|
- **Human override** — an explicit human statement on this item that the dependency is satisfied
|
|
1194
1234
|
clears it and outranks a failed containment check. Name it in the run record.
|
|
1195
1235
|
- **Human hold** — the override runs in both directions. `human_needed` is checked here as well as
|
|
@@ -53,7 +53,8 @@ first-attempt work.
|
|
|
53
53
|
# bundle.json: { "labels": [...], "comments": [<bodies, oldest first>], "role": "<current>" }
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Branch on `
|
|
56
|
+
Branch on `outcome`, never on the label being there. The resolver's separate
|
|
57
|
+
`action` field is `keep` / `clear` / `none`; it is not the liveness verdict:
|
|
57
58
|
|
|
58
59
|
| `outcome` | Meaning | What triage does |
|
|
59
60
|
|---|---|---|
|
|
@@ -357,7 +357,7 @@ jq -e '.linear.workspace' .lisa.config.json >/dev/null
|
|
|
357
357
|
[ "$(jq -r '.tracker // empty' .lisa.config.json)" = "linear" ] && jq -e '.linear.teamKey' .lisa.config.json >/dev/null
|
|
358
358
|
```
|
|
359
359
|
|
|
360
|
-
Confirm what was scaffolded is present: `list-workflow-states` for every build role when Linear is the tracker, `
|
|
360
|
+
Confirm what was scaffolded is present: `list-workflow-states` for every build role when Linear is the tracker, `list-project-labels` for `prd-*` (including the terminal `prd-verified`) when Linear is the PRD source. Do NOT expect a `status:*` namespace — it is not part of this model. Report success with the resolved workspace, team key (if any), which namespaces were scaffolded (created vs. already existed), any non-default overrides, and whether `tracker` / `source` were set. Direct the user to `/lisa:intake` to test.
|
|
361
361
|
|
|
362
362
|
## Idempotency
|
|
363
363
|
|
|
@@ -70,7 +70,7 @@ const BLOCKING = new Set(["missing", "invalid"]);
|
|
|
70
70
|
/**
|
|
71
71
|
* Whether an unpinnable entry is nonetheless usable on this machine.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
73
|
+
* Executability is required, even when no version floor is declared. Dropping the entry entirely would
|
|
74
74
|
* report clean for a tool that is neither pinned nor installed, which is the
|
|
75
75
|
* vacuous green this module refuses everywhere else. So the probe still decides
|
|
76
76
|
* — it just gets asked, which on this branch it previously never was.
|
|
@@ -83,7 +83,12 @@ const BLOCKING = new Set(["missing", "invalid"]);
|
|
|
83
83
|
* @returns {boolean} Whether the tool is present and good enough to use.
|
|
84
84
|
*/
|
|
85
85
|
function usableWithoutPin(step, minVersions) {
|
|
86
|
-
if (
|
|
86
|
+
if (
|
|
87
|
+
!step.unpinnedForPlatform ||
|
|
88
|
+
!step.found?.present ||
|
|
89
|
+
step.found.executable !== true
|
|
90
|
+
)
|
|
91
|
+
return false;
|
|
87
92
|
const floor = minVersions[step.name];
|
|
88
93
|
return !floor || compareVersions(step.found.version ?? "0", floor) >= 0;
|
|
89
94
|
}
|
|
@@ -120,7 +120,7 @@ export function readRemoteEnvConfig(cwd = process.cwd()) {
|
|
|
120
120
|
* on which quirky binaries happen to exist on the machine running the tests.
|
|
121
121
|
* @param {string} name Executable name.
|
|
122
122
|
* @param {Function} [exec] Command runner, for tests.
|
|
123
|
-
* @returns {{version: string|null, present: boolean}} Probe result.
|
|
123
|
+
* @returns {{version: string|null, present: boolean, executable: boolean}} Probe result.
|
|
124
124
|
*/
|
|
125
125
|
export function probe(name, exec = boundedChildOutput) {
|
|
126
126
|
try {
|
|
@@ -128,12 +128,19 @@ export function probe(name, exec = boundedChildOutput) {
|
|
|
128
128
|
encoding: "utf8",
|
|
129
129
|
stdio: ["ignore", "pipe", "pipe"],
|
|
130
130
|
});
|
|
131
|
-
return { present: true, version: extractVersion(out) };
|
|
131
|
+
return { present: true, executable: true, version: extractVersion(out) };
|
|
132
132
|
} catch (err) {
|
|
133
|
-
if (err.code === "ENOENT") return { present: false, version: null };
|
|
134
133
|
if (err.code === "ETIMEDOUT") throw err;
|
|
134
|
+
// A numeric exit status proves the child started, even when --version is
|
|
135
|
+
// unsupported. EACCES and other spawn failures carry no exit status: a
|
|
136
|
+
// file being discoverable does not mean the agent can execute it.
|
|
137
|
+
const executable = typeof err.status === "number";
|
|
135
138
|
const output = `${err.stdout ?? ""}${err.stderr ?? ""}`;
|
|
136
|
-
return {
|
|
139
|
+
return {
|
|
140
|
+
present: err.code !== "ENOENT",
|
|
141
|
+
executable,
|
|
142
|
+
version: executable ? extractVersion(output) : null,
|
|
143
|
+
};
|
|
137
144
|
}
|
|
138
145
|
}
|
|
139
146
|
|
|
@@ -56,7 +56,7 @@ export function extractVersion(output) {
|
|
|
56
56
|
/**
|
|
57
57
|
* Classify one required tool against what the environment actually provides.
|
|
58
58
|
* @param {object} tool Manifest entry.
|
|
59
|
-
* @param {{version: string|null, present: boolean}} found Probe result.
|
|
59
|
+
* @param {{version: string|null, present: boolean, executable: boolean}} found Probe result.
|
|
60
60
|
* @returns {{name: string, action: string, reason: string}} The decision.
|
|
61
61
|
*/
|
|
62
62
|
function planRequired(tool, found) {
|
|
@@ -70,6 +70,13 @@ function planRequired(tool, found) {
|
|
|
70
70
|
`Either add an install entry or pin a different image.`,
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
+
if (found.executable !== true) {
|
|
74
|
+
return {
|
|
75
|
+
name: tool.name,
|
|
76
|
+
action: "missing",
|
|
77
|
+
reason: `${tool.name} was found but cannot be executed. Repair its permissions or replace the binary before using it.`,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
73
80
|
if (
|
|
74
81
|
tool.minVersion &&
|
|
75
82
|
compareVersions(found.version ?? "0", tool.minVersion) < 0
|
|
@@ -97,7 +104,7 @@ function planRequired(tool, found) {
|
|
|
97
104
|
* and maintenance the same script, and it is the cheap path when a container
|
|
98
105
|
* resumes from cache rather than being built fresh.
|
|
99
106
|
* @param {object} tool Manifest entry.
|
|
100
|
-
* @param {{version: string|null, present: boolean}} found Probe result.
|
|
107
|
+
* @param {{version: string|null, present: boolean, executable: boolean}} found Probe result.
|
|
101
108
|
* @returns {{name: string, action: string, reason: string}} The decision.
|
|
102
109
|
*/
|
|
103
110
|
function planInstallable(tool, found, pinIsFloor = false) {
|
|
@@ -108,7 +115,11 @@ function planInstallable(tool, found, pinIsFloor = false) {
|
|
|
108
115
|
reason: `${tool.name} has no pinned version. An unpinned install is not reproducible.`,
|
|
109
116
|
};
|
|
110
117
|
}
|
|
111
|
-
if (
|
|
118
|
+
if (
|
|
119
|
+
found.present &&
|
|
120
|
+
found.executable === true &&
|
|
121
|
+
found.version === tool.version
|
|
122
|
+
) {
|
|
112
123
|
return {
|
|
113
124
|
name: tool.name,
|
|
114
125
|
action: "skip",
|
|
@@ -125,6 +136,7 @@ function planInstallable(tool, found, pinIsFloor = false) {
|
|
|
125
136
|
if (
|
|
126
137
|
pinIsFloor &&
|
|
127
138
|
found.present &&
|
|
139
|
+
found.executable === true &&
|
|
128
140
|
found.version &&
|
|
129
141
|
compareVersions(found.version, tool.version) > 0
|
|
130
142
|
) {
|
|
@@ -286,10 +298,10 @@ export function appliesToSurface(tool, surface) {
|
|
|
286
298
|
* asking about availability rather than provisioning has the answer instead of
|
|
287
299
|
* having to infer one from the other.
|
|
288
300
|
* @param {{require?: object[], install?: object[]}} tools Manifest.
|
|
289
|
-
* @param {(name: string) => {version: string|null, present: boolean}} probe Version probe.
|
|
301
|
+
* @param {(name: string) => {version: string|null, present: boolean, executable: boolean}} probe Version probe.
|
|
290
302
|
* @param {string} [surface] Surface being provisioned.
|
|
291
303
|
* @param {string} [platform] Platform key to resolve install entries against.
|
|
292
|
-
* @returns {Array<{name: string, action: string, reason: string, tool?: object, found?: {version: string|null, present: boolean}, unpinnedForPlatform?: boolean}>} Ordered decisions.
|
|
304
|
+
* @returns {Array<{name: string, action: string, reason: string, tool?: object, found?: {version: string|null, present: boolean, executable: boolean}, unpinnedForPlatform?: boolean}>} Ordered decisions.
|
|
293
305
|
*/
|
|
294
306
|
export function planToolchain(
|
|
295
307
|
tools,
|
|
@@ -24,7 +24,7 @@ This flow must return exactly one canonical `(tracker_provider, work_item_ref)`
|
|
|
24
24
|
|
|
25
25
|
### Explicit reference
|
|
26
26
|
|
|
27
|
-
Invoke `lisa-tracker-read <ref>` and require a live result from the configured project. Reject nonexistent, inaccessible, closed/resolved/terminal, wrong-project, wrong-repository, or container items. Read the returned body
|
|
27
|
+
Invoke `lisa-tracker-read <ref>` and require a live result from the configured project. Reject nonexistent, inaccessible, closed/resolved/terminal, wrong-project, wrong-repository, or container items. Read the returned body, labels and all comments; Phase 3 uses the shared hold classifier so a historical `[lisa-human-gate]` marker with a matching release is not mistaken for an active hold. This live read is mandatory even if caller context already includes ticket text.
|
|
28
28
|
|
|
29
29
|
### File or plain text
|
|
30
30
|
|
|
@@ -44,9 +44,23 @@ This is intentionally conservative: ambiguity creates one explicit work item ins
|
|
|
44
44
|
|
|
45
45
|
## Phase 3 — Claim and bind
|
|
46
46
|
|
|
47
|
-
The work item is **held** when
|
|
47
|
+
The work item is **held** when the caller declared a `human_gate`, independently of any item history,
|
|
48
|
+
or `classifyReadyCandidate({ labels, body, comments, humanNeededLabel })` from the shipped
|
|
49
|
+
`scripts/intake-blocker-reprobe.mjs` returns `claimable: false`. Pass the complete live comment
|
|
50
|
+
history so a matching `[lisa-human-gate-release]` discharges the historical body marker. Never
|
|
51
|
+
reimplement heldness as a substring test or as the negation of `planHumanGateRelease().released`:
|
|
52
|
+
that planner also returns `released: false` for an item that was never held. Missing comments fail
|
|
53
|
+
closed for a hold; never infer release from a missing label.
|
|
48
54
|
|
|
49
|
-
A held item stops the flow here, whatever
|
|
55
|
+
A held item stops the flow here, whatever roles or labels it carries. Do not invoke
|
|
56
|
+
`lisa-tracker-claim`, write the worktree binding, or begin durable project work. Return
|
|
57
|
+
`claim_outcome: held-by-gate` and `binding_outcome: skipped-human-gate`, name the signal in `held_by`
|
|
58
|
+
and carry its reason verbatim in `gate_reason` (null for a keyless hold), then stop.
|
|
59
|
+
|
|
60
|
+
For a discharged item, call
|
|
61
|
+
`planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
62
|
+
and apply only the returned actions before claiming. Keep the body marker as history; a release
|
|
63
|
+
never overrides a new caller-declared hold or another eligibility check.
|
|
50
64
|
|
|
51
65
|
Otherwise:
|
|
52
66
|
|
|
@@ -78,5 +92,5 @@ Otherwise:
|
|
|
78
92
|
- Branch setup may call `node scripts/lisa-work-item.mjs attach-branch` after the feature branch exists.
|
|
79
93
|
- Keep the binding across ordinary interruptions and blocked outcomes so resumed work remains attributable.
|
|
80
94
|
- Clear it only after true terminal completion — merged, deployed/verified where required, tracker evidence/backlink complete, and the work item terminal — by running `node scripts/lisa-work-item.mjs clear` and verifying no current binding remains.
|
|
81
|
-
- A held filing writes no binding at all, so there is nothing to clear. The gate is released by a human decision, but not by a human edit: the person records the decision as a comment on the leaf beginning `[lisa-human-gate-release]` and
|
|
95
|
+
- A held filing writes no binding at all, so there is nothing to clear. The gate is released by a human decision, but not by a human edit: the person records the decision as a comment on the leaf beginning `[lisa-human-gate-release]` and, for a keyed hold, repeating its `reason=` verbatim. For a keyless hold, the comment begins `[lisa-human-gate-release]` without a `reason=` field. The next intake sweep takes the human-needed marker off and puts the leaf back in the build-ready role on its own (`planHumanGateRelease` in `scripts/intake-blocker-reprobe.mjs`). A later invocation then resolves it on the ordinary path. **Do not tell anyone to delete the marker from the description, and do not delete it here.** The only description write available is a whole-body replacement, so clearing one line means rewriting the entire record — which is why, before this, the rational move was always to leave a hold in place and answered holds only accumulated (CodySwannGT/lisa#3852). The hold stays in the body as history; the release is recorded beside it.
|
|
82
96
|
- A tracker outage, invalid item, failed claim, or failed binding blocks durable work. Never continue untracked and never ask a Git hook to create the item.
|
package/scripts/build-plugins.sh
CHANGED
|
@@ -169,6 +169,9 @@ for guard in block-no-verify parity-safety-net block-shell-json-parsing \
|
|
|
169
169
|
block-managed-file-edits block-blind-automerge worktree-binding-guard; do
|
|
170
170
|
if [ -f "$SRC_DIR/base/hooks/$guard.sh" ]; then
|
|
171
171
|
materialize "$SRC_DIR/base/hooks/$guard.sh" "$HOST_GUARD_DIR/$guard.sh"
|
|
172
|
+
# Both active channels must hash identical code, including the ownership
|
|
173
|
+
# banner; fan-out below derives the other plugins from this same copy.
|
|
174
|
+
materialize "$SRC_DIR/base/hooks/$guard.sh" "$PLUGINS_DIR/lisa/hooks/$guard.sh"
|
|
172
175
|
chmod +x "$HOST_GUARD_DIR/$guard.sh"
|
|
173
176
|
fi
|
|
174
177
|
done
|
|
@@ -196,6 +199,7 @@ for companion in parity-safety-net-heredoc.py worktree-binding-guard.mjs \
|
|
|
196
199
|
guard-dedupe.bash; do
|
|
197
200
|
if [ -f "$SRC_DIR/base/hooks/$companion" ]; then
|
|
198
201
|
materialize "$SRC_DIR/base/hooks/$companion" "$HOST_GUARD_DIR/$companion"
|
|
202
|
+
materialize "$SRC_DIR/base/hooks/$companion" "$PLUGINS_DIR/lisa/hooks/$companion"
|
|
199
203
|
fi
|
|
200
204
|
done
|
|
201
205
|
# The Sonar hook wrapper, which ships alongside the guards but is not one.
|