@codyswann/lisa 4.100.1 → 4.100.2

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.
Files changed (93) hide show
  1. package/all/copy-overwrite/scripts/check-third-party-review-evidence.mjs +172 -30
  2. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  3. package/dist/core/lisa-owned-hash-ledger.js +6 -0
  4. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  5. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  6. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  7. package/dist/core/upstream-evidence-manifest.js +6 -3
  8. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  9. package/package.json +4 -4
  10. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  12. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  13. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  14. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  15. package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  16. package/plugins/lisa-agy/plugin.json +1 -1
  17. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  18. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  19. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  21. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  22. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  26. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  28. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  29. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  31. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  32. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  34. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  35. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  36. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-expo-agy/plugin.json +1 -1
  39. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  43. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  50. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  53. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  57. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  59. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  60. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  64. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  66. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  67. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  71. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-rails-agy/plugin.json +1 -1
  74. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  78. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  80. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  81. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  85. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  87. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  88. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  92. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  93. package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
package/package.json CHANGED
@@ -196,7 +196,7 @@
196
196
  "qs": "^6.16.0"
197
197
  },
198
198
  "name": "@codyswann/lisa",
199
- "version": "4.100.1",
199
+ "version": "4.100.2",
200
200
  "description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
201
201
  "main": "dist/index.js",
202
202
  "exports": {
@@ -359,7 +359,7 @@
359
359
  "test": "tests"
360
360
  },
361
361
  "types": "./dist/index.d.ts",
362
- "lisaReleaseCommit": "615bd302c7f3c98778e2c5cc9bd8696dc9a114d3",
363
- "gitHead": "615bd302c7f3c98778e2c5cc9bd8696dc9a114d3",
364
- "lisaReleaseTag": "v4.100.1"
362
+ "lisaReleaseCommit": "978305505839cdf1e48df75f6fd0eebe2342d727",
363
+ "gitHead": "978305505839cdf1e48df75f6fd0eebe2342d727",
364
+ "lisaReleaseTag": "v4.100.2"
365
365
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1173,9 +1173,14 @@ never says "permission". Reading a check run needs `checks: read`.
1173
1173
  `pull-request` moment names one third-party reviewer: `await` is the status
1174
1174
  context or check-run name it reports under, `posted_by` (when declared) is the
1175
1175
  app whose check run counts, and `evidence.proof` is the exact **reviewed-when**
1176
- phrase. The shipped prover reads both representations and returns the whole
1177
- verdict. Take the verdict from it, not from your own reading of the payloads
1178
- above:
1176
+ phrase. A gate that declares `posted_by` is proven **only** by that app's check
1177
+ run: no commit status counts for it, because a status does not show which app
1178
+ posted it and anyone with commit-status write access can post one under the
1179
+ reviewer's name. The prover lists each status it refused that way, with the
1180
+ reason, beside the check runs it set aside. A gate without `posted_by` still
1181
+ reads statuses as before. The shipped prover reads both representations and
1182
+ returns the whole verdict. Take the verdict from it, not from your own reading
1183
+ of the payloads above:
1179
1184
 
