@herbertgao/pi-extensions 2026.10.12 → 2026.10.14

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 (269) hide show
  1. package/README.md +11 -11
  2. package/THIRD_PARTY_NOTICES.md +3 -3
  3. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +7 -9
  4. package/node_modules/@herbertgao/pi-cc-extensions/README.md +7 -9
  5. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +1 -0
  6. package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +14 -8
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +22 -5
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +28 -6
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +33 -12
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -17
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +1 -5
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/index.ts +20 -5
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/markdown-enhance.ts +4 -1
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +42 -18
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/layout.ts +12 -3
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/ccstyle-tool.ts +131 -0
  17. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +217 -113
  18. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/names.ts +12 -5
  19. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/subagent-notification.ts +556 -0
  20. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +50 -0
  21. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +11 -0
  22. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/patch-keys.ts +4 -0
  23. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  24. package/node_modules/@juicesharp/rpiv-ask-user-question/README.md +1 -0
  25. package/node_modules/@juicesharp/rpiv-ask-user-question/ask-user-question.ts +27 -3
  26. package/node_modules/@juicesharp/rpiv-ask-user-question/config.ts +23 -0
  27. package/node_modules/@juicesharp/rpiv-ask-user-question/docs/configuration.md +15 -0
  28. package/node_modules/@juicesharp/rpiv-ask-user-question/docs/keyboard.md +9 -2
  29. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/de.json +7 -4
  30. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/en.json +8 -5
  31. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/es.json +7 -4
  32. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/fr.json +7 -4
  33. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/pt-BR.json +7 -4
  34. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/pt.json +7 -4
  35. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/ru.json +7 -4
  36. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/uk.json +7 -4
  37. package/node_modules/@juicesharp/rpiv-ask-user-question/locales/zh.json +7 -4
  38. package/node_modules/@juicesharp/rpiv-ask-user-question/package.json +4 -3
  39. package/node_modules/@juicesharp/rpiv-ask-user-question/presentation.ts +11 -1
  40. package/node_modules/@juicesharp/rpiv-ask-user-question/state/build-questionnaire.ts +6 -0
  41. package/node_modules/@juicesharp/rpiv-ask-user-question/state/key-router.ts +49 -8
  42. package/node_modules/@juicesharp/rpiv-ask-user-question/state/questionnaire-session.ts +6 -0
  43. package/node_modules/@juicesharp/rpiv-ask-user-question/state/state-reducer.ts +13 -1
  44. package/node_modules/@juicesharp/rpiv-ask-user-question/state/state.ts +2 -0
  45. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/preview/preview-block-renderer.ts +19 -7
  46. package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-builder.ts +36 -7
  47. package/node_modules/@juicesharp/rpiv-ask-user-question/view/dialog-copy.ts +13 -2
  48. package/node_modules/@juicesharp/rpiv-ask-user-question/view/tab-content-strategy.ts +24 -8
  49. package/node_modules/@juicesharp/rpiv-ask-user-question/view/transcript.ts +144 -0
  50. package/node_modules/@narumitw/pi-btw/README.md +7 -2
  51. package/node_modules/@narumitw/pi-btw/dist/index.ts +371 -118
  52. package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
  53. package/node_modules/@narumitw/pi-btw/docs/main-context-runtime.md +45 -0
  54. package/node_modules/@narumitw/pi-btw/docs/workflows.md +48 -5
  55. package/node_modules/@narumitw/pi-btw/package.json +1 -1
  56. package/node_modules/@narumitw/pi-btw/src/btw.ts +39 -14
  57. package/node_modules/@narumitw/pi-btw/src/import-main-updates.ts +84 -0
  58. package/node_modules/@narumitw/pi-btw/src/keybindings.ts +29 -4
  59. package/node_modules/@narumitw/pi-btw/src/main-context-snapshot.ts +125 -0
  60. package/node_modules/@narumitw/pi-btw/src/menu.ts +1 -0
  61. package/node_modules/@narumitw/pi-btw/src/side-thread.ts +66 -17
  62. package/node_modules/@narumitw/pi-btw/src/transcript-markdown.ts +5 -5
  63. package/node_modules/@narumitw/pi-btw/src/transcript-pager.ts +47 -6
  64. package/node_modules/pi-lens/CHANGELOG.md +440 -0
  65. package/node_modules/pi-lens/README.md +13 -3
  66. package/node_modules/pi-lens/config/dependency-cruiser-eager-allowlist.json +1 -0
  67. package/node_modules/pi-lens/dist/chunk-22Y2BM7H.js +23 -0
  68. package/node_modules/pi-lens/dist/{chunk-ATKJFDQN.js → chunk-27VWVB23.js} +12 -14
  69. package/node_modules/pi-lens/dist/{chunk-S2HEXIWI.js → chunk-2FYKETQJ.js} +10 -6
  70. package/node_modules/pi-lens/dist/{chunk-SRYEJNES.js → chunk-2LDMXL2M.js} +2 -2
  71. package/node_modules/pi-lens/dist/{chunk-ZHH37KZL.js → chunk-2SDHYHHO.js} +17 -17
  72. package/node_modules/pi-lens/dist/chunk-2Y6OJRSI.js +38 -0
  73. package/node_modules/pi-lens/dist/chunk-3SNDVPOR.js +507 -0
  74. package/node_modules/pi-lens/dist/{chunk-5OFV52AM.js → chunk-3WCEHYOI.js} +1 -1
  75. package/node_modules/pi-lens/dist/chunk-44X7VIKR.js +73 -0
  76. package/node_modules/pi-lens/dist/{chunk-DEL2U6CM.js → chunk-4FHUGDKU.js} +16 -14
  77. package/node_modules/pi-lens/dist/{chunk-CT4MN5IU.js → chunk-4ODSZ35Z.js} +353 -359
  78. package/node_modules/pi-lens/dist/{chunk-ZIVJBOO3.js → chunk-4U7GDSZQ.js} +2 -2
  79. package/node_modules/pi-lens/dist/chunk-54NIOJJZ.js +25 -0
  80. package/node_modules/pi-lens/dist/{chunk-N5FLEO7W.js → chunk-5DKE4HGX.js} +37 -37
  81. package/node_modules/pi-lens/dist/{chunk-P63GXC37.js → chunk-5LRUKYFA.js} +31 -4
  82. package/node_modules/pi-lens/dist/{chunk-HRNHZA3N.js → chunk-63NMUNYP.js} +12 -16
  83. package/node_modules/pi-lens/dist/{chunk-HWCCCQNX.js → chunk-6XSESGWD.js} +13 -6
  84. package/node_modules/pi-lens/dist/{chunk-UMS2MFPZ.js → chunk-72J27ICO.js} +2 -3
  85. package/node_modules/pi-lens/dist/{chunk-ED36RF6Y.js → chunk-7FLRUH6B.js} +1 -1
  86. package/node_modules/pi-lens/dist/chunk-7IYC4ENJ.js +297 -0
  87. package/node_modules/pi-lens/dist/chunk-7WWQAW5P.js +30 -0
  88. package/node_modules/pi-lens/dist/{chunk-3DA2JDOL.js → chunk-7ZS7MC24.js} +551 -203
  89. package/node_modules/pi-lens/dist/{chunk-WMYE35PX.js → chunk-AHWA4AKM.js} +7 -5
  90. package/node_modules/pi-lens/dist/{chunk-JW3YWBVB.js → chunk-AI3GP74G.js} +17 -19
  91. package/node_modules/pi-lens/dist/{chunk-AGSS7277.js → chunk-APFJKOP6.js} +6 -23
  92. package/node_modules/pi-lens/dist/{chunk-ZVUL7QYY.js → chunk-ASRAO7KG.js} +29 -32
  93. package/node_modules/pi-lens/dist/{chunk-BW5KFIQC.js → chunk-AWQWXSW4.js} +1 -0
  94. package/node_modules/pi-lens/dist/{chunk-TLX72JTG.js → chunk-CG5V25HX.js} +1 -1
  95. package/node_modules/pi-lens/dist/chunk-CKEQFGLT.js +32 -0
  96. package/node_modules/pi-lens/dist/{chunk-Y6GZHWSJ.js → chunk-COOUUC5W.js} +6 -6
  97. package/node_modules/pi-lens/dist/{chunk-XTBDCR27.js → chunk-CPZ5JJW6.js} +4 -4
  98. package/node_modules/pi-lens/dist/{chunk-RKKOYPRA.js → chunk-DS2USX5G.js} +13 -15
  99. package/node_modules/pi-lens/dist/chunk-EA2ZRG44.js +27 -0
  100. package/node_modules/pi-lens/dist/{chunk-GSLNCYGG.js → chunk-EDMLIW6W.js} +13 -14
  101. package/node_modules/pi-lens/dist/{chunk-2EECBNC5.js → chunk-EIKRZ32J.js} +75 -0
  102. package/node_modules/pi-lens/dist/chunk-EKNWOL2I.js +27 -0
  103. package/node_modules/pi-lens/dist/{chunk-R3T7CLQ2.js → chunk-ELZRSR5N.js} +41 -41
  104. package/node_modules/pi-lens/dist/{chunk-GMX5OS7B.js → chunk-EN5AM7PX.js} +11 -12
  105. package/node_modules/pi-lens/dist/{chunk-3RKP3FMS.js → chunk-EWXXLS26.js} +226 -24
  106. package/node_modules/pi-lens/dist/chunk-EX4EXBW7.js +37 -0
  107. package/node_modules/pi-lens/dist/{chunk-XHJBS436.js → chunk-EXVXBSGN.js} +25 -25
  108. package/node_modules/pi-lens/dist/{chunk-MZGQNL3Y.js → chunk-F7BO6FWH.js} +12 -13
  109. package/node_modules/pi-lens/dist/{chunk-V35JG4JB.js → chunk-FEDWAYDS.js} +152 -334
  110. package/node_modules/pi-lens/dist/{chunk-J64T55EI.js → chunk-FWZRGGGY.js} +73 -9
  111. package/node_modules/pi-lens/dist/{chunk-T57LYLZT.js → chunk-G224FADB.js} +1 -1
  112. package/node_modules/pi-lens/dist/chunk-G5UCJFT7.js +26 -0
  113. package/node_modules/pi-lens/dist/{chunk-LLJNQKQW.js → chunk-GLW3YDZZ.js} +20 -13
  114. package/node_modules/pi-lens/dist/{chunk-GXFV6MYU.js → chunk-GTDSYEA2.js} +72 -39
  115. package/node_modules/pi-lens/dist/{chunk-DUO2TU77.js → chunk-GYRZ72R4.js} +10 -4
  116. package/node_modules/pi-lens/dist/chunk-HYVXA3BB.js +49 -0
  117. package/node_modules/pi-lens/dist/{chunk-W66O5E25.js → chunk-IEBJF3PN.js} +13 -15
  118. package/node_modules/pi-lens/dist/{chunk-GAQ7OQG6.js → chunk-IL7K66ZQ.js} +83 -94
  119. package/node_modules/pi-lens/dist/{chunk-T7FEBKXN.js → chunk-JWOVP5BL.js} +7 -9
  120. package/node_modules/pi-lens/dist/{chunk-UBOQLVT2.js → chunk-K2GUZ4DN.js} +4 -4
  121. package/node_modules/pi-lens/dist/{chunk-5VSF4UUQ.js → chunk-K4SZB56V.js} +34 -39
  122. package/node_modules/pi-lens/dist/{chunk-7D6L4MTX.js → chunk-KCBRHV5E.js} +3 -3
  123. package/node_modules/pi-lens/dist/{chunk-GSM5UU7A.js → chunk-KFXCL4OV.js} +38 -28
  124. package/node_modules/pi-lens/dist/{chunk-J6MPGQTS.js → chunk-KJJAVH3X.js} +81 -15
  125. package/node_modules/pi-lens/dist/{chunk-BWD5EPKO.js → chunk-KPVLQHCZ.js} +4 -6
  126. package/node_modules/pi-lens/dist/{chunk-MPNJLASA.js → chunk-KX56K73G.js} +10 -13
  127. package/node_modules/pi-lens/dist/{chunk-AWSCPCN2.js → chunk-LMCTHJ2H.js} +19 -19
  128. package/node_modules/pi-lens/dist/{chunk-IWDLU6K3.js → chunk-MEFLGBCS.js} +4 -6
  129. package/node_modules/pi-lens/dist/{chunk-TOY6QKOH.js → chunk-MKPCELNI.js} +17 -17
  130. package/node_modules/pi-lens/dist/{chunk-POMLXPMY.js → chunk-N3PLNNCW.js} +1 -1
  131. package/node_modules/pi-lens/dist/chunk-N5FBM25N.js +22 -0
  132. package/node_modules/pi-lens/dist/{chunk-CYRKQRPM.js → chunk-NFNVDDGB.js} +2 -4
  133. package/node_modules/pi-lens/dist/{chunk-RMLC67LF.js → chunk-NLIVE7L6.js} +2 -30
  134. package/node_modules/pi-lens/dist/{chunk-24AKHFGP.js → chunk-OMJ3OFBJ.js} +6 -6
  135. package/node_modules/pi-lens/dist/{chunk-IQWN5JCP.js → chunk-OZNCKLOX.js} +13 -14
  136. package/node_modules/pi-lens/dist/chunk-P5XUGPIX.js +31 -0
  137. package/node_modules/pi-lens/dist/{chunk-2KXTHF3M.js → chunk-PJXNTPB2.js} +253 -33
  138. package/node_modules/pi-lens/dist/chunk-PKOXJIVT.js +88 -0
  139. package/node_modules/pi-lens/dist/{chunk-DGUKIYSI.js → chunk-PP2A5V2T.js} +8 -10
  140. package/node_modules/pi-lens/dist/{chunk-KAPJINKN.js → chunk-Q42LJANT.js} +2 -2
  141. package/node_modules/pi-lens/dist/{chunk-UZ2XCLYS.js → chunk-Q4BKKOVC.js} +8 -8
  142. package/node_modules/pi-lens/dist/{chunk-TIQ2PKDW.js → chunk-QT66NEYN.js} +4 -4
  143. package/node_modules/pi-lens/dist/{chunk-U44DJXQP.js → chunk-RCHO5W7M.js} +15 -18
  144. package/node_modules/pi-lens/dist/{chunk-YH5MVY2U.js → chunk-RG3MXTRI.js} +7 -7
  145. package/node_modules/pi-lens/dist/chunk-RG7OODGM.js +57 -0
  146. package/node_modules/pi-lens/dist/{chunk-OHKJ7PQF.js → chunk-RU34BA4D.js} +43 -39
  147. package/node_modules/pi-lens/dist/{chunk-JMYYOTQG.js → chunk-S26LC76R.js} +13 -1
  148. package/node_modules/pi-lens/dist/{chunk-XBJVAEEO.js → chunk-S55TEC7I.js} +3 -2
  149. package/node_modules/pi-lens/dist/{chunk-RVK72CZX.js → chunk-SJHC3BCZ.js} +1397 -481
  150. package/node_modules/pi-lens/dist/{chunk-IYNJ6YPZ.js → chunk-SNEUMLM7.js} +4 -4
  151. package/node_modules/pi-lens/dist/{chunk-S67KYG37.js → chunk-T4NGVFYI.js} +2 -2
  152. package/node_modules/pi-lens/dist/{chunk-YCWYO6TQ.js → chunk-THEXI2QO.js} +48 -45
  153. package/node_modules/pi-lens/dist/{chunk-AMERCH6V.js → chunk-TL2TCJYL.js} +15 -16
  154. package/node_modules/pi-lens/dist/{chunk-KUA4OJ5Y.js → chunk-TPYYEDP5.js} +823 -350
  155. package/node_modules/pi-lens/dist/{chunk-YNE3RP52.js → chunk-TVZRLTG6.js} +8 -1
  156. package/node_modules/pi-lens/dist/{chunk-ROYSX2S5.js → chunk-UCVMSOXF.js} +2 -2
  157. package/node_modules/pi-lens/dist/chunk-UL5SXQVX.js +32 -0
  158. package/node_modules/pi-lens/dist/{chunk-7HXE67BN.js → chunk-UO66IMVP.js} +2 -2
  159. package/node_modules/pi-lens/dist/{chunk-VOOAPROD.js → chunk-UVY4TOJH.js} +3 -3
  160. package/node_modules/pi-lens/dist/{chunk-RKBXZN3A.js → chunk-VIDEKABZ.js} +2 -2
  161. package/node_modules/pi-lens/dist/{chunk-2FN63LPV.js → chunk-VITFDI3O.js} +13 -14
  162. package/node_modules/pi-lens/dist/{chunk-6DLWKFEX.js → chunk-VUAVE3QC.js} +41 -42
  163. package/node_modules/pi-lens/dist/{chunk-FM4RDMKT.js → chunk-WUY4BZEP.js} +10 -12
  164. package/node_modules/pi-lens/dist/{chunk-SD4I7ZO4.js → chunk-X3UTCXAA.js} +43 -53
  165. package/node_modules/pi-lens/dist/chunk-XHDBJODR.js +45 -0
  166. package/node_modules/pi-lens/dist/{chunk-5IUSNGOC.js → chunk-XHLK33VM.js} +28 -21
  167. package/node_modules/pi-lens/dist/{chunk-3KAZU3VR.js → chunk-XI34NWDI.js} +2 -2
  168. package/node_modules/pi-lens/dist/{chunk-QBFBRV2B.js → chunk-XWFIHYCH.js} +4 -2
  169. package/node_modules/pi-lens/dist/{chunk-JUKMK5Y4.js → chunk-Y2TPADJR.js} +10 -11
  170. package/node_modules/pi-lens/dist/{chunk-EBC36LNN.js → chunk-Y5KTA2OB.js} +17 -17
  171. package/node_modules/pi-lens/dist/{chunk-HYGZEMX6.js → chunk-YKVDBNPO.js} +11 -5
  172. package/node_modules/pi-lens/dist/{chunk-KN35K52N.js → chunk-YSDPVDFC.js} +3 -3
  173. package/node_modules/pi-lens/dist/chunk-YWNO5Q4R.js +44 -0
  174. package/node_modules/pi-lens/dist/{chunk-US7ECLD7.js → chunk-YWWG4AQA.js} +119 -28
  175. package/node_modules/pi-lens/dist/{chunk-O4NWQT6I.js → chunk-YXDCRUKQ.js} +4 -4
  176. package/node_modules/pi-lens/dist/{chunk-XYURS6EN.js → chunk-YXGRRORB.js} +15 -17
  177. package/node_modules/pi-lens/dist/{chunk-IUE7SSKV.js → chunk-ZAPSUBLU.js} +13 -7
  178. package/node_modules/pi-lens/dist/{chunk-EUXZEFTV.js → chunk-ZPJM7DID.js} +3 -3
  179. package/node_modules/pi-lens/dist/{chunk-5HSRT26B.js → chunk-ZSUX7KEM.js} +16 -15
  180. package/node_modules/pi-lens/dist/index.js +37155 -32210
  181. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +11 -12
  182. package/node_modules/pi-lens/dist/mcp/cli.js +46 -45
  183. package/node_modules/pi-lens/dist/mcp/server.js +1210 -574
  184. package/node_modules/pi-lens/dist/mcp/worker.js +65 -65
  185. package/node_modules/pi-lens/dist/probes/installer.js +21 -23
  186. package/node_modules/pi-lens/docs/adr/0010-trace-validation-session-lifecycle.md +390 -0
  187. package/node_modules/pi-lens/docs/adr/README.md +1 -0
  188. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +5 -3
  189. package/node_modules/pi-lens/docs/configuration.md +9 -0
  190. package/node_modules/pi-lens/docs/engineering-principles.md +12 -0
  191. package/node_modules/pi-lens/docs/environment-variables.md +20 -0
  192. package/node_modules/pi-lens/docs/features.md +16 -1
  193. package/node_modules/pi-lens/docs/globalconfig.md +37 -8
  194. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +105 -12
  195. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +37 -18
  196. package/node_modules/pi-lens/docs/pi-lens-fixer.md +22 -1
  197. package/node_modules/pi-lens/docs/pi-lens-investigator.md +14 -0
  198. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +23 -10
  199. package/node_modules/pi-lens/docs/pi-lens-monitor.md +64 -8
  200. package/node_modules/pi-lens/docs/pi-lens-retro.md +2 -2
  201. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +48 -1
  202. package/node_modules/pi-lens/docs/pi-lens-subagent.md +8 -1
  203. package/node_modules/pi-lens/docs/release-qa-baseline.md +19 -7
  204. package/node_modules/pi-lens/docs/servercapabilities.md +47 -47
  205. package/node_modules/pi-lens/docs/settings.md +9 -5
  206. package/node_modules/pi-lens/docs/subagent-compat.md +1 -1
  207. package/node_modules/pi-lens/docs/usage.md +1 -0
  208. package/node_modules/pi-lens/package.json +6 -4
  209. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-return-value-in-generator-test.yml +17 -0
  210. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-js-test.yml +86 -0
  211. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-sql-in-code-execute-test.yml +86 -0
  212. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-numeric-parse-python-test.yml +15 -0
  213. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-return-value-in-generator.yml +9 -4
  214. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +119 -0
  215. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +119 -0
  216. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-numeric-parse-python.yml +13 -2
  217. package/node_modules/pi-lens/rules/rule-catalog.json +25 -1
  218. package/node_modules/pi-lens/scripts/analyze-pi-lens-logs.mjs +15 -5
  219. package/node_modules/pi-lens/scripts/lib/is-main-module.mjs +27 -0
  220. package/node_modules/pi-lens/scripts/lib/scratch-home-env.mjs +21 -0
  221. package/node_modules/pi-lens/scripts/rpc-load-check.mjs +4 -6
  222. package/node_modules/pi-lens/scripts/warm-loader-cache.mjs +2 -5
  223. package/node_modules/pi-next-cue/package.json +4 -1
  224. package/node_modules/pi-provider-qoder/dist/index.js +438 -283
  225. package/node_modules/pi-provider-qoder/package.json +1 -1
  226. package/node_modules/pi-typesafe/README.md +6 -6
  227. package/node_modules/pi-typesafe/dist/ask.js +9 -2
  228. package/node_modules/pi-typesafe/dist/auth.d.ts +3 -2
  229. package/node_modules/pi-typesafe/dist/auth.js +2 -2
  230. package/node_modules/pi-typesafe/dist/backends.d.ts +20 -5
  231. package/node_modules/pi-typesafe/dist/backends.js +32 -8
  232. package/node_modules/pi-typesafe/dist/batch.d.ts +1 -1
  233. package/node_modules/pi-typesafe/dist/batch.js +2 -2
  234. package/node_modules/pi-typesafe/dist/client.d.ts +1 -1
  235. package/node_modules/pi-typesafe/dist/client.js +24 -12
  236. package/node_modules/pi-typesafe/dist/credentials.d.ts +8 -6
  237. package/node_modules/pi-typesafe/dist/credentials.js +70 -16
  238. package/node_modules/pi-typesafe/dist/extension.js +118 -26
  239. package/node_modules/pi-typesafe/dist/index.d.ts +1 -1
  240. package/node_modules/pi-typesafe/dist/index.js +1 -1
  241. package/node_modules/pi-typesafe/dist/key-prompt.d.ts +1 -1
  242. package/node_modules/pi-typesafe/dist/key-prompt.js +6 -6
  243. package/node_modules/pi-typesafe/dist/login.d.ts +11 -10
  244. package/node_modules/pi-typesafe/dist/login.js +24 -21
  245. package/node_modules/pi-typesafe/dist/schema.d.ts +8 -8
  246. package/node_modules/pi-typesafe/dist/schema.js +29 -7
  247. package/node_modules/pi-typesafe/package.json +2 -2
  248. package/package.json +12 -12
  249. package/node_modules/pi-lens/dist/chunk-3PTHXJXR.js +0 -28
  250. package/node_modules/pi-lens/dist/chunk-3QED2P4V.js +0 -31
  251. package/node_modules/pi-lens/dist/chunk-5WRPDP2A.js +0 -47
  252. package/node_modules/pi-lens/dist/chunk-ABBOA7UD.js +0 -157
  253. package/node_modules/pi-lens/dist/chunk-CUHSHSB6.js +0 -273
  254. package/node_modules/pi-lens/dist/chunk-GL5LUMZE.js +0 -51
  255. package/node_modules/pi-lens/dist/chunk-HAD7QRQI.js +0 -30
  256. package/node_modules/pi-lens/dist/chunk-JORED7EX.js +0 -44
  257. package/node_modules/pi-lens/dist/chunk-KYUB6QDC.js +0 -72
  258. package/node_modules/pi-lens/dist/chunk-LZSEQW6A.js +0 -57
  259. package/node_modules/pi-lens/dist/chunk-M2IFVFWU.js +0 -79
  260. package/node_modules/pi-lens/dist/chunk-M2UD3LPU.js +0 -88
  261. package/node_modules/pi-lens/dist/chunk-MBKQHGA7.js +0 -39
  262. package/node_modules/pi-lens/dist/chunk-R7YOCSNV.js +0 -23
  263. package/node_modules/pi-lens/dist/chunk-SKAMFC7A.js +0 -28
  264. package/node_modules/pi-lens/dist/chunk-SYE6T2EB.js +0 -28
  265. package/node_modules/pi-lens/dist/chunk-TRETHTQO.js +0 -26
  266. package/node_modules/pi-lens/dist/chunk-UA7ZXYDR.js +0 -184
  267. package/node_modules/pi-lens/dist/chunk-XTFDJI3T.js +0 -24
  268. package/node_modules/pi-lens/dist/chunk-Z3CCVDUB.js +0 -76
  269. package/node_modules/pi-next-cue/.github/workflows/publish.yml +0 -20
