@codyswann/lisa 4.48.0 → 4.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/check-conflict-markers.mjs +4 -1
- package/all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs +163 -0
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +178 -1
- package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +89 -10
- package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +44 -0
- package/all/copy-overwrite/scripts/lisa-lint-staged-preflight.mjs +1 -1
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +24 -24
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +490 -81
- package/cdk/package-lisa/package.lisa.json +45 -15
- package/dist/configs/vitest/base.d.ts +71 -1
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +141 -23
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/fleet-admission-global-setup.d.ts +34 -0
- package/dist/configs/vitest/fleet-admission-global-setup.d.ts.map +1 -0
- package/dist/configs/vitest/fleet-admission-global-setup.js +123 -0
- package/dist/configs/vitest/fleet-admission-global-setup.js.map +1 -0
- package/dist/configs/vitest/fleet-admission.d.ts +129 -0
- package/dist/configs/vitest/fleet-admission.d.ts.map +1 -0
- package/dist/configs/vitest/fleet-admission.js +239 -0
- package/dist/configs/vitest/fleet-admission.js.map +1 -0
- package/dist/configs/vitest/synthesis-scratch-reclaim.d.ts +86 -0
- package/dist/configs/vitest/synthesis-scratch-reclaim.d.ts.map +1 -0
- package/dist/configs/vitest/synthesis-scratch-reclaim.js +226 -0
- package/dist/configs/vitest/synthesis-scratch-reclaim.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +76 -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 +129 -228
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +45 -1
- package/dist/opencode/plugin-templates/parity-safety-net.sh +44 -0
- package/expo/package-lisa/package.lisa.json +83 -53
- package/harper-fabric/package-lisa/package.lisa.json +62 -32
- package/nestjs/package-lisa/package.lisa.json +57 -27
- package/npm-package/package-lisa/package.lisa.json +43 -7
- package/package.json +11 -7
- package/phaser/copy-overwrite/ast-grep/rules/no-day-truncating-file-age-predicate.yml +50 -0
- package/phaser/package-lisa/package.lisa.json +62 -32
- 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-drive-pr-to-merge/SKILL.md +17 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +4 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +4 -1
- package/plugins/lisa/hooks/block-direct-issue-create.sh +89 -10
- package/plugins/lisa/hooks/discharge-work-item-gates.sh +7 -1
- package/plugins/lisa/hooks/parity-safety-net.sh +44 -0
- package/plugins/lisa/hooks/threshold-ratchet-families.mjs +12 -0
- package/plugins/lisa/rules/eager/00-rule-index.md +79 -0
- package/plugins/lisa/rules/eager/base-rules.md +10 -0
- package/plugins/lisa/rules/eager/config-resolution.md +1 -88
- package/plugins/lisa/rules/reference/automation-runbook-contract.md +97 -0
- package/plugins/lisa/rules/reference/bdd-e2e-coverage.md +56 -0
- package/plugins/lisa/rules/reference/blocker-containment.md +58 -0
- package/plugins/lisa/rules/reference/claim-archaeology.md +42 -0
- package/plugins/lisa/rules/reference/claim-evidence-mapping.md +83 -0
- package/plugins/lisa/rules/reference/claim-time-guards.md +37 -0
- package/plugins/lisa/rules/reference/config-resolution.md +97 -0
- package/plugins/lisa/rules/reference/control-reachability.md +44 -0
- package/plugins/lisa/rules/reference/convergent-review.md +31 -0
- package/plugins/lisa/rules/reference/credential-substrate-precedence.md +57 -0
- package/plugins/lisa/rules/reference/dependency-decision-records.md +37 -0
- package/plugins/lisa/rules/reference/dependency-internalization-kit.md +47 -0
- package/plugins/lisa/rules/reference/dependency-trust-classes.md +48 -0
- package/plugins/lisa/rules/reference/deployed-state-readback.md +52 -0
- package/plugins/lisa/rules/reference/derived-branch-plan.md +52 -0
- package/plugins/lisa/rules/reference/design-source-of-truth.md +43 -0
- package/plugins/lisa/rules/reference/design-value-binding.md +103 -0
- package/plugins/lisa/rules/reference/documentation-source-paths.md +18 -0
- package/plugins/lisa/rules/reference/leaf-only-lifecycle.md +75 -0
- package/plugins/lisa/rules/reference/observability-audit.md +20 -0
- package/plugins/lisa/rules/reference/prd-definition-of-ready.md +37 -0
- package/plugins/lisa/rules/reference/prd-lifecycle-rollup.md +36 -0
- package/plugins/lisa/rules/reference/pre-flight-autofill.md +88 -0
- package/plugins/lisa/rules/reference/promotion-contract.md +21 -0
- package/plugins/lisa/rules/reference/readiness-rubric.md +63 -0
- package/plugins/lisa/rules/reference/ready-role-filing.md +34 -0
- package/plugins/lisa/rules/reference/rejection-detection.md +69 -0
- package/plugins/lisa/rules/reference/repo-scope-split.md +48 -0
- package/plugins/lisa/rules/reference/reset-seed-coverage.md +55 -0
- package/plugins/lisa/rules/reference/usage-accounting.md +38 -0
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +32 -0
- package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +158 -1
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +17 -1
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +4 -0
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +4 -0
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +4 -0
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +4 -1
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +89 -10
- package/plugins/lisa-agy/hooks/parity-safety-net.sh +44 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +158 -1
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +17 -1
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +4 -0
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +4 -0
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +4 -0
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +4 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +89 -10
- package/plugins/lisa-copilot/hooks/discharge-work-item-gates.sh +7 -1
- package/plugins/lisa-copilot/hooks/parity-safety-net.sh +44 -0
- package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +12 -0
- package/plugins/lisa-copilot/rules/eager/00-rule-index.md +79 -0
- package/plugins/lisa-copilot/rules/eager/base-rules.md +10 -0
- package/plugins/lisa-copilot/rules/eager/config-resolution.md +1 -88
- package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +97 -0
- package/plugins/lisa-copilot/rules/reference/bdd-e2e-coverage.md +56 -0
- package/plugins/lisa-copilot/rules/reference/blocker-containment.md +58 -0
- package/plugins/lisa-copilot/rules/reference/claim-archaeology.md +42 -0
- package/plugins/lisa-copilot/rules/reference/claim-evidence-mapping.md +83 -0
- package/plugins/lisa-copilot/rules/reference/claim-time-guards.md +37 -0
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +97 -0
- package/plugins/lisa-copilot/rules/reference/control-reachability.md +44 -0
- package/plugins/lisa-copilot/rules/reference/convergent-review.md +31 -0
- package/plugins/lisa-copilot/rules/reference/credential-substrate-precedence.md +57 -0
- package/plugins/lisa-copilot/rules/reference/dependency-decision-records.md +37 -0
- package/plugins/lisa-copilot/rules/reference/dependency-internalization-kit.md +47 -0
- package/plugins/lisa-copilot/rules/reference/dependency-trust-classes.md +48 -0
- package/plugins/lisa-copilot/rules/reference/deployed-state-readback.md +52 -0
- package/plugins/lisa-copilot/rules/reference/derived-branch-plan.md +52 -0
- package/plugins/lisa-copilot/rules/reference/design-source-of-truth.md +43 -0
- package/plugins/lisa-copilot/rules/reference/design-value-binding.md +103 -0
- package/plugins/lisa-copilot/rules/reference/documentation-source-paths.md +18 -0
- package/plugins/lisa-copilot/rules/reference/leaf-only-lifecycle.md +75 -0
- package/plugins/lisa-copilot/rules/reference/observability-audit.md +20 -0
- package/plugins/lisa-copilot/rules/reference/prd-definition-of-ready.md +37 -0
- package/plugins/lisa-copilot/rules/reference/prd-lifecycle-rollup.md +36 -0
- package/plugins/lisa-copilot/rules/reference/pre-flight-autofill.md +88 -0
- package/plugins/lisa-copilot/rules/reference/promotion-contract.md +21 -0
- package/plugins/lisa-copilot/rules/reference/readiness-rubric.md +63 -0
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +34 -0
- package/plugins/lisa-copilot/rules/reference/rejection-detection.md +69 -0
- package/plugins/lisa-copilot/rules/reference/repo-scope-split.md +48 -0
- package/plugins/lisa-copilot/rules/reference/reset-seed-coverage.md +55 -0
- package/plugins/lisa-copilot/rules/reference/usage-accounting.md +38 -0
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +32 -0
- package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +158 -1
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +17 -1
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +4 -0
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +4 -0
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +4 -0
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +4 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +89 -10
- package/plugins/lisa-cursor/hooks/discharge-work-item-gates.sh +7 -1
- package/plugins/lisa-cursor/hooks/parity-safety-net.sh +44 -0
- package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +12 -0
- package/plugins/lisa-cursor/rules/00-rule-index.mdc +84 -0
- package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +97 -0
- package/plugins/lisa-cursor/rules/base-rules.mdc +10 -0
- package/plugins/lisa-cursor/rules/bdd-e2e-coverage-reference.mdc +56 -0
- package/plugins/lisa-cursor/rules/blocker-containment-reference.mdc +58 -0
- package/plugins/lisa-cursor/rules/claim-archaeology-reference.mdc +42 -0
- package/plugins/lisa-cursor/rules/claim-evidence-mapping-reference.mdc +83 -0
- package/plugins/lisa-cursor/rules/claim-time-guards-reference.mdc +37 -0
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +97 -0
- package/plugins/lisa-cursor/rules/config-resolution.mdc +1 -88
- package/plugins/lisa-cursor/rules/control-reachability-reference.mdc +44 -0
- package/plugins/lisa-cursor/rules/convergent-review-reference.mdc +31 -0
- package/plugins/lisa-cursor/rules/credential-substrate-precedence-reference.mdc +57 -0
- package/plugins/lisa-cursor/rules/dependency-decision-records-reference.mdc +37 -0
- package/plugins/lisa-cursor/rules/dependency-internalization-kit-reference.mdc +47 -0
- package/plugins/lisa-cursor/rules/dependency-trust-classes-reference.mdc +48 -0
- package/plugins/lisa-cursor/rules/deployed-state-readback-reference.mdc +52 -0
- package/plugins/lisa-cursor/rules/derived-branch-plan-reference.mdc +52 -0
- package/plugins/lisa-cursor/rules/design-source-of-truth-reference.mdc +43 -0
- package/plugins/lisa-cursor/rules/design-value-binding-reference.mdc +103 -0
- package/plugins/lisa-cursor/rules/documentation-source-paths-reference.mdc +18 -0
- package/plugins/lisa-cursor/rules/leaf-only-lifecycle-reference.mdc +75 -0
- package/plugins/lisa-cursor/rules/observability-audit-reference.mdc +20 -0
- package/plugins/lisa-cursor/rules/prd-definition-of-ready-reference.mdc +37 -0
- package/plugins/lisa-cursor/rules/prd-lifecycle-rollup-reference.mdc +36 -0
- package/plugins/lisa-cursor/rules/pre-flight-autofill-reference.mdc +88 -0
- package/plugins/lisa-cursor/rules/promotion-contract-reference.mdc +21 -0
- package/plugins/lisa-cursor/rules/readiness-rubric-reference.mdc +63 -0
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +34 -0
- package/plugins/lisa-cursor/rules/rejection-detection-reference.mdc +69 -0
- package/plugins/lisa-cursor/rules/repo-scope-split-reference.mdc +48 -0
- package/plugins/lisa-cursor/rules/reset-seed-coverage-reference.mdc +55 -0
- package/plugins/lisa-cursor/rules/usage-accounting-reference.mdc +38 -0
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +32 -0
- package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +158 -1
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +17 -1
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +4 -0
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +4 -0
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +4 -0
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +4 -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-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-direct-issue-create.sh +89 -10
- package/plugins/src/base/hooks/discharge-work-item-gates.sh +7 -1
- package/plugins/src/base/hooks/parity-safety-net.sh +44 -0
- package/plugins/src/base/hooks/threshold-ratchet-families.mjs +12 -0
- package/plugins/src/base/rules/eager/00-rule-index.md +79 -0
- package/plugins/src/base/rules/eager/base-rules.md +10 -0
- package/plugins/src/base/rules/eager/config-resolution.md +1 -88
- package/plugins/src/base/rules/reference/automation-runbook-contract.md +97 -0
- package/plugins/src/base/rules/reference/bdd-e2e-coverage.md +56 -0
- package/plugins/src/base/rules/reference/blocker-containment.md +58 -0
- package/plugins/src/base/rules/reference/claim-archaeology.md +42 -0
- package/plugins/src/base/rules/reference/claim-evidence-mapping.md +83 -0
- package/plugins/src/base/rules/reference/claim-time-guards.md +37 -0
- package/plugins/src/base/rules/reference/config-resolution.md +97 -0
- package/plugins/src/base/rules/reference/control-reachability.md +44 -0
- package/plugins/src/base/rules/reference/convergent-review.md +31 -0
- package/plugins/src/base/rules/reference/credential-substrate-precedence.md +57 -0
- package/plugins/src/base/rules/reference/dependency-decision-records.md +37 -0
- package/plugins/src/base/rules/reference/dependency-internalization-kit.md +47 -0
- package/plugins/src/base/rules/reference/dependency-trust-classes.md +48 -0
- package/plugins/src/base/rules/reference/deployed-state-readback.md +52 -0
- package/plugins/src/base/rules/reference/derived-branch-plan.md +52 -0
- package/plugins/src/base/rules/reference/design-source-of-truth.md +43 -0
- package/plugins/src/base/rules/reference/design-value-binding.md +103 -0
- package/plugins/src/base/rules/reference/documentation-source-paths.md +18 -0
- package/plugins/src/base/rules/reference/leaf-only-lifecycle.md +75 -0
- package/plugins/src/base/rules/reference/observability-audit.md +20 -0
- package/plugins/src/base/rules/reference/prd-definition-of-ready.md +37 -0
- package/plugins/src/base/rules/reference/prd-lifecycle-rollup.md +36 -0
- package/plugins/src/base/rules/reference/pre-flight-autofill.md +88 -0
- package/plugins/src/base/rules/reference/promotion-contract.md +21 -0
- package/plugins/src/base/rules/reference/readiness-rubric.md +63 -0
- package/plugins/src/base/rules/reference/ready-role-filing.md +34 -0
- package/plugins/src/base/rules/reference/rejection-detection.md +69 -0
- package/plugins/src/base/rules/reference/repo-scope-split.md +48 -0
- package/plugins/src/base/rules/reference/reset-seed-coverage.md +55 -0
- package/plugins/src/base/rules/reference/usage-accounting.md +38 -0
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +32 -0
- package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +158 -1
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +17 -1
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +4 -0
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +4 -0
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +4 -0
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +4 -1
- package/rails/copy-overwrite/ast-grep/rules/no-day-truncating-file-age-predicate.yml +50 -0
- package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +12 -0
- package/scripts/check-eager-rule-budget.mjs +176 -0
- package/scripts/check-generated-artifact-merge-coverage.mjs +7 -0
- package/scripts/check-rules-pairing.sh +45 -14
- package/scripts/check-shipped-surface-removals.mjs +851 -0
- package/scripts/cleanup-worktrees.sh +69 -16
- package/scripts/generate-export-surface.mjs +318 -0
- package/scripts/lib/shipped-surface.mjs +212 -0
- package/scripts/lisa-enforcement-fallback.sh +178 -1
- package/scripts/remedy-conformance.mjs +435 -0
- package/scripts/two-channel-couplings.json +2 -2
- package/typescript/copy-contents/.husky/pre-push +147 -2
- package/typescript/copy-overwrite/ast-grep/rules/no-day-truncating-file-age-predicate.yml +50 -0
- package/typescript/copy-overwrite/audit.ignore.config.json +0 -10
- package/typescript/copy-overwrite/scripts/lisa-mutation.mjs +180 -29
- package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +12 -0
- package/typescript/package-lisa/package.lisa.json +72 -42
- package/plugins/lisa/rules/eager/automation-runbook-contract.md +0 -92
- package/plugins/lisa/rules/eager/bdd-e2e-coverage.md +0 -51
- package/plugins/lisa/rules/eager/blocker-containment.md +0 -53
- package/plugins/lisa/rules/eager/claim-archaeology.md +0 -37
- package/plugins/lisa/rules/eager/claim-evidence-mapping.md +0 -78
- package/plugins/lisa/rules/eager/claim-time-guards.md +0 -32
- package/plugins/lisa/rules/eager/control-reachability.md +0 -39
- package/plugins/lisa/rules/eager/convergent-review.md +0 -24
- package/plugins/lisa/rules/eager/credential-substrate-precedence.md +0 -54
- package/plugins/lisa/rules/eager/dependency-decision-records.md +0 -32
- package/plugins/lisa/rules/eager/dependency-internalization-kit.md +0 -42
- package/plugins/lisa/rules/eager/dependency-trust-classes.md +0 -43
- package/plugins/lisa/rules/eager/deployed-state-readback.md +0 -47
- package/plugins/lisa/rules/eager/derived-branch-plan.md +0 -47
- package/plugins/lisa/rules/eager/design-source-of-truth.md +0 -38
- package/plugins/lisa/rules/eager/design-value-binding.md +0 -98
- package/plugins/lisa/rules/eager/documentation-source-paths.md +0 -13
- package/plugins/lisa/rules/eager/factory-model.md +0 -41
- package/plugins/lisa/rules/eager/leaf-only-lifecycle.md +0 -70
- package/plugins/lisa/rules/eager/observability-audit.md +0 -15
- package/plugins/lisa/rules/eager/prd-definition-of-ready.md +0 -32
- package/plugins/lisa/rules/eager/prd-lifecycle-rollup.md +0 -31
- package/plugins/lisa/rules/eager/pre-flight-autofill.md +0 -84
- package/plugins/lisa/rules/eager/project-learnings.md +0 -22
- package/plugins/lisa/rules/eager/promotion-contract.md +0 -18
- package/plugins/lisa/rules/eager/readiness-rubric.md +0 -58
- package/plugins/lisa/rules/eager/ready-role-filing.md +0 -29
- package/plugins/lisa/rules/eager/rejection-detection.md +0 -64
- package/plugins/lisa/rules/eager/repo-scope-split.md +0 -43
- package/plugins/lisa/rules/eager/reset-seed-coverage.md +0 -50
- package/plugins/lisa/rules/eager/usage-accounting.md +0 -33
- package/plugins/lisa/rules/eager/work-item-definition-of-ready.md +0 -27
- package/plugins/lisa-copilot/rules/eager/automation-runbook-contract.md +0 -92
- package/plugins/lisa-copilot/rules/eager/bdd-e2e-coverage.md +0 -51
- package/plugins/lisa-copilot/rules/eager/blocker-containment.md +0 -53
- package/plugins/lisa-copilot/rules/eager/claim-archaeology.md +0 -37
- package/plugins/lisa-copilot/rules/eager/claim-evidence-mapping.md +0 -78
- package/plugins/lisa-copilot/rules/eager/claim-time-guards.md +0 -32
- package/plugins/lisa-copilot/rules/eager/control-reachability.md +0 -39
- package/plugins/lisa-copilot/rules/eager/convergent-review.md +0 -24
- package/plugins/lisa-copilot/rules/eager/credential-substrate-precedence.md +0 -54
- package/plugins/lisa-copilot/rules/eager/dependency-decision-records.md +0 -32
- package/plugins/lisa-copilot/rules/eager/dependency-internalization-kit.md +0 -42
- package/plugins/lisa-copilot/rules/eager/dependency-trust-classes.md +0 -43
- package/plugins/lisa-copilot/rules/eager/deployed-state-readback.md +0 -47
- package/plugins/lisa-copilot/rules/eager/derived-branch-plan.md +0 -47
- package/plugins/lisa-copilot/rules/eager/design-source-of-truth.md +0 -38
- package/plugins/lisa-copilot/rules/eager/design-value-binding.md +0 -98
- package/plugins/lisa-copilot/rules/eager/documentation-source-paths.md +0 -13
- package/plugins/lisa-copilot/rules/eager/factory-model.md +0 -41
- package/plugins/lisa-copilot/rules/eager/leaf-only-lifecycle.md +0 -70
- package/plugins/lisa-copilot/rules/eager/observability-audit.md +0 -15
- package/plugins/lisa-copilot/rules/eager/prd-definition-of-ready.md +0 -32
- package/plugins/lisa-copilot/rules/eager/prd-lifecycle-rollup.md +0 -31
- package/plugins/lisa-copilot/rules/eager/pre-flight-autofill.md +0 -84
- package/plugins/lisa-copilot/rules/eager/project-learnings.md +0 -22
- package/plugins/lisa-copilot/rules/eager/promotion-contract.md +0 -18
- package/plugins/lisa-copilot/rules/eager/readiness-rubric.md +0 -58
- package/plugins/lisa-copilot/rules/eager/ready-role-filing.md +0 -29
- package/plugins/lisa-copilot/rules/eager/rejection-detection.md +0 -64
- package/plugins/lisa-copilot/rules/eager/repo-scope-split.md +0 -43
- package/plugins/lisa-copilot/rules/eager/reset-seed-coverage.md +0 -50
- package/plugins/lisa-copilot/rules/eager/usage-accounting.md +0 -33
- package/plugins/lisa-copilot/rules/eager/work-item-definition-of-ready.md +0 -27
- package/plugins/lisa-cursor/rules/automation-runbook-contract.mdc +0 -97
- package/plugins/lisa-cursor/rules/bdd-e2e-coverage.mdc +0 -56
- package/plugins/lisa-cursor/rules/blocker-containment.mdc +0 -58
- package/plugins/lisa-cursor/rules/claim-archaeology.mdc +0 -42
- package/plugins/lisa-cursor/rules/claim-evidence-mapping.mdc +0 -83
- package/plugins/lisa-cursor/rules/claim-time-guards.mdc +0 -37
- package/plugins/lisa-cursor/rules/control-reachability.mdc +0 -44
- package/plugins/lisa-cursor/rules/convergent-review.mdc +0 -29
- package/plugins/lisa-cursor/rules/credential-substrate-precedence.mdc +0 -59
- package/plugins/lisa-cursor/rules/dependency-decision-records.mdc +0 -37
- package/plugins/lisa-cursor/rules/dependency-internalization-kit.mdc +0 -47
- package/plugins/lisa-cursor/rules/dependency-trust-classes.mdc +0 -48
- package/plugins/lisa-cursor/rules/deployed-state-readback.mdc +0 -52
- package/plugins/lisa-cursor/rules/derived-branch-plan.mdc +0 -52
- package/plugins/lisa-cursor/rules/design-source-of-truth.mdc +0 -43
- package/plugins/lisa-cursor/rules/design-value-binding.mdc +0 -103
- package/plugins/lisa-cursor/rules/documentation-source-paths.mdc +0 -18
- package/plugins/lisa-cursor/rules/factory-model.mdc +0 -46
- package/plugins/lisa-cursor/rules/leaf-only-lifecycle.mdc +0 -75
- package/plugins/lisa-cursor/rules/observability-audit.mdc +0 -20
- package/plugins/lisa-cursor/rules/prd-definition-of-ready.mdc +0 -37
- package/plugins/lisa-cursor/rules/prd-lifecycle-rollup.mdc +0 -36
- package/plugins/lisa-cursor/rules/pre-flight-autofill.mdc +0 -89
- package/plugins/lisa-cursor/rules/project-learnings.mdc +0 -27
- package/plugins/lisa-cursor/rules/promotion-contract.mdc +0 -23
- package/plugins/lisa-cursor/rules/readiness-rubric.mdc +0 -63
- package/plugins/lisa-cursor/rules/ready-role-filing.mdc +0 -34
- package/plugins/lisa-cursor/rules/rejection-detection.mdc +0 -69
- package/plugins/lisa-cursor/rules/repo-scope-split.mdc +0 -48
- package/plugins/lisa-cursor/rules/reset-seed-coverage.mdc +0 -55
- package/plugins/lisa-cursor/rules/usage-accounting.mdc +0 -38
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready.mdc +0 -32
- package/plugins/src/base/rules/eager/automation-runbook-contract.md +0 -92
- package/plugins/src/base/rules/eager/bdd-e2e-coverage.md +0 -51
- package/plugins/src/base/rules/eager/blocker-containment.md +0 -53
- package/plugins/src/base/rules/eager/claim-archaeology.md +0 -37
- package/plugins/src/base/rules/eager/claim-evidence-mapping.md +0 -78
- package/plugins/src/base/rules/eager/claim-time-guards.md +0 -32
- package/plugins/src/base/rules/eager/control-reachability.md +0 -39
- package/plugins/src/base/rules/eager/convergent-review.md +0 -24
- package/plugins/src/base/rules/eager/credential-substrate-precedence.md +0 -54
- package/plugins/src/base/rules/eager/dependency-decision-records.md +0 -32
- package/plugins/src/base/rules/eager/dependency-internalization-kit.md +0 -42
- package/plugins/src/base/rules/eager/dependency-trust-classes.md +0 -43
- package/plugins/src/base/rules/eager/deployed-state-readback.md +0 -47
- package/plugins/src/base/rules/eager/derived-branch-plan.md +0 -47
- package/plugins/src/base/rules/eager/design-source-of-truth.md +0 -38
- package/plugins/src/base/rules/eager/design-value-binding.md +0 -98
- package/plugins/src/base/rules/eager/documentation-source-paths.md +0 -13
- package/plugins/src/base/rules/eager/factory-model.md +0 -41
- package/plugins/src/base/rules/eager/leaf-only-lifecycle.md +0 -70
- package/plugins/src/base/rules/eager/observability-audit.md +0 -15
- package/plugins/src/base/rules/eager/prd-definition-of-ready.md +0 -32
- package/plugins/src/base/rules/eager/prd-lifecycle-rollup.md +0 -31
- package/plugins/src/base/rules/eager/pre-flight-autofill.md +0 -84
- package/plugins/src/base/rules/eager/project-learnings.md +0 -22
- package/plugins/src/base/rules/eager/promotion-contract.md +0 -18
- package/plugins/src/base/rules/eager/readiness-rubric.md +0 -58
- package/plugins/src/base/rules/eager/ready-role-filing.md +0 -29
- package/plugins/src/base/rules/eager/rejection-detection.md +0 -64
- package/plugins/src/base/rules/eager/repo-scope-split.md +0 -43
- package/plugins/src/base/rules/eager/reset-seed-coverage.md +0 -50
- package/plugins/src/base/rules/eager/usage-accounting.md +0 -33
- package/plugins/src/base/rules/eager/work-item-definition-of-ready.md +0 -27
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# BDD Behavior Contract & E2E Coverage (load-bearing)
|
|
2
|
-
|
|
3
|
-
**Every frontend work item ships its behavior as Gherkin scenarios with stable IDs, and seals each required scenario-platform obligation with aligned e2e automation in the project's configured runner for that platform.** A frontend change that adds no scenario, or a required scenario-platform obligation with neither a mapped test nor a dated waiver, is a contract violation.
|
|
4
|
-
|
|
5
|
-
**One vendor-neutral contract, cited by** `lisa-research`, `lisa-acceptance-criteria`, `lisa-task-decomposition`, `lisa-test-strategy`, `lisa-tdd-implementation`, `lisa-implement`, `lisa-codify-verification`, `lisa-verification-lifecycle`, `lisa-spec-conformance`, and `lisa-verify` (the `leaf-only-lifecycle` / `repo-scope-split` precedent: one shared slug, never divergent per-skill prose).
|
|
6
|
-
|
|
7
|
-
## Membership
|
|
8
|
-
|
|
9
|
-
Membership is **surface, not repo name or ticket label**: a work item is frontend-type the moment it adds or changes something a user can observe — a screen, route, component, interaction, visual state, empty/error/loading state, navigation path, or copy a user reads. It applies on every platform the project ships. Backend-only, infrastructure, docs, tooling, and refactors with no user-observable delta are out; a refactor that changes what the user sees is in.
|
|
10
|
-
|
|
11
|
-
## The contract lives in the repo
|
|
12
|
-
|
|
13
|
-
Default locations (a project that already has an equivalent contract keeps its own paths and records them in `.lisa.config.json`):
|
|
14
|
-
|
|
15
|
-
| Artifact | Default path | What it is |
|
|
16
|
-
|---|---|---|
|
|
17
|
-
| Scenarios | `bdd/features/*.feature` | Gherkin, the product-level behavior contract |
|
|
18
|
-
| Coverage map | `bdd/coverage-map.json` | scenario → runner/platform/file/evidence mappings, plus waivers, per-runner test-discovery roots, and exclusions |
|
|
19
|
-
| Generated matrix | `docs/bdd-scenario-matrix.md` | regenerated, never hand-edited |
|
|
20
|
-
| Burndown | `docs/e2e-bdd-coverage.md` | current coverage per platform |
|
|
21
|
-
|
|
22
|
-
## Scenario shape
|
|
23
|
-
|
|
24
|
-
Every scenario carries **one stable `@BDD-<DOMAIN>-<NNN>` ID**, the platforms it requires (`@web`, `@ios`, `@android`, … as the project declares them), provenance (design node, ratified decision), and a tracker tag tying it to the work item that introduced or changed it. IDs are never renumbered or reused: behavior that stays user-observably the same keeps its ID through a rewrite; genuinely different behavior gets a new ID and the old one is marked `@superseded`.
|
|
25
|
-
|
|
26
|
-
Lifecycle tag, exactly one or none:
|
|
27
|
-
|
|
28
|
-
- **no tag** — ratified and required; it is in the coverage denominator.
|
|
29
|
-
- **`@blocked`** — specified but awaiting a decision or dependency; the *product* does not do this yet.
|
|
30
|
-
- **`@reference-only`** — intentionally not authoritative.
|
|
31
|
-
- **`@superseded`** — replaced by a ratified rule or a newer scenario.
|
|
32
|
-
|
|
33
|
-
The last three are out of the denominator. Deleting a committed capability to make coverage look better is a violation; mark it, do not drop it.
|
|
34
|
-
|
|
35
|
-
## What seals a scenario
|
|
36
|
-
|
|
37
|
-
Coverage is counted per **required scenario-platform obligation**, and an obligation is sealed only by **aligned e2e automation in the project's configured runner for that platform** — the runner→platform mapping is project configuration (e.g. a web runner covering `web`, a device runner covering `ios`/`android`), never named by this contract. A unit test, a route boot, a screenshot, a fixture, an API test, or a passing test on a *different* platform never seals an obligation: they prove something else. Each mapping names the runner, the platforms, the file, and the evidence string inside it, so the gate can prove the mapping still resolves.
|
|
38
|
-
|
|
39
|
-
**The gate reads in both directions.** It also walks the test roots the project declares per runner, so an e2e test that exists but that the contract never mentions is a violation — map it to a scenario, or record an exclusion stating why it aligns to no product behavior. Roots are configuration: a subflow or helper directory left undeclared is structurally invisible, which is the same failure as having no gate for it.
|
|
40
|
-
|
|
41
|
-
**Waivers are dated IOUs, never coverage.** An obligation whose runner genuinely cannot decide it today (no camera on the simulator, no request interception, no provisioned provider credential) is recorded with scenario, platforms, reason, and `recordedAt`. It leaves the denominator; it never counts as covered, and nothing about it asserts the behavior works. A waiver is invalid — and fails the gate — when it names a nonexistent scenario or an undeclared platform, covers an already-excluded scenario, or masks a scenario-platform that already has a mapping. Revisit a waiver when its reason dies.
|
|
42
|
-
|
|
43
|
-
## Definition of done
|
|
44
|
-
|
|
45
|
-
A frontend work item is not done until: (1) every user-facing behavior it adds or changes exists as a Gherkin scenario with a stable ID in the project's behavior contract, traceable to the work item; (2) every required scenario-platform obligation it introduces is either mapped to aligned e2e automation in the project's configured runner for that platform, or carries a dated waiver naming the runner limitation; and (3) the coverage gate passes and the generated matrix and burndown are regenerated and committed in the same PR. **Missing BDD coverage is a verification failure, not a warning** — it blocks completion exactly as a `PARTIAL` spec-conformance verdict does, and it is never demoted to "optional", "if cheap", or a follow-up without a linked build-ready ticket created before merge.
|
|
46
|
-
|
|
47
|
-
## Bootstrap and degradation
|
|
48
|
-
|
|
49
|
-
A project with no `bdd/` contract yet is not exempt — the first frontend work item scaffolds the minimum (features dir, coverage map with the project's detected runner→platform mapping, gate + matrix scripts) and covers **its own** behavior. It never backfills the whole app: pre-existing uncovered behavior is recorded as burndown, not treated as this item's blocker. If no e2e runner exists for a required platform at all, record the checked locations and the absence as the reason, exactly as the regression-spec absence path in `verification` does — a silent skip is never one of the exits.
|
|
50
|
-
|
|
51
|
-
Full contract (coverage-map schema, gate semantics, bootstrap procedure, per-flow obligations): [reference/bdd-e2e-coverage.md](../reference/bdd-e2e-coverage.md).
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# Blocker Containment (load-bearing)
|
|
2
|
-
|
|
3
|
-
**An `is blocked by` dependency is cleared by one fact only: the blocker's code is present on the branch the dependent will be built from.** A lifecycle status name — `done`, `on-stg`, `on-dev`, `code-review`, or any configured equivalent — is never that fact. It is a label that correlates with the fact in a single-trunk workflow and comes apart from it in a promotion workflow.
|
|
4
|
-
|
|
5
|
-
**One vendor-neutral contract, cited by** `lisa-repair-intake` (Class A dependency clearing), `lisa-intake-explain` (dependency hold gate), and `lisa-ticket-triage` (Phase 1.5 open-blocker gate) — the `leaf-only-lifecycle` / `repo-scope-split` precedent: one shared slug, never divergent per-consumer prose.
|
|
6
|
-
|
|
7
|
-
## Why a status name is the wrong test
|
|
8
|
-
|
|
9
|
-
Where promotion runs `dev → staging → main`, `main` is the **trailing** branch. A blocker at `On Stg` is merged to `staging` and absent from `main`, so a dependent that builds from `main` does not have it. A blocker in `Code Review` is merged to nothing at all. The two failures are symmetric and both are live in the tree:
|
|
10
|
-
|
|
11
|
-
- Test too **loosely** (any env-staged `done` clears) and a dependent is dispatched into work whose prerequisite is not on its branch. Nothing goes red; the item moves to `ready`, which is indistinguishable from a repair that worked.
|
|
12
|
-
- Test too **strictly** (only the production terminal clears) and every dependent strands behind a blocker that is already merged where it matters.
|
|
13
|
-
|
|
14
|
-
Containment is the one predicate that gets both right, because it asks the question the status name was standing in for.
|
|
15
|
-
|
|
16
|
-
## The predicate
|
|
17
|
-
|
|
18
|
-
1. **Resolve the dependent's base branch.** Take the dependent's `## Target Backend Environment` and map that exact key forward through `.lisa.config.json` `deploy.branches`, per `derived-branch-plan` and `config-resolution`. **Never read the rendered `Branch Plan` section as input** — `derived-branch-plan` forbids it; a surface needing the base branch derives it again.
|
|
19
|
-
2. **Resolve the blocker's merge commit** — the commit that landed the blocker's PR.
|
|
20
|
-
3. **Test ancestry on the remote:** is that commit an ancestor of the resolved base branch (`git merge-base --is-ancestor <sha> origin/<base>`)?
|
|
21
|
-
4. **Cleared** iff the answer is yes. Otherwise **still blocking**.
|
|
22
|
-
|
|
23
|
-
## Fail closed
|
|
24
|
-
|
|
25
|
-
**Never fail open on an unresolvable ancestry check.** Any step that cannot be positively resolved leaves the dependency **blocking**, and the run record says which step failed:
|
|
26
|
-
|
|
27
|
-
- no linked PR, or a PR that is not merged;
|
|
28
|
-
- the blocker is inaccessible (deleted, cross-org, permission denied) — containment across repositories is not defined;
|
|
29
|
-
- the dependent's environment is not derivable, maps non-uniquely, or maps to a branch absent from the remote;
|
|
30
|
-
- the ancestry query itself fails.
|
|
31
|
-
|
|
32
|
-
A false negative (left blocked) costs a cycle and is visible. A false positive (dispatched into a missing prerequisite) is invisible and surfaces days later as work begun before its dependency existed. Prefer the visible failure.
|
|
33
|
-
|
|
34
|
-
## The one carve-out: a blocker with no code
|
|
35
|
-
|
|
36
|
-
A dependency need not deliver code. A blocker **closed as completed** that positively declares no code deliverable — `Target Backend Environment: None — no runtime behavior change` (doc-only / config-only / type-only), no linked PR, no merge commit — is **cleared**, because there is no artifact whose location could matter.
|
|
37
|
-
|
|
38
|
-
This requires a **positive determination**, never an absence. "I could not find a PR" is fail-closed under the rule above; "the item declares it ships no code" is this carve-out. Collapsing the two turns the carve-out into a universal bypass.
|
|
39
|
-
|
|
40
|
-
## Ancestry answers a development question, not a deployment one
|
|
41
|
-
|
|
42
|
-
This rule requires an ancestry test. `deployed-state-readback` says ancestry is **never** evidence of deployment. Both are correct — they answer different questions:
|
|
43
|
-
|
|
44
|
-
- **Here:** *is the blocker's code on the branch I will build from?* An `is blocked by` link is a **development** dependency, satisfied once the code is on your base branch. Ancestry is the right test, and waiting for production strands dependents.
|
|
45
|
-
- **There:** *is this thing live?* A commit can be an ancestor of the default branch and never have shipped — a discarded pipeline execution leaves it merged and undeployed. Ancestry is provably insufficient.
|
|
46
|
-
|
|
47
|
-
Never use this rule's test to answer a "does it already exist in the environment?" question.
|
|
48
|
-
|
|
49
|
-
## Human override
|
|
50
|
-
|
|
51
|
-
A human statement on the item that the dependency is satisfied clears it, and outranks a failed containment check. Record it as the reason in the run record. This is the escape hatch for cross-repo and untracked dependencies, and it is the only one. An automation may never synthesize one on its own behalf.
|
|
52
|
-
|
|
53
|
-
Full contract (resolution steps, per-vendor merge-commit bindings, the fail-closed reason-key table, the no-code carve-out's three conditions, and what this rule deliberately does not do): [reference/blocker-containment.md](../reference/blocker-containment.md).
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Claim-Time Archaeology (load-bearing)
|
|
2
|
-
|
|
3
|
-
Lisa lifecycles are one-way — a done issue never reopens, so a residual failure comes back as a **new** issue with no visible link to the issue that shipped it. Archaeology recovers that link at claim time: the claiming agent learns it is working on round 2 of a past failure, and what specifically went wrong the first time.
|
|
4
|
-
|
|
5
|
-
**One vendor-neutral contract, cited by every build-intake arm** (the `leaf-only-lifecycle` / `repo-scope-split` / `rejection-detection` precedent: one shared slug, never three divergent implementations).
|
|
6
|
-
|
|
7
|
-
## When it runs
|
|
8
|
-
|
|
9
|
-
In build-intake step 3b, **AFTER the rejection-detection classification and BEFORE the relabel/transition** `$READY → $CLAIMED`. Rejection detection runs first; its classification is an **input** to archaeology — a detected `rejection-reclaim` passes straight through, never re-derived.
|
|
10
|
-
|
|
11
|
-
## Classify the claimed item
|
|
12
|
-
|
|
13
|
-
Return exactly one of:
|
|
14
|
-
|
|
15
|
-
- **`rejection-reclaim`** — taken directly from the `rejection-detection` result. Reuse it; do not re-derive.
|
|
16
|
-
- **`retry-of-done-issue`** — an ancestry signal names a closed done issue whose shipped work this issue exists to fix.
|
|
17
|
-
- **`fresh`** — no ancestor found, signals weak/inconclusive, budget exhausted, or the pass errored. The default and the safe degrade.
|
|
18
|
-
|
|
19
|
-
## Ancestry signals (summary — full bindings in the reference body)
|
|
20
|
-
|
|
21
|
-
1. **Tracker metadata** — the typed relations the read skills already parse (Blocks / Blocked by / Relates to / Duplicates / Cloned from, `closingIssuesReferences`, cross-references).
|
|
22
|
-
2. **Text similarity** — tracker search primitives over recently-closed issues touching the same implicated files, ranked by title/label overlap. Lexical only; no embedding machinery exists.
|
|
23
|
-
3. **Git ancestry** — deterministic `git log --follow` / `git blame` / merge-commit queries yielding a parseable `{file, sha, pr, date}` result. Never delegate this to the prose-report `git-history-analyzer` agent.
|
|
24
|
-
|
|
25
|
-
## Learning-loop exclusion (scan-side)
|
|
26
|
-
|
|
27
|
-
An artifact this flow produced is **never** an ancestor. Exclude anything carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]`, `[lisa-rejection-candidate]`, or `[lisa-archaeology-candidate]` markers, or the `learning:needs-triage` label.
|
|
28
|
-
|
|
29
|
-
## Cost budget — never block the claim
|
|
30
|
-
|
|
31
|
-
The pass runs inside a hard budget: `.lisa.config.json` `archaeology.maxSteps` (default **8** tracker/git queries; optional `archaeology.maxSeconds`). Budget exhausted, weak signals, or an exception → classify `fresh` and proceed. Archaeology is a bonus layered on the claim; it **never blocks the claim**. Exceeding the budget degrades to `fresh` — a normal outcome, not an error.
|
|
32
|
-
|
|
33
|
-
## On `retry-of-done-issue`
|
|
34
|
-
|
|
35
|
-
Reconstruct what the ancestor's PR shipped (merged PR, review threads, evidence comments) and derive **ONE** candidate learning citing the **delta** between what was done and what this issue proves was needed — routed to `lisa-persist-learning` exactly like the rejection-reflection path. Fallback when that skill is absent: a comment with a visible prose line plus `<!-- [lisa-archaeology-candidate] key=<issue>::<ancestor> -->` (marker-dedupe; re-claims produce no duplicate). `fresh` → no candidate, zero comments.
|
|
36
|
-
|
|
37
|
-
Full contract (signal bindings, classification table, candidate derivation, budget mechanics): [reference/claim-archaeology.md](../reference/claim-archaeology.md).
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Claim → Evidence Mapping Contract (load-bearing)
|
|
2
|
-
|
|
3
|
-
**Every claim about the software declares a boundary, and a claim is established only by evidence of
|
|
4
|
-
a kind that reaches that boundary.** Unit tests are a quality prerequisite, not a claim discharger:
|
|
5
|
-
a passing unit `test-run-log` reaches only the **code-unit** boundary. Citing evidence whose *kind*
|
|
6
|
-
does not reach a claim's *boundary* — a unit log offered as proof that a button works in the browser
|
|
7
|
-
— is a contract violation, and a review-rejectable defect.
|
|
8
|
-
|
|
9
|
-
## The claim-boundary taxonomy (closed set)
|
|
10
|
-
|
|
11
|
-
Every claim binds to exactly one boundary, and each boundary is discharged only by evidence of the
|
|
12
|
-
kind(s) that reach it. The boundaries and their establishing evidence kinds are seeded verbatim from
|
|
13
|
-
the `verification` rule's artifact-type taxonomy — no new vocabulary is invented here:
|
|
14
|
-
|
|
15
|
-
- **`code-unit`** — pure-logic behavior in isolation → unit `test-run-log`. Reaches no boundary
|
|
16
|
-
below it.
|
|
17
|
-
- **`browser`** — user-visible UI behavior → `screenshot`, `recording`. **Never** a unit
|
|
18
|
-
`test-run-log`.
|
|
19
|
-
- **`http-api`** — request/response contract → `http-transcript`. **Never** a unit `test-run-log`.
|
|
20
|
-
- **`cli`** — command behavior → `cli-output`.
|
|
21
|
-
- **`data`** — persisted state → `db-query-output`, `state-dump`.
|
|
22
|
-
- **`deploy-health`** — a healthy running deployment → `deploy-log`. **Never** any pre-deploy
|
|
23
|
-
artifact.
|
|
24
|
-
- **`performance`** — latency/throughput/frame timing → `perf-trace` (with methodology).
|
|
25
|
-
- **`standards-compat`** — conformance to an external standard → `cli-output` / `test-run-log` from
|
|
26
|
-
the compat runner.
|
|
27
|
-
|
|
28
|
-
## The core inequality
|
|
29
|
-
|
|
30
|
-
**unit tests ≠ browser behavior ≠ healthy deployment ≠ standards compatibility.** Each is a distinct
|
|
31
|
-
boundary; evidence at one never discharges a claim at another. "Verified" must name the boundary its
|
|
32
|
-
evidence actually reaches, so a report read at the gate states its own limits (`factory-model`
|
|
33
|
-
rule 5).
|
|
34
|
-
|
|
35
|
-
## Field names (fixed here, made executable later)
|
|
36
|
-
|
|
37
|
-
A claim carries three fields — `claim_id`, `boundary`, and `required_evidence_kinds` — named here so
|
|
38
|
-
every downstream surface uses one spelling. This ticket only writes the contract down; the schema and
|
|
39
|
-
gate that make these fields executable ship with **BCE-2 (#1836)** — do not assume that surface is
|
|
40
|
-
present in this branch.
|
|
41
|
-
|
|
42
|
-
## Security buckets (conservative by default)
|
|
43
|
-
|
|
44
|
-
A security finding is **proven** only with both a reproducer of a reaching kind and a bounded
|
|
45
|
-
impact/exploitability statement; missing either, it renders **unproven** with its reason and **stays
|
|
46
|
-
in the security section** — never auto-demoted to maintenance. The label is one policy point,
|
|
47
|
-
`security.review.unprovenBucket` (default `security-unproven`); the procedure lives in the
|
|
48
|
-
`lisa-security-review` skill.
|
|
49
|
-
|
|
50
|
-
## Artifact identity (pinned, never assumed)
|
|
51
|
-
|
|
52
|
-
A claim applies only to the artifact its evidence was collected against. Every verdict pins
|
|
53
|
-
`artifact.head_sha` — the commit the run observed — and every evidence entry pins the
|
|
54
|
-
`artifact_head_sha` in force when it was captured, its `sha256` content digest, and `captured_at`.
|
|
55
|
-
Evidence collected on a pre-merge head is valid for the merge commit **only** when that head is a
|
|
56
|
-
parent of the merge, per the ancestry + deploy-run definition of "what shipped" that
|
|
57
|
-
`lisa-drive-pr-to-merge` already owns — cite it, never write a second one. A mismatched SHA or a
|
|
58
|
-
recomputed digest that disagrees fails loudly, naming both SHAs / the evidence id, and verification
|
|
59
|
-
re-runs against the merged head before completion is declared. Full definition: the reference body.
|
|
60
|
-
|
|
61
|
-
## Not established (required, never omitted)
|
|
62
|
-
|
|
63
|
-
A claim with no reaching evidence is **Not established**, and every report says so out loud. Each
|
|
64
|
-
evidence comment and verdict carries a `Not established` section listing what was *not* proved —
|
|
65
|
-
boundaries not exercised, environments not tested, behavior consciously out of scope. It is never
|
|
66
|
-
omitted and never blank: with nothing outstanding it still renders `None outstanding — reviewed`, and
|
|
67
|
-
`not_established_reviewed` attests the list was reviewed even when the list itself is empty. This
|
|
68
|
-
generalizes the required, never-empty `Known limits` field of `lisa-improve-harness`. Full definition
|
|
69
|
-
and operator-voice exemplars: the reference body.
|
|
70
|
-
|
|
71
|
-
## No behavior change; degrade, never block
|
|
72
|
-
|
|
73
|
-
This rule is documentation, not a gate: it changes no schema, no skill, and no check. Where a later
|
|
74
|
-
surface it names is not yet installed, cite the boundary a claim reaches and continue — never block
|
|
75
|
-
on the absent surface. Read the contract to someone who has never seen Lisa and they should be able
|
|
76
|
-
to say why a unit-test log does not prove a button works in the browser.
|
|
77
|
-
|
|
78
|
-
Full contract (claim-boundary taxonomy, core inequality, worked example, field names): [reference/claim-evidence-mapping.md](../reference/claim-evidence-mapping.md).
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Claim-Time Guards (load-bearing)
|
|
2
|
-
|
|
3
|
-
Two guards that run when build-intake claims a ready item, both from failures observed in the fleet: an item built twice because it had already shipped, and a loop burning cycles re-attempting an item that was never going to succeed.
|
|
4
|
-
|
|
5
|
-
**One vendor-neutral contract, cited by every build-intake arm** (the `leaf-only-lifecycle` / `repo-scope-split` / `rejection-detection` / `claim-archaeology` precedent: one shared slug, never three divergent implementations).
|
|
6
|
-
|
|
7
|
-
## When they run
|
|
8
|
-
|
|
9
|
-
Inside build-intake step `3b`, after `rejection-detection` and `claim-archaeology`, still before the `$READY → $CLAIMED` transition. The `two-failed-attempts` valve runs first — it is cheaper and it is the only pass that can stop the claim outright.
|
|
10
|
-
|
|
11
|
-
## `already-implemented` → `verify-and-close`
|
|
12
|
-
|
|
13
|
-
A ready item may already be implemented, because agents ship without transitioning. Before implementing, probe for the item's **own** key:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
git log --all --grep "<key>" --format='%H %aI %s' -n 10
|
|
17
|
-
gh pr list --repo <org>/<repo> --state all --search "<key>" --json number,state,mergedAt,url
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
On a hit, do not build it twice — switch `3c` to **verify-and-close**: verify what shipped against this item's acceptance criteria, post evidence naming the shipping PR/commit, then run the ordinary `3d` transition and rollup. If the shipped change only partially satisfies the criteria, implement the remaining gap instead of closing.
|
|
21
|
-
|
|
22
|
-
Distinct from `claim-archaeology` (finds a **different** ancestor issue) and from `DUPLICATE_ALREADY_FIXED` (a **different** canonical issue). Unreadable history degrades to "no hit"; the guard never blocks the claim.
|
|
23
|
-
|
|
24
|
-
## `two-failed-attempts` → blocked
|
|
25
|
-
|
|
26
|
-
Every non-success terminal outcome records a durable marker on the item — a visible line plus `<!-- [lisa-build-attempt] n=<N> outcome=<outcome> measures=<work|machine> -->` (match on the marker, never the title). A cron holds no memory between cycles, so the item carries the count.
|
|
27
|
-
|
|
28
|
-
**Two filters before counting.** Count a marker only when it is `measures=work` — a run terminated by a signal, or whose outcome was `recovery-required`, measures the box and not the item — and only when it was recorded **after the item most recently entered the ready lane**. An unlabelled marker counts as `work`; an unreadable lane history falls back to counting every `work` marker. Both defaults keep the valve shut rather than open (CodySwannGT/lisa#3854).
|
|
29
|
-
|
|
30
|
-
With **two or more** surviving markers at claim time: do not claim. Move the item to the configured `blocked` role (resolved per `config-resolution`, never hardcoded), post an operator-readable comment naming both attempts and what a human must decide or supply, and **stop the loop** for this cycle. Recovery is deliberate and it works — a human or a `lisa-repair-intake` cycle with the blocker provably cleared returns it to the queue, which ends the period the old markers describe without deleting them.
|
|
31
|
-
|
|
32
|
-
Full contract (probe bounds, verify-and-close steps, partial-hit handling, marker mechanics): [reference/claim-time-guards.md](../reference/claim-time-guards.md).
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Control Reachability — A Prescribed Control Must Reach the Changed Path (load-bearing)
|
|
2
|
-
|
|
3
|
-
A work item may hand the implementer a falsifiable stopping rule: *"make the change; `<named existing test>` must go red. If it still passes, the fix did nothing."* That is good practice — it replaces eyeballing with an observation. It is also **only valid if that test's fixture exercises the path the change touches.**
|
|
4
|
-
|
|
5
|
-
When it does not, the test stays green **for a reason unrelated to the change**: execution never reached the changed code. The stopping rule then instructs the implementer to revert a correct fix, and the more faithfully the implementer follows the item, the more reliably it happens. Measured once in the portfolio: a pinned test's fixture omitted the field the fix read, execution fell through to a default branch, the test stayed green, and the fix had worked.
|
|
6
|
-
|
|
7
|
-
This is the specification-side sibling of `falsifiable-checks`, which governs a check *you authored*. Here the check is **prescribed by the work item** and the defect is in the prose, not the code.
|
|
8
|
-
|
|
9
|
-
## Authoring obligation — checkable, not advisory
|
|
10
|
-
|
|
11
|
-
**A work item that names an existing test as a red-before-green control must say what makes that test reach the code the change touches.** Naming the code is not enough; the item names the *input*.
|
|
12
|
-
|
|
13
|
-
Declare it in `## Validation Journey`, one marker per named control:
|
|
14
|
-
|
|
15
|
-
```text
|
|
16
|
-
[CONTROL: <test-identifier> | reaches: <input-or-field>]
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
- `<test-identifier>` — non-empty: the test file path, the test name, or both.
|
|
20
|
-
- `reaches:` — the literal key, then the **input, field, fixture key, argument, or state** that carries execution into the changed code. `reaches: the fix` and `reaches: the changed code` restate the assertion and do not satisfy it.
|
|
21
|
-
|
|
22
|
-
Enforced by gate **S20** in `lisa-jira-validate-ticket`, `lisa-github-validate-issue`, and `lisa-linear-validate-issue`; rendered by `lisa-jira-write-ticket`, `lisa-github-write-issue`, and `lisa-linear-write-issue`; read at claim time by `lisa-ticket-triage` and `lisa-implement`.
|
|
23
|
-
|
|
24
|
-
**An item that prescribes no existing-test control is exempt.** Introducing a *new* test carries no reachability obligation — the gate is `N/A` and the item is never reported as incomplete on this basis.
|
|
25
|
-
|
|
26
|
-
## Implementer obligation — a green control is two facts, not one
|
|
27
|
-
|
|
28
|
-
`lisa-tdd-implementation` and `lisa-reproduce-bug` bind this arm: **when a prescribed control does not change state as the item predicted, stop. Establish which cause holds before acting on the stopping rule.**
|
|
29
|
-
|
|
30
|
-
| Cause | Correct action |
|
|
31
|
-
|---|---|
|
|
32
|
-
| The change had no effect on behaviour | Revisit the change |
|
|
33
|
-
| The fixture never reaches the changed code path | Fix or extend the control — do **not** revert |
|
|
34
|
-
|
|
35
|
-
They demand opposite actions, and the cheaper reading ("the fix did nothing") wins by default when nothing forces the distinction. So force it: **prove reachability by execution, never by reading the fixture.** Put a temporary throw, log line, or counter in the changed code and run that one test; or run coverage scoped to it and read whether the changed lines were hit. Reasoning that the fixture *looks like* it reaches the path is the same move `falsifiable-checks` rejects as "mentally reverting".
|
|
36
|
-
|
|
37
|
-
**Never revert on an unexplained green.** An unexplained control is a blocked observation, not a verdict — and a reachable-but-still-green control is the only form of it that licenses revisiting the change.
|
|
38
|
-
|
|
39
|
-
Full prose, the worked instance, and the reporting template: [reference/control-reachability.md](../reference/control-reachability.md).
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Convergent Review
|
|
2
|
-
|
|
3
|
-
Review exists to get correct work merged, not to keep a PR in review orbit.
|
|
4
|
-
|
|
5
|
-
- Block only concrete correctness, security, data-loss, or contract-violation
|
|
6
|
-
failures. Lint-owned style, formatting, taste, and speculative improvements
|
|
7
|
-
are non-blocking unless the work item or repository rules make them release
|
|
8
|
-
criteria.
|
|
9
|
-
- Every finding must state severity, blocking yes/no, a concrete failure
|
|
10
|
-
scenario, evidence, and the smallest actionable fix — plus
|
|
11
|
-
`invariant_violated` (the property at risk) and `machinery_to_remove` (what
|
|
12
|
-
becomes deletable, or `none`), required for `readiness-rubric` findings and
|
|
13
|
-
recommended elsewhere.
|
|
14
|
-
- Present findings highest-consequence first, by severity and blast radius, not
|
|
15
|
-
by discovery order. Report section order stays stable.
|
|
16
|
-
- A blocking finding without a concrete failure scenario is malformed by
|
|
17
|
-
contract; downgrade it to non-blocking and ask for evidence.
|
|
18
|
-
- Resolve each finding as `fixed`, `deferred`, or `pushed-back`. If the reviewer
|
|
19
|
-
cannot refute a pushback with fresh evidence, the author's disposition stands.
|
|
20
|
-
- After suggestion implementation completes and gates pass, review does not
|
|
21
|
-
reopen absent new evidence: a relevant new commit, a failed gate, a newly cited
|
|
22
|
-
failure scenario, or a scope change.
|
|
23
|
-
- Irreconcilable blocking disagreement becomes a blocked work item with both
|
|
24
|
-
positions summarized for the operator, not an endless loop.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Credential-Substrate Precedence (load-bearing)
|
|
2
|
-
|
|
3
|
-
**When more than one substrate can reach an external system, the configured credentials
|
|
4
|
-
provider's token/CLI path goes first and the interactive MCP is the fallback — and
|
|
5
|
-
identity-match verification is mandatory on every substrate, at every tier.**
|
|
6
|
-
|
|
7
|
-
**One shared, vendor-neutral contract cited by every `*-access` skill** (the
|
|
8
|
-
`leaf-only-lifecycle` / `repo-scope-split` precedent: one shared slug, never divergent
|
|
9
|
-
per-skill prose). An access skill states its per-vendor mechanics — which token, which
|
|
10
|
-
CLI, which identity anchor — and cites this rule for the ordering. It never restates,
|
|
11
|
-
narrows, or locally overrides that ordering.
|
|
12
|
-
|
|
13
|
-
Settled by decision record `2026-08-12-credential-substrate-precedence` (D6), and
|
|
14
|
-
settled in the `settled-decisions` sense: re-arguing MCP-first inside a skill is out of
|
|
15
|
-
scope for that skill's work.
|
|
16
|
-
|
|
17
|
-
## The ladder
|
|
18
|
-
|
|
19
|
-
1. **Tier 1 — configured-provider substrate.** The token or CLI path fed by
|
|
20
|
-
`lisa-secrets-access`, chosen whenever its bootstrap credential is available **and**
|
|
21
|
-
the resolved substrate identity-matches the configured tenant/workspace/site.
|
|
22
|
-
`lisa-secrets-access` is the single chokepoint — never read an OS keychain a second
|
|
23
|
-
time. The two legacy OS-keychain rungs that remain (`lisa-atlassian-access`,
|
|
24
|
-
`lisa-notion-access`) are a dated migration ramp with a **removal date of
|
|
25
|
-
2026-11-01**, not a standing exemption; no new access skill may add one.
|
|
26
|
-
2. **Tier 2 — interactive MCP**, used only when tier 1 is *genuinely* unavailable:
|
|
27
|
-
no bootstrap, no adapter for the operation (per-operation, not per-session), or a
|
|
28
|
-
provider outage. "The MCP happens to be authenticated" and "tier 1 is slower" are
|
|
29
|
-
**not** qualifying reasons.
|
|
30
|
-
3. **Tier 3 — loud, actionable failure** naming the exact credential to set and the exact
|
|
31
|
-
remediation. Never silently no-op, never blind-retry a failed or absent substrate,
|
|
32
|
-
never fall through to one that failed identity-match.
|
|
33
|
-
|
|
34
|
-
## Identity-match is mandatory on every substrate
|
|
35
|
-
|
|
36
|
-
Verified **in both directions** before any operation: the substrate must claim the
|
|
37
|
-
configured tenant, and the configured tenant must be one the substrate can reach. A
|
|
38
|
-
substrate authenticated as a different account is **skipped, never used — including at
|
|
39
|
-
tier 1**. A credential is not an identity claim; the identity claim is what the provider
|
|
40
|
-
says when asked. Skipping the check because "the user obviously meant this workspace" is
|
|
41
|
-
forbidden.
|
|
42
|
-
|
|
43
|
-
## Mutating operations: fallback is guarded, never routine
|
|
44
|
-
|
|
45
|
-
Falling back to an ambient-bound substrate for a **write** requires: switch profile and
|
|
46
|
-
assert identity immediately before the write → write → re-read the affected objects →
|
|
47
|
-
assert the tenant **from the response** (self URL host, cloudId in the path, response
|
|
48
|
-
metadata), not from the pre-flight check → on mismatch, stop, report a cross-tenant
|
|
49
|
-
hazard, and best-effort roll back. A successful pre-flight switch is not sufficient:
|
|
50
|
-
another process can mutate global state between the check and the write.
|
|
51
|
-
|
|
52
|
-
Full contract (per-vendor identity anchors and probes, the provider-first rationale, MCP's
|
|
53
|
-
first-class fallback role, consequences, and the checklist for adding or editing an access
|
|
54
|
-
skill): [reference/credential-substrate-precedence.md](../reference/credential-substrate-precedence.md).
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Dependency Decisions (load-bearing)
|
|
2
|
-
|
|
3
|
-
Material dependencies are recorded as decisions, not lockfile trivia. The
|
|
4
|
-
governed record is `.lisa/DEPENDENCY_DECISIONS.md`, seeded once by `lisa apply`
|
|
5
|
-
from the `all/create-only` template surface and never overwritten afterward.
|
|
6
|
-
|
|
7
|
-
A *material* dependency is one that owns a user-visible capability or would cost
|
|
8
|
-
real time to replace. Each record entry must name, in this order: why we keep it
|
|
9
|
-
in plain language, what it is, its owned capability, trust basis, exposure,
|
|
10
|
-
replacement cost, detection evidence, owner/review cadence, and last-reviewed
|
|
11
|
-
date. Field labels lead with the operator's question and keep the technical term
|
|
12
|
-
in parentheses. "Why we keep it" comes first on purpose — an entry that opens
|
|
13
|
-
with a version range opens with the trivia the record exists to replace.
|
|
14
|
-
|
|
15
|
-
When you add, upgrade across a major version, or remove a material dependency,
|
|
16
|
-
update its entry in the same change. When you cannot name the detection evidence
|
|
17
|
-
that would fail if an update broke the owned capability, write "nothing would
|
|
18
|
-
catch it" rather than inventing a check — the gap is the finding.
|
|
19
|
-
|
|
20
|
-
Write every entry so a non-technical operator can tell why the dependency is
|
|
21
|
-
kept and what evidence would detect a bad update. Lead with the outcome it
|
|
22
|
-
protects, not the mechanism.
|
|
23
|
-
|
|
24
|
-
Entries are repeatable blocks appended under `## Records`, so a seeding script
|
|
25
|
-
can add one without rewriting the file. An honest gap is written as
|
|
26
|
-
`_Not yet decided_` — never left blank.
|
|
27
|
-
|
|
28
|
-
Escalate, rather than just recording, when detection evidence says "nothing
|
|
29
|
-
would catch it", when `Last reviewed` predates the dependency's last major
|
|
30
|
-
upgrade, or when the trust basis names no maintainer or owner.
|
|
31
|
-
|
|
32
|
-
Full prose: [reference/dependency-decision-records.md](../reference/dependency-decision-records.md).
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Dependency Internalization Kit (load-bearing)
|
|
2
|
-
|
|
3
|
-
When a work item **removes, replaces, or internalizes** a material dependency,
|
|
4
|
-
ownership of that capability moves in-house. The risk moves with it: we stop
|
|
5
|
-
trusting an upstream project and start having to **prove we rebuilt the
|
|
6
|
-
capability correctly**. The confidence-rebuild kit is the standing acceptance
|
|
7
|
-
bar for that proof, so internalization work never has to guess at its own tests.
|
|
8
|
-
|
|
9
|
-
The kit is seven required evidence types. Each leads with the plain question it
|
|
10
|
-
answers:
|
|
11
|
-
|
|
12
|
-
1. **Real corpus** — did we test it on real inputs, not toy examples?
|
|
13
|
-
2. **Conformance fixtures** — does the new code do what the dependency did?
|
|
14
|
-
3. **Negative fixtures** — does it still reject what it should reject?
|
|
15
|
-
4. **Coverage as a gap detector** — what behavior is still untested?
|
|
16
|
-
5. **Provenance and license review** — where did this code come from, and are we
|
|
17
|
-
allowed to use it?
|
|
18
|
-
6. **Migration and update plan** — how do existing call sites move, and how does
|
|
19
|
-
the new code stay current?
|
|
20
|
-
7. **Rollback or replacement criteria** — what would make us go back, and to
|
|
21
|
-
what?
|
|
22
|
-
|
|
23
|
-
All seven are required. A partial kit is the finding: dropping the corpus leaves
|
|
24
|
-
a toy-example pass, dropping negative fixtures leaves code that accepts garbage,
|
|
25
|
-
and dropping rollback criteria leaves nobody able to say the internalization
|
|
26
|
-
failed.
|
|
27
|
-
|
|
28
|
-
**When the kit applies:** ownership moves in-house — the dependency is removed,
|
|
29
|
-
replaced with our own code, vendored, or forked and maintained by us. That is
|
|
30
|
-
usually a move into the `thin wrapper suitable for in-house ownership` trust
|
|
31
|
-
class, or out of the dependency set entirely.
|
|
32
|
-
|
|
33
|
-
**When the kit does NOT apply:** a routine version bump of a trusted dependency
|
|
34
|
-
**within its existing trust class**. Ownership does not move, so there is no
|
|
35
|
-
rebuilt capability to prove. Applying the kit there is over-application — it
|
|
36
|
-
buys no confidence and makes ordinary upkeep expensive.
|
|
37
|
-
|
|
38
|
-
A work item that removes, replaces, or internalizes a material dependency
|
|
39
|
-
inherits all seven criteria unless it explicitly justifies why the dependency is
|
|
40
|
-
**non-material**. Silence is not a justification.
|
|
41
|
-
|
|
42
|
-
Full prose: [reference/dependency-internalization-kit.md](../reference/dependency-internalization-kit.md).
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Dependency Trust Classes (load-bearing)
|
|
2
|
-
|
|
3
|
-
Every material dependency belongs to exactly one **trust class**. The class is
|
|
4
|
-
the answer to the decision record's "Why we believe it's safe (trust basis)"
|
|
5
|
-
field in `.lisa/DEPENDENCY_DECISIONS.md` — it says why we can trust a *kind* of
|
|
6
|
-
dependency, so each entry does not re-argue trust from scratch.
|
|
7
|
-
|
|
8
|
-
The six classes, from most to least self-evidently trustworthy:
|
|
9
|
-
|
|
10
|
-
1. **Mature ecosystem primitive** — so widely used that other people hit the
|
|
11
|
-
breakage first.
|
|
12
|
-
2. **Fast-moving standard implementation** — the standard implementation of
|
|
13
|
-
something we refuse to own, but it changes faster than we do.
|
|
14
|
-
3. **Build/development tool** — never runs in production; a bad update costs
|
|
15
|
-
developer time, not users.
|
|
16
|
-
4. **Runtime-critical service client** — reaches users, data, or money directly,
|
|
17
|
-
so it is the least trusted regardless of how mature it is.
|
|
18
|
-
5. **Thin wrapper suitable for in-house ownership** — small enough that we could
|
|
19
|
-
own the code, so the question is whether it earns its keep, not whether it is
|
|
20
|
-
safe.
|
|
21
|
-
6. **Temporary/experimental dependency** — not trusted at all; admitted on a
|
|
22
|
-
clock with a written expiry date and a named exit.
|
|
23
|
-
|
|
24
|
-
Each class fixes five review inputs: capability owner, update cadence, detection
|
|
25
|
-
evidence, replacement-cost threshold, and whether product/human ratification is
|
|
26
|
-
required. Higher exposure and lower trust buy stronger evidence and mandatory
|
|
27
|
-
ratification, not weaker: runtime-critical service clients always need human
|
|
28
|
-
ratification to add or major-upgrade; temporary dependencies need it to live
|
|
29
|
-
past their expiry date; thin wrappers need it to be kept rather than in-housed.
|
|
30
|
-
|
|
31
|
-
Every class also names one **human-review trigger** — the observable event that
|
|
32
|
-
takes the decision away from the agent. A class definition that cannot say what
|
|
33
|
-
would trigger human review is not finished.
|
|
34
|
-
|
|
35
|
-
A work item that proposes adding a new material dependency must name the
|
|
36
|
-
dependency's trust class and update its `.lisa/DEPENDENCY_DECISIONS.md` entry in
|
|
37
|
-
the same change. A proposal with no named class is not ready to build.
|
|
38
|
-
|
|
39
|
-
Reclassify — do not quietly re-trust — when a dependency's exposure changes: a
|
|
40
|
-
build tool that gains runtime reach or reads CI credentials becomes a
|
|
41
|
-
runtime-critical service client, and its stronger requirements apply immediately.
|
|
42
|
-
|
|
43
|
-
Full prose: [reference/dependency-trust-classes.md](../reference/dependency-trust-classes.md).
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Deployed-State Readback (load-bearing)
|
|
2
|
-
|
|
3
|
-
**A build ticket asserts that something is missing from a running system. That assertion must come from reading the running system, never from reading the source.** Source tells you what the code says; only the environment tells you what is deployed. A ticket authored from source alone specifies work against a system it has not observed.
|
|
4
|
-
|
|
5
|
-
**One vendor-neutral contract, cited by** the Phase 2 research step of `lisa-notion-to-tracker`, `lisa-github-to-tracker`, `lisa-linear-to-tracker`, and `lisa-confluence-to-tracker` (the `leaf-only-lifecycle` / `repo-scope-split` precedent: one shared slug, never four divergent forks).
|
|
6
|
-
|
|
7
|
-
## The waiver this replaces was scoped to the wrong axis
|
|
8
|
-
|
|
9
|
-
Phase 2 has two halves — codebase research and a live product walkthrough — and the walkthrough was waived for work that is *"purely backend with no user-visible surface."*
|
|
10
|
-
|
|
11
|
-
"Is it user-facing?" is a question about the **observation method**: browser, API client, or resource readback. It was being used to answer a different question — **"should we observe live state at all?"** Backend, infrastructure, CI, and dependency work all have live state. It simply is not visible through a browser. Waiving the browser step correctly, and live grounding along with it, is what let tickets be authored for work that had already shipped.
|
|
12
|
-
|
|
13
|
-
So the skip is **not** "no live check". It is **a different probe**.
|
|
14
|
-
|
|
15
|
-
## Routing
|
|
16
|
-
|
|
17
|
-
| The work | Probe |
|
|
18
|
-
|---|---|
|
|
19
|
-
| User-facing surface | `lisa-product-walkthrough` against the running app |
|
|
20
|
-
| HTTP / API backend | Call the deployed endpoint and read the response |
|
|
21
|
-
| Infrastructure / IaC | **Describe the deployed resource in the account** |
|
|
22
|
-
| CI / workflow config | Read the config the running pipeline actually used |
|
|
23
|
-
| Dependency / package pin | Read the **installed** artifact, and the registry |
|
|
24
|
-
| Screen that does not exist yet | No probe; record why |
|
|
25
|
-
|
|
26
|
-
## What is never accepted as evidence of deployment
|
|
27
|
-
|
|
28
|
-
**Git ancestry, a merge check, and `cdk synth` are not deployment evidence.** A commit can be an ancestor of the default branch and never have shipped: a pipeline running `executionMode: SUPERSEDED` discards queued executions, so an intermediate commit's deploy is silently dropped. `git log`, a merge check, and a synth all report "present" while the environment does not have it.
|
|
29
|
-
|
|
30
|
-
Read the deployed thing back. Do not infer it from anything upstream of the deploy.
|
|
31
|
-
|
|
32
|
-
**This does not conflict with `blocker-containment`, which requires exactly the ancestry test this rule rejects.** The two answer different questions and both are right:
|
|
33
|
-
|
|
34
|
-
- `blocker-containment` asks a **development** question — *is the blocker's code on the branch I will build from?* Ancestry is the correct and sufficient test.
|
|
35
|
-
- This rule asks a **deployment** question — *is this live?* Ancestry is provably insufficient, per the discarded-execution case above.
|
|
36
|
-
|
|
37
|
-
Neither may be used to answer the other's question.
|
|
38
|
-
|
|
39
|
-
## An unanswerable probe is not a "no"
|
|
40
|
-
|
|
41
|
-
If the deployed state cannot be read back — no credentials, no such environment, the resource is not addressable — **record that the check could not be performed**. Absence of evidence is not evidence of absence, and defaulting an unreadable probe to "not deployed" reintroduces the whole defect while appearing to satisfy the rule.
|
|
42
|
-
|
|
43
|
-
## Record the readback on the ticket
|
|
44
|
-
|
|
45
|
-
Write what was probed, how, and what came back. Claim-time triage then inherits evidence instead of re-deriving it from source — which is the same mistake one stage later.
|
|
46
|
-
|
|
47
|
-
Full contract (per-lane probe definitions, the discarded-execution hazard, the doctrine this applies, and worked examples): [reference/deployed-state-readback.md](../reference/deployed-state-readback.md).
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Derived Branch Plan (load-bearing)
|
|
2
|
-
|
|
3
|
-
**Every applicable leaf work item shows the branch it will be built from and the branch its PR lands in, as a generated `Branch Plan` section — and that section is derived data, not a second authority.** The authority is `## Target Backend Environment` resolved forward through `.lisa.config.json` `deploy.branches`. A work item that displays branches nobody can trace back to that mapping, or a flow that reads the displayed branches instead of recomputing them, is a contract violation.
|
|
4
|
-
|
|
5
|
-
**One vendor-neutral contract, cited by** `lisa-jira-write-ticket`, `lisa-github-write-issue`, `lisa-linear-write-issue`, `lisa-jira-validate-ticket`, `lisa-github-validate-issue`, `lisa-linear-validate-issue`, and `lisa-implement` (the `leaf-only-lifecycle` / `repo-scope-split` precedent: one shared slug, never divergent per-vendor prose).
|
|
6
|
-
|
|
7
|
-
## Why derived, and not two branch fields
|
|
8
|
-
|
|
9
|
-
The operator need is real: reading a ticket should not require resolving a config file to learn where the work starts and where it lands. But Lisa already owns that fact. Adding independent literal branch fields would create **a second source of truth that can drift** — and the failure mode of that drift is not a cosmetic mismatch, it is code silently shipped to the wrong environment. So the branches are rendered for humans and recomputed for machines. The rendered branches are **never read as input** by any flow, at any phase — a surface that needs the base branch derives it again from the environment.
|
|
10
|
-
|
|
11
|
-
## The rendered section
|
|
12
|
-
|
|
13
|
-
Exactly three lines, identical across vendors (`h2. Branch Plan` in JIRA wiki markup, `## Branch Plan` in GitHub/Linear markdown):
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
Branch from: <branch>
|
|
17
|
-
PR into: <branch>
|
|
18
|
-
Derived from: Target Backend Environment <env> via .lisa.config.json deploy.branches
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
The third line is the **derivation provenance line**. It is what marks the section machine-authored: a `Branch Plan` without it is treated as hand-authored, and hand-authored branches are never obeyed.
|
|
22
|
-
|
|
23
|
-
`Branch from` and `PR into` name the **same branch by construction** — implementation checks the feature branch out of `origin/<base>` and targets the PR back into `<base>`. A plan naming two different branches is malformed and fails validation. (A fix that genuinely lands on one branch and must reach another travels as a linked follow-up work item with its own branch plan, never as a divergence inside one plan.)
|
|
24
|
-
|
|
25
|
-
## Derivation
|
|
26
|
-
|
|
27
|
-
1. Resolve the environment under the existing `Target Backend Environment` grammar (`config-resolution`, `pre-flight-autofill`) — human-confirmed wins, then validated `Inferred:`, then `Assumption:`.
|
|
28
|
-
2. Map that exact configured key forward through `deploy.branches`. The key must map uniquely and the mapped branch must exist on the remote.
|
|
29
|
-
3. Render both fields to that branch plus the provenance line.
|
|
30
|
-
|
|
31
|
-
A missing or **ambiguous** mapping, a key that is **not unique**, or a branch absent from the remote **stops** the flow — exactly as `lisa-implement` already stops. **Never default independently to `main`, to the remote default branch, or to any other branch** to keep a write from failing. The remote default is a legitimate input only through the `Assumption:` fallback the environment grammar already defines, and it must be recorded as such.
|
|
32
|
-
|
|
33
|
-
## Exemption
|
|
34
|
-
|
|
35
|
-
Work that declares no runtime behavior change — `runtime_behavior_change = false`, i.e. doc-only, config-only, and type-only items — has nothing to derive from and **requires no branch plan**. Its **absence is correct**, not a missing section, and no gate may demand one. Containers (an Epic, or a Story/Spike still holding child work) are exempt for the same reason: they are not built directly.
|
|
36
|
-
|
|
37
|
-
But the exemption is **declared, never inferred from an absent section**. `Target Backend Environment` is rendered on every leaf, because it is where `runtime_behavior_change` is persisted: an exact configured environment key means `true`, `None — no runtime behavior change: doc-only` (or `config-only` / `type-only`) means `false`, `None — container: state rolls up from children` marks a container, and an **absent section is underivable — never `false`**. On a live item the stored declaration beats any caller assertion, and a contradicting assertion fails S8 rather than being believed. Absence used to be the only signal, which meant the flag every one of S8, S11, S14, and S19 turns on could not be checked against the item at all.
|
|
38
|
-
|
|
39
|
-
The exemption is one-way. Exempt work that *carries* a branch plan fails validation — branches asserted for work that declared it has no runtime target are hand-authored by definition, which is the second-authority failure this rule exists to prevent.
|
|
40
|
-
|
|
41
|
-
## Conflict, legacy, and drift
|
|
42
|
-
|
|
43
|
-
- **Conflict** — a present plan that disagrees with the recomputed plan **fails**; the flow never silently picks a side. The remediation is always to correct the environment, never to edit the branches.
|
|
44
|
-
- **Legacy** — an item written before this rule has no plan. At claim time the implementing agent derives it, **writes the assumption onto the item as a comment**, and proceeds. Never a silent guess.
|
|
45
|
-
- **Drift** — config changed after the plan was rendered. Current config wins; the stale plan is re-rendered and never followed.
|
|
46
|
-
|
|
47
|
-
Full derivation table, gate S19 semantics, the claim-time arms, and the vendor rendering details: [reference/derived-branch-plan.md](../reference/derived-branch-plan.md).
|