1180
1185
  ```bash
1181
1186
  node scripts/check-third-party-review-evidence.mjs --sha <head-sha> --repo <owner>/<repo> --json
@@ -516,6 +516,20 @@ const INTERVAL_UNITS = { s: 1, m: 60, h: 3600, d: 86_400 };
516
516
  */
517
517
  const TOKEN_VALUE = /^\d{5,}:[A-Za-z0-9_-]{30,}$/;
518
518
 
519
+ /**
520
+ * A legacy Jira Cloud accountId (`557058:<uuid>`), which `TOKEN_VALUE` also
521
+ * matches (CodySwannGT/lisa#4719).
522
+ *
523
+ * Exempted only for `operatorIds` / `trustedAuthorIds` entries, where a Jira
524
+ * project puts exactly this id. A Telegram token's secret half is never in
525
+ * canonical UUID form, so the exemption lets no token through.
526
+ */
527
+ const JIRA_LEGACY_ACCOUNT_ID =
528
+ /^\d+:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
529
+
530
+ /** The block's id lists, whose entries the credential scan reads by kind. */
531
+ const ID_LIST_KEYS = new Set(["operatorIds", "trustedAuthorIds"]);
532
+
519
533
  /** Key names that only ever hold a credential. */
520
534
  const CREDENTIAL_KEY = /token|secret|password|passwd|api[-_]?key|credential/i;
521
535
 
@@ -745,6 +759,10 @@ function isNameKeyedMap(segments) {
745
759
  * (#4555; the state dir's 0600 dotenv file only when no provider is
746
760
  * configured), so a token here is both leaked and unused. The value is never
747
761
  * echoed.
762
+ *
763
+ * An `operatorIds` / `trustedAuthorIds` entry is scanned by kind instead
764
+ * (`idEntryCredentials`), so a token behind `id:` / `login:` is still caught
765
+ * and a legacy Jira accountId is not mistaken for one (CodySwannGT/lisa#4719).
748
766
  * @param {unknown} value Subtree.
749
767
  * @param {string} path Dotted path so far, for messages.
750
768
  * @param {readonly string[] | null} [segments] Object keys from the block root;
@@ -753,18 +771,14 @@ function isNameKeyedMap(segments) {
753
771
  */
754
772
  function findCredentials(value, path, segments = []) {
755
773
  if (typeof value === "string") {
756
- return TOKEN_VALUE.test(value.trim())
757
- ? [
758
- `${path} looks like a bot token. Tokens never go in config: ` +
759
- `remove it, and store the token in the project's secrets ` +
760
- `provider with session-manager.mjs store-token ` +
761
- `(/lisa:setup:session-manager runs it).`,
762
- ]
763
- : [];
774
+ return TOKEN_VALUE.test(value.trim()) ? botTokenProblem(path) : [];
764
775
  }
765
776
  if (Array.isArray(value)) {
777
+ const isIdList = segments?.length === 1 && ID_LIST_KEYS.has(segments[0]);
766
778
  return value.flatMap((item, i) =>
767
- findCredentials(item, `${path}[${i}]`, null)
779
+ isIdList && typeof item === "string"
780
+ ? idEntryCredentials(item, `${path}[${i}]`)
781
+ : findCredentials(item, `${path}[${i}]`, null)
768
782
  );
769
783
  }
770
784
  if (!isPlainObject(value)) return [];
@@ -815,6 +829,43 @@ export function classifyIdEntry(entry) {
815
829
  return entry.slice(prefix.length + 1).trim() === "" ? "empty-value" : prefix;
816
830
  }
817
831
 