@@ -51,6 +51,14 @@ schema slice does not change server launch behavior.
51
51
  }
52
52
  ```
53
53
 
54
+ `initializationOptions` take the shape the server itself reads. rust-analyzer
55
+ reads them flat (`check`, `cargo`), as above. pyright and basedpyright read
56
+ only their pulled settings, so nest the override under the section they ask
57
+ for: `{ "python": { "analysis": { "typeCheckingMode": "strict" } } }`. pi-lens
58
+ answers each
59
+ `workspace/configuration` request from that section of the merged options and
60
+ returns `{}` for a section the options do not carry.
61
+
54
62
  An override may also provide an experimental launcher `command` and `env`.
55
63
  The built-in server ID and strategy remain in force; only the launcher is
56
64
  replaced, and project-sourced launcher fields follow the same pi trust gate.
@@ -347,5 +355,6 @@ produced — so a session's config posture is visible without the detail.
347
355
  - `docs/globalconfig.md` — every key of `~/.pi-lens/config.json`, in detail.
348
356
  - `docs/settings.md` — the CLI flags and what they map to.
349
357
  - `docs/environment-variables.md` — the `PI_LENS_*` tier.
358
+ - `docs/features.md` — the Python interpreter and syntax-level declarations pi-lens reads from a project (`VIRTUAL_ENV`, `requires-python`, `target-version`, `.python-version`).
350
359
  - `docs/public-api-stability.md` — what `x-stability`, the `PILENS_CFG_*` codes,
351
360
  and the deprecation windows commit pi-lens to.
@@ -20,6 +20,18 @@ the deliverable is the recorded refutation (which invariant covers it, with the
20
20
  probe) and, where cheap, an assertion that pins it, not machinery for a
21
21
  collision that cannot occur.
22
22
 
23
+ **Speculative robustness needs buy-in.** Before adding mechanism for a race,
24
+ security edge case or failure nobody has reproduced, state the trigger path
25
+ (which inputs, in what order, through which production caller), the evidence
26
+ that it can happen, and the cost (new state, seams, tests to maintain). Without
27
+ a reproduction the default is no new mechanism: record the case as a hypothesis
28
+ or an accepted residual for the maintainer to decide. Workers flag it in the
29
+ hand-back and do not build it; reviewers file an unproven race as a hypothesis,
30
+ not a high-severity finding. This never waives validation, error handling or
31
+ security at a real trust boundary; it bounds new mechanism, not hygiene.
32
+ Screen: can the author name the production sequence that triggers it, with
33
+ evidence?
34
+
23
35
  **Climb the minimalism ladder before writing code.** Be lazy about the
24
36
  solution, never about reading. Trace the real flow, then ask in order: does this
25
37
  need to exist at all; does the codebase already do it (reuse the seam); does the
@@ -210,6 +210,26 @@ back to a local LSP fleet for that session.
210
210
 
211
211
  ## Language-specific
212
212
 
213
+ ### Ambient Python environments (`VIRTUAL_ENV`, `CONDA_PREFIX`, `UV_PROJECT_ENVIRONMENT`)
214
+
215
+ pi-lens reads three ambient channels when it resolves the interpreter that runs
216
+ pyright and jedi. `UV_PROJECT_ENVIRONMENT` names a uv project environment path
217
+ (relative paths resolve against the uv project root) and is consulted only when
218
+ the directory is a uv project root. The full chain, in the order the code walks
219
+ it, is: `UV_PROJECT_ENVIRONMENT`, a uv workspace's `.venv` for a declared
220
+ member, `VIRTUAL_ENV`, `CONDA_PREFIX`, the project's `.venv`, then its `venv`
221
+ (relative to the root being resolved). The first that holds
222
+ `bin/python` (`Scripts/python.exe` on Windows) wins, and the three variables are
223
+ read in that position, not ahead of the workspace environment. An ambient
224
+ environment is already active in the calling shell, so it needs no project
225
+ trust; a `.venv` or `venv` found inside the project does, because its binary is
226
+ project-sourced. Untrusted or absent, resolution falls through to the managed
227
+ install and then `PATH`.
228
+
229
+ These channels select an interpreter only. They never declare a syntax level;
230
+ that comes from `target-version`, `pythonVersion`, `requires-python`, or
231
+ `.python-version` (see [Features](features.md)).
232
+
213
233
  ### `PI_LENS_VULTURE_MIN_CONFIDENCE`
214
234
 
215
235
  Minimum confidence for the Python dead-code (Vulture) scanner. **Default:** `60`.
@@ -21,6 +21,21 @@ pi-lens includes **49 language server definitions** (including four cross-cuttin
21
21
 
22
22
  LSP servers for: TypeScript, Deno, Python (pyright/basedpyright + jedi), Go, Rust, Ruby (ruby-lsp + solargraph), PHP, PowerShell, C# (omnisharp), F#, Java (JDT LS, with Lombok javaagent support when a Lombok jar is available), Kotlin, Lean, Swift, Dart, Lua, C/C++, Zig, Haskell, Elixir, Gleam, Typst (tinymist), Markdown (marksman), OCaml, Clojure, CUE (syntax and parse diagnostics; evaluation errors via the cue-vet auxiliary runner), Terraform, Nix, Bash, Shuck (zsh-aware shell language server), Fish, CMake, Docker, YAML, JSON, HTML, TOML, Prisma, Vue, Svelte, CSS.
23
23
 
24
+
25
+ ### Python: interpreter and syntax level
26
+
27
+ Python carries two separate declarations, and pi-lens reads both from the project rather than from whichever interpreter happens to run a checker.
28
+
29
+ **Interpreter** — `detectPythonEnvironment` takes the first directory that holds a Python binary, in this order: `UV_PROJECT_ENVIRONMENT` (only at a uv project root), a uv workspace's `.venv` for a declared member, `VIRTUAL_ENV`, `CONDA_PREFIX`, the project's `.venv`, then its `venv`. pyright and jedi both launch from it. A binary that comes from a project's own environment needs project trust; without it pi-lens falls back to the managed install and then `PATH`, and records the refusal once per session. A project launch that fails for any other reason also falls through to that fallback.
30
+
31
+ **Syntax level** — `detectPythonTargetVersion` walks up from the file and, in each directory, takes the first readable declaration of ruff `target-version` (`.ruff.toml`, then `ruff.toml`, then `pyproject.toml` `[tool.ruff]`, the order ruff itself measures), pyright `pythonVersion` (`pyrightconfig.json`, which may use comments and trailing commas, then `pyproject.toml` `[tool.pyright]`), `requires-python` from `pyproject.toml` `[project]` reduced to its strongest lower bound (`>=3.12,>=3.14` is 3.14 in either order), then the first line of `.python-version`. The nearest directory holding a declaration wins. Each source ends its own walk where its tool stops: ruff at a ruff config (`.ruff.toml`, `ruff.toml`, or a `pyproject.toml` with `[tool.ruff]`, even one that sets no `target-version`), pyright at `pyrightconfig.json` or `[tool.pyright]`, `requires-python` at a `pyproject.toml` that carries the key, and `.python-version` at itself. A `pyproject.toml` that holds none of these is walked past, as ruff and pyright walk past it, so a nested config that owns a source blocks an ancestor's level for that source and nothing else does. Text that names no CPython major/minor — a `pypy-3.10` or branch name in `.python-version`, an empty file, a specifier with no lower bound — is no declaration at all; pi-lens never invents a default.
32
+
33
+ When the declared level is 3.14 or newer, jedi's `compile` findings are dropped. jedi compiles with the interpreter it launched, so a 3.14-only construct reports a spurious `SyntaxError` (PEP 758's unparenthesized `except` is the common case). The drop is recorded once per session and file, naming the declared level and the file that declared it, and it applies to the fresh probe, its cached replay, `lsp_navigation`, `mode=full`, and the post-write runner that delivers the same server's answer. Every one of those surfaces names the rows it withheld on the text the agent reads (the count and the declaring file), including when the file would otherwise read as clean. A call that spans projects with different declarations cites each declaration with its own count. The structured result carries the same `details.withheldCompile` object (`count`, `declared`, and `declarations` when there is more than one) on `lsp_diagnostics`, `lens_diagnostics` and `lsp_navigation`. Pyright is unaffected: it parses at the level it resolves and stays the authority on type errors.
34
+
35
+ ruff needs no override. Its pre-check, `--fix` pass, and lint run all read `target-version` from the project config, so pi-lens passes no level to any of them, and pre-check and fix cannot disagree about which syntax parses.
36
+
37
+ Non-goal: pi-lens never installs, selects, or pins a Python interpreter, and never rewrites a project's declaration.
38
+
24
39
  ### Formatters
25
40
 
26
41
  pi-lens auto-detects and runs **35 formatters** based on project config:
@@ -373,7 +388,7 @@ Pattern-based structural rules in `rules/ast-grep-rules/` across JS, TS, and Pyt
373
388
  [Opengrep](https://github.com/opengrep/opengrep) (an open, login-free fork of Semgrep) runs as a pi-lens **auxiliary diagnostic LSP** — a cross-cutting, diagnostic-only language server that attaches *alongside* the file's normal language server (TypeScript, Python, …) and contributes findings on the same on-write diagnostics path. Running it as a warm LSP server compiles its ruleset **once per session** rather than on every file, so per-file scans cost ~1–2s (vs ~8s for a cold CLI invocation per file). High-signal security findings become blocking; the rest are advisory.
374
389
 
375
390
  - **On by default** (it's a registered LSP server) when the `opengrep` binary is available; pi-lens **auto-installs it on demand** — a single GitHub-release binary, **no login, token, or telemetry**. Disable with `--no-opengrep`.
376
- - **Rules:** a repo `.opengrep.yml`/`.opengrep.yaml` (or a legacy `.semgrep.yml`/`.semgrep.yaml`, whose format Opengrep consumes natively) is used if present; otherwise it falls back to Opengrep's login-free `auto` Community ruleset.
391
+ - **Rules:** a repo `.opengrep.yml`/`.opengrep.yaml` (or a legacy `.semgrep.yml`/`.semgrep.yaml`, whose format Opengrep consumes natively) is used if present; otherwise it uses the registry rule pack pi-lens refreshed into its own cache (a bounded weekly background download, validated by `opengrep --validate` before it replaces the previous file; pi-lens ships no rules), and only while no pack has been fetched yet does it fall back to Opengrep's login-free `auto` Community ruleset. Offline with no pack, that fallback is reported as an unconfirmed scan, never a clean one (#4764).
377
392
 
378
393
  This is the first adopter of pi-lens's **auxiliary-LSP capability** (`role:"auxiliary"` servers + `clients/dispatch/auxiliary-lsp.ts`) — the same path future cross-cutting scanners (spelling, secrets, …) plug into by registration.
379
394
 
@@ -25,6 +25,7 @@ Each runtime toggle is settable from the CLI *and* from `config.json`. The two a
25
25
  | `--lens-guard` | `guard.enabled` | `false` |
26
26
  | `--lens-checkout-guard` | `guard.sharedCheckout` | `false` |
27
27
  | `--immediate-format` | `format.mode` (`"immediate"`) | `"deferred"` |
28
+ | `--lens-retain-injections` | `contextInjection.retain` | `false` |
28
29
  | `--lens-turn-summary` | `turnSummary.enabled` | `false` |
29
30
  | `--lens-actionable-warnings` | `actionableWarnings.enabled` | `false` |
30
31
  | `--lens-actionable-warning-actions` | `actionableWarnings.includeLspCodeActions` | `false` |
@@ -51,15 +52,41 @@ Each runtime toggle is settable from the CLI *and* from `config.json`. The two a
51
52
  | `startup.mode` | `full` | `quick`, `full`, or `minimal`; `PI_LENS_STARTUP_MODE` wins |
52
53
  | `startup.scans.enabled` | `true` | `true` or `false` |
53
54
 
54
- By default pi-lens registers five situational tools (the `ast_grep_*` family,
55
- `lsp_navigation`, `lens_diagnostic_mark`) inactive and exposes a small loader,
55
+ pi-lens registers five situational tools (the `ast_grep_*` family,
56
+ `lsp_navigation`, `lens_diagnostic_mark`) and a small loader,
56
57
  `pi_lens_activate_tools`, that the model calls to activate the ones it needs.
57
- `--no-lazy-tools` turns that off: every pi-lens tool is active from the first
58
- turn and pi-lens never changes the tool list. Use it if you would rather spend
59
- the tokens of a longer tool list than have the list change mid-session. The
60
- loader tool is still registered and still describes itself as activating
61
- inactive tools; under this flag those tools are already active, so calling it
62
- does nothing.
58
+ `tools.lazy` decides whether the situational tools start inactive:
59
+
60
+ | `tools.lazy` | Situational tools |
61
+ | --- | --- |
62
+ | `true` (default) | Start inactive on every model. |
63
+ | `"auto"` | Start inactive only when the session's model keeps mid-conversation system messages (`compat.supportsMidConvoSystemMessages` is `true`). On any other model, including one that does not state the fact, every tool is active from the first turn. Before a model is known, the tools start inactive. |
64
+ | `false`, or `--no-lazy-tools` | Every tool is active for the whole session and pi-lens never changes the tool list. |
65
+
66
+ Why `true` is the default: a model without that fact gets every system message
67
+ folded into one prompt head, so each tool-list change rewrites the whole cached
68
+ prompt. Activations are rare, though. Over the window measured for #4687 the
69
+ loader ran about once per 3,329 requests, while carrying every situational
70
+ schema on every request costs more than the rewrites once activations are
71
+ rarer than about one per 1,000 requests. `"auto"` is there for a workload that
72
+ activates often on a folding model.
73
+
74
+ Under `"auto"`, pi-lens decides at session start and again only when you
75
+ switch models, never between turns of one model. A switch to a folding model
76
+ activates every enabled situational tool. A switch back deactivates only the
77
+ ones the conversation never activated or called. Any other value is reported
78
+ once as an ignored setting, and the default applies.
79
+
80
+ Precedence: `tools.<name>.enabled` (in either config file, or `--no-tool`)
81
+ filters first. A disabled tool is never registered, so it is absent under every
82
+ `tools.lazy` value and the loader refuses to activate it. `tools.lazy` then
83
+ applies only to the enabled situational tools. It is user-level only: a project
84
+ `.pi-lens.json` that sets it, `"auto"` included, is reported and ignored. The
85
+ CLI flag outranks the key.
86
+
87
+ The loader tool stays registered under every value and keeps describing itself
88
+ as activating inactive tools; when the tools it names are already active,
89
+ calling it does nothing.
63
90
 
64
91
  Keys are positive (`"enabled": true` means the feature runs), so a `--no-*` flag corresponds to setting its key `false`. A `no-*` flag on the command line is a one-way switch: it can disable, never re-enable, so `--no-lsp` wins over `lsp.enabled: true` but nothing on the CLI overrides `lsp.enabled: false`. Set the key back to `true` to re-enable.
65
92
 
@@ -112,6 +139,8 @@ Hide the diagnostics widget by default, run formatting immediately after write/e
112
139
 
113
140
  `contextInjection.enabled` (default `true`) controls whether pi-lens prepends automatic findings — session-start guidance, turn-end findings, and test findings — into the next model turn. Set it to `false` (or use `--no-lens-context` / `PI_LENS_NO_CONTEXT_INJECTION=1` / `/lens-context-toggle`) to keep tools, LSP, read-guard, and formatting running while avoiding the prompt-cache invalidation that injected messages cause in long, cache-sensitive sessions. Findings are still cached, so `lens_diagnostics` and `/lens-health` keep working.
114
141
 
142
+ `contextInjection.retain` (default `false`, or `--lens-retain-injections`) keeps injection on and makes it cache-stable instead. An injection normally rides one provider request: pi rebuilds the next request from its own transcript, so that request no longer carries it, and an engine that caches by exact prefix (a local llama.cpp or Qwen server) re-processes everything after the point where it sat. With `retain` on, pi-lens re-sends each injection's bytes unchanged, at the same place, in every later request of the session, so each request is the previous one plus new content. Findings are still delivered once; each retained block ends with a snapshot label naming `lens_diagnostics` for the current state. A compaction, a `/tree` move, or a new, resumed, forked or reloaded session drops what was retained. A session holds at most 64 retained injections and 256 KiB; past either, a new injection reaches its one request only and one `context-injection-retain-declined` degradation row is recorded.
143
+
115
144
  `contextInjection.requirePreExistingFixes` (default `true`) controls whether the session-start orientation tells the agent to fix pre-existing blocking errors; set `false` to scope that demand to errors its own edits introduce.
116
145
 
117
146
  `actionableWarnings.enabled` gates the turn_end report. `includeLspCodeActions` fetches LSP code actions for each warning (requires an active language server). `deltaOnly` (default `true`) limits the report to lines touched in the current turn. `autoFix.enabled` applies conservative LSP quickfixes at `agent_end`; `autoFix.maxFixes` caps the number applied per turn (default `5`, must be a non-negative whole number). `maxFixes: 0` keeps the report and applies nothing, which is a useful halfway step before enabling `autoFix` for real. Unlike the toggles in the table above there is no CLI counterpart, since it takes a number rather than being on or off.
@@ -90,6 +90,14 @@ the docs refresh commits the confirmed class and the marker must move with it.
90
90
  A single-night flip remains in the refresh-state JSON below and does not change
91
91
  the census's confirmed population.
92
92
 
93
+ The class is defined on a DIRTY file — is the first publish for a file that HAS
94
+ findings the answer, or an empty placeholder while a one-time index builds? — so
95
+ the probe takes it from a dirty fixture and never from a `clean: true` one: a
96
+ clean file has no finding to publish, so its trace can only ever be `empty-only`.
97
+ Before #4615 the clean fixture supplied both axes, which is how a publish that
98
+ belonged to another live client of the same server id became `typescript`'s
99
+ `empty-first`.
100
+
93
101
  ## The strategies
94
102
 
95
103
  | Tier | Signal | Affirmative clean? | Example |
@@ -131,12 +139,16 @@ Two bounded guards keep that preservation from hiding a dead instrument
131
139
  re-observe is stamped once with the date of its first miss and degrades to
132
140
  `unknown` once five calendar days have elapsed since it (skipped nights do not
133
141
  stall it, and a re-observation clears the stamp). `empty-first` cells are never
134
- expired: they back the live `emptyFirstPublish` markers (php, terraform) and
135
- expiring one would erase the measurement behind a marker. A `clean-behavior`/
136
- `tier` change is written only after two consecutive nightly runs observe the
137
- same new value, so one flapping nightly (ast-grep went 2 → 2* → 3 → 2* across
138
- four runs) cannot rewrite a cell; a night that measured nothing for the lang
139
- resets the hold. A subset probe (`probe-clean-signal.mjs <langs>`) leaves the
142
+ expired: they back the live `emptyFirstPublish` markers (php) and
143
+ expiring one would erase the measurement behind a marker. That exception is
144
+ bounded too (#4615): the refresh stamps the FIRST night it does not re-observe an
145
+ `empty-first` cell, and the first-publish census reds once that stamp is five
146
+ days old, so the cell+marker pair cannot outlive the instrument that produced it
147
+ — a cell with no live measurement behind it is no longer indistinguishable from
148
+ a healthy one. A `clean-behavior`/`tier` change is written only after two
149
+ consecutive nightly runs observe the same new value, so one flapping nightly
150
+ (ast-grep went 2 → 2* → 3 → 2* across four runs) cannot rewrite a cell; a night
151
+ that measured nothing for the lang resets the hold. A subset probe (`probe-clean-signal.mjs <langs>`) leaves the
140
152
  bookkeeping of the langs it did not probe untouched.
141
153
 
142
154
  The bookkeeping lives in the generated `## Capability matrix refresh state`
