@codyswann/lisa 4.23.0 → 4.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +1 -1
- package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +80 -18
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +6 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- 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 -11
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/block-no-verify.sh +80 -18
- package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +2 -2
- package/package.json +3 -3
- 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-github-build-intake/SKILL.md +3 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-github-prd-intake/SKILL.md +6 -14
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-prd/SKILL.md +8 -17
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/parse-plan.py +5 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +7 -4
- package/plugins/lisa/hooks/block-no-verify.sh +80 -18
- package/plugins/lisa/scripts/rollup-blocker-classification.mjs +9 -0
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +3 -11
- package/plugins/lisa/skills/lisa-github-prd-intake/SKILL.md +6 -14
- package/plugins/lisa/skills/lisa-github-write-prd/SKILL.md +8 -17
- package/plugins/lisa/skills/lisa-jira-journey/scripts/parse-plan.py +5 -1
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +7 -4
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/rollup-blocker-classification.mjs +9 -0
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +3 -11
- package/plugins/lisa-agy/skills/lisa-github-prd-intake/SKILL.md +6 -14
- package/plugins/lisa-agy/skills/lisa-github-write-prd/SKILL.md +8 -17
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/parse-plan.py +5 -1
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +7 -4
- 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-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-no-verify.sh +80 -18
- package/plugins/lisa-copilot/scripts/rollup-blocker-classification.mjs +9 -0
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +3 -11
- package/plugins/lisa-copilot/skills/lisa-github-prd-intake/SKILL.md +6 -14
- package/plugins/lisa-copilot/skills/lisa-github-write-prd/SKILL.md +8 -17
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/parse-plan.py +5 -1
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +7 -4
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-no-verify.sh +80 -18
- package/plugins/lisa-cursor/scripts/rollup-blocker-classification.mjs +9 -0
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +3 -11
- package/plugins/lisa-cursor/skills/lisa-github-prd-intake/SKILL.md +6 -14
- package/plugins/lisa-cursor/skills/lisa-github-write-prd/SKILL.md +8 -17
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/parse-plan.py +5 -1
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +7 -4
- 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-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-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-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-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-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-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-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/src/base/hooks/block-no-verify.sh +80 -18
- package/plugins/src/base/scripts/rollup-blocker-classification.mjs +9 -0
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +3 -11
- package/plugins/src/base/skills/lisa-github-prd-intake/SKILL.md +6 -14
- package/plugins/src/base/skills/lisa-github-write-prd/SKILL.md +8 -17
- package/plugins/src/base/skills/lisa-jira-journey/scripts/parse-plan.py +5 -1
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +7 -4
- package/typescript/copy-overwrite/scripts/check-skipped-required-checks.mjs +1 -1
|
@@ -219,6 +219,25 @@ COMMAND_SEPARATORS = {
|
|
|
219
219
|
SHELL_PROGRAMS = {"bash", "dash", "ksh", "sh", "zsh"}
|
|
220
220
|
MAX_SHELL_NESTING = 8
|
|
221
221
|
|
|
222
|
+
# Prefix options accepted by `env` before the command name. Value-taking
|
|
223
|
+
# options are separate because their operand must never be mistaken for the
|
|
224
|
+
# command (`env -u bash -c ...` consumes `bash` as the variable name).
|
|
225
|
+
ENV_OPTIONS_NO_VALUE = {"-i", "--ignore-environment", "-0", "--null"}
|
|
226
|
+
ENV_OPTIONS_SEPARATE_VALUE = {
|
|
227
|
+
"-u", "--unset", "-C", "--chdir", "-S", "--split-string",
|
|
228
|
+
"-a", "--argv0",
|
|
229
|
+
}
|
|
230
|
+
ENV_OPTIONS_INLINE_VALUE = (
|
|
231
|
+
"--unset=", "--chdir=", "--split-string=", "--argv0=",
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
# Shell options whose following token is an operand, not another option. The
|
|
235
|
+
# generic recursive scanner must step over these before looking for `-c`.
|
|
236
|
+
SHELL_OPTIONS_SEPARATE_VALUE = {
|
|
237
|
+
"-o", "+o", "-O", "+O", "--rcfile", "--init-file",
|
|
238
|
+
}
|
|
239
|
+
SHELL_OPTIONS_INLINE_VALUE = ("--rcfile=", "--init-file=")
|
|
240
|
+
|
|
222
241
|
# git's own options that take a SEPARATE value token, which therefore must be
|
|
223
242
|
# skipped when looking for the subcommand: `git -c core.hooksPath=x commit` and
|
|
224
243
|
# `git -C /repo commit` both reach `commit`.
|
|
@@ -379,9 +398,59 @@ def shell_starts_command(tokens, index):
|
|
|
379
398
|
prefix = tokens[start + 1:index]
|
|
380
399
|
if not prefix:
|
|
381
400
|
return True
|
|
382
|
-
if prefix[0]
|
|
383
|
-
|
|
384
|
-
|
|
401
|
+
if prefix[0].rsplit("/", 1)[-1] != "env":
|
|
402
|
+
return all("=" in token and not token.startswith("=") for token in prefix)
|
|
403
|
+
|
|
404
|
+
cursor = 1
|
|
405
|
+
while cursor < len(prefix):
|
|
406
|
+
token = prefix[cursor]
|
|
407
|
+
if token == "--":
|
|
408
|
+
return cursor == len(prefix) - 1
|
|
409
|
+
if "=" in token and not token.startswith("=") and not token.startswith("-"):
|
|
410
|
+
cursor += 1
|
|
411
|
+
continue
|
|
412
|
+
if token in ENV_OPTIONS_NO_VALUE or token.startswith(ENV_OPTIONS_INLINE_VALUE):
|
|
413
|
+
cursor += 1
|
|
414
|
+
continue
|
|
415
|
+
if token in ENV_OPTIONS_SEPARATE_VALUE:
|
|
416
|
+
# If the option has no operand inside the prefix, the shell token
|
|
417
|
+
# itself is that operand and therefore is not command position.
|
|
418
|
+
if cursor + 1 >= len(prefix):
|
|
419
|
+
return False
|
|
420
|
+
cursor += 2
|
|
421
|
+
continue
|
|
422
|
+
if token.startswith("-"):
|
|
423
|
+
# An unknown env option makes command-position parsing ambiguous.
|
|
424
|
+
# Fail closed for a recognized shell rather than trusting it.
|
|
425
|
+
return True
|
|
426
|
+
return False
|
|
427
|
+
return True
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def nested_shell_payload(tokens, index):
|
|
431
|
+
"""Return a shell `-c` payload, or True when option parsing is ambiguous."""
|
|
432
|
+
cursor = index + 1
|
|
433
|
+
while cursor < len(tokens):
|
|
434
|
+
option = tokens[cursor]
|
|
435
|
+
if option in COMMAND_SEPARATORS or option == "--":
|
|
436
|
+
return None
|
|
437
|
+
if not option.startswith(("-", "+")):
|
|
438
|
+
return None
|
|
439
|
+
if option in SHELL_OPTIONS_SEPARATE_VALUE:
|
|
440
|
+
if cursor + 1 >= len(tokens) or tokens[cursor + 1] in COMMAND_SEPARATORS:
|
|
441
|
+
return True
|
|
442
|
+
cursor += 2
|
|
443
|
+
continue
|
|
444
|
+
if option.startswith(SHELL_OPTIONS_INLINE_VALUE):
|
|
445
|
+
cursor += 1
|
|
446
|
+
continue
|
|
447
|
+
body = option[1:]
|
|
448
|
+
if "c" in body:
|
|
449
|
+
if cursor + 1 >= len(tokens) or tokens[cursor + 1] in COMMAND_SEPARATORS:
|
|
450
|
+
return True
|
|
451
|
+
return tokens[cursor + 1]
|
|
452
|
+
cursor += 1
|
|
453
|
+
return None
|
|
385
454
|
|
|
386
455
|
|
|
387
456
|
def git_commit_skips_verification(text, depth=0):
|
|
@@ -407,27 +476,20 @@ def git_commit_skips_verification(text, depth=0):
|
|
|
407
476
|
if found and found[0] == "commit" and commit_bypasses_verification(found[1]):
|
|
408
477
|
return True
|
|
409
478
|
if depth >= MAX_SHELL_NESTING:
|
|
410
|
-
return
|
|
479
|
+
return True
|
|
411
480
|
for index, token in enumerate(scoped_tokens):
|
|
412
481
|
program = token.rsplit("/", 1)[-1]
|
|
413
482
|
if program not in SHELL_PROGRAMS or not shell_starts_command(
|
|
414
483
|
scoped_tokens, index
|
|
415
484
|
):
|
|
416
485
|
continue
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
continue
|
|
425
|
-
if cursor >= len(scoped_tokens):
|
|
426
|
-
break
|
|
427
|
-
payload = scoped_tokens[cursor]
|
|
428
|
-
if git_commit_skips_verification(payload, depth + 1):
|
|
429
|
-
return True
|
|
430
|
-
break
|
|
486
|
+
payload = nested_shell_payload(scoped_tokens, index)
|
|
487
|
+
if payload is True:
|
|
488
|
+
return True
|
|
489
|
+
if isinstance(payload, str) and git_commit_skips_verification(
|
|
490
|
+
payload, depth + 1
|
|
491
|
+
):
|
|
492
|
+
return True
|
|
431
493
|
return False
|
|
432
494
|
|
|
433
495
|
|
|
@@ -458,6 +458,13 @@ export function rollupBlockerFingerprint(result) {
|
|
|
458
458
|
const pairs = [...result.blockers]
|
|
459
459
|
.map(blocker => `${blocker.ref}:${blocker.class}`)
|
|
460
460
|
.sort((left, right) => left.localeCompare(right));
|
|
461
|
+
const details = [...result.blockers]
|
|
462
|
+
.map(blocker => ({
|
|
463
|
+
ref: blocker.ref,
|
|
464
|
+
path: blocker.path,
|
|
465
|
+
signals: blocker.signals,
|
|
466
|
+
}))
|
|
467
|
+
.sort((left, right) => left.ref.localeCompare(right.ref));
|
|
461
468
|
|
|
462
469
|
return [
|
|
463
470
|
`container=${result.container.ref}`,
|
|
@@ -466,6 +473,7 @@ export function rollupBlockerFingerprint(result) {
|
|
|
466
473
|
`tally=${JSON.stringify(trimmedString(result.childTally))}`,
|
|
467
474
|
`examined=${result.examined}`,
|
|
468
475
|
`holds=${pairs.join(",")}`,
|
|
476
|
+
`details=${JSON.stringify(details)}`,
|
|
469
477
|
].join(";");
|
|
470
478
|
}
|
|
471
479
|
|
|
@@ -511,6 +519,7 @@ function describeDelta(previous, current) {
|
|
|
511
519
|
const parse = fingerprint =>
|
|
512
520
|
new Map(
|
|
513
521
|
(fingerprint.split(";holds=")[1] ?? "")
|
|
522
|
+
.split(";details=")[0]
|
|
514
523
|
.split(",")
|
|
515
524
|
.filter(pair => pair.length > 0)
|
|
516
525
|
.map(pair => {
|
|
@@ -36,17 +36,9 @@ selection-only: never assign or reassign issues as part of build intake.
|
|
|
36
36
|
Build-queue label names are read from `.lisa.config.json` `github.labels.build.*`, falling back to defaults documented in the `config-resolution` rule. Bash pattern:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
value=$(node "${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-plugins/lisa}}/scripts/resolve-lifecycle-role.mjs" \
|
|
43
|
-
--role "$1" --vendor github --intent "${2:-read}") || return $?
|
|
44
|
-
[ -n "$value" ] || { echo "Error: required GitHub role '$1' resolved empty." >&2; return 2; }
|
|
45
|
-
printf '%s\n' "$value"
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
READY=$(read_role ready read) || exit $?
|
|
49
|
-
CLAIMED=$(read_role claimed write) || exit $?
|
|
39
|
+
ROLE_RESOLVER="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-plugins/lisa}}/scripts/resolve-lifecycle-role.mjs"
|
|
40
|
+
READY=$(node "$ROLE_RESOLVER" --role ready --vendor github --intent read) || exit $?
|
|
41
|
+
CLAIMED=$(node "$ROLE_RESOLVER" --role claimed --vendor github --intent write) || exit $?
|
|
50
42
|
|
|
51
43
|
read_intake_assignee() {
|
|
52
44
|
local cli_value local_v
|
|
@@ -19,20 +19,12 @@ Run one intake cycle against that repo. The first eligible issue with the `ready
|
|
|
19
19
|
PRD label names are read from `.lisa.config.json` `github.labels.prd.*`, falling back to defaults documented in the `config-resolution` rule. Bash pattern:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
printf '%s\n' "$value"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
READY=$(read_role prd.ready write) || exit $?
|
|
32
|
-
IN_REVIEW=$(read_role prd.in_review write) || exit $?
|
|
33
|
-
BLOCKED=$(read_role prd.blocked write) || exit $?
|
|
34
|
-
TICKETED=$(read_role prd.ticketed write) || exit $?
|
|
35
|
-
SHIPPED=$(read_role prd.shipped write) || exit $?
|
|
22
|
+
ROLE_RESOLVER="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-plugins/lisa}}/scripts/resolve-lifecycle-role.mjs"
|
|
23
|
+
READY=$(node "$ROLE_RESOLVER" --role prd.ready --vendor github --intent write) || exit $?
|
|
24
|
+
IN_REVIEW=$(node "$ROLE_RESOLVER" --role prd.in_review --vendor github --intent write) || exit $?
|
|
25
|
+
BLOCKED=$(node "$ROLE_RESOLVER" --role prd.blocked --vendor github --intent write) || exit $?
|
|
26
|
+
TICKETED=$(node "$ROLE_RESOLVER" --role prd.ticketed --vendor github --intent write) || exit $?
|
|
27
|
+
SHIPPED=$(node "$ROLE_RESOLVER" --role prd.shipped --vendor github --intent write) || exit $?
|
|
36
28
|
```
|
|
37
29
|
|
|
38
30
|
In prose below, the role names refer to the resolved labels: e.g. "the `ready` label" means whatever `github.labels.prd.ready` resolves to (default: `prd-ready`).
|
|
@@ -20,25 +20,16 @@ ORG=$(jq -r '.github.org // empty' .lisa.config.local.json 2>/dev/null); ORG="${
|
|
|
20
20
|
REPO=$(jq -r '.github.repo // empty' .lisa.config.local.json 2>/dev/null); REPO="${REPO:-$(jq -r '.github.repo // empty' .lisa.config.json)}"
|
|
21
21
|
[ -z "$ORG" ] || [ -z "$REPO" ] && { echo "Error: github.org / github.repo not set in .lisa.config.json."; exit 1; }
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
# Single resolver — see config-resolution "The single resolver".
|
|
25
|
-
# Every PRD role used here is required. Resolver errors remain visible, and
|
|
26
|
-
# an empty result is refused rather than passed to `gh --label`.
|
|
27
|
-
local value
|
|
28
|
-
value=$(node "${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-plugins/lisa}}/scripts/resolve-lifecycle-role.mjs" \
|
|
29
|
-
--role "$1" --vendor github --intent "${2:-write}") || return $?
|
|
30
|
-
[ -n "$value" ] || { echo "Error: required GitHub role '$1' resolved empty." >&2; return 2; }
|
|
31
|
-
printf '%s\n' "$value"
|
|
32
|
-
}
|
|
23
|
+
ROLE_RESOLVER="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-plugins/lisa}}/scripts/resolve-lifecycle-role.mjs"
|
|
33
24
|
# Resolve the FULL PRD lifecycle vocabulary from config (never hard-code names) — needed so the
|
|
34
25
|
# "exactly one role" reconcile and the past-ready check work for projects that renamed any label.
|
|
35
|
-
PRD_DRAFT=$(
|
|
36
|
-
PRD_READY=$(
|
|
37
|
-
PRD_IN_REVIEW=$(
|
|
38
|
-
PRD_BLOCKED=$(
|
|
39
|
-
PRD_TICKETED=$(
|
|
40
|
-
PRD_SHIPPED=$(
|
|
41
|
-
PRD_VERIFIED=$(
|
|
26
|
+
PRD_DRAFT=$(node "$ROLE_RESOLVER" --role prd.draft --vendor github --intent write) || exit $?
|
|
27
|
+
PRD_READY=$(node "$ROLE_RESOLVER" --role prd.ready --vendor github --intent write) || exit $?
|
|
28
|
+
PRD_IN_REVIEW=$(node "$ROLE_RESOLVER" --role prd.in_review --vendor github --intent write) || exit $?
|
|
29
|
+
PRD_BLOCKED=$(node "$ROLE_RESOLVER" --role prd.blocked --vendor github --intent write) || exit $?
|
|
30
|
+
PRD_TICKETED=$(node "$ROLE_RESOLVER" --role prd.ticketed --vendor github --intent write) || exit $?
|
|
31
|
+
PRD_SHIPPED=$(node "$ROLE_RESOLVER" --role prd.shipped --vendor github --intent write) || exit $?
|
|
32
|
+
PRD_VERIFIED=$(node "$ROLE_RESOLVER" --role prd.verified --vendor github --intent write) || exit $?
|
|
42
33
|
# All lifecycle labels (for one-of reconcile) and the "progressed past ready" set (never down-rank):
|
|
43
34
|
ALL_PRD_LABELS=("$PRD_DRAFT" "$PRD_READY" "$PRD_IN_REVIEW" "$PRD_BLOCKED" "$PRD_TICKETED" "$PRD_SHIPPED" "$PRD_VERIFIED")
|
|
44
35
|
PROGRESSED=("$PRD_IN_REVIEW" "$PRD_BLOCKED" "$PRD_TICKETED" "$PRD_SHIPPED" "$PRD_VERIFIED")
|
|
@@ -89,7 +89,8 @@ def server_origin(server):
|
|
|
89
89
|
return ""
|
|
90
90
|
if parsed.scheme.lower() != "https" or not parsed.hostname:
|
|
91
91
|
return ""
|
|
92
|
-
|
|
92
|
+
hostname = parsed.hostname.lower()
|
|
93
|
+
authority = f"[{hostname}]" if ":" in hostname else hostname
|
|
93
94
|
if port and port != 443:
|
|
94
95
|
authority = f"{authority}:{port}"
|
|
95
96
|
return f"https://{authority}"
|
|
@@ -124,6 +125,9 @@ def get_jira_config():
|
|
|
124
125
|
|
|
125
126
|
trusted_server = os.environ.get("JIRA_SERVER", "").strip()
|
|
126
127
|
trusted_origin = server_origin(trusted_server)
|
|
128
|
+
if trusted_server and not trusted_origin:
|
|
129
|
+
print("ERROR: JIRA_SERVER must be a valid HTTPS URL", file=sys.stderr)
|
|
130
|
+
sys.exit(1)
|
|
127
131
|
if trusted_origin:
|
|
128
132
|
if server_origin(server) != trusted_origin:
|
|
129
133
|
print("ERROR: jira-cli config server does not match trusted JIRA_SERVER", file=sys.stderr)
|
|
@@ -18,7 +18,7 @@ This skill is the destination of the `lisa-tracker-build-intake` shim when `trac
|
|
|
18
18
|
|
|
19
19
|
## Workflow resolution
|
|
20
20
|
|
|
21
|
-
Build-queue **workflow state** names are read from `.lisa.config.json` `linear.workflow
|
|
21
|
+
Build-queue **workflow state** names are read from `.lisa.config.json` `linear.workflow.*`. Required roles must be configured; optional roles are allowed to resolve empty. Bash pattern:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
read_role() {
|
|
@@ -403,7 +403,7 @@ Total PRs opened: <n>
|
|
|
403
403
|
|
|
404
404
|
Before this skill can run against a Linear team, the team must have the build-queue workflow states. Run `/lisa:setup:linear`, which resolves each role and offers to create what is missing — a stock Linear team ships `Todo`, `In Progress`, `In Review` and `Done` but **not** `Ready`, `Blocked`, `On Dev` or `On Stg`.
|
|
405
405
|
|
|
406
|
-
1. Ensure states exist for every role in `linear.workflow
|
|
406
|
+
1. Ensure states exist for every role configured in `linear.workflow`. Required roles have no resolver default and must be bound explicitly; optional roles may be omitted. Note `ready` is a DEDICATED state, not Linear's default `Todo` — mapping it to the default would make every untouched backlog item claimable. Override any role name in config rather than renaming to match.
|
|
407
407
|
2. Move Issues to `$READY` when they are ready for development.
|
|
408
408
|
3. Reserve `$CLAIMED`, `$REVIEW`, `$DONE` for Lisa — humans should not set them manually except to recover from an error.
|
|
409
409
|
4. Remove the team's `merge → Done` git automation. It is a second writer that jumps an Issue to terminal on a `dev` merge, skipping the env rungs; `/lisa:setup:linear` detects and offers to delete it.
|
|
@@ -728,10 +728,13 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/rollup-blocker-classification.mjs" \
|
|
|
728
728
|
report already asks a person to decide.
|
|
729
729
|
|
|
730
730
|
3. **If the derived state differs from the parent's current state, apply it** via the vendor's
|
|
731
|
-
lifecycle write: a JIRA transition; a GitHub label swap
|
|
732
|
-
Linear `save-issue` update that writes the resolved workflow `stateId`, never a lifecycle
|
|
733
|
-
|
|
734
|
-
|
|
731
|
+
lifecycle write: a JIRA transition; a GitHub label swap in the item's own lifecycle namespace;
|
|
732
|
+
or a Linear `save-issue` update that writes the resolved workflow `stateId`, never a lifecycle
|
|
733
|
+
label. For GitHub, resolve the lane before writing: PRD parents use the configured `prd.*`
|
|
734
|
+
roles, while build tickets use the configured build roles. Keep exactly one lifecycle label in
|
|
735
|
+
that selected namespace and never substitute or overlap the other namespace. When applying any
|
|
736
|
+
of these writes, remove conflicting stale lifecycle roles — **including a stale `ready`** the
|
|
737
|
+
parent should never carry. Post an idempotent `[lisa-repair-intake]` rollup note naming the derived
|
|
735
738
|
state and the child tally (honor the backoff window + fingerprint). Include that exact rendered
|
|
736
739
|
state and tally in the classifier input: its fingerprint deduplicates the complete note, not only
|
|
737
740
|
the blocker classes. **When the derived state is
|
|
@@ -1562,7 +1562,7 @@ export function fetchChecksForCommit(sha, repo) {
|
|
|
1562
1562
|
export function newestCheckRuns(runs) {
|
|
1563
1563
|
const newest = new Map();
|
|
1564
1564
|
const rank = row => {
|
|
1565
|
-
const timestamp = Date.parse(row.
|
|
1565
|
+
const timestamp = Date.parse(row.started_at ?? "");
|
|
1566
1566
|
return [Number.isFinite(timestamp) ? timestamp : 0, Number(row.id) || 0];
|
|
1567
1567
|
};
|
|
1568
1568
|
for (const row of runs) {
|