@codyswann/lisa 8.2.11 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +50 -11
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/cdk/package-lisa/package.lisa.json +1 -1
- package/dist/cli/confined-project-read.d.ts +2 -1
- package/dist/cli/confined-project-read.d.ts.map +1 -1
- package/dist/cli/confined-project-read.js +22 -5
- package/dist/cli/confined-project-read.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -1
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +5 -3
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/github-read-issue-cmd.d.ts +62 -0
- package/dist/cli/github-read-issue-cmd.d.ts.map +1 -0
- package/dist/cli/github-read-issue-cmd.js +121 -0
- package/dist/cli/github-read-issue-cmd.js.map +1 -0
- package/dist/cli/github-reader-relationships.d.ts +41 -0
- package/dist/cli/github-reader-relationships.d.ts.map +1 -0
- package/dist/cli/github-reader-relationships.js +218 -0
- package/dist/cli/github-reader-relationships.js.map +1 -0
- package/dist/cli/github-reader-target.d.ts +24 -0
- package/dist/cli/github-reader-target.d.ts.map +1 -0
- package/dist/cli/github-reader-target.js +95 -0
- package/dist/cli/github-reader-target.js.map +1 -0
- package/dist/cli/github-reader-wire.d.ts +72 -0
- package/dist/cli/github-reader-wire.d.ts.map +1 -0
- package/dist/cli/github-reader-wire.js +125 -0
- package/dist/cli/github-reader-wire.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/learnings-overflow-cmd.js +2 -2
- package/dist/cli/learnings-overflow-cmd.js.map +1 -1
- package/dist/configs/jest/expo.d.ts.map +1 -1
- package/dist/configs/jest/expo.js +6 -0
- package/dist/configs/jest/expo.js.map +1 -1
- package/dist/controls/commands/attest-workspace.d.ts +1 -7
- package/dist/controls/commands/attest-workspace.d.ts.map +1 -1
- package/dist/controls/commands/attest-workspace.js +29 -12
- package/dist/controls/commands/attest-workspace.js.map +1 -1
- package/dist/controls/commands/declaration-check.d.ts.map +1 -1
- package/dist/controls/commands/declaration-check.js +7 -4
- package/dist/controls/commands/declaration-check.js.map +1 -1
- package/dist/controls/commands/seed.d.ts +1 -9
- package/dist/controls/commands/seed.d.ts.map +1 -1
- package/dist/controls/commands/seed.js +72 -65
- package/dist/controls/commands/seed.js.map +1 -1
- package/dist/controls/configure-road.d.ts +2 -0
- package/dist/controls/configure-road.d.ts.map +1 -1
- package/dist/controls/configure-road.js +18 -14
- package/dist/controls/configure-road.js.map +1 -1
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +3 -0
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-scratch.d.ts +42 -0
- package/dist/controls/proof-scratch.d.ts.map +1 -0
- package/dist/controls/proof-scratch.js +172 -0
- package/dist/controls/proof-scratch.js.map +1 -0
- package/dist/controls/register-evidence-rule.d.ts +2 -0
- package/dist/controls/register-evidence-rule.d.ts.map +1 -1
- package/dist/controls/register-evidence-rule.js +8 -7
- package/dist/controls/register-evidence-rule.js.map +1 -1
- package/dist/controls/register-rules.d.ts +2 -0
- package/dist/controls/register-rules.d.ts.map +1 -1
- package/dist/controls/register-rules.js.map +1 -1
- package/dist/controls/register-types.d.ts +2 -4
- package/dist/controls/register-types.d.ts.map +1 -1
- package/dist/controls/register-types.js.map +1 -1
- package/dist/controls/register.d.ts +2 -0
- package/dist/controls/register.d.ts.map +1 -1
- package/dist/controls/register.js +3 -1
- package/dist/controls/register.js.map +1 -1
- package/dist/controls/shipped-parts.d.ts +82 -0
- package/dist/controls/shipped-parts.d.ts.map +1 -0
- package/dist/controls/shipped-parts.js +216 -0
- package/dist/controls/shipped-parts.js.map +1 -0
- package/dist/core/learnings-document.d.ts +2 -3
- package/dist/core/learnings-document.d.ts.map +1 -1
- package/dist/core/learnings-document.js.map +1 -1
- package/dist/core/learnings-overflow.d.ts +4 -0
- package/dist/core/learnings-overflow.d.ts.map +1 -1
- package/dist/core/learnings-overflow.js +47 -24
- package/dist/core/learnings-overflow.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +18 -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 +101 -27
- package/dist/strategies/package-lisa-host-pins.d.ts +7 -12
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -1
- package/dist/strategies/package-lisa-host-pins.js +29 -30
- package/dist/strategies/package-lisa-host-pins.js.map +1 -1
- package/dist/strategies/package-lisa-range-intersection.d.ts +8 -0
- package/dist/strategies/package-lisa-range-intersection.d.ts.map +1 -0
- package/dist/strategies/package-lisa-range-intersection.js +73 -0
- package/dist/strategies/package-lisa-range-intersection.js.map +1 -0
- package/expo/package-lisa/package.lisa.json +8 -2
- package/harper-fabric/package-lisa/package.lisa.json +3 -2
- package/package.json +4 -4
- package/phaser/package-lisa/package.lisa.json +3 -2
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/lisa/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/lisa-agy/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-agy/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/lisa-copilot/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-copilot/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
- package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/lisa-cursor/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-cursor/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/lisa-devin/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/lisa-devin/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/src/base/rules/reference/config-resolution.md +1 -0
- package/plugins/src/base/skills/lisa-configure/SKILL.md +8 -7
- package/plugins/src/base/skills/lisa-github-read-issue/SKILL.md +22 -106
- package/plugins/src/base/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +37 -5
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +56 -49
- package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/answer-record.mjs +24 -20
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-answer-record.mjs +3 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/rails/copy-overwrite/lefthook.yml +3 -0
- package/rails/copy-overwrite/scripts/check-nightly-e2e-health.mjs +5115 -0
- package/rails/copy-overwrite/scripts/lisa-rails-ast-grep.mjs +31 -0
- package/rails/copy-overwrite/scripts/lisa-rails-gates.mjs +5 -0
- package/scripts/check-derived-artifacts.mjs +1 -0
- package/scripts/generate-nightly-e2e-guard-certificate.mjs +15 -1
- package/scripts/two-channel-couplings.json +37 -7
- package/scripts/verify-packed-learnings-contract.mjs +27 -1
- package/typescript/copy-overwrite/.prettierignore +2 -0
- package/typescript/copy-overwrite/scripts/lisa-typecheck.mjs +82 -0
- package/typescript/package-lisa/package.lisa.json +3 -2
|
@@ -918,6 +918,26 @@ function renderDefaults(config) {
|
|
|
918
918
|
return lines;
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
+
/**
|
|
922
|
+
* Project only the allowlisted notification level from the manager block.
|
|
923
|
+
* The manager's identities and Telegram settings stay outside startup context.
|
|
924
|
+
* @param {unknown} manager The resolved `sessionManager` block.
|
|
925
|
+
* @returns {string|null} A line for configured managers.
|
|
926
|
+
*/
|
|
927
|
+
function renderNotificationLevel(manager) {
|
|
928
|
+
if (!isObject(manager)) return null;
|
|
929
|
+
const notify = manager.notify;
|
|
930
|
+
const field = "sessionManager.notify.level";
|
|
931
|
+
if (notify !== undefined && !isObject(notify)) {
|
|
932
|
+
return `${field}: INVALID — sessionManager.notify must be an object.`;
|
|
933
|
+
}
|
|
934
|
+
const level = notify?.level;
|
|
935
|
+
if (level === undefined) return `${field}: all [Lisa built-in default]`;
|
|
936
|
+
return level === "all" || level === "asks-only"
|
|
937
|
+
? `${field}: ${level}`
|
|
938
|
+
: `${field}: INVALID — use "all" or "asks-only".`;
|
|
939
|
+
}
|
|
940
|
+
|
|
921
941
|
/**
|
|
922
942
|
* Render the whole value body, honouring {@link CONTEXT_BUDGET}.
|
|
923
943
|
* @param {object} config Resolved config.
|
|
@@ -934,6 +954,8 @@ function renderBody(config) {
|
|
|
934
954
|
// so it is the line that must survive.
|
|
935
955
|
/** @type {string[]} */
|
|
936
956
|
const lines = renderDefaults(config);
|
|
957
|
+
const notification = renderNotificationLevel(config.sessionManager);
|
|
958
|
+
if (notification !== null) lines.push(notification);
|
|
937
959
|
const gapLines = lines.length;
|
|
938
960
|
// The gates block is the one this module promises never elides, so the lines
|
|
939
961
|
// it produced are named here rather than inferred from their shape later.
|
|
@@ -943,7 +965,7 @@ function renderBody(config) {
|
|
|
943
965
|
// needs reading in full.
|
|
944
966
|
/** @type {Set<string>} */
|
|
945
967
|
const unelidable = new Set();
|
|
946
|
-
const seen = new Set();
|
|
968
|
+
const seen = new Set(notification === null ? [] : ["sessionManager"]);
|
|
947
969
|
for (const key of SUBTREE_ORDER) {
|
|
948
970
|
if (!(key in config)) continue;
|
|
949
971
|
seen.add(key);
|
|
@@ -750,6 +750,7 @@ operator chooses Telegram (`init-config --notify telegram`).
|
|
|
750
750
|
| `sessionManager.stall.requestionHours` | no | `4` | How long an unanswered worker question waits before the manager asks again (zero or positive). |
|
|
751
751
|
| `sessionManager.stall.orphanHours` | no | `2` | An item in the `claimed` (or `review`) role with no live worker and no tracker update for this long is presumed abandoned, and the orphan sweep finishes, returns or re-dispatches it. Anything updated more recently is left alone, which protects someone running `/lisa:implement` by hand (zero or positive). |
|
|
752
752
|
| `sessionManager.notify.provider` | no | `none` | `none` (no notification channel) or `telegram`. Absent, like an absent `notify` block, means `none`. Any other value fails validation. |
|
|
753
|
+
| `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. |
|
|
753
754
|
| `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>`. |
|
|
754
755
|
| `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 hold-release check compares ids only and ignores it). 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. |
|
|
755
756
|
| `sessionManager.trustedReleaseIds` | no | `trustedAuthorIds` | Optional, non-empty list of the **people** who may release a human hold (`blocked-plan`, the orphan sweep) and answer a question on the item. 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. |
|
|
@@ -149,10 +149,11 @@ It prints one JSON document. Read these fields:
|
|
|
149
149
|
| `seeded` | The checks it declared just now, each with the moment it runs at. |
|
|
150
150
|
| `declared_gates` | How many checks the declaration holds now. |
|
|
151
151
|
|
|
152
|
-
- **`paved`.**
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
- **`paved`.** Lisa ships checks for the whole repository's project type or for every folder
|
|
153
|
+
the audit named. The command declares the available shipped checks using each project's own
|
|
154
|
+
tasks. A folder check runs in that folder with its task runner. Already declared gates keep
|
|
155
|
+
their settings, and running the command again leaves the declarations unchanged.
|
|
156
|
+
**Go straight to step 7, and
|
|
156
157
|
skip step 8.** If
|
|
157
158
|
`declared_gates` is `0`, nothing could be declared because the repository does not yet have the
|
|
158
159
|
tasks those checks run: say so in your closing message, and that setting Lisa up for this
|
|
@@ -317,14 +318,14 @@ exist. Keep everything else in the file as it is.
|
|
|
317
318
|
|
|
318
319
|
### Step 7: Have the declaration checked against the audit
|
|
319
320
|
|
|
320
|
-
**Needs:** the declaration. **Hands on:** a declaration
|
|
321
|
+
**Needs:** the declaration. **Hands on:** a declaration supported by shipped checks or audit evidence.
|
|
321
322
|
|
|
322
323
|
```bash
|
|
323
324
|
lisa controls declaration-check
|
|
324
325
|
```
|
|
325
326
|
|
|
326
|
-
- **Exit 0.**
|
|
327
|
-
|
|
327
|
+
- **Exit 0.** Lisa reproduced the shipped folder checks from the local task manifests and
|
|
328
|
+
confirmed audit support for any parts declared from findings.
|
|
328
329
|
- **Any other exit.** Each line printed is one problem, naming the gate and the part. A part that
|
|
329
330
|
names a place the audit did not report, rests on a question nobody answered or on an answer
|
|
330
331
|
about something else, or serves a requirement the audit still asks about is refused. Correct the
|
|
@@ -14,20 +14,23 @@ Repository name for scoped comments and logs: `basename $(git rev-parse --show-t
|
|
|
14
14
|
|
|
15
15
|
## Phase 1 — Resolve Context
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
2. Parse `$ARGUMENTS`. Accept either:
|
|
19
|
-
- `<org>/<repo>#<number>` token, OR
|
|
20
|
-
- `https://github.com/<org>/<repo>/issues/<number>` URL.
|
|
21
|
-
|
|
22
|
-
If `$ARGUMENTS` is just `#<number>` or `<number>`, resolve `<org>/<repo>` from `.lisa.config.json` (`github.org` / `github.repo`).
|
|
23
|
-
3. If the input doesn't parse cleanly, stop and report. Do NOT guess.
|
|
17
|
+
Pass the issue number, `<org>/<repo>#<number>`, or GitHub issue URL to the reader from the Lisa checkout. The reader resolves `.lisa.config.local.json` over `.lisa.config.json` before any GitHub request. A bare number uses `github.org` and `github.repo`. Configuration or syntax failure stops the read.
|
|
24
18
|
|
|
25
19
|
## Phase 2 — Fetch Primary Issue
|
|
26
20
|
|
|
27
21
|
```bash
|
|
28
|
-
|
|
22
|
+
lisa --no-update-check github-read-issue '<issue-ref>'
|
|
29
23
|
```
|
|
30
24
|
|
|
25
|
+
Use `issue`, `comments`, `graph`, `timeline`, and `pullRequests` from the returned JSON. The reader checks the native GitHub session and requests repository data on its existing identity. A failed required read stops the operation. Report the exact diagnostic before work.
|
|
26
|
+
|
|
27
|
+
`project` describes only the repository's configured coordination service:
|
|
28
|
+
|
|
29
|
+
- `unconfigured` means repository reads ran without Projects requests or scope requirements.
|
|
30
|
+
- `verified` supplies metadata for the one configured Project. It establishes the Project's identity, with issue membership still unknown.
|
|
31
|
+
- `unverified` carries the exact warning for an unavailable best-effort Project. Preserve the warning and continue with verified repository data.
|
|
32
|
+
- A failure of a required Project read exits with its exact diagnostic. Stop before claiming work or returning a complete context bundle.
|
|
33
|
+
|
|
31
34
|
Extract and preserve:
|
|
32
35
|
|
|
33
36
|
### Metadata
|
|
@@ -63,46 +66,11 @@ Any other `##` section: capture under `extra_sections` so callers can see PRDs t
|
|
|
63
66
|
|
|
64
67
|
### Comments
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
- Credentials, reproduction steps
|
|
68
|
-
- Status updates from stakeholders
|
|
69
|
-
- Decisions
|
|
70
|
-
- Triage headers like `[<repo>]`
|
|
71
|
-
|
|
72
|
-
Pagination is unconditional — never skip `--paginate` because an issue looks short.
|
|
69
|
+
Use every comment returned in `comments`, including author, body, and creation time. The reader flattens native pages and verifies the count against the issue before it returns a bundle. Flag reproduction details, status updates, decisions, and scoped triage headers. Handle credential-shaped text according to the existing privacy rules.
|
|
73
70
|
|
|
74
71
|
## Phase 3 — Fetch Sub-issue Graph (Parent + Children)
|
|
75
72
|
|
|
76
|
-
GitHub native sub-
|
|
77
|
-
|
|
78
|
-
```graphql
|
|
79
|
-
query($org:String!,$repo:String!,$number:Int!){
|
|
80
|
-
repository(owner:$org,name:$repo){
|
|
81
|
-
issue(number:$number){
|
|
82
|
-
id
|
|
83
|
-
parent { number title state url repository { nameWithOwner } }
|
|
84
|
-
subIssues(first: 100) {
|
|
85
|
-
nodes {
|
|
86
|
-
number title state url
|
|
87
|
-
repository { nameWithOwner }
|
|
88
|
-
labels(first: 50) { nodes { name } }
|
|
89
|
-
assignees(first: 5) { nodes { login } }
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
gh api graphql -f query='<above>' -F org=<org> -F repo=<repo> -F number=<number>
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Capture:
|
|
102
|
-
- **Parent sub-issue**: number, title, state, url, repo.
|
|
103
|
-
- **Child sub-issues**: list with number, title, state, url, repo, labels (especially `type:` and `status:`), assignees.
|
|
104
|
-
|
|
105
|
-
If the GraphQL `parent` / `subIssues` fields aren't available (older GHES), fall back to parsing `Parent: #<n>` text in the body and recording sub-issue text references — note "GraphQL sub-issues unavailable" in the bundle so callers know parent-link is text-based.
|
|
73
|
+
Use `graph.parent` and every item in `graph.children`, with repository, number, title, state, URL, labels, and assignees where returned. When the GitHub Enterprise schema lacks native parent or sub-issue support, `graph.warning` preserves the provider message. In that case parse the body's `Parent: #<n>` and sub-issue text references and label them as text-based.
|
|
106
74
|
|
|
107
75
|
## Phase 4 — Parse Issue Links from Body
|
|
108
76
|
|
|
@@ -121,7 +89,7 @@ For each parsed reference, fetch the linked issue/PR:
|
|
|
121
89
|
|
|
122
90
|
```bash
|
|
123
91
|
gh issue view <link-number> --repo <link-org>/<link-repo> --json number,title,state,labels,assignees,url
|
|
124
|
-
gh pr view <link-number> --repo <link-org>/<link-repo> --json number,title,state,reviewDecision,
|
|
92
|
+
gh pr view <link-number> --repo <link-org>/<link-repo> --json number,title,state,reviewDecision,mergedAt,url,reviewRequests,reviews,comments
|
|
125
93
|
```
|
|
126
94
|
|
|
127
95
|
For each linked **issue**, capture: number, title, state, type (from labels), status (from labels), assignees, url.
|
|
@@ -134,72 +102,17 @@ For each linked **PR**, capture: number, title, state, mergedAt, reviewDecision,
|
|
|
134
102
|
|
|
135
103
|
If the primary issue has a parent sub-issue (i.e., is a Story / Task / Sub-task / Improvement under an Epic):
|
|
136
104
|
|
|
137
|
-
1.
|
|
138
|
-
2.
|
|
105
|
+
1. Read the parent Epic with the Phase 2 command for its native reference. Preserve the full body, all comments, and Validation Journey when present.
|
|
106
|
+
2. Use `graph.children` from the parent's response to identify siblings. Filter out the primary issue itself.
|
|
139
107
|
3. For each sibling, capture: number, title, type label, status label, assignee, url. Read the first paragraph of each sibling's body for context. If a sibling has `status:in-progress` with an assignee different from the primary issue's assignee, **flag prominently** so the caller can avoid duplicate work.
|
|
140
108
|
|
|
141
109
|
If the primary issue IS an Epic, capture all children via Phase 3's `subIssues` traversal (already done).
|
|
142
110
|
|
|
143
111
|
## Phase 6 — Fetch Linked PRs and Label-Event History
|
|
144
112
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
query='query($org:String!,$repo:String!,$number:Int!,$cursor:String){
|
|
149
|
-
repository(owner:$org,name:$repo){
|
|
150
|
-
issue(number:$number){
|
|
151
|
-
closedByPullRequestsReferences(first:50){
|
|
152
|
-
nodes{number title state merged mergedAt url repository{nameWithOwner}}
|
|
153
|
-
}
|
|
154
|
-
timelineItems(
|
|
155
|
-
first:100
|
|
156
|
-
after:$cursor
|
|
157
|
-
itemTypes:[CROSS_REFERENCED_EVENT,LABELED_EVENT,UNLABELED_EVENT]
|
|
158
|
-
){
|
|
159
|
-
pageInfo{hasNextPage endCursor}
|
|
160
|
-
nodes{
|
|
161
|
-
...on CrossReferencedEvent{
|
|
162
|
-
createdAt
|
|
163
|
-
actor{login}
|
|
164
|
-
source{...on PullRequest{number title state url repository{nameWithOwner}}}
|
|
165
|
-
}
|
|
166
|
-
...on LabeledEvent{
|
|
167
|
-
createdAt
|
|
168
|
-
actor{login}
|
|
169
|
-
label{name}
|
|
170
|
-
}
|
|
171
|
-
...on UnlabeledEvent{
|
|
172
|
-
createdAt
|
|
173
|
-
actor{login}
|
|
174
|
-
label{name}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}'
|
|
181
|
-
|
|
182
|
-
cursor=null
|
|
183
|
-
while :; do
|
|
184
|
-
if [ "$cursor" = null ]; then
|
|
185
|
-
page=$(gh api graphql -f query="$query" -F org=<org> -F repo=<repo> -F number=<number>)
|
|
186
|
-
else
|
|
187
|
-
page=$(gh api graphql -f query="$query" -F org=<org> -F repo=<repo> -F number=<number> -f cursor="$cursor")
|
|
188
|
-
fi
|
|
189
|
-
printf '%s\n' "$page"
|
|
190
|
-
has_next=$(printf '%s\n' "$page" | jq -r '.data.repository.issue.timelineItems.pageInfo.hasNextPage')
|
|
191
|
-
cursor=$(printf '%s\n' "$page" | jq -r '.data.repository.issue.timelineItems.pageInfo.endCursor')
|
|
192
|
-
[ "$has_next" = true ] || break
|
|
193
|
-
done
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
Capture:
|
|
197
|
-
- **Linked PRs**: PR number, title, state, mergedAt, repo, url. Dedupe with PRs found in Phase 4. Preserve the existing `CrossReferencedEvent` behavior for PR linkage; widening the query must not change that consumer shape.
|
|
198
|
-
- **Label-event history**: chronological `LabeledEvent` and `UnlabeledEvent` entries with event kind, label name, actor login, and `createdAt`. Preserve oldest→newest order across all pages. Status labels (`status:*`) are the GitHub transition history that downstream rejection detection consumes, but keep non-status label events too so callers can audit the full label stream.
|
|
113
|
+
Use the native `pullRequests` list from the Phase 2 command and deduplicate it against body references. Include each PR's actual base, head, review status, reviews, and unresolved threads. Surface any warning on a linked PR as incomplete access to that PR.
|
|
199
114
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
For each PR, fetch unresolved review comments via `gh pr view <num> --repo <org>/<repo> --json reviews,reviewThreads`.
|
|
115
|
+
Use `timeline.events` for the label-event history, preserving oldest-to-newest ordering and the label, actor, and time on each event. Status labels remain the transition history and other label events stay available for audit. If `timeline.warning` is present, record the history as unknown with the provider error. A missing history does not remove separately verified PR links or stop the build.
|
|
203
116
|
|
|
204
117
|
## Phase 7 — Assemble Context Bundle
|
|
205
118
|
|
|
@@ -278,6 +191,9 @@ Produce a single structured output that the caller can pass verbatim to downstre
|
|
|
278
191
|
### Body-referenced (`Resolves #<n>`)
|
|
279
192
|
<per-PR block>
|
|
280
193
|
|
|
194
|
+
## Project coordination
|
|
195
|
+
<status and configured Project metadata or exact warning from the reader>
|
|
196
|
+
|
|
281
197
|
## Label-Event History
|
|
282
198
|
- Status: <known|unknown>
|
|
283
199
|
- Events:
|
|
@@ -298,7 +214,7 @@ Produce a single structured output that the caller can pass verbatim to downstre
|
|
|
298
214
|
|
|
299
215
|
- Never summarize or truncate the primary issue's body or Validation Journey section.
|
|
300
216
|
- Never skip a link type, even if it seems unrelated — the agent downstream decides relevance.
|
|
301
|
-
-
|
|
217
|
+
- For an additional linked issue or PR read, capture any access error and carry it with that link. If the Phase 2 command stopped, report its diagnostic before proceeding with work.
|
|
302
218
|
- Flag in-flight sibling work prominently so the caller can avoid duplicate implementation.
|
|
303
219
|
- If the issue has no parent sub-issue, state this explicitly — do not silently skip Phase 5.
|
|
304
220
|
- Output is pure context. This skill never modifies the issue.
|
|
@@ -18,7 +18,7 @@ Callers (planning skills, lifecycle skills) invoke this skill at:
|
|
|
18
18
|
|
|
19
19
|
| Milestone | What to post | Suggested role |
|
|
20
20
|
|-----------|--------------|----------------|
|
|
21
|
-
| Plan created | Plan contents (sections + ordered tasks) as a comment | `
|
|
21
|
+
| Plan created | Plan contents (sections + ordered tasks) as a comment | `claimed` |
|
|
22
22
|
| Implementation in progress | Branch URL + first commit | `claimed` |
|
|
23
23
|
| PR ready for review | PR URL + summary, the implementation handoff comment | `review` — **optional; omitted by most projects, in which case there is no transition to suggest** |
|
|
24
24
|
| PR merged | Merge SHA + deploy environment (if known) | env-keyed `done`, **then run Phase 4b — mandatory when the merge target is a non-terminal env branch** |
|
|
@@ -71,7 +71,7 @@ Sections:
|
|
|
71
71
|
|
|
72
72
|
Tasks: 7 ordered items.
|
|
73
73
|
|
|
74
|
-
Next: implementation begins. Suggested state:
|
|
74
|
+
Next: implementation begins. Suggested state: **<state resolved from linear.workflow.claimed>**.
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
## Phase 3 — Post Comment
|
|
@@ -101,7 +101,7 @@ Resolve the suggestion by role, and **say nothing when the role is unset**:
|
|
|
101
101
|
|
|
102
102
|
| Milestone | Role to resolve | When the role is unset |
|
|
103
103
|
|---|---|---|
|
|
104
|
-
| `plan-created` | `
|
|
104
|
+
| `plan-created` | `claimed` | required — report a setup defect |
|
|
105
105
|
| `implementation-in-progress` | `claimed` | required — report a setup defect |
|
|
106
106
|
| `pr-ready` | `review` | **optional — suggest no transition; the Issue stays in `claimed`** |
|
|
107
107
|
| `pr-merged` | `done` for the PR's target env (via `deploy.branches`) | required — report a setup defect |
|