@@ -167,7 +179,7 @@ carries the named admission until then.
167
179
  | deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci |
168
180
  | ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci |
169
181
  | csharp | csharp-ls | pull | — | n/a (pull) | 1 | ci |
170
- | typescript | typescript-language-server | push-only | silent | empty-first | 3 | dev+ci |
182
+ | typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci |
171
183
  | markdown | marksman | push-only | silent | direct | 3 | ci |
172
184
  | lua | lua-language-server | push-only | silent | direct | 3 | dev+ci |
173
185
  | python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci |
@@ -177,7 +189,7 @@ carries the named admission until then.
177
189
  | dockerfile | docker-langserver | push-only | publishes-unversioned | direct | 2* | dev+ci |
178
190
  | dockerfile-official | docker-language-server (official) | push-only | publishes-versioned | direct | 2 | dev+ci |
179
191
  | toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci |
180
- | terraform | terraform-ls | push-only | publishes-unversioned | empty-first | 2* | dev+ci |
192
+ | terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci |
181
193
  | prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci |
182
194
  | php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci |
183
195
  | zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci |
@@ -201,8 +213,9 @@ and were characterized `push-only` in the run above).
201
213
  - **Mode ≠ tier, and the split needs BOTH axes.** Push-only further splits along
