@codyswann/lisa 2.353.0 → 3.1.0

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 (318) hide show
  1. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  2. package/dist/core/upstream-evidence-manifest.js +83 -47
  3. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  4. package/expo/copy-overwrite/scripts/bdd/discover.mjs +502 -0
  5. package/expo/copy-overwrite/scripts/bdd/envelope.mjs +10 -1
  6. package/expo/copy-overwrite/scripts/bdd/render.mjs +53 -0
  7. package/expo/copy-overwrite/scripts/bdd/report.mjs +46 -0
  8. package/expo/copy-overwrite/scripts/check-bdd-coverage.mjs +39 -4
  9. package/expo/create-only/.github/workflows/nightly-e2e-report.yml +71 -0
  10. package/expo/create-only/bdd/coverage-map.json +16 -0
  11. package/package.json +1 -1
  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-agent-ready/SKILL.md +5 -3
  15. package/plugins/lisa/.codex-plugin/skills/lisa-atlassian-access/SKILL.md +75 -64
  16. package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  17. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/SKILL.md +2 -2
  18. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +7 -1
  19. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +5 -0
  20. package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +3 -1
  21. package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +2 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +7 -3
  23. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +16 -6
  24. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-jam-access/SKILL.md +13 -5
  26. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +5 -0
  27. package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +2 -0
  28. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  29. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +6 -1
  30. package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +30 -10
  31. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +5 -0
  32. package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +3 -1
  33. package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  34. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +13 -4
  35. package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/SKILL.md +36 -23
  36. package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  37. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +1 -1
  38. package/plugins/lisa/.codex-plugin/skills/lisa-posthog-access/SKILL.md +16 -6
  39. package/plugins/lisa/.codex-plugin/skills/lisa-prd-source-write/SKILL.md +4 -2
  40. package/plugins/lisa/.codex-plugin/skills/lisa-qa-fail/SKILL.md +3 -1
  41. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +28 -0
  42. package/plugins/lisa/.codex-plugin/skills/lisa-rework-triage/SKILL.md +2 -2
  43. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/SKILL.md +8 -0
  44. package/plugins/lisa/.codex-plugin/skills/lisa-sentry-access/SKILL.md +16 -6
  45. package/plugins/lisa/.codex-plugin/skills/lisa-sonarcloud-access/SKILL.md +7 -1
  46. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  47. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -0
  48. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -0
  49. package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -1
  50. package/plugins/lisa/rules/eager/bdd-e2e-coverage.md +3 -1
  51. package/plugins/lisa/rules/eager/claim-time-guards.md +30 -0
  52. package/plugins/lisa/rules/eager/integration-access-layer.md +7 -3
  53. package/plugins/lisa/rules/eager/ready-role-filing.md +22 -0
  54. package/plugins/lisa/rules/reference/automation-runbook-contract.md +8 -1
  55. package/plugins/lisa/rules/reference/bdd-e2e-coverage.md +42 -6
  56. package/plugins/lisa/rules/reference/claim-time-guards.md +69 -0
  57. package/plugins/lisa/rules/reference/credential-substrate-precedence.md +166 -0
  58. package/plugins/lisa/rules/reference/integration-access-layer.md +27 -15
  59. package/plugins/lisa/rules/reference/ready-role-filing.md +66 -0
  60. package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +5 -3
  61. package/plugins/lisa/skills/lisa-atlassian-access/SKILL.md +76 -65
  62. package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  63. package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +2 -2
  64. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +7 -1
  65. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +5 -0
  66. package/plugins/lisa/skills/lisa-github-create/SKILL.md +3 -1
  67. package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +2 -1
  68. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +7 -3
  69. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +16 -6
  70. package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +1 -1
  71. package/plugins/lisa/skills/lisa-jam-access/SKILL.md +14 -6
  72. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +5 -0
  73. package/plugins/lisa/skills/lisa-jira-create/SKILL.md +2 -0
  74. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  75. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +6 -1
  76. package/plugins/lisa/skills/lisa-linear-access/SKILL.md +31 -11
  77. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +5 -0
  78. package/plugins/lisa/skills/lisa-linear-create/SKILL.md +3 -1
  79. package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  80. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +13 -4
  81. package/plugins/lisa/skills/lisa-notion-access/SKILL.md +37 -24
  82. package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  83. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +1 -1
  84. package/plugins/lisa/skills/lisa-posthog-access/SKILL.md +17 -7
  85. package/plugins/lisa/skills/lisa-prd-source-write/SKILL.md +4 -2
  86. package/plugins/lisa/skills/lisa-qa-fail/SKILL.md +3 -1
  87. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +28 -0
  88. package/plugins/lisa/skills/lisa-rework-triage/SKILL.md +2 -2
  89. package/plugins/lisa/skills/lisa-secrets-access/SKILL.md +8 -0
  90. package/plugins/lisa/skills/lisa-sentry-access/SKILL.md +17 -7
  91. package/plugins/lisa/skills/lisa-sonarcloud-access/SKILL.md +7 -1
  92. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  93. package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -0
  94. package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -0
  95. package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -1
  96. package/plugins/lisa-agy/plugin.json +1 -1
  97. package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +5 -3
  98. package/plugins/lisa-agy/skills/lisa-atlassian-access/SKILL.md +76 -65
  99. package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  100. package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +2 -2
  101. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +7 -1
  102. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +5 -0
  103. package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +3 -1
  104. package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +2 -1
  105. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +7 -3
  106. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +16 -6
  107. package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +1 -1
  108. package/plugins/lisa-agy/skills/lisa-jam-access/SKILL.md +14 -6
  109. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +5 -0
  110. package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +2 -0
  111. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  112. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +6 -1
  113. package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +31 -11
  114. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +5 -0
  115. package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +3 -1
  116. package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  117. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +13 -4
  118. package/plugins/lisa-agy/skills/lisa-notion-access/SKILL.md +37 -24
  119. package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  120. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +1 -1
  121. package/plugins/lisa-agy/skills/lisa-posthog-access/SKILL.md +17 -7
  122. package/plugins/lisa-agy/skills/lisa-prd-source-write/SKILL.md +4 -2
  123. package/plugins/lisa-agy/skills/lisa-qa-fail/SKILL.md +3 -1
  124. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +28 -0
  125. package/plugins/lisa-agy/skills/lisa-rework-triage/SKILL.md +2 -2
  126. package/plugins/lisa-agy/skills/lisa-secrets-access/SKILL.md +8 -0
  127. package/plugins/lisa-agy/skills/lisa-sentry-access/SKILL.md +17 -7
  128. package/plugins/lisa-agy/skills/lisa-sonarcloud-access/SKILL.md +7 -1
  129. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  130. package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -0
  131. package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -0
  132. package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -1
  133. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  134. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  135. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  136. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  137. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  138. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  139. package/plugins/lisa-copilot/rules/eager/bdd-e2e-coverage.md +3 -1
  140. package/plugins/lisa-copilot/rules/eager/claim-time-guards.md +30 -0
  141. package/plugins/lisa-copilot/rules/eager/integration-access-layer.md +7 -3
  142. package/plugins/lisa-copilot/rules/eager/ready-role-filing.md +22 -0
  143. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +8 -1
  144. package/plugins/lisa-copilot/rules/reference/bdd-e2e-coverage.md +42 -6
  145. package/plugins/lisa-copilot/rules/reference/claim-time-guards.md +69 -0
  146. package/plugins/lisa-copilot/rules/reference/credential-substrate-precedence.md +166 -0
  147. package/plugins/lisa-copilot/rules/reference/integration-access-layer.md +27 -15
  148. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +66 -0
  149. package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +5 -3
  150. package/plugins/lisa-copilot/skills/lisa-atlassian-access/SKILL.md +76 -65
  151. package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  152. package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +2 -2
  153. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +7 -1
  154. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +5 -0
  155. package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +3 -1
  156. package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +2 -1
  157. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +7 -3
  158. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +16 -6
  159. package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +1 -1
  160. package/plugins/lisa-copilot/skills/lisa-jam-access/SKILL.md +14 -6
  161. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +5 -0
  162. package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +2 -0
  163. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  164. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +6 -1
  165. package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +31 -11
  166. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +5 -0
  167. package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +3 -1
  168. package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  169. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +13 -4
  170. package/plugins/lisa-copilot/skills/lisa-notion-access/SKILL.md +37 -24
  171. package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  172. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +1 -1
  173. package/plugins/lisa-copilot/skills/lisa-posthog-access/SKILL.md +17 -7
  174. package/plugins/lisa-copilot/skills/lisa-prd-source-write/SKILL.md +4 -2
  175. package/plugins/lisa-copilot/skills/lisa-qa-fail/SKILL.md +3 -1
  176. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +28 -0
  177. package/plugins/lisa-copilot/skills/lisa-rework-triage/SKILL.md +2 -2
  178. package/plugins/lisa-copilot/skills/lisa-secrets-access/SKILL.md +8 -0
  179. package/plugins/lisa-copilot/skills/lisa-sentry-access/SKILL.md +17 -7
  180. package/plugins/lisa-copilot/skills/lisa-sonarcloud-access/SKILL.md +7 -1
  181. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  182. package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -0
  183. package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -0
  184. package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -1
  185. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  186. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +8 -1
  187. package/plugins/lisa-cursor/rules/bdd-e2e-coverage-reference.mdc +42 -6
  188. package/plugins/lisa-cursor/rules/bdd-e2e-coverage.mdc +3 -1
  189. package/plugins/lisa-cursor/rules/claim-time-guards-reference.mdc +74 -0
  190. package/plugins/lisa-cursor/rules/claim-time-guards.mdc +35 -0
  191. package/plugins/lisa-cursor/rules/credential-substrate-precedence-reference.mdc +171 -0
  192. package/plugins/lisa-cursor/rules/integration-access-layer-reference.mdc +27 -15
  193. package/plugins/lisa-cursor/rules/integration-access-layer.mdc +7 -3
  194. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +71 -0
  195. package/plugins/lisa-cursor/rules/ready-role-filing.mdc +27 -0
  196. package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +5 -3
  197. package/plugins/lisa-cursor/skills/lisa-atlassian-access/SKILL.md +76 -65
  198. package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  199. package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +2 -2
  200. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +7 -1
  201. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +5 -0
  202. package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +3 -1
  203. package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +2 -1
  204. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +7 -3
  205. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +16 -6
  206. package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +1 -1
  207. package/plugins/lisa-cursor/skills/lisa-jam-access/SKILL.md +14 -6
  208. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +5 -0
  209. package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +2 -0
  210. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  211. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +6 -1
  212. package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +31 -11
  213. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +5 -0
  214. package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +3 -1
  215. package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  216. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +13 -4
  217. package/plugins/lisa-cursor/skills/lisa-notion-access/SKILL.md +37 -24
  218. package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  219. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +1 -1
  220. package/plugins/lisa-cursor/skills/lisa-posthog-access/SKILL.md +17 -7
  221. package/plugins/lisa-cursor/skills/lisa-prd-source-write/SKILL.md +4 -2
  222. package/plugins/lisa-cursor/skills/lisa-qa-fail/SKILL.md +3 -1
  223. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +28 -0
  224. package/plugins/lisa-cursor/skills/lisa-rework-triage/SKILL.md +2 -2
  225. package/plugins/lisa-cursor/skills/lisa-secrets-access/SKILL.md +8 -0
  226. package/plugins/lisa-cursor/skills/lisa-sentry-access/SKILL.md +17 -7
  227. package/plugins/lisa-cursor/skills/lisa-sonarcloud-access/SKILL.md +7 -1
  228. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  229. package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -0
  230. package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -0
  231. package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -1
  232. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  233. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  234. package/plugins/lisa-expo-agy/plugin.json +1 -1
  235. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  236. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  237. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  238. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  239. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  240. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  241. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  242. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  243. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  244. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  245. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  246. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  247. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  248. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  249. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  250. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  251. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  252. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  253. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  254. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  255. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  256. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  257. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  258. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  259. package/plugins/lisa-rails-agy/plugin.json +1 -1
  260. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  261. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  262. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  263. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  264. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  265. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  266. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  267. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  268. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  269. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  270. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  271. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  272. package/plugins/src/base/rules/eager/bdd-e2e-coverage.md +3 -1
  273. package/plugins/src/base/rules/eager/claim-time-guards.md +30 -0
  274. package/plugins/src/base/rules/eager/integration-access-layer.md +7 -3
  275. package/plugins/src/base/rules/eager/ready-role-filing.md +22 -0
  276. package/plugins/src/base/rules/reference/automation-runbook-contract.md +8 -1
  277. package/plugins/src/base/rules/reference/bdd-e2e-coverage.md +42 -6
  278. package/plugins/src/base/rules/reference/claim-time-guards.md +69 -0
  279. package/plugins/src/base/rules/reference/credential-substrate-precedence.md +166 -0
  280. package/plugins/src/base/rules/reference/integration-access-layer.md +27 -15
  281. package/plugins/src/base/rules/reference/ready-role-filing.md +66 -0
  282. package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +5 -3
  283. package/plugins/src/base/skills/lisa-atlassian-access/SKILL.md +76 -65
  284. package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  285. package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +2 -2
  286. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +7 -1
  287. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +5 -0
  288. package/plugins/src/base/skills/lisa-github-create/SKILL.md +3 -1
  289. package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +2 -1
  290. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +7 -3
  291. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +16 -6
  292. package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +1 -1
  293. package/plugins/src/base/skills/lisa-jam-access/SKILL.md +14 -6
  294. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +5 -0
  295. package/plugins/src/base/skills/lisa-jira-create/SKILL.md +2 -0
  296. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  297. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +6 -1
  298. package/plugins/src/base/skills/lisa-linear-access/SKILL.md +31 -11
  299. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +5 -0
  300. package/plugins/src/base/skills/lisa-linear-create/SKILL.md +3 -1
  301. package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  302. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +13 -4
  303. package/plugins/src/base/skills/lisa-notion-access/SKILL.md +37 -24
  304. package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  305. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +1 -1
  306. package/plugins/src/base/skills/lisa-posthog-access/SKILL.md +17 -7
  307. package/plugins/src/base/skills/lisa-prd-source-write/SKILL.md +4 -2
  308. package/plugins/src/base/skills/lisa-qa-fail/SKILL.md +3 -1
  309. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +28 -0
  310. package/plugins/src/base/skills/lisa-rework-triage/SKILL.md +2 -2
  311. package/plugins/src/base/skills/lisa-secrets-access/SKILL.md +8 -0
  312. package/plugins/src/base/skills/lisa-sentry-access/SKILL.md +17 -7
  313. package/plugins/src/base/skills/lisa-sonarcloud-access/SKILL.md +7 -1
  314. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  315. package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -0
  316. package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -0
  317. package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -1
  318. package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +631 -5
