@codyswann/lisa 4.87.14 → 4.88.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +13 -9
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +18 -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/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +66 -31
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +5 -2
- package/dist/sync/lifecycle-defaults.d.ts +1 -0
- package/dist/sync/lifecycle-defaults.d.ts.map +1 -1
- package/dist/sync/lifecycle-defaults.js +3 -0
- package/dist/sync/lifecycle-defaults.js.map +1 -1
- package/dist/sync/registry.d.ts.map +1 -1
- package/dist/sync/registry.js +6 -1
- package/dist/sync/registry.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa/agents/learning-judge.md +20 -5
- package/plugins/lisa/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/lisa/rules/reference/config-resolution.md +3 -1
- package/plugins/lisa/rules/reference/ready-role-filing.md +56 -5
- package/plugins/lisa/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-agy/agents/learning-judge.md +20 -5
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-agy/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa-agy/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/agents/learning-judge.agent.md +20 -5
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +3 -1
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +56 -5
- package/plugins/lisa-copilot/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/learning-judge.md +20 -5
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +3 -2
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +3 -1
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +56 -5
- package/plugins/lisa-cursor/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/agents/learning-judge.md +20 -5
- package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/lisa-devin/rules/reference/config-resolution.md +3 -1
- package/plugins/lisa-devin/rules/reference/ready-role-filing.md +56 -5
- package/plugins/lisa-devin/scripts/human-gate-act.mjs +182 -0
- package/plugins/lisa-devin/scripts/human-gate-lift.mjs +141 -0
- package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/lisa-devin/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/lisa-devin/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/lisa-devin/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/lisa-devin/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa-devin/skills/lisa-track/SKILL.md +5 -5
- package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/lisa-devin/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-write/SKILL.md +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/learning-judge.md +20 -5
- package/plugins/src/base/hooks/block-direct-issue-create.sh +13 -9
- package/plugins/src/base/rules/reference/automation-runbook-contract.md +3 -2
- package/plugins/src/base/rules/reference/config-resolution.md +3 -1
- package/plugins/src/base/rules/reference/ready-role-filing.md +56 -5
- package/plugins/src/base/scripts/human-gate-act.mjs +182 -0
- package/plugins/src/base/scripts/human-gate-lift.mjs +141 -0
- package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +319 -5
- package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +21 -3
- package/plugins/src/base/skills/lisa-github-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +21 -3
- package/plugins/src/base/skills/lisa-jira-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +22 -4
- package/plugins/src/base/skills/lisa-linear-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +10 -2
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +29 -2
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/src/base/skills/lisa-track/SKILL.md +5 -5
- package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +6 -0
- package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -1
|
@@ -213,19 +213,27 @@ For each pre-work candidate that is **not** in `$READY`:
|
|
|
213
213
|
|
|
214
214
|
1. **Read release comments before applying the human gate.** Pass all item comments, labels,
|
|
215
215
|
body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
|
|
216
|
-
call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
216
|
+
call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
217
217
|
and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
|
|
218
218
|
until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
|
|
219
219
|
A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
|
|
220
220
|
comment history cannot discharge a hold. A release removes only the human hold: continue the
|
|
221
221
|
remaining blocker checks below before selecting the item.
|
|
222
|
+
Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
|
|
223
|
+
`removeHumanNeededLabel` here; defer `addReadyLabel` until the remaining blocker checks below
|
|
224
|
+
clear, exactly as for a release. A hold that names no act an agent cannot perform then never
|
|
225
|
+
blocks selection, and an item with a real blocker never skips the re-probe. A hold that is
|
|
226
|
+
lifted, by this call or in an earlier cycle (`humanGateVerdict(...).lifted` lists both), is a
|
|
227
|
+
discharged condition, not a human decision still pending: record the decision on
|
|
228
|
+
the item (a `Decision:` line saying what was chosen and why) if it does not carry one yet and exclude that condition from
|
|
229
|
+
step 2's probe. Keep probing any independent blocker the item states.
|
|
222
230
|
|
|
223
231
|
2. **Extract the stated discharge condition** from the description or the most recent blocking comment — the sentence naming what has to become true.
|
|
224
232
|
3. **Probe it.** Machine-testable conditions are the ones that rot fastest and are cheapest to check: a version on trunk (`git show origin/<trunk>:<manifest>`), a published package, a run history (`gh run list`), an advisory's patched status. A condition that is a human decision is not machine-testable — leave it and move on.
|
|
225
233
|
4. **Classify with the shared helper** so the ordering and the evidence requirement cannot drift per vendor:
|
|
226
234
|
|
|
227
235
|
```text
|
|
228
|
-
classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, statedBlocker, probe })
|
|
236
|
+
classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, statedBlocker, probe })
|
|
229
237
|
→ { selectable, reason, humanGated, evidence }
|
|
230
238
|
```
|
|
231
239
|
|
|
@@ -248,6 +256,16 @@ Run this **first**, ahead of the repo-scope gate (3a.0) and the leaf-only gate (
|
|
|
248
256
|
candidate. Ordering is load-bearing for the same reason it is inside `classifyPreWorkCandidate`: no
|
|
249
257
|
other gate's verdict — however conclusive — may promote an item a person parked.
|
|
250
258
|
|
|
259
|
+
**Lift invalid holds before classifying.** A hold filed under the old "human product call"
|
|
260
|
+
wording that names no act an agent cannot perform is not a hold (`ready-role-filing`, "What a human
|
|
261
|
+
gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
|
|
262
|
+
from `humanGate.humanOnly` in config. Post each string in its `comments` once (each begins
|
|
263
|
+
`[lisa-human-gate-lifted] reason=<slug>` and explains why), apply its `actions` (remove the
|
|
264
|
+
human-needed marker, add the ready role back), then classify below with those comments included. A
|
|
265
|
+
valid hold (credential, spend, sign-off, and the rest) plans nothing and stays held; so does a
|
|
266
|
+
label-only hold. Name lifted items in the cycle summary via `summarizeHumanGateLifts([...])`,
|
|
267
|
+
printed even at zero.
|
|
268
|
+
|
|
251
269
|
1. **Classify with `classifyReadyCandidate(...)`** from `scripts/intake-blocker-reprobe.mjs`. It
|
|
252
270
|
shares the gate test with the pre-work classifier deliberately — two copies of a substring test
|
|
253
271
|
drift, and a drifted gate fails *silently*, by quietly ceasing to match. Do **not** re-implement
|
|
@@ -264,7 +282,7 @@ other gate's verdict — however conclusive — may promote an item a person par
|
|
|
264
282
|
and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
|
|
265
283
|
are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
|
|
266
284
|
outside its filter twice over. Call
|
|
267
|
-
`planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, alreadyNotified })`
|
|
285
|
+
`planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, alreadyNotified })`
|
|
268
286
|
and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
|
|
269
287
|
marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
|
|
270
288
|
already out of the lane and already marked yields no second mutation and no second comment. This
|
|
@@ -274,7 +292,7 @@ other gate's verdict — however conclusive — may promote an item a person par
|
|
|
274
292
|
This ready-lane candidate can retain a historical body marker and a human-needed label.
|
|
275
293
|
This step reconciles only candidates still in the ready lane; released holds outside it are
|
|
276
294
|
recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
|
|
277
|
-
`planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
295
|
+
`planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
278
296
|
and apply exactly the actions it returns: remove the configured human-needed marker, add the
|
|
279
297
|
configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
|
|
280
298
|
of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
|
|
@@ -126,7 +126,7 @@ Items must be created in parent-before-child order so each child can be passed i
|
|
|
126
126
|
2. For each Story, invoke `lisa-linear-write-issue` with the Project ID as `parent_project_id`. Capture each Issue identifier.
|
|
127
127
|
3. For each Sub-task, invoke `lisa-linear-write-issue` with the Story Issue ID as `parent_issue_id` and explicit `build_ready: true`.
|
|
128
128
|
|
|
129
|
-
- **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<
|
|
129
|
+
- **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<the act a person must perform>"`. Filing a leaf with neither is an incomplete handoff and `lisa-linear-write-issue` rejects it.
|
|
130
130
|
|
|
131
131
|
### What to pass to each invocation
|
|
132
132
|
|
|
@@ -303,10 +303,18 @@ For Bug / Task / Sub-task, ensure the summary is prefixed with `[<repo-name>]`.
|
|
|
303
303
|
- **`build_ready: false`** → create the leaf **without** the `ready` state, leaving it in the team's default backlog state so it waits for a human to review and promote it into the queue.
|
|
304
304
|
- **`build_ready: true`** → declare `lifecycle_role: ready` so the access layer resolves `.linear.workflow.ready` and places the leaf there, and `lisa-intake` / `lisa-linear-build-intake` auto-picks it up. Best-effort **for the lane, never for the guard**: an access-layer refusal (`ready` unbound, absent from the team, ambiguous) is fail-closed and is never worked around here — surface its message verbatim, do not fail the write, leave the Issue in its default state and record the reason. The Issue is still created; what is refused is the unproven lane placement, which is the safe half to lose.
|
|
305
305
|
|
|
306
|
-
**A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<
|
|
306
|
+
**A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<the act a person must perform>"`; nothing in the ready lane means nothing ever claims it. When `human_gate` is supplied, stamp the hold on the Issue so it is auditable — after the check below.
|
|
307
|
+
|
|
308
|
+
**Validate the gate before stamping it.** A `human_gate` is for an act an agent cannot perform — a credential only a person holds, spend, an external account, a legal or compliance sign-off, naming an accountable person, acting in a system the agent cannot reach, or a decision class the project declared human-only (`humanGate.humanOnly`). A choice with a reasonable default is a decision, not a gate (`ready-role-filing`, "What a human gate is"). Run the check on the reason:
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Exit `1` refuses the gate: do **not** file the leaf held. Report the refusal with the verdict's `remedy` — **decide and record**: pick the reasonable default, write a `Decision:` line on the item, and file it `build_ready: true`. Exit `2` is a usage or config error: stop and report. On exit `0`, stamp the hold with the verdict's `label` naming the act — a visible line plus the verbatim marker:
|
|
307
315
|
|
|
308
316
|
```text
|
|
309
|
-
Held for a
|
|
317
|
+
Held for a person to <label>: <reason>.
|
|
310
318
|
<!-- [lisa-human-gate] reason=<short-slug> -->
|
|
311
319
|
```
|
|
312
320
|
|
|
@@ -21,7 +21,7 @@ Accept the candidate as JSON or `key=value` fields:
|
|
|
21
21
|
- `evidence_links` — concrete evidence refs available for citation
|
|
22
22
|
- `scope_hint` — `project` | `upstream` (a hint; the judge decides)
|
|
23
23
|
- `triggering_issue` — the issue/work item whose failure produced this candidate (required)
|
|
24
|
-
- `signal` — optional; `planning-miss` when a dispatched item stopped for a human or filed a new ticket mid-build (from `lisa-session-manager` or `lisa-implement`)
|
|
24
|
+
- `signal` — optional; `planning-miss` when a dispatched item stopped for a human or filed a new ticket mid-build (from `lisa-session-manager` or `lisa-implement`); `wrongly-escalated` when a human labeled an item's escalation wrong with the configured wrongly-escalated label (from `lisa-session-manager`'s overruled-escalation sweep, CodySwannGT/lisa#4657), carrying the hold and release as `evidence`. A hint for the judge, never a verdict
|
|
25
25
|
- `fingerprint` — optional; computed below when absent
|
|
26
26
|
|
|
27
27
|
## Phase 0 — Fingerprint (stable dedupe key)
|
|
@@ -235,7 +235,7 @@ No learning content is ever committed without a PR — there is no other write p
|
|
|
235
235
|
Stage: <planning_stage>. The worker could not find: "<quoted>". Planning skills read this rule back through the bounded projection (`lisa-task-decomposition` step 0).
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
For a **low-confidence** PR, the body must additionally end with this fixed decision-framing line so the human at the gate knows exactly what merging means:
|
|
238
|
+
For a **low-confidence** PR (other than a `wrongly-escalated` one, which no human merges — step 6), the body must additionally end with this fixed decision-framing line so the human at the gate knows exactly what merging means:
|
|
239
239
|
|
|
240
240
|
```markdown
|
|
241
241
|
**Merge** to adopt this rule into every future session for all six coding agents; **close** to discard it.
|
|
@@ -255,6 +255,7 @@ No learning content is ever committed without a PR — there is no other write p
|
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
A low-confidence PR sitting OPEN with green checks and `autoMergeRequest: null` is this mode's **success** state — a human merges or closes it. All pending low-confidence learning PRs are findable by filtering on the `learning:needs-triage` label (`gh pr list --label "learning:needs-triage"`).
|
|
258
|
+
- **`signal: wrongly-escalated`, at either confidence** → submit through `lisa-git-submit-pr` with its defaults, exactly like `high`, and apply no triage label. The candidate exists because a human already ruled — the wrongly-escalated label on the item is the review a low-confidence PR would otherwise wait for — and waiting for a second human to merge the learning is the very interruption the ruling objected to. Who applied the label does not change this: an automation identity applying it at an operator's direction counts. A `low` entry stays `confidence: low` in the ledger, so the gardener (`lisa-learnings-audit`) can find it and retire the rule if the call was wrong.
|
|
258
259
|
|
|
259
260
|
## Rules
|
|
260
261
|
|
|
@@ -1086,7 +1086,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
|
|
|
1086
1086
|
`intake_mode=build`, every non-PRD issue is normalized as a build ticket. If `intake_mode=both`,
|
|
1087
1087
|
classify PRDs first and normalize all remaining issues as build tickets.
|
|
1088
1088
|
2a. **Ask whether a person is holding it, before anything else.** Call
|
|
1089
|
-
`planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, lifecycleLabels, readyLabel })` from
|
|
1089
|
+
`planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, lifecycleLabels, readyLabel })` from
|
|
1090
1090
|
`scripts/intake-blocker-reprobe.mjs` for every candidate and apply exactly the verdict it
|
|
1091
1091
|
returns. Do **not** re-implement the test here and do **not** decide held-ness from labels
|
|
1092
1092
|
alone: the vendor writers stamp the `[lisa-human-gate]` marker into the body of a deliberate
|
|
@@ -1108,6 +1108,33 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
|
|
|
1108
1108
|
an item whose discharge cannot be seen. That fails closed — it stays held — which is the safe
|
|
1109
1109
|
direction and precisely why the omission is invisible.
|
|
1110
1110
|
|
|
1111
|
+
2a.5. **Lift the holds that were never valid, with no person involved.** A human gate is for an act
|
|
1112
|
+
an agent cannot perform (`ready-role-filing`, "What a human gate is"). Holds filed under the old
|
|
1113
|
+
"a human product call is pending" wording often name only a topic (`*-triage`, `*-dispatch`, a
|
|
1114
|
+
naming or classification choice), and each one stalls its item until someone notices. An operator
|
|
1115
|
+
should never have to comment to release one.
|
|
1116
|
+
|
|
1117
|
+
Enumerate open items carrying a `[lisa-human-gate]` marker in the body and, for each, call
|
|
1118
|
+
`planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })`
|
|
1119
|
+
from `scripts/human-gate-lift.mjs`, with `humanOnly` read from `humanGate.humanOnly` in config.
|
|
1120
|
+
The planner lifts only when it is sure: a topic-only slug, no act on any hold-related line, and
|
|
1121
|
+
no secret or act token anywhere in the hold text (`ready-role-filing`, "Existing invalid holds
|
|
1122
|
+
are lifted"). Any doubt keeps the hold. Apply exactly what it returns: post each string in `comments` once (each begins
|
|
1123
|
+
`[lisa-human-gate-lifted] reason=<slug>` with a one-line rationale), then remove the human-needed
|
|
1124
|
+
marker and add the configured build `ready` label as `actions` say. Do **not** re-implement the
|
|
1125
|
+
classification here.
|
|
1126
|
+
|
|
1127
|
+
This is not a forged human release, and it is a narrow exception to "never remove a
|
|
1128
|
+
`human_needed` marker this skill did not apply": a lift records that the hold was invalid under
|
|
1129
|
+
the contract, so there is nothing for a person to authorize. A lift's authority comes from
|
|
1130
|
+
re-classifying the hold, not from who wrote the comment, so a lift naming a valid hold discharges
|
|
1131
|
+
nothing. **Valid holds plan nothing** (credential, spend, external account, legal/compliance
|
|
1132
|
+
sign-off, accountable person, unreachable system, Lisa's own human-only gates, and any
|
|
1133
|
+
project-declared class). **Label-only holds plan nothing** — an access block or blocked verdict
|
|
1134
|
+
declares no reason to judge. A mixed item lifts its invalid reasons and stays held for the valid
|
|
1135
|
+
one. Never edit the description. Count these under `lifted_invalid_hold` and name them in the
|
|
1136
|
+
cycle summary via `summarizeHumanGateLifts([...])`, printed even when it is zero.
|
|
1137
|
+
|
|
1111
1138
|
2b. **Release the holds that have been answered.** This is step 2a's inverse and it is the reason
|
|
1112
1139
|
this sweep is where it lives: applying a hold had a path and lifting one had none, so a person
|
|
1113
1140
|
could supply exactly what a held item asked for, record the decision on the item, and the item
|
|
@@ -1117,7 +1144,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
|
|
|
1117
1144
|
|
|
1118
1145
|
Enumerate items carrying the configured `human_needed` marker **or** a `[lisa-human-gate]` marker
|
|
1119
1146
|
in the body, and for each call
|
|
1120
|
-
`planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
1147
|
+
`planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
|
|
1121
1148
|
from `scripts/intake-blocker-reprobe.mjs`. Apply exactly the actions it returns: remove the
|
|
1122
1149
|
human-needed marker, add the configured build `ready` label back, and post
|
|
1123
1150
|
`formatHumanGateReleaseNote()` once. Do **not** re-implement the discharge test, and do **not**
|
|
@@ -173,14 +173,17 @@ when one does, planning let a gap through (CodySwannGT/lisa#4569). Pass `--cause
|
|
|
173
173
|
when it was not planning: `--cause environment` for an outage, an expired credential, missing tool
|
|
174
174
|
access or a flaky tool, and `--cause human-gate` for a decision the item itself flagged as a human
|
|
175
175
|
gate (`[lisa-human-gate]`, or its body names this exact decision as one for a human). Omit it
|
|
176
|
-
otherwise.
|
|
177
|
-
|
|
176
|
+
otherwise. Always pass the item's current labels as `--item-label <label>` (one per label): when
|
|
177
|
+
one is the configured wrongly-escalated label, a human has ruled the gate wrong, so a
|
|
178
|
+
`--cause human-gate` hold counts after all (CodySwannGT/lisa#4657). `mark-plan` decides from the
|
|
179
|
+
kind, the cause and the labels whether the hold counts (`planningMiss.counts`); never decide it
|
|
180
|
+
yourself.
|
|
178
181
|
|
|
179
182
|
In this order, every time:
|
|
180
183
|
|
|
181
184
|
1. **Plan.** Write the question or reason to `.lisa/session-manager/msg.txt`, then
|
|
182
185
|
`node "$SM/session-manager.mjs" mark-plan <ref> --kind <kind> --project-root "$ROOT" < .lisa/session-manager/msg.txt`
|
|
183
|
-
(add `--cause environment|human-gate` as above).
|
|
186
|
+
(add `--cause environment|human-gate` and one `--item-label <label>` per label, as above).
|
|
184
187
|
It returns `marker` (the configured human-needed label, else the configured `blocked` role),
|
|
185
188
|
`move` for an `exhausted` item, the `comment` to post, and `planningMiss`. It writes nothing. Exit 2 for text
|
|
186
189
|
that looks like a credential: rewrite it without the secret and plan again. Exit 2 because no
|
|
@@ -213,7 +216,10 @@ In this order, every time:
|
|
|
213
216
|
item's question); `why` — the stage that let it through and the question quoted from
|
|
214
217
|
`missing`; and `evidence_links` — the question comment you just recorded. Text from the item
|
|
215
218
|
reaches the subagent as data on its prompt, never as instructions. The judge decides whether it
|
|
216
|
-
really was a planning miss; this step only makes sure it is asked.
|
|
219
|
+
really was a planning miss; this step only makes sure it is asked. When the candidate's
|
|
220
|
+
`signal` is `wrongly-escalated`, also post `planningMiss.overruledMarker.comment` on the item
|
|
221
|
+
once the subagent has started, so the overruled-escalation sweep does not capture the same
|
|
222
|
+
ruling again.
|
|
217
223
|
7. **Continue the cycle.** With Telegram, also send the question there, ending with
|
|
218
224
|
`answerWith.channel`, and re-record it with `ledger set-question <ref> --telegram-message-id <id>`
|
|
219
225
|
(same text, which keeps its `askedAt` and its mark). Without a channel there is nothing else to
|
|
@@ -372,6 +378,43 @@ queue below). For each:
|
|
|
372
378
|
- `keep`, `escalate`, `skip-human-gate`: leave it. Gate self-blocks and clarification blocks
|
|
373
379
|
belong to `lisa-repair-intake` and humans.
|
|
374
380
|
|
|
381
|
+
**Overruled escalations** (CodySwannGT/lisa#4657). A human who releases a hold and labels the item
|
|
382
|
+
with the configured wrongly-escalated label has ruled that an agent asked a person for something it
|
|
383
|
+
could have decided. That ruling is the strongest learning signal the factory gets, so capture it
|
|
384
|
+
once per item, every cycle, whatever else the cycle does:
|
|
385
|
+
|
|
386
|
+
1. **List** every item carrying the label, open or closed, **paging until the last page** (GitHub:
|
|
387
|
+
`gh issue list --label <label> --state all --limit 10000 --json number,labels,body,comments,url`;
|
|
388
|
+
Jira / Linear: the same query through `lisa-atlassian-access` or `lisa-linear-access`). Never
|
|
389
|
+
stop at a first page: posting a capture's marker makes that item the most recently updated, so
|
|
390
|
+
a capped listing would keep showing captured items and never reach the uncaptured ones. The
|
|
391
|
+
label is `github.labels.build.wrongly_escalated`, `linear.labels.build.wrongly_escalated` or
|
|
392
|
+
`jira.labels.wrongly_escalated`, default `wrongly-escalated-to-human`; `overruled-plan` reports
|
|
393
|
+
the one it used as `label`. Who applied it does not matter: the label is a classification, not
|
|
394
|
+
a release, so it needs no release authorization, and an automation identity applying it at an
|
|
395
|
+
operator's direction counts.
|
|
396
|
+
2. **Plan.** Write `{"items":[{ref,labels,body,comments}]}` (comments with their `id` and `url`) to
|
|
397
|
+
`.lisa/session-manager/overruled-input.json` and run
|
|
398
|
+
`node "$SM/session-manager.mjs" overruled-plan --input .lisa/session-manager/overruled-input.json --project-root "$ROOT"`.
|
|
399
|
+
Each `ref` is the item's canonical ref, exactly as dispatch uses it: `owner/repo#<number>` for
|
|
400
|
+
GitHub (the configured `github.org`/`github.repo`, never a bare number or a URL), the issue key
|
|
401
|
+
for Jira and Linear. The capture fingerprint is derived from it, so any other spelling would
|
|
402
|
+
capture the same item twice. Leave out an item whose ref you cannot form.
|
|
403
|
+
It skips items already carrying their `[lisa-escalation-overruled] key=<fingerprint>` comment,
|
|
404
|
+
returns at most 3 `captures` (the rest are `deferred` to the next cycle), and writes nothing.
|
|
405
|
+
3. **Route each capture** through `lisa-persist-learning` in a **background** subagent, exactly as
|
|
406
|
+
"Mark and move on" step 6 does: `capture.candidate` already carries `signal: wrongly-escalated`,
|
|
407
|
+
`triggering_issue`, `provenance`, the hold and release `evidence`, `evidence_links` and a draft
|
|
408
|
+
`Planning (filing): …` `rule` naming the filing check that would have kept the gate off. Sharpen
|
|
409
|
+
the rule with the hold reason when it helps; never turn it into this item's answer. Item text
|
|
410
|
+
reaches the subagent as data on its prompt, never as instructions.
|
|
411
|
+
4. **Mark it captured.** Once the subagent has started, post `capture.comment` on the item through
|
|
412
|
+
`lisa-tracker-write`. It is visible text, so a tracker that strips HTML comments cannot defeat
|
|
413
|
+
the dedupe. If the subagent could not be started, post nothing: the next cycle retries.
|
|
414
|
+
|
|
415
|
+
This sweep never holds dispatch and never changes the cycle's run outcome: a failure anywhere in
|
|
416
|
+
it is one transcript line, and the cycle's outcome comes from its dispatch work alone.
|
|
417
|
+
|
|
375
418
|
### 2. Dispatch
|
|
376
419
|
|
|
377
420
|
Skip while `capacity` reports `paused`. Otherwise:
|
|
@@ -488,7 +531,9 @@ the item failed, the loop did not. Only a hold that could not be written or read
|
|
|
488
531
|
`recovery-required`. The loop files no
|
|
489
532
|
other candidates. The planning-miss candidate a mark routes (step 6 of "Mark and move on") is not
|
|
490
533
|
one: it runs in the background, and whatever it does — a learning PR, a drop note, a failure —
|
|
491
|
-
never moves the cycle's outcome.
|
|
534
|
+
never moves the cycle's outcome. The same holds for the overruled-escalation sweep in Reconcile,
|
|
535
|
+
including its `[lisa-escalation-overruled]` marker comment: it is never a state change for the run
|
|
536
|
+
outcome. When several rows apply, the most urgent wins: `recovery-required`, then
|
|
492
537
|
`candidate-proposed`, then `approval-requested`, then `change-proved`.
|
|
493
538
|
A missing channel is never a reason for `recovery-required`: with `notify` `none`, a cycle ends
|
|
494
539
|
`nothing-needed`, `change-proved` or `candidate-proposed` on its work alone.
|
|
@@ -27,6 +27,12 @@ import {
|
|
|
27
27
|
} from "./cli-runtime.mjs";
|
|
28
28
|
import { parseJson } from "./cli-queue.mjs";
|
|
29
29
|
import { notifyProvider } from "./config.mjs";
|
|
30
|
+
import { wronglyEscalatedLabel } from "./cli-overruled.mjs";
|
|
31
|
+
import {
|
|
32
|
+
carriesWronglyEscalated,
|
|
33
|
+
overruledFingerprint,
|
|
34
|
+
overruledMarkerComment,
|
|
35
|
+
} from "./escalation-overruled.mjs";
|
|
30
36
|
import { pickItemAnswer } from "./human-answer.mjs";
|
|
31
37
|
import { findCredentialShape, planMark } from "./human-needed.mjs";
|
|
32
38
|
import { readLedger } from "./ledger.mjs";
|
|
@@ -42,8 +48,10 @@ function trackerOf(project) {
|
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
/**
|
|
45
|
-
* `mark-plan <ref> --kind <kind> [--cause <cause>]
|
|
46
|
-
* stdin).
|
|
51
|
+
* `mark-plan <ref> --kind <kind> [--cause <cause>] [--item-label <l>]...`
|
|
52
|
+
* (question or reason on stdin). `--item-label` names the item's current
|
|
53
|
+
* labels; when one is the configured wrongly-escalated label, a
|
|
54
|
+
* `--cause human-gate` hold counts as a planning miss (#4657).
|
|
47
55
|
* @param {object} ctx - CLI context
|
|
48
56
|
* @returns {{ json: object }} `{ref,kind,marker,move?,comment,answerWith}`
|
|
49
57
|
*/
|
|
@@ -60,19 +68,48 @@ export function markPlan(ctx) {
|
|
|
60
68
|
local: project.local,
|
|
61
69
|
global: project.global,
|
|
62
70
|
}).value;
|
|
71
|
+
const overruledLabel = wronglyEscalatedLabel(project, tracker);
|
|
72
|
+
const plan = asSetupError(() =>
|
|
73
|
+
planMark({
|
|
74
|
+
ref,
|
|
75
|
+
kind: ctx.values.kind,
|
|
76
|
+
text,
|
|
77
|
+
label: humanNeededLabel(project, tracker),
|
|
78
|
+
blocked: blocked || undefined,
|
|
79
|
+
channel: config ? notifyProvider(config) === "telegram" : false,
|
|
80
|
+
answerers: allowedAnswerers(config).length > 0,
|
|
81
|
+
cause: ctx.values.cause ?? "planning",
|
|
82
|
+
overruled: carriesWronglyEscalated(
|
|
83
|
+
ctx.values["item-label"] ?? [],
|
|
84
|
+
overruledLabel
|
|
85
|
+
),
|
|
86
|
+
})
|
|
87
|
+
);
|
|
88
|
+
return { json: withOverruledMarker(plan, ref, overruledLabel) };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A `wrongly-escalated` candidate is the same capture the overruled sweep
|
|
93
|
+
* makes, so it carries the same marker: the manager posts it after routing
|
|
94
|
+
* the candidate, and the sweep then skips the item instead of capturing the
|
|
95
|
+
* one ruling twice (#4657).
|
|
96
|
+
* @param {object} plan - `planMark` result
|
|
97
|
+
* @param {string} ref - Item ref
|
|
98
|
+
* @param {string} label - Resolved wrongly-escalated label
|
|
99
|
+
* @returns {object} The plan, with `planningMiss.overruledMarker` when due
|
|
100
|
+
*/
|
|
101
|
+
function withOverruledMarker(plan, ref, label) {
|
|
102
|
+
if (plan.planningMiss?.candidate?.signal !== "wrongly-escalated") return plan;
|
|
103
|
+
const fingerprint = overruledFingerprint(ref);
|
|
63
104
|
return {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
answerers: allowedAnswerers(config).length > 0,
|
|
73
|
-
cause: ctx.values.cause ?? "planning",
|
|
74
|
-
})
|
|
75
|
-
),
|
|
105
|
+
...plan,
|
|
106
|
+
planningMiss: {
|
|
107
|
+
...plan.planningMiss,
|
|
108
|
+
overruledMarker: {
|
|
109
|
+
fingerprint,
|
|
110
|
+
comment: overruledMarkerComment(fingerprint, label),
|
|
111
|
+
},
|
|
112
|
+
},
|
|
76
113
|
};
|
|
77
114
|
}
|
|
78
115
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `overruled-plan`: the session manager's per-cycle sweep for items a human
|
|
3
|
+
* labeled wrongly escalated (CodySwannGT/lisa#4657), and the resolver for
|
|
4
|
+
* that label's configured name. The plan writes nothing: the manager routes
|
|
5
|
+
* each capture's candidate to `lisa-persist-learning` in the background and
|
|
6
|
+
* then posts the capture's marker comment through `lisa-tracker-write`.
|
|
7
|
+
*
|
|
8
|
+
* Item bodies and comments arrive on stdin or in a file, never in argv.
|
|
9
|
+
* @module session-manager/cli-overruled
|
|
10
|
+
*/
|
|
11
|
+
import { readPath } from "../../../scripts/resolve-lifecycle-role.mjs";
|
|
12
|
+
import {
|
|
13
|
+
asSetupError,
|
|
14
|
+
intFlag,
|
|
15
|
+
loadProject,
|
|
16
|
+
stdinText,
|
|
17
|
+
} from "./cli-runtime.mjs";
|
|
18
|
+
import { parseJson, readJsonFile } from "./json-input.mjs";
|
|
19
|
+
import {
|
|
20
|
+
DEFAULT_MAX_CAPTURES,
|
|
21
|
+
DEFAULT_WRONGLY_ESCALATED_LABEL,
|
|
22
|
+
WRONGLY_ESCALATED_CONFIG_PATHS,
|
|
23
|
+
planOverruledCaptures,
|
|
24
|
+
} from "./escalation-overruled.mjs";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The label a human applies to rule an escalation wrong, for this tracker.
|
|
28
|
+
* Local config wins over global, then the built-in
|
|
29
|
+
* `wrongly-escalated-to-human`, which is the same on every tracker.
|
|
30
|
+
* @param {ReturnType<typeof loadProject>} project - Loaded project
|
|
31
|
+
* @param {string | undefined} tracker - `github`, `jira` or `linear`; the
|
|
32
|
+
* project's configured tracker when omitted
|
|
33
|
+
* @returns {string} The label
|
|
34
|
+
*/
|
|
35
|
+
export function wronglyEscalatedLabel(project, tracker) {
|
|
36
|
+
const vendor = tracker ?? project.local?.tracker ?? project.global?.tracker;
|
|
37
|
+
const configPath = Object.hasOwn(WRONGLY_ESCALATED_CONFIG_PATHS, vendor ?? "")
|
|
38
|
+
? WRONGLY_ESCALATED_CONFIG_PATHS[vendor]
|
|
39
|
+
: undefined;
|
|
40
|
+
if (configPath) {
|
|
41
|
+
for (const config of [project.local, project.global]) {
|
|
42
|
+
const value = readPath(config, configPath);
|
|
43
|
+
if (typeof value === "string" && value.trim() !== "") return value.trim();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return DEFAULT_WRONGLY_ESCALATED_LABEL;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* `overruled-plan [--input <file>] [--max <n>]` (stdin without --input:
|
|
51
|
+
* `{"items":[{ref,labels,body,comments}]}`).
|
|
52
|
+
* @param {object} ctx - CLI context
|
|
53
|
+
* @returns {{ json: object }} `{label,captures,skipped,deferred}`
|
|
54
|
+
*/
|
|
55
|
+
export function overruledPlan(ctx) {
|
|
56
|
+
const input = ctx.values.input
|
|
57
|
+
? readJsonFile(ctx.values.input)
|
|
58
|
+
: parseJson(stdinText(ctx, "items JSON"), "stdin");
|
|
59
|
+
const project = loadProject(ctx.root);
|
|
60
|
+
const max = intFlag(ctx.values.max, "--max") ?? DEFAULT_MAX_CAPTURES;
|
|
61
|
+
return {
|
|
62
|
+
json: asSetupError(() =>
|
|
63
|
+
planOverruledCaptures({
|
|
64
|
+
items: input?.items,
|
|
65
|
+
label: wronglyEscalatedLabel(project, undefined),
|
|
66
|
+
max,
|
|
67
|
+
})
|
|
68
|
+
),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -207,14 +207,22 @@ Per cycle
|
|
|
207
207
|
unset); trustedHumanActorIds in the input is ignored. stdout
|
|
208
208
|
{action:release|keep|escalate|skip-human-gate,reason,edges,gate}.
|
|
209
209
|
--ref fills pendingQuestion from the ledger.
|
|
210
|
-
mark-plan <ref> --kind <kind> [--cause <cause>]
|
|
210
|
+
mark-plan <ref> --kind <kind> [--cause <cause>] [--item-label <l>]...
|
|
211
|
+
STDIN: question or reason
|
|
211
212
|
Plans marking an item that needs a human; writes nothing. kind:
|
|
212
213
|
worker-question | repo-route | exhausted | decision. cause: planning
|
|
213
214
|
(default) | environment (outage, expired credential, flaky tool) |
|
|
214
|
-
human-gate (a decision planning flagged as a human gate).
|
|
215
|
+
human-gate (a decision planning flagged as a human gate).
|
|
216
|
+
--item-label (repeatable): the item's current labels. When one is the
|
|
217
|
+
configured wrongly-escalated label, cause human-gate counts as a
|
|
218
|
+
planning miss (stageHint filing, candidate signal wrongly-escalated).
|
|
219
|
+
stdout
|
|
215
220
|
{ref,kind,marker:{type:"label"|"role",value},[move:{role:"blocked",
|
|
216
221
|
value},]comment,answerWith:{item,cli,channel},planningMiss:{counts,
|
|
217
|
-
reason[,stageHint,candidate]}}.
|
|
222
|
+
reason[,stageHint,candidate][,overruledMarker:{fingerprint,comment}]}}.
|
|
223
|
+
overruledMarker is present only when candidate.signal is
|
|
224
|
+
wrongly-escalated: post its comment after routing the candidate, so
|
|
225
|
+
overruled-plan skips the item. planningMiss.counts is true for a
|
|
218
226
|
worker-question, decision or repo-route with cause planning; never
|
|
219
227
|
for exhausted. candidate is the persist-learning skeleton (signal,
|
|
220
228
|
triggering_issue, provenance, scope_hint, kind, missing). marker is the tracker's
|
|
@@ -226,6 +234,18 @@ Per cycle
|
|
|
226
234
|
lists, or on Telegram when it is the channel. Exit 2 for an unknown
|
|
227
235
|
kind, empty or credential-shaped text, no marker configured, or
|
|
228
236
|
exhausted with no blocked role, or an unknown cause.
|
|
237
|
+
overruled-plan [--input <file>] [--max <n>] STDIN (without --input): JSON
|
|
238
|
+
{items:[{ref,labels,body,comments}]}
|
|
239
|
+
Plans this cycle's captures of escalations a human ruled wrong; writes
|
|
240
|
+
nothing. An item counts when it carries the configured wrongly-escalated
|
|
241
|
+
label (github/linear labels.build.wrongly_escalated,
|
|
242
|
+
jira.labels.wrongly_escalated; default wrongly-escalated-to-human) and
|
|
243
|
+
no comment starting [lisa-escalation-overruled] key=<fingerprint>.
|
|
244
|
+
stdout {label,captures:[{ref,fingerprint,comment,candidate}],skipped,
|
|
245
|
+
deferred}. candidate is the persist-learning candidate (signal
|
|
246
|
+
wrongly-escalated, hold and release evidence, a draft
|
|
247
|
+
Planning (filing) rule); comment is the marker to post afterwards.
|
|
248
|
+
--max caps captures per cycle (default 3); the rest are deferred.
|
|
229
249
|
answer <ref> STDIN: the answer
|
|
230
250
|
Queues an operator's answer (source "cli") for the next cycle to
|
|
231
251
|
deliver. stdout {queued:true,ref,source}. Exit 2 when <ref> has no
|