202
214
  latency (does anything publish on a clean transition? — silence is the only
203
215
  budget-wait case, because pi-lens's publish handler emits and early-returns the
204
- wait on every publish, versioned or not, with the single #3310 exception of a
205
- held empty FIRST publish from an `empty-first` server) and currency-proof (is the publish
216
+ wait on every publish, versioned or not, with two exceptions: #3310's held
217
+ empty FIRST publish from an `empty-first` server, and #4763's held empty
218
+ publish from opengrep before `semgrep/rulesRefreshed`) and currency-proof (is the publish
206
219
  versioned, i.e. provably about the live edit?). The 4-way
207
220
  `probe-clean-signal.mjs` measurement drives this: ast-grep → 2, yaml/opengrep →
208
221
  2\*, typescript (clean file) → 3.
@@ -211,6 +224,32 @@ and were characterized `push-only` in the run above).
211
224
  `pubVersion=undefined`, so currency is only temporally correlated, not proven —
212
225
  a staleness-risk note, not a latency cost. An earlier hand-note called it Tier 2
213
226
  on the "re-publishes" observation alone; the phase-aware probe refines it to 2\*.
227
+ - **opengrep's first publish depends on its config (#4763).** With a local rule
228
+ file the rules load before the first scan and `semgrep/rulesRefreshed` precedes
229
+ the first publish (`direct`, the column above). With `--config auto` (the
230
+ default pi-lens launch) opengrep scans the opened document before its rules
231
+ load, logs "Rules not loaded yet, not scanning anything" and publishes `[]`;
232
+ it then sends `semgrep/rulesRefreshed` and republishes every open document
233
+ (opengrep@60ed3b3 `Scan_helpers.run_semgrep` / `refresh_rules`, unchanged since
234
+ v1.0.0). Cold, online, 1.30.0 x3 and 1.32.0 x2: `[]` at +11..18 ms, the
235
+ notification at +0.7..1.0 s, the findings 0.25..0.5 s later. Warm: `didChange`
236
+ publishes nothing; the reopen pi-lens sends instead (`reopenOnResync`)
237
+ publishes the fresh scan once, +0.25..0.4 s on both versions; a reopen with
238
+ `didSave` publishes twice (+0.3..0.9 s), a lone `didSave` once (+0.25..0.5 s).
239
+ Rules that never load (offline) leave the `[]` as the only publish and
240
+ `window/showMessage` carries the error after it (#4764). Measured offline on
241
+ the built tree, nine touches: the edit path (`with-auxiliary`) waits the
242
+ aux grace ceiling (about 2 s) for six touches, then the existing demotion
243
+ (`aux_wait_demoted`) skips the wait (0 ms); the explicit all-scope
244
+ `lsp_diagnostics` call waits the full wait budget (3 s) every time and
245
+ reports the coverage notice. The strategy marker
246
+ `emptyUntilRulesRefreshed` holds that `[]`, released by the notification, not
247
+ by a timer. The other three auxiliaries do not need it, measured in
248
+ `tests/fixtures/opengrep-lsp-trace/auxiliary-first-publish.json`: ast-grep
249
+ compiles its rules before the first parse (3/3, first publish carries the
250
+ findings at +30..35 ms), zizmor audits inline and publishes once (3/3, +3 ms;
251
+ its source runs every audit, online ones included, before the one publish),
252
+ typos has the dictionary compiled in (3/3, +0..1 ms).
214
253
  - **typescript's clean behavior is diagnostic-set-dependent (major probe finding).**
215
254
  On a DIRTY file it re-publishes (version-lessly) after every change — the dirty
216
255
  fixture measures 2\*. On a genuinely CLEAN file (the `typescript-clean` fixture)
@@ -242,6 +281,60 @@ and were characterized `push-only` in the run above).
242
281
  is not the bottleneck. The cost on a clean with-auxiliary touch is the *silent
