@codyswann/lisa 4.100.0 → 4.100.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/all/copy-overwrite/scripts/check-third-party-review-evidence.mjs +172 -30
  2. package/all/copy-overwrite/scripts/lib/completion-proof-shape.mjs +23 -4
  3. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
  4. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  5. package/dist/core/lisa-owned-hash-ledger.js +10 -0
  6. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  7. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  8. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  9. package/dist/core/upstream-evidence-manifest.js +20 -17
  10. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  11. package/package.json +4 -4
  12. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  15. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +4 -4
  16. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +7 -3
  17. package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +1 -1
  18. package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  19. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  20. package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  21. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +7 -3
  22. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +2 -1
  23. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  24. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
  25. package/plugins/lisa/rules/reference/base-rules.md +1 -1
  26. package/plugins/lisa/rules/reference/blocker-containment.md +2 -2
  27. package/plugins/lisa/rules/reference/derived-branch-plan.md +4 -4
  28. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  29. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +4 -4
  30. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +7 -3
  31. package/plugins/lisa/skills/lisa-implement/SKILL.md +1 -1
  32. package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  33. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  34. package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  35. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +7 -3
  36. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +2 -1
  37. package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  38. package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
  39. package/plugins/lisa-agy/plugin.json +1 -1
  40. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  41. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +4 -4
  42. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +7 -3
  43. package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +1 -1
  44. package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  45. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  46. package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  47. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +7 -3
  48. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +2 -1
  49. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  50. package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
  51. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  54. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  58. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-copilot/rules/reference/base-rules.md +1 -1
  60. package/plugins/lisa-copilot/rules/reference/blocker-containment.md +2 -2
  61. package/plugins/lisa-copilot/rules/reference/derived-branch-plan.md +4 -4
  62. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  63. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +4 -4
  64. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +7 -3
  65. package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +1 -1
  66. package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  67. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  68. package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  69. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +7 -3
  70. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +2 -1
  71. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  72. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
  73. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-cursor/rules/base-rules-reference.mdc +1 -1
  75. package/plugins/lisa-cursor/rules/blocker-containment-reference.mdc +2 -2
  76. package/plugins/lisa-cursor/rules/derived-branch-plan-reference.mdc +4 -4
  77. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  78. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +4 -4
  79. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +7 -3
  80. package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +1 -1
  81. package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  82. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  83. package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  84. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +7 -3
  85. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +2 -1
  86. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  87. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
  88. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  90. package/plugins/lisa-devin/rules/reference/base-rules.md +1 -1
  91. package/plugins/lisa-devin/rules/reference/blocker-containment.md +2 -2
  92. package/plugins/lisa-devin/rules/reference/derived-branch-plan.md +4 -4
  93. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  94. package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +4 -4
  95. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +7 -3
  96. package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +1 -1
  97. package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  98. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  99. package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  100. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +7 -3
  101. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +2 -1
  102. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  103. package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
  104. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  105. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  106. package/plugins/lisa-expo-agy/plugin.json +1 -1
  107. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  111. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  112. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  113. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  114. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  118. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  119. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  120. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  121. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  122. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  123. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  124. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  125. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  127. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  128. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  129. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  131. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  132. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  133. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  134. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  135. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  136. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  137. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  138. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  139. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  140. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  141. package/plugins/lisa-rails-agy/plugin.json +1 -1
  142. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  143. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  144. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  145. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  146. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  148. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  149. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  150. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  151. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  152. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  153. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  155. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  156. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  157. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  159. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  160. package/plugins/src/base/rules/reference/base-rules.md +1 -1
  161. package/plugins/src/base/rules/reference/blocker-containment.md +2 -2
  162. package/plugins/src/base/rules/reference/derived-branch-plan.md +4 -4
  163. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +8 -3
  164. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +4 -4
  165. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +7 -3
  166. package/plugins/src/base/skills/lisa-implement/SKILL.md +1 -1
  167. package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +4 -4
  168. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +7 -3
  169. package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +4 -4
  170. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +7 -3
  171. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +2 -1
  172. package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +60 -9
  173. package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +5 -2
@@ -160,7 +160,11 @@ Scenario: <name>
160
160
  `runtime_behavior_change` is persisted, and an absent section reads as
161
161
  *underivable*, not exempt. Work that changes no runtime behavior declares the
162
162
  exemption in place of an environment: `None — no runtime behavior change:
163
- doc-only` (or `config-only` / `type-only`). An Epic/container declares
163
+ <reason>`, where `<reason>` is exactly one of the closed set
164
+ `doc-only | config-only | type-only | test-only`, as plain text, and is the
165
+ entire section content — nothing follows it in the section (the set
166
+ is shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`;
167
+ any other reason fails S8 and would be refused at completion). An Epic/container declares
164
168
  `None — container: state rolls up from children`. Visible prose, not an HTML
165
169
  comment, for the same reason the Branch Plan provenance line is: JIRA's ADF has
166
170
  no comment node. See the `derived-branch-plan` rule.]
@@ -168,7 +172,7 @@ Scenario: <name>
168
172
  ## Branch Plan
