@codyswann/lisa 2.256.0 → 2.256.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.
Files changed (124) hide show
  1. package/package.json +1 -1
  2. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  3. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  4. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +1 -1
  5. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +9 -3
  6. package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +6 -2
  7. package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  8. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +9 -6
  9. package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  10. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +9 -3
  11. package/plugins/lisa/agents/github-agent.md +2 -2
  12. package/plugins/lisa/agents/jira-agent.md +2 -2
  13. package/plugins/lisa/agents/linear-agent.md +2 -2
  14. package/plugins/lisa/rules/eager/config-resolution.md +27 -8
  15. package/plugins/lisa/rules/eager/pre-flight-autofill.md +21 -7
  16. package/plugins/lisa/rules/reference/config-resolution.md +55 -16
  17. package/plugins/lisa/rules/reference/pre-flight-autofill.md +23 -8
  18. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +1 -1
  19. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +9 -3
  20. package/plugins/lisa/skills/lisa-implement/SKILL.md +6 -2
  21. package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  22. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +9 -6
  23. package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  24. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +9 -3
  25. package/plugins/lisa-agy/agents/github-agent.md +2 -2
  26. package/plugins/lisa-agy/agents/jira-agent.md +2 -2
  27. package/plugins/lisa-agy/agents/linear-agent.md +2 -2
  28. package/plugins/lisa-agy/plugin.json +1 -1
  29. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +1 -1
  30. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +9 -3
  31. package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +6 -2
  32. package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  33. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +9 -6
  34. package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  35. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +9 -3
  36. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  39. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-copilot/agents/github-agent.agent.md +2 -2
  43. package/plugins/lisa-copilot/agents/jira-agent.agent.md +2 -2
  44. package/plugins/lisa-copilot/agents/linear-agent.agent.md +2 -2
  45. package/plugins/lisa-copilot/rules/eager/config-resolution.md +27 -8
  46. package/plugins/lisa-copilot/rules/eager/pre-flight-autofill.md +21 -7
  47. package/plugins/lisa-copilot/rules/reference/config-resolution.md +55 -16
  48. package/plugins/lisa-copilot/rules/reference/pre-flight-autofill.md +23 -8
  49. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +1 -1
  50. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +9 -3
  51. package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +6 -2
  52. package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  53. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +9 -6
  54. package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  55. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +9 -3
  56. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-cursor/agents/github-agent.md +2 -2
  58. package/plugins/lisa-cursor/agents/jira-agent.md +2 -2
  59. package/plugins/lisa-cursor/agents/linear-agent.md +2 -2
  60. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +55 -16
  61. package/plugins/lisa-cursor/rules/config-resolution.mdc +27 -8
  62. package/plugins/lisa-cursor/rules/pre-flight-autofill-reference.mdc +23 -8
  63. package/plugins/lisa-cursor/rules/pre-flight-autofill.mdc +21 -7
  64. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +1 -1
  65. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +9 -3
  66. package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +6 -2
  67. package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  68. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +9 -6
  69. package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  70. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +9 -3
  71. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-expo-agy/plugin.json +1 -1
  74. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  79. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  83. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  84. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  88. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  89. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  93. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  94. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  98. package/plugins/lisa-rails-agy/plugin.json +1 -1
  99. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  103. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  104. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  105. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  108. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  109. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  111. package/plugins/src/base/agents/github-agent.md +2 -2
  112. package/plugins/src/base/agents/jira-agent.md +2 -2
  113. package/plugins/src/base/agents/linear-agent.md +2 -2
  114. package/plugins/src/base/rules/eager/config-resolution.md +27 -8
  115. package/plugins/src/base/rules/eager/pre-flight-autofill.md +21 -7
  116. package/plugins/src/base/rules/reference/config-resolution.md +55 -16
  117. package/plugins/src/base/rules/reference/pre-flight-autofill.md +23 -8
  118. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +1 -1
  119. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +9 -3
  120. package/plugins/src/base/skills/lisa-implement/SKILL.md +6 -2
  121. package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  122. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +9 -6
  123. package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  124. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +9 -3
@@ -54,14 +54,29 @@ spec.
54
54
  - **Validation Journey (draft)** — run the vendor `*-add-journey` skill to draft
55
55
  the click-path, markers, and viewports from the reproduction steps. This is a
