@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
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
Thin dispatcher. Resolves the configured destination tracker and delegates to the matching vendor build-queue scanner.
|
|
24
34
|
|
|
@@ -77,7 +87,7 @@ blocker re-probe carries an absolute human gate: an item carrying the configured
|
|
|
77
87
|
or a `[lisa-human-gate]` marker is never auto-selected, whatever a probe returns.
|
|
78
88
|
|
|
79
89
|
That gate has an inverse, and it is forwarded identically: a hold ends when a
|
|
80
|
-
`[lisa-human-gate-release]` comment naming the same `reason=` is recorded on the item by an authorized human. Every vendor
|
|
90
|
+
`[lisa-human-gate-release]` comment naming the same `reason=` is recorded on the item by an authorized human (or relayed for one by an account the project named as a relay). Every vendor
|
|
81
91
|
scanner passes the item's `comments` into the gate helpers so the discharge is visible, and calls
|
|
82
92
|
`planHumanGateRelease(...)` to take the marker off and put the item back in the queue. **No vendor
|
|
83
93
|
scanner clears a hold by editing the description** — the only body write any of them has is a
|
|
@@ -259,6 +259,94 @@ function reasonOnLine(line, marker) {
|
|
|
259
259
|
return normalizeReason(tail.slice(key + REASON_KEY.length));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
/** Key a relayed release uses to name the person it relays for. */
|
|
263
|
+
const RELAYED_FOR_KEY = "relayed-for=";
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The person a declaring line says it relays for, or "" when it names nobody.
|
|
267
|
+
*
|
|
268
|
+
* It is read only from the part of the line BEFORE `reason=`. Everything after
|
|
269
|
+
* `reason=` is the reason (that is how every reader, old and new, parses it),
|
|
270
|
+
* so a `relayed-for=` written after the reason is part of a reason nobody
|
|
271
|
+
* declared and releases nothing. Writing the person first keeps one grammar:
|
|
272
|
+
* an older reader still finds the right reason, and then refuses the comment
|
|
273
|
+
* for its author, which is the safe answer.
|
|
274
|
+
* @param {string} line - A line already known to declare
|
|
275
|
+
* @param {string} marker - The declaration marker it carries
|
|
276
|
+
* @returns {string} The stable id named, or the empty string
|
|
277
|
+
*/
|
|
278
|
+
function relayedForOnLine(line, marker) {
|
|
279
|
+
const at = line.indexOf(marker);
|
|
280
|
+
if (at === -1) return "";
|
|
281
|
+
const tail = line.slice(at + marker.length).split("-->")[0];
|
|
282
|
+
// Exact grammar: the person is the word right after the marker, and the
|
|
283
|
+
// only thing that may follow it is the reason. `not-relayed-for=1`, a
|
|
284
|
+
// `relayed-for=` later in the line, and a sentence after the person
|
|
285
|
+
// ("relayed-for=1 is the form a release takes") all name nobody.
|
|
286
|
+
const [first = "", second] = tail.trim().split(/\s+/u);
|
|
287
|
+
if (!first.startsWith(RELAYED_FOR_KEY)) return "";
|
|
288
|
+
if (second !== undefined && !second.startsWith(REASON_KEY)) return "";
|
|
289
|
+
return first.slice(RELAYED_FOR_KEY.length);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/** Longest indent a line may have before Markdown reads it as code. */
|
|
293
|
+
const MAX_PROSE_INDENT = 3;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The one line of a relay's comment that can be a release: its first.
|
|
297
|
+
*
|
|
298
|
+
* A person's comment is read generously: a marker behind a quote mark or a
|
|
299
|
+
* list bullet, anywhere in the comment, still declares, because the person is
|
|
300
|
+
* the authority and nothing in their own comment can be someone else's words.
|
|
301
|
+
* A relay is an agent, and an agent quotes: it answers "should I post this
|
|
302
|
+
* line?" by repeating the line. Telling a quotation from a statement in
|
|
303
|
+
* Markdown is a long list (nested fences, code spans across lines, lazy
|
|
304
|
+
* blockquote lines, list continuations, raw HTML), and any list has a next
|
|
305
|
+
* entry. So there is no list. A relayed release counts only in the exact
|
|
306
|
+
* place and shape {@link formatHumanGateRelease} writes it: the first line of
|
|
307
|
+
* the comment, beginning with the marker (or with an HTML comment that begins
|
|
308
|
+
* with it), at most three spaces in, with no code mark on the line. A copy
|
|
309
|
+
* anywhere else, or dressed any other way, releases nothing.
|
|
310
|
+
* @param {unknown} body - The comment body
|
|
311
|
+
* @returns {string[]} That line when it is a release line, else nothing
|
|
312
|
+
*/
|
|
313
|
+
function relayReleaseLines(body) {
|
|
314
|
+
const first =
|
|
315
|
+
String(body ?? "")
|
|
316
|
+
.split("\n")
|
|
317
|
+
.find(line => line.trim() !== "") ?? "";
|
|
318
|
+
if (first.includes("`")) return [];
|
|
319
|
+
const line = normalizeProviderMarkdown(first);
|
|
320
|
+
const text = line.trimStart();
|
|
321
|
+
const indent = line.slice(0, line.length - text.length);
|
|
322
|
+
if (indent.length > MAX_PROSE_INDENT || indent.includes("\t")) return [];
|
|
323
|
+
return relayStatement(text).startsWith(HUMAN_GATE_RELEASE_MARKER)
|
|
324
|
+
? [line]
|
|
325
|
+
: [];
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* The release a relay's first line states, or "" when the line is not one.
|
|
330
|
+
*
|
|
331
|
+
* Two shapes, and nothing may come after either: the plain line, which must
|
|
332
|
+
* not contain an HTML comment mark at all (every reader cuts a line at the
|
|
333
|
+
* first `-->`, so `… reason=x --> is this right?` would otherwise count with
|
|
334
|
+
* a question after it), or the whole line as one closed HTML comment.
|
|
335
|
+
* @param {string} text - The first line, indent removed
|
|
336
|
+
* @returns {string} The statement inside, or the empty string
|
|
337
|
+
*/
|
|
338
|
+
function relayStatement(text) {
|
|
339
|
+
const plain = !text.includes("<!--") && !text.includes("-->");
|
|
340
|
+
if (plain) return text;
|
|
341
|
+
if (!text.startsWith("<!--")) return "";
|
|
342
|
+
const inner = text.slice("<!--".length);
|
|
343
|
+
const close = inner.indexOf("-->");
|
|
344
|
+
if (close === -1) return "";
|
|
345
|
+
if (inner.slice(close + "-->".length).trim() !== "") return "";
|
|
346
|
+
const statement = inner.slice(0, close);
|
|
347
|
+
return statement.includes("<!--") ? "" : statement.trim();
|
|
348
|
+
}
|
|
349
|
+
|
|
262
350
|
/**
|
|
263
351
|
* The reason keys of every hold a body DECLARES, deduplicated.
|
|
264
352
|
*
|
|
@@ -841,32 +929,98 @@ function isTrustedHumanComment(comment, trustedIds) {
|
|
|
841
929
|
return id.length > 0 && trustedIds.has(id);
|
|
842
930
|
}
|
|
843
931
|
|
|
932
|
+
/** Prefix of a list entry that names a relay account instead of a person. */
|
|
933
|
+
const RELAY_ENTRY = "relay:";
|
|
934
|
+
|
|
844
935
|
/**
|
|
845
|
-
*
|
|
936
|
+
* Whether a comment was written by an account the project named as a relay.
|
|
937
|
+
*
|
|
938
|
+
* Bot metadata does not disqualify it: a relay is named BECAUSE it is the
|
|
939
|
+
* automation account, and the project chose to let it carry a person's
|
|
940
|
+
* decision. What it may carry is decided per line, by {@link relayedForOnLine}.
|
|
941
|
+
* @param {unknown} comment - Structured provider comment
|
|
942
|
+
* @param {ReadonlySet<string>} relayIds - Account ids the project named as relays
|
|
943
|
+
* @returns {boolean} Whether a configured relay wrote the comment
|
|
944
|
+
*/
|
|
945
|
+
function isRelayComment(comment, relayIds) {
|
|
946
|
+
if (!comment || typeof comment !== "object" || Array.isArray(comment))
|
|
947
|
+
return false;
|
|
948
|
+
const id = stableActorId(
|
|
949
|
+
comment.authorId ??
|
|
950
|
+
comment.user?.id ??
|
|
951
|
+
comment.author?.id ??
|
|
952
|
+
comment.author?.accountId
|
|
953
|
+
);
|
|
954
|
+
return id.length > 0 && relayIds.has(id);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* The reason keys released for this item, deduplicated.
|
|
959
|
+
*
|
|
960
|
+
* Two kinds of comment can release a hold:
|
|
961
|
+
*
|
|
962
|
+
* 1. One written by an explicitly trusted PERSON, from their own tracker
|
|
963
|
+
* login. Known bots never qualify here, listed or not.
|
|
964
|
+
* 2. One written by an account the project named as a RELAY (a list entry of
|
|
965
|
+
* the form `relay:<stable account id>`, CodySwannGT/lisa#5190), on a line
|
|
966
|
+
* that names, before the reason, a person who is themselves on the list:
|
|
967
|
+
* `[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`.
|
|
968
|
+
*
|
|
969
|
+
* The second exists because the person often gives the decision where the
|
|
970
|
+
* agent asked for it, in chat, and the agent can only post from the automation
|
|
971
|
+
* account. It is opt-in by design: with no `relay:` entry, behavior is exactly
|
|
972
|
+
* the first rule. A project that names a relay accepts that whatever makes
|
|
973
|
+
* that account post the line can lift a hold. Nothing else relaxes: a relay
|
|
974
|
+
* that names nobody, names someone who is not a trusted person, or names
|
|
975
|
+
* itself or another relay (even one also listed as a person), releases
|
|
976
|
+
* nothing; only the first line of the relay's comment is read
|
|
977
|
+
* ({@link relayReleaseLines}); and an account the project did not name is
|
|
978
|
+
* never a relay whatever its comment says.
|
|
846
979
|
*
|
|
847
980
|
* Comments must retain authenticated provider authorship: normalized authorId,
|
|
848
|
-
* user.id, author.id or author.accountId. The caller supplies
|
|
849
|
-
* independently of comment content. Raw strings, missing IDs
|
|
850
|
-
*
|
|
981
|
+
* user.id, author.id or author.accountId. The caller supplies the list
|
|
982
|
+
* independently of comment content. Raw strings, missing IDs and an absent or
|
|
983
|
+
* empty list fail closed and cannot discharge a hold.
|
|
851
984
|
* @param {unknown} comments - Structured comments, any order
|
|
852
|
-
* @param {unknown} trustedHumanActorIds - Explicit trusted
|
|
985
|
+
* @param {unknown} trustedHumanActorIds - Explicit trusted person ids, and `relay:<id>` entries
|
|
853
986
|
* @returns {string[]} One key per authorized recorded release
|
|
854
987
|
*/
|
|
855
988
|
export function humanGateReleases(comments, trustedHumanActorIds = []) {
|
|
989
|
+
const entries = (
|
|
990
|
+
Array.isArray(trustedHumanActorIds) ? trustedHumanActorIds : []
|
|
991
|
+
)
|
|
992
|
+
.map(stableActorId)
|
|
993
|
+
.filter(Boolean);
|
|
856
994
|
const trustedIds = new Set(
|
|
857
|
-
|
|
858
|
-
|
|
995
|
+
entries.filter(entry => !entry.startsWith(RELAY_ENTRY))
|
|
996
|
+
);
|
|
997
|
+
const relayIds = new Set(
|
|
998
|
+
entries
|
|
999
|
+
.filter(entry => entry.startsWith(RELAY_ENTRY))
|
|
1000
|
+
.map(entry => entry.slice(RELAY_ENTRY.length).trim())
|
|
859
1001
|
.filter(Boolean)
|
|
860
1002
|
);
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
|
|
1003
|
+
// An account is a person or a relay, never both. Listing one both ways
|
|
1004
|
+
// (directly, or through a login a tracker resolves to the relay's id) makes
|
|
1005
|
+
// it a relay: it cannot release in its own name and cannot be relayed for.
|
|
1006
|
+
const people = new Set([...trustedIds].filter(id => !relayIds.has(id)));
|
|
1007
|
+
const declaring = entry =>
|
|
1008
|
+
declarativeText(entry.body ?? "")
|
|
866
1009
|
.split("\n")
|
|
867
|
-
.filter(line => declaresOnLine(line, HUMAN_GATE_RELEASE_MARKER))
|
|
868
|
-
|
|
869
|
-
|
|
1010
|
+
.filter(line => declaresOnLine(line, HUMAN_GATE_RELEASE_MARKER));
|
|
1011
|
+
const keys = (Array.isArray(comments) ? comments : []).flatMap(entry => {
|
|
1012
|
+
if (isTrustedHumanComment(entry, people))
|
|
1013
|
+
return declaring(entry).map(line =>
|
|
1014
|
+
reasonOnLine(line, HUMAN_GATE_RELEASE_MARKER)
|
|
1015
|
+
);
|
|
1016
|
+
if (isRelayComment(entry, relayIds))
|
|
1017
|
+
return relayReleaseLines(entry.body ?? "")
|
|
1018
|
+
.filter(line =>
|
|
1019
|
+
people.has(relayedForOnLine(line, HUMAN_GATE_RELEASE_MARKER))
|
|
1020
|
+
)
|
|
1021
|
+
.map(line => reasonOnLine(line, HUMAN_GATE_RELEASE_MARKER));
|
|
1022
|
+
return [];
|
|
1023
|
+
});
|
|
870
1024
|
return [...new Set(keys)];
|
|
871
1025
|
}
|
|
872
1026
|
|
|
@@ -1362,22 +1516,40 @@ export function planHumanGateRelease(input = {}) {
|
|
|
1362
1516
|
* its reason and a mistyped reason discharges nothing while looking like it
|
|
1363
1517
|
* did. The reason is echoed verbatim from the hold, so the pairing is visible
|
|
1364
1518
|
* to a reader as well as to the matcher.
|
|
1365
|
-
*
|
|
1519
|
+
*
|
|
1520
|
+
* `relayedFor` is for a release an automation account posts on a person's
|
|
1521
|
+
* instruction: the stable tracker id of that person, written before the reason
|
|
1522
|
+
* (see {@link humanGateReleases}). It counts only in a project that named the
|
|
1523
|
+
* posting account as a relay. A numeric id is accepted (GitHub's are
|
|
1524
|
+
* numbers); an id with a space in it is left out, so the line stays a direct
|
|
1525
|
+
* release that a relay's account cannot use.
|
|
1526
|
+
*
|
|
1527
|
+
* Every field is written on one line. A line break inside "what was decided"
|
|
1528
|
+
* would otherwise let text copied from a conversation start a second line with
|
|
1529
|
+
* its own release marker, for a different hold.
|
|
1530
|
+
* @param {{ reason?: unknown, decidedBy?: unknown, decision?: unknown, relayedFor?: unknown }} discharge - What was decided, and by whom
|
|
1366
1531
|
* @returns {string} Comment body carrying the release marker
|
|
1367
1532
|
*/
|
|
1368
1533
|
export function formatHumanGateRelease(discharge = {}) {
|
|
1369
|
-
const
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1534
|
+
const oneLine = value => trimmedString(value).replace(/\s*[\r\n]+\s*/gu, " ");
|
|
1535
|
+
const reason = oneLine(discharge.reason);
|
|
1536
|
+
// `id:4242` is how the list writes an account id, not how a release names
|
|
1537
|
+
// one: every reader compares the bare id, so the prefix is dropped here.
|
|
1538
|
+
const listed = stableActorId(discharge.relayedFor);
|
|
1539
|
+
const named = listed.startsWith("id:") ? listed.slice("id:".length) : listed;
|
|
1540
|
+
const relayedFor = /\s/u.test(named) ? "" : named;
|
|
1541
|
+
const declaration = [
|
|
1542
|
+
HUMAN_GATE_RELEASE_MARKER,
|
|
1543
|
+
...(relayedFor.length > 0 ? [`${RELAYED_FOR_KEY}${relayedFor}`] : []),
|
|
1544
|
+
...(reason.length > 0 ? [`${REASON_KEY}${reason}`] : []),
|
|
1545
|
+
].join(" ");
|
|
1374
1546
|
const lines = [declaration, "", "**The hold on this item is lifted.**", ""];
|
|
1375
1547
|
lines.push(
|
|
1376
1548
|
`- What was being asked: ${reason.length > 0 ? reason : "(the hold named no reason)"}`
|
|
1377
1549
|
);
|
|
1378
|
-
const decision =
|
|
1550
|
+
const decision = oneLine(discharge.decision);
|
|
1379
1551
|
if (decision.length > 0) lines.push(`- What was decided: ${decision}`);
|
|
1380
|
-
const decidedBy =
|
|
1552
|
+
const decidedBy = oneLine(discharge.decidedBy);
|
|
1381
1553
|
if (decidedBy.length > 0) lines.push(`- Decided by: ${decidedBy}`);
|
|
1382
1554
|
lines.push(
|
|
1383
1555
|
"- What happens next: this item goes back into the queue that agents build from."
|
|
@@ -27,6 +27,13 @@
|
|
|
27
27
|
* person, so it cannot answer a question or release a human hold: those
|
|
28
28
|
* readers drop it (`idComparableValues`, the answer matcher), and the
|
|
29
29
|
* validator refuses it in `operatorIds` and `trustedReleaseIds`.
|
|
30
|
+
* - `relay:<account id>` names an automation account that may RELAY a trusted
|
|
31
|
+
* person's hold release (CodySwannGT/lisa#5190), and is meaningful only in
|
|
32
|
+
* `trustedReleaseIds`. It is not a person. It matches nobody in any
|
|
33
|
+
* people-matching reader (there is no `relay` field to match), so it can
|
|
34
|
+
* never be an operator, author dispatched work, or answer a question. Only
|
|
35
|
+
* the hold-release check reads it, through {@link releaseComparableValues},
|
|
36
|
+
* and there it counts only for a release line that names a trusted person.
|
|
30
37
|
* - A plain entry (no prefix) keeps exactly the meaning each reader gave it
|
|
31
38
|
* before kind-keyed entries existed. Changing that is a later, breaking
|
|
32
39
|
* change.
|
|
@@ -49,7 +56,12 @@
|
|
|
49
56
|
*/
|
|
50
57
|
|
|
51
58
|
/** The kinds a prefixed entry may name. */
|
|
52
|
-
export const ID_ENTRY_KINDS = Object.freeze([
|
|
59
|
+
export const ID_ENTRY_KINDS = Object.freeze([
|
|
60
|
+
"login",
|
|
61
|
+
"id",
|
|
62
|
+
"integration",
|
|
63
|
+
"relay",
|
|
64
|
+
]);
|
|
53
65
|
|
|
54
66
|
/** A letters-only prefix at the start of an entry. */
|
|
55
67
|
const PREFIX = /^([A-Za-z]+):/;
|
|
@@ -61,7 +73,7 @@ const PREFIX = /^([A-Za-z]+):/;
|
|
|
61
73
|
const PLAIN_ID_STARTS = new Set(["qm"]);
|
|
62
74
|
|
|
63
75
|
/**
|
|
64
|
-
* @typedef {{ kind: "login" | "id" | "integration" | "plain", value: string }
|
|
76
|
+
* @typedef {{ kind: "login" | "id" | "integration" | "relay" | "plain", value: string }
|
|
65
77
|
* | { kind: "invalid", problem: "unknown-prefix" | "empty-value", prefix: string }} IdEntry
|
|
66
78
|
*/
|
|
67
79
|
|
|
@@ -131,3 +143,30 @@ export function idComparableValues(entries) {
|
|
|
131
143
|
.filter(entry => entry.kind === "plain" || entry.kind === "id")
|
|
132
144
|
.map(entry => entry.value);
|
|
133
145
|
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* What the hold-release check compares: the people an id-only comparator may
|
|
149
|
+
* hold ({@link idComparableValues}), then each relay account written back as
|
|
150
|
+
* `relay:<id>`. The release check in `intake-blocker-reprobe.mjs` reads a
|
|
151
|
+
* `relay:` entry as an account that may post a release for one of the people
|
|
152
|
+
* in the same list, and never as a person. Only release readers call this:
|
|
153
|
+
* passing its output to a reader that matches people would be harmless (no
|
|
154
|
+
* account id starts with `relay:`), and passing {@link idComparableValues} to
|
|
155
|
+
* a release reader silently drops every configured relay.
|
|
156
|
+
* @param {unknown} entries - The configured release list
|
|
157
|
+
* @returns {string[]} Person ids, then `relay:<id>` entries
|
|
158
|
+
*/
|
|
159
|
+
export function releaseComparableValues(entries) {
|
|
160
|
+
return [
|
|
161
|
+
// The release check reads any value that starts `relay:` as a relay. Only
|
|
162
|
+
// an entry WRITTEN as `relay:<id>` may be one, so a person value that
|
|
163
|
+
// would read that way (`id:relay:9`, or ` relay:9` with a space in front)
|
|
164
|
+
// is dropped: it names nobody, and validation refuses it.
|
|
165
|
+
...idComparableValues(entries).filter(
|
|
166
|
+
value => !value.trim().toLowerCase().startsWith("relay:")
|
|
167
|
+
),
|
|
168
|
+
...parseIdEntries(entries)
|
|
169
|
+
.filter(entry => entry.kind === "relay")
|
|
170
|
+
.map(entry => `relay:${entry.value}`),
|
|
171
|
+
];
|
|
172
|
+
}
|
|
@@ -176,6 +176,75 @@ export function adfText(node) {
|
|
|
176
176
|
return children.map(adfText).join(joiner);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/** Jira text marks that make a line something other than a statement. */
|
|
180
|
+
const NOT_STATED_MARKS = new Set(["code", "strike"]);
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Whether any text under a node is marked as code or struck out. A struck-out
|
|
184
|
+
* line is a retraction, not a statement.
|
|
185
|
+
* @param {unknown} node - Atlassian Document Format node
|
|
186
|
+
* @returns {boolean} True when some text carries such a mark
|
|
187
|
+
*/
|
|
188
|
+
function adfHasNotStatedMark(node) {
|
|
189
|
+
if (!node || typeof node !== "object") return false;
|
|
190
|
+
if (
|
|
191
|
+
Array.isArray(node.marks) &&
|
|
192
|
+
node.marks.some(mark => NOT_STATED_MARKS.has(mark?.type))
|
|
193
|
+
)
|
|
194
|
+
return true;
|
|
195
|
+
return Array.isArray(node.content) && node.content.some(adfHasNotStatedMark);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** Inline children that {@link adfText} renders in full. */
|
|
199
|
+
const TEXT_INLINES = new Set(["text", "hardBreak"]);
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Whether a paragraph holds something visible that {@link adfText} renders as
|
|
203
|
+
* nothing: an inline card, a mention, an emoji, media. A paragraph holding
|
|
204
|
+
* only a card would otherwise become a blank line, and the release after it
|
|
205
|
+
* would read as the comment's first line.
|
|
206
|
+
* @param {unknown} node - Atlassian Document Format paragraph
|
|
207
|
+
* @returns {boolean} True when such a child is present
|
|
208
|
+
*/
|
|
209
|
+
function adfHasUnrenderedInline(node) {
|
|
210
|
+
return (
|
|
211
|
+
Array.isArray(node?.content) &&
|
|
212
|
+
node.content.some(child => !TEXT_INLINES.has(child?.type))
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* A Jira comment as text, keeping one thing {@link adfText} throws away:
|
|
218
|
+
* whether a block is an ordinary paragraph.
|
|
219
|
+
*
|
|
220
|
+
* A hold release relayed by an automation account counts only as the first
|
|
221
|
+
* line of the comment, written plainly (CodySwannGT/lisa#5190). Flattened, a
|
|
222
|
+
* quoted line, a code block, a list item and a panel all look like that. So
|
|
223
|
+
* every line of a block that is not a plain paragraph (and of a paragraph
|
|
224
|
+
* that carries inline code or a strikethrough, or holds a card, mention, emoji
|
|
225
|
+
* or media that has no text here) is written behind a quote mark. A person's
|
|
226
|
+
* release reads the same as before, because their comment is read generously
|
|
227
|
+
* and a quote mark never hid a marker from it; only a relay, held to the
|
|
228
|
+
* exact form, is refused the quoted copy.
|
|
229
|
+
* @param {unknown} node - Comment body: a document, or text some paths return
|
|
230
|
+
* @returns {string} The comment as text
|
|
231
|
+
*/
|
|
232
|
+
export function adfCommentText(node) {
|
|
233
|
+
if (!node || typeof node !== "object" || node.type !== "doc")
|
|
234
|
+
return adfText(node);
|
|
235
|
+
const blocks = Array.isArray(node.content) ? node.content : [];
|
|
236
|
+
return blocks
|
|
237
|
+
.map(block => {
|
|
238
|
+
const plain =
|
|
239
|
+
block?.type === "paragraph" &&
|
|
240
|
+
!adfHasNotStatedMark(block) &&
|
|
241
|
+
!adfHasUnrenderedInline(block);
|
|
242
|
+
const lines = adfText(block).split("\n");
|
|
243
|
+
return (plain ? lines : lines.map(line => `> ${line}`)).join("\n");
|
|
244
|
+
})
|
|
245
|
+
.join("\n");
|
|
246
|
+
}
|
|
247
|
+
|
|
179
248
|
/**
|
|
180
249
|
* How many blockers still hold a GitHub issue.
|
|
181
250
|
*
|
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
`$ARGUMENTS` is one of:
|
|
24
34
|
|
|
@@ -25,6 +25,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
25
25
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
26
26
|
continue through the existing path and never override an independently declared caller hold.
|
|
27
27
|
|
|
28
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
29
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
30
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
31
|
+
names, before the reason, a trusted person from the same list:
|
|
32
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
33
|
+
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
|
|
34
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
35
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
36
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
37
|
+
|
|
28
38
|
|
|
29
39
|
Create or update a GitHub Issue with all required relationships, metadata, and quality gates. Every section below is mandatory. Thin issues are rejected.
|
|
30
40
|
|
|
@@ -378,7 +388,7 @@ If the label does not exist in the tracker, create it, or record that it could n
|
|
|
378
388
|
proceed — the marker still holds. Never file the label *instead of* the marker.
|
|
379
389
|
|
|
380
390
|
**Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
|
|
381
|
-
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human, and the
|
|
391
|
+
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human (or relayed for one by an account the project named as a relay), and the
|
|
382
392
|
next intake sweep then takes the marker label off and puts the item back in the build-ready role on
|
|
383
393
|
its own. Matching is per-reason so that a hold declared *after* an earlier release is not born
|
|
384
394
|
discharged. A keyless hold is legal and is discharged by a keyless release; a hold whose reason is a
|
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
All Atlassian operations in this skill go through `lisa-atlassian-access`. Do not call MCP tools or `acli` directly.
|
|
24
34
|
|
|
@@ -19,6 +19,8 @@ node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intak
|
|
|
19
19
|
node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intake-read --ref PROJ-123 --read comments
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
The same two commands are the read for a session with no ticket bound, for example a question about an issue: the task-readiness guard admits them, and its `work-item-unbound` refusal names them with the installed path. Do not bind a ticket just to read one.
|
|
23
|
+
|
|
22
24
|
The token route returns the full issue and remote links, and the comments command reads all pages in order. If the token is unavailable, the command can read the issue through an already authenticated `acli` session on the configured site. That route reports `remoteLinks: null` and returns comments only when the embedded page is complete. Use the Atlassian access owner's native Jira issue and remote-link reads against the configured cloud and issue key to fill missing data. Check the embedded comment total before treating native context as complete.
|
|
23
25
|
|
|
24
26
|
## Phase 1 — Resolve Context
|
|
@@ -25,6 +25,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
25
25
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
26
26
|
continue through the existing path and never override an independently declared caller hold.
|
|
27
27
|
|
|
28
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
29
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
30
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
31
|
+
names, before the reason, a trusted person from the same list:
|
|
32
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
33
|
+
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
|
|
34
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
35
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
36
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
37
|
+
|
|
28
38
|
|
|
29
39
|
All Atlassian operations in this skill go through `lisa-atlassian-access`. Do not call MCP tools or `acli` directly.
|
|
30
40
|
|
|
@@ -363,7 +373,7 @@ If the label does not exist in the tracker, create it, or record that it could n
|
|
|
363
373
|
proceed — the marker still holds. Never file the label *instead of* the marker.
|
|
364
374
|
|
|
365
375
|
**Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
|
|
366
|
-
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human, and the
|
|
376
|
+
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human (or relayed for one by an account the project named as a relay), and the
|
|
367
377
|
next intake sweep then takes the marker label off and puts the item back in the build-ready role on
|
|
368
378
|
its own. Matching is per-reason so that a hold declared *after* an earlier release is not born
|
|
369
379
|
discharged. A keyless hold is legal and is discharged by a keyless release; a hold whose reason is a
|
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
`$ARGUMENTS` is one of:
|
|
24
34
|
|
|
@@ -25,6 +25,8 @@ node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intak
|
|
|
25
25
|
node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intake-read --ref ENG-123 --read comments
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
The same two commands are the read for a session with no ticket bound, for example a question about an issue: the task-readiness guard admits them, and its `work-item-unbound` refusal names them with the installed path. Do not bind a ticket just to read one.
|
|
29
|
+
|
|
28
30
|
The issue response includes the primary body, team, and related graph fields. The comments command returns the entire paginated comment list or fails. Fetch related issues in the configured team with the same command and their issue keys. If a graph field reports another page, record the context as incomplete until those related records can be read through the access owner.
|
|
29
31
|
|
|
30
32
|
If the token route is unavailable, load `lisa-linear-access` and use its native Linear MCP fallback. List teams with the configured team key as `query`, verify the configured workspace and team, then read the issue by its key. Use the resulting issue identifier or UUID for the comment pages. This read-only path leaves the requirements header and access check to the normal task flow.
|
|
@@ -25,6 +25,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
25
25
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
26
26
|
continue through the existing path and never override an independently declared caller hold.
|
|
27
27
|
|
|
28
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
29
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
30
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
31
|
+
names, before the reason, a trusted person from the same list:
|
|
32
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
33
|
+
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
|
|
34
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
35
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
36
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
37
|
+
|
|
28
38
|
|
|
29
39
|
Create or update a Linear work item — Project (for Epics), Issue (for Stories), or sub-Issue (for Sub-tasks) — with all required relationships, metadata, and quality gates. Every section below is mandatory. Thin items are rejected.
|
|
30
40
|
|
|
@@ -364,7 +374,7 @@ proceed — the marker still holds. Never file the label *instead of* the marker
|
|
|
364
374
|
**Every marker reader must consult comments.** Use `classifyReadyCandidate` with labels, body, comments, the configured human-needed label, `humanOnly` and `humanGateMode` (from `humanGate.mode`), then `planHumanGateRelease` for any release actions. A historical body marker alone is not an active hold after its matching release; unreadable comments leave a hold in place.
|
|
365
375
|
|
|
366
376
|
**Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
|
|
367
|
-
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human, and the
|
|
377
|
+
`[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human (or relayed for one by an account the project named as a relay), and the
|
|
368
378
|
next intake sweep then takes the marker label off and puts the item back in the build-ready role on
|
|
369
379
|
its own. Matching is per-reason so that a hold declared *after* an earlier release is not born
|
|
370
380
|
discharged. A keyless hold is legal and is discharged by a keyless release; a hold whose reason is a
|
|
@@ -19,6 +19,16 @@ cannot discharge a hold. Keep the item held and report the missing authorization
|
|
|
19
19
|
replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
|
|
20
20
|
continue through the existing path and never override an independently declared caller hold.
|
|
21
21
|
|
|
22
|
+
One exception is opt-in. A project may name its automation account as a relay (`relay:<account id>`
|
|
23
|
+
in the list of who may release, in its committed settings and never on an instruction given in
|
|
24
|
+
conversation). That account's release then counts when it is the first line of the comment and
|
|
25
|
+
names, before the reason, a trusted person from the same list:
|
|
26
|
+
`[lisa-human-gate-release] relayed-for=<person id> reason=<slug>`. Put any explanation after it;
|
|
27
|
+
a copy that is quoted, in code, or further down the comment releases nothing. Post one only when a trusted person told you to release that hold, and say in the
|
|
28
|
+
comment who asked, where and when. When the project named no relay, do not post a release: tell the
|
|
29
|
+
person at once that it must come from their own tracker login, give them the exact text and a link
|
|
30
|
+
to the item, and never report the item as released (`ready-role-filing`, "Relayed releases").
|
|
31
|
+
|
|
22
32
|
|
|
23
33
|
Run one batch-**repair** cycle against the queue identified by `$ARGUMENTS`, or by merged GitHub
|
|
24
34
|
config when the queue is omitted and a GitHub source/tracker default is resolvable. Where `lisa-intake`
|
|
@@ -9,6 +9,7 @@ import { readTaskRequirements } from "./task-requirements.mjs";
|
|
|
9
9
|
import { lifecycleEvents, resetNativeEvent } from "./task-native-lifecycle.mjs";
|
|
10
10
|
import { intakeRead } from "./task-intake.mjs";
|
|
11
11
|
import { nativeContext } from "./task-native-context.mjs";
|
|
12
|
+
import { unboundRefusal, unboundWrite } from "./task-unbound.mjs";
|
|
12
13
|
import {
|
|
13
14
|
linearIntakeRead,
|
|
14
15
|
observeLinearIntake,
|
|
@@ -177,7 +178,8 @@ export function runTaskAction(argv = process.argv) {
|
|
|
177
178
|
result = failure("requirements-stale");
|
|
178
179
|
else if (hook && result.code === "no-active-task") {
|
|
179
180
|
if (cfg.provenance?.status === "absent") return;
|
|
180
|
-
|
|
181
|
+
if (unboundWrite(input, cfg)) return;
|
|
182
|
+
result = unboundRefusal(cfg);
|
|
181
183
|
} else if (hook && result.outcome === "NATIVE_OWNER_REQUIRED") {
|
|
182
184
|
const decision = nativeAction(cfg, header, result, input);
|
|
183
185
|
if (decision.allowed) result = { allowed: true, code: decision.code };
|