169
173
  [GENERATED, never hand-authored. Render only when the issue has a Target
170
174
  Backend Environment; omit entirely when `runtime_behavior_change = false`
171
- (doc-only / config-only / type-only) or for an Epic/container — absence is
175
+ (doc-only / config-only / type-only / test-only) or for an Epic/container — absence is
172
176
  correct there. Derive per the `derived-branch-plan` rule: resolve the
173
177
  environment, map it forward through `.lisa.config.json` `deploy.branches`,
174
178
  and prove the branch exists on the remote. Do not accept caller-supplied
@@ -212,7 +216,7 @@ Scenario: <name>
212
216
 
213
217
  ## Validation Journey
214
218
  [Delegate to /github-add-journey if the issue changes runtime behavior.
215
- Skip only for doc-only, config-only, or type-only issues. Cross-work-item
219
+ Skip only for doc-only, config-only, type-only, or test-only issues. Cross-work-item
216
220
  evidence pointers use `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]`;
217
221
  they never replace this issue's local S14 marker.]
218
222
  ```
@@ -147,7 +147,7 @@ Using the general-purpose agent in Team Lead session, **determine the base branc
147
147
  - **Legacy (no plan)** → derive it, **write the assumption onto the ticket as a comment**, then proceed. Visible prose plus a dedupe marker, e.g. ``Branch plan derived for this item: branch from `main`, PR into `main` (Target Backend Environment: production via .lisa.config.json deploy.branches).`` followed by `<!-- [lisa-branch-plan] key=<work-item-ref>::<branch> -->` (marker-dedupe on `<work-item-ref>::<branch>`, so a re-claim adds no duplicate; where a vendor cannot host an HTML comment the visible line alone carries it). **No silent guess** — if the comment cannot be written, that is a stop, because proceeding would make the inference invisible.
148
148
  - **Conflict with a human-confirmed environment, or with an existing open PR's base** → **stop under the existing confirmation rules** below. A branch plan never overrides the environment and never supplies the confirmation itself.
149
149
  - **Stale (config changed since the plan was rendered)** → current config wins: re-render the section onto the ticket, record the change, and never follow the stale plan. Staleness is output falling behind its input, not a conflict to escalate.
150
- - Exempt work carries no plan and needs none: `runtime_behavior_change = false` (doc-only / config-only / type-only) and containers have no environment to derive from, so **absence of a plan is correct** — never demand or invent one. Read the flag off the item rather than assuming it: `## Target Backend Environment` is rendered on every leaf and carries the declaration (`derived-branch-plan`) — an exact configured environment key means `true`, `None — no runtime behavior change: <doc-only|config-only|type-only>` or `None — container: state rolls up from children` means `false`. An **absent** section is *underivable*, not exempt: derive the flag from the change under implementation, write the declaration onto the item beside the `[lisa-branch-plan]` legacy comment, and proceed. Never read absence as `false` — that is the assumption that made S8/S11/S14/S19 undecidable on a live item.
150
+ - Exempt work carries no plan and needs none: `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) and containers have no environment to derive from, so **absence of a plan is correct** — never demand or invent one. Read the flag off the item rather than assuming it: `## Target Backend Environment` is rendered on every leaf and carries the declaration (`derived-branch-plan`) — an exact configured environment key means `true`, `None — no runtime behavior change: <doc-only|config-only|type-only|test-only>` (a closed set shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`; any other reason is refused at completion) or `None — container: state rolls up from children` means `false`. An **absent** section is *underivable*, not exempt: derive the flag from the change under implementation, write the declaration onto the item beside the `[lisa-branch-plan]` legacy comment, and proceed. Never read absence as `false` — that is the assumption that made S8/S11/S14/S19 undecidable on a live item.
151
151
  3. **Establish the feature branch off the latest base, conflict-free:**
152
152
  - `git fetch origin`.
153
153
  - 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.
@@ -215,7 +215,7 @@ When `issue_type ∉ {Bug, Epic}`, `parent_key` must be set — **except for a b
215
215
 
216
216
  Every leaf work unit carries a `Target Backend Environment` section in the description (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). The section is where `runtime_behavior_change` is persisted, so it is rendered for exempt work too — see the declaration grammar at the end of this gate. 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.
217
217
 
218
- **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: doc-only` (or `config-only` / `type-only`). A container (an Epic, or any ticket holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator; the words after it are for the human reading the ticket.
218
+ **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: <reason>`, where `<reason>` is one of `doc-only | config-only | type-only | test-only` — the same closed set as `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`, which the completion checker enforces. A container (an Epic, or any ticket holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator for `runtime_behavior_change = false`. The reason word is drawn from that closed set, written as plain text (not inside backticks), and the declaration is the **entire** section content — nothing may follow it in the section, not even a further paragraph, because the completion checker reads the whole section: any other reason (for example `refactor-only`), a backticked reason, or any text after the declaration, **FAILs** this gate, because the completion checker would refuse that ticket as pending-proof after merge, the most expensive point to find it.
219
219
 
220
220
  Derive the flag from the stored content, never from a caller's word about a live ticket: an exact configured environment key means `true`, a `None —` declaration means `false`, and an **absent section means underivable** — never `false`. On a live ticket the stored declaration is authoritative, so a caller asserting a `runtime_behavior_change` that contradicts it **FAILs** this gate naming both values rather than silently preferring either; one of the two is wrong, and picking one quietly is how an unauditable gate gets built. A **proposed spec** with no section **FAILs** — `lisa-jira-write-ticket` must render it before the write. A **live legacy ticket** with no section is `N/A` with a repair note routed to claim time: the same asymmetry S19 uses, for the same reason, because failing every existing ticket would turn a legacy queue red for a section no human had a way to add.
221
221
 
@@ -235,7 +235,7 @@ This gate is `product_relevant: false` because cross-repo work units are not a p
235
235
 
236
236
  #### S11 — Validation Journey present
237
237
 
238
- When `runtime_behavior_change = true`, description must contain a `Validation Journey` section (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). Skipped for doc-only / config-only / type-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy ticket whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
238
+ When `runtime_behavior_change = true`, description must contain a `Validation Journey` section (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). Skipped for doc-only / config-only / type-only / test-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy ticket whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
239
239
 
240
240
  The caller controls the strictness by passing `journey_followup: "auto"` or `journey_followup: "none"` in the spec:
241
241
  - `auto` (default): if the section is absent, return `FAIL` with remediation `"Invoke lisa-jira-add-journey to append the section after create"`. Callers like `lisa-jira-write-ticket` know to chain `lisa-jira-add-journey` automatically, so this counts as a fixable failure they can resolve in-line — they re-run validation after appending.
@@ -276,7 +276,7 @@ FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE
276
276
 
277
277
  Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
278
278
 
279
- This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
279
+ This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
280
280
 
281
281
  #### S15 — Leaf-only build-ready
282
282
 
@@ -357,7 +357,7 @@ Enforces the `derived-branch-plan` rule: the `Branch Plan` section (`h2.` / `##`
357
357
 
358
358
  | Case | Verdict |
359
359
  |---|---|
360
- | `runtime_behavior_change = false` (doc-only / config-only / type-only) or an Epic/container, with no plan | `N/A` — absence is correct; never demand one |
360
+ | `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) or an Epic/container, with no plan | `N/A` — absence is correct; never demand one |
361
361
  | Exempt work **carrying** a `Branch Plan` | **FAIL** — hand-authored branches on work that declared no runtime target |
362
362
  | `runtime_behavior_change` **underivable** (live legacy item, no Target Backend Environment declaration) | `N/A` with a repair note — absence is never read as `false` |
363
363
  | Plan matches the recomputed plan | PASS |
@@ -152,7 +152,11 @@ h2. Target Backend Environment
152
152
  `runtime_behavior_change` is persisted, and an absent section reads as
153
153
  *underivable*, not exempt. Work that changes no runtime behavior declares the
154
154
  exemption in place of an environment: `None — no runtime behavior change:
155
- doc-only` (or `config-only` / `type-only`). An Epic/container declares
155
+ <reason>`, where `<reason>` is exactly one of the closed set
156
+ `doc-only | config-only | type-only | test-only`, as plain text, and is the
157
+ entire section content — nothing follows it in the section (the set
158
+ is shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`;
159
+ any other reason fails S8 and would be refused at completion). An Epic/container declares
156
160
  `None — container: state rolls up from children`. Visible prose, not an HTML
157
161
  comment, for the same reason the Branch Plan provenance line is: JIRA's ADF has
158
162
  no comment node. See the `derived-branch-plan` rule.]
@@ -160,7 +164,7 @@ h2. Target Backend Environment
160
164
  h2. Branch Plan
161
165
  [GENERATED, never hand-authored. Render only when the ticket has a Target
162
166
  Backend Environment; omit entirely when `runtime_behavior_change = false`
163
- (doc-only / config-only / type-only) or for an Epic/container — absence is
167
+ (doc-only / config-only / type-only / test-only) or for an Epic/container — absence is
164
168
  correct there. Derive per the `derived-branch-plan` rule: resolve the
165
169
  environment, map it forward through `.lisa.config.json` `deploy.branches`,
166
170
  and prove the branch exists on the remote. Do not accept caller-supplied
@@ -187,7 +191,7 @@ list multiple repos.]
187
191
 
188
192
  h2. Validation Journey
189
193
  [Delegate to /jira-add-journey if the ticket changes runtime behavior.
190
- Skip only for doc-only, config-only, or type-only tickets. Cross-work-item
194
+ Skip only for doc-only, config-only, type-only, or test-only tickets. Cross-work-item
191
195
  evidence pointers use `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]`;
192
196
  they never replace this ticket's local S14 marker.]
193
197
  ```
@@ -203,7 +203,7 @@ A **build-ready leaf work unit** that is not part of an Epic context stands alon
203
203
 
204
204
  Every leaf work unit carries `## Target Backend Environment` in the description. The section is where `runtime_behavior_change` is persisted, so it is rendered for exempt work too — see the declaration grammar at the end of this gate. 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.
205
205
 
206
- **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: doc-only` (or `config-only` / `type-only`). A container (a Project, or any Issue holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator; the words after it are for the human reading the Issue.
206
+ **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: <reason>`, where `<reason>` is one of `doc-only | config-only | type-only | test-only` — the same closed set as `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`, which the completion checker enforces. A container (a Project, or any Issue holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator for `runtime_behavior_change = false`. The reason word is drawn from that closed set, written as plain text (not inside backticks), and the declaration is the **entire** section content — nothing may follow it in the section, not even a further paragraph, because the completion checker reads the whole section: any other reason (for example `refactor-only`), a backticked reason, or any text after the declaration, **FAILs** this gate, because the completion checker would refuse that Issue as pending-proof after merge, the most expensive point to find it.
207
207
 
208
208
  Derive the flag from the stored content, never from a caller's word about a live Issue: an exact configured environment key means `true`, a `None —` declaration means `false`, and an **absent section means underivable** — never `false`. On a live Issue the stored declaration is authoritative, so a caller asserting a `runtime_behavior_change` that contradicts it **FAILs** this gate naming both values rather than silently preferring either; one of the two is wrong, and picking one quietly is how an unauditable gate gets built. A **proposed spec** with no section **FAILs** — `lisa-linear-write-issue` must render it before the write. A **live legacy Issue** with no section is `N/A` with a repair note routed to claim time: the same asymmetry S19 uses, for the same reason, because failing every existing Issue would turn a legacy queue red for a section no human had a way to add.
209
209
 
@@ -223,7 +223,7 @@ This gate is `product_relevant: false` because cross-repo work units are not a p
223
223
 
224
224
  #### S11 — Validation Journey present
225
225
 
226
- When `runtime_behavior_change = true`, description must contain `## Validation Journey`. Skipped for doc-only / config-only / type-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy Issue whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
226
+ When `runtime_behavior_change = true`, description must contain `## Validation Journey`. Skipped for doc-only / config-only / type-only / test-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy Issue whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
227
227
 
228
228
  The caller controls strictness via `journey_followup: "auto"` or `"none"`:
229
229
  - `auto` (default): missing section returns `FAIL` with remediation `"Invoke lisa-linear-add-journey to append the section after create"`. The write path auto-fixes; dry-run path leaves it as a FAIL the caller must address.
@@ -262,7 +262,7 @@ FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE
262
262
 
263
263
  Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs.
264
264
 
265
- This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
265
+ This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
266
266
 
267
267
  #### S15 — Leaf-only build-ready
268
268
 
@@ -342,7 +342,7 @@ Enforces the `derived-branch-plan` rule: the `## Branch Plan` section is **deriv
342
342
 
343
343
  | Case | Verdict |
344
344
  |---|---|
345
- | `runtime_behavior_change = false` (doc-only / config-only / type-only) or a Project/container, with no plan | `N/A` — absence is correct; never demand one |
345
+ | `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) or a Project/container, with no plan | `N/A` — absence is correct; never demand one |
346
346
  | Exempt work **carrying** a `## Branch Plan` | **FAIL** — hand-authored branches on work that declared no runtime target |
347
347
  | `runtime_behavior_change` **underivable** (live legacy item, no Target Backend Environment declaration) | `N/A` with a repair note — absence is never read as `false` |
348
348
  | Plan matches the recomputed plan | PASS |
@@ -139,7 +139,11 @@ Linear descriptions are markdown (NOT Jira wiki markup — no `h2.` headings, us
139
139
  `runtime_behavior_change` is persisted, and an absent section reads as
140
140
  *underivable*, not exempt. Work that changes no runtime behavior declares the
141
141
  exemption in place of an environment: `None — no runtime behavior change:
142
- doc-only` (or `config-only` / `type-only`). A Project/container declares
142
+ <reason>`, where `<reason>` is exactly one of the closed set
143
+ `doc-only | config-only | type-only | test-only`, as plain text, and is the
144
+ entire section content — nothing follows it in the section (the set
145
+ is shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`;
146
+ any other reason fails S8 and would be refused at completion). A Project/container declares
143
147
  `None — container: state rolls up from children`. Visible prose, not an HTML
144
148
  comment, for the same reason the Branch Plan provenance line is: a marker that
145
149
  survives in only one representation cannot be a vendor-neutral discriminator,
@@ -150,7 +154,7 @@ Linear descriptions are markdown (NOT Jira wiki markup — no `h2.` headings, us
150
154
  ## Branch Plan
151
155
  [GENERATED, never hand-authored. Render only when the item has a Target
152
156
  Backend Environment; omit entirely when `runtime_behavior_change = false`
153
- (doc-only / config-only / type-only) or for a Project/container — absence is
157
+ (doc-only / config-only / type-only / test-only) or for a Project/container — absence is
154
158
  correct there. Derive per the `derived-branch-plan` rule: resolve the
155
159
  environment, map it forward through `.lisa.config.json` `deploy.branches`,
156
160
  and prove the branch exists on the remote. Do not accept caller-supplied
@@ -175,7 +179,7 @@ Linear descriptions are markdown (NOT Jira wiki markup — no `h2.` headings, us
175
179
 
176
180
  ## Validation Journey
177
181
  [Delegate to /linear-add-journey if the item changes runtime behavior.
178
- Skip only for doc-only, config-only, or type-only items. Cross-work-item
182
+ Skip only for doc-only, config-only, type-only, or test-only items. Cross-work-item
179
183
  evidence pointers use `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]`;
180
184
  they never replace this item's local S14 marker.]
181
185
  ```
@@ -1268,7 +1268,8 @@ layer, and test ancestry against the remote.
1268
1268
  record.
1269
1269
  - **Ships no code** — the blocker is closed as completed, positively declares
1270
1270
  `## Target Backend Environment` reading `None — no runtime behavior change: <kind>`
1271
- with kind `doc-only`, `config-only`, or `type-only`, and has no linked PR and no merge commit →
1271
+ with kind `doc-only`, `config-only`, `type-only`, or `test-only` (the closed set shared with
1272
+ `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`), and has no linked PR and no merge commit →
1272
1273
  **cleared** under the rule's carve-out. This is a positive determination, never an absence:
1273
1274
  "no PR found" is `no-pr` and stays blocking. A missing kind does not qualify; any linked
1274
1275
  open or unmerged PR stays blocking under the normal containment test.
@@ -516,6 +516,20 @@ const INTERVAL_UNITS = { s: 1, m: 60, h: 3600, d: 86_400 };
516
516
  */
517
517
  const TOKEN_VALUE = /^\d{5,}:[A-Za-z0-9_-]{30,}$/;
518
518
 
519
+ /**
520
+ * A legacy Jira Cloud accountId (`557058:<uuid>`), which `TOKEN_VALUE` also
521
+ * matches (CodySwannGT/lisa#4719).
522
+ *
523
+ * Exempted only for `operatorIds` / `trustedAuthorIds` entries, where a Jira
524
+ * project puts exactly this id. A Telegram token's secret half is never in
525
+ * canonical UUID form, so the exemption lets no token through.
526
+ */
527
+ const JIRA_LEGACY_ACCOUNT_ID =
528
+ /^\d+:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
529
+
530
+ /** The block's id lists, whose entries the credential scan reads by kind. */
531
+ const ID_LIST_KEYS = new Set(["operatorIds", "trustedAuthorIds"]);
532
+
519
533
  /** Key names that only ever hold a credential. */
520
534
  const CREDENTIAL_KEY = /token|secret|password|passwd|api[-_]?key|credential/i;
521
535
 
@@ -745,6 +759,10 @@ function isNameKeyedMap(segments) {
745
759
  * (#4555; the state dir's 0600 dotenv file only when no provider is
746
760
  * configured), so a token here is both leaked and unused. The value is never
747
761
  * echoed.
762
+ *
763
+ * An `operatorIds` / `trustedAuthorIds` entry is scanned by kind instead
764
+ * (`idEntryCredentials`), so a token behind `id:` / `login:` is still caught
765
+ * and a legacy Jira accountId is not mistaken for one (CodySwannGT/lisa#4719).
748
766
  * @param {unknown} value Subtree.
749
767
  * @param {string} path Dotted path so far, for messages.
750
768
  * @param {readonly string[] | null} [segments] Object keys from the block root;
@@ -753,18 +771,14 @@ function isNameKeyedMap(segments) {
753
771
  */
754
772
  function findCredentials(value, path, segments = []) {
755
773
  if (typeof value === "string") {
756
- return TOKEN_VALUE.test(value.trim())
757
- ? [
758
- `${path} looks like a bot token. Tokens never go in config: ` +
759
- `remove it, and store the token in the project's secrets ` +
760
- `provider with session-manager.mjs store-token ` +
761
- `(/lisa:setup:session-manager runs it).`,
762
- ]
763
- : [];
774
+ return TOKEN_VALUE.test(value.trim()) ? botTokenProblem(path) : [];
764
775
  }
765
776
  if (Array.isArray(value)) {
777
+ const isIdList = segments?.length === 1 && ID_LIST_KEYS.has(segments[0]);
766
778
  return value.flatMap((item, i) =>
767
- findCredentials(item, `${path}[${i}]`, null)
779
+ isIdList && typeof item === "string"
780
+ ? idEntryCredentials(item, `${path}[${i}]`)
781
+ : findCredentials(item, `${path}[${i}]`, null)
768
782
  );
769
783
  }
770
784
  if (!isPlainObject(value)) return [];
@@ -815,6 +829,43 @@ export function classifyIdEntry(entry) {
815
829
  return entry.slice(prefix.length + 1).trim() === "" ? "empty-value" : prefix;
816
830
  }
817
831
 
832
+ /**
833
+ * The refusal for a token-shaped value, naming only its path.
834
+ * @param {string} path Where the value sits.
835
+ * @returns {string[]} The one problem.
836
+ */
837
+ function botTokenProblem(path) {
838
+ return [
839
+ `${path} looks like a bot token. Tokens never go in config: ` +
840
+ `remove it, and store the token in the project's secrets ` +
841
+ `provider with session-manager.mjs store-token ` +
842
+ `(/lisa:setup:session-manager runs it).`,
843
+ ];
844
+ }
845
+
846
+ /**
847
+ * Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
848
+ * (CodySwannGT/lisa#4719).
849
+ *
850
+ * The value after a `login:` / `id:` prefix is what gets tested, since a
851
+ * token pasted behind a prefix is as leaked as a bare one. A legacy Jira
852
+ * accountId (`557058:<uuid>`) is token-shaped but is a real id, so it passes.
853
+ * @param {string} entry One entry.
854
+ * @param {string} path Where the entry sits.
855
+ * @returns {string[]} Problems found.
856
+ */
857
+ function idEntryCredentials(entry, path) {
858
+ const trimmed = entry.trim();
859
+ const prefix = ID_ENTRY_PREFIX.exec(trimmed)?.[1];
860
+ const value =
861
+ prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
862
+ ? trimmed.slice(prefix.length + 1).trim()
863
+ : trimmed;
864
+ return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
865
+ ? botTokenProblem(path)
866
+ : [];
867
+ }
868
+
818
869
  /**
819
870
  * Refuse each malformed kind-keyed entry, naming it. A reader matches such an
820
871
  * entry against nobody, so accepting it would silently drop a person.
@@ -100,8 +100,11 @@ The remote obligation lists empirical required `claim_ids` against the delivered
100
100
  environment/source, beyond code-unit checks.
101
101
 
102
102
  Runtime leaves require remote and delivery proof. Explicit doc-only,
103
- config-only and type-only no-runtime declarations permit their corresponding
104
- N/A reasons; no-local-markers permits only the empty manifest exemption.
103
+ config-only, type-only and test-only no-runtime declarations permit their
104
+ corresponding N/A reasons. That reason set is closed and is exactly
105
+ `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`; any other
106
+ reason grants no exemption. No-local-markers permits only the empty manifest
107
+ exemption.
105
108
  Missing or duplicate environment declarations cannot grant an exemption.
106
109
  Childless Story/Spike work remains a leaf. Container rollup is a separate path;
107
110
  older blanket container wording in evidence guidance does not grant a new
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.100.0",
3
+ "version": "4.100.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1171,9 +1171,14 @@ never says "permission". Reading a check run needs `checks: read`.
1171
1171
  `pull-request` moment names one third-party reviewer: `await` is the status
1172
1172
  context or check-run name it reports under, `posted_by` (when declared) is the
1173
1173
  app whose check run counts, and `evidence.proof` is the exact **reviewed-when**
1174
- phrase. The shipped prover reads both representations and returns the whole
1175
- verdict. Take the verdict from it, not from your own reading of the payloads
1176
- above:
1174
+ phrase. A gate that declares `posted_by` is proven **only** by that app's check
1175
+ run: no commit status counts for it, because a status does not show which app
1176
+ posted it and anyone with commit-status write access can post one under the
1177
+ reviewer's name. The prover lists each status it refused that way, with the
1178
+ reason, beside the check runs it set aside. A gate without `posted_by` still
1179
+ reads statuses as before. The shipped prover reads both representations and
1180
+ returns the whole verdict. Take the verdict from it, not from your own reading
1181
+ of the payloads above:
1177
1182
 
1178
1183
  ```bash
1179
1184
  node scripts/check-third-party-review-evidence.mjs --sha <head-sha> --repo <owner>/<repo> --json
@@ -212,7 +212,7 @@ When `issue_type ∉ {Bug, Epic}`, `parent_ref` must be set — **except for a b
212
212
 
213
213
  Every leaf work unit carries `## Target Backend Environment` in the body. The section is where `runtime_behavior_change` is persisted, so it is rendered for exempt work too — see the declaration grammar at the end of this gate. 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.
214
214
 
215
- **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: doc-only` (or `config-only` / `type-only`). A container (an Epic, or any issue holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator; the words after it are for the human reading the issue.
215
+ **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: <reason>`, where `<reason>` is one of `doc-only | config-only | type-only | test-only` — the same closed set as `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`, which the completion checker enforces. A container (an Epic, or any issue holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator for `runtime_behavior_change = false`. The reason word is drawn from that closed set, written as plain text (not inside backticks), and the declaration is the **entire** section content — nothing may follow it in the section, not even a further paragraph, because the completion checker reads the whole section: any other reason (for example `refactor-only`), a backticked reason, or any text after the declaration, **FAILs** this gate, because the completion checker would refuse that issue as pending-proof after merge, the most expensive point to find it.
216
216
 
217
217
  Derive the flag from the stored content, never from a caller's word about a live issue: an exact configured environment key means `true`, a `None —` declaration means `false`, and an **absent section means underivable** — never `false`. On a live issue the stored declaration is authoritative, so a caller asserting a `runtime_behavior_change` that contradicts it **FAILs** this gate naming both values rather than silently preferring either; one of the two is wrong, and picking one quietly is how an unauditable gate gets built. A **proposed spec** with no section **FAILs** — `lisa-github-write-issue` must render it before the write. A **live legacy issue** with no section is `N/A` with a repair note routed to claim time: the same asymmetry S19 uses, for the same reason, because failing every existing issue would turn a legacy queue red for a section no human had a way to add.
218
218
 
@@ -234,7 +234,7 @@ This gate is `product_relevant: false` because cross-repo work units are not a p
234
234
 
235
235
  #### S11 — Validation Journey present
236
236
 
237
- When `runtime_behavior_change = true`, body must contain `## Validation Journey`. Skipped for doc-only / config-only / type-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy issue whose body carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
237
+ When `runtime_behavior_change = true`, body must contain `## Validation Journey`. Skipped for doc-only / config-only / type-only / test-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy issue whose body carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
238
238
 
239
239
  The caller controls strictness via `journey_followup`:
240
240
  - `auto` (default): missing section is FAIL with remediation `"Invoke lisa-github-add-journey to append the section after create"`. Callers like `lisa-github-write-issue` know to chain the followup automatically.
@@ -273,7 +273,7 @@ FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE
273
273
 
274
274
  Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
275
275
 
276
- This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-github-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live issue.
276
+ This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-github-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live issue.
277
277
 
278
278
  #### S15 — Leaf-only build-ready
279
279
 
@@ -355,7 +355,7 @@ Enforces the `derived-branch-plan` rule: the `## Branch Plan` section is **deriv
355
355
 
356
356
  | Case | Verdict |
357
357
  |---|---|
358
- | `runtime_behavior_change = false` (doc-only / config-only / type-only) or an Epic/container, with no plan | `N/A` — absence is correct; never demand one |
358
+ | `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) or an Epic/container, with no plan | `N/A` — absence is correct; never demand one |
359
359
  | Exempt work **carrying** a `## Branch Plan` | **FAIL** — hand-authored branches on work that declared no runtime target |
360
360
  | `runtime_behavior_change` **underivable** (live legacy item, no Target Backend Environment declaration) | `N/A` with a repair note — absence is never read as `false` |
361
361
  | Plan matches the recomputed plan | PASS |
@@ -160,7 +160,11 @@ Scenario: <name>
160
160
  `runtime_behavior_change` is persisted, and an absent section reads as
161
161
  *underivable*, not exempt. Work that changes no runtime behavior declares the
162
162
  exemption in place of an environment: `None — no runtime behavior change:
163
- doc-only` (or `config-only` / `type-only`). An Epic/container declares
163
+ <reason>`, where `<reason>` is exactly one of the closed set
164
+ `doc-only | config-only | type-only | test-only`, as plain text, and is the
165
+ entire section content — nothing follows it in the section (the set
166
+ is shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`;
167
+ any other reason fails S8 and would be refused at completion). An Epic/container declares
164
168
  `None — container: state rolls up from children`. Visible prose, not an HTML
165
169
  comment, for the same reason the Branch Plan provenance line is: JIRA's ADF has
166
170
  no comment node. See the `derived-branch-plan` rule.]
@@ -168,7 +172,7 @@ Scenario: <name>
168
172
  ## Branch Plan
169
173
  [GENERATED, never hand-authored. Render only when the issue has a Target
170
174
  Backend Environment; omit entirely when `runtime_behavior_change = false`
171
- (doc-only / config-only / type-only) or for an Epic/container — absence is
175
+ (doc-only / config-only / type-only / test-only) or for an Epic/container — absence is
172
176
  correct there. Derive per the `derived-branch-plan` rule: resolve the
173
177
  environment, map it forward through `.lisa.config.json` `deploy.branches`,
174
178
  and prove the branch exists on the remote. Do not accept caller-supplied
@@ -212,7 +216,7 @@ Scenario: <name>
212
216
 
213
217
  ## Validation Journey
214
218
  [Delegate to /github-add-journey if the issue changes runtime behavior.
215
- Skip only for doc-only, config-only, or type-only issues. Cross-work-item
219
+ Skip only for doc-only, config-only, type-only, or test-only issues. Cross-work-item
216
220
  evidence pointers use `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]`;
217
221
  they never replace this issue's local S14 marker.]
218
222
  ```
@@ -147,7 +147,7 @@ Using the general-purpose agent in Team Lead session, **determine the base branc
147
147
  - **Legacy (no plan)** → derive it, **write the assumption onto the ticket as a comment**, then proceed. Visible prose plus a dedupe marker, e.g. ``Branch plan derived for this item: branch from `main`, PR into `main` (Target Backend Environment: production via .lisa.config.json deploy.branches).`` followed by `<!-- [lisa-branch-plan] key=<work-item-ref>::<branch> -->` (marker-dedupe on `<work-item-ref>::<branch>`, so a re-claim adds no duplicate; where a vendor cannot host an HTML comment the visible line alone carries it). **No silent guess** — if the comment cannot be written, that is a stop, because proceeding would make the inference invisible.
148
148
  - **Conflict with a human-confirmed environment, or with an existing open PR's base** → **stop under the existing confirmation rules** below. A branch plan never overrides the environment and never supplies the confirmation itself.
149
149
  - **Stale (config changed since the plan was rendered)** → current config wins: re-render the section onto the ticket, record the change, and never follow the stale plan. Staleness is output falling behind its input, not a conflict to escalate.
150
- - Exempt work carries no plan and needs none: `runtime_behavior_change = false` (doc-only / config-only / type-only) and containers have no environment to derive from, so **absence of a plan is correct** — never demand or invent one. Read the flag off the item rather than assuming it: `## Target Backend Environment` is rendered on every leaf and carries the declaration (`derived-branch-plan`) — an exact configured environment key means `true`, `None — no runtime behavior change: <doc-only|config-only|type-only>` or `None — container: state rolls up from children` means `false`. An **absent** section is *underivable*, not exempt: derive the flag from the change under implementation, write the declaration onto the item beside the `[lisa-branch-plan]` legacy comment, and proceed. Never read absence as `false` — that is the assumption that made S8/S11/S14/S19 undecidable on a live item.
150
+ - Exempt work carries no plan and needs none: `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) and containers have no environment to derive from, so **absence of a plan is correct** — never demand or invent one. Read the flag off the item rather than assuming it: `## Target Backend Environment` is rendered on every leaf and carries the declaration (`derived-branch-plan`) — an exact configured environment key means `true`, `None — no runtime behavior change: <doc-only|config-only|type-only|test-only>` (a closed set shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`; any other reason is refused at completion) or `None — container: state rolls up from children` means `false`. An **absent** section is *underivable*, not exempt: derive the flag from the change under implementation, write the declaration onto the item beside the `[lisa-branch-plan]` legacy comment, and proceed. Never read absence as `false` — that is the assumption that made S8/S11/S14/S19 undecidable on a live item.
151
151
  3. **Establish the feature branch off the latest base, conflict-free:**
152
152
  - `git fetch origin`.
153
153
  - 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.
@@ -215,7 +215,7 @@ When `issue_type ∉ {Bug, Epic}`, `parent_key` must be set — **except for a b
215
215
 
216
216
  Every leaf work unit carries a `Target Backend Environment` section in the description (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). The section is where `runtime_behavior_change` is persisted, so it is rendered for exempt work too — see the declaration grammar at the end of this gate. 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.
217
217
 
218
- **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: doc-only` (or `config-only` / `type-only`). A container (an Epic, or any ticket holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator; the words after it are for the human reading the ticket.
218
+ **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: <reason>`, where `<reason>` is one of `doc-only | config-only | type-only | test-only` — the same closed set as `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`, which the completion checker enforces. A container (an Epic, or any ticket holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator for `runtime_behavior_change = false`. The reason word is drawn from that closed set, written as plain text (not inside backticks), and the declaration is the **entire** section content — nothing may follow it in the section, not even a further paragraph, because the completion checker reads the whole section: any other reason (for example `refactor-only`), a backticked reason, or any text after the declaration, **FAILs** this gate, because the completion checker would refuse that ticket as pending-proof after merge, the most expensive point to find it.
219
219
 
220
220
  Derive the flag from the stored content, never from a caller's word about a live ticket: an exact configured environment key means `true`, a `None —` declaration means `false`, and an **absent section means underivable** — never `false`. On a live ticket the stored declaration is authoritative, so a caller asserting a `runtime_behavior_change` that contradicts it **FAILs** this gate naming both values rather than silently preferring either; one of the two is wrong, and picking one quietly is how an unauditable gate gets built. A **proposed spec** with no section **FAILs** — `lisa-jira-write-ticket` must render it before the write. A **live legacy ticket** with no section is `N/A` with a repair note routed to claim time: the same asymmetry S19 uses, for the same reason, because failing every existing ticket would turn a legacy queue red for a section no human had a way to add.
221
221
 
@@ -235,7 +235,7 @@ This gate is `product_relevant: false` because cross-repo work units are not a p
235
235
 
236
236
  #### S11 — Validation Journey present
237
237
 
238
- When `runtime_behavior_change = true`, description must contain a `Validation Journey` section (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). Skipped for doc-only / config-only / type-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy ticket whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
238
+ When `runtime_behavior_change = true`, description must contain a `Validation Journey` section (`h2.` / `##` in proposed text, or an ADF heading in live JIRA). Skipped for doc-only / config-only / type-only / test-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy ticket whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
239
239
 
240
240
  The caller controls the strictness by passing `journey_followup: "auto"` or `journey_followup: "none"` in the spec:
241
241
  - `auto` (default): if the section is absent, return `FAIL` with remediation `"Invoke lisa-jira-add-journey to append the section after create"`. Callers like `lisa-jira-write-ticket` know to chain `lisa-jira-add-journey` automatically, so this counts as a fixable failure they can resolve in-line — they re-run validation after appending.
@@ -276,7 +276,7 @@ FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE
276
276
 
277
277
  Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
278
278
 
279
- This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
279
+ This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
280
280
 
281
281
  #### S15 — Leaf-only build-ready
282
282
 
@@ -357,7 +357,7 @@ Enforces the `derived-branch-plan` rule: the `Branch Plan` section (`h2.` / `##`
357
357
 
358
358
  | Case | Verdict |
359
359
  |---|---|
360
- | `runtime_behavior_change = false` (doc-only / config-only / type-only) or an Epic/container, with no plan | `N/A` — absence is correct; never demand one |
360
+ | `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) or an Epic/container, with no plan | `N/A` — absence is correct; never demand one |
361
361
  | Exempt work **carrying** a `Branch Plan` | **FAIL** — hand-authored branches on work that declared no runtime target |
362
362
  | `runtime_behavior_change` **underivable** (live legacy item, no Target Backend Environment declaration) | `N/A` with a repair note — absence is never read as `false` |
363
363
  | Plan matches the recomputed plan | PASS |
@@ -152,7 +152,11 @@ h2. Target Backend Environment
152
152
  `runtime_behavior_change` is persisted, and an absent section reads as
153
153
  *underivable*, not exempt. Work that changes no runtime behavior declares the
154
154
  exemption in place of an environment: `None — no runtime behavior change:
155
- doc-only` (or `config-only` / `type-only`). An Epic/container declares
155
+ <reason>`, where `<reason>` is exactly one of the closed set
156
+ `doc-only | config-only | type-only | test-only`, as plain text, and is the
157
+ entire section content — nothing follows it in the section (the set
158
+ is shared with `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`;
159
+ any other reason fails S8 and would be refused at completion). An Epic/container declares
156
160
  `None — container: state rolls up from children`. Visible prose, not an HTML
157
161
  comment, for the same reason the Branch Plan provenance line is: JIRA's ADF has
158
162
  no comment node. See the `derived-branch-plan` rule.]
@@ -160,7 +164,7 @@ h2. Target Backend Environment
160
164
  h2. Branch Plan
161
165
  [GENERATED, never hand-authored. Render only when the ticket has a Target
162
166
  Backend Environment; omit entirely when `runtime_behavior_change = false`
163
- (doc-only / config-only / type-only) or for an Epic/container — absence is
167
+ (doc-only / config-only / type-only / test-only) or for an Epic/container — absence is
164
168
  correct there. Derive per the `derived-branch-plan` rule: resolve the
165
169
  environment, map it forward through `.lisa.config.json` `deploy.branches`,
166
170
  and prove the branch exists on the remote. Do not accept caller-supplied
@@ -187,7 +191,7 @@ list multiple repos.]
187
191
 
188
192
  h2. Validation Journey
189
193
  [Delegate to /jira-add-journey if the ticket changes runtime behavior.
190
- Skip only for doc-only, config-only, or type-only tickets. Cross-work-item
194
+ Skip only for doc-only, config-only, type-only, or test-only tickets. Cross-work-item
191
195
  evidence pointers use `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]`;
192
196
  they never replace this ticket's local S14 marker.]
193
197
  ```
@@ -203,7 +203,7 @@ A **build-ready leaf work unit** that is not part of an Epic context stands alon
203
203
 
204
204
  Every leaf work unit carries `## Target Backend Environment` in the description. The section is where `runtime_behavior_change` is persisted, so it is rendered for exempt work too — see the declaration grammar at the end of this gate. 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.
205
205
 
206
- **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: doc-only` (or `config-only` / `type-only`). A container (a Project, or any Issue holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator; the words after it are for the human reading the Issue.
206
+ **The section persists `runtime_behavior_change`, so it is never simply skipped.** Work that changes no runtime behavior declares the exemption in place of an environment: `None — no runtime behavior change: <reason>`, where `<reason>` is one of `doc-only | config-only | type-only | test-only` — the same closed set as `NO_RUNTIME_REASONS` in `scripts/lib/completion-proof-shape.mjs`, which the completion checker enforces. A container (a Project, or any Issue holding child work) declares `None — container: state rolls up from children`. The `None —` prefix is the machine discriminator for `runtime_behavior_change = false`. The reason word is drawn from that closed set, written as plain text (not inside backticks), and the declaration is the **entire** section content — nothing may follow it in the section, not even a further paragraph, because the completion checker reads the whole section: any other reason (for example `refactor-only`), a backticked reason, or any text after the declaration, **FAILs** this gate, because the completion checker would refuse that Issue as pending-proof after merge, the most expensive point to find it.
207
207
 
208
208
  Derive the flag from the stored content, never from a caller's word about a live Issue: an exact configured environment key means `true`, a `None —` declaration means `false`, and an **absent section means underivable** — never `false`. On a live Issue the stored declaration is authoritative, so a caller asserting a `runtime_behavior_change` that contradicts it **FAILs** this gate naming both values rather than silently preferring either; one of the two is wrong, and picking one quietly is how an unauditable gate gets built. A **proposed spec** with no section **FAILs** — `lisa-linear-write-issue` must render it before the write. A **live legacy Issue** with no section is `N/A` with a repair note routed to claim time: the same asymmetry S19 uses, for the same reason, because failing every existing Issue would turn a legacy queue red for a section no human had a way to add.
209
209
 
@@ -223,7 +223,7 @@ This gate is `product_relevant: false` because cross-repo work units are not a p
223
223
 
224
224
  #### S11 — Validation Journey present
225
225
 
226
- When `runtime_behavior_change = true`, description must contain `## Validation Journey`. Skipped for doc-only / config-only / type-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy Issue whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
226
+ When `runtime_behavior_change = true`, description must contain `## Validation Journey`. Skipped for doc-only / config-only / type-only / test-only / Epic. When `runtime_behavior_change` is **underivable** — a live legacy Issue whose description carries no Target Backend Environment declaration (S8) — this gate is `N/A` with the same repair note rather than `PASS`, because a requirement conditioned on a flag nobody recorded cannot be asserted either way.
227
227
 
228
228
  The caller controls strictness via `journey_followup: "auto"` or `"none"`:
229
229
  - `auto` (default): missing section returns `FAIL` with remediation `"Invoke lisa-linear-add-journey to append the section after create"`. The write path auto-fixes; dry-run path leaves it as a FAIL the caller must address.
@@ -262,7 +262,7 @@ FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE
262
262
 
263
263
  Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs.
264
264
 
265
- This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
265
+ This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
266
266
 
267
267
  #### S15 — Leaf-only build-ready
268
268
 
@@ -342,7 +342,7 @@ Enforces the `derived-branch-plan` rule: the `## Branch Plan` section is **deriv
342
342
 
343
343
  | Case | Verdict |
344
344
  |---|---|
345
- | `runtime_behavior_change = false` (doc-only / config-only / type-only) or a Project/container, with no plan | `N/A` — absence is correct; never demand one |
345
+ | `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only) or a Project/container, with no plan | `N/A` — absence is correct; never demand one |
346
346
  | Exempt work **carrying** a `## Branch Plan` | **FAIL** — hand-authored branches on work that declared no runtime target |
347
347
  | `runtime_behavior_change` **underivable** (live legacy item, no Target Backend Environment declaration) | `N/A` with a repair note — absence is never read as `false` |
348
348
  | Plan matches the recomputed plan | PASS |