243
282
  primary* (typescript), a pre-existing Tier-3 cost independent of ast-grep.
244
283
 
284
+ ## Save-triggered servers: per-server verdict (#3405)
285
+
286
+ Population: every server that declares `textDocumentSync.save` in
287
+ `docs/servercapabilities.md` (15 `save`, 5 `save+text`), plus zizmor, which
288
+ registers `textDocument/didSave` dynamically. Verdicts are moved from the #4768
289
+ PR body (merged as 11cf30f8d) and re-read on origin/master d21f7d267: each
290
+ server's registry entry is in `clients/lsp/server.ts`, and each save declaration
291
+ matches `docs/servercapabilities.md`. `publishes after save only` is `no` when
292
+ the server publishes without a save, `yes` when only a save publishes, and
293
+ `unknown` when nothing was measured. A `source` row cites an external
294
+ repository at the pinned commit; those commits were not re-fetched here.
295
+
296
+ | server | save as declared | publishes after save only | verdict | evidence |
297
+ |---|---|---|---|---|
298
+ | expert | `save` | no | Measured: answers with no `didSave` once the seed is under `lib/`. Gated (`lspGate: true`). | #4768 arms A, B, C; nightly run 39852672584 (answered on call 6, 10955 ms); `tests/fixtures/nightly-floors/expert-readiness.json` |
299
+ | cpp (clangd 22.1.0) | `save` | no | Measured: publishes on `didOpen` alone (97 ms, 3 diagnostics). Gated. Open conflict with #4527, see note 2. | #4768 local probe; #4527 wire scenario (issue comment) |
300
+ | lua | `save` | no | Measured: the first publish carries 6 diagnostics at 135 ms; a save adds a late republish at 3.7 s. Gated. | #4768 local probe |
301
+ | python-jedi | `save` | no | Measured: publishes on `didOpen` alone (about 1 s). Gated. | #4768 local probe; `clients/python-environment.ts:421` (id) |
302
+ | opengrep (aux) | `save` | no | Measured: a save rescans and republishes (#3482); it also publishes on open once its rules load. Auxiliary, not gated. | `clients/lsp/wait-policy/strategies.ts:100`; Key findings above (#4763) |
303
+ | gleam | `save` | no | Source: a save only marks the project changed and drops the in-memory cache; the publish comes from `CompilePlease`. Gated. | gleam-lang/gleam `0d9fa18ddb69`, `language-server/src/server.rs` (`SourceFileSaved`, `discard_in_memory_cache`, `compile_please`) |
304
+ | go (gopls) | `save` | no | Source: `DidSave` calls `didModifyFiles`, the path a change takes. Gated. | golang/tools `02c9e4cb4c2f`, `gopls/internal/server/text_synchronization.go` |
305
+ | zig (zls) | `save` | no | Source: a save runs the build-on-save watch update and autofix; ast-check diagnostics come from changes. Gated. | zigtools/zls `82ba5351ca8a`, `src/Server.zig` (`saveDocumentHandler`) |
306
+ | rust (rust-analyzer) | `save` | no | Source: a save starts flycheck (`cargo check`); native diagnostics come from pull mode and do not wait for it. Exempt: runner availability. | rust-lang/rust-analyzer `0c4d74686b21`, `crates/rust-analyzer/src/handlers/notification.rs` (`handle_did_save_text_document`); matrix tier 1 |
307
+ | terraform | `save` | no | Source: `terraform validate` runs on save only with the experimental `ValidateOnSave`, off by default. Gated. | hashicorp/terraform-ls `3dbe85a2b4e1`, `internal/langserver/handlers/did_save.go` |
308
+ | fsharp | `save+text` | no | Source: a save holds the source and refreshes code lenses; diagnostics come from open and change checks. Exempt: 0 findings in every run. | ionide/FsAutoComplete `8f011f1395a4`, `src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs` (`TextDocumentDidSave`); nightly run 39845687189 |
309
+ | zizmor (dynamic) | not declared (`textDocumentSync` only) | no | Source: `didSave` is registered dynamically and pi-lens does not map that registration, so no save is sent. Auxiliary. | zizmor `crates/zizmor/src/lsp.rs` (`initialized`); `clients/lsp/wait-policy/strategies.ts:400-410` (#3548) |
310
+ | clojure | `save+text` | unknown | Unverified: not measured. Gated; one save per write. | none |
311
+ | fish | `save+text` | unknown | Unverified: not measured. Gated; one save per write. | none |
312
+ | tinymist | `save` | unknown | Unverified: not measured. Gated (typst fixture); one save per write. | none |
313
+ | cue | `save` | unknown | Unverified: not measured. Gated; one save per write. | none |
314
+ | csharp | `save+text` | unknown | Unverified: not measured. Pull mode, so diagnostics are requested and a save is unlikely to be the only trigger. Gated. | matrix row (csharp-ls, tier 1) |
315
+ | deno | `save` | unknown | Unverified: not measured. Pull mode. Gated. | matrix row (deno, tier 1) |
316
+ | svelte | `save` | unknown | Unverified: not measured. Pull mode. Gated. | matrix row (svelte-language-server, tier 1) |
317
+ | powershell | `save+text` | unknown | Unverified: not measured. Exempt: intermittent. | none |
318
+ | cmake | `save` | unknown | Unverified: the local probe published nothing in either arm (12 s each) with an `if(` seed, so inconclusive. Exempt: upstream documents no diagnostics. | #4768 local probe (no named command) |
319
+
320
+ Notes.
321
+
322
+ 1. Probe. The only command #4768 names is `node scripts/smoke-tools.mjs --lsp-gate`
323
+ (the nightly `tool-smoke.yml` step "LSP diagnostics clean-gate"). It runs
324
+ the gated fixture rows and does not write per-server save verdicts. The local
325
+ probes behind the cpp, lua, python-jedi and cmake rows, and the Expert arms
326
+ run outside CI, are not named in #4768's body, so no command regenerates this
327
+ table. Each row cites its own evidence instead.
328
+ 2. Open conflict, cpp. #4527 records a clangd 22.1.0 wire scenario in which the
329
+ save sender changes the outcome (base 1 of 5, head 5 of 5). #4768 records clangd
330
+ publishing on `didOpen` alone. The two records are not reconciled here; the row
331
+ keeps #4768's verdict.
332
+ 3. Citations corrected against master. #4768 cites `clients/lsp/client.ts:4410`
333
+ for `sendDidSave`; it is at `clients/lsp/client.ts:4909`, with the save-capability
334
+ gate at line 4917. The opengrep rescan claim is at
335
+ `clients/lsp/wait-policy/strategies.ts:100`; line 345 is the
336
+ `emptyUntilRulesRefreshed` hold.
337
+
245
338
  ## Completing the matrix
246
339
  The fixtures (`tests/fixtures/tool-smoke/<lang>/`) are durable and cover every
247
340
  registered server. `mode` is read from the server's advertised capabilities at
@@ -274,7 +367,7 @@ Telemetry only — never a CI gate. Compares each probed server's observed
274
367
  marker; a mismatch means the marker may need a human update (#529). `unknown`
275
368
  observations are never compared (a slow/absent server is not evidence either way).
276
369
 
277
- _None observed as of the last probe run._
370
+ - **[silent-not-marked]** observed silent on clean transitions but wait-policy/strategies.ts has no silentOnClean marker for "typescript7" — cascade is burning the full in-lane wait it could skip (the pre-#458 situation)
278
371
 
279
372
  ## Capability matrix refresh state (nightly-generated)
280
373
 
@@ -283,5 +376,5 @@ date-based `direct` expiry (#3401) and consecutive-night `idle-eviction`
283
376
  counts (#3989). Regenerated every run; never a measurement.
284
377
 
285
378
  ```json
286
- {"first-publish":{"typescript":{"pendingFirstPublish":"direct","runs":1}}}
379
+ {"idle-eviction":{"docker-official":{"nights":[{"day":"2026-10-23","rssMb":62,"coldMs":883},{"day":"2026-10-24","rssMb":62,"coldMs":957}]},"kotlin":{"nights":[{"day":"2026-10-25","rssMb":270,"coldMs":2522}]},"powershell":{"nights":[{"day":"2026-10-25","rssMb":167,"coldMs":2967}]},"rust":{"nights":[{"day":"2026-10-25","rssMb":596,"coldMs":2927}]},"svelte":{"nights":[{"day":"2026-10-25","rssMb":232,"coldMs":2674}]},"zizmor":{"nights":[{"day":"2026-10-23","rssMb":55,"coldMs":1661},{"day":"2026-10-24","rssMb":57,"coldMs":1683}]}}}
287
380
  ```
@@ -15,7 +15,7 @@ respawned server reports every finding it reported before eviction; the
15
15
  content-bound coverage check the auxiliary freeze depends on. A server that
16
16
  cannot demonstrate it is never proposed for eviction on perf grounds alone.
17
17
 
18
- _Last generated: 2026-10-18 on linux; 49 registry servers: 17 eligible, 0 vetoed, 18 inconclusive, 14 unavailable (0 not reached: budget)._
18
+ _Last generated: 2026-10-25 on linux; 49 registry servers: 33 eligible, 0 vetoed, 2 inconclusive, 14 unavailable (0 not reached: budget)._
19
19
 
20
20
  ## Per-server rows
21
21
 
@@ -35,59 +35,78 @@ step log only, because it flaps.
35
35
 
36
36
  | server | role | declared | result | reason | respawn | coverage |
37
37
  |---|---|---|---|---|---|---|
38
- | ast-grep | auxiliary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
38
+ | ast-grep | auxiliary | unmeasured | eligible | · | ok | preserved |
39
39
  | bash | primary | transparent | eligible | · | ok | preserved |
40
40
  | clojure | primary | transparent | eligible | · | ok | preserved |
41
41
  | cmake | primary | unmeasured | inconclusive | no-baseline | n/a | unproven |
42
42
  | cpp | primary | transparent | eligible | · | ok | preserved |
43
43
  | csharp | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
44
44
  | css | primary | transparent | eligible | · | ok | preserved |
45
- | cue | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
45
+ | cue | primary | unmeasured | eligible | · | ok | preserved |
46
46
  | dart | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
47
47
  | deno | primary | transparent | eligible | · | ok | preserved |
48
48
  | docker | primary | transparent | eligible | · | ok | preserved |
49
- | docker-official | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
49
+ | docker-official | primary | unmeasured | eligible | · | ok | preserved |
50
50
  | elixir | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
51
- | expert | primary | unmeasured | inconclusive | no-baseline | n/a | unproven |
51
+ | expert | primary | unmeasured | eligible | · | ok | preserved |
52
52
  | fish | primary | transparent | eligible | · | ok | preserved |
53
53
  | fsharp | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
54
- | gleam | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
54
+ | gleam | primary | unmeasured | eligible | · | ok | preserved |
55
55
  | go | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
56
56
  | haskell | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
57
57
  | html | primary | transparent | eligible | · | ok | preserved |
58
58
  | java | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
59
59
  | json | primary | transparent | eligible | · | ok | preserved |
60
- | kotlin | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
60
+ | kotlin | primary | unmeasured | eligible | · | ok | preserved |
61
61
  | lean | primary | unmeasured | unavailable | server-not-started | n/a | n/a |
62
- | lua | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
62
+ | lua | primary | unmeasured | eligible | · | ok | preserved |
63
63
  | marksman | primary | transparent | eligible | · | ok | preserved |
64
64
  | nix | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
65
65
  | ocaml | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
66
66
  | omnisharp | primary | unmeasured | unavailable | no-fixture | n/a | n/a |
67
67
  | opengrep | auxiliary | transparent | eligible | · | ok | preserved |
68
68
  | php | primary | transparent | eligible | · | ok | preserved |
69
- | powershell | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
69
+ | powershell | primary | unmeasured | eligible | · | ok | preserved |
70
70
  | prisma | primary | transparent | eligible | · | ok | preserved |
71
71
  | python | primary | transparent | eligible | · | ok | preserved |
72
72
  | python-jedi | primary | transparent | eligible | · | ok | preserved |
73
73
  | ruby | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
74
- | rust | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
74
+ | rust | primary | unmeasured | eligible | · | ok | preserved |
75
75
  | shuck | primary | unmeasured | unavailable | server-not-started | n/a | n/a |
76
- | svelte | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
76
+ | svelte | primary | unmeasured | eligible | · | ok | preserved |
77
77
  | swift | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
78
- | terraform | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
79
- | tinymist | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
80
- | toml | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
78
+ | terraform | primary | unmeasured | eligible | · | ok | preserved |
79
+ | tinymist | primary | unmeasured | eligible | · | ok | preserved |
80
+ | toml | primary | unmeasured | eligible | · | ok | preserved |
81
81
  | typescript | primary | transparent | eligible | · | ok | preserved |
82
- | typos | auxiliary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
82
+ | typos | auxiliary | unmeasured | eligible | · | ok | preserved |
83
83
  | vue | primary | unmeasured | inconclusive | no-baseline | n/a | unproven |
84
84
  | yaml | primary | transparent | eligible | · | ok | preserved |
85
- | zig | primary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
86
- | zizmor | auxiliary | unmeasured | inconclusive | not-evicted | not-evicted | n/a |
85
+ | zig | primary | unmeasured | eligible | · | ok | preserved |
86
+ | zizmor | auxiliary | unmeasured | eligible | · | ok | preserved |
87
87
 
88
88
  ## Declared versus measured
89
89
 
90
- No divergence between declared policy and this run's measurement.
90
+ `drift` means the registry evicts a server the measurement vetoes. A `proposal`
91
+ or `info` line is for a maintainer to act on in a follow-up; this run changed
92
+ nothing.
93
+
94
+ - **ast-grep** [proposal] declared unmeasured but eviction and respawn preserved its findings
95
+ - **cue** [proposal] declared unmeasured but eviction and respawn preserved its findings
96
+ - **docker-official** [proposal] declared unmeasured but eviction and respawn preserved its findings
97
+ - **expert** [proposal] declared unmeasured but eviction and respawn preserved its findings
98
+ - **gleam** [proposal] declared unmeasured but eviction and respawn preserved its findings
99
+ - **kotlin** [proposal] declared unmeasured but eviction and respawn preserved its findings
100
+ - **lua** [proposal] declared unmeasured but eviction and respawn preserved its findings
101
+ - **powershell** [proposal] declared unmeasured but eviction and respawn preserved its findings
102
+ - **rust** [proposal] declared unmeasured but eviction and respawn preserved its findings
103
+ - **svelte** [proposal] declared unmeasured but eviction and respawn preserved its findings
104
+ - **terraform** [proposal] declared unmeasured but eviction and respawn preserved its findings
105
+ - **tinymist** [proposal] declared unmeasured but eviction and respawn preserved its findings
106
+ - **toml** [proposal] declared unmeasured but eviction and respawn preserved its findings
107
+ - **typos** [proposal] declared unmeasured but eviction and respawn preserved its findings
108
+ - **zig** [proposal] declared unmeasured but eviction and respawn preserved its findings
109
+ - **zizmor** [proposal] declared unmeasured but eviction and respawn preserved its findings
91
110
 
92
111
  ## Reasons
93
112
 
@@ -14,11 +14,29 @@ Before mocking a `clients/` module, look for its test seam (`set*`, `adopt*`, or
14
14
  `reset*`). The pre-flight must list the mock dependents of any module whose
15
15
  exports change.
16
16
 
17
+ A new test starts from `tests/support/`: a registration question (flags,
18
+ tools, commands, declarations) goes through tier 1
19
+ (`tests/support/pi-runner.ts`, a real `ExtensionRunner`), a session-flow case
20
+ through tier 2 (`tests/support/pi-session.ts`), and a JSON-lines sink through
21
+ `readNdjsonRows` (`tests/support/ndjson-rows.ts`), asserting `skipped === 0`
22
+ when the claim needs the complete output. No fake of an in-process store or
23
+ registry; other doubles only as `AGENTS.md` admits them.
24
+
17
25
  - Trace the production entry point and reproduce the defect through it
18
26
  (principles §1, "Premise first"). Name no seam before the reproduction; the
19
27
  red reproduction is your feedback loop, built before any theory of the fix.
28
+ Reproduce on the reporter's pi host and pi-lens version, taken from the
29
+ report or its session log. When that version cannot be installed, name the
30
+ one you used instead; never substitute the latest silently. Report
31
+ `confirmed`, `partially confirmed` (name what differed), `not reproduced`
32
+ (name what you tried), or `blocked` (name the missing access or state).
20
33
  - Climb the minimalism ladder before screening against the `AGENTS.md`
21
34
  catalog: the catalog says what must not break, never what to add.
35
+ - Mechanism for a race, security edge case or failure nobody has reproduced is
36
+ not built in the round (principles §1, speculative robustness). Name its
37
+ trigger path, evidence and cost under scope at the top of the hand-back, and
38
+ leave the decision to the maintainer. Validation, error handling and security
39
+ at a real trust boundary are still required.
22
40
  - Check which open PRs touch your files (`gh pr list`, `gh pr diff`), design to
23
41
  compose, and flag merge order in the PR body. Branch `fix/<N>-<slug>` from
24
42
  `origin/master` unless the brief names a branch. Preserve contributor
@@ -236,7 +254,10 @@ rigor (#2599).
236
254
  `## Observability` (a record literal from the runtime diff, `none: <reason>`,
237
255
  or exactly `No new failure path; no record added.`, which a new decision
238
256
  branch on a session, lifecycle or delivery seam refuses, #3875),
239
- `## Class sweep`, and `## Test assessment`. A brief that names only some
257
+ `## Class sweep`, `## Fold check` (one line per candidate, `#N folded`,
258
+ `#N not folded` or `#N sequenced`, then its reason, or `none: <reason>`;
259
+ the body lint owns the form and the local script owns the candidate list,
260
+ #4711), and `## Test assessment`. A brief that names only some
240
261
  headings does not shorten this list. The closing keyword lives in the body;
241
262
  GitHub ignores it in a title.
242
263
  - Run `node scripts/check-pr-body.mjs --lint-local PR_BODY.md` and
@@ -17,6 +17,12 @@ issue and the requested evidence surface.
17
17
 
18
18
  ## Evidence sources
19
19
 
20
+ The log root is the monitored process's, resolved as in
21
+ `docs/pi-lens-monitor.md` "Inputs": a non-empty `PI_LENS_HOME`, then any
22
+ probe-home redirect, then `~/.pi-lens`. The paths below assume the default.
23
+ Rotation also writes timestamped archives; pass `--archived` to the analyzer
24
+ to read them.
25
+
20
26
  - `~/.pi-lens/latency.log` and its `.1` rotation: per-touch records
21
27
  (`lsp_touch_file`, `lsp_aux_wait_outcome`, `availability_decision`,
22
28
  `lsp_scanner_coverage_gap`, breaker and deferral events). Rotation is by size:
@@ -62,6 +68,14 @@ issue and the requested evidence surface.
62
68
 
63
69
  ## Reproducible behavior
64
70
 
71
+ Reproduce on the reporter's pi host version and pi-lens version, taken from
72
+ the report or its session log. When you cannot install that version, say so
73
+ and name the version you used instead. Never substitute the latest silently.
74
+ Report one of four outcomes: confirmed, partially confirmed (name what
75
+ differed), not reproduced (name what you tried), or blocked (name the missing
76
+ access or state). Our bugs often depend on the host version; #4690 raises the
77
+ certified floor to 0.86.1.
78
+
65
79
  When the symptom reproduces, the loop comes before the reading. Build the
66
80
  tightest loop that goes red on the symptom (a failing test, a minimal driver, a
67
81
  differential run), confirm it matches the reporter's exact symptom, and