@codyswann/lisa 8.8.0 → 8.10.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/README.md +21 -0
- package/all/copy-overwrite/scripts/lib/completion-authorization.mjs +54 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-adapters.mjs +59 -0
- package/all/copy-overwrite/scripts/lib/completion-proof-markdown.mjs +1 -1
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lib/release-switch.d.mts +91 -0
- package/all/copy-overwrite/scripts/lib/release-switch.mjs +1049 -0
- package/all/copy-overwrite/scripts/lisa-release-switch.mjs +203 -0
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +18 -5
- package/dist/cli/doctor-release-setting.d.ts +8 -0
- package/dist/cli/doctor-release-setting.d.ts.map +1 -0
- package/dist/cli/doctor-release-setting.js +71 -0
- package/dist/cli/doctor-release-setting.js.map +1 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +2 -0
- package/dist/cli/doctor.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +118 -4
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +107 -44
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/lisa/.codex-plugin/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +69 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa/rules/reference/config-resolution.md +5 -2
- package/plugins/lisa/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa/rules/reference/ready-role-filing.md +55 -5
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/lisa/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/lisa/scripts/ready-queue-order.mjs +69 -0
- package/plugins/lisa/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/lisa/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/lisa-agy/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/lisa-agy/scripts/ready-queue-order.mjs +69 -0
- package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa-agy/skills/lisa-verify/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-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +5 -2
- package/plugins/lisa-copilot/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +55 -5
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/lisa-copilot/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/lisa-copilot/scripts/ready-queue-order.mjs +69 -0
- package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +48 -0
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +7 -6
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +5 -2
- package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +2 -2
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +55 -5
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +31 -0
- package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/lisa-cursor/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/lisa-cursor/scripts/ready-queue-order.mjs +69 -0
- package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +4 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/lisa-devin/rules/eager/coding-philosophy.md +7 -6
- package/plugins/lisa-devin/rules/reference/coding-philosophy.md +48 -0
- package/plugins/lisa-devin/rules/reference/config-resolution.md +5 -2
- package/plugins/lisa-devin/rules/reference/intent-routing.md +2 -2
- package/plugins/lisa-devin/rules/reference/ready-role-filing.md +55 -5
- package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/lisa-devin/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/lisa-devin/scripts/ready-queue-order.mjs +69 -0
- package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/lisa-devin/skills/lisa-track/SKILL.md +13 -1
- package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa-devin/skills/lisa-verify/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-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/inject-resolved-config.mjs +235 -3
- package/plugins/src/base/rules/eager/coding-philosophy.md +7 -6
- package/plugins/src/base/rules/reference/coding-philosophy.md +48 -0
- package/plugins/src/base/rules/reference/config-resolution.md +5 -2
- package/plugins/src/base/rules/reference/intent-routing.md +2 -2
- package/plugins/src/base/rules/reference/ready-role-filing.md +55 -5
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +31 -0
- package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +195 -23
- package/plugins/src/base/scripts/operator-id-kinds.mjs +41 -2
- package/plugins/src/base/scripts/ready-queue-order.mjs +69 -0
- package/plugins/src/base/skills/lisa-doctor/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
- package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +27 -1
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +34 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +34 -1
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +26 -0
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +34 -1
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +11 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/config.mjs +28 -4
- package/plugins/src/base/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +1 -0
- package/plugins/src/base/skills/lisa-track/SKILL.md +13 -1
- package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/src/base/skills/lisa-verify/SKILL.md +4 -1
- package/scripts/lisa-release-switch.mjs +9 -0
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +2 -0
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { isAbsolute, resolve, sep } from "node:path";
|
|
20
|
+
import { parseIdEntry } from "../../../scripts/operator-id-kinds.mjs";
|
|
20
21
|
|
|
21
22
|
import {
|
|
22
23
|
mergeConfigLayers as mergeLayers,
|
|
@@ -164,16 +165,39 @@ export function resolveSessionManagerConfig(globalConfig, localConfig) {
|
|
|
164
165
|
* `trustedAuthorIds`, so a project that never declared it behaves exactly as
|
|
165
166
|
* before. Neither set means nobody, and a hold fails closed. A declared
|
|
166
167
|
* value that is not a list (an explicit null) also means nobody: it never
|
|
167
|
-
* falls back, so a malformed release list cannot widen who may release.
|
|
168
|
+
* falls back, so a malformed release list cannot widen who may release. A
|
|
169
|
+
* `relay:` entry never comes through the fallback.
|
|
168
170
|
* @param {{ trustedAuthorIds?: string[] | null, trustedReleaseIds?: string[] | null } | null | undefined} config
|
|
169
171
|
* - Resolved block (only its two trust lists are read)
|
|
172
|
+
* @param {{ trustedReleaseIds?: unknown } | null | undefined} [committed]
|
|
173
|
+
* - The same block as committed in `.lisa.config.json`, before any local
|
|
174
|
+
* override; the only place a `relay:` entry is taken from
|
|
170
175
|
* @returns {string[]} The configured release entries (unparsed)
|
|
171
176
|
*/
|
|
172
|
-
export function trustedReleaseEntries(config) {
|
|
177
|
+
export function trustedReleaseEntries(config, committed) {
|
|
173
178
|
const release = config?.trustedReleaseIds;
|
|
174
|
-
if (release !== undefined)
|
|
179
|
+
if (release !== undefined) {
|
|
180
|
+
// A relay is an opt-in the project makes in review. One named only in a
|
|
181
|
+
// developer's local, git-ignored override was never reviewed, so a
|
|
182
|
+
// `relay:` entry is kept only when the committed block lists the same
|
|
183
|
+
// entry. A caller that passes no committed block gets no relay.
|
|
184
|
+
const reviewed = new Set(
|
|
185
|
+
Array.isArray(committed?.trustedReleaseIds)
|
|
186
|
+
? committed.trustedReleaseIds
|
|
187
|
+
: []
|
|
188
|
+
);
|
|
189
|
+
return (Array.isArray(release) ? release : []).filter(
|
|
190
|
+
entry => parseIdEntry(entry)?.kind !== "relay" || reviewed.has(entry)
|
|
191
|
+
);
|
|
192
|
+
}
|
|
175
193
|
const authors = config?.trustedAuthorIds;
|
|
176
|
-
|
|
194
|
+
// A `relay:` entry is opt-in to one thing, relaying a hold release, and it
|
|
195
|
+
// belongs only in `trustedReleaseIds` (CodySwannGT/lisa#5190). Carrying one
|
|
196
|
+
// over from the author list would let a list written for a different
|
|
197
|
+
// question grant it, so the fallback drops it; validation says where it goes.
|
|
198
|
+
return (Array.isArray(authors) ? authors : []).filter(
|
|
199
|
+
entry => parseIdEntry(entry)?.kind !== "relay"
|
|
200
|
+
);
|
|
177
201
|
}
|
|
178
202
|
|
|
179
203
|
/**
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import {
|
|
25
25
|
idComparableValues,
|
|
26
|
+
releaseComparableValues,
|
|
26
27
|
parseIdEntries,
|
|
27
28
|
} from "../../../scripts/operator-id-kinds.mjs";
|
|
28
29
|
import { holdDigest, judgeHold } from "./orphan-holds.mjs";
|
|
@@ -100,7 +101,7 @@ function resolveOptions(opts = {}) {
|
|
|
100
101
|
me: idOrNull(opts.me),
|
|
101
102
|
operators: parseIdEntries(opts.operatorIds),
|
|
102
103
|
},
|
|
103
|
-
trustedHumanActorIds:
|
|
104
|
+
trustedHumanActorIds: releaseComparableValues(opts.trustedAuthorIds),
|
|
104
105
|
humanNeededLabel: opts.humanNeededLabel,
|
|
105
106
|
humanOnly: opts.humanOnly,
|
|
106
107
|
readyLabel: opts.readyLabel,
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from "../../../scripts/ready-queue-order.mjs";
|
|
13
13
|
import {
|
|
14
14
|
idComparableValues,
|
|
15
|
+
releaseComparableValues,
|
|
15
16
|
parseIdEntries,
|
|
16
17
|
} from "../../../scripts/operator-id-kinds.mjs";
|
|
17
18
|
import { resolveRole } from "../../../scripts/resolve-lifecycle-role.mjs";
|
|
@@ -45,7 +46,9 @@ export function githubReleaserIds(ctx, entries) {
|
|
|
45
46
|
)
|
|
46
47
|
.map(entry => entry.value.toLowerCase())
|
|
47
48
|
);
|
|
48
|
-
|
|
49
|
+
// Relay accounts are named by account id only (`relay:<id>`), so they need
|
|
50
|
+
// no login lookup and pass straight through to the release check.
|
|
51
|
+
const ids = releaseComparableValues(entries);
|
|
49
52
|
const env = scrubWorkerEnv(ctx.env);
|
|
50
53
|
for (const login of logins) {
|
|
51
54
|
const endpoint = `users/${login}`;
|
|
@@ -231,6 +231,7 @@ Map each task to the skills needed to complete it. This enables delegation to sp
|
|
|
231
231
|
- Any task proposing a new material dependency names its trust class, states that class's required evidence and whether human ratification is needed (never, when `dependencies.humanSignOff` is `"none"`), and updates `.lisa/DEPENDENCY_DECISIONS.md` in the same change (see step 4.5) -- a proposed material dependency with no named class is not ready to build
|
|
232
232
|
- Any task removing, replacing, or internalizing a material dependency carries all seven confidence-rebuild kit criteria -- corpus, conformance, negative fixtures, coverage-as-gap-detector, provenance/license, migration/update plan, and rollback criteria (see step 4.6) -- unless it explicitly justifies why the dependency is non-material; a within-trust-class version bump does not carry the kit
|
|
233
233
|
- Keep tasks ordered so that no task references work that has not been completed by a prior task
|
|
234
|
+
- Keep every shared branch promotable after each task merges (`coding-philosophy`, "Always Promotable"; skip when the project sets `release.liveUsers: false`). Give every runtime-changing leaf its `## Release Switch` line. Ask of each one: if this were promoted to production right now, would a user see something unfinished or unproven? If no, it is `Live — complete and proven at merge` and gets no switch: bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are. The question decides, not the kind of work. If yes, which is the usual case for a feature or a fix split across several leaves, every leaf of that feature is `Switched off — <the same switch-name>; removed by <the last leaf's reference>`, and the last leaf's scope includes turning the feature on and removing the switch. The declaration needs that leaf's real reference, so create the last leaf first, or write `removed by this item` on it and fill its reference into the others once it exists. Never add a switch to work that is complete and proven when it merges
|
|
234
235
|
- Flag any task that requires access, permissions, or external input not yet available
|
|
235
236
|
- Prefer more small tasks over fewer large tasks -- smaller tasks are easier to verify and less risky to fail
|
|
236
237
|
- Do not create placeholder or "TODO" tasks -- every task should describe concrete work
|
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
Establish the tracked-work invariant before any durable project mutation. Discussion and read-only orientation may proceed without this skill; code, configuration, documentation, research artifacts, plans, investigation findings, tests, commits, and pull requests may not.
|
|
24
34
|
|
|
@@ -143,6 +153,7 @@ The permission to load Write does not authorize other files or bypass the guard.
|
|
|
143
153
|
Exit 1 because a present estimate is malformed → re-render it the same way.
|
|
144
154
|
|
|
145
155
|
An estimate failure never blocks the work. The item is already claimed, and stopping here would strand it in the claimed state with no trace of why. When a check exits 2, calibration or rendering fails, or the written body does not read back with a passing claim-phase check, continue to step 5 with `estimate_outcome: failed` and `estimate_failure: <reason>`, and post one comment on the item through `lisa-tracker-write` that a non-technical reader can follow, for example: "Lisa could not record a cost estimate for this item before starting work, because the project's estimate settings could not be read. The work is going ahead without one. What it actually cost will still be recorded when it is done." Name the real reason in plain words, not an exit code. Record `estimate_outcome: present|written|failed|n/a` in the result.
|
|
156
|
+
**Release switch before any work** (`work-item-definition-of-ready`, gate S22; `coding-philosophy`, "Always Promotable"). Run `node scripts/lisa-release-switch.mjs check --existing true --body-file <file>` on the same stored body. `PASS`, or `N/A` because the item changes no runtime behavior or the project sets `release.liveUsers: false` → continue. `N/A` with a repair note (a runtime-changing item with no `## Release Switch` section) → decide it now, yourself, with one question: if this were promoted to production right now, would a user see something unfinished or unproven? If no, the work is live (bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are; the question decides, not the kind of work); if yes, it is switched off behind a switch you name, removed by this item unless a later item of the same feature removes it. A new name must appear nowhere else in the repository: `node scripts/lisa-release-switch.mjs references --switch <name>` must report none. Render it with `node scripts/lisa-release-switch.mjs render --mode live --body-file <file>`, or `--mode off --switch <name> --removed-by "this item"` when this item removes the switch, or `--removed-by <work-item ref>` naming the later item when that one does (writing `this item` on an earlier item would make it look like the remover, and the remover is the item that turns the feature on). Write the body back through `lisa-tracker-write` (update), and re-run the check on the stored body. `FAIL` (a malformed declaration) → re-render it the same way; if the check still fails because other text follows the declaration in that section, move that text into another section. Never ask a person which form applies. For work you judged live, a failure to write the declaration never blocks the work: continue with `release_switch_outcome: failed` and post one plain-English comment saying why. For work you judged switched off, the declaration must be on the item before any work starts, because without it the item is treated as live and the done gate cannot hold its switch: a declaration that cannot be put on the item (the tracker write fails, or `render` refuses the body) stops the flow here. Keep the claim and the binding so the item stays attributable, post one plain-English comment saying the declaration could not be written and why, record `release_switch_outcome: failed`, and report it as a tracker write failure. Record `release_switch_outcome: present|written|failed|n/a` in the result. Where the script is absent (a host that has not received it yet), record `n/a`.
|
|
146
157
|
5. **Ignore guard before any write.** A host can receive these skills before its shipped `.gitignore` entry, so prove the path is ignored first, from the worktree root: `git check-ignore -q .lisa/work-item-context.md || printf '%s\n' '.lisa/work-item-context.md' >> "$(git rev-parse --git-common-dir)/info/exclude"`, then re-run `git check-ignore -q .lisa/work-item-context.md`. If it is still not ignored, stop and report — do not write the bundle. If an `.easignore` exists and `grep -qxF '.lisa/work-item-context.md' .easignore` fails, stop and report instead of writing: EAS uploads read `.easignore`, which is derived from `.gitignore`, not from `info/exclude`. Keep the preclaim full vendor context and requirements header intact. Append the complete post-claim live read without trimming earlier body/comments, then refresh that same header through the preflight owner's `--prepare` mode and recheck task readiness. The live vendor read bundle stays unedited, every comment included, in the worktree-local, git-ignored `<worktree root>/.lisa/work-item-context.md`, then return this structured result (the file is the context; a summary in the reply never substitutes for it). When a `caller_bundle_path` was forwarded for this work item and the file already exists, do not overwrite it — it holds the caller's bundle (or a previous run's) and is left for the resolver step. Otherwise this is the first write; when `lisa-implement` forwarded a `caller_bundle_path`, its resolver step then keeps the bundle at that path as the base and appends only what this live read adds, and in every case finishes it with the `## Comment inventory` section:
|
|
147
158
|
|
|
148
159
|
```text
|
|
@@ -156,6 +167,7 @@ The permission to load Write does not authorize other files or bypass the guard.
|
|
|
156
167
|
binding_outcome: verified|skipped-human-gate|skipped-ci-loop
|
|
157
168
|
estimate_outcome: present|written|failed|n/a
|
|
158
169
|
estimate_failure: <plain-English reason>|null
|
|
170
|
+
release_switch_outcome: present|written|failed|n/a
|
|
159
171
|
route: implement|ci-rework pr=<n>|blocked pr=<n>
|
|
160
172
|
failing_checks: <comma-separated check names from the marker comment>|none
|
|
161
173
|
head_ref: <the pull request's head branch>|null
|
|
@@ -168,5 +180,5 @@ The permission to load Write does not authorize other files or bypass the guard.
|
|
|
168
180
|
- Branch setup may call `node scripts/lisa-work-item.mjs attach-branch` after the feature branch exists.
|
|
169
181
|
- Keep the binding across ordinary interruptions and blocked outcomes so resumed work remains attributable.
|
|
170
182
|
- 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.
|
|
171
|
-
- 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.
|
|
183
|
+
- 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 (in a project that named a relay, the agent's account may record it for them in the relayed form above). 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.
|
|
172
184
|
- 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.
|
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
Thin dispatcher. Resolves the configured destination tracker and delegates to the matching vendor build-queue scanner.
|
|
24
34
|
|
|
@@ -77,7 +87,7 @@ blocker re-probe carries an absolute human gate: an item carrying the configured
|
|
|
77
87
|
or a `[lisa-human-gate]` marker is never auto-selected, whatever a probe returns.
|
|
78
88
|
|
|
79
89
|
That gate has an inverse, and it is forwarded identically: a hold ends when a
|
|
80
|
-
`[lisa-human-gate-release]` comment naming the same `reason=` is recorded on the item by an authorized human. Every vendor
|
|
90
|
+
`[lisa-human-gate-release]` comment naming the same `reason=` is recorded on the item by an authorized human (or relayed for one by an account the project named as a relay). Every vendor
|
|
81
91
|
scanner passes the item's `comments` into the gate helpers so the discharge is visible, and calls
|
|
82
92
|
`planHumanGateRelease(...)` to take the marker off and put the item back in the queue. **No vendor
|
|
83
93
|
scanner clears a hold by editing the description** — the only body write any of them has is a
|
|
@@ -22,12 +22,15 @@ Execute the **Verify** flow as defined in the `intent-routing` reference rule (r
|
|
|
22
22
|
3. **Push and PR** via `lisa-git-submit-pr`
|
|
23
23
|
4. **PR Watch Loop** — drive the PR to MERGED via `lisa-drive-pr-to-merge`, the single source of truth for clearing every blocker: auto-merge with direct-merge fallback, `BEHIND` re-sync, conflict resolution, failing-check fixes, human + bot review-comment handling with thread resolution (it invokes `lisa-pull-request-review` itself), stale `CHANGES_REQUESTED` dismissal, and post-merge ancestry verification. Do not re-implement the loop or its terminal conditions.
|
|
24
24
|
5. **Merge** — owned by `lisa-drive-pr-to-merge`, including the auto-merge race and zero-deploy-run checks
|
|
25
|
-
6. **Remote verification** — invoke the `lisa-monitor` skill against the target environment **in report-only mode** (`lisa-monitor <env> --report-only`) to confirm the deploy actually works (health endpoints, recent logs/errors, Validation Journey replay if defined). `--report-only` is required here: it keeps the post-deploy check a pure health/audit report and prevents monitor's standalone ticket-filing from creating issues during a verify run.
|
|
25
|
+
6. **Remote verification** — invoke the `lisa-monitor` skill against the target environment **in report-only mode** (`lisa-monitor <env> --report-only`) to confirm the deploy actually works (health endpoints, recent logs/errors, Validation Journey replay if defined). `--report-only` is required here: it keeps the post-deploy check a pure health/audit report and prevents monitor's standalone ticket-filing from creating issues during a verify run. **When the deploy or remote verification fails and the failure is live, revert first** (the "Keep the branch promotable" point below): the revert comes before any coverage or follow-up work, so a failed change is never left active while that work is done. Then, if remote verification surfaced a behavioral gap that the existing codified tests do not guard, invoke `codify-verification` to add coverage and open a follow-up PR.
|
|
26
26
|
- When the Validation Journey is DOM-web, the target is an allowed non-production environment with mutation policy `full`, and `lisa kane probe` succeeds, verification may invoke `lisa-kane-browser`. Import the local evidence pack into Lisa's evidence flow; the Test Manager URL is secondary. Kane does not replace the pre-flight Playwright/Maestro codification gate.
|
|
27
27
|
- When remote verification needs credentials, follow the shared `verification-lifecycle` credential lookup order before declaring them missing: project e2e / Playwright config and fixtures first, then `.lisa.config.local.json` / environment variables, then documented ticket credentials such as a `Sign-in Required` section.
|
|
28
28
|
- Should credentials remain genuinely unavailable after those sources are exhausted, do not complete the item on artifact-only evidence. Post a tracker comment stating what could not be verified and why, transition the work item to the configured blocked state, and apply the configured `needs-human` / `human-review` label, creating it if the tracker supports label creation and it is missing.
|
|
29
29
|
- **Telemetry arrives.** When the change adds or changes instrumentation — logs, metrics, traces, error reporting, analytics events — follow that instrumentation in the code to wherever it sends data: the SDK it initializes, the exporter or transport it configures, the environment variables it reads. Trigger the instrumented path in the target environment and confirm the signal arrived at that destination. Do not assume a vendor; a project may send to several, or to one Lisa has no access skill for. Use the destination's `*-access` skill when one exists, otherwise its CLI or API with credentials resolved through `lisa-secrets-access`. If the destination cannot be reached, that is a missing-access stop: name the destination and the credential, and never report the telemetry as verified.
|
|
30
30
|
- Evidence must explicitly distinguish `verified empirically` from `artifact-only / verification deferred`.
|
|
31
|
+
- **Keep the branch promotable** (`coding-philosophy`, "Always Promotable"; skip when `node scripts/lisa-release-switch.mjs config` reports `"liveUsers": false`). Read the work item's `## Release Switch` declaration.
|
|
32
|
+
- `Switched off — <switch-name>`: verify with the switch **on** outside production (in a single-environment project, locally or for a test account only), and read back that it is **off** in production. Only the item that removes the switch turns the feature on, and only once the whole feature is verified: when the declaration names another item as the remover, verify this item's part and leave the switch off in production. For the removing item, when verification passes, first confirm that the version you verified is what production is running, then turn it on in production yourself, unless the same command reports `"turnOn": "human"` (the project lists `feature-release` in `humanGate.humanOnly`); then say in plain English that the feature is verified and waiting to be turned on, and hold the item at that declared gate with a human-gate reason that names the class, for example `feature-release: turn <switch-name> on in production`. If the command lists a `humanGate.humanOnly` problem, report it and do not turn the feature on. Remove the switch only after it is on in production and healthy, never while verification is failing or the turn-on is waiting at the human gate; the item that removes it is not done while tracked source still references it. When verifying the removal change itself, the switch is on or already gone, so do not look for it off in production: verify that the feature works in production with the switch removed.
|
|
33
|
+
- A failure that is live: `Live — complete and proven at merge` or no declaration, a switched-off change whose failure shows with the switch **off**, any change that broke the deploy, or any failure of a feature whose switch is already **on** in production (turn the switch off again at once, then revert the removal change if it has shipped). If the deploy or remote verification **fails** because of this change, revert the merged change at once (a revert pull request driven to merge through `lisa-drive-pr-to-merge`) and return the work item to the ready queue with the failure evidence. Do not fix it forward in place, and never hold a promotion for it.
|
|
31
34
|
7. **Evidence usage** — before posting, route the generated evidence artifact through `lisa-usage-accounting` so the comment body / PR evidence section / markdown proof carries a direct `lisa-verify` usage entry in the canonical `## Lisa Usage` section. If the originating work item or PRD parentage is known, prefer `record_and_rollup` so ancestor totals refresh in the same pass. If runtime usage is unavailable, still write `source: unavailable` with nullable token/cost fields instead of skipping the row.
|
|
32
35
|
8. **Evidence** — post results to the originating ticket via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot captured through the interactive browser controller per step uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected.
|
|
33
36
|
|
|
@@ -259,6 +259,29 @@ const LOW_CONFIDENCE_VALUES = ["human-triage", "auto-merge"];
|
|
|
259
259
|
/** The mode in force when `humanGate.mode` is absent. */
|
|
260
260
|
const DEFAULT_MODE = HUMAN_GATE_MODE_VALUES[0];
|
|
261
261
|
|
|
262
|
+
/**
|
|
263
|
+
* Whether the project has live users (CodySwannGT/lisa#5188). It decides
|
|
264
|
+
* whether the always-promotable rule applies, so a session must see how it
|
|
265
|
+
* resolved even when the project declares nothing. Absent means `true`; a value
|
|
266
|
+
* that is not a boolean is treated as `true`, the stricter option. Both, and
|
|
267
|
+
* the fallback switch mechanism below, are copied from
|
|
268
|
+
* `all/copy-overwrite/scripts/lib/release-switch.mjs` (not importable from a
|
|
269
|
+
* plugin payload) and pinned against it by this hook's wiring test.
|
|
270
|
+
*/
|
|
271
|
+
const LIVE_USERS_PATH = "release.liveUsers";
|
|
272
|
+
|
|
273
|
+
/** What `release.liveUsers` resolves to when absent or invalid. */
|
|
274
|
+
const DEFAULT_LIVE_USERS = "true";
|
|
275
|
+
|
|
276
|
+
/** The switch mechanism a project names, if any. */
|
|
277
|
+
const SWITCH_MECHANISM_PATH = "release.switch.mechanism";
|
|
278
|
+
|
|
279
|
+
/** The mechanism in force when none is named: a plain configuration value that defaults to off. */
|
|
280
|
+
const DEFAULT_SWITCH_MECHANISM = "config-value";
|
|
281
|
+
|
|
282
|
+
/** The module that owns the `release.*` setting. */
|
|
283
|
+
const RELEASE_OWNER = "all/copy-overwrite/scripts/lib/release-switch.mjs";
|
|
284
|
+
|
|
262
285
|
/**
|
|
263
286
|
* Keys Lisa supplies a built-in value for when a project declares none.
|
|
264
287
|
*
|
|
@@ -315,6 +338,12 @@ export const BUILT_IN_DEFAULTS = [
|
|
|
315
338
|
strict: "default",
|
|
316
339
|
owner: "src/core/project-config-dependencies.ts",
|
|
317
340
|
},
|
|
341
|
+
{ path: LIVE_USERS_PATH, value: DEFAULT_LIVE_USERS, owner: RELEASE_OWNER },
|
|
342
|
+
{
|
|
343
|
+
path: SWITCH_MECHANISM_PATH,
|
|
344
|
+
value: DEFAULT_SWITCH_MECHANISM,
|
|
345
|
+
owner: RELEASE_OWNER,
|
|
346
|
+
},
|
|
318
347
|
];
|
|
319
348
|
|
|
320
349
|
/**
|
|
@@ -341,6 +370,7 @@ const SUBTREE_ORDER = [
|
|
|
341
370
|
"repo",
|
|
342
371
|
"workItem",
|
|
343
372
|
"deploy",
|
|
373
|
+
"release",
|
|
344
374
|
"github",
|
|
345
375
|
"jira",
|
|
346
376
|
"linear",
|
|
@@ -812,12 +842,25 @@ function invalidModeLine(config, owner) {
|
|
|
812
842
|
function renderHumanGate(config, out) {
|
|
813
843
|
const block = config.humanGate;
|
|
814
844
|
if (!isObject(block)) return;
|
|
815
|
-
const { mode: _mode, ...rest } = block;
|
|
845
|
+
const { mode: _mode, humanOnly, ...rest } = block;
|
|
816
846
|
const resolution = modeResolution(config);
|
|
817
847
|
if (resolution.declared && resolution.rejected.length === 0) {
|
|
818
848
|
out.push(`${HUMAN_GATE_MODE_PATH}: ${resolution.mode}`);
|
|
819
849
|
}
|
|
820
|
-
|
|
850
|
+
// `humanOnly` is a list of decision classes. Anything else names none, and
|
|
851
|
+
// is stated by kind only: its contents are not ours to print into a session.
|
|
852
|
+
if (humanOnly !== undefined && !Array.isArray(humanOnly)) {
|
|
853
|
+
out.push(
|
|
854
|
+
`humanGate.humanOnly: INVALID — this project declares ${shownRejected(humanOnly)}, which is not a list of decision classes.`
|
|
855
|
+
);
|
|
856
|
+
renderSubtree(rest, "humanGate", out);
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
renderSubtree(
|
|
860
|
+
humanOnly === undefined ? rest : { ...rest, humanOnly },
|
|
861
|
+
"humanGate",
|
|
862
|
+
out
|
|
863
|
+
);
|
|
821
864
|
}
|
|
822
865
|
|
|
823
866
|
/**
|
|
@@ -848,6 +891,176 @@ function invalidLowConfidenceLine(config, fallback, owner) {
|
|
|
848
891
|
return `${LOW_CONFIDENCE_PATH}: ${fallback} [INVALID — this project declares ${JSON.stringify(config.learnings.lowConfidence)}, which is not one of ${accepted}; treated as ${fallback}; owner: ${owner}]`;
|
|
849
892
|
}
|
|
850
893
|
|
|
894
|
+
/**
|
|
895
|
+
* A rejected `release.*` value as it may be put in a session's context. An
|
|
896
|
+
* object or a list is named by its kind only: this block is injected into
|
|
897
|
+
* every session, and whatever sits inside a setting that should have been a
|
|
898
|
+
* word or a yes/no could be a credential that no pattern recognises.
|
|
899
|
+
* @param {unknown} value The declared value.
|
|
900
|
+
* @returns {string} Text safe to render.
|
|
901
|
+
*/
|
|
902
|
+
function shownRejected(value) {
|
|
903
|
+
if (Array.isArray(value)) return "a list";
|
|
904
|
+
if (isObject(value)) return "an object";
|
|
905
|
+
if (typeof value !== "string") return JSON.stringify(value);
|
|
906
|
+
// A mistyped yes/no or mechanism name is a short plain word, and showing it
|
|
907
|
+
// helps. Anything else is described, never quoted, and never cut short: the
|
|
908
|
+
// credential scrub runs on whole values, and a connection string with its
|
|
909
|
+
// host sliced off no longer looks like one to it.
|
|
910
|
+
return REJECTED_PLAIN_WORD.test(value)
|
|
911
|
+
? JSON.stringify(value)
|
|
912
|
+
: `a string of ${value.length} characters`;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/** A short value made only of letters, digits, spaces, dots, underscores and hyphens. */
|
|
916
|
+
const REJECTED_PLAIN_WORD = /^[\w .-]{0,40}$/;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Whether a present `release.liveUsers` is unusable. Only a boolean says
|
|
920
|
+
* anything; `"false"` in quotes must not turn the rule off.
|
|
921
|
+
* @param {unknown} release The resolved `release` value.
|
|
922
|
+
* @returns {boolean} True when the key is present and not a boolean.
|
|
923
|
+
*/
|
|
924
|
+
function liveUsersInvalid(release) {
|
|
925
|
+
return (
|
|
926
|
+
isObject(release) &&
|
|
927
|
+
"liveUsers" in release &&
|
|
928
|
+
typeof release.liveUsers !== "boolean"
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* The INVALID line for an unusable `release.liveUsers`.
|
|
934
|
+
* @param {object} config Resolved config.
|
|
935
|
+
* @param {string} owner Module that owns the setting.
|
|
936
|
+
* @returns {string|null} The line, or null when the value is absent or valid.
|
|
937
|
+
*/
|
|
938
|
+
function invalidLiveUsersLine(config, owner) {
|
|
939
|
+
const release = config.release;
|
|
940
|
+
// A `release` that is not an object says nothing, so nothing under it is in
|
|
941
|
+
// force. Printing it as `release: false` would read as "the rule is off".
|
|
942
|
+
if (release !== undefined && !isObject(release)) {
|
|
943
|
+
return `${LIVE_USERS_PATH}: ${DEFAULT_LIVE_USERS} [INVALID — this project declares release as ${shownRejected(release)}, which is not an object; treated as ${DEFAULT_LIVE_USERS} (the project has live users); owner: ${owner}]`;
|
|
944
|
+
}
|
|
945
|
+
if (liveUsersInvalid(release)) {
|
|
946
|
+
return `${LIVE_USERS_PATH}: ${DEFAULT_LIVE_USERS} [INVALID — this project declares ${shownRejected(release.liveUsers)}, which is not true or false; treated as ${DEFAULT_LIVE_USERS} (the project has live users); owner: ${owner}]`;
|
|
947
|
+
}
|
|
948
|
+
// A key that differs only by letter case is not read at all, and it is the
|
|
949
|
+
// quietest way to believe the rule is off when it is on.
|
|
950
|
+
const misspelt = misspeltLiveUsersKey(release);
|
|
951
|
+
return misspelt === null || "liveUsers" in release
|
|
952
|
+
? null
|
|
953
|
+
: `${LIVE_USERS_PATH}: ${DEFAULT_LIVE_USERS} [INVALID — this project declares release.${misspelt}, which Lisa does not read (the key is ${LIVE_USERS_PATH}); treated as ${DEFAULT_LIVE_USERS} (the project has live users); owner: ${owner}]`;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* A `release` key that spells `liveUsers` with different letter case.
|
|
958
|
+
* @param {unknown} release The resolved `release` value.
|
|
959
|
+
* @returns {string|null} The key as written, or null when there is none.
|
|
960
|
+
*/
|
|
961
|
+
function misspeltLiveUsersKey(release) {
|
|
962
|
+
if (!isObject(release)) return null;
|
|
963
|
+
return (
|
|
964
|
+
Object.keys(release).find(
|
|
965
|
+
key => key !== "liveUsers" && key.toLowerCase() === "liveusers"
|
|
966
|
+
) ?? null
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Whether the declared switch mechanism is unusable: `release.switch` that is
|
|
972
|
+
* not an object, or a mechanism that is not a non-empty string.
|
|
973
|
+
* @param {unknown} release The resolved `release` value.
|
|
974
|
+
* @returns {boolean} True when a mechanism was declared and cannot be used.
|
|
975
|
+
*/
|
|
976
|
+
function switchMechanismInvalid(release) {
|
|
977
|
+
if (!isObject(release) || !("switch" in release)) return false;
|
|
978
|
+
const block = release.switch;
|
|
979
|
+
if (!isObject(block)) return true;
|
|
980
|
+
return (
|
|
981
|
+
"mechanism" in block &&
|
|
982
|
+
!(typeof block.mechanism === "string" && block.mechanism.trim() !== "")
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* The INVALID line for an unusable `release.switch.mechanism`.
|
|
988
|
+
* @param {object} config Resolved config.
|
|
989
|
+
* @param {string} owner Module that owns the setting.
|
|
990
|
+
* @returns {string|null} The line, or null when the value is absent or valid.
|
|
991
|
+
*/
|
|
992
|
+
function invalidSwitchMechanismLine(config, owner) {
|
|
993
|
+
if (!switchMechanismInvalid(config.release)) return null;
|
|
994
|
+
const block = config.release.switch;
|
|
995
|
+
const declared = isObject(block) ? block.mechanism : block;
|
|
996
|
+
const subject = isObject(block) ? "" : "release.switch as ";
|
|
997
|
+
return `${SWITCH_MECHANISM_PATH}: ${DEFAULT_SWITCH_MECHANISM} [INVALID — this project declares ${subject}${shownRejected(declared)}, which is not ${isObject(block) ? "a non-empty string" : "an object"}; treated as ${DEFAULT_SWITCH_MECHANISM}; owner: ${owner}]`;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* The INVALID line for a `release.switch.guide` that is not a non-empty
|
|
1002
|
+
* string. The guide has no default, so nothing else would mention it, and
|
|
1003
|
+
* dropping it in silence would hide a problem the doctor check reports.
|
|
1004
|
+
* @param {object} config Resolved config.
|
|
1005
|
+
* @returns {string|null} The line, or null when the guide is absent or usable.
|
|
1006
|
+
*/
|
|
1007
|
+
function invalidSwitchGuideLine(config) {
|
|
1008
|
+
const block = isObject(config.release) ? config.release.switch : undefined;
|
|
1009
|
+
if (!isObject(block) || !("guide" in block)) return null;
|
|
1010
|
+
const usable = typeof block.guide === "string" && block.guide.trim() !== "";
|
|
1011
|
+
return usable
|
|
1012
|
+
? null
|
|
1013
|
+
: `release.switch.guide: not set [INVALID — this project declares ${shownRejected(block.guide)}, which is not a non-empty string; treated as not set; owner: ${RELEASE_OWNER}]`;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Dotted names of the keys under `release` and `release.switch` that Lisa does
|
|
1018
|
+
* not read, the misspelt live-users key excluded (its own INVALID line names
|
|
1019
|
+
* it).
|
|
1020
|
+
* @param {unknown} release The resolved `release` value.
|
|
1021
|
+
* @returns {string[]} Key paths, in declaration order.
|
|
1022
|
+
*/
|
|
1023
|
+
function unreadReleaseKeys(release) {
|
|
1024
|
+
if (!isObject(release)) return [];
|
|
1025
|
+
const misspelt = misspeltLiveUsersKey(release);
|
|
1026
|
+
const block = isObject(release.switch) ? release.switch : {};
|
|
1027
|
+
return [
|
|
1028
|
+
...Object.keys(release)
|
|
1029
|
+
.filter(key => !["liveUsers", "switch", misspelt].includes(key))
|
|
1030
|
+
.map(key => `release.${key}`),
|
|
1031
|
+
...Object.keys(block)
|
|
1032
|
+
.filter(key => !["mechanism", "guide"].includes(key))
|
|
1033
|
+
.map(key => `release.switch.${key}`),
|
|
1034
|
+
].filter(path => !path.split(".").at(-1).startsWith("_"));
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* The `release` block with every unusable value removed, so the subtree
|
|
1039
|
+
* renderer never prints a rejected value as if it were in force. Each removed
|
|
1040
|
+
* value is stated once, by its INVALID gap line.
|
|
1041
|
+
* @param {unknown} release The resolved `release` value.
|
|
1042
|
+
* @returns {object|null} What may be rendered, or null when nothing may.
|
|
1043
|
+
*/
|
|
1044
|
+
function usableRelease(release) {
|
|
1045
|
+
if (!isObject(release)) return null;
|
|
1046
|
+
const { liveUsers, switch: block } = release;
|
|
1047
|
+
const text = value => typeof value === "string" && value.trim() !== "";
|
|
1048
|
+
// Only the keys Lisa reads are rendered with their values. A key it does not
|
|
1049
|
+
// read (a misspelling, or anything else) would otherwise be printed in full
|
|
1050
|
+
// and look like a setting in force; those are named by key in one line.
|
|
1051
|
+
const usableSwitch = isObject(block)
|
|
1052
|
+
? Object.fromEntries(
|
|
1053
|
+
["mechanism", "guide"]
|
|
1054
|
+
.filter(key => text(block[key]))
|
|
1055
|
+
.map(key => [key, block[key]])
|
|
1056
|
+
)
|
|
1057
|
+
: {};
|
|
1058
|
+
return {
|
|
1059
|
+
...(typeof liveUsers === "boolean" ? { liveUsers } : {}),
|
|
1060
|
+
...(Object.keys(usableSwitch).length > 0 ? { switch: usableSwitch } : {}),
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
|
|
851
1064
|
/**
|
|
852
1065
|
* Render the `dependencies` block.
|
|
853
1066
|
*
|
|
@@ -889,7 +1102,11 @@ function renderDefaults(config) {
|
|
|
889
1102
|
? invalidModeLine(config, owner)
|
|
890
1103
|
: path === LOW_CONFIDENCE_PATH
|
|
891
1104
|
? invalidLowConfidenceLine(config, strict ?? value, owner)
|
|
892
|
-
:
|
|
1105
|
+
: path === LIVE_USERS_PATH
|
|
1106
|
+
? invalidLiveUsersLine(config, owner)
|
|
1107
|
+
: path === SWITCH_MECHANISM_PATH
|
|
1108
|
+
? invalidSwitchMechanismLine(config, owner)
|
|
1109
|
+
: null;
|
|
893
1110
|
if (invalid !== null) {
|
|
894
1111
|
lines.push(invalid);
|
|
895
1112
|
continue;
|
|
@@ -954,6 +1171,8 @@ function renderBody(config) {
|
|
|
954
1171
|
// so it is the line that must survive.
|
|
955
1172
|
/** @type {string[]} */
|
|
956
1173
|
const lines = renderDefaults(config);
|
|
1174
|
+
const guide = invalidSwitchGuideLine(config);
|
|
1175
|
+
if (guide !== null) lines.push(guide);
|
|
957
1176
|
const notification = renderNotificationLevel(config.sessionManager);
|
|
958
1177
|
if (notification !== null) lines.push(notification);
|
|
959
1178
|
const gapLines = lines.length;
|
|
@@ -991,6 +1210,19 @@ function renderBody(config) {
|
|
|
991
1210
|
renderHumanGate(config, lines);
|
|
992
1211
|
continue;
|
|
993
1212
|
}
|
|
1213
|
+
if (key === "release") {
|
|
1214
|
+
// Invalid values are stated once, by their INVALID gap lines; never as
|
|
1215
|
+
// if they were in force.
|
|
1216
|
+
const usable = usableRelease(config.release);
|
|
1217
|
+
if (usable !== null) renderSubtree(usable, key, lines);
|
|
1218
|
+
const unread = unreadReleaseKeys(config.release);
|
|
1219
|
+
if (unread.length > 0) {
|
|
1220
|
+
lines.push(
|
|
1221
|
+
`release: keys Lisa does not read (values not shown): ${unread.join(", ")}`
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
994
1226
|
if (key === "learnings" && lowConfidenceInvalid(config.learnings)) {
|
|
995
1227
|
// Stated once, by the INVALID gap line; never as if it were in force.
|
|
996
1228
|
const { lowConfidence: _invalid, ...rest } = config.learnings;
|
|
@@ -193,6 +193,52 @@ Right: create the label. Stop only if the tracker refuses for lack of permission
|
|
|
193
193
|
|
|
194
194
|
This does not conflict with writing for a non-technical reader (`communication`). That rule is about who reads a report, not about giving them to-dos.
|
|
195
195
|
|
|
196
|
+
### 8. Always Promotable
|
|
197
|
+
|
|
198
|
+
**Always promotable.** Whatever is on a shared branch can be promoted to the next environment as it stands. Most changes meet this by being complete and proven when they merge, and need nothing more. Only new behavior that merges before it is finished or verified is switched off, and that switch is removed once it is. If the branch is not promotable, fixing or reverting that comes before any other work.
|
|
199
|
+
|
|
200
|
+
A piece of work must never block a deployment. Promoting one environment to the next is a single step, never a sorting job: nobody works out which changes are ready and cherry-picks them. The established names are keeping the main line always releasable and separating deployment from release: code can be in production without being switched on.
|
|
201
|
+
|
|
202
|
+
**One question decides whether a change needs a switch:** if this were promoted to production right now, would a user see something unfinished or unproven?
|
|
203
|
+
|
|
204
|
+
- **No: the change is live and needs no switch.** Bug fixes, small tweaks, copy changes, refactors and dependency updates are almost always complete and proven when they merge, and reverting is their off switch. Never add a switch to work that is complete and proven when it merges. A switch on every change is machinery nobody needs (YAGNI).
|
|
205
|
+
- **Yes: the change is switched off.** The question decides, not the kind of work: a feature or a fix that lands across several merges, or new behavior that merges before its verification has passed, merges behind a switch that is off in production.
|
|
206
|
+
|
|
207
|
+
Live work is proven **before** it merges, not after. That is what lets it skip the switch. Proven means its local verification passed before the merge. The check in the target environment after the deploy confirms that proof, and a change is not "unverified" merely because that later check has not run yet. Work is unverified when it cannot be proven before it merges: it needs a piece that has not landed, an environment it cannot reach locally, or a decision that has not been made.
|
|
208
|
+
|
|
209
|
+
**Changes that cannot be switched off must be safe on their own**, because they are live the moment they ship:
|
|
210
|
+
|
|
211
|
+
- Database changes add before they remove. Old and new code both work against the same data.
|
|
212
|
+
- API changes are additive. A caller that has not been updated keeps working.
|
|
213
|
+
|
|
214
|
+
**A switch is temporary.** The work is not done while its switch exists: removing it is part of finishing the feature, not a follow-up, so this rule does not conflict with Clean Deletion or with No Technical Debt. A switch and an add-before-remove change that this rule requires are not the compatibility shims Clean Deletion forbids.
|
|
215
|
+
|
|
216
|
+
**Name the switch so it can be found and removed.** Give it a name that appears nowhere else in the repository and is not the start of another switch's name; `node scripts/lisa-release-switch.mjs references --switch <name>` must report none before the first use. Use one spelling of the name everywhere it is read: the done gate searches every tracked file for the name as a whole token, in any letter case, and cannot find a different spelling such as `NEW_CHECKOUT` for `new-checkout`. A second switch called `<name>-v2` counts as a reference and keeps the removing item open. Records do not count: committed evidence (`evidence/<ticket>/…` at the repository root), a changelog file (`CHANGELOG`, `CHANGELOG.md`), and Lisa's machine state under `.lisa/`. Recording that a switch is off, or saying in the changelog that it was removed, holds nothing open. Everything in those two folders is treated as a record, code included, so keep nothing that reads a switch there. Every other file counts, documentation and other release notes included: update documentation with the removal, and describe the removal elsewhere without the switch's name.
|
|
217
|
+
|
|
218
|
+
**The mechanism is the project's choice.** Lisa wraps no flag tool. A project names what it uses in `release.switch.mechanism` (a hosted flag service, a cloud configuration service, a product-analytics flag, a plain configuration value) and may point `release.switch.guide` at its own convention. With nothing named, use a plain configuration value that defaults to off. Whatever the mechanism, a switch must be settable per environment, on outside production while off in production, so the work can be verified. A project with one environment verifies switched-off work locally or for a test account only. An agent must be able to do three things with it:
|
|
219
|
+
|
|
220
|
+
1. add a switch;
|
|
221
|
+
2. confirm it is off in production;
|
|
222
|
+
3. remove it.
|
|
223
|
+
|
|
224
|
+
If you cannot confirm the production value, you cannot claim the work is dark.
|
|
225
|
+
|
|
226
|
+
**Turning a finished feature on.** A feature is turned on once, by the work item that removes its switch, after the whole feature is verified. An earlier item of the same feature verifies its own part with the switch on outside production and leaves it off in production. Then, having confirmed that production is running the verified version, the agent turns the switch on in production. The switch is removed only after that, never while the turn-on is still waiting. No person is needed, unless the project lists the decision class `feature-release` in `humanGate.humanOnly`; then that one step is a declared human gate.
|
|
227
|
+
|
|
228
|
+
**When the branch is not promotable.** A change whose failure is live on a shared branch is reverted at once: one that shipped without a switch and fails at verification, one that is switched off but breaks something with the switch off, and any change that breaks the build or the deployment, which no switch can turn off. A feature that fails after its switch was turned on in production is live too: the switch is turned off again at once. It is reworked, and the work item goes back to the ready queue with the failure evidence. It is never left in place to be fixed forward, and it never holds a promotion.
|
|
229
|
+
|
|
230
|
+
**Work items and pull requests say which.** A leaf work item that changes runtime behavior carries a `## Release Switch` section with exactly one line (gate S22 in the `*-validate-*` skills, checked by `scripts/lisa-release-switch.mjs check`):
|
|
231
|
+
|
|
232
|
+
```text
|
|
233
|
+
Live — complete and proven at merge
|
|
234
|
+
Switched off — <switch-name>; removed by this item
|
|
235
|
+
Switched off — <switch-name>; removed by <work-item ref>
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
The item that removes a switch cannot be finished while tracked source still references it (`lisa-work-item.mjs finish`). A pull request states the same thing next to how to undo it.
|
|
239
|
+
|
|
240
|
+
**A project without live users.** `release.liveUsers` in `.lisa.config.json` is a fact about the project: absent means it has live users and this rule applies. A project that is not launched sets it to `false`; then nothing in this section applies, including the add-before-remove and additive requirements, because there are no users and no live data to protect. Lisa names the setting whenever a production deployment happens while it is `false`, so the opt-out is seen on launch day. A value that is not `true` or `false` is reported and treated as `true`. `node scripts/lisa-release-switch.mjs config` prints how it resolved.
|
|
241
|
+
|
|
196
242
|
---
|
|
197
243
|
|
|
198
244
|
## Quick Reference
|
|
@@ -505,6 +551,8 @@ Structure the code so future agents can easily identify what to change, make a t
|
|
|
505
551
|
|
|
506
552
|
Write comments and docstrings that preserve engineering intent, not merely implementation details.
|
|
507
553
|
|
|
554
|
+
This overrides any default to match the comment density of the surrounding code: future agents keep no memory of today, so intent that is not written down is lost.
|
|
555
|
+
|
|
508
556
|
Code should generally explain **what** happens. Comments and docstrings should explain **why it happens that way**, especially when the reasoning is not obvious from the implementation.
|
|
509
557
|
|
|
510
558
|
When adding, modifying, or removing code:
|
|
@@ -5,13 +5,14 @@ alwaysApply: true
|
|
|
5
5
|
|
|
6
6
|
# Coding Philosophy (load-bearing)
|
|
7
7
|
|
|
8
|
-
- **KISS settles ties. YAGNI:** build what today's problem needs,
|
|
9
|
-
- **Hill-climbability.** Make localized changes with clear contracts
|
|
10
|
-
- **Immutability.** Create new values
|
|
8
|
+
- **KISS settles ties. YAGNI:** build what today's problem needs, no speculative abstraction or options. Extract shared code only when it repeats 3+ times and the abstraction is simpler than the duplication.
|
|
9
|
+
- **Hill-climbability.** Make localized, low-coupling changes with clear contracts, and leave a working baseline a later agent can find, change, verify, and keep or revert alone.
|
|
10
|
+
- **Immutability.** Create new values, never mutate; prefer `map`/`filter`/`reduce`. Where a stack rule forbids allocation on a hot path, the stack rule wins.
|
|
11
11
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
12
12
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
13
13
|
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
14
|
-
- **No assumed human.**
|
|
15
|
-
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant
|
|
14
|
+
- **No assumed human.** Unless a person was explicitly asked for, do the work, decide and record a default, or file a ticket; never advise a person to act. Only `when-to-stop` and declared human gates wait for one.
|
|
15
|
+
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant to respect, and what breaks if simplified. Keep comments true when code changes; never invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match surrounding comment density.
|
|
16
|
+
- **Always promotable.** A shared branch is promotable as it stands. Merge work complete and proven; switch off only unfinished or unverified new behavior, then remove it. Revert a failed live change; unblock the branch first.
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
Detail and examples: [reference/coding-philosophy.md](coding-philosophy-reference.mdc).
|