832
+ /**
833
+ * The refusal for a token-shaped value, naming only its path.
834
+ * @param {string} path Where the value sits.
835
+ * @returns {string[]} The one problem.
836
+ */
837
+ function botTokenProblem(path) {
838
+ return [
839
+ `${path} looks like a bot token. Tokens never go in config: ` +
840
+ `remove it, and store the token in the project's secrets ` +
841
+ `provider with session-manager.mjs store-token ` +
842
+ `(/lisa:setup:session-manager runs it).`,
843
+ ];
844
+ }
845
+
846
+ /**
847
+ * Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
848
+ * (CodySwannGT/lisa#4719).
849
+ *
850
+ * The value after a `login:` / `id:` prefix is what gets tested, since a
851
+ * token pasted behind a prefix is as leaked as a bare one. A legacy Jira
852
+ * accountId (`557058:<uuid>`) is token-shaped but is a real id, so it passes.
853
+ * @param {string} entry One entry.
854
+ * @param {string} path Where the entry sits.
855
+ * @returns {string[]} Problems found.
856
+ */
857
+ function idEntryCredentials(entry, path) {
858
+ const trimmed = entry.trim();
859
+ const prefix = ID_ENTRY_PREFIX.exec(trimmed)?.[1];
860
+ const value =
861
+ prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
862
+ ? trimmed.slice(prefix.length + 1).trim()
863
+ : trimmed;
864
+ return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
865
+ ? botTokenProblem(path)
866
+ : [];
867
+ }
868
+
818
869
  /**
819
870
  * Refuse each malformed kind-keyed entry, naming it. A reader matches such an
820
871
  * entry against nobody, so accepting it would silently drop a person.
@@ -1171,9 +1171,14 @@ never says "permission". Reading a check run needs `checks: read`.
1171
1171
  `pull-request` moment names one third-party reviewer: `await` is the status
1172
1172
  context or check-run name it reports under, `posted_by` (when declared) is the
1173
1173
  app whose check run counts, and `evidence.proof` is the exact **reviewed-when**
1174
- phrase. The shipped prover reads both representations and returns the whole
1175
- verdict. Take the verdict from it, not from your own reading of the payloads
1176
- above:
1174
+ phrase. A gate that declares `posted_by` is proven **only** by that app's check
1175
+ run: no commit status counts for it, because a status does not show which app
1176
+ posted it and anyone with commit-status write access can post one under the
1177
+ reviewer's name. The prover lists each status it refused that way, with the
1178
+ reason, beside the check runs it set aside. A gate without `posted_by` still
1179
+ reads statuses as before. The shipped prover reads both representations and
1180
+ returns the whole verdict. Take the verdict from it, not from your own reading
1181
+ of the payloads above:
1177
1182
 
1178
1183
  ```bash
1179
1184
  node scripts/check-third-party-review-evidence.mjs --sha <head-sha> --repo <owner>/<repo> --json
@@ -516,6 +516,20 @@ const INTERVAL_UNITS = { s: 1, m: 60, h: 3600, d: 86_400 };
516
516
  */
517
517
  const TOKEN_VALUE = /^\d{5,}:[A-Za-z0-9_-]{30,}$/;
518
518
 
519
+ /**
520
+ * A legacy Jira Cloud accountId (`557058:<uuid>`), which `TOKEN_VALUE` also
521
+ * matches (CodySwannGT/lisa#4719).
522
+ *
523
+ * Exempted only for `operatorIds` / `trustedAuthorIds` entries, where a Jira
524
+ * project puts exactly this id. A Telegram token's secret half is never in
525
+ * canonical UUID form, so the exemption lets no token through.
526
+ */
527
+ const JIRA_LEGACY_ACCOUNT_ID =
528
+ /^\d+:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
529
+
530
+ /** The block's id lists, whose entries the credential scan reads by kind. */
531
+ const ID_LIST_KEYS = new Set(["operatorIds", "trustedAuthorIds"]);
532
+
519
533
  /** Key names that only ever hold a credential. */
520
534
  const CREDENTIAL_KEY = /token|secret|password|passwd|api[-_]?key|credential/i;
521
535
 
