@codyswann/lisa 8.9.0 → 8.10.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/npm-updater-helper-graph.json +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6 -0
- 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 +57 -29
- 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-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa/rules/reference/config-resolution.md +1 -1
- package/plugins/lisa/rules/reference/ready-role-filing.md +55 -5
- package/plugins/lisa/rules/reference/tracked-work.md +8 -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-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +11 -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-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +11 -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/rules/reference/config-resolution.md +1 -1
- package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +55 -5
- package/plugins/lisa-copilot/rules/reference/tracked-work.md +8 -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-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +11 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +55 -5
- package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +8 -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-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +11 -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/rules/reference/config-resolution.md +1 -1
- package/plugins/lisa-devin/rules/reference/ready-role-filing.md +55 -5
- package/plugins/lisa-devin/rules/reference/tracked-work.md +8 -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-github-build-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +11 -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/rules/reference/config-resolution.md +1 -1
- package/plugins/src/base/rules/reference/ready-role-filing.md +55 -5
- package/plugins/src/base/rules/reference/tracked-work.md +8 -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-github-build-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +11 -1
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-jira-read-ticket/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +11 -1
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-linear-read-issue/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +11 -1
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +10 -0
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs +3 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs +40 -9
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-unbound.mjs +169 -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-track/SKILL.md +11 -1
- package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +11 -1
package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs
CHANGED
|
@@ -90,19 +90,29 @@ export function writeRequirementsContext(
|
|
|
90
90
|
if (error.code !== "ENOENT") fail();
|
|
91
91
|
initial = true;
|
|
92
92
|
}
|
|
93
|
+
const freshBody =
|
|
94
|
+
typeof input.context_body === "string" &&
|
|
95
|
+
!input.context_body.startsWith(marker);
|
|
96
|
+
// Re-binding the checkout to another item leaves the previous item's
|
|
97
|
+
// context behind. With the binding already naming `ref`, that context
|
|
98
|
+
// belongs to no current work: a fresh body for `ref` replaces it, so the
|
|
99
|
+
// prepare step that follows a re-bind does not dead-end the session.
|
|
100
|
+
let replacing = false;
|
|
93
101
|
if (initial) {
|
|
94
|
-
if (
|
|
95
|
-
typeof input.context_body !== "string" ||
|
|
96
|
-
input.context_body.startsWith(marker)
|
|
97
|
-
)
|
|
98
|
-
fail();
|
|
102
|
+
if (!freshBody) fail();
|
|
99
103
|
} else {
|
|
100
104
|
try {
|
|
101
|
-
if (realpathSync(path) !== path
|
|
102
|
-
fail();
|
|
105
|
+
if (realpathSync(path) !== path) fail();
|
|
103
106
|
} catch {
|
|
104
107
|
fail();
|
|
105
108
|
}
|
|
109
|
+
const previous = previousItem(readFileSync(path, "utf8"), marker);
|
|
110
|
+
replacing =
|
|
111
|
+
freshBody &&
|
|
112
|
+
binding?.ref === ref &&
|
|
113
|
+
previous !== null &&
|
|
114
|
+
previous !== ref;
|
|
115
|
+
if (input.context_body !== undefined && !replacing) fail();
|
|
106
116
|
}
|
|
107
117
|
const eas = join(cfg.projectRoot, ".easignore");
|
|
108
118
|
if (
|
|
@@ -113,7 +123,8 @@ export function writeRequirementsContext(
|
|
|
113
123
|
)
|
|
114
124
|
fail();
|
|
115
125
|
ensureIgnored(cfg.projectRoot);
|
|
116
|
-
let body =
|
|
126
|
+
let body =
|
|
127
|
+
initial || replacing ? input.context_body : readFileSync(path, "utf8");
|
|
117
128
|
if (body.startsWith(marker)) {
|
|
118
129
|
const end = body.indexOf("\n-->\n");
|
|
119
130
|
if (end < 0) fail();
|
|
@@ -154,5 +165,25 @@ export function writeRequirementsContext(
|
|
|
154
165
|
} finally {
|
|
155
166
|
rmSync(staging, { recursive: true, force: true });
|
|
156
167
|
}
|
|
157
|
-
return { code: "requirements-prepared", body_preserved:
|
|
168
|
+
return { code: "requirements-prepared", body_preserved: !replacing };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The work item a prepared context names, or null when it names none.
|
|
173
|
+
* @param {string} current The context file's text.
|
|
174
|
+
* @param {string} marker The requirements header's opening line.
|
|
175
|
+
* @returns {string|null} The previous work item reference.
|
|
176
|
+
*/
|
|
177
|
+
function previousItem(current, marker) {
|
|
178
|
+
if (!current.startsWith(marker)) return null;
|
|
179
|
+
const end = current.indexOf("\n-->\n");
|
|
180
|
+
if (end < 0) return null;
|
|
181
|
+
try {
|
|
182
|
+
const header = JSON.parse(current.slice(marker.length, end));
|
|
183
|
+
return typeof header?.work_item_ref === "string"
|
|
184
|
+
? header.work_item_ref
|
|
185
|
+
: null;
|
|
186
|
+
} catch {
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
158
189
|
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a session with no work item bound may still do, and what it is told.
|
|
3
|
+
*
|
|
4
|
+
* With no binding and no prepared context there is no task whose access could
|
|
5
|
+
* be proved, so the guard refuses project work. Two things are not project
|
|
6
|
+
* work and stay possible: reading (the fixed read commands the guard already
|
|
7
|
+
* admits), and writing a file that lands in no git repository at all, such as
|
|
8
|
+
* an agent's scratch or memory file. The refusal names the read command for
|
|
9
|
+
* this installation, because an agent cannot guess an absolute plugin path.
|
|
10
|
+
*/
|
|
11
|
+
import { existsSync, realpathSync, statSync } from "node:fs";
|
|
12
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
13
|
+
import { fileURLToPath } from "node:url";
|
|
14
|
+
import {
|
|
15
|
+
configuredIssueRepository,
|
|
16
|
+
issueFields,
|
|
17
|
+
} from "../../lisa-github-read-issue/read-contract.mjs";
|
|
18
|
+
|
|
19
|
+
const owner = join(
|
|
20
|
+
dirname(fileURLToPath(import.meta.url)),
|
|
21
|
+
"preflight-secrets.mjs"
|
|
22
|
+
);
|
|
23
|
+
const FILE_TOOLS = new Set(["Write", "Edit", "MultiEdit", "write", "edit"]);
|
|
24
|
+
const PATCH_TARGET =
|
|
25
|
+
/^\*\*\* (?:Add File|Update File|Delete File|Move to): (.*)$/;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The real location a path would be written to: the deepest existing
|
|
29
|
+
* ancestor's real path, with the not-yet-existing remainder appended.
|
|
30
|
+
* @param {string} target Absolute path.
|
|
31
|
+
* @returns {string|null} Resolved location, or null when unresolvable.
|
|
32
|
+
*/
|
|
33
|
+
function realLocation(target) {
|
|
34
|
+
let existing = target;
|
|
35
|
+
while (!existsSync(existing)) {
|
|
36
|
+
const parent = dirname(existing);
|
|
37
|
+
if (parent === existing) return null;
|
|
38
|
+
existing = parent;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
return join(realpathSync(existing), relative(existing, target));
|
|
42
|
+
} catch {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether any directory from `location` up to the root holds `.git`.
|
|
49
|
+
* @param {string} location Resolved absolute path.
|
|
50
|
+
* @returns {boolean} True when the path is inside a git repository.
|
|
51
|
+
*/
|
|
52
|
+
function insideRepository(location) {
|
|
53
|
+
for (let dir = location; ; dir = dirname(dir)) {
|
|
54
|
+
try {
|
|
55
|
+
statSync(join(dir, ".git"));
|
|
56
|
+
return true;
|
|
57
|
+
} catch (error) {
|
|
58
|
+
if (!["ENOENT", "ENOTDIR"].includes(error.code)) return true;
|
|
59
|
+
}
|
|
60
|
+
if (dirname(dir) === dir) return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Whether a write to `target` changes no project: it resolves outside the
|
|
66
|
+
* project and outside every git repository. Any doubt is a refusal.
|
|
67
|
+
* @param {unknown} target The path the tool names.
|
|
68
|
+
* @param {string} projectRoot This project's root.
|
|
69
|
+
* @returns {boolean} True when the write touches no repository.
|
|
70
|
+
*/
|
|
71
|
+
export function outsideEveryRepository(target, projectRoot) {
|
|
72
|
+
if (typeof target !== "string" || !isAbsolute(target)) return false;
|
|
73
|
+
const location = realLocation(resolve(target));
|
|
74
|
+
if (!location) return false;
|
|
75
|
+
let root;
|
|
76
|
+
try {
|
|
77
|
+
root = realpathSync(projectRoot);
|
|
78
|
+
} catch {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (location === root || location.startsWith(root + sep)) return false;
|
|
82
|
+
return !insideRepository(location);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Every path a file-writing tool call names, or null for any other shape.
|
|
87
|
+
* @param {Record<string, any>} input Hook event.
|
|
88
|
+
* @returns {string[]|null} Target paths.
|
|
89
|
+
*/
|
|
90
|
+
function writeTargets(input) {
|
|
91
|
+
const args = input?.tool_input;
|
|
92
|
+
if (!args || typeof args !== "object") return null;
|
|
93
|
+
if (FILE_TOOLS.has(input.tool_name)) {
|
|
94
|
+
const target = args.file_path ?? args.filePath;
|
|
95
|
+
return typeof target === "string" ? [target] : null;
|
|
96
|
+
}
|
|
97
|
+
if (input.tool_name === "NotebookEdit")
|
|
98
|
+
return typeof args.notebook_path === "string" ? [args.notebook_path] : null;
|
|
99
|
+
if (input.tool_name === "apply_patch" && typeof args.command === "string") {
|
|
100
|
+
const targets = args.command
|
|
101
|
+
.split("\n")
|
|
102
|
+
.map(line => PATCH_TARGET.exec(line)?.[1])
|
|
103
|
+
.filter(Boolean);
|
|
104
|
+
return targets.length ? targets : null;
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Whether an unbound session's tool call only writes outside every repository.
|
|
111
|
+
* @param {Record<string, any>} input Hook event.
|
|
112
|
+
* @param {{projectRoot: string}} cfg Task configuration.
|
|
113
|
+
* @returns {boolean} True to admit it.
|
|
114
|
+
*/
|
|
115
|
+
export function unboundWrite(input, cfg) {
|
|
116
|
+
const targets = writeTargets(input);
|
|
117
|
+
return (
|
|
118
|
+
targets !== null &&
|
|
119
|
+
targets.every(target => outsideEveryRepository(target, cfg.projectRoot))
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The exact read command this installation admits with no work item bound.
|
|
125
|
+
* @param {Record<string, any>} cfg Task configuration.
|
|
126
|
+
* @returns {string|null} Command text with a placeholder ticket, or null.
|
|
127
|
+
*/
|
|
128
|
+
function readCommand(cfg) {
|
|
129
|
+
const c = cfg.effective ?? {};
|
|
130
|
+
const script = /^[\w./@+-]+$/.test(owner)
|
|
131
|
+
? owner
|
|
132
|
+
: `'${owner.replaceAll("'", "'\\''")}'`;
|
|
133
|
+
if (c.tracker === "linear" && c.linear?.teamKey)
|
|
134
|
+
return `node ${script} --tracker-intake-read --ref ${c.linear.teamKey}-<number> --read issue`;
|
|
135
|
+
if (c.tracker === "jira" && c.jira?.project)
|
|
136
|
+
return `node ${script} --tracker-intake-read --ref ${c.jira.project}-<number> --read issue`;
|
|
137
|
+
const repo = c.github && configuredIssueRepository(c.github);
|
|
138
|
+
if (repo && (!c.tracker || c.tracker === "github"))
|
|
139
|
+
return `gh issue view <number> --repo ${repo} --json ${issueFields}`;
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The refusal for a session with no work item bound, in plain English.
|
|
145
|
+
* @param {Record<string, any>} cfg Task configuration.
|
|
146
|
+
* @returns {{allowed: false, code: string, action: string}} Refusal.
|
|
147
|
+
*/
|
|
148
|
+
export function unboundRefusal(cfg) {
|
|
149
|
+
const read = readCommand(cfg);
|
|
150
|
+
const comments =
|
|
151
|
+
read && read.includes("--read issue")
|
|
152
|
+
? " Use `--read comments` for its comments."
|
|
153
|
+
: "";
|
|
154
|
+
return {
|
|
155
|
+
allowed: false,
|
|
156
|
+
code: "work-item-unbound",
|
|
157
|
+
action: [
|
|
158
|
+
"No work item is bound to this checkout, so only reading is allowed.",
|
|
159
|
+
"Read files with the Read, Grep and Glob tools.",
|
|
160
|
+
read
|
|
161
|
+
? `Read a ticket with exactly this command, with the ticket's number in place of <number>: ${read}.${comments}`
|
|
162
|
+
: "",
|
|
163
|
+
"A file written outside every git repository, such as a scratch or memory file, is allowed.",
|
|
164
|
+
"To change anything in this project, bind its ticket first with lisa-track.",
|
|
165
|
+
]
|
|
166
|
+
.filter(Boolean)
|
|
167
|
+
.join(" "),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
@@ -822,7 +822,7 @@ function findCredentials(value, path, segments = []) {
|
|
|
822
822
|
const ID_ENTRY_PREFIX = /^([A-Za-z]+):/;
|
|
823
823
|
|
|
824
824
|
/** The kinds an id entry's prefix may name. */
|
|
825
|
-
const ID_ENTRY_KINDS = new Set(["login", "id", "integration"]);
|
|
825
|
+
const ID_ENTRY_KINDS = new Set(["login", "id", "integration", "relay"]);
|
|
826
826
|
|
|
827
827
|
/**
|
|
828
828
|
* The one list an `integration:` entry belongs in (CodySwannGT/lisa#4895): an
|
|
@@ -831,6 +831,31 @@ const ID_ENTRY_KINDS = new Set(["login", "id", "integration"]);
|
|
|
831
831
|
*/
|
|
832
832
|
const INTEGRATION_LIST_KEYS = new Set(["trustedAuthorIds"]);
|
|
833
833
|
|
|
834
|
+
/**
|
|
835
|
+
* The one list a `relay:` entry belongs in (CodySwannGT/lisa#5190): an
|
|
836
|
+
* automation account that may relay a trusted person's hold release. It is not
|
|
837
|
+
* a person, so it can never be an operator or a trusted author.
|
|
838
|
+
*/
|
|
839
|
+
const RELAY_LIST_KEYS = new Set(["trustedReleaseIds"]);
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Whether an entry that is not written as `relay:<id>` would still be read as
|
|
843
|
+
* one by the hold-release check, which trims a value and looks at how it
|
|
844
|
+
* starts: `id:relay:9`, ` relay:9`, `login: relay:9`. Refused wherever it
|
|
845
|
+
* appears, so a relay can only ever be named in the one list that allows it.
|
|
846
|
+
* @param {string} entry A configured entry.
|
|
847
|
+
* @returns {boolean} Whether the entry hides a relay.
|
|
848
|
+
*/
|
|
849
|
+
function hidesRelay(entry) {
|
|
850
|
+
const lower = entry.trim().toLowerCase();
|
|
851
|
+
const bare = ["id:", "login:", "integration:"].reduce(
|
|
852
|
+
(text, prefix) =>
|
|
853
|
+
text.startsWith(prefix) ? text.slice(prefix.length).trim() : text,
|
|
854
|
+
lower
|
|
855
|
+
);
|
|
856
|
+
return bare.startsWith("relay:") && !/^relay:\S/u.test(entry);
|
|
857
|
+
}
|
|
858
|
+
|
|
834
859
|
/** Letters-and-colon starts of real tracker ids (JSM customers' `qm:`). */
|
|
835
860
|
const PLAIN_ID_STARTS = new Set(["qm"]);
|
|
836
861
|
|
|
@@ -847,7 +872,7 @@ const ALL_DIGIT_ENTRY = /^\d+$/;
|
|
|
847
872
|
* (CodySwannGT/lisa#4895), and an entry with no letters-only prefix is plain (a Jira accountId such as
|
|
848
873
|
* `557058:<uuid>` or `qm:<id>` included).
|
|
849
874
|
* @param {string} entry One entry.
|
|
850
|
-
* @returns {"login" | "id" | "integration" | "plain" | "unknown-prefix" | "empty-value"} Kind.
|
|
875
|
+
* @returns {"login" | "id" | "integration" | "relay" | "plain" | "unknown-prefix" | "empty-value"} Kind.
|
|
851
876
|
*/
|
|
852
877
|
export function classifyIdEntry(entry) {
|
|
853
878
|
const prefix = ID_ENTRY_PREFIX.exec(entry)?.[1];
|
|
@@ -924,7 +949,8 @@ function idEntryProblems(key, ids) {
|
|
|
924
949
|
`${path} has an ` +
|
|
925
950
|
`unknown prefix ${JSON.stringify(prefix)}. Use login:<GitHub ` +
|
|
926
951
|
`login>, id:<numeric or tracker account id>, ` +
|
|
927
|
-
`integration:<service> (trustedAuthorIds only),
|
|
952
|
+
`integration:<service> (trustedAuthorIds only), relay:<account id> ` +
|
|
953
|
+
`(trustedReleaseIds only), or a plain id; ` +
|
|
928
954
|
`write a tracker id that itself starts with letters and a colon ` +
|
|
929
955
|
`as id:<that id>.`,
|
|
930
956
|
];
|
|
@@ -937,6 +963,24 @@ function idEntryProblems(key, ids) {
|
|
|
937
963
|
`operator, answer a question, or release a human hold.`,
|
|
938
964
|
];
|
|
939
965
|
}
|
|
966
|
+
if (kind !== "relay" && kind !== "empty-value" && hidesRelay(entry)) {
|
|
967
|
+
return [
|
|
968
|
+
`${path} reads as a relay: entry written another way (behind ` +
|
|
969
|
+
`another prefix, or with a space in front). Write a relay exactly ` +
|
|
970
|
+
`as relay:<account id>, and only in ` +
|
|
971
|
+
`sessionManager.trustedReleaseIds; no person's account id starts ` +
|
|
972
|
+
`with "relay:".`,
|
|
973
|
+
];
|
|
974
|
+
}
|
|
975
|
+
if (kind === "relay" && !RELAY_LIST_KEYS.has(key)) {
|
|
976
|
+
return [
|
|
977
|
+
`${path} is a relay: entry, which belongs only in ` +
|
|
978
|
+
`sessionManager.trustedReleaseIds. A relay is the automation ` +
|
|
979
|
+
`account allowed to post a hold release that a trusted person ` +
|
|
980
|
+
`asked for. It is not a person, so it can never be an operator, ` +
|
|
981
|
+
`author dispatched work, or answer a question.`,
|
|
982
|
+
];
|
|
983
|
+
}
|
|
940
984
|
return kind === "empty-value"
|
|
941
985
|
? [
|
|
942
986
|
`${path} has an empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
@@ -1038,7 +1082,53 @@ function validateTrustList(key, ids, emptyProblem) {
|
|
|
1038
1082
|
`Linear user id), not logins or display names.`,
|
|
1039
1083
|
];
|
|
1040
1084
|
}
|
|
1041
|
-
|
|
1085
|
+
if (ids.length === 0) return [emptyProblem];
|
|
1086
|
+
return [
|
|
1087
|
+
...idEntryProblems(key, ids),
|
|
1088
|
+
...relayWithoutPersonProblems(key, ids),
|
|
1089
|
+
];
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* A release list that names a relay and no person releases nothing: a relayed
|
|
1094
|
+
* release must name a trusted person from the same list, and there is none.
|
|
1095
|
+
* Reported, because the project clearly meant to let its agent relay releases
|
|
1096
|
+
* and nothing would tell it why none ever counts.
|
|
1097
|
+
* @param {string} key The list's key.
|
|
1098
|
+
* @param {readonly string[]} ids Entries, already known to be strings.
|
|
1099
|
+
* @returns {string[]} Problems found.
|
|
1100
|
+
*/
|
|
1101
|
+
function relayWithoutPersonProblems(key, ids) {
|
|
1102
|
+
if (!RELAY_LIST_KEYS.has(key)) return [];
|
|
1103
|
+
const kinds = ids.map(classifyIdEntry);
|
|
1104
|
+
if (!kinds.includes("relay")) return [];
|
|
1105
|
+
const valueAt = i => ids[i].slice(ids[i].indexOf(":") + 1).trim();
|
|
1106
|
+
const relays = new Set(
|
|
1107
|
+
kinds.flatMap((kind, i) => (kind === "relay" ? [valueAt(i)] : []))
|
|
1108
|
+
);
|
|
1109
|
+
const people = kinds.flatMap((kind, i) => {
|
|
1110
|
+
if (kind === "plain") return [{ i, value: ids[i].trim() }];
|
|
1111
|
+
return kind === "id" ? [{ i, value: valueAt(i) }] : [];
|
|
1112
|
+
});
|
|
1113
|
+
const both = people.filter(person => relays.has(person.value));
|
|
1114
|
+
return [
|
|
1115
|
+
...(people.length === 0
|
|
1116
|
+
? [
|
|
1117
|
+
`sessionManager.${key} names a relay but no person by account id. A ` +
|
|
1118
|
+
`relay can only post a release that a trusted person asked for, ` +
|
|
1119
|
+
`and that person must be in this list too, as id:<account id> or ` +
|
|
1120
|
+
`a plain id (a login: entry is not enough, because releases are ` +
|
|
1121
|
+
`matched on account ids). Add the people who may release a hold.`,
|
|
1122
|
+
]
|
|
1123
|
+
: []),
|
|
1124
|
+
...both.map(
|
|
1125
|
+
person =>
|
|
1126
|
+
`sessionManager.${key}[${person.i}] names the same account as a ` +
|
|
1127
|
+
`person and as a relay. An account is one or the other: a relay ` +
|
|
1128
|
+
`carries a person's decision and can never be the person who made ` +
|
|
1129
|
+
`it. Remove one of the two entries.`
|
|
1130
|
+
),
|
|
1131
|
+
];
|
|
1042
1132
|
}
|
|
1043
1133
|
|
|
1044
1134
|
/**
|
|
@@ -158,6 +158,17 @@ the manager.
|
|
|
158
158
|
no hold is released.
|
|
159
159
|
Removing `trustedAuthorIds` to dispatch integration-filed items would also remove every hold
|
|
160
160
|
releaser; add `integration:<service>` instead.
|
|
161
|
+
- **A release the operator gives you, not the item.** When the operator tells you (with `answer`,
|
|
162
|
+
on Telegram, or in the session) to release a held item, check `sessionManager.trustedReleaseIds`
|
|
163
|
+
for a `relay:<id>` entry naming the account you post from (in the committed `.lisa.config.json`;
|
|
164
|
+
one in the local override alone is ignored). With one, post
|
|
165
|
+
`[lisa-human-gate-release] relayed-for=<the operator's account id> reason=<the hold's slug>`
|
|
166
|
+
(leaving `reason=` out for a hold that names no reason) through `lisa-tracker-write` as the
|
|
167
|
+
first line of the comment, then a plain-English line saying
|
|
168
|
+
who asked, where and when; the operator must be in the same list by account id. With none, post nothing: tell the operator the
|
|
169
|
+
release has to come from their own tracker login, and give the exact line and a link to the item.
|
|
170
|
+
Never say an item was released until `queue` or `blocked-plan` reads it as released
|
|
171
|
+
(`ready-role-filing`, "Relayed releases").
|
|
161
172
|
|
|
162
173
|
## Questions and notifications
|
|
163
174
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
recordAutomationRun,
|
|
13
13
|
} from "../../../scripts/automation-run-record.mjs";
|
|
14
14
|
import { resolveHumanGatePolicy } from "../../../scripts/human-gate-act.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { releaseComparableValues } from "../../../scripts/operator-id-kinds.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
18
|
EXIT,
|
|
@@ -275,8 +275,8 @@ export async function blockedPlan(ctx) {
|
|
|
275
275
|
input.pendingQuestion ??
|
|
276
276
|
(ref ? (await readLedger(ctx.root)).items[ref]?.pendingQuestion : null);
|
|
277
277
|
const project = loadProject(ctx.root);
|
|
278
|
-
const trustedHumanActorIds =
|
|
279
|
-
trustedReleaseEntries(project.config)
|
|
278
|
+
const trustedHumanActorIds = releaseComparableValues(
|
|
279
|
+
trustedReleaseEntries(project.config, project.global?.sessionManager)
|
|
280
280
|
);
|
|
281
281
|
const policy = resolveHumanGatePolicy(project.local, project.global);
|
|
282
282
|
return {
|
|
@@ -159,7 +159,9 @@ function allowedAnswerers(config) {
|
|
|
159
159
|
// it would tell the operator to reply on the item when no reply is read.
|
|
160
160
|
return [...(config?.operatorIds ?? []), ...trustedReleaseEntries(config)]
|
|
161
161
|
.map(String)
|
|
162
|
-
.filter(
|
|
162
|
+
.filter(
|
|
163
|
+
entry => !["integration", "relay"].includes(parseIdEntry(entry)?.kind)
|
|
164
|
+
);
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
/** Why nothing is read off the item when nobody may answer there. */
|
|
@@ -166,7 +166,10 @@ export async function orphanPlan(ctx) {
|
|
|
166
166
|
me: ledger.control.me ?? null,
|
|
167
167
|
operatorIds: config?.operatorIds ?? [],
|
|
168
168
|
// The sweep uses this list only to judge hold releases (#4895).
|
|
169
|
-
trustedAuthorIds: trustedReleaseEntries(
|
|
169
|
+
trustedAuthorIds: trustedReleaseEntries(
|
|
170
|
+
config,
|
|
171
|
+
project.global?.sessionManager
|
|
172
|
+
),
|
|
170
173
|
now: new Date(),
|
|
171
174
|
...(max === undefined ? {} : { max }),
|
|
172
175
|
// An explicit --stale-hours wins; otherwise the project's
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* @module session-manager/cli-queue
|
|
31
31
|
*/
|
|
32
32
|
import {
|
|
33
|
-
|
|
33
|
+
adfCommentText,
|
|
34
34
|
assertPagedToCompletion,
|
|
35
35
|
normalizeJiraIssue,
|
|
36
36
|
normalizeLinearIssue,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
validOrAbsent,
|
|
46
46
|
} from "./cli-runtime.mjs";
|
|
47
47
|
import { resolveHumanGatePolicy } from "../../../scripts/human-gate-act.mjs";
|
|
48
|
-
import {
|
|
48
|
+
import { releaseComparableValues } from "../../../scripts/operator-id-kinds.mjs";
|
|
49
49
|
import { commentsOf } from "../../../scripts/stale-blocker-comment.mjs";
|
|
50
50
|
import {
|
|
51
51
|
landedDoneRoles,
|
|
@@ -264,7 +264,10 @@ export async function queue(ctx) {
|
|
|
264
264
|
// Resolved local-then-global like `human-gate-act.mjs policy`, so a hold
|
|
265
265
|
// the project's mode keeps is never dispatched as Ready work (#4687).
|
|
266
266
|
const gatePolicy = resolveHumanGatePolicy(project.local, project.global);
|
|
267
|
-
const releasers = trustedReleaseEntries(
|
|
267
|
+
const releasers = trustedReleaseEntries(
|
|
268
|
+
config,
|
|
269
|
+
project.global?.sessionManager
|
|
270
|
+
);
|
|
268
271
|
const policy = {
|
|
269
272
|
me,
|
|
270
273
|
operators,
|
|
@@ -272,13 +275,13 @@ export async function queue(ctx) {
|
|
|
272
275
|
trustedHumanActorIds:
|
|
273
276
|
tracker === "github"
|
|
274
277
|
? githubReleaserIds(ctx, releasers)
|
|
275
|
-
:
|
|
278
|
+
: releaseComparableValues(releasers),
|
|
276
279
|
commentsFor:
|
|
277
280
|
tracker === "github"
|
|
278
281
|
? ref => readIssueComments(ctx, ref)
|
|
279
282
|
: ref =>
|
|
280
283
|
commentsOf(rawByRef?.get(ref) ?? backlog?.rawByRef?.get(ref)).map(
|
|
281
|
-
comment => ({ ...comment, body:
|
|
284
|
+
comment => ({ ...comment, body: adfCommentText(comment.body) })
|
|
282
285
|
),
|
|
283
286
|
humanNeededLabel: humanNeededLabel(project, tracker),
|
|
284
287
|
humanOnly: gatePolicy.humanOnly,
|
|
@@ -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}`;
|
|
@@ -21,6 +21,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
21
21
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
22
22
|
continue through the existing path and never override an independently declared caller hold.
|
|
23
23
|
|
|
24
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
25
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
26
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
27
|
+
names, before the reason, a trusted person from the same list:
|
|
28
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
29
|
+
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
|
|
30
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
31
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
32
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
33
|
+
|
|
24
34
|
|
|
25
35
|
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.
|
|
26
36
|
|
|
@@ -172,5 +182,5 @@ The permission to load Write does not authorize other files or bypass the guard.
|
|
|
172
182
|
- Branch setup may call `node scripts/lisa-work-item.mjs attach-branch` after the feature branch exists.
|
|
173
183
|
- Keep the binding across ordinary interruptions and blocked outcomes so resumed work remains attributable.
|
|
174
184
|
- 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.
|
|
175
|
-
- 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.
|
|
185
|
+
- 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.
|
|
176
186
|
- 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.
|
|
@@ -21,6 +21,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
21
21
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
22
22
|
continue through the existing path and never override an independently declared caller hold.
|
|
23
23
|
|
|
24
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
25
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
26
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
27
|
+
names, before the reason, a trusted person from the same list:
|
|
28
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
29
|
+
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
|
|
30
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
31
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
32
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
33
|
+
|
|
24
34
|
|
|
25
35
|
Thin dispatcher. Resolves the configured destination tracker and delegates to the matching vendor build-queue scanner.
|
|
26
36
|
|
|
@@ -79,7 +89,7 @@ blocker re-probe carries an absolute human gate: an item carrying the configured
|
|
|
79
89
|
or a `[lisa-human-gate]` marker is never auto-selected, whatever a probe returns.
|
|
80
90
|
|
|
81
91
|
That gate has an inverse, and it is forwarded identically: a hold ends when a
|
|
82
|
-
`[lisa-human-gate-release]` comment naming the same `reason=` is recorded on the item by an authorized human. Every vendor
|
|
92
|
+
`[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
|
|
83
93
|
scanner passes the item's `comments` into the gate helpers so the discharge is visible, and calls
|
|
84
94
|
`planHumanGateRelease(...)` to take the marker off and put the item back in the queue. **No vendor
|
|
85
95
|
scanner clears a hold by editing the description** — the only body write any of them has is a
|
|
@@ -756,7 +756,7 @@ operator chooses Telegram (`init-config --notify telegram`).
|
|
|
756
756
|
| `sessionManager.notify.level` | no | `all` | `all` sends both action requests and routine notices with Telegram. `asks-only` sends human-needed questions, requests for operator action, duplicate-manager warnings and the hold digest. Routine notices go to the transcript. `status` reports `notifyLevel`, and the session-start config shows the resolved level. |
|
|
757
757
|
| `sessionManager.notify.stateDir` | **yes** with `telegram`; must be absent otherwise | — | This project's own Telegram state dir. A `stateDir` without the `telegram` provider fails validation, because no bot would use it. Never the shared default `~/.claude/channels/telegram`, because one bot per state dir is how projects stay isolated. Setup writes `~/.claude/channels/telegram-<project>`. |
|
|
758
758
|
| `sessionManager.trustedAuthorIds` | no | — | Optional list of **stable tracker user ids**, as strings: the GitHub numeric user id (`gh api users/<login> --jq .id`), the Jira `accountId`, or the Linear user id. Not logins or display names: matching compares ids, so a plain login silently matches no one and excludes every item. An entry may name its kind: `id:<v>` is an id, `login:<v>` a GitHub login (matched by the queue and on-item answers; the GitHub Ready queue resolves it to an account ID before checking hold releases). A login GitHub frees (after a rename or a deleted account) can be re-registered by someone else, so prefer `id:` for trust. `integration:<service>` trusts items an integration files with no person behind them (Linear's `botActor`, by `subType` such as `sentry`, else its bot `id`, never its self-chosen display name; never an item a person or an outside user filed; it trusts who filed the item, not text an outsider can get into it, such as a quoted error message); GitHub Apps and Jira automation file as an account, so trust them by `id:`. An unknown prefix or an empty value fails validation. When set, the manager takes only items authored by these people or integrations. It is also who may release a human hold, unless `trustedReleaseIds` is set — so removing it removes every hold releaser too. |
|
|
759
|
-
| `sessionManager.trustedReleaseIds` | no | `trustedAuthorIds` | Optional, non-empty list of the **people** who may release a human hold (`queue`, `blocked-plan`, the orphan sweep) and answer a question on the item. Use `id:` for hold releases across all three paths. Same entry grammar as `trustedAuthorIds` minus `integration:`, which is refused: an integration is not a person. Unset, it falls back to `trustedAuthorIds`, so existing projects are unaffected; with neither set, no hold is released. |
|
|
759
|
+
| `sessionManager.trustedReleaseIds` | no | `trustedAuthorIds` | Optional, non-empty list of the **people** who may release a human hold (`queue`, `blocked-plan`, the orphan sweep) and answer a question on the item. Use `id:` for hold releases across all three paths. Same entry grammar as `trustedAuthorIds` minus `integration:`, which is refused: an integration is not a person. One more entry kind is accepted here and in no other `sessionManager` list (a tracker's own `<tracker>.trustedHumanActorIds` list reads it the same way, and is not checked by validation): `relay:<stable account id>` names an automation account that may **relay** a hold release a listed person asked for (`ready-role-filing`, "Relayed releases"). A relay is not a person: it cannot answer a question, and its release counts only on a line that names a person from this list by account id (`[lisa-human-gate-release] relayed-for=<id> reason=<slug>`). A list with a relay and no person by account id is refused, because nobody could be relayed for; so is an account listed both as a person and as a relay, and a relay written any other way (`id:relay:<id>`, or with a space in front). A relay is never taken from the `trustedAuthorIds` fallback, and counts only when the committed `.lisa.config.json` lists it: one named only in `.lisa.config.local.json` is ignored. Unset, it falls back to `trustedAuthorIds`, so existing projects are unaffected; with neither set, no hold is released. |
|
|
760
760
|
| `sessionManager.operatorIds` | no | — | Optional, non-empty list of the people the manager works for, as tracker user ids matched against the **assignee** the same way "me" is: the GitHub **login**, the Jira `accountId`, or the Linear user id, spelled exactly as the tracker API returns it (matching is case-sensitive, so look the OPERATOR up rather than typing from memory: `gh api users/<operator-login> --jq .login` returns the canonical GitHub spelling. Do not use `gh api user`, which returns whoever the credential belongs to — the agent account, when that is the case this key exists for). Dispatch order is assigned to an operator, then to "me" (the tracker credential's identity), then unassigned; items assigned to anyone else are skipped. Set it whenever the tracker credential is not the operator's own (an agent account), or the operator's Ready items are never dispatched. Prefer the kind-keyed form, which the queue, the claim and on-item answers all match the same way: `login:<GitHub login>` matches only a GitHub login, `id:<v>` only an account id (GitHub numeric id, Jira `accountId`, Linear user id). A plain entry keeps its meaning, but a plain all-digit entry is a login to the queue and the claim and a numeric id to on-item answers, so validation warns about it (without failing) and names both forms. An unknown prefix or an empty value fails validation. A Jira accountId holding a colon (`557058:…`, `qm:…`) is still plain. |
|
|
761
761
|
| `sessionManager.backlogPickup` | no | `false` | Opt-in lowest dispatch tier. When the Ready queue is exhausted and capacity remains, the manager considers backlog items (open leaves in no lifecycle role) with the Ready exclusions plus any unfinished blocker; each one that passes the tracker validator (all gates, including the stateless-pickup dry-run) is moved to Ready in one write that keeps any assignee it already has and assigns an unassigned one to the manager ("me"), then read back and dispatched. A failed validation is cached against the item's `updatedAt`, so it is re-judged only after the item changes. Requires `operatorIds`. |
|
|
762
762
|
|