@codyswann/lisa 4.59.0 → 4.59.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/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 +5 -4
- 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-github-build-intake/SKILL.md +9 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +26 -24
- package/plugins/lisa/rules/reference/leaf-only-lifecycle.md +1 -1
- package/plugins/lisa/scripts/lifecycle-label-trust.mjs +23 -20
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +9 -5
- package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +26 -24
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/lifecycle-label-trust.mjs +23 -20
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +9 -5
- package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +26 -24
- 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/rules/reference/leaf-only-lifecycle.md +1 -1
- package/plugins/lisa-copilot/scripts/lifecycle-label-trust.mjs +23 -20
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +9 -5
- package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +26 -24
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/leaf-only-lifecycle-reference.mdc +1 -1
- package/plugins/lisa-cursor/scripts/lifecycle-label-trust.mjs +23 -20
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +9 -5
- package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +26 -24
- 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/rules/reference/leaf-only-lifecycle.md +1 -1
- package/plugins/src/base/scripts/lifecycle-label-trust.mjs +23 -20
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +9 -5
- package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +26 -24
|
@@ -491,7 +491,11 @@ Before the claim mutation, apply `claim-time-guards` — **Value before claim**,
|
|
|
491
491
|
1. **`two-failed-attempts` valve.** Count `[lisa-build-attempt]` markers on the issue from the read bundle's comments (match on the marker, never the title), applying both filters from `claim-time-guards`: count a marker only when it carries `measures=work` (a marker with no `measures=` counts as `work`), and only when its `createdAt` is **after the issue most recently gained the ready label**. The ready-lane entry comes from the read bundle's `LabeledEvent` stream, which is already fetched — no extra call. If that history is `unknown`, count every `measures=work` marker regardless of age and say so in the comment. With two or more surviving markers, do **not** claim: relabel to the configured blocked role (`gh issue edit <number> --repo <org>/<repo> --remove-label "$READY" --add-label "$BLOCKED"`, resolved from `github.labels.build.blocked` per `config-resolution`), post the operator-readable comment naming both attempts, and **stop the cycle** at Phase 3e. Every non-success terminal outcome recorded in 3c/3d also appends a fresh `<!-- [lisa-build-attempt] n=<N> outcome=<outcome> measures=<work|machine> -->` marker so the next cycle can count it — `measures=machine` when the run was terminated by a signal or its outcome was `recovery-required`, `measures=work` when the build ran and did not satisfy the issue.
|
|
492
492
|
2. **`already-implemented` check.** Probe for this issue's own key — `git log --all --grep "<org>/<repo>#<number>"` and `gh pr list --repo <org>/<repo> --state all --search "<org>/<repo>#<number>" --json number,state,mergedAt,url`. On a hit, claim as normal but route 3c to **verify-and-close** instead of `lisa-implement`: verify what shipped against the issue's acceptance criteria, post evidence via `lisa-github-evidence` naming the shipping PR/commit, then run the ordinary 3d transition and 3d.1 rollup. A partial hit implements only the remaining gap. An unreadable history degrades to "no hit" and the ordinary path proceeds — the guard never blocks the claim. This is not `DUPLICATE_ALREADY_FIXED` (a *different* canonical issue) and not `claim-archaeology` (a *different* ancestor issue); it is this issue's own work already having shipped without a transition.
|
|
493
493
|
|
|
494
|
+
Immediately before claiming, re-read native state. If it is closed, skip it without
|
|
495
|
+
relabeling or dispatching; an unreadable state holds the candidate.
|
|
496
|
+
|
|
494
497
|
```bash
|
|
498
|
+
gh issue view <number> --repo <org>/<repo> --json state -q '.state' # must be OPEN
|
|
495
499
|
gh issue edit <number> --repo <org>/<repo> --remove-label "$READY" --add-label "$CLAIMED"
|
|
496
500
|
# Assign to the authenticated user ONLY when the issue is currently unassigned (attributable claim;
|
|
497
501
|
# do not pile a second assignee onto an issue that already has an owner):
|
|
@@ -536,7 +540,7 @@ The lifecycle run returns one of the following outcomes; resume this scanner wit
|
|
|
536
540
|
|
|
537
541
|
- **Success** — the build flow completed and a PR exists; evidence posted. The PR may already be **merged** or still **open** (auto-merge enabled, awaiting checks/merge). "Success" means the build work is sound — it does **not** assert the change reached an environment. The env transition in 3d gates on the PR actually being merged; an open PR does not advance the issue to a `done` env status.
|
|
538
542
|
- **Blocked by github-verify pre-flight gate** — the pre-flight gate (github-agent workflow step 2) relabels the issue to `status:blocked` (or removes `$CLAIMED` and reassigns to the original author). This is correct and expected — let it stand. Record and move on.
|
|
539
|
-
- **Duplicate already fixed** — `lisa-ticket-triage` returned `DUPLICATE_ALREADY_FIXED` with a canonical issue reference and empirical base-branch evidence.
|
|
543
|
+
- **Duplicate already fixed** — `lisa-ticket-triage` returned `DUPLICATE_ALREADY_FIXED` with a canonical issue reference and empirical base-branch evidence. Follow 3c.1 to link the duplicate, remove lifecycle roles, and close it as not planned without adding a done label or opening a PR. If the canonical fix is merged but not yet on the production branch, the close comment must say the production error can recur until the canonical issue promotes and that recurrence is tracked by the canonical issue; do not reopen this duplicate for that recurrence.
|
|
540
544
|
- **Blocked by ticket-triage ambiguities** — triage posts findings and the lifecycle stops. The issue stays in `$CLAIMED`. Surface to human; do not auto-relabel. Record under "Errors".
|
|
541
545
|
- **Errored** — exception, missing config, etc. Leave the issue in `$CLAIMED` for human investigation. Record under "Errors".
|
|
542
546
|
|
|
@@ -547,12 +551,12 @@ Run this only when the returned triage verdict is exactly `DUPLICATE_ALREADY_FIX
|
|
|
547
551
|
1. Verify the structured result includes a canonical issue reference, the canonical PR/commit, and empirical evidence that the canonical fix is present on the base branch. If any piece is missing, treat the outcome as Held instead of closing.
|
|
548
552
|
2. Post or preserve the triage-finding comment that explains why this issue is a duplicate and names the canonical issue.
|
|
549
553
|
3. Ensure a native `duplicates <canonical>` link exists when GitHub exposes issue relationships; if this installation cannot create that relationship, leave an explicit issue cross-reference comment/body link and record the limitation in the summary.
|
|
550
|
-
4. Resolve
|
|
551
|
-
5.
|
|
554
|
+
4. Resolve the configured lifecycle role set, including every environment's done value.
|
|
555
|
+
5. Remove every lifecycle role the issue currently carries. Add no done label: this duplicate is being declined, and the canonical issue records delivery. Close as duplicate/not-planned:
|
|
552
556
|
|
|
553
557
|
```bash
|
|
554
558
|
gh issue view <number> --repo <org>/<repo> --json labels -q '[.labels[].name] | join(" ")'
|
|
555
|
-
gh issue edit <number> --repo <org>/<repo>
|
|
559
|
+
gh issue edit <number> --repo <org>/<repo> <one --remove-label "<role>" per lifecycle role the issue CURRENTLY carries; skip when none>
|
|
556
560
|
gh issue close <number> --repo <org>/<repo> --reason "not planned"
|
|
557
561
|
```
|
|
558
562
|
|
|
@@ -562,7 +566,7 @@ gh issue close <number> --repo <org>/<repo> --reason "not planned"
|
|
|
562
566
|
gh issue view <number> --repo <org>/<repo> --json state,stateReason,labels
|
|
563
567
|
```
|
|
564
568
|
|
|
565
|
-
It must read `state: CLOSED` with `stateReason: NOT_PLANNED
|
|
569
|
+
It must read `state: CLOSED` with `stateReason: NOT_PLANNED` and carry **no** lifecycle role, including `$DONE`. Anything else is an Error naming what is still present. Post the closeout comment only after that passes:
|
|
566
570
|
|
|
567
571
|
```bash
|
|
568
572
|
gh issue comment <number> --repo <org>/<repo> --body "[claude-build-intake] Closed as duplicate of <canonical>. Canonical fix: <PR-or-commit>. Evidence: <base-branch-proof>."
|
|
@@ -683,7 +683,8 @@ LISA_BLOCKER_NODE
|
|
|
683
683
|
invoke `resolveBlockerEdges` as shown above; never create a second resolver in the host.
|
|
684
684
|
It returns `dissolve` / `keep` / `escalate` per edge.
|
|
685
685
|
**Dissolve the edge in the SAME write that records the ruling, then read the relation back and
|
|
686
|
-
confirm it is gone.** Only when
|
|
686
|
+
confirm it is gone.** Only when the parsed edge set is non-empty and the resolver returns
|
|
687
|
+
`proceed: true` with every edge dissolved → move `blocked → claimed`, then run the
|
|
687
688
|
same agent-dispatch + post-agent `claimed → done` sequence as the stalled-`claimed` path above
|
|
688
689
|
(one-cycle recovery). If the agent re-blocks, move back to `blocked` — a valid outcome.
|
|
689
690
|
|
|
@@ -773,22 +774,16 @@ native-open / active / unresolved:
|
|
|
773
774
|
4. Post a compact `[lisa-repair-intake]` note only when the native close-out changed state or when
|
|
774
775
|
an actionable setup error must be surfaced. Do not spam already-closed terminal items.
|
|
775
776
|
|
|
776
|
-
### Lifecycle label contradicts native state — walk
|
|
777
|
+
### Lifecycle label contradicts native state — walk every direction
|
|
777
778
|
|
|
778
|
-
|
|
779
|
+
Use the existing detector to check native state and closure reason together.
|
|
780
|
+
`directionsWalked` reports all three repair directions:
|
|
779
781
|
|
|
780
|
-
|
|
|
782
|
+
| Label | Native state | Repair |
|
|
781
783
|
|---|---|---|
|
|
782
|
-
|
|
|
783
|
-
|
|
|
784
|
-
|
|
785
|
-
A pass that walks one direction leaves the other accumulating silently. Measured on the Linear TUN
|
|
786
|
-
board: **TUN-556 and TUN-503 both carry a terminal `status:done` while still natively open in
|
|
787
|
-
`On Dev`** — invisible to intake and indistinguishable from handled, exactly like a bot-applied
|
|
788
|
-
`status:in-progress` on GitHub.
|
|
789
|
-
|
|
790
|
-
Resolve both directions in one pass with the shipped detector, which always reports
|
|
791
|
-
`directionsWalked` covering both, so a "clean" verdict is an assertion that both were examined.
|
|
784
|
+
| Terminal `done` role | Open / active | Follow `Build terminal-open` above |
|
|
785
|
+
| Non-terminal lifecycle role | Closed as `COMPLETED` or reason absent | Advance to the configured terminal role |
|
|
786
|
+
| Non-terminal lifecycle role | Closed as `NOT_PLANNED` | Remove the stale role and add nothing |
|
|
792
787
|
|
|
793
788
|
**Build the classifier input inside this cycle. Never consume a temp file another skill wrote.**
|
|
794
789
|
repair-intake runs as its own cycle, so borrowing `lisa-github-build-intake`'s scratch file fails
|
|
@@ -801,6 +796,9 @@ silent-clean verdict this section promises cannot happen.
|
|
|
801
796
|
TRUST_DIR=$(mktemp -d)
|
|
802
797
|
trap 'rm -rf "$TRUST_DIR"' EXIT
|
|
803
798
|
|
|
799
|
+
# REST, not `gh issue view`: this payload carries `state_reason`, and the reason is
|
|
800
|
+
# what separates the two closed directions. A read that drops it makes a NOT_PLANNED
|
|
801
|
+
# closure indistinguishable from a completion at the exact moment one of them WRITES.
|
|
804
802
|
gh api "repos/<org>/<repo>/issues/<n>" > "$TRUST_DIR/issue.json"
|
|
805
803
|
|
|
806
804
|
# --paginate emits ONE ARRAY PER PAGE; --slurp + `add` flattens all of them so a
|
|
@@ -835,14 +833,18 @@ The `excluded` array reports what was held back; surface it, do not repair it.
|
|
|
835
833
|
1. **`terminal-label-open-state`** → hand to the `Build terminal-open → native close` section above.
|
|
836
834
|
Do not restate its rules; the terminality test lives there (intermediate env rungs like
|
|
837
835
|
`status:on-dev` / `status:on-stg` are **not** terminal).
|
|
838
|
-
2. **`open-label-closed-state`** → the previously unowned direction. The item is natively closed
|
|
839
|
-
completed while still wearing a non-terminal lifecycle role. Advance the label to the
|
|
840
|
-
terminal `done` role and post one idempotent `[lisa-repair-intake]` note. This is a
|
|
841
|
-
**Lisa's own** lifecycle surface, not a contest with another writer.
|
|
836
|
+
2. **`open-label-closed-state`** → the previously unowned direction. The item is natively closed as
|
|
837
|
+
**completed** while still wearing a non-terminal lifecycle role. Advance the label to the
|
|
838
|
+
env-resolved terminal `done` role and post one idempotent `[lisa-repair-intake]` note. This is a
|
|
839
|
+
write on **Lisa's own** lifecycle surface, not a contest with another writer.
|
|
842
840
|
Apply the leaf/container check from the **Lifecycle ownership guard** section *before* this
|
|
843
841
|
branch: repair-intake owns container repair, so a natively-closed `ready` **leaf** is skipped
|
|
844
842
|
here and left to the build lane rather than claimed by this pass.
|
|
845
|
-
3.
|
|
843
|
+
3. **`open-label-abandoned-state`** → closed as **`NOT_PLANNED`**. Remove the stale
|
|
844
|
+
non-terminal role and add nothing: declined work has not shipped. Post one idempotent
|
|
845
|
+
`[lisa-repair-intake]` note naming the closure reason. This removal also applies to closed
|
|
846
|
+
ready leaves, before the ordinary ready-leaf skip; it never claims or dispatches them.
|
|
847
|
+
4. **Vendor caveat — Linear.** On Linear the lifecycle surface is the native workflow **state**, not a
|
|
846
848
|
`status:*` label (see `config-resolution`). A `status:*` label there is leftover cruft that no
|
|
847
849
|
repair direction reads, which is precisely why TUN-556 and TUN-503 rotted. Treat Linear's native
|
|
848
850
|
state as authoritative and remove the contradicting stale label; never move the state to match a
|
|
@@ -1417,8 +1419,9 @@ It MAY:
|
|
|
1417
1419
|
terminal `done`.
|
|
1418
1420
|
- Reconcile a **container** wrongly carrying the build-ready `ready` role (a leaf-only-invariant
|
|
1419
1421
|
violation) by rolling it up from its children and removing the `ready`, with a
|
|
1420
|
-
`[lisa-repair-intake]` audit note.
|
|
1421
|
-
|
|
1422
|
+
`[lisa-repair-intake]` audit note.
|
|
1423
|
+
- Remove stale lifecycle labels from a natively closed `NOT_PLANNED` item, including a ready
|
|
1424
|
+
leaf. Add no done label and do not claim or dispatch it.
|
|
1422
1425
|
- Move a PRD with fully terminal generated work to `shipped` and close/archive the source artifact
|
|
1423
1426
|
where the source vendor supports native close-out, per `prd-lifecycle-rollup`.
|
|
1424
1427
|
- Repair missing native GitHub child links by replaying the same-repo, idempotent `addSubIssue`
|
|
@@ -1439,9 +1442,8 @@ It MUST NOT:
|
|
|
1439
1442
|
(empty parent token / `Top-level work:` entries) may become PRD children.
|
|
1440
1443
|
- Apply a build `done` value other than via the env-resolution rules, or close a native item at
|
|
1441
1444
|
any value other than the true terminal `done` (see `leaf-only-lifecycle`).
|
|
1442
|
-
- Touch `ready` **leaves**
|
|
1443
|
-
|
|
1444
|
-
invariant violation, not the human "claim this leaf" signal intake owns.
|
|
1445
|
+
- Touch `ready` **leaves** except to remove stale labels from a natively closed `NOT_PLANNED`
|
|
1446
|
+
item as above. Open ready leaves remain `lisa-intake`'s lane.
|
|
1445
1447
|
- Move a GitHub issue that already carries a configured lifecycle label back to `ready` merely
|
|
1446
1448
|
because some other label looks stale. Official lifecycle labels remain authoritative.
|
|
1447
1449
|
|