@@ -73,16 +73,43 @@ platforms it requires and that each named platform has a configured runner.
73
73
  "level": "behavioral"
74
74
  }
75
75
  ],
76
+ "testDiscovery": {
77
+ "<runner>": {
78
+ "roots": ["<repo-relative directory>", "..."],
79
+ "extensions": [".<suffix>", "..."],
80
+ "ignore": ["<optional repo-relative path prefix>"],
81
+ "evidence": { "kind": "call-title", "functions": ["test", "it"] }
82
+ }
83
+ },
76
84
  "exclusions": [
77
- { "file": "<path>", "reason": "why this test aligns to no product behavior" }
85
+ {
86
+ "file": "<path>",
87
+ "evidence": "<optional exact title; omit to excuse the whole file>",
88
+ "reason": "why this test aligns to no product behavior"
89
+ }
78
90
  ]
79
91
  }
80
92
  ```
81
93
 
82
94
  `evidence` is what makes a mapping falsifiable: the gate reads the mapped file and confirms the
83
95
  string is still there, so renaming or deleting a test breaks the map loudly instead of leaving a
84
- scenario silently unguarded. `exclusions` records tests that deliberately map to nothing — starter
85
- templates, source-level corroboration — so "unmapped test" stays a meaningful signal.
96
+ scenario silently unguarded.
97
+
98
+ `testDiscovery` closes the other direction. Validating only what the map DECLARES can never see a
99
+ test file nobody declared, so the gate walks the project's own roots and requires **every test it
100
+ finds to be named by a mapping or excused by an exclusion**. Roots and the evidence grammar are
101
+ per-runner configuration — list every directory, including subflow and helper directories, because
102
+ a directory omitted here is structurally invisible to the gate. Evidence grammars are an allowlist
103
+ of two (`call-title` reads `test("…")`-style declarations; `line-field` reads a leading `name:`
104
+ field), never a project-supplied regular expression, and a template-literal title is used verbatim
105
+ from the source rather than rewritten. A missing block is a defect in enforced mode
106
+ (`discovery-missing`); a malformed one is refused in **every** state (`discovery-invalid`), because
107
+ discovery that silently finds nothing looks exactly like a clean repo.
108
+
109
+ `exclusions` records tests that deliberately map to nothing — starter templates, source-level
110
+ corroboration — so "unmapped test" stays a meaningful signal. Each entry states a `reason`, and an
111
+ exclusion whose file is gone, whose title was renamed, or that no discovery root covers is
112
+ `exclusion-stale`: a standing claim about nothing, never a permanent excuse.
86
113
 
87
114
  ## The gate
88
115
 
@@ -99,8 +126,14 @@ Two commands, wired into the project's script surface and into CI:
99
126
  - an invalid waiver (nonexistent scenario, undeclared platform, already-excluded scenario, a
100
127
  `runner` that does not cover the waived platform under `runnerPlatforms`, or one that masks an
101
128
  existing mapping);
129
+ - a discovered test named by no mapping and no exclusion, or an exclusion that no longer excuses
130
+ anything;
102
131
  - a regression against the project's committed `coverageFloor` per platform.
103
132
 
133
+ Regeneration is never blocked by the check: `--write` rewrites the report and burndown whenever a
134
+ report can be built at all, so a stale evidence string can never hold hostage the paperwork that
135
+ documents it.
136
+
104
137
  The percentage measures **aligned automation inventory, not the latest run result**. A mapped test
105
138
  that currently fails is a red CI check, a separate signal; the map only asserts the automation
106
139
  exists and still says what it claimed. Both facts are required — a green gate over a red suite is
@@ -162,9 +195,12 @@ A repo with no contract yet, taking its first frontend work item:
162
195
 
163
196
  1. **Detect runners.** Find the e2e harnesses the project actually has, per the Tool Discovery
164
197
  Process in `verification-lifecycle`. Record which platforms each covers.
165
- 2. **Scaffold the minimum** — `bdd/features/`, `bdd/coverage-map.json` (with `runnerPlatforms` from
166
- step 1 and a coverage floor of the current, honest number), the regenerate + check scripts wired
167
- into the project's script surface, and the CI invocation of the check.
198
+ 2. **Scaffold the minimum** — `bdd/features/`, `bdd/coverage-map.json` (with `runnerPlatforms` and
199
+ `testDiscovery` from step 1 every root each runner's tests actually live in, subflow and helper
200
+ directories included and a coverage floor of the current, honest number), the regenerate +
201
+ check scripts wired into the project's script surface, and the CI invocation of the check.
202
+ Pre-existing tests that align to no product behavior are recorded as `exclusions` with reasons
203
+ during this step, never left undisclosed.
168
204
  3. **Write only this item's scenarios.** The first item is not a backfill project. Pre-existing
169
205
  uncovered behavior becomes burndown in `docs/e2e-bdd-coverage.md`, and the floor starts where the
170
206
  repo actually is.
@@ -20,7 +20,7 @@ Default locations (a project that already has an equivalent contract keeps its o
20
20
  | Artifact | Default path | What it is |
21
21
  |---|---|---|
22
22
  | Scenarios | `bdd/features/*.feature` | Gherkin, the product-level behavior contract |
23
- | Coverage map | `bdd/coverage-map.json` | scenario → runner/platform/file/evidence mappings, plus waivers |
23
+ | Coverage map | `bdd/coverage-map.json` | scenario → runner/platform/file/evidence mappings, plus waivers, per-runner test-discovery roots, and exclusions |
24
24
  | Generated matrix | `docs/bdd-scenario-matrix.md` | regenerated, never hand-edited |
25
25
  | Burndown | `docs/e2e-bdd-coverage.md` | current coverage per platform |
26
26
 
@@ -41,6 +41,8 @@ The last three are out of the denominator. Deleting a committed capability to ma
41
41
 
42
42
  Coverage is counted per **required scenario-platform obligation**, and an obligation is sealed only by **aligned e2e automation in the project's configured runner for that platform** — the runner→platform mapping is project configuration (e.g. a web runner covering `web`, a device runner covering `ios`/`android`), never named by this contract. A unit test, a route boot, a screenshot, a fixture, an API test, or a passing test on a *different* platform never seals an obligation: they prove something else. Each mapping names the runner, the platforms, the file, and the evidence string inside it, so the gate can prove the mapping still resolves.
43
43
 
44
+ **The gate reads in both directions.** It also walks the test roots the project declares per runner, so an e2e test that exists but that the contract never mentions is a violation — map it to a scenario, or record an exclusion stating why it aligns to no product behavior. Roots are configuration: a subflow or helper directory left undeclared is structurally invisible, which is the same failure as having no gate for it.
45
+
44
46
  **Waivers are dated IOUs, never coverage.** An obligation whose runner genuinely cannot decide it today (no camera on the simulator, no request interception, no provisioned provider credential) is recorded with scenario, platforms, reason, and `recordedAt`. It leaves the denominator; it never counts as covered, and nothing about it asserts the behavior works. A waiver is invalid — and fails the gate — when it names a nonexistent scenario or an undeclared platform, covers an already-excluded scenario, or masks a scenario-platform that already has a mapping. Revisit a waiver when its reason dies.
45
47
 
46
48
  ## Definition of done
@@ -0,0 +1,74 @@
1
+ ---
2
+ description: "Claim-Time Guards"
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Claim-Time Guards
7
+
8
+ Two guards that run when build-intake claims a ready item. Both come from geminisportsai's hand-rolled `sprint-loop` and both address failures actually observed there — an item built twice because it had already shipped, and a loop burning cycles re-attempting an item that was never going to succeed.
9
+
10
+ It is a **single vendor-neutral contract** consumed by all three build-intake skills (`lisa-github-build-intake`, `lisa-jira-build-intake`, `lisa-linear-build-intake`). Each arm cites this slug in its claim step rather than growing its own copy, exactly as the arms cite `leaf-only-lifecycle`, `repo-scope-split`, `rejection-detection`, and `claim-archaeology`. One slug is what keeps a guard that fires on GitHub from being absent on Linear.
11
+
12
+ ## Sequencing
13
+
14
+ The shared claim phase is `3a.0` repo-scope gate → `3a` leaf-only claim gate → `3b` Claim → `3c` run lifecycle → `3d` transition to done. Inside `3b`, the pre-transition window now runs four passes in a fixed order:
15
+
16
+ 1. **`rejection-detection`** — needs the current-lane signal the relabel destroys.
17
+ 2. **`claim-archaeology`** — consumes the rejection classification.
18
+ 3. **`two-failed-attempts` valve** (this rule) — may end the cycle before any claim happens.
19
+ 4. **`already-implemented` check** (this rule) — decides whether `3c` implements or verifies.
20
+
21
+ The valve runs before the already-implemented probe because it is cheaper and it is the only one of the four that can stop the claim outright: there is no point spending git and PR queries on an item that is about to be blocked.
22
+
23
+ ## Guard 1 — already-implemented → verify-and-close
24
+
25
+ **Why it exists.** A ready item may already be implemented. Agents ship without transitioning: the PR merges, the work is done, and the item sits in the ready lane looking untouched. Claiming it normally means building the same change a second time — at best a no-op PR, at worst a conflicting reimplementation of work that already landed.
26
+
27
+ **The probe.** Two deterministic searches for the item's **own** canonical key (the ref carried by the `Work-Item:` trailer), bounded and never interactive:
28
+
29
+ ```bash
30
+ # Commits anywhere in history — branches and merged work included — that carry the key.
31
+ git log --all --grep "<key>" --format='%H %aI %s' -n 10
32
+
33
+ # Open and merged PRs referencing the key (GitHub shown; JIRA and Linear use the
34
+ # equivalent search through their access layers, never a direct vendor API call).
35
+ gh pr list --repo <org>/<repo> --state all --search "<key>" --json number,state,mergedAt,url
36
+ ```
37
+
38
+ A hit counts only when it names **this** key. Branch-name coincidence, a similar title, or a reference from an unrelated item is not a hit — that is `claim-archaeology`'s job, not this one.
39
+
40
+ **The outcome.** On a hit, do not implement. Switch `3c` to **verify-and-close**:
41
+
42
+ 1. Read the referenced commits/PR and establish what actually shipped.
43
+ 2. Verify the shipped change against this item's acceptance criteria — the ordinary verification path, not a fresh build.
44
+ 3. On a pass: post evidence naming the shipping PR/commit, then run the normal `3d` transition (which still gates on the PR being merged) and the `3d.1` rollup.
45
+ 4. On a fail — the shipped change does not satisfy the criteria — record that the item is only **partially** implemented, and proceed with the ordinary implement path for the remaining gap. A partial hit must never close an item whose criteria are unmet.
46
+
47
+ **What this is not.** Three nearby behaviors it must not be conflated with:
48
+
49
+ - **`claim-archaeology`** answers "is this item round 2 of a *different* past failure?" — it looks for an **ancestor** issue. This guard looks for **this same item** already having shipped. Different question, different key, different outcome.
50
+ - **`DUPLICATE_ALREADY_FIXED`** (from `lisa-ticket-triage`) is about a **different canonical issue** whose fix covers this one; it closes as a duplicate. This guard finds work done **under this item's own key** and closes it as completed, not as a duplicate.
51
+ - **Rejection reclaim** is about work that shipped and was pushed back. Verify-and-close applies to work that shipped and nobody noticed.
52
+
53
+ **Never block.** An unreadable history, an absent `gh`, or a failed search degrades to "no hit" and the ordinary implement path proceeds. A speculative probe must never strand a ready item.
54
+
55
+ ## Guard 2 — two-failed-attempts → blocked
56
+
57
+ **Why it exists.** Without a valve, a scheduled loop re-claims the same failing item every cycle forever. Each attempt costs a full build flow, and the third attempt is not more likely to succeed than the second — what changed between them was nothing.
58
+
59
+ **The counter.** Attempts are counted from durable markers on the item itself, not from session memory (a cron process holds no state between cycles). On every **non-success terminal outcome** for a claimed item — errored, blocked by a gate, PR abandoned unmerged — the intake arm records a visible comment plus a marker:
60
+
61
+ ```text
62
+ Build attempt <N> did not complete: <one-line operator-readable reason>.
63
+ <!-- [lisa-build-attempt] n=<N> outcome=<outcome> -->
64
+ ```
65
+
66
+ The marker line is verbatim; the count is the number of `[lisa-build-attempt]` markers on the item. Match on the **marker, never the title**. A successful build records no marker, so an item that shipped after one bad attempt starts clean if it is ever re-filed.
67
+
68
+ **The threshold is two.** At the top of the claim, count existing markers. With **two or more**, do not claim:
69
+
70
+ 1. Move the item to the configured `blocked` role (`build.blocked` / `workflow.blocked`, resolved per `config-resolution` — never a hardcoded lane).
71
+ 2. Post an operator-readable comment naming both prior attempts, what each one hit, and what a human would need to decide or supply. Written for a non-technical operator, per `report-actionability`.
72
+ 3. **Stop the loop** — end the cycle without claiming anything else. Stopping is the point: the next scheduled invocation should not immediately pick up the next item as though nothing happened.
73
+
74
+ **Recovery is deliberate.** A blocked item returns to the queue only when a human (or `lisa-repair-intake`, once the named blocker is provably cleared) moves it back. The attempt markers stay on the item as history; re-entering the ready lane after a real fix is a fresh claim whose markers describe why it was hard, not a silent reset of the counter.
@@ -0,0 +1,35 @@
1
+ ---
2
+ description: "Claim-Time Guards (load-bearing)"
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Claim-Time Guards (load-bearing)
7
+
8
+ Two guards that run when build-intake claims a ready item, both from failures observed in the fleet: an item built twice because it had already shipped, and a loop burning cycles re-attempting an item that was never going to succeed.
9
+
10
+ **One vendor-neutral contract, cited by every build-intake arm** (the `leaf-only-lifecycle` / `repo-scope-split` / `rejection-detection` / `claim-archaeology` precedent: one shared slug, never three divergent implementations).
11
+
12
+ ## When they run
13
+
14
+ Inside build-intake step `3b`, after `rejection-detection` and `claim-archaeology`, still before the `$READY → $CLAIMED` transition. The `two-failed-attempts` valve runs first — it is cheaper and it is the only pass that can stop the claim outright.
15
+
16
+ ## `already-implemented` → `verify-and-close`
17
+
18
+ A ready item may already be implemented, because agents ship without transitioning. Before implementing, probe for the item's **own** key:
19
+
20
+ ```bash
21
+ git log --all --grep "<key>" --format='%H %aI %s' -n 10
22
+ gh pr list --repo <org>/<repo> --state all --search "<key>" --json number,state,mergedAt,url
23
+ ```
24
+
25
+ On a hit, do not build it twice — switch `3c` to **verify-and-close**: verify what shipped against this item's acceptance criteria, post evidence naming the shipping PR/commit, then run the ordinary `3d` transition and rollup. If the shipped change only partially satisfies the criteria, implement the remaining gap instead of closing.
26
+
27
+ Distinct from `claim-archaeology` (finds a **different** ancestor issue) and from `DUPLICATE_ALREADY_FIXED` (a **different** canonical issue). Unreadable history degrades to "no hit"; the guard never blocks the claim.
28
+
29
+ ## `two-failed-attempts` → blocked
30
+
31
+ Every non-success terminal outcome records a durable marker on the item — a visible line plus `<!-- [lisa-build-attempt] n=<N> outcome=<outcome> -->` (match on the marker, never the title). A cron holds no memory between cycles, so the item carries the count.
32
+
33
+ With **two or more** markers at claim time: do not claim. Move the item to the configured `blocked` role (resolved per `config-resolution`, never hardcoded), post an operator-readable comment naming both attempts and what a human must decide or supply, and **stop the loop** for this cycle. Recovery is deliberate — a human or a `lisa-repair-intake` cycle with the blocker provably cleared returns it to the queue.
34
+
35
+ Full contract (probe bounds, verify-and-close steps, partial-hit handling, marker mechanics): [reference/claim-time-guards.md](claim-time-guards-reference.mdc).
@@ -0,0 +1,171 @@
1
+ ---
2
+ description: "Credential-Substrate Precedence"
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Credential-Substrate Precedence
7
+
8
+ **When more than one substrate can reach an external system, the configured credentials
9
+ provider's token/CLI path goes first and the interactive MCP is the fallback — and
10
+ identity-match verification is mandatory on every substrate, at every tier.**
11
+
12
+ This is **one shared, vendor-neutral contract cited by every `*-access` skill** (the
13
+ `leaf-only-lifecycle` / `repo-scope-split` precedent: one shared slug, never divergent
14
+ per-skill prose). An access skill states its per-vendor mechanics — which token, which
15
+ CLI, which identity anchor — and cites this rule for the ordering. It never restates,
16
+ narrows, or locally overrides the ordering.
17
+
18
+ Settled by the decision record `2026-08-12-credential-substrate-precedence` (D6). It is
19
+ a **settled decision** in the `settled-decisions` sense: re-arguing MCP-first inside a
20
+ skill is out of scope for that skill's work.
21
+
22
+ ## The ladder
23
+
24
+ ### Tier 1 — configured-provider substrate
25
+
26
+ The token or CLI path fed by `lisa-secrets-access`. Chosen **whenever its bootstrap
27
+ credential is available AND the resolved substrate identity-matches the configured
28
+ tenant/workspace/site.**
29
+
30
+ `lisa-secrets-access` is the single chokepoint that makes this tier actionable rather
31
+ than aspirational: it owns the one-store rule and the surface ladder, and its `tool:`
32
+ note line already declares which CLI a given credential is expected to drive. An access
33
+ skill resolves its credential through that chokepoint — never by reading an OS keychain
34
+ a second time.
35
+
36
+ Both halves of the gate are load-bearing. A present credential that identity-matches
37
+ nothing is **not** tier 1; it is a failed tier, and the ladder moves on.
38
+
39
+ ### Tier 2 — interactive MCP
40
+
41
+ Used when the tier 1 path is **genuinely unavailable**. The three genuine cases:
42
+
43
+ - **No bootstrap** — the provider credential is absent or the project has not adopted a
44
+ credentials provider at all.
45
+ - **No adapter for the operation** — the token/CLI substrate has no documented adapter
46
+ for the requested operation, and the MCP does (per-operation, not per-session: a skill
47
+ may resolve tier 1 for one operation and tier 2 for the next).
48
+ - **Provider outage** — the provider path is present but failing for reasons the caller
49
+ cannot fix in-session.
50
+
51
+ "The MCP happens to be authenticated" is not one of them. Neither is "tier 1 is slower."
52
+
53
+ ### Tier 3 — loud, actionable failure
54
+
55
+ When no substrate is both available and identity-matched, fail with a message naming the
56
+ exact credential to set and the exact remediation path. Never silently no-op, never
57
+ blind-retry a failed or absent substrate, and never fall through to a substrate that
58
+ failed identity-match.
59
+
60
+ ## Identity-match is mandatory on every substrate
61
+
62
+ Verification runs **in both directions** before any operation: the substrate must claim
63
+ the configured tenant, and the configured tenant must be one the substrate can actually
64
+ reach. A substrate authenticated as a **different** account is **skipped, never used**,
65
+ regardless of tier — including tier 1. A credential is not an identity claim; the
66
+ identity claim is what the provider says when asked.
67
+
68
+ | Vendor | Identity anchor | Probe |
69
+ |---|---|---|
70
+ | Atlassian | `atlassian.cloudId` / `atlassian.site` | `/rest/api/3/myself` email, acli `auth status` site, MCP accessible-resources contains the cloudId |
71
+ | Notion | `notion.workspaceId` (+ `prdDatabaseId` reachability) | `GET /v1/users/me` → `bot.workspace_name`/`workspace_id` |
72
+ | Linear | `linear.workspace` / `linear.teamKey` | `viewer`/`organization` on GraphQL; team list through the MCP |
73
+ | Sentry / PostHog / Jam / Sonar | configured org + project | the substrate's own whoami/org listing |
74
+
75
+ Skipping the check because "the user obviously meant this workspace" is forbidden. Silent
76
+ cross-tenant operations are precisely the hazard this contract exists to prevent.
77
+
78
+ ## Why provider-first (and why it overturns a working default)
79
+
80
+ MCP-first was defensible and is being overturned deliberately, not corrected as an
81
+ oversight. Three reasons outweigh it.
82
+
83
+ **Headless parity.** Cron runs, cloud sessions, CI, and subagent sessions have no
84
+ browser. Under MCP-first an interactive session and a headless session resolve through
85
+ *different* substrates and can therefore fail differently — and the failure surfaces only
86
+ in the environment nobody is watching. Provider-first makes the primary path the same one
87
+ everywhere, with MCP as the enhancement rather than the default.
88
+
89
+ **Tenant safety — the generalized Atlassian write rule.** Substrates differ in *where
90
+ their target comes from*:
91
+
92
+ - **Per-invocation-bound.** The target is part of the call. A cloudId-scoped REST URL
93
+ (`https://api.atlassian.com/ex/jira/<CLOUDID>/…`) or a workspace-scoped API token
94
+ carries its tenant in the request itself, so nothing outside the call can redirect it.
95
+ - **Ambient-bound.** The target comes from machine-global or session-global state a skill
96
+ does not own: acli's single active account, an MCP's browser OAuth session bound to
97
+ whatever account the human last used. Any other process — or the human — can change it
98
+ between the check and the call. That is a **TOCTOU** window, and a successful
99
+ pre-flight `auth status` does not close it.
100
+
101
+ Prefer the per-invocation-bound substrate. This is exactly why Atlassian JIRA *writes*
102
+ were already forced onto the cloudId-scoped curl adapter; the hazard is not specific to
103
+ Atlassian and not specific to writes. A misrouted write is loud and often reversible; a
104
+ **read through the wrong tenant silently returns wrong data**, which then propagates into
105
+ tickets, PRDs, and verification claims — harder to detect and harder to unwind. Reads get
106
+ the same ordering as writes.
107
+
108
+ **Determinism.** A token path either has its bootstrap or does not, and says so. An MCP's
109
+ readiness depends on session state a skill cannot inspect reliably — the same server
110
+ registers under different prefixes depending on install path, and its data tools register
111
+ only after OAuth completes.
112
+
113
+ ## MCP stays a first-class fallback
114
+
115
+ This is a **re-ordering, not a removal.** The strongest argument for MCP-first — that an
116
+ already-authenticated MCP is zero-setup and identity-verified — is preserved by keeping
117
+ MCP as a genuine, fully supported tier rather than deleting it:
118
+
119
+ - Every access skill keeps its MCP adapters in the dispatch table.
120
+ - An operation with no tier 1 adapter routes to MCP **as the normal path**, not as an
121
+ error.
122
+ - A project with no credentials provider is fully functional on MCP alone.
123
+ - MCP failure messages stay actionable (how to enable and authenticate the plugin).
124
+
125
+ Removing an MCP adapter is a separate decision requiring its own justification. Do not
126
+ treat this contract as license to delete one.
127
+
128
+ ## Guarded fallback for ambient-bound substrates
129
+
130
+ When the ladder does fall back to an ambient-bound substrate for a **mutating**
131
+ operation, the fallback is guarded — never the normal path:
132
+
133
+ 1. Switch to the configured profile and assert the active identity matches config
134
+ immediately before the write.
135
+ 2. Execute the write.
136
+ 3. Re-read the affected object(s) immediately afterward.
137
+ 4. Perform a **post-write tenant assertion** on the response — the tenant is proven from
138
+ the response (self URL host, cloudId in the path, or response metadata), not assumed
139
+ from the pre-flight check.
140
+ 5. On mismatch: stop, report a cross-tenant hazard, and best-effort **roll back** the
141
+ write when a safe reversal exists (delete the created object, remove the created
142
+ comment/link, revert a reversible field edit). Never continue as if it succeeded.
143
+
144
+ A successful pre-flight switch is not sufficient for tenant safety — another process can
145
+ mutate global state between the check and the write.
146
+
147
+ ## Consequences to expect
148
+
149
+ - **A stale or wrong token now fails identity-match instead of silently succeeding
150
+ through an authenticated MCP.** That is intended: it is the exact class of bug this
151
+ contract exists to surface. Fix the credential (`/lisa:setup:<vendor>`); do not
152
+ re-order the ladder to route around it.
153
+ - Headless and interactive sessions take the same primary path, so a credential problem
154
+ reproduces on a laptop instead of only at 3am in cron.
155
+ - The ordering is **not configurable per project**. A knob would let a project
156
+ reintroduce the headless divergence this contract removes. Revisit only with a concrete
157
+ need and a new decision record.
158
+
159
+ ## Adding or editing an access skill
160
+
161
+ 1. Cite this rule by name; do not restate the ordering.
162
+ 2. Document the tier 1 credential and the `lisa-secrets-access` resolution path.
163
+ 3. Document the identity anchor and its probe, and state that mismatch means skip.
164
+ 4. Keep MCP adapters and name the operations for which MCP is the only substrate.
165
+ 5. Make the terminal failure name the exact credential and remediation command.
166
+
167
+ Single-substrate access skills are conformant when their one substrate is
168
+ provider-credential-authenticated (`lisa-sonarcloud-access`: the official SonarQube MCP
169
+ authenticates headlessly from `SONARQUBE_CLI_TOKEN`, so it *is* the tier 1 substrate and
170
+ needs no separate REST tier). Reserve a multi-tier ladder for vendors whose MCP is
171
+ browser-OAuth or keychain-bound and therefore dead headless.
@@ -9,24 +9,35 @@ Every Lisa skill or rule that consumes an external integration MUST route throug
9
9
  the integration's `*-access` skill instead of calling that vendor's MCP tools or
10
10
  REST API directly.
11
11
 
12
- The access skill owns substrate resolution:
12
+ The access skill owns substrate resolution. **The ordering is not this rule's to
13
+ define** — it is the single shared contract in `credential-substrate-precedence`,
14
+ cited identically by every `*-access` skill:
13
15
 
14
- 1. MCP, when the tool is available and already authenticated to the configured
15
- workspace/account.
16
- 2. Token/REST substrate, only when the documented env var is present.
17
- 3. Loud failure naming the exact env var to set.
16
+ 1. **Configured-provider token/CLI substrate** the path fed by
17
+ `lisa-secrets-access` — when its bootstrap credential is present AND the
18
+ resolved substrate identity-matches the configured tenant/workspace/account.
19
+ 2. **Interactive MCP**, as a first-class fallback, when the provider path is
20
+ genuinely unavailable (no bootstrap, no adapter for the operation, provider
21
+ outage).
22
+ 3. Loud failure naming the exact credential to set.
18
23
 
19
- Do not blind-retry a failed or absent MCP. Fall back only after checking the
20
- documented env var for that vendor, and never silently no-op when neither tier is
21
- available.
24
+ Identity-match verification is mandatory on **every** substrate, in both
25
+ directions; one authenticated as a different tenant is skipped, never used. See the
26
+ `credential-substrate-precedence` rule for the rationale (headless parity, tenant
27
+ safety, determinism), the guarded-fallback protocol, and what "genuinely
28
+ unavailable" means.
29
+
30
+ Do not blind-retry a failed or absent substrate, and never silently no-op when no
31
+ tier is available.
22
32
 
23
33
  Some MCPs authenticate headlessly from an env token and need no separate REST
24
- tier — the MCP **is** the headless substrate on both developer machines and cloud
25
- routines. The official SonarQube MCP is one such case (`SONARQUBE_CLI_TOKEN`
34
+ tier — such an MCP **is** the configured-provider substrate on both developer
35
+ machines and cloud routines, so a single-substrate access skill is conformant. The
36
+ official SonarQube MCP is one such case (`SONARQUBE_CLI_TOKEN`
26
37
  [+ `SONARQUBE_CLI_ORG`/`SONARQUBE_CLI_SERVER`]): `lisa-sonarcloud-access` resolves it as a
27
- single substrate with no hand-rolled REST fallback. Reserve the two-tier
28
- MCP-then-REST shape for vendors whose MCP is browser-OAuth or keychain-bound and
29
- therefore dead headless.
38
+ single substrate with no hand-rolled REST fallback. Reserve the multi-tier ladder
39
+ for vendors whose MCP is browser-OAuth or keychain-bound and therefore dead
40
+ headless.
30
41
 
31
42
  ## Access Skills
32
43
 
@@ -65,7 +76,8 @@ When editing any skill listed in the matrix:
65
76
  delegate to the matching access skill.
66
77
  - Keep operation names coarse and vendor-native. Add new operation rows to the
67
78
  access skill instead of embedding REST details in the consumer.
68
- - Preserve existing MCP behavior as the first tier where Claude/Codex can expose
69
- the MCP, but make headless token fallback explicit and gated by the env var.
79
+ - Put the documented token/CLI substrate first and keep the MCP as an explicit,
80
+ fully supported fallback tier `credential-substrate-precedence`. Preserving
81
+ the MCP adapters is required; re-ordering them is not the same as removing them.
70
82
  - If a vendor has no documented token substrate, keep the MCP-only behavior and
71
83
  fail with a clear "no documented headless substrate" message.
@@ -9,7 +9,11 @@ Skills and rules that use external integrations route through the matching
9
9
  `*-access` skill. Do not call vendor MCP tools or REST APIs directly from a
10
10
  consumer skill.
11
11
 
12
- Resolution order is MCP when available and authenticated, then documented
13
- token/REST substrate when the env var is set, then a loud error naming the env
14
- var. Full matrix and migration rules:
12
+ Resolution order is the configured-provider token/CLI substrate first when its
13
+ bootstrap credential is present and identity-matched, then the interactive MCP as
14
+ fallback, then a loud error naming the exact credential to set. Identity-match is
15
+ mandatory on every substrate — one authenticated as a different tenant is skipped,
16
+ never used. The ordering itself is settled in
17
+ [reference/credential-substrate-precedence.md](credential-substrate-precedence-reference.mdc);
18
+ full matrix and migration rules:
15
19
  [reference/integration-access-layer.md](integration-access-layer-reference.mdc).
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: "Ready-Role Filing"
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Ready-Role Filing
7
+
8
+ A work item that is filed but never given the ready role is an **incomplete handoff**. No other agent will ever pick it up: build-intake scans the ready lane and nothing else. The originating failure is small and entirely typical — an agent closed a ticket it could not reproduce, filed the real defect it found beside it, and left the new ticket sitting. The defect was correct, the write succeeded, and the work still died.
9
+
10
+ This rule makes the ready role an **explicit claim** at every filing site, and makes omission mean the same thing on every tracker.
11
+
12
+ ## The one normalization
13
+
14
+ **An omitted `build_ready` means NOT build-ready — on JIRA, on GitHub, and on Linear alike.**
15
+
16
+ Before this rule the three writers disagreed, and the disagreement was invisible at the call site:
17
+
18
+ | Tracker | Omitted `build_ready` (before) | Omitted `build_ready` (now) |
19
+ |---|---|---|
20
+ | JIRA | project's default created status — **not ready** | unchanged — **not ready** |
21
+ | GitHub | `status:ready` applied — **ready** | **not ready** |
22
+ | Linear | created in the configured `ready` state — **ready** | **not ready** |
23
+
24
+ So the same vendor-neutral `lisa-tracker-write` call produced a different lifecycle outcome depending on which tracker a project had configured. That is a leak in the abstraction the shim exists to provide: switching trackers must not change behavior.
25
+
26
+ **This is a breaking change for GitHub and Linear callers.** Any caller that omitted `build_ready` and relied on implicit ready must now pass it explicitly. That is the point rather than a cost of it: the only paths affected are ones that were silently depending on a provider-specific default, which is exactly the class of bug this rule exists to eliminate. `lisa-github-validate-issue` F4's compensating normalization (omitted → `true`) is removed with it — a validator that re-introduces the old default would simply move the leak.
27
+
28
+ The safe direction is the implicit one. A ticket that reaches a build queue by accident is worse than one that waits, because the queue is what agents act on autonomously.
29
+
30
+ ## Every filing declares one of two things
31
+
32
+ A writer accepts a filing only when it carries **one** of:
33
+
34
+ - **`build_ready: true`** — the item is complete enough to build and enters the ready lane for auto-pickup. This is the correct answer for a complete defect found during other work.
35
+ - **`human_gate: "<why a human must judge this first>"`** — the item is deliberately held outside the queue because a human product call is pending. The writer stamps a visible marker on the item so the hold is auditable rather than indistinguishable from an accident:
36
+
37
+ ```text
38
+ Held for a human product call: <reason>.
39
+ <!-- [lisa-human-gate] reason=<short-slug> -->
40
+ ```
41
+
42
+ Filed, not ready, and no `human_gate` is the **incomplete handoff** case: the writer rejects it and names the two ways to resolve it. `build_ready: false` without a `human_gate` reason is the same failure spelled differently — it is not a gate, it is an omission with a value attached.
43
+
44
+ `build_ready` remains strictly subordinate to `leaf-only-lifecycle`: a container is never build-ready regardless of what a caller passes, and a container needs no `human_gate` because its state rolls up from its children rather than being claimed.
45
+
46
+ ## Complete defects found during other work are filed build-ready
47
+
48
+ Any defect discovered while doing something else, which is complete enough to build, is filed through `lisa-track` / `lisa-tracker-write` with **explicit `build_ready: true`**. It must be claimable by build-intake on the next cycle with no human flipping status. "Complete enough to build" is the `work-item-definition-of-ready` bar — reproduction, observed-versus-expected, and Gherkin acceptance criteria — not a placeholder to be fleshed out later.
49
+
50
+ The same explicitness applies in the other direction. A filing that is genuinely a human product call declares `human_gate`; it does not simply omit the flag and hope the tracker default is the merciful one.
51
+
52
+ ## The named exception: `lisa-exploratory-qa`
53
+
54
+ `lisa-exploratory-qa` files its findings **not** build-ready by default, and that is **correct** — it is the named human-gate exception under this rule, not drift to be repaired.
55
+
56
+ Exploratory QA is a first-time-user experience pass. Its findings are *candidate* defects and usability observations whose product significance a human should judge; auto-readying them would push judgment work into the build queue, which is precisely the failure the gate model exists to prevent. Its `ready=false` is therefore paired with an explicit `human_gate` reason and stamped with `[lisa-human-gate]` — an explicit human-gate marker, never a bare omission.
57
+
58
+ The sibling `e2e-coverage-gaps` skills are the contrast: a missing automated test is not a product question, so they file `build_ready: true` by default.
59
+
60
+ Other legitimate human-gate filings follow the same shape — `lisa-learnings-audit` promotion/demotion tickets, `lisa-improve-harness` intervention proposals, automation-retirement proposals, and provisioning tickets for access a human must grant. Each declares its `human_gate` reason rather than relying on a default.
61
+
62
+ ## Recovery
63
+
64
+ `lisa-repair-intake` sweeps for the failure this rule prevents: recently filed items that are open, not in the configured ready role, and carrying **no** `[lisa-human-gate]` marker. Each is an incomplete handoff — surfaced with its filing context so an operator can promote it or gate it deliberately. The sweep reports rather than guesses: it never silently promotes an item into the queue, because a filing whose readiness nobody declared is exactly the input the gate model says a human should see.
65
+
66
+ ## Related
67
+
68
+ - **`leaf-only-lifecycle`** — the prohibition `build_ready` is always subordinate to. Containers are never build-ready.
69
+ - **`work-item-definition-of-ready`** — what "complete enough to build" means.
70
+ - **`tracked-work`** — the filing entry point (`lisa-track`) this rule governs the readiness of.
71
+ - **`factory-model`** — why the ready flip is a gate standing outside the factory rather than a field inside it.
@@ -0,0 +1,27 @@
1
+ ---
2
+ description: "Ready-Role Filing (load-bearing)"
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Ready-Role Filing (load-bearing)
7
+
8
+ Filing a work item without the ready role is an **incomplete handoff** — build-intake scans the ready lane and nothing else, so the item is never picked up. A correct write plus a missing role still loses the work.
9
+
10
+ ## Omitted means NOT ready — on every tracker
11
+
12
+ **An omitted `build_ready` is NOT build-ready on JIRA, GitHub, and Linear alike.** Ready is an explicit claim, never an accident of which tracker a project configured. This is a **breaking change** for GitHub and Linear callers, which previously treated omission as ready; `lisa-github-validate-issue` F4's compensating omitted → `true` normalization is removed with it.
13
+
14
+ ## Every filing declares one of two things
15
+
16
+ - **`build_ready: true`** — complete enough to build; enters the ready lane for auto-pickup. Required for any complete defect found during other work, so it is claimable next cycle with no human flipping status.
17
+ - **`human_gate: "<why a human must judge this first>"`** — deliberately held outside the queue. The writer stamps a visible line plus `<!-- [lisa-human-gate] reason=<short-slug> -->` so the hold is auditable.
18
+
19
+ Filed, not ready, and no `human_gate` is the **incomplete handoff** case — writers reject it and name both ways to resolve it. `build_ready: false` with no reason is the same omission with a value attached. `build_ready` stays subordinate to `leaf-only-lifecycle`: a container is never build-ready and needs no gate.
20
+
21
+ ## The named exception
22
+
23
+ `lisa-exploratory-qa` files findings not-ready **by design** — its findings are candidate defects whose product significance a human should judge. It is the named human-gate exception, not drift: it pairs `ready=false` with an explicit `human_gate` reason. The sibling `e2e-coverage-gaps` skills are the contrast (a missing test is not a product question, so they file build-ready).
24
+
25
+ `lisa-repair-intake` sweeps for open items that are neither in the ready role nor marked `[lisa-human-gate]`, and surfaces them rather than promoting them.
26
+
27
+ Full contract (the per-vendor before/after table, marker format, and recovery sweep): [reference/ready-role-filing.md](ready-role-filing-reference.mdc).
@@ -217,9 +217,11 @@ vocabulary; it consumes it.
217
217
 
218
218
  3. **File each standing blocker as a tracker work item — never an in-session question.** For every
219
219
  standing ship blocker, create **one** Lisa work item through the vendor-neutral `lisa-tracker-write`
220
- skill (never a vendor write skill directly), carrying the five finding fields in the body. Label it
221
- **build-ready** when the correction is mechanical; mark it **human-needed** when it is a genuine
222
- human decision. This is the skill's **only tracker write**, and it creates Lisa's *own* work item —
220
+ skill (never a vendor write skill directly), carrying the five finding fields in the body. Per the `ready-role-filing` rule each
221
+ create declares its readiness explicitly: pass **`build_ready: true`** when the correction is
222
+ mechanical (an omitted flag is NOT build-ready on any tracker, so the mechanical branch would
223
+ otherwise file work nothing ever claims), and pass **`human_gate: "<the decision only a human can
224
+ make>"`** plus the `human-needed` marker when it is a genuine human decision. This is the skill's **only tracker write**, and it creates Lisa's *own* work item —
223
225
  it **never edits, comments on, transitions, or otherwise mutates any ingested source** (see the
224
226
  connected-source safety boundary above). The shipped never-ask posture is preserved: a blocker
225
227
  becomes a filed ticket, **never** a prompt, and the session **never pauses to ask a human anything**,