56
56
  draft for human approval, not the final ratified contract.
57
- - **Target Backend Environment** — for bugs, first parse the reported
58
- environment from the title, description/body, screenshots captions, links, and
59
- reproduction steps. Bare words such as `dev`, `staging`, `prod`, and
60
- `production` count, as do environment-bearing URLs such as
61
- `staging.<domain>`, `gql.staging.*`, and `dev.<domain>`. That reported
62
- environment is authoritative for the draft. Only recommend the repo's
63
- remote default branch when no environment is discoverable anywhere in the
64
- work item, and record the default as an explicit assumption.
57
+ - **Target Backend Environment** — preserve a bare configured key or
58
+ `Confirmed: <env>` as human-confirmed. Automated evidence must write
59
+ `Inferred: <env> evidence: <title|body|reproduction|hostname>`; a generic
60
+ fallback must write `Assumption: <env> remote default branch <branch>`.
61
+ If the default branch has no unique environment reverse-map, instead write
62
+ `Assumption: remote default branch <branch>` without inventing an environment.
63
+ Human confirmation replaces an automated annotation with a bare key or
64
+ `Confirmed: <env>`. For legacy bare values, use managed draft markers and
65
+ current ticket content only; provider edit history is not required. A marker
66
+ proves automation and requires re-annotation; otherwise unknown provenance
67
+ plus conflicting evidence stops for confirmation. A human-confirmed value wins, followed by validated
68
+ `Inferred:` evidence. Otherwise inspect the title, body, and reproduction
69
+ steps or a URL hostname for one unambiguous exact `deploy.branches` key,
70
+ excluding the complete `Target Backend Environment` section and all other
71
+ machine-authored metadata/draft blocks so annotations cannot become evidence.
72
+ Clear evidence supersedes only an `Assumption:` value. The sole normalization
73
+ is `prod` ↔ `production` when exactly one key is configured; no other aliases
74
+ exist. Never infer from arbitrary branch text, URL paths or query strings, or
75
+ substrings. Multiple conflicting signals **stop** autofill. With no
76
+ environment signal, use the remote default and record the applicable
77
+ `Assumption:` form; a missing/ambiguous reverse-map alone never blocks.
78
+ Require any selected environment mapping and remote branch. Never overwrite
79
+ human prose.
65
80
 
66
81
  **Tier B — irreducibly human (cannot invent — but still propose a default):**
67
82
 
@@ -26,13 +26,27 @@ information was already on the ticket; only the structure was missing).
26
26
  Gherkin Acceptance Criteria (one scenario per fix), expected-vs-actual +
27
27
  environment, Repository, Relationship Search (actually run the git+tracker
28
28
  search — don't fabricate "none found"), Validation Journey **draft** (via the
29
- vendor `*-add-journey` skill), Target Backend Environment. For bugs, parse the
30
- reported environment from the item body/reproduction steps before recommending
31
- any default: bare environment names (`dev`, `staging`, `prod`, `production`)
32
- and environment-bearing URLs (for example `staging.<domain>`, `gql.staging.*`,
33
- `dev.<domain>`) are authoritative. Only recommend the repo's remote default branch when
34
- no environment is discoverable anywhere in the work item, and record that as
35
- an assumption.
29
+ vendor `*-add-journey` skill), Target Backend Environment. Preserve a bare
30
+ configured key or `Confirmed: <env>` as human-confirmed. Automation writes
31
+ `Inferred: <env> evidence: <title|body|reproduction|hostname>` or
32
+ `Assumption: <env> remote default branch <branch>`. Without a unique
33
+ reverse-map use `Assumption: remote default branch <branch>`; human confirmation
34
+ replaces the annotation with a bare key or `Confirmed: <env>`. For legacy bare
35
+ values, use managed draft markers and current ticket content only; provider
36
+ edit history is not required. A marker proves automation and requires
37
+ re-annotation; otherwise unknown provenance plus conflicting evidence stops.
38
+ Human-confirmed wins, then validated `Inferred:`
39
+ evidence. Otherwise use one unambiguous exact `deploy.branches` key from the
40
+ title, body, and reproduction steps or a URL hostname, excluding the complete
41
+ `Target Backend Environment` section and other machine-authored metadata/draft
42
+ blocks so annotations cannot become evidence. Evidence supersedes only
43
+ `Assumption:`. Normalize only built-in
44
+ `prod` ↔ `production` when exactly one is configured; no other aliases exist.
45
+ Never infer from arbitrary branch text, URL paths/query strings, or substrings.
46
+ Conflicting signals **stop** autofill. With no environment signal, use the
47
+ remote default and record the applicable `Assumption:` form; a non-unique
48
+ reverse-map alone never blocks. Require any selected mapping and remote branch.
49
+ Never overwrite human prose.
36
50
  - **Tier B — irreducibly human:** real credentials/access that exist nowhere on
