@codyswann/lisa 4.101.6 → 4.101.8
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/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +12 -7
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- 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/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +14 -11
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +14 -11
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +14 -11
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +14 -11
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +14 -11
- 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-expo-devin/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +14 -11
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +10 -5
- 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-rails-devin/skills/jira-evidence/SKILL.md +10 -5
- 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/skills/lisa-jira-evidence/SKILL.md +10 -5
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +14 -11
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +7 -3
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +10 -5
- package/plugins/src/expo/skills/jira-journey/SKILL.md +14 -11
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +10 -5
|
@@ -60,20 +60,25 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
60
60
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
63
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
64
|
+
|
|
65
|
+
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
66
|
+
|
|
63
67
|
```bash
|
|
64
|
-
|
|
68
|
+
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
69
|
+
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
65
70
|
```
|
|
66
71
|
|
|
67
|
-
|
|
72
|
+
Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
|
|
68
73
|
|
|
69
74
|
```bash
|
|
70
|
-
bash .claude/skills/jira-evidence/scripts/post-evidence.sh
|
|
75
|
+
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
|
|
71
76
|
```
|
|
72
77
|
|
|
73
|
-
|
|
78
|
+
### Example
|
|
74
79
|
|
|
75
80
|
```bash
|
|
76
|
-
|
|
81
|
+
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
77
82
|
```
|
|
78
83
|
|
|
79
84
|
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
@@ -120,10 +120,19 @@ evidence/
|
|
|
120
120
|
|
|
121
121
|
### Step 4: Generate Evidence Templates
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
|
|
126
|
+
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
127
|
+
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
|
|
131
|
+
|
|
132
|
+
After capturing all evidence, run the template generator with that release name:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
LISA_EVIDENCE_RELEASE=<name> python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
127
136
|
<TICKET_ID> \
|
|
128
137
|
<PR_NUMBER> \
|
|
129
138
|
<BRANCH_NAME> \
|
|
@@ -132,20 +141,14 @@ python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
|
132
141
|
|
|
133
142
|
This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.md` (GitHub markdown) with evidence formatted as code blocks.
|
|
134
143
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
144
|
+
Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
142
145
|
|
|
143
146
|
### Step 5: Post Evidence
|
|
144
147
|
|
|
145
|
-
Use the jira-evidence skill to post everything:
|
|
148
|
+
Use the jira-evidence skill to post everything, with the same release name as Step 4:
|
|
146
149
|
|
|
147
150
|
```bash
|
|
148
|
-
bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
151
|
+
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
149
152
|
```
|
|
150
153
|
|
|
151
154
|
### Step 6: Verify
|
|
@@ -843,44 +843,58 @@ function botTokenProblem(path) {
|
|
|
843
843
|
];
|
|
844
844
|
}
|
|
845
845
|
|
|
846
|
+
/**
|
|
847
|
+
* Strip every leading `login:` / `id:` prefix from an entry, so a value
|
|
848
|
+
* stacked behind several (`login:id:<v>`) is reached (CodySwannGT/lisa#4754).
|
|
849
|
+
* @param {string} entry One entry, already trimmed.
|
|
850
|
+
* @returns {string} The value after the last known prefix, trimmed.
|
|
851
|
+
*/
|
|
852
|
+
function stripIdEntryPrefixes(entry) {
|
|
853
|
+
const prefix = ID_ENTRY_PREFIX.exec(entry)?.[1];
|
|
854
|
+
return prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
|
|
855
|
+
? stripIdEntryPrefixes(entry.slice(prefix.length + 1).trim())
|
|
856
|
+
: entry;
|
|
857
|
+
}
|
|
858
|
+
|
|
846
859
|
/**
|
|
847
860
|
* Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
|
|
848
861
|
* (CodySwannGT/lisa#4719).
|
|
849
862
|
*
|
|
850
|
-
* The value after
|
|
851
|
-
* token pasted behind a prefix
|
|
852
|
-
*
|
|
863
|
+
* The value after one or more `login:` / `id:` prefixes is what gets tested,
|
|
864
|
+
* since a token pasted behind a prefix (or a stack of them, such as
|
|
865
|
+
* `login:id:<token>`; CodySwannGT/lisa#4754) is as leaked as a bare one. A
|
|
866
|
+
* legacy Jira accountId (`557058:<uuid>`) is token-shaped but is a real id,
|
|
867
|
+
* so it passes.
|
|
853
868
|
* @param {string} entry One entry.
|
|
854
869
|
* @param {string} path Where the entry sits.
|
|
855
870
|
* @returns {string[]} Problems found.
|
|
856
871
|
*/
|
|
857
872
|
function idEntryCredentials(entry, path) {
|
|
858
|
-
const
|
|
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;
|
|
873
|
+
const value = stripIdEntryPrefixes(entry.trim());
|
|
864
874
|
return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
|
|
865
875
|
? botTokenProblem(path)
|
|
866
876
|
: [];
|
|
867
877
|
}
|
|
868
878
|
|
|
869
879
|
/**
|
|
870
|
-
* Refuse each malformed kind-keyed entry, naming
|
|
871
|
-
* entry against nobody, so accepting it would silently
|
|
880
|
+
* Refuse each malformed kind-keyed entry, naming its location and prefix. A
|
|
881
|
+
* reader matches such an entry against nobody, so accepting it would silently
|
|
882
|
+
* drop a person. The refusal never repeats the entry's value: a token pasted
|
|
883
|
+
* behind an unknown prefix (`ID:<token>`) would otherwise land in terminals,
|
|
884
|
+
* CI logs and transcripts (CodySwannGT/lisa#4754).
|
|
872
885
|
* @param {string} key `operatorIds` or `trustedAuthorIds`.
|
|
873
886
|
* @param {readonly string[]} ids Entries, already known to be strings.
|
|
874
887
|
* @returns {string[]} Problems found.
|
|
875
888
|
*/
|
|
876
889
|
function idEntryProblems(key, ids) {
|
|
877
890
|
const prefixOf = entry => `${ID_ENTRY_PREFIX.exec(entry)[1]}:`;
|
|
878
|
-
return ids.flatMap(entry => {
|
|
891
|
+
return ids.flatMap((entry, i) => {
|
|
879
892
|
const kind = classifyIdEntry(entry);
|
|
893
|
+
const path = `sessionManager.${key}[${i}]`;
|
|
880
894
|
if (kind === "unknown-prefix") {
|
|
881
895
|
const prefix = prefixOf(entry);
|
|
882
896
|
return [
|
|
883
|
-
|
|
897
|
+
`${path} has an ` +
|
|
884
898
|
`unknown prefix ${JSON.stringify(prefix)}. Use login:<GitHub ` +
|
|
885
899
|
`login>, id:<numeric or tracker account id>, or a plain id; write ` +
|
|
886
900
|
`a tracker id that itself starts with letters and a colon as ` +
|
|
@@ -889,8 +903,7 @@ function idEntryProblems(key, ids) {
|
|
|
889
903
|
}
|
|
890
904
|
return kind === "empty-value"
|
|
891
905
|
? [
|
|
892
|
-
|
|
893
|
-
`empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
906
|
+
`${path} has an empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
894
907
|
`login or id after the prefix.`,
|
|
895
908
|
]
|
|
896
909
|
: [];
|
package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -177,9 +177,13 @@ template listed in `verification.completion.acceptedEvidenceReleases`, so
|
|
|
177
177
|
proof published before a rename or rotation keeps validating. Only releases in
|
|
178
178
|
the implementation repository are accepted.
|
|
179
179
|
|
|
180
|
-
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run. Skills resolve
|
|
181
|
+
it once with `evidence-release --ensure`, stop when that refuses, and pass the
|
|
182
|
+
printed name inline (`LISA_EVIDENCE_RELEASE=<name>`) on every later command,
|
|
183
|
+
because some agent runtimes start a new shell for each command and lose an
|
|
184
|
+
exported value; that keeps links and uploads on the same release. It must be
|
|
185
|
+
one of the accepted releases; `evidence-release --ensure` still creates and
|
|
186
|
+
capacity-checks it.
|
|
183
187
|
|
|
184
188
|
Creating an evidence release is a real GitHub release: it fires `release`
|
|
185
189
|
webhook and workflow events and adds a git tag of the same name. Workflows
|
|
@@ -60,20 +60,25 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
60
60
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
63
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
64
|
+
|
|
65
|
+
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
66
|
+
|
|
63
67
|
```bash
|
|
64
|
-
|
|
68
|
+
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
69
|
+
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
65
70
|
```
|
|
66
71
|
|
|
67
|
-
|
|
72
|
+
Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
|
|
68
73
|
|
|
69
74
|
```bash
|
|
70
|
-
bash .claude/skills/jira-evidence/scripts/post-evidence.sh
|
|
75
|
+
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
|
|
71
76
|
```
|
|
72
77
|
|
|
73
|
-
|
|
78
|
+
### Example
|
|
74
79
|
|
|
75
80
|
```bash
|
|
76
|
-
|
|
81
|
+
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
77
82
|
```
|
|
78
83
|
|
|
79
84
|
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
@@ -120,10 +120,19 @@ evidence/
|
|
|
120
120
|
|
|
121
121
|
### Step 4: Generate Evidence Templates
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
|
|
126
|
+
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
127
|
+
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
|
|
131
|
+
|
|
132
|
+
After capturing all evidence, run the template generator with that release name:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
LISA_EVIDENCE_RELEASE=<name> python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
127
136
|
<TICKET_ID> \
|
|
128
137
|
<PR_NUMBER> \
|
|
129
138
|
<BRANCH_NAME> \
|
|
@@ -132,20 +141,14 @@ python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
|
132
141
|
|
|
133
142
|
This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.md` (GitHub markdown) with evidence formatted as code blocks.
|
|
134
143
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
144
|
+
Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
142
145
|
|
|
143
146
|
### Step 5: Post Evidence
|
|
144
147
|
|
|
145
|
-
Use the jira-evidence skill to post everything:
|
|
148
|
+
Use the jira-evidence skill to post everything, with the same release name as Step 4:
|
|
146
149
|
|
|
147
150
|
```bash
|
|
148
|
-
bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
151
|
+
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
149
152
|
```
|
|
150
153
|
|
|
151
154
|
### Step 6: Verify
|
|
@@ -843,44 +843,58 @@ function botTokenProblem(path) {
|
|
|
843
843
|
];
|
|
844
844
|
}
|
|
845
845
|
|
|
846
|
+
/**
|
|
847
|
+
* Strip every leading `login:` / `id:` prefix from an entry, so a value
|
|
848
|
+
* stacked behind several (`login:id:<v>`) is reached (CodySwannGT/lisa#4754).
|
|
849
|
+
* @param {string} entry One entry, already trimmed.
|
|
850
|
+
* @returns {string} The value after the last known prefix, trimmed.
|
|
851
|
+
*/
|
|
852
|
+
function stripIdEntryPrefixes(entry) {
|
|
853
|
+
const prefix = ID_ENTRY_PREFIX.exec(entry)?.[1];
|
|
854
|
+
return prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
|
|
855
|
+
? stripIdEntryPrefixes(entry.slice(prefix.length + 1).trim())
|
|
856
|
+
: entry;
|
|
857
|
+
}
|
|
858
|
+
|
|
846
859
|
/**
|
|
847
860
|
* Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
|
|
848
861
|
* (CodySwannGT/lisa#4719).
|
|
849
862
|
*
|
|
850
|
-
* The value after
|
|
851
|
-
* token pasted behind a prefix
|
|
852
|
-
*
|
|
863
|
+
* The value after one or more `login:` / `id:` prefixes is what gets tested,
|
|
864
|
+
* since a token pasted behind a prefix (or a stack of them, such as
|
|
865
|
+
* `login:id:<token>`; CodySwannGT/lisa#4754) is as leaked as a bare one. A
|
|
866
|
+
* legacy Jira accountId (`557058:<uuid>`) is token-shaped but is a real id,
|
|
867
|
+
* so it passes.
|
|
853
868
|
* @param {string} entry One entry.
|
|
854
869
|
* @param {string} path Where the entry sits.
|
|
855
870
|
* @returns {string[]} Problems found.
|
|
856
871
|
*/
|
|
857
872
|
function idEntryCredentials(entry, path) {
|
|
858
|
-
const
|
|
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;
|
|
873
|
+
const value = stripIdEntryPrefixes(entry.trim());
|
|
864
874
|
return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
|
|
865
875
|
? botTokenProblem(path)
|
|
866
876
|
: [];
|
|
867
877
|
}
|
|
868
878
|
|
|
869
879
|
/**
|
|
870
|
-
* Refuse each malformed kind-keyed entry, naming
|
|
871
|
-
* entry against nobody, so accepting it would silently
|
|
880
|
+
* Refuse each malformed kind-keyed entry, naming its location and prefix. A
|
|
881
|
+
* reader matches such an entry against nobody, so accepting it would silently
|
|
882
|
+
* drop a person. The refusal never repeats the entry's value: a token pasted
|
|
883
|
+
* behind an unknown prefix (`ID:<token>`) would otherwise land in terminals,
|
|
884
|
+
* CI logs and transcripts (CodySwannGT/lisa#4754).
|
|
872
885
|
* @param {string} key `operatorIds` or `trustedAuthorIds`.
|
|
873
886
|
* @param {readonly string[]} ids Entries, already known to be strings.
|
|
874
887
|
* @returns {string[]} Problems found.
|
|
875
888
|
*/
|
|
876
889
|
function idEntryProblems(key, ids) {
|
|
877
890
|
const prefixOf = entry => `${ID_ENTRY_PREFIX.exec(entry)[1]}:`;
|
|
878
|
-
return ids.flatMap(entry => {
|
|
891
|
+
return ids.flatMap((entry, i) => {
|
|
879
892
|
const kind = classifyIdEntry(entry);
|
|
893
|
+
const path = `sessionManager.${key}[${i}]`;
|
|
880
894
|
if (kind === "unknown-prefix") {
|
|
881
895
|
const prefix = prefixOf(entry);
|
|
882
896
|
return [
|
|
883
|
-
|
|
897
|
+
`${path} has an ` +
|
|
884
898
|
`unknown prefix ${JSON.stringify(prefix)}. Use login:<GitHub ` +
|
|
885
899
|
`login>, id:<numeric or tracker account id>, or a plain id; write ` +
|
|
886
900
|
`a tracker id that itself starts with letters and a colon as ` +
|
|
@@ -889,8 +903,7 @@ function idEntryProblems(key, ids) {
|
|
|
889
903
|
}
|
|
890
904
|
return kind === "empty-value"
|
|
891
905
|
? [
|
|
892
|
-
|
|
893
|
-
`empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
906
|
+
`${path} has an empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
894
907
|
`login or id after the prefix.`,
|
|
895
908
|
]
|
|
896
909
|
: [];
|
package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -177,9 +177,13 @@ template listed in `verification.completion.acceptedEvidenceReleases`, so
|
|
|
177
177
|
proof published before a rename or rotation keeps validating. Only releases in
|
|
178
178
|
the implementation repository are accepted.
|
|
179
179
|
|
|
180
|
-
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run. Skills resolve
|
|
181
|
+
it once with `evidence-release --ensure`, stop when that refuses, and pass the
|
|
182
|
+
printed name inline (`LISA_EVIDENCE_RELEASE=<name>`) on every later command,
|
|
183
|
+
because some agent runtimes start a new shell for each command and lose an
|
|
184
|
+
exported value; that keeps links and uploads on the same release. It must be
|
|
185
|
+
one of the accepted releases; `evidence-release --ensure` still creates and
|
|
186
|
+
capacity-checks it.
|
|
183
187
|
|
|
184
188
|
Creating an evidence release is a real GitHub release: it fires `release`
|
|
185
189
|
webhook and workflow events and adds a git tag of the same name. Workflows
|
|
@@ -60,20 +60,25 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
60
60
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
63
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
64
|
+
|
|
65
|
+
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
66
|
+
|
|
63
67
|
```bash
|
|
64
|
-
|
|
68
|
+
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
69
|
+
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
65
70
|
```
|
|
66
71
|
|
|
67
|
-
|
|
72
|
+
Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
|
|
68
73
|
|
|
69
74
|
```bash
|
|
70
|
-
bash .claude/skills/jira-evidence/scripts/post-evidence.sh
|
|
75
|
+
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
|
|
71
76
|
```
|
|
72
77
|
|
|
73
|
-
|
|
78
|
+
### Example
|
|
74
79
|
|
|
75
80
|
```bash
|
|
76
|
-
|
|
81
|
+
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
77
82
|
```
|
|
78
83
|
|
|
79
84
|
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
@@ -120,10 +120,19 @@ evidence/
|
|
|
120
120
|
|
|
121
121
|
### Step 4: Generate Evidence Templates
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
|
-
|
|
126
|
+
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
127
|
+
export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
|
|
131
|
+
|
|
132
|
+
After capturing all evidence, run the template generator with that release name:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
LISA_EVIDENCE_RELEASE=<name> python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
127
136
|
<TICKET_ID> \
|
|
128
137
|
<PR_NUMBER> \
|
|
129
138
|
<BRANCH_NAME> \
|
|
@@ -132,20 +141,14 @@ python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
|
132
141
|
|
|
133
142
|
This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.md` (GitHub markdown) with evidence formatted as code blocks.
|
|
134
143
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
144
|
+
Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
142
145
|
|
|
143
146
|
### Step 5: Post Evidence
|
|
144
147
|
|
|
145
|
-
Use the jira-evidence skill to post everything:
|
|
148
|
+
Use the jira-evidence skill to post everything, with the same release name as Step 4:
|
|
146
149
|
|
|
147
150
|
```bash
|
|
148
|
-
bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
151
|
+
LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
|
|
149
152
|
```
|
|
150
153
|
|
|
151
154
|
### Step 6: Verify
|
|
@@ -843,44 +843,58 @@ function botTokenProblem(path) {
|
|
|
843
843
|
];
|
|
844
844
|
}
|
|
845
845
|
|
|
846
|
+
/**
|
|
847
|
+
* Strip every leading `login:` / `id:` prefix from an entry, so a value
|
|
848
|
+
* stacked behind several (`login:id:<v>`) is reached (CodySwannGT/lisa#4754).
|
|
849
|
+
* @param {string} entry One entry, already trimmed.
|
|
850
|
+
* @returns {string} The value after the last known prefix, trimmed.
|
|
851
|
+
*/
|
|
852
|
+
function stripIdEntryPrefixes(entry) {
|
|
853
|
+
const prefix = ID_ENTRY_PREFIX.exec(entry)?.[1];
|
|
854
|
+
return prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
|
|
855
|
+
? stripIdEntryPrefixes(entry.slice(prefix.length + 1).trim())
|
|
856
|
+
: entry;
|
|
857
|
+
}
|
|
858
|
+
|
|
846
859
|
/**
|
|
847
860
|
* Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
|
|
848
861
|
* (CodySwannGT/lisa#4719).
|
|
849
862
|
*
|
|
850
|
-
* The value after
|
|
851
|
-
* token pasted behind a prefix
|
|
852
|
-
*
|
|
863
|
+
* The value after one or more `login:` / `id:` prefixes is what gets tested,
|
|
864
|
+
* since a token pasted behind a prefix (or a stack of them, such as
|
|
865
|
+
* `login:id:<token>`; CodySwannGT/lisa#4754) is as leaked as a bare one. A
|
|
866
|
+
* legacy Jira accountId (`557058:<uuid>`) is token-shaped but is a real id,
|
|
867
|
+
* so it passes.
|
|
853
868
|
* @param {string} entry One entry.
|
|
854
869
|
* @param {string} path Where the entry sits.
|
|
855
870
|
* @returns {string[]} Problems found.
|
|
856
871
|
*/
|
|
857
872
|
function idEntryCredentials(entry, path) {
|
|
858
|
-
const
|
|
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;
|
|
873
|
+
const value = stripIdEntryPrefixes(entry.trim());
|
|
864
874
|
return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
|
|
865
875
|
? botTokenProblem(path)
|
|
866
876
|
: [];
|
|
867
877
|
}
|
|
868
878
|
|
|
869
879
|
/**
|
|
870
|
-
* Refuse each malformed kind-keyed entry, naming
|
|
871
|
-
* entry against nobody, so accepting it would silently
|
|
880
|
+
* Refuse each malformed kind-keyed entry, naming its location and prefix. A
|
|
881
|
+
* reader matches such an entry against nobody, so accepting it would silently
|
|
882
|
+
* drop a person. The refusal never repeats the entry's value: a token pasted
|
|
883
|
+
* behind an unknown prefix (`ID:<token>`) would otherwise land in terminals,
|
|
884
|
+
* CI logs and transcripts (CodySwannGT/lisa#4754).
|
|
872
885
|
* @param {string} key `operatorIds` or `trustedAuthorIds`.
|
|
873
886
|
* @param {readonly string[]} ids Entries, already known to be strings.
|
|
874
887
|
* @returns {string[]} Problems found.
|
|
875
888
|
*/
|
|
876
889
|
function idEntryProblems(key, ids) {
|
|
877
890
|
const prefixOf = entry => `${ID_ENTRY_PREFIX.exec(entry)[1]}:`;
|
|
878
|
-
return ids.flatMap(entry => {
|
|
891
|
+
return ids.flatMap((entry, i) => {
|
|
879
892
|
const kind = classifyIdEntry(entry);
|
|
893
|
+
const path = `sessionManager.${key}[${i}]`;
|
|
880
894
|
if (kind === "unknown-prefix") {
|
|
881
895
|
const prefix = prefixOf(entry);
|
|
882
896
|
return [
|
|
883
|
-
|
|
897
|
+
`${path} has an ` +
|
|
884
898
|
`unknown prefix ${JSON.stringify(prefix)}. Use login:<GitHub ` +
|
|
885
899
|
`login>, id:<numeric or tracker account id>, or a plain id; write ` +
|
|
886
900
|
`a tracker id that itself starts with letters and a colon as ` +
|
|
@@ -889,8 +903,7 @@ function idEntryProblems(key, ids) {
|
|
|
889
903
|
}
|
|
890
904
|
return kind === "empty-value"
|
|
891
905
|
? [
|
|
892
|
-
|
|
893
|
-
`empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
906
|
+
`${path} has an empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
|
|
894
907
|
`login or id after the prefix.`,
|
|
895
908
|
]
|
|
896
909
|
: [];
|
package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -177,9 +177,13 @@ template listed in `verification.completion.acceptedEvidenceReleases`, so
|
|
|
177
177
|
proof published before a rename or rotation keeps validating. Only releases in
|
|
178
178
|
the implementation repository are accepted.
|
|
179
179
|
|
|
180
|
-
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run. Skills resolve
|
|
181
|
+
it once with `evidence-release --ensure`, stop when that refuses, and pass the
|
|
182
|
+
printed name inline (`LISA_EVIDENCE_RELEASE=<name>`) on every later command,
|
|
183
|
+
because some agent runtimes start a new shell for each command and lose an
|
|
184
|
+
exported value; that keeps links and uploads on the same release. It must be
|
|
185
|
+
one of the accepted releases; `evidence-release --ensure` still creates and
|
|
186
|
+
capacity-checks it.
|
|
183
187
|
|
|
184
188
|
Creating an evidence release is a real GitHub release: it fires `release`
|
|
185
189
|
webhook and workflow events and adds a git tag of the same name. Workflows
|