pi-lens 4.4.7 → 4.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-USER.md +31 -0
- package/CHANGELOG.md +327 -0
- package/README.md +13 -2
- package/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/config/markdownlint/run-no-fix.mjs +36 -0
- package/dist/{chunk-4LM3VAZH.js → chunk-2VZ3VN3N.js} +2 -2
- package/dist/{chunk-PUZ3E2J4.js → chunk-3HTZDY3C.js} +8 -6
- package/dist/{chunk-RORGS5II.js → chunk-3NPWO5UO.js} +7 -13
- package/dist/{chunk-MNJIXFX4.js → chunk-47UCC4MM.js} +1 -1
- package/dist/chunk-4ENEJHF4.js +198 -0
- package/dist/chunk-5GEYJJHG.js +22 -0
- package/dist/{chunk-U6VN4NVL.js → chunk-5YSEQHJN.js} +3 -3
- package/dist/{chunk-6IR3ZYIB.js → chunk-6GPB3JLL.js} +3 -3
- package/dist/{chunk-MB6PXBUA.js → chunk-7R5GZIA6.js} +7 -15
- package/dist/{chunk-DH5JPM3K.js → chunk-7UTSNTWM.js} +10 -9
- package/dist/{chunk-24BILSZW.js → chunk-7YTRG6YW.js} +2 -2
- package/dist/{chunk-KW5JQPO5.js → chunk-AACN5GNE.js} +2 -2
- package/dist/{chunk-PKES3ISE.js → chunk-ACRJ2GZ5.js} +2 -2
- package/dist/{chunk-4ZYJHQMB.js → chunk-C3YRO3EU.js} +10 -12
- package/dist/{chunk-PQJFG24Z.js → chunk-CB7PEVOJ.js} +1300 -946
- package/dist/{chunk-ABPKUVA4.js → chunk-CDFJF5YD.js} +1 -1
- package/dist/{chunk-T7A2HK2B.js → chunk-CJS6WE66.js} +17 -18
- package/dist/{chunk-3YY7IXIL.js → chunk-CM6BDY4E.js} +14 -60
- package/dist/{chunk-RZOXUSPC.js → chunk-CZCAZVTD.js} +16 -2
- package/dist/chunk-DGKFWQK4.js +23 -0
- package/dist/{chunk-NA7SEXHE.js → chunk-E65WJVI5.js} +7 -9
- package/dist/{chunk-2TF6RXWB.js → chunk-EKNYSXFB.js} +8 -10
- package/dist/{chunk-RRV3FNNM.js → chunk-EY6LY2HO.js} +27 -30
- package/dist/{chunk-LBLBAFG3.js → chunk-F6BEQWAK.js} +17 -5
- package/dist/{chunk-4L36HG27.js → chunk-FGNSESAC.js} +12 -14
- package/dist/{chunk-3FRLWYBG.js → chunk-FRUBVFXV.js} +39 -42
- package/dist/{chunk-FB5SCCPT.js → chunk-G22UNQID.js} +14 -15
- package/dist/{chunk-LV4UMYVH.js → chunk-GQTQUNCG.js} +26 -27
- package/dist/{chunk-E7HJ56Y7.js → chunk-H3BVMK47.js} +64 -73
- package/dist/chunk-H6FLQ5NW.js +28 -0
- package/dist/{chunk-QHSNL7B2.js → chunk-HEA3EM23.js} +15 -19
- package/dist/{chunk-AWDSEDER.js → chunk-HSOBIN22.js} +2 -2
- package/dist/{chunk-EAOK7MIZ.js → chunk-HYSKJMZK.js} +17 -4
- package/dist/{chunk-VUZWQ7UG.js → chunk-IICERRFF.js} +46 -72
- package/dist/{chunk-OXOI55RU.js → chunk-IILEH3ZC.js} +8 -10
- package/dist/{chunk-ZKXQKGWZ.js → chunk-J3Q2NYJR.js} +4 -3
- package/dist/{chunk-YHC2O2WO.js → chunk-JUZ67QZQ.js} +20 -9
- package/dist/chunk-KR5VGMVT.js +25 -0
- package/dist/{chunk-F7K5IBZG.js → chunk-KV6GQOGN.js} +41 -44
- package/dist/{chunk-SNDXCFRS.js → chunk-KXMJLOZF.js} +25 -23
- package/dist/{chunk-CB4WHS4H.js → chunk-L4Y3ROKQ.js} +3 -3
- package/dist/{chunk-3F6BMY53.js → chunk-L6WBJGQS.js} +1 -1
- package/dist/{chunk-MPKRJBPK.js → chunk-L7O774U7.js} +30 -32
- package/dist/{chunk-URCQWAQ4.js → chunk-LAHHGNAY.js} +21 -21
- package/dist/{chunk-V63BC55Q.js → chunk-LT62P654.js} +1 -1
- package/dist/{chunk-ZMAUPOMG.js → chunk-LWOM6LVS.js} +34 -34
- package/dist/{chunk-HO6LWE2E.js → chunk-MKPDIAZH.js} +21 -1
- package/dist/{chunk-2PHMIAKO.js → chunk-MN635QYA.js} +3 -4
- package/dist/{chunk-KDX35VXP.js → chunk-MQ4PPCJB.js} +166 -149
- package/dist/{chunk-QOE342SU.js → chunk-MRLH4MYU.js} +2 -2
- package/dist/{chunk-CE6VMBCB.js → chunk-N56BNAA6.js} +20 -21
- package/dist/{chunk-L3CMBQMH.js → chunk-N5CEGQPG.js} +14 -17
- package/dist/{chunk-7E2563GA.js → chunk-NCLO6E6N.js} +13 -33
- package/dist/{chunk-J6JP25XU.js → chunk-NL5LSKVD.js} +4 -3
- package/dist/{chunk-U7BD2QL7.js → chunk-NMUSOZ2D.js} +10 -12
- package/dist/{chunk-BZARLRJW.js → chunk-NOWH2VA2.js} +8 -33
- package/dist/{chunk-U2SDMG7C.js → chunk-NUSXS6YB.js} +6 -5
- package/dist/{chunk-ZJTT47IG.js → chunk-OSEKJEUU.js} +2 -2
- package/dist/{chunk-FZKFVUEC.js → chunk-OUYAUXAT.js} +647 -355
- package/dist/{chunk-ZE3KXHS7.js → chunk-PBZNYHMM.js} +84 -4
- package/dist/{chunk-U5HPROLA.js → chunk-PIIUNJIT.js} +2 -4
- package/dist/chunk-PKLB2XJL.js +8 -0
- package/dist/{chunk-RC2Z6K47.js → chunk-PRHYIA6X.js} +15 -6
- package/dist/{chunk-RQS4QQSD.js → chunk-PXQ45SGD.js} +2 -2
- package/dist/chunk-Q6JQKWPK.js +25 -0
- package/dist/{chunk-F6X3YJWD.js → chunk-QB7T2PHK.js} +2 -2
- package/dist/{chunk-TIQJPRDD.js → chunk-QGITU23N.js} +3 -2
- package/dist/chunk-QJJKOHLH.js +57 -0
- package/dist/{chunk-4LOE5R5P.js → chunk-QP33NKYC.js} +18 -15
- package/dist/{chunk-N5WSK2K7.js → chunk-QVBOXT3L.js} +12 -17
- package/dist/{chunk-DPGEAHZT.js → chunk-RNJFRXEN.js} +10 -18
- package/dist/{chunk-EKWX4WD3.js → chunk-RNXOWDM6.js} +10 -10
- package/dist/{chunk-O4BJFESU.js → chunk-RTFMDIKV.js} +1 -1
- package/dist/{chunk-LS3QJRUB.js → chunk-SIQHOB6P.js} +11 -13
- package/dist/{chunk-3K2F6UDZ.js → chunk-SLSMJPEF.js} +43 -42
- package/dist/chunk-T5QSLSMM.js +50 -0
- package/dist/chunk-TGQDAG4B.js +88 -0
- package/dist/{chunk-4YHYPW2G.js → chunk-THYHUIDR.js} +44 -13
- package/dist/{chunk-YVHBNSME.js → chunk-TMNUTMT5.js} +1099 -1100
- package/dist/{chunk-WDBICWH3.js → chunk-TOE2RRCS.js} +1 -1
- package/dist/chunk-TYHPVE5H.js +25 -0
- package/dist/chunk-UAKO2M6B.js +73 -0
- package/dist/chunk-UC5AXW5Z.js +20 -0
- package/dist/chunk-UTJP6WOS.js +28 -0
- package/dist/{chunk-DQZFQSR5.js → chunk-UXTQ3QPD.js} +4 -4
- package/dist/chunk-UYXV5NIS.js +20 -0
- package/dist/{chunk-KKCK636N.js → chunk-V2WDBOLZ.js} +10 -12
- package/dist/{chunk-PR6PO3ES.js → chunk-V67D6TMU.js} +22 -20
- package/dist/{chunk-VSFLRN5Y.js → chunk-VCRVNLE7.js} +135 -2
- package/dist/{chunk-CPSR3AVL.js → chunk-VO4JFPTV.js} +2 -2
- package/dist/{chunk-XT2HTCJ5.js → chunk-VWLSU3XV.js} +6 -5
- package/dist/{chunk-WME2OQST.js → chunk-W5E72HJA.js} +66 -24
- package/dist/{chunk-LLS45EWB.js → chunk-W7TY6HYX.js} +6 -8
- package/dist/{chunk-CCV2EU7T.js → chunk-WSSLVMDA.js} +12 -13
- package/dist/{chunk-YISME6ON.js → chunk-WTB4GKMH.js} +10 -1
- package/dist/{chunk-KPPJTH44.js → chunk-X5BJ3G2P.js} +64 -35
- package/dist/{chunk-JMEKXFOL.js → chunk-XKFO2SZV.js} +39 -34
- package/dist/{chunk-HR3OJ3TH.js → chunk-XLAI7UYY.js} +84 -31
- package/dist/{chunk-H7OR7DFZ.js → chunk-XO756WE5.js} +53 -37
- package/dist/{chunk-F5Z6URKM.js → chunk-XVB3Q2PG.js} +2 -4
- package/dist/{chunk-R5MOQM2H.js → chunk-YOXCCJDF.js} +607 -366
- package/dist/{chunk-ZGSJDWQU.js → chunk-ZCQBNPRH.js} +2 -2
- package/dist/chunk-ZD4KVFXI.js +234 -0
- package/dist/{chunk-WGRJOXED.js → chunk-ZDMFGACN.js} +1295 -966
- package/dist/{chunk-OSTKYB55.js → chunk-ZMMHHXSW.js} +1 -1
- package/dist/{chunk-75GAYVNO.js → chunk-ZPM7ZIFL.js} +6 -6
- package/dist/{chunk-LUBPZN36.js → chunk-ZVCDHYWZ.js} +9 -11
- package/dist/{chunk-Y7F7IEE3.js → chunk-ZZN74OGD.js} +102 -7
- package/dist/{chunk-L5JYIU47.js → chunk-ZZSJAR76.js} +39 -20
- package/dist/index.js +10933 -8644
- package/dist/mcp/analyze-cli.js +12 -17
- package/dist/mcp/cli.js +43 -42
- package/dist/mcp/server.js +3073 -1147
- package/dist/mcp/worker.js +61 -61
- package/dist/probes/installer.js +18 -19
- package/docs/adr/0003-git-guard-latch-writer.md +11 -6
- package/docs/agent-tools.md +58 -16
- package/docs/alignment-families.md +29 -0
- package/docs/analysisall.md +1 -1
- package/docs/ast-grep_rules_catalog.md +6 -4
- package/docs/ci-bot-pr-checks.md +128 -0
- package/docs/configuration.md +150 -12
- package/docs/defect-shapes.md +107 -15
- package/docs/engineering-principles.md +27 -2
- package/docs/environment-variables.md +18 -1
- package/docs/features.md +14 -7
- package/docs/globalconfig.md +11 -3
- package/docs/invariants/git-guard-host.md +7 -3
- package/docs/invariants/language-config.md +15 -4
- package/docs/invariants/lsp-trust-exec.md +25 -4
- package/docs/invariants/paths-os.md +4 -2
- package/docs/invariants/session-telemetry.md +2 -2
- package/docs/language-coverage.md +1 -0
- package/docs/lsp-capability-matrix.md +167 -65
- package/docs/lsp-idle-eviction.md +4 -1
- package/docs/merge-queue-rollout.md +10 -8
- package/docs/module-report-read-symbol.md +34 -23
- package/docs/pi-lens-fixer.md +34 -17
- package/docs/pi-lens-investigator.md +3 -0
- package/docs/pi-lens-merge-policy.md +34 -17
- package/docs/pi-lens-monitor.md +9 -0
- package/docs/pi-lens-orchestration.md +4 -1
- package/docs/pi-lens-reviewer.md +6 -6
- package/docs/pi-lens-subagent.md +19 -3
- package/docs/public-api-stability.md +57 -7
- package/docs/release-qa-baseline.md +7 -4
- package/docs/schema/pi-lens-config-v1.json +21 -2
- package/docs/servercapabilities.md +3 -1
- package/docs/settings.md +11 -7
- package/docs/word-index.md +20 -7
- package/package.json +11 -4
- package/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
- package/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
- package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
- package/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
- package/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
- package/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
- package/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
- package/rules/ast-grep-rules/self-scan-baseline.json +1 -1
- package/scripts/download-grammars.js +3 -2
- package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/dist/chunk-46TNM7XZ.js +0 -88
- package/dist/chunk-72OKUXSD.js +0 -31
- package/dist/chunk-7GLOLOSH.js +0 -57
- package/dist/chunk-AKUUMGD5.js +0 -26
- package/dist/chunk-ASUXV767.js +0 -22
- package/dist/chunk-CTADOKYM.js +0 -25
- package/dist/chunk-GNSIWBAT.js +0 -106
- package/dist/chunk-HWDAVBFU.js +0 -49
- package/dist/chunk-JJ2RRESP.js +0 -58
- package/dist/chunk-KXF5R4UN.js +0 -48
- package/dist/chunk-LSC3VADM.js +0 -23
- package/dist/chunk-OE5ZBP7F.js +0 -443
- package/dist/chunk-SHLDT3OI.js +0 -27
- package/dist/chunk-UF7RTZSO.js +0 -27
- package/dist/chunk-W4WP2ERB.js +0 -30
- package/dist/chunk-YES5CACN.js +0 -73
- package/dist/chunk-Z2XAOKHK.js +0 -136
|
@@ -19,10 +19,21 @@
|
|
|
19
19
|
legacy migrations, and namespaces live in the config-location/schema modules.
|
|
20
20
|
A new config key or environment flag needs a forcing function, stability tier,
|
|
21
21
|
diagnostic code, tests, and docs.
|
|
22
|
-
- `rules.<id>.ignorePaths` is an experimental
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
- `rules.<id>.ignorePaths` is an experimental path denial resolved by
|
|
23
|
+
config-core with array-union semantics: global entries cannot be cleared by
|
|
24
|
+
project config. Each entry is a gitignore line, matched as the `ignore` field
|
|
25
|
+
matches (#783: last match wins, `!` re-includes, a leading `/` roots it, a
|
|
26
|
+
trailing `/` is directory-only) through `isIgnoredByGitignoreLines`
|
|
27
|
+
(`clients/file-utils.ts`), relative to the directory of the file that
|
|
28
|
+
declares it (the project root for a global entry). Each file is its own
|
|
29
|
+
scope and a path is carved out when any scope ignores it, so a `!` never
|
|
30
|
+
lifts another file's carve-out. A rule's own YAML `ignores:` stays on the
|
|
31
|
+
ast-grep glob matcher (`isRuleIgnoredForPath`), which mirrors
|
|
32
|
+
`ast-grep scan`. Ast-grep and tree-sitter apply `ignorePaths` before
|
|
33
|
+
scanning; other runner output uses the shared rule-policy filter.
|
|
34
|
+
- `rules` and `dispatch.disabledRunners` are read per file from its config
|
|
35
|
+
owner (`resolveDispatchPolicyConfigForFile`, `loadProjectRulePolicy`), so a
|
|
36
|
+
nested `.pi-lens.json` governs its own files on every surface.
|
|
26
37
|
- `lens_diagnostics` has one model-facing diagnostic surface. `source` is
|
|
27
38
|
`session` or `lsp`; `scope` is `paths` or `workspace`; explicit paths always
|
|
28
39
|
win. Severity is a threshold. Retired compatibility names must not widen a
|
|
@@ -32,8 +32,15 @@
|
|
|
32
32
|
- Under pi, project trust is consumed through `isProjectTrusted`; pi-lens never
|
|
33
33
|
registers the host's trust-answer handler. `compileLspRegistry` is the one admission
|
|
34
34
|
seam for LSP executable fields: global config and built-ins remain allowed,
|
|
35
|
-
while project
|
|
36
|
-
`
|
|
35
|
+
while a project field requires pi's `trusted` answer unless
|
|
36
|
+
`REPO_TIER_SERVER_FIELDS` (`name`) admits it; a field no table names is
|
|
37
|
+
refused (`REPO_TIER_OVERRIDE_FIELDS` admits none, #5147). A refused field
|
|
38
|
+
may have shadowed the user's own value, so a refused `lsp.servers.<id>` field
|
|
39
|
+
leaves that server unregistered for the project. A refused
|
|
40
|
+
`lsp.serverOverrides.<id>` field drops the repo tier's contribution only: the
|
|
41
|
+
global tier, resolved on its own, supplies that id's override field by field,
|
|
42
|
+
and a field it does not set runs on the catalog default; the built-in is never
|
|
43
|
+
disabled for a repo field (#5147). Missing trust APIs are
|
|
37
44
|
fail-closed for those project fields with one bounded notice; installs keep
|
|
38
45
|
their existing compatibility policy. `tests/clients/lsp/lsp-registry-trust.test.ts`
|
|
39
46
|
and the LSP config/service suites pin the boundary.
|
|
@@ -102,8 +109,9 @@
|
|
|
102
109
|
timers on every removal path.
|
|
103
110
|
- Production callers use the grouped experimental `LspCapabilities` adapter in
|
|
104
111
|
`clients/lsp/capabilities.ts`; direct `LSPService` module imports are limited
|
|
105
|
-
to that adapter and are enforced by
|
|
106
|
-
|
|
112
|
+
to that adapter and are enforced by oxlint's `no-restricted-imports` in
|
|
113
|
+
`.oxlintrc.json` (`npm run lint:js`, #2372/#277; it replaced the
|
|
114
|
+
`lsp-capabilities-import-sweep` test in #4865).
|
|
107
115
|
- Idle-eviction policy is the registry's `idleEviction` field, declared per
|
|
108
116
|
server. The nightly (`scripts/measure-lsp-idle-eviction.mjs`) measures every
|
|
109
117
|
registry server's eviction cost and respawn safety into
|
|
@@ -187,6 +195,19 @@
|
|
|
187
195
|
- Per-path LSP notifications serialize read/build/send/record work. Pull
|
|
188
196
|
cancellation blocks a same-path replacement until settlement. Waits are
|
|
189
197
|
deadline- and abort-bounded, and silence is never clean.
|
|
198
|
+
- A cached answer is evidence about the state it was published for, never about a
|
|
199
|
+
later change. `touchFile` skips a notify for bytes the server already holds
|
|
200
|
+
(see the debounce bullet below), so the diagnostics it reports can be an
|
|
201
|
+
entry the server published before the caller's edit; it names that case
|
|
202
|
+
(`TouchFileResult.reusedAnswer`, server plus publish stamp) and never claims
|
|
203
|
+
it as the touch's own answer. The cascade reads it (`isPreEditAnswer`,
|
|
204
|
+
`clients/dispatch/integration.ts`): an answer published before the run's edit
|
|
205
|
+
is unconfirmed, never clean, exactly as `isPostEditObservation` already rules
|
|
206
|
+
for the passive snapshot and both fallbacks. An answer published after the
|
|
207
|
+
edit (a push or pull inside the touch, the `typescript.tsserverRequest` sync
|
|
208
|
+
confirm, or a server that republished for the file after the edit) keeps its
|
|
209
|
+
verdict. A client that cannot date its cache reports no reuse and keeps the
|
|
210
|
+
pre-#5040 verdict.
|
|
190
211
|
- Document line addressing has one owner, `clients/lsp/content-scan.ts`: the
|
|
191
212
|
`\n` count behind the `lsp_document_send` record's `contentLineCount` and the
|
|
192
213
|
LSP sync bound (`countLfNewlines`), the last LSP-addressable line an
|
|
@@ -15,8 +15,10 @@
|
|
|
15
15
|
base expansion) or `resolveToolCallFilePath` (base plus pi's variant
|
|
16
16
|
ladder), never a bare `path.resolve(base, raw)`; see shape 74.
|
|
17
17
|
- Windows-shaped paths use `path.win32` functions. Use `toPosix`,
|
|
18
|
-
`splitPathSegments`, `isUnderDir`, `isSameOrWithin`,
|
|
19
|
-
|
|
18
|
+
`splitPathSegments`, `isUnderDir`, `isSameOrWithin`, `relativeInside`
|
|
19
|
+
(lexical containment with the relative text), `isWithinIdentity`
|
|
20
|
+
(containment on the identity axis), and `isAtOrAboveHomeDir` instead of
|
|
21
|
+
inline separator or containment logic.
|
|
20
22
|
- Data and log locations follow **Data directories and logs**; never hardcode
|
|
21
23
|
`.pi-lens` paths in writes or user-facing text.
|
|
22
24
|
- Probes and child processes pin `PI_LENS_HOME`, `PILENS_DATA_DIR`, `HOME`, and
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
- `pilens:files:touched` publishers are `clients/pipeline.ts` and
|
|
106
106
|
`clients/runtime-agent-end.ts`; `clients/agent-nudge.ts` is the subscriber.
|
|
107
107
|
`clients/lsp-mutation.ts` has an optional callback but is not a publisher until
|
|
108
|
-
it is wired. Update
|
|
109
|
-
|
|
108
|
+
it is wired. Update this bullet for any publisher or subscriber change; no
|
|
109
|
+
test enforces the list.
|
|
110
110
|
- Deferred work has a bounded queue, wall budget, abort path, carry-forward
|
|
111
111
|
identity, and honest partial/deferred delivery. It never publishes a false
|
|
112
112
|
clean result after cutting work.
|
|
@@ -33,6 +33,7 @@ Dispatch is diagnostics-oriented: automatic formatting and safe autofix happen i
|
|
|
33
33
|
| Java | ✓ | lsp, javac | google-java-format |
|
|
34
34
|
| Java + Lombok | ✓ | JDT LS launched with `-javaagent:<lombok.jar>` when Lombok is detected and a jar is found (`PI_LENS_LOMBOK_JAR` / `LOMBOK_JAR`, project `.lombok/lombok.jar`, or Maven/Gradle cache) | google-java-format |
|
|
35
35
|
| Kotlin | ✓ | lsp, ktlint, detekt | ktlint |
|
|
36
|
+
| Groovy | ✓ (groovy-language-server; explicit `lens_diagnostics source=lsp` and `lsp_navigation` only) | — | — |
|
|
36
37
|
| Lean 4 | ✓ (Lake `serve`) | lsp; uses each project's Lake toolchain and environment | — |
|
|
37
38
|
| Swift | ✓ | lsp, swiftlint | swiftformat |
|
|
38
39
|
| Dart | ✓ | lsp, dart-analyze | dart format |
|
|
@@ -129,7 +129,8 @@ belonged to another live client of the same server id became `typescript`'s
|
|
|
129
129
|
| **2 — push, publishes-versioned** | `publishDiagnostics([])` **with version** on every scan, incl. clean→clean | YES, currency-proven via version | ast-grep |
|
|
130
130
|
| **2\* — push, publishes-unversioned** | re-publishes on a clean scan but **version-less** — the wait still early-returns (the client accepts a version-less publish as fresh: it can't be proven stale), but currency is only *temporally correlated*, not proven. Since #3484 the client fences a server measured to answer a `documentSymbol` fence before it publishes (`diagnosticsFence: "reply-first"`: yaml, intelephense): a pre-edit publish is dropped until the fence's reply. Every other 2\* server (docker publishes before answering; prisma, taplo, zls, dart, gleam, clojure unmarked) keeps this behaviour | YES at runtime, with a staleness-risk caveat (not a latency cost) | opengrep |
|
|
131
131
|
| **3 — push, silent on clean** | server publishes nothing when nothing changed | **NO** — budget-wait floor (safe; a timeout is *not* a false clean). **This tier is #458's learned-deadline target set.** | typescript-language-server |
|
|
132
|
-
| **
|
|
132
|
+
| **Unconfirmed — custom, no evidence** | custom `lsp.servers.*` entry has no pull provider and has not published in this session | **NO** — diagnostics are unconfirmed (reported `inconclusive`, never `unsupported`); skip the wait until the server publishes | Dexter, groovy-language-server |
|
|
133
|
+
| **Unmarked push — built-in, unmeasured** | built-in push-only row with no `silentOnClean` marker and no measured row | **NO** — the full push budget runs on every touch; a timeout with no publish is `inconclusive`, never clean | groovy-language-server (built-in `groovy` row) |
|
|
133
134
|
|
|
134
135
|
Detection is **cached** at `initialize` (`detectWorkspaceDiagnosticsSupport` →
|
|
135
136
|
`state.workspaceDiagnosticsSupport.mode`, upgraded on `client/registerCapability`),
|
|
@@ -139,8 +140,41 @@ Custom servers without a pull provider begin with one bounded first-contact
|
|
|
139
140
|
probe. The probe uses the smaller of the server's push-wait budget and the live
|
|
140
141
|
hook deadline. If the hook cuts it off first, the result remains unconfirmed and
|
|
141
142
|
the next touch probes again. Only silence through the full push budget latches
|
|
142
|
-
that server id
|
|
143
|
-
|
|
143
|
+
that server id for the service session: the latch skips the wait and the file
|
|
144
|
+
reads **unconfirmed** (`inconclusive` in a batch outcome, "not the same as 0
|
|
145
|
+
diagnostics" in a single-file result), never `unsupported` and never clean. Any
|
|
146
|
+
publish, however late and whatever file it is for, clears the latch (#5128), and
|
|
147
|
+
the server returns to the ordinary push-wait policy. A server that publishes
|
|
148
|
+
only for files with errors (groovy-language-server sends nothing for a file that
|
|
149
|
+
compiles) therefore reads unconfirmed on clean files, and its findings arrive as
|
|
150
|
+
soon as it publishes them. A publish that lands while the first-contact wait is
|
|
151
|
+
still in flight prevents the latch.
|
|
152
|
+
|
|
153
|
+
The built-in `groovy` row (#5123) takes the other branch. It has no
|
|
154
|
+
`silentOnClean` marker, because nothing has measured the real server (it
|
|
155
|
+
publishes no release, so no nightly job can install it), and the marker would
|
|
156
|
+
make a quiet touch count as clean. It therefore pays the full push budget on
|
|
157
|
+
every touch of a file it stays silent for, and that file reads `inconclusive`
|
|
158
|
+
by the timeout, where a custom entry skips the wait after its first-contact
|
|
159
|
+
latch. Two of the custom behaviours are declared on the row instead of read
|
|
160
|
+
from `custom`: `echoesOwnNotice: true` holds the empty publish the server
|
|
161
|
+
sends after pi-lens's own first-open watched-files notice (#5131), so an
|
|
162
|
+
`unable to resolve class` error is not erased 5 ms after it is published. The
|
|
163
|
+
row's hand-added line in the matrix below stays `unknown` until a run observes
|
|
164
|
+
the server. It launches a `groovy-language-server` on PATH, else
|
|
165
|
+
`java -jar $GROOVY_LANGUAGE_SERVER_JAR`, on a JDK 17+ found the way jdtls finds
|
|
166
|
+
one; `.groovy`, `.gvy`, `.gy` and `.gsh` only (add `.gradle` or `Jenkinsfile`
|
|
167
|
+
through `lsp.servers` if the build classpath is worth the unresolved-class
|
|
168
|
+
noise). The row has no file kind, so only the explicit probes reach it
|
|
169
|
+
(`lens_diagnostics` with `source: "lsp"`, `lsp_navigation`), not the write-time
|
|
170
|
+
dispatch.
|
|
171
|
+
|
|
172
|
+
The first-contact budget on the per-edit path is the strategy's
|
|
173
|
+
`aggregateWaitMs` (1500 ms). It is a cost, not a verdict: the latch is
|
|
174
|
+
recoverable, so a server slower than the budget pays 1.5 s once and reads
|
|
175
|
+
unconfirmed until its first publish, instead of being lost for the session.
|
|
176
|
+
Raising it would charge up to the larger budget on the first edit of every
|
|
177
|
+
custom server that never publishes for a clean file.
|
|
144
178
|
|
|
145
179
|
## Matrix (dev box + CI nightly; mode last refreshed 2026-06-17 from run 27713958681, clean-behavior probed in run 35914033696 — #460)
|
|
146
180
|
|
|
@@ -214,35 +248,36 @@ carries the named admission until then.
|
|
|
214
248
|
|
|
215
249
|
| lang | server | mode | clean-behavior | first-publish | tier | src | version | install | stale |
|
|
216
250
|
|---|---|---|---|---|---|---|---|---|---|
|
|
217
|
-
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
218
|
-
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
219
|
-
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
220
|
-
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci |
|
|
221
|
-
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
222
|
-
| deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci |
|
|
251
|
+
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
252
|
+
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
253
|
+
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
254
|
+
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci | 0.3.3105-standalone | global-path | — |
|
|
255
|
+
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci | — | pi-lens-auto | — |
|
|
256
|
+
| deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci | 2.9.8 | global-path | — |
|
|
223
257
|
| ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
224
258
|
| csharp | csharp-ls | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
225
|
-
| typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci |
|
|
226
|
-
| markdown | marksman | push-only | silent | direct | 3 | ci | — |
|
|
227
|
-
| lua | lua-language-server | push-only | silent | direct | 3 | dev+ci | — |
|
|
228
|
-
| python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
229
|
-
| jedi | jedi-language-server (alt of python) | push-only | publishes-versioned | direct | 2 | ci |
|
|
230
|
-
| yaml | yaml-language-server | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
231
|
-
| shell | bash-language-server | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
232
|
-
| dockerfile | docker-langserver | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
259
|
+
| typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci | 5.3.0 | pi-lens-auto | — |
|
|
260
|
+
| markdown | marksman | push-only | silent | direct | 3 | ci | — | global-path | — |
|
|
261
|
+
| lua | lua-language-server | push-only | silent | direct | 3 | dev+ci | — | archive-dist | — |
|
|
262
|
+
| python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci | 1.1.414 | pi-lens-auto | — |
|
|
263
|
+
| jedi | jedi-language-server (alt of python) | push-only | publishes-versioned | direct | 2 | ci | 0.47.0 | global-path | — |
|
|
264
|
+
| yaml | yaml-language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | 2.0.0 | pi-lens-auto | — |
|
|
265
|
+
| shell | bash-language-server | push-only | publishes-versioned | direct | 2 | dev+ci | 5.8.1 | pi-lens-auto | — |
|
|
266
|
+
| dockerfile | docker-langserver | push-only | publishes-unversioned | direct | 2* | dev+ci | — | pi-lens-auto | — |
|
|
233
267
|
| dockerfile-official | docker-language-server (official) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
|
|
234
|
-
| toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
235
|
-
| terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
236
|
-
| prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
237
|
-
| php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci | — |
|
|
238
|
-
| zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
239
|
-
| vue | @vue/language-server | push-only | unknown | unknown | 2/3? | dev+ci |
|
|
268
|
+
| toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci | 0.10.0 | global-path | — |
|
|
269
|
+
| terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci | 0.39.1 | global-path | — |
|
|
270
|
+
| prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | — | pi-lens-auto | — |
|
|
271
|
+
| php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci | — | pi-lens-auto | — |
|
|
272
|
+
| zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci | 0.17.0 | global-path | — |
|
|
273
|
+
| vue | @vue/language-server | push-only | unknown | unknown | 2/3? | dev+ci | 3.3.14 | pi-lens-auto | — |
|
|
274
|
+
| groovy | groovy-language-server (built-in, no fixture) | push-only | unknown | unknown | 3? | — | — | — | — |
|
|
240
275
|
| dart | dart language-server | push-only | publishes-unversioned | direct | 2* | ci | — | — | — |
|
|
241
|
-
| gleam | gleam lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
242
|
-
| clojure | clojure-lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
243
|
-
| opengrep | opengrep (aux) | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
276
|
+
| gleam | gleam lsp | push-only | publishes-unversioned | direct | 2* | ci | 1.19.2 | global-path | — |
|
|
277
|
+
| clojure | clojure-lsp | push-only | publishes-unversioned | direct | 2* | ci | 2026.10.15-11.42.38 | global-path | — |
|
|
278
|
+
| opengrep | opengrep (aux) | push-only | publishes-unversioned | direct | 2* | dev+ci | — | global-path | — |
|
|
244
279
|
| ast-grep | ast-grep (aux) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
|
|
245
|
-
| cue | CUE Language Server (cue lsp serve) | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
280
|
+
| cue | CUE Language Server (cue lsp serve) | push-only | publishes-versioned | direct | 2 | dev+ci | 0.17.1 | global-path | — |
|
|
246
281
|
|
|
247
282
|
**Unknown — fixture exists, mode not yet captured.** The toolchain-gated family
|
|
248
283
|
(no auto-install today; tracked in #241) — `go` (gopls), `java` (jdtls),
|
|
@@ -328,55 +363,121 @@ and were characterized `push-only` in the run above).
|
|
|
328
363
|
|
|
329
364
|
Population: every server that declares `textDocumentSync.save` in
|
|
330
365
|
`docs/servercapabilities.md` (15 `save`, 5 `save+text`), plus zizmor, which
|
|
331
|
-
registers `textDocument/didSave` dynamically
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
366
|
+
registers `textDocument/didSave` dynamically and therefore never receives one
|
|
367
|
+
from pi-lens (its `didSave` registration is dynamic and pi-lens maps only the
|
|
368
|
+
static `initialize` reply). The `server` column is the registry id in
|
|
369
|
+
`clients/lsp/server.ts`, so a row can be matched against the capability
|
|
370
|
+
inventory mechanically.
|
|
371
|
+
|
|
372
|
+
`publishes after save only` states whether only a save makes the server answer:
|
|
373
|
+
|
|
374
|
+
| value | meaning |
|
|
375
|
+
|---|---|
|
|
376
|
+
| `no` | the seeded finding arrived without a save |
|
|
377
|
+
| `no (pull)` | pull mode: the `textDocument/diagnostic` request answered without a save, so no publish is involved |
|
|
378
|
+
| `yes` | the same bytes produced the finding only after a save |
|
|
379
|
+
| `yes (saved write)` | only a diagnostic-neutral edit plus a save produced it |
|
|
380
|
+
| `inconclusive` | no arm produced the finding, or the answer landed in the untriggered window between two arms and so belongs to no arm |
|
|
381
|
+
| `cannot measure` | no runner can install the server; the reason follows |
|
|
382
|
+
| `unknown` | no run has measured this row yet |
|
|
383
|
+
|
|
384
|
+
Regenerate it with
|
|
385
|
+
|
|
386
|
+
```text
|
|
387
|
+
node scripts/probe-save-verdict.mjs [lang ...] [--install] [--wait-ms <ms>] [--doc <path>]
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
The nightly `tool-smoke.yml` step "LSP save verdict (#3405)" runs it with
|
|
391
|
+
`--install` on the tool-smoke fixtures, so the measurement columns self-populate
|
|
392
|
+
through the same docs-refresh PR as `mode` and `clean-behavior` (#390). The probe
|
|
393
|
+
drives the real client and reports four arms of equal length: the seeded bytes
|
|
394
|
+
with `saved: false` (didOpen/didChange only), an untriggered window of the same
|
|
395
|
+
length, the SAME bytes with `saved: true` (so a publish has the save as its only
|
|
396
|
+
new input), and, only when nothing else answered, a diagnostic-neutral edit
|
|
397
|
+
plus a save. `scripts/lib/save-verdict.mjs` owns the classification, the wording
|
|
398
|
+
and the merge guard; a run rewrites the three measurement columns of the rows it
|
|
399
|
+
reached and copies every other row verbatim, so a runner that could not install a
|
|
400
|
+
server never blanks a measured cell.
|
|
401
|
+
|
|
402
|
+
A night that could not tell never erases an answer (#5060). A row that holds a
|
|
403
|
+
settled answer (`no`, `no (pull)`, `yes`, `yes (saved write)`) keeps it, with its
|
|
404
|
+
evidence, when the run measures `inconclusive` or `cannot measure`; only a
|
|
405
|
+
settled answer replaces a settled one, and a `yes` to `no` change stays a visible
|
|
406
|
+
flip. This table has no column for a night a row was not answered, so the held
|
|
407
|
+
night goes to the run log (`save-verdict: held back <server>`), to one
|
|
408
|
+
`::warning::` annotation per held server under GitHub Actions, and to the
|
|
409
|
+
`--summary` JSON (`heldBack`). No counter or issue tracks consecutive held
|
|
410
|
+
nights.
|
|
411
|
+
|
|
412
|
+
A pull-mode server answers a `textDocument/diagnostic` request rather than
|
|
413
|
+
publishing, so no arm of its run has the save as its only new input: it reads
|
|
414
|
+
`no (pull)` when the request answered without a save and `inconclusive`
|
|
415
|
+
otherwise, never `yes`.
|
|
416
|
+
|
|
417
|
+
The cells carry what a run OBSERVED, never when or where: each arm's elapsed time
|
|
418
|
+
and the `src` token that says CI or a dev box go to the run log, so a
|
|
419
|
+
re-measurement that changes only those is not a capability flip and the refresh PR
|
|
420
|
+
stays armed for auto-merge (#4512).
|
|
421
|
+
|
|
422
|
+
A row whose evidence names this command is a measurement by it. A row that names
|
|
423
|
+
a prior probe, a workflow run or a source commit instead is provenance from
|
|
424
|
+
before the command existed (or from a server no local run could reach), and the
|
|
425
|
+
dispatched nightly replaces it on the first night that reaches the server.
|
|
338
426
|
|
|
339
427
|
| server | save as declared | publishes after save only | verdict | evidence |
|
|
340
428
|
|---|---|---|---|---|
|
|
341
|
-
| expert | `save` | no |
|
|
342
|
-
| cpp
|
|
343
|
-
| lua | `save` | no | Measured:
|
|
344
|
-
| python-jedi | `save` | no | Measured:
|
|
345
|
-
| opengrep
|
|
346
|
-
| gleam | `save` | no |
|
|
347
|
-
| go
|
|
348
|
-
| zig
|
|
349
|
-
| rust
|
|
350
|
-
| terraform | `save` | no |
|
|
429
|
+
| expert | `save` | no | Prior measurement: answers with no `didSave` once the seed is under `lib/`. Gated. | #4768 arms A, B, C; nightly run 39852672584 (answered on call 6, 10955 ms); `tests/fixtures/nightly-floors/expert-readiness.json` |
|
|
430
|
+
| cpp | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture cpp) |
|
|
431
|
+
| lua | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture lua) |
|
|
432
|
+
| python-jedi | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture jedi) |
|
|
433
|
+
| opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Auxiliary, not gated. | `node scripts/probe-save-verdict.mjs` (fixture opengrep) |
|
|
434
|
+
| gleam | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture gleam) |
|
|
435
|
+
| go | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture go) |
|
|
436
|
+
| zig | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture zig) |
|
|
437
|
+
| rust | `save` | inconclusive | Measured: inconclusive — pull mode: every arm is a textDocument/diagnostic request, so no arm has the save as its only new input (arms: no-save silent (6000 ms), save alone 1 diagnostic, saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture rust) |
|
|
438
|
+
| terraform | `save` | no | Measured: answers without a save (2 publish events on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture terraform) |
|
|
351
439
|
| 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 |
|
|
352
|
-
| zizmor
|
|
353
|
-
| clojure | `save+text` |
|
|
354
|
-
| fish | `save+text` |
|
|
355
|
-
| tinymist | `save` |
|
|
356
|
-
| cue | `save` |
|
|
357
|
-
| csharp | `save+text` |
|
|
358
|
-
| deno | `save` |
|
|
359
|
-
| svelte | `save` |
|
|
360
|
-
| powershell | `save+text` |
|
|
361
|
-
| cmake | `save` |
|
|
440
|
+
| zizmor | · (registered dynamically) | no | Source: `didSave` is registered dynamically and pi-lens does not map that registration, so no save is sent. Auxiliary, not gated. | zizmor `crates/zizmor/src/lsp.rs` (`initialized`); `clients/lsp/wait-policy/strategies.ts:400-410` (#3548) |
|
|
441
|
+
| clojure | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 2 publish events. Gated. | `node scripts/probe-save-verdict.mjs` (fixture clojure) |
|
|
442
|
+
| fish | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Gated. | `node scripts/probe-save-verdict.mjs` (fixture fish) |
|
|
443
|
+
| tinymist | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture typst) |
|
|
444
|
+
| cue | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: 1 publish event. Gated. | `node scripts/probe-save-verdict.mjs` (fixture cue) |
|
|
445
|
+
| csharp | `save+text` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture csharp) |
|
|
446
|
+
| deno | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 1 diagnostic. Gated. | `node scripts/probe-save-verdict.mjs` (fixture deno) |
|
|
447
|
+
| svelte | `save` | no (pull) | Measured: pull mode — no save needed; a later save+request answered: 2 diagnostics. Gated. | `node scripts/probe-save-verdict.mjs` (fixture svelte) |
|
|
448
|
+
| powershell | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone: silent (6000 ms). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture powershell) |
|
|
449
|
+
| cmake | `save` | inconclusive | Measured: inconclusive — no arm published, so this fixture does not distinguish a save-triggered server from one that never diagnoses it (arms: no-save silent (6000 ms), save alone silent (6000 ms), saved write silent (6000 ms)). Exempt from the clean gate. | `node scripts/probe-save-verdict.mjs` (fixture cmake) |
|
|
362
450
|
|
|
363
451
|
Notes.
|
|
364
452
|
|
|
365
|
-
1. Probe.
|
|
366
|
-
(the
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
2.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
453
|
+
1. Probe. `node scripts/probe-save-verdict.mjs` is the command that produces this
|
|
454
|
+
table (see the paragraph above). It reuses the tool-smoke fixtures and the
|
|
455
|
+
nightly that already installs those servers, so it is one measurement path, not
|
|
456
|
+
a second driver. The only other command #4768 named is
|
|
457
|
+
`node scripts/smoke-tools.mjs --lsp-gate`; that step drives the clean gate and
|
|
458
|
+
writes no save verdict.
|
|
459
|
+
2. clangd reconciled. #4527 recorded "base 1 of 5, head 5 of 5" and #4768 recorded
|
|
460
|
+
clangd publishing on `didOpen` alone; both hold, and they counted different
|
|
461
|
+
things. The 5 checks are the rows of the `lsp-did-save/analyze` verify scenario,
|
|
462
|
+
four of which require a `textDocument/didSave` on the wire, so its one passing
|
|
463
|
+
check on base is `control: clangd answered for a.c`: clangd published the
|
|
464
|
+
finding with `0 didSave(s)` captured. The sender was missing, not the
|
|
465
|
+
publish. The probe reproduces both arms with one seed and one window (6000 ms
|
|
466
|
+
each, one client): the no-save arm published on `didOpen`, and the save arm,
|
|
467
|
+
with the identical bytes and the save on the wire, published nothing, because
|
|
468
|
+
clangd does not republish identical bytes, the same property #4527 measured
|
|
469
|
+
when its own re-push left the cold query inconclusive. So #4768's verdict
|
|
470
|
+
stands, #4527's 1-of-5 → 5-of-5 is a sender measurement, and no clangd arm
|
|
471
|
+
reads `yes`.
|
|
375
472
|
3. Citations corrected against master. #4768 cites `clients/lsp/client.ts:4410`
|
|
376
473
|
for `sendDidSave`; it is at `clients/lsp/client.ts:4909`, with the save-capability
|
|
377
474
|
gate at line 4917. The opengrep rescan claim is at
|
|
378
475
|
`clients/lsp/wait-policy/strategies.ts:100`; line 345 is the
|
|
379
476
|
`emptyUntilRulesRefreshed` hold.
|
|
477
|
+
4. Clean-gate policy in a measured row is the fixture's own declaration, not
|
|
478
|
+
hand prose: `Gated.` is `lspGate: true`, `Auxiliary, not gated.` an auxiliary
|
|
479
|
+
scanner, and `Exempt from the clean gate.` a fixture whose `lspGateExempt`
|
|
480
|
+
reason lives in `scripts/smoke-tools.mjs`.
|
|
380
481
|
|
|
381
482
|
## Completing the matrix
|
|
382
483
|
The fixtures (`tests/fixtures/tool-smoke/<lang>/`) are durable and cover every
|
|
@@ -411,6 +512,7 @@ marker; a mismatch means the marker may need a human update (#529). `unknown`
|
|
|
411
512
|
observations are never compared (a slow/absent server is not evidence either way).
|
|
412
513
|
|
|
413
514
|
- **[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)
|
|
515
|
+
- **[silent-not-marked]** observed silent on clean transitions but wait-policy/strategies.ts has no silentOnClean marker for "fallow" — cascade is burning the full in-lane wait it could skip (the pre-#458 situation)
|
|
414
516
|
|
|
415
517
|
## Capability matrix refresh state (nightly-generated)
|
|
416
518
|
|
|
@@ -420,5 +522,5 @@ streaks behind the `stale` column (#4512) and consecutive-night
|
|
|
420
522
|
`idle-eviction` counts (#3989). Regenerated every run; never a measurement.
|
|
421
523
|
|
|
422
524
|
```json
|
|
423
|
-
{"idle-eviction":{"
|
|
525
|
+
{"idle-eviction":{"svelte":{"nights":[{"day":"2026-11-03","rssMb":233,"coldMs":2987},{"day":"2026-11-04","rssMb":233,"coldMs":2944}]}}}
|
|
424
526
|
```
|
|
@@ -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-
|
|
18
|
+
_Last generated: 2026-11-04 on linux; 51 registry servers: 34 eligible, 0 vetoed, 2 inconclusive, 15 unavailable (0 not reached: budget)._
|
|
19
19
|
|
|
20
20
|
## Per-server rows
|
|
21
21
|
|
|
@@ -49,10 +49,12 @@ step log only, because it flaps.
|
|
|
49
49
|
| docker-official | primary | transparent | eligible | · | ok | preserved |
|
|
50
50
|
| elixir | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
|
|
51
51
|
| expert | primary | unmeasured | eligible | · | ok | preserved |
|
|
52
|
+
| fallow | auxiliary | unmeasured | eligible | · | ok | preserved |
|
|
52
53
|
| fish | primary | transparent | eligible | · | ok | preserved |
|
|
53
54
|
| fsharp | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
|
|
54
55
|
| gleam | primary | unmeasured | eligible | · | ok | preserved |
|
|
55
56
|
| go | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
|
|
57
|
+
| groovy | primary | unmeasured | unavailable | no-fixture | n/a | n/a |
|
|
56
58
|
| haskell | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
|
|
57
59
|
| html | primary | transparent | eligible | · | ok | preserved |
|
|
58
60
|
| java | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
|
|
@@ -94,6 +96,7 @@ nothing.
|
|
|
94
96
|
- **ast-grep** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
95
97
|
- **cue** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
96
98
|
- **expert** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
99
|
+
- **fallow** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
97
100
|
- **gleam** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
98
101
|
- **kotlin** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
99
102
|
- **lua** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
@@ -12,11 +12,13 @@ neither is needed. Sharded Unit tests (#3753) keep one queue run short.
|
|
|
12
12
|
|
|
13
13
|
## Repository side (already in this change)
|
|
14
14
|
|
|
15
|
-
- `ci.yml` and `
|
|
16
|
-
Together they produce every required check:
|
|
17
|
-
`
|
|
15
|
+
- `ci.yml`, `lint.yml`, and `hot-path-latency.yml` run on `merge_group`
|
|
16
|
+
(`types: [checks_requested]`). Together they produce every required check:
|
|
17
|
+
`Lint & type-check`, `Unit tests`, `Unit tests Windows`,
|
|
18
|
+
`Hot-path latency (advisory)`, `Install test (ubuntu-latest)`,
|
|
19
|
+
`Install test (windows-latest)`,
|
|
18
20
|
`Install test (macos-latest)`, `knip`, `oxfmt format check`, `TLA+ models`.
|
|
19
|
-
- PR-only jobs (PR
|
|
21
|
+
- PR-only jobs (PR metadata, PR body, changelog fast-fail, changed tests shuffled) are
|
|
20
22
|
guarded by `github.event_name == 'pull_request'` and are skipped on
|
|
21
23
|
`merge_group`; none of them is required.
|
|
22
24
|
- `tests/config/merge-queue-workflows.test.ts` pins the trigger, the required
|
|
@@ -32,7 +34,7 @@ neither is needed. Sharded Unit tests (#3753) keep one queue run short.
|
|
|
32
34
|
| Ruleset name | `master merge queue` | |
|
|
33
35
|
| Enforcement status | Active | |
|
|
34
36
|
| Target branches | Include default branch (`master`) | |
|
|
35
|
-
| Require status checks to pass | the
|
|
37
|
+
| Require status checks to pass | the ten names above, source GitHub Actions | unchanged from branch protection today |
|
|
36
38
|
| Require branches to be up to date | off | the queue replaces it |
|
|
37
39
|
| Require merge queue | on | |
|
|
38
40
|
| Merge method | Merge commit | repo convention (`gh pr merge --merge`) |
|
|
@@ -56,9 +58,9 @@ detection.
|
|
|
56
58
|
1. Merge #3753 (sharded Unit tests) first, then this change.
|
|
57
59
|
2. Create the ruleset above.
|
|
58
60
|
3. Enqueue one low-risk PR: `gh pr merge <N> --merge`.
|
|
59
|
-
4. Confirm in `gh run list --event merge_group` that `CI
|
|
60
|
-
`gh-readonly-queue/master/pr-<N>-<sha>` ref and
|
|
61
|
-
checks reported there. A required check that never reports stalls the queue
|
|
61
|
+
4. Confirm in `gh run list --event merge_group` that `CI`, `Lint`, and
|
|
62
|
+
`Hot-path latency` ran on the `gh-readonly-queue/master/pr-<N>-<sha>` ref and
|
|
63
|
+
that all ten required checks reported there. A required check that never reports stalls the queue
|
|
62
64
|
until the 30-minute timeout.
|
|
63
65
|
5. Stop using `gh pr update-branch` and "re-arm" pushes; both are moot and a
|
|
64
66
|
push to a queued PR ejects it.
|
|
@@ -24,7 +24,7 @@ work.
|
|
|
24
24
|
|
|
25
25
|
### `module_report(filePath, maxRefsPerSymbol?)`
|
|
26
26
|
|
|
27
|
-
Returns a structured outline of one module
|
|
27
|
+
Returns a structured outline of one module (default `summary-text`; see the `view` preset below for the projection × format matrix). The `full-json` shape:
|
|
28
28
|
|
|
29
29
|
```json
|
|
30
30
|
{
|
|
@@ -81,21 +81,32 @@ top three by `(usedBy × 2) + complexity + (exported ? 2 : 0)
|
|
|
81
81
|
outline to decide where to look next; each entry carries `{reason, symbol,
|
|
82
82
|
startLine, endLine}` (no path — always the same file as the report).
|
|
83
83
|
|
|
84
|
-
`view
|
|
85
|
-
|
|
84
|
+
The `view` output preset is projection × format: `"summary-text"` (default) =
|
|
85
|
+
metric fields off (no `usedBy`/`fanout`/`complexity` fields), text; `"summary-json"` =
|
|
86
|
+
same fields, JSON; `"full-text"` = every field, text; `"full-json"` = every
|
|
87
|
+
field, JSON. Every field appears in the text cell: `kind` prints raw, so it can
|
|
88
|
+
be reused as `read_symbol`'s `kind` filter, and an unavailable module still
|
|
89
|
+
renders its callbacks and recommended reads. Metrics
|
|
90
|
+
who-uses-this as a `used-by:` continuation line:
|
|
86
91
|
|
|
87
92
|
```text
|
|
88
|
-
clients/agent-nudge.ts jsts 266L — 8 symbols, 5 exported
|
|
93
|
+
clients/agent-nudge.ts jsts 266L [fresh] — 8 symbols, 5 exported, 2 imports (callbackSupport: generic)
|
|
89
94
|
API:
|
|
90
|
-
77-81
|
|
95
|
+
77-81 function _resetAgentNudgeForTests() [async] — Test-only: clear accumulator state.
|
|
91
96
|
INTERNAL:
|
|
92
|
-
95-104
|
|
97
|
+
95-104 function isValidPayload(data: unknown) cx:2 fan:1
|
|
93
98
|
CALLBACKS:
|
|
94
|
-
164-172 event_handler
|
|
99
|
+
164-172 event_handler events.on@164 raw:function_expression [lifecycle] (in wireAgentNudgeSubscriber)
|
|
100
|
+
IMPORTS:
|
|
101
|
+
external: bus-publish, latency-logger
|
|
102
|
+
PROVENANCE: symbols=syntax imports=cached-review-graph usedBy=cached-review-graph callbacks=heuristic-tree-sitter semantic.source=review-graph semantic.references=true semantic.implementations=false graphBuiltAt=unknown
|
|
95
103
|
```
|
|
96
104
|
|
|
97
|
-
Default
|
|
98
|
-
|
|
105
|
+
Default preset is `summary-text`; a `maxRefsPerSymbol` argument promotes the
|
|
106
|
+
projection to `full` and keeps the format. `RECOMMENDED` reasons are ranked
|
|
107
|
+
from unprojected entries, so they may still cite counts in prose (e.g.
|
|
108
|
+
"used by 3") even under `summary-*` — the promise is field-token absence,
|
|
109
|
+
not prose silence.
|
|
99
110
|
### `read_symbol(filePath, symbol, kind?)`
|
|
100
111
|
|
|
101
112
|
Returns the verbatim body of one named symbol plus a one-line header
|
|
@@ -222,10 +233,12 @@ a wash — use `read` with a line range instead.
|
|
|
222
233
|
symbols), the default JSON view dropped from measuring ~1,900 tokens
|
|
223
234
|
(per-symbol `read` blocks + `flags: ["exported", ...]` duplicating the
|
|
224
235
|
`exported` boolean + `recommendedReads` repeating `{path, offset, limit}`)
|
|
225
|
-
to a schema with no repeated `read`/path noise
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
236
|
+
to a schema with no repeated `read`/path noise. **#5137 presets
|
|
237
|
+
(2026-11-01):** `view` now names projection × format (`summary-text` /
|
|
238
|
+
`summary-json` / `full-text` / `full-json`, default `summary-text`); the text
|
|
239
|
+
cell mirrors its JSON payload field by field, with one declared exception (a
|
|
240
|
+
member's own `exported` rides on its container's section), and lands at about
|
|
241
|
+
60% of the JSON byte size on the measured file set.
|
|
229
242
|
## When *not* to use these
|
|
230
243
|
|
|
231
244
|
- **Looking for a textual pattern across files** — use `grep` (tool in pi). `module_report` is per-file shape, not cross-file content.
|
|
@@ -240,16 +253,14 @@ Both tools are also exposed via the pi-lens MCP server:
|
|
|
240
253
|
- `pilens_module_report({file, cwd?, maxRefsPerSymbol?, focus?, view?, blastRadius?, blastRadiusDepth?})`
|
|
241
254
|
- `pilens_read_symbol({file, symbol, kind?, cwd?})`
|
|
242
255
|
|
|
243
|
-
The MCP wrappers return the same JSON
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
new) is folded into it.
|
|
252
|
-
|
|
256
|
+
The MCP wrappers return the same text or JSON payload the pi tools emit for
|
|
257
|
+
the same preset — `pilens_module_report` default text equals `module_report`
|
|
258
|
+
default text except for the graph-age line MCP appends when the graph is over
|
|
259
|
+
ten minutes old — so an agent in Claude Code (or any MCP client)
|
|
260
|
+
gets the same navigable flow without needing to install the pi extension.
|
|
261
|
+
`pilens_read_symbol`'s response no longer restates its own header line in a
|
|
262
|
+
trailing JSON block — the header line already carries name/kind/path/range,
|
|
263
|
+
so only `signature` (genuinely new) is folded into it.
|
|
253
264
|
## See also
|
|
254
265
|
|
|
255
266
|
- `clients/module-report.ts` — implementation, single-mode rationale, per-tier degradation
|