@@ -745,6 +759,10 @@ function isNameKeyedMap(segments) {
745
759
  * (#4555; the state dir's 0600 dotenv file only when no provider is
746
760
  * configured), so a token here is both leaked and unused. The value is never
747
761
  * echoed.
762
+ *
763
+ * An `operatorIds` / `trustedAuthorIds` entry is scanned by kind instead
764
+ * (`idEntryCredentials`), so a token behind `id:` / `login:` is still caught
765
+ * and a legacy Jira accountId is not mistaken for one (CodySwannGT/lisa#4719).
748
766
  * @param {unknown} value Subtree.
749
767
  * @param {string} path Dotted path so far, for messages.
750
768
  * @param {readonly string[] | null} [segments] Object keys from the block root;
@@ -753,18 +771,14 @@ function isNameKeyedMap(segments) {
753
771
  */
754
772
  function findCredentials(value, path, segments = []) {
755
773
  if (typeof value === "string") {
756
- return TOKEN_VALUE.test(value.trim())
757
- ? [
758
- `${path} looks like a bot token. Tokens never go in config: ` +
759
- `remove it, and store the token in the project's secrets ` +
760
- `provider with session-manager.mjs store-token ` +
761
- `(/lisa:setup:session-manager runs it).`,
762
- ]
763
- : [];
774
+ return TOKEN_VALUE.test(value.trim()) ? botTokenProblem(path) : [];
764
775
  }
765
776
  if (Array.isArray(value)) {
777
+ const isIdList = segments?.length === 1 && ID_LIST_KEYS.has(segments[0]);
766
778
  return value.flatMap((item, i) =>
767
- findCredentials(item, `${path}[${i}]`, null)
779
+ isIdList && typeof item === "string"
780
+ ? idEntryCredentials(item, `${path}[${i}]`)
781
+ : findCredentials(item, `${path}[${i}]`, null)
768
782
  );
769
783
  }
770
784
  if (!isPlainObject(value)) return [];
@@ -815,6 +829,43 @@ export function classifyIdEntry(entry) {
815
829
  return entry.slice(prefix.length + 1).trim() === "" ? "empty-value" : prefix;
816
830
  }
817
831
 
832
+ /**
833
+ * The refusal for a token-shaped value, naming only its path.
834
+ * @param {string} path Where the value sits.
835
+ * @returns {string[]} The one problem.
836
+ */
837
+ function botTokenProblem(path) {
838
+ return [
839
+ `${path} looks like a bot token. Tokens never go in config: ` +
840
+ `remove it, and store the token in the project's secrets ` +
841
+ `provider with session-manager.mjs store-token ` +
842
+ `(/lisa:setup:session-manager runs it).`,
843
+ ];
844
+ }
845
+
846
+ /**
847
+ * Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
848
+ * (CodySwannGT/lisa#4719).
849
+ *
850
+ * The value after a `login:` / `id:` prefix is what gets tested, since a
851
+ * token pasted behind a prefix is as leaked as a bare one. A legacy Jira
852
+ * accountId (`557058:<uuid>`) is token-shaped but is a real id, so it passes.
853
+ * @param {string} entry One entry.
854
+ * @param {string} path Where the entry sits.
855
+ * @returns {string[]} Problems found.
856
+ */
857
+ function idEntryCredentials(entry, path) {
858
+ const trimmed = entry.trim();
859
+ const prefix = ID_ENTRY_PREFIX.exec(trimmed)?.[1];
860
+ const value =
861
+ prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
862
+ ? trimmed.slice(prefix.length + 1).trim()
863
+ : trimmed;
864
+ return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
865
+ ? botTokenProblem(path)
866
+ : [];
867
+ }
868
+
818
869
  /**
819
870
  * Refuse each malformed kind-keyed entry, naming it. A reader matches such an
820
871
  * entry against nobody, so accepting it would silently drop a person.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1171,9 +1171,14 @@ never says "permission". Reading a check run needs `checks: read`.
1171
1171
  `pull-request` moment names one third-party reviewer: `await` is the status
1172
1172
  context or check-run name it reports under, `posted_by` (when declared) is the
1173
1173
  app whose check run counts, and `evidence.proof` is the exact **reviewed-when**
1174
- phrase. The shipped prover reads both representations and returns the whole
1175
- verdict. Take the verdict from it, not from your own reading of the payloads
1176
- above:
1174
+ phrase. A gate that declares `posted_by` is proven **only** by that app's check
1175
+ run: no commit status counts for it, because a status does not show which app
1176
+ posted it and anyone with commit-status write access can post one under the
1177
+ reviewer's name. The prover lists each status it refused that way, with the
1178
+ reason, beside the check runs it set aside. A gate without `posted_by` still
1179
+ reads statuses as before. The shipped prover reads both representations and
1180
+ returns the whole verdict. Take the verdict from it, not from your own reading
1181
+ of the payloads above:
1177
1182
 
1178
1183
  ```bash
1179
1184
  node scripts/check-third-party-review-evidence.mjs --sha <head-sha> --repo <owner>/<repo> --json
@@ -516,6 +516,20 @@ const INTERVAL_UNITS = { s: 1, m: 60, h: 3600, d: 86_400 };
516
516
  */
517
517
  const TOKEN_VALUE = /^\d{5,}:[A-Za-z0-9_-]{30,}$/;
518
518
 
519
+ /**
520
+ * A legacy Jira Cloud accountId (`557058:<uuid>`), which `TOKEN_VALUE` also
521
+ * matches (CodySwannGT/lisa#4719).
522
+ *
523
+ * Exempted only for `operatorIds` / `trustedAuthorIds` entries, where a Jira
524
+ * project puts exactly this id. A Telegram token's secret half is never in
525
+ * canonical UUID form, so the exemption lets no token through.
526
+ */
527
+ const JIRA_LEGACY_ACCOUNT_ID =
528
+ /^\d+:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
529
+
530
+ /** The block's id lists, whose entries the credential scan reads by kind. */
531
+ const ID_LIST_KEYS = new Set(["operatorIds", "trustedAuthorIds"]);
532
+
519
533
  /** Key names that only ever hold a credential. */
520
534
  const CREDENTIAL_KEY = /token|secret|password|passwd|api[-_]?key|credential/i;
521
535
 
@@ -745,6 +759,10 @@ function isNameKeyedMap(segments) {
745
759
  * (#4555; the state dir's 0600 dotenv file only when no provider is
746
760
  * configured), so a token here is both leaked and unused. The value is never
747
761
  * echoed.
762
+ *
763
+ * An `operatorIds` / `trustedAuthorIds` entry is scanned by kind instead
764
+ * (`idEntryCredentials`), so a token behind `id:` / `login:` is still caught
765
+ * and a legacy Jira accountId is not mistaken for one (CodySwannGT/lisa#4719).
748
766
  * @param {unknown} value Subtree.
749
767
  * @param {string} path Dotted path so far, for messages.
750
768
  * @param {readonly string[] | null} [segments] Object keys from the block root;
@@ -753,18 +771,14 @@ function isNameKeyedMap(segments) {
753
771
  */
754
772
  function findCredentials(value, path, segments = []) {
755
773
  if (typeof value === "string") {
756
- return TOKEN_VALUE.test(value.trim())
757
- ? [
758
- `${path} looks like a bot token. Tokens never go in config: ` +
759
- `remove it, and store the token in the project's secrets ` +
760
- `provider with session-manager.mjs store-token ` +
761
- `(/lisa:setup:session-manager runs it).`,
762
- ]
763
- : [];
774
+ return TOKEN_VALUE.test(value.trim()) ? botTokenProblem(path) : [];
764
775
  }
765
776
  if (Array.isArray(value)) {
777
+ const isIdList = segments?.length === 1 && ID_LIST_KEYS.has(segments[0]);
766
778
  return value.flatMap((item, i) =>
767
- findCredentials(item, `${path}[${i}]`, null)
779
+ isIdList && typeof item === "string"
780
+ ? idEntryCredentials(item, `${path}[${i}]`)
781
+ : findCredentials(item, `${path}[${i}]`, null)
768
782
  );
769
783
  }
770
784
  if (!isPlainObject(value)) return [];
@@ -815,6 +829,43 @@ export function classifyIdEntry(entry) {
815
829
  return entry.slice(prefix.length + 1).trim() === "" ? "empty-value" : prefix;
816
830
  }
817
831
 
832
+ /**
833
+ * The refusal for a token-shaped value, naming only its path.
834
+ * @param {string} path Where the value sits.
835
+ * @returns {string[]} The one problem.
836
+ */
837
+ function botTokenProblem(path) {
838
+ return [
839
+ `${path} looks like a bot token. Tokens never go in config: ` +
840
+ `remove it, and store the token in the project's secrets ` +
841
+ `provider with session-manager.mjs store-token ` +
842
+ `(/lisa:setup:session-manager runs it).`,
843
+ ];
844
+ }
845
+
846
+ /**
847
+ * Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
848
+ * (CodySwannGT/lisa#4719).
849
+ *
850
+ * The value after a `login:` / `id:` prefix is what gets tested, since a
851
+ * token pasted behind a prefix is as leaked as a bare one. A legacy Jira
852
+ * accountId (`557058:<uuid>`) is token-shaped but is a real id, so it passes.
853
+ * @param {string} entry One entry.
854
+ * @param {string} path Where the entry sits.
855
+ * @returns {string[]} Problems found.
856
+ */
857
+ function idEntryCredentials(entry, path) {
858
+ const trimmed = entry.trim();
859
+ const prefix = ID_ENTRY_PREFIX.exec(trimmed)?.[1];
860
+ const value =
861
+ prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
862
+ ? trimmed.slice(prefix.length + 1).trim()
863
+ : trimmed;
864
+ return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
865
+ ? botTokenProblem(path)
866
+ : [];
867
+ }
868
+
818
869
  /**
819
870
  * Refuse each malformed kind-keyed entry, naming it. A reader matches such an
820
871
  * entry against nobody, so accepting it would silently drop a person.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1171,9 +1171,14 @@ never says "permission". Reading a check run needs `checks: read`.
1171
1171
  `pull-request` moment names one third-party reviewer: `await` is the status
1172
1172
  context or check-run name it reports under, `posted_by` (when declared) is the
1173
1173
  app whose check run counts, and `evidence.proof` is the exact **reviewed-when**
1174
- phrase. The shipped prover reads both representations and returns the whole
1175
- verdict. Take the verdict from it, not from your own reading of the payloads
1176
- above:
1174
+ phrase. A gate that declares `posted_by` is proven **only** by that app's check
1175
+ run: no commit status counts for it, because a status does not show which app
1176
+ posted it and anyone with commit-status write access can post one under the
1177
+ reviewer's name. The prover lists each status it refused that way, with the
1178
+ reason, beside the check runs it set aside. A gate without `posted_by` still
1179
+ reads statuses as before. The shipped prover reads both representations and
1180
+ returns the whole verdict. Take the verdict from it, not from your own reading
1181
+ of the payloads above:
1177
1182
 
1178
1183
  ```bash
1179
1184
  node scripts/check-third-party-review-evidence.mjs --sha <head-sha> --repo <owner>/<repo> --json
@@ -516,6 +516,20 @@ const INTERVAL_UNITS = { s: 1, m: 60, h: 3600, d: 86_400 };
516
516
  */
517
517
  const TOKEN_VALUE = /^\d{5,}:[A-Za-z0-9_-]{30,}$/;
518
518
 
519
+ /**
520
+ * A legacy Jira Cloud accountId (`557058:<uuid>`), which `TOKEN_VALUE` also
521
+ * matches (CodySwannGT/lisa#4719).
522
+ *
523
+ * Exempted only for `operatorIds` / `trustedAuthorIds` entries, where a Jira
524
+ * project puts exactly this id. A Telegram token's secret half is never in
525
+ * canonical UUID form, so the exemption lets no token through.
526
+ */
527
+ const JIRA_LEGACY_ACCOUNT_ID =
528
+ /^\d+:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
529
+
530
+ /** The block's id lists, whose entries the credential scan reads by kind. */
531
+ const ID_LIST_KEYS = new Set(["operatorIds", "trustedAuthorIds"]);
532
+
519
533
  /** Key names that only ever hold a credential. */
520
534
  const CREDENTIAL_KEY = /token|secret|password|passwd|api[-_]?key|credential/i;
521
535
 
@@ -745,6 +759,10 @@ function isNameKeyedMap(segments) {
745
759
  * (#4555; the state dir's 0600 dotenv file only when no provider is
746
760
  * configured), so a token here is both leaked and unused. The value is never
747
761
  * echoed.
762
+ *
763
+ * An `operatorIds` / `trustedAuthorIds` entry is scanned by kind instead
764
+ * (`idEntryCredentials`), so a token behind `id:` / `login:` is still caught
765
+ * and a legacy Jira accountId is not mistaken for one (CodySwannGT/lisa#4719).
748
766
  * @param {unknown} value Subtree.
749
767
  * @param {string} path Dotted path so far, for messages.
750
768
  * @param {readonly string[] | null} [segments] Object keys from the block root;
@@ -753,18 +771,14 @@ function isNameKeyedMap(segments) {
753
771
  */
754
772
  function findCredentials(value, path, segments = []) {
755
773
  if (typeof value === "string") {
756
- return TOKEN_VALUE.test(value.trim())
757
- ? [
758
- `${path} looks like a bot token. Tokens never go in config: ` +
759
- `remove it, and store the token in the project's secrets ` +
760
- `provider with session-manager.mjs store-token ` +
761
- `(/lisa:setup:session-manager runs it).`,
762
- ]
763
- : [];
774
+ return TOKEN_VALUE.test(value.trim()) ? botTokenProblem(path) : [];
764
775
  }
765
776
  if (Array.isArray(value)) {
777
+ const isIdList = segments?.length === 1 && ID_LIST_KEYS.has(segments[0]);
766
778
  return value.flatMap((item, i) =>
767
- findCredentials(item, `${path}[${i}]`, null)
779
+ isIdList && typeof item === "string"
780
+ ? idEntryCredentials(item, `${path}[${i}]`)
781
+ : findCredentials(item, `${path}[${i}]`, null)
768
782
  );
769
783
  }
770
784
  if (!isPlainObject(value)) return [];
@@ -815,6 +829,43 @@ export function classifyIdEntry(entry) {
815
829
  return entry.slice(prefix.length + 1).trim() === "" ? "empty-value" : prefix;
816
830
  }
817
831
 
832
+ /**
833
+ * The refusal for a token-shaped value, naming only its path.
834
+ * @param {string} path Where the value sits.
835
+ * @returns {string[]} The one problem.
836
+ */
837
+ function botTokenProblem(path) {
838
+ return [
839
+ `${path} looks like a bot token. Tokens never go in config: ` +
840
+ `remove it, and store the token in the project's secrets ` +
841
+ `provider with session-manager.mjs store-token ` +
842
+ `(/lisa:setup:session-manager runs it).`,
843
+ ];
844
+ }
845
+
846
+ /**
847
+ * Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
848
+ * (CodySwannGT/lisa#4719).
849
+ *
850
+ * The value after a `login:` / `id:` prefix is what gets tested, since a
851
+ * token pasted behind a prefix is as leaked as a bare one. A legacy Jira
852
+ * accountId (`557058:<uuid>`) is token-shaped but is a real id, so it passes.
853
+ * @param {string} entry One entry.
854
+ * @param {string} path Where the entry sits.
855
+ * @returns {string[]} Problems found.
856
+ */
857
+ function idEntryCredentials(entry, path) {
858
+ const trimmed = entry.trim();
859
+ const prefix = ID_ENTRY_PREFIX.exec(trimmed)?.[1];
860
+ const value =
861
+ prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
862
+ ? trimmed.slice(prefix.length + 1).trim()
863
+ : trimmed;
864
+ return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
865
+ ? botTokenProblem(path)
866
+ : [];
867
+ }
868
+
818
869
  /**
819
870
  * Refuse each malformed kind-keyed entry, naming it. A reader matches such an
820
871
  * entry against nobody, so accepting it would silently drop a person.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.100.1",
3
+ "version": "4.100.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1171,9 +1171,14 @@ never says "permission". Reading a check run needs `checks: read`.
1171
1171
  `pull-request` moment names one third-party reviewer: `await` is the status
1172
1172
  context or check-run name it reports under, `posted_by` (when declared) is the
1173
1173
  app whose check run counts, and `evidence.proof` is the exact **reviewed-when**
1174
- phrase. The shipped prover reads both representations and returns the whole
1175
- verdict. Take the verdict from it, not from your own reading of the payloads
1176
- above:
1174
+ phrase. A gate that declares `posted_by` is proven **only** by that app's check
1175
+ run: no commit status counts for it, because a status does not show which app
1176
+ posted it and anyone with commit-status write access can post one under the
1177
+ reviewer's name. The prover lists each status it refused that way, with the
1178
+ reason, beside the check runs it set aside. A gate without `posted_by` still
1179
+ reads statuses as before. The shipped prover reads both representations and
1180
+ returns the whole verdict. Take the verdict from it, not from your own reading
1181
+ of the payloads above:
1177
1182
 
1178
1183
  ```bash
1179
1184
  node scripts/check-third-party-review-evidence.mjs --sha <head-sha> --repo <owner>/<repo> --json