37
51
  the item or in repo test-user docs; a genuine product/scoping decision with no
38
52
  defensible default. Still propose a recommended default where one exists; ask
@@ -154,7 +154,7 @@ When `issue_type ∉ {Bug, Epic}`, `parent_ref` must be set — **except for a b
154
154
 
155
155
  #### S8 — Target Backend Environment
156
156
 
157
- When `runtime_behavior_change = true`, body must contain `## Target Backend Environment` with one of `dev`, `staging`, `prod`. Skipped for doc-only / config-only / type-only / Epic.
157
+ When `runtime_behavior_change = true`, the body must contain `## Target Backend Environment`. Read accepted environments from the exact configured keys of `.lisa.config.json` `deploy.branches`, never from a hardcoded list. Accept a human-confirmed bare exact configured key or `Confirmed: <env>`, automated `Inferred: <env> — evidence: <title|body|reproduction|hostname>`, automated `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` when no unique reverse-map exists. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. For legacy bare values, use managed draft markers and current ticket content only; provider edit history is not required. A marker proves automation and requires re-annotation; otherwise unknown provenance plus conflicting evidence fails for confirmation. Validate the annotation shape/source and remote-default branch; validate `<env>` as an exact configured key whenever present. A valid branch-only assumption must not fail solely because its reverse-map is absent or ambiguous. Normalize built-in `prod` ↔ `production` only when exactly one of those keys is configured. No other aliases are valid. Skipped for doc-only / config-only / type-only / Epic.
158
158
 
159
159
  #### S9 — Sign-in Required
160
160
 
@@ -38,7 +38,7 @@ Resolve `<ORG>` and `<REPO>` from the ref or from `.lisa.config.json`.
38
38
  | Priority | CREATE | Label `priority:<low|medium|high|critical>`. |
39
39
  | Acceptance criteria | Story, Task, Bug, Sub-task, Improvement | Gherkin in `## Acceptance Criteria` — see Phase 3. |
40
40
  | Validation Journey | Runtime-behavior changes | Delegate to `/github-add-journey`. |
41
- | Target backend environment | Runtime-behavior changes | Recorded under `## Target Backend Environment`. Skip only for doc / config / type-only. |
41
+ | Target backend environment | Runtime-behavior changes | For every work type, use an exact `deploy.branches` key when an environment is known. Human: bare key or `Confirmed: <env>`. Automation: `Inferred: <env> — evidence: <title\|body\|reproduction\|hostname>`, `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` otherwise. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. |
42
42
  | Sign-in account / credentials | Authenticated-surface tickets | Recorded under `## Sign-in Required`. |
43
43
  | Repository | Bug, Task, Sub-task | GitHub Issues live in exactly one repo by definition — record the repo name under `## Repository`, and reject any AC bullet that references a different repo. |
44
44
  | Source Requirement | PRD-sourced issues (`prd_source` provided) | `## Source Requirement` with PRD link + verbatim requirement quote(s) — see Phase 3; enforced at every level, sub-issues included. |
@@ -91,8 +91,14 @@ Scenario: <name>
91
91
  [Explicit list of what this issue does NOT cover. Forces scope discipline.]
92
92
 
93
93
  ## Target Backend Environment
94
- [Required when the issue changes runtime behavior. One of: dev / staging / prod.
95
- Skip section entirely for doc-only, config-only, or type-only issues.]
94
+ [Required when the issue changes runtime behavior. Use an exact
95
+ `deploy.branches` key. A human-confirmed value is a bare key or
96
+ `Confirmed: <env>`. An automated evidence write is
97
+ `Inferred: <env> — evidence: <title|body|reproduction|hostname>`; an automated
98
+ generic default is `Assumption: <env> — remote default branch <branch>`.
99
+ Without a unique reverse-map use `Assumption: remote default branch <branch>`.
100
+ Human confirmation replaces the automated annotation with a bare key or
101
+ `Confirmed: <env>`. Skip only for doc/config/type-only issues.]
96
102
 
97
103
  ## Sign-in Required
98
104
  [Include this section ONLY if the work touches authenticated surfaces.
@@ -84,8 +84,12 @@ Using the general-purpose agent in Team Lead session, Determine the name of this
84
84
 
85
85
  Using the general-purpose agent in Team Lead session, **determine the base branch from the ticket's target environment, then sync the working branch onto the latest of it before any work** — so implementation always builds on current target-environment code:
86
86
 
87
- 1. **Resolve the target environment** from the resolved work item — its `## Target Backend Environment` section (the field the `*-write-*` / `*-add-journey` skills record). For bug work, the environment named in the report is authoritative: if the title/body/reproduction steps mention bare env names (`dev`, `staging`, `prod`, `production`) or env-bearing URLs (`staging.<domain>`, `gql.staging.*`, `dev.<domain>`), that reported environment wins over a generic autofill default.
88
- 2. **Map the environment to a base branch** via `.lisa.config.json` `deploy.branches` (e.g. `staging → staging`, `production → main`) — the forward direction of the same map the env-keyed `done` resolution uses in reverse (see the `config-resolution` rule). If the work item names **no** environment, the base branch is the **remote default branch** (`gh repo view --json defaultBranchRef -q .defaultBranchRef.name`, or `git remote set-head origin -a` then read `origin/HEAD`), and record that fallback assumption in the plan/tracker artifact before proceeding. If the reported environment is absent from `deploy.branches`, or its branch does not exist on the remote, **stop and report** — never guess a base and never silently fall back to the default/integration branch.
87
+ 1. **Resolve the target environment with durable provenance.** The `## Target Backend Environment` value has this exact grammar: a human-confirmed value is either a bare configured key or `Confirmed: <env>`; automated evidence writes `Inferred: <env> evidence: <title|body|reproduction|hostname>`; an automated fallback writes `Assumption: <env> remote default branch <branch>` when the branch maps uniquely, or `Assumption: remote default branch <branch>` when it does not. Human confirmation replaces an automated annotation with the bare configured key or `Confirmed: <env>`. For a legacy bare value created before this grammar, use managed draft markers and current ticket content only — provider edit history is not required or assumed. A managed marker proves automation and requires rewriting to `Inferred:` or `Assumption:`; without a marker provenance is unknown, so the value may be used only when no conflicting evidence exists, and a conflict **stops for confirmation**.
88
+ - A human-confirmed value wins. Otherwise a validated `Inferred:` value is next.
89
+ - Otherwise inspect the human-authored title, body, and reproduction steps for exactly one unambiguous signal: an exact `deploy.branches` key as a complete token, or that key as a complete label in a URL hostname (`staging.<domain>`, `gql.staging.*`). Exclude the entire `Target Backend Environment` section and all other machine-authored metadata/draft blocks from this evidence scan so an `Inferred:` or `Assumption:` annotation can never validate or conflict with itself. Clear evidence may supersede only an `Assumption:` value, never a human-confirmed value.
90
+ - The only normalization is built-in `prod` ↔ `production`, and only when exactly one of those keys exists in `deploy.branches`; normalize to that configured key. No other aliases exist.
91
+ - Never infer from arbitrary branch text, URL paths or query strings, or substrings inside other words or hostname labels. Multiple conflicting signals after normalization **stop** the flow. If there are no signals, resolve the remote default branch (`gh repo view --json defaultBranchRef -q .defaultBranchRef.name`, or `git remote set-head origin -a` then `origin/HEAD`). When it reverse-maps uniquely, write the env-bearing `Assumption:` form; when the reverse-map is not unique, write the branch-only form and continue on the remote default without inventing an environment or blocking solely for that ambiguity. Record the fallback assumption in the plan/tracker artifact.
92
+ 2. **Map the resolved environment to a base branch** through `.lisa.config.json` `deploy.branches` — the forward direction of the env-keyed `done` resolution. The selected exact configured key must map uniquely, and the mapped branch must exist on the remote. A missing/ambiguous mapping or remote branch **stops** the flow; never guess or silently fall back.
89
93
  3. **Establish the feature branch off the latest base, conflict-free:**
90
94
  - `git fetch origin`.
91
95
  - Already on a feature branch with an **open PR** → reuse it. If the PR's base ≠ the resolved base branch, surface the mismatch and re-target only with confirmation — the ticket's environment is the source of truth.
@@ -155,7 +155,7 @@ When `issue_type ∉ {Bug, Epic}`, `parent_key` must be set — **except for a b
155
155
 
156
156
  #### S8 — Target Backend Environment
157
157
 
158
- When `runtime_behavior_change = true`, description must contain a `Target Backend Environment` section (`h2.` / `##` in proposed text, or an ADF heading in live JIRA) with one of `dev`, `staging`, `prod`. Skipped for doc-only / config-only / type-only / Epic.
158
+ When `runtime_behavior_change = true`, the description must contain a `Target Backend Environment` section (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). Read accepted environments from the exact configured keys of `.lisa.config.json` `deploy.branches`, never from a hardcoded list. Accept a human-confirmed bare exact configured key or `Confirmed: <env>`, automated `Inferred: <env> — evidence: <title|body|reproduction|hostname>`, automated `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` when no unique reverse-map exists. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. For legacy bare values, use managed draft markers and current ticket content only; provider edit history is not required. A marker proves automation and requires re-annotation; otherwise unknown provenance plus conflicting evidence fails for confirmation. Validate the annotation shape/source and remote-default branch; validate `<env>` as an exact configured key whenever present. A valid branch-only assumption must not fail solely because its reverse-map is absent or ambiguous. Normalize built-in `prod` ↔ `production` only when exactly one of those keys is configured. No other aliases are valid. Skipped for doc-only / config-only / type-only / Epic.
159
159
 
160
160
  #### S9 — Sign-in Required
161
161
 
@@ -35,7 +35,7 @@ Required fields (stop and ask if missing — do not invent values):
35
35
  | Priority | CREATE | Default to project default if unstated |
36
36
  | Acceptance criteria | Story, Task, Bug, Sub-task, Improvement | Gherkin — see Phase 3 |
37
37
  | Validation Journey | Runtime-behavior changes | Delegate to `/jira-add-journey` |
38
- | Target backend environment | Runtime-behavior changes | `dev` / `staging` / `prod`; recorded in description (Phase 3). Skip only for doc/config/type-only tickets. |
38
+ | Target backend environment | Runtime-behavior changes | For every work type, use an exact `deploy.branches` key when an environment is known. Human: bare key or `Confirmed: <env>`. Automation: `Inferred: <env> — evidence: <title\|body\|reproduction\|hostname>`, `Assumption: <env> remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` otherwise. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. |
39
39
  | Sign-in account / credentials | Tickets that touch authenticated surfaces | Name the account (or source — 1Password item, env var, seeded fixture) and role; recorded in description (Phase 3). Omit when sign-in is not required. |
40
40
  | Single-repo scope | Bug, Task, Sub-task, Improvement | These leaf work units MUST cover one repo only. If the work crosses repos, split it before creating. Epic / Spike / Story may span repos. |
41
41
  | Source Requirement | PRD-sourced tickets (`prd_source` provided) | `h2. Source Requirement` with PRD link + verbatim requirement quote(s) — see Phase 3; enforced at every level, sub-tasks included |
@@ -83,11 +83,14 @@ h2. Out of Scope
83
83
  [Explicit list of what this ticket does NOT cover. Forces scope discipline.]
84
84
 
85
85
  h2. Target Backend Environment
86
- [Required when the ticket changes runtime behavior. One of: dev / staging / prod.
87
- This is the environment QA/product reported against and the backend the
88
- implementer points their local stack at during verification before CI/CD.
89
- Backend-only tickets state the deployed env they target. Skip section
90
- entirely for doc-only, config-only, or type-only tickets.]
86
+ [Required when the ticket changes runtime behavior. Use an exact
87
+ `deploy.branches` key. A human-confirmed value is a bare key or
88
+ `Confirmed: <env>`. An automated evidence write is
89
+ `Inferred: <env> evidence: <title|body|reproduction|hostname>`; an automated
90
+ generic default is `Assumption: <env> remote default branch <branch>`.
91
+ Without a unique reverse-map use `Assumption: remote default branch <branch>`.
92
+ Human confirmation replaces the automated annotation with a bare key or
93
+ `Confirmed: <env>`. Skip only for doc/config/type-only tickets.]
91
94
 
92
95
  h2. Sign-in Required
93
96
  [Include this section ONLY if the work touches authenticated surfaces.
@@ -160,7 +160,7 @@ A **build-ready leaf work unit** that is not part of an Epic context stands alon
160
160
 
161
161
  #### S8 — Target Backend Environment
162
162
 
163
- When `runtime_behavior_change = true`, description must contain `## Target Backend Environment` with one of `dev`, `staging`, `prod`. Skipped for doc-only / config-only / type-only / Epic.
163
+ When `runtime_behavior_change = true`, the description must contain `## Target Backend Environment`. Read accepted environments from the exact configured keys of `.lisa.config.json` `deploy.branches`, never from a hardcoded list. Accept a human-confirmed bare exact configured key or `Confirmed: <env>`, automated `Inferred: <env> — evidence: <title|body|reproduction|hostname>`, automated `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` when no unique reverse-map exists. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. For legacy bare values, use managed draft markers and current ticket content only; provider edit history is not required. A marker proves automation and requires re-annotation; otherwise unknown provenance plus conflicting evidence fails for confirmation. Validate the annotation shape/source and remote-default branch; validate `<env>` as an exact configured key whenever present. A valid branch-only assumption must not fail solely because its reverse-map is absent or ambiguous. Normalize built-in `prod` ↔ `production` only when exactly one of those keys is configured. No other aliases are valid. Skipped for doc-only / config-only / type-only / Epic.
164
164
 
165
165
  #### S9 — Sign-in Required
166
166
 
@@ -57,7 +57,7 @@ Required fields (stop and ask if missing — never invent values):
57
57
  | Priority | CREATE | Native Linear priority: 0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low |
58
58
  | Acceptance criteria | Story, Task, Bug, Sub-task, Improvement | Gherkin — see Phase 3 |
59
59
  | Validation Journey | Runtime-behavior changes | Delegate to `/linear-add-journey` |
60
- | Target backend environment | Runtime-behavior changes | `dev` / `staging` / `prod`; recorded in description (Phase 3). Skip only for doc/config/type-only items. |
60
+ | Target backend environment | Runtime-behavior changes | For every work type, use an exact `deploy.branches` key when an environment is known. Human: bare key or `Confirmed: <env>`. Automation: `Inferred: <env> — evidence: <title\|body\|reproduction\|hostname>`, `Assumption: <env> remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` otherwise. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. |
61
61
  | Sign-in account / credentials | Items that touch authenticated surfaces | Name the account (or source — 1Password item, env var, seeded fixture) and role; recorded in description. Omit when sign-in is not required. |
62
62
  | Single-repo scope | Bug, Task, Sub-task | These types MUST cover one repo only. If the work crosses repos, split it before creating. Epic / Spike / Story may span repos. |
63
63
  | Source Requirement | PRD-sourced Issues (`prd_source` provided) | `## Source Requirement` with PRD link + verbatim requirement quote(s) — see Phase 3; enforced at every level, sub-issues included. |
@@ -103,8 +103,14 @@ Linear descriptions are markdown (NOT Jira wiki markup — no `h2.` headings, us
103
103
  [Explicit list of what this item does NOT cover. Forces scope discipline.]
104
104
 
105
105
  ## Target Backend Environment
106
- [Required when the item changes runtime behavior. One of: dev / staging / prod.
107
- Skip section entirely for doc-only, config-only, or type-only items.]
106
+ [Required when the item changes runtime behavior. Use an exact
107
+ `deploy.branches` key. A human-confirmed value is a bare key or
108
+ `Confirmed: <env>`. An automated evidence write is
109
+ `Inferred: <env> — evidence: <title|body|reproduction|hostname>`; an automated
110
+ generic default is `Assumption: <env> — remote default branch <branch>`.
111
+ Without a unique reverse-map use `Assumption: remote default branch <branch>`.
112
+ Human confirmation replaces the automated annotation with a bare key or
113
+ `Confirmed: <env>`. Skip only for doc/config/type-only items.]
108
114
 
109
115
  ## Sign-in Required
110
116
  [Include this section ONLY if the work touches authenticated surfaces.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.256.0",
3
+ "version": "2.256.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"