pi-lens 4.4.8 → 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 +178 -0
- package/README.md +2 -1
- package/config/dependency-cruiser-eager-allowlist.json +1 -1
- package/dist/{chunk-3O5EII3W.js → chunk-2VZ3VN3N.js} +2 -2
- package/dist/{chunk-SDFKOLSF.js → chunk-3HTZDY3C.js} +8 -6
- package/dist/{chunk-A5GRLYPZ.js → chunk-3NPWO5UO.js} +7 -13
- package/dist/{chunk-AGGUWKRK.js → chunk-47UCC4MM.js} +1 -1
- package/dist/chunk-4ENEJHF4.js +198 -0
- package/dist/{chunk-WXUDRAG6.js → chunk-5GEYJJHG.js} +10 -12
- package/dist/{chunk-HHR7WGCI.js → chunk-5YSEQHJN.js} +3 -3
- package/dist/{chunk-L3CLUGDY.js → chunk-6GPB3JLL.js} +3 -3
- package/dist/{chunk-5F3XF3SX.js → chunk-7R5GZIA6.js} +6 -6
- package/dist/{chunk-CUDD35TW.js → chunk-7UTSNTWM.js} +4 -4
- package/dist/{chunk-DYRZGUMA.js → chunk-7YTRG6YW.js} +2 -2
- package/dist/{chunk-JZRP4DGP.js → chunk-AACN5GNE.js} +2 -2
- package/dist/{chunk-7ANZ7XDD.js → chunk-ACRJ2GZ5.js} +2 -2
- package/dist/{chunk-6FIRFP6A.js → chunk-C3YRO3EU.js} +10 -12
- package/dist/{chunk-GMROJJRN.js → chunk-CB7PEVOJ.js} +9 -1
- package/dist/{chunk-BBET6HD6.js → chunk-CDFJF5YD.js} +1 -1
- package/dist/{chunk-NSPVR3FN.js → chunk-CJS6WE66.js} +17 -19
- package/dist/{chunk-6YUNI7B5.js → chunk-CM6BDY4E.js} +14 -60
- package/dist/{chunk-G5GV2Q7K.js → chunk-CZCAZVTD.js} +16 -2
- package/dist/chunk-DGKFWQK4.js +23 -0
- package/dist/{chunk-VOP4PJKA.js → chunk-E65WJVI5.js} +7 -9
- package/dist/{chunk-TV6RXRYH.js → chunk-EKNYSXFB.js} +8 -10
- package/dist/{chunk-4LL2VRNY.js → chunk-EY6LY2HO.js} +16 -18
- package/dist/{chunk-MC6VB2E5.js → chunk-F6BEQWAK.js} +17 -5
- package/dist/{chunk-R2QQC33W.js → chunk-FGNSESAC.js} +12 -14
- package/dist/{chunk-OC7VWJBZ.js → chunk-FRUBVFXV.js} +35 -37
- package/dist/{chunk-7CGIDRIK.js → chunk-G22UNQID.js} +14 -16
- package/dist/{chunk-L4NEVZ4T.js → chunk-GQTQUNCG.js} +25 -27
- package/dist/{chunk-ZKLTNLAW.js → chunk-H3BVMK47.js} +6 -6
- package/dist/chunk-H6FLQ5NW.js +28 -0
- package/dist/{chunk-2ZE3AUJQ.js → chunk-HEA3EM23.js} +13 -15
- package/dist/{chunk-CZL44WFN.js → chunk-HSOBIN22.js} +2 -2
- package/dist/{chunk-PKSUMEPT.js → chunk-HYSKJMZK.js} +3 -3
- package/dist/{chunk-VN3L2JWZ.js → chunk-IICERRFF.js} +5 -5
- package/dist/{chunk-O4N5BQ3T.js → chunk-IILEH3ZC.js} +8 -10
- package/dist/{chunk-WC6WRNQT.js → chunk-J3Q2NYJR.js} +2 -2
- package/dist/{chunk-SFLHSL5R.js → chunk-JUZ67QZQ.js} +18 -7
- package/dist/chunk-KR5VGMVT.js +25 -0
- package/dist/{chunk-UHHLR2VY.js → chunk-KV6GQOGN.js} +38 -41
- package/dist/{chunk-HUAM7QG3.js → chunk-KXMJLOZF.js} +25 -23
- package/dist/{chunk-BUZIQDFS.js → chunk-L4Y3ROKQ.js} +3 -3
- package/dist/{chunk-JBP7KESM.js → chunk-L6WBJGQS.js} +1 -1
- package/dist/{chunk-35WKJWO5.js → chunk-L7O774U7.js} +14 -14
- package/dist/{chunk-BOPDQ7AZ.js → chunk-LAHHGNAY.js} +19 -21
- package/dist/{chunk-RGGH6M34.js → chunk-LT62P654.js} +1 -1
- package/dist/{chunk-5T5A6YAJ.js → chunk-LWOM6LVS.js} +33 -34
- package/dist/{chunk-JYLOYTZD.js → chunk-MKPDIAZH.js} +5 -1
- package/dist/{chunk-CM73PPGD.js → chunk-MN635QYA.js} +3 -4
- package/dist/{chunk-BQG2QFVO.js → chunk-MQ4PPCJB.js} +21 -29
- package/dist/{chunk-HXFUTMX2.js → chunk-MRLH4MYU.js} +2 -2
- package/dist/{chunk-XOMGO63G.js → chunk-N56BNAA6.js} +19 -21
- package/dist/{chunk-7MAD5ZAY.js → chunk-N5CEGQPG.js} +14 -16
- package/dist/{chunk-ZFORSIED.js → chunk-NCLO6E6N.js} +13 -33
- package/dist/{chunk-SQC7K3SP.js → chunk-NL5LSKVD.js} +2 -2
- package/dist/{chunk-I22THIHI.js → chunk-NMUSOZ2D.js} +10 -12
- package/dist/{chunk-4NBWFYWW.js → chunk-NOWH2VA2.js} +8 -33
- package/dist/{chunk-NM2NWH55.js → chunk-NUSXS6YB.js} +6 -5
- package/dist/{chunk-OZWXLJMX.js → chunk-OSEKJEUU.js} +2 -2
- package/dist/{chunk-2BKUFQKR.js → chunk-OUYAUXAT.js} +405 -181
- package/dist/{chunk-JPRDTY5S.js → chunk-PBZNYHMM.js} +8 -10
- package/dist/{chunk-JE6HKLC7.js → chunk-PIIUNJIT.js} +2 -4
- package/dist/{chunk-ZZDIOAAJ.js → chunk-PRHYIA6X.js} +6 -6
- package/dist/{chunk-4W52ZKZX.js → chunk-PXQ45SGD.js} +2 -2
- package/dist/chunk-Q6JQKWPK.js +25 -0
- package/dist/{chunk-PIQQM32Y.js → chunk-QB7T2PHK.js} +2 -2
- package/dist/{chunk-HKIL6DCL.js → chunk-QGITU23N.js} +1 -1
- package/dist/chunk-QJJKOHLH.js +57 -0
- package/dist/{chunk-6LJOJ6EO.js → chunk-QP33NKYC.js} +14 -16
- package/dist/{chunk-DIWK3LBC.js → chunk-QVBOXT3L.js} +8 -10
- package/dist/{chunk-IYVYZQRL.js → chunk-RNJFRXEN.js} +5 -7
- package/dist/{chunk-G6JKM4O7.js → chunk-RNXOWDM6.js} +10 -10
- package/dist/{chunk-5RNB4HVK.js → chunk-RTFMDIKV.js} +1 -1
- package/dist/{chunk-XWIME22V.js → chunk-SIQHOB6P.js} +11 -13
- package/dist/{chunk-T2S3FNNJ.js → chunk-SLSMJPEF.js} +41 -42
- package/dist/chunk-T5QSLSMM.js +50 -0
- package/dist/chunk-TGQDAG4B.js +88 -0
- package/dist/{chunk-6GMGEKQN.js → chunk-THYHUIDR.js} +39 -12
- package/dist/{chunk-WMDUT4KH.js → chunk-TMNUTMT5.js} +72 -89
- package/dist/{chunk-7TNILKGY.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-FRLAUP2B.js → chunk-UXTQ3QPD.js} +4 -4
- package/dist/{chunk-4QG55RRC.js → chunk-V2WDBOLZ.js} +10 -12
- package/dist/{chunk-FHEV6T4L.js → chunk-V67D6TMU.js} +8 -10
- package/dist/{chunk-VLQ7UKZH.js → chunk-VCRVNLE7.js} +135 -2
- package/dist/{chunk-KZ4ALBCH.js → chunk-VO4JFPTV.js} +2 -2
- package/dist/{chunk-GIRBSBGL.js → chunk-VWLSU3XV.js} +3 -3
- package/dist/{chunk-2453RRJ2.js → chunk-W5E72HJA.js} +59 -22
- package/dist/{chunk-VPLBLWFO.js → chunk-W7TY6HYX.js} +1 -1
- package/dist/{chunk-SP4TFY5F.js → chunk-WSSLVMDA.js} +11 -13
- package/dist/{chunk-PPKECBPP.js → chunk-WTB4GKMH.js} +10 -1
- package/dist/{chunk-X35S7HSB.js → chunk-X5BJ3G2P.js} +41 -30
- package/dist/{chunk-X66YJ2SS.js → chunk-XKFO2SZV.js} +33 -34
- package/dist/{chunk-OWTG6UMO.js → chunk-XLAI7UYY.js} +75 -22
- package/dist/{chunk-4B2YFN4U.js → chunk-XO756WE5.js} +45 -33
- package/dist/{chunk-VOXTCULR.js → chunk-XVB3Q2PG.js} +2 -4
- package/dist/{chunk-XYLC35E4.js → chunk-YOXCCJDF.js} +517 -308
- package/dist/{chunk-O2ARHQKF.js → chunk-ZCQBNPRH.js} +2 -2
- package/dist/chunk-ZD4KVFXI.js +234 -0
- package/dist/{chunk-LSFXZLPW.js → chunk-ZDMFGACN.js} +184 -235
- package/dist/{chunk-4BKU7PV3.js → chunk-ZMMHHXSW.js} +1 -1
- package/dist/{chunk-OY7WZI7Q.js → chunk-ZPM7ZIFL.js} +6 -6
- package/dist/{chunk-R4QWJQ2H.js → chunk-ZVCDHYWZ.js} +9 -11
- package/dist/{chunk-RZG472YW.js → chunk-ZZN74OGD.js} +83 -46
- package/dist/{chunk-BHWW6FAX.js → chunk-ZZSJAR76.js} +37 -19
- package/dist/index.js +4910 -4218
- package/dist/mcp/analyze-cli.js +12 -17
- package/dist/mcp/cli.js +41 -42
- package/dist/mcp/server.js +1451 -648
- package/dist/mcp/worker.js +59 -60
- package/dist/probes/installer.js +17 -19
- package/docs/agent-tools.md +40 -8
- package/docs/analysisall.md +1 -1
- package/docs/ci-bot-pr-checks.md +7 -5
- package/docs/configuration.md +51 -9
- package/docs/defect-shapes.md +52 -3
- package/docs/environment-variables.md +18 -1
- package/docs/features.md +12 -5
- package/docs/globalconfig.md +11 -3
- package/docs/invariants/lsp-trust-exec.md +9 -2
- package/docs/invariants/session-telemetry.md +2 -2
- package/docs/language-coverage.md +1 -0
- package/docs/lsp-capability-matrix.md +57 -35
- 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 +11 -1
- package/docs/pi-lens-investigator.md +3 -0
- package/docs/pi-lens-merge-policy.md +15 -7
- package/docs/pi-lens-reviewer.md +1 -1
- package/docs/pi-lens-subagent.md +13 -0
- package/docs/public-api-stability.md +39 -5
- package/docs/release-qa-baseline.md +7 -4
- package/docs/schema/pi-lens-config-v1.json +11 -2
- package/docs/servercapabilities.md +3 -1
- package/docs/settings.md +2 -2
- package/docs/word-index.md +3 -2
- package/package.json +8 -3
- 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/scripts/download-grammars.js +3 -2
- package/skills/pi-lens-lsp-navigation/SKILL.md +5 -1
- package/dist/chunk-2TS4GLOJ.js +0 -31
- package/dist/chunk-3JAHQBSY.js +0 -27
- package/dist/chunk-447YZL4S.js +0 -25
- package/dist/chunk-565VRUP4.js +0 -136
- package/dist/chunk-57X2CDRX.js +0 -49
- package/dist/chunk-GGYOZWHW.js +0 -27
- package/dist/chunk-IE5D3RA5.js +0 -58
- package/dist/chunk-LPYTPNOJ.js +0 -22
- package/dist/chunk-OFNMHPBT.js +0 -89
- package/dist/chunk-U3AS2FR6.js +0 -106
- package/dist/chunk-W3BGKBBK.js +0 -27
- package/dist/chunk-WQV6BI4Q.js +0 -48
- package/dist/chunk-YHGYAEFH.js +0 -443
- package/dist/chunk-ZONZ6YY3.js +0 -74
- package/dist/chunk-ZSM35JF4.js +0 -30
package/docs/globalconfig.md
CHANGED
|
@@ -144,7 +144,9 @@ Hide the diagnostics widget by default, run formatting immediately after write/e
|
|
|
144
144
|
|
|
145
145
|
`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.
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
While a 🔴 blocker the model was told about stays unresolved, the first request of each later prompt repeats it once, headed "Still unresolved (already reported on an earlier turn, not new)" and ending with a `lens_diagnostics` call that lists every blocker, because pi rebuilds that request from its transcript and a blocker from a nested write (a codemode script that drops the STOP note) is not in it. Requests inside one prompt, blockers the session has fixed or marked (whatever another session still holds), and the MCP host repeat nothing; `contextInjection.enabled: false` repeats nothing either.
|
|
148
|
+
|
|
149
|
+
`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, and a repeat of a blocker a retained block already carries is skipped, so it spends none of the cap; 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.
|
|
148
150
|
|
|
149
151
|
`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.
|
|
150
152
|
|
|
@@ -265,10 +267,16 @@ Per-rule threshold overrides and policy filters. Currently honored:
|
|
|
265
267
|
`no-eval` once and the filter covers `no-eval`, `ast-grep:no-eval`, and
|
|
266
268
|
`no-eval-js`. Side effect: a rule whose real name genuinely ends in `-js`
|
|
267
269
|
(e.g. `prefer-js`) is conflated with its stem (`prefer`) — disabling or
|
|
268
|
-
selecting one also disables or selects the other.
|
|
270
|
+
selecting one also disables or selects the other. The list is a denial: the
|
|
271
|
+
union of the global, project and nested files' lists, so a nearer file adds
|
|
272
|
+
rules and never re-enables one.
|
|
269
273
|
- `<id>.select` — allowlist of rule ids; only the listed rule ids survive
|
|
270
274
|
filtering. Disable wins over select project-wide, even when the two lists
|
|
271
|
-
are configured under different keys.
|
|
275
|
+
are configured under different keys. Unlike `disable`, the nearest file that
|
|
276
|
+
sets `select` supplies the whole list per grouping key; a global `select`
|
|
277
|
+
applies to a key no nearer file sets. Lists under different keys are unioned,
|
|
278
|
+
so a global `k.select: [x]` and a nearer `k2.select: [y]` keep both `x` and
|
|
279
|
+
`y`.
|
|
272
280
|
|
|
273
281
|
The `<id>` key is a grouping label only — it does not scope which rules the
|
|
274
282
|
`disable`/`select` list underneath it can match. Matching is **project-wide**:
|
|
@@ -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.
|
|
@@ -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 |
|
|
@@ -130,6 +130,7 @@ belonged to another live client of the same server id became `typescript`'s
|
|
|
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`),
|
|
@@ -149,6 +150,25 @@ compiles) therefore reads unconfirmed on clean files, and its findings arrive as
|
|
|
149
150
|
soon as it publishes them. A publish that lands while the first-contact wait is
|
|
150
151
|
still in flight prevents the latch.
|
|
151
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
|
+
|
|
152
172
|
The first-contact budget on the per-edit path is the strategy's
|
|
153
173
|
`aggregateWaitMs` (1500 ms). It is a cost, not a verdict: the latch is
|
|
154
174
|
recoverable, so a server slower than the budget pays 1.5 s once and reads
|
|
@@ -228,35 +248,36 @@ carries the named admission until then.
|
|
|
228
248
|
|
|
229
249
|
| lang | server | mode | clean-behavior | first-publish | tier | src | version | install | stale |
|
|
230
250
|
|---|---|---|---|---|---|---|---|---|---|
|
|
231
|
-
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
232
|
-
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
233
|
-
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
234
|
-
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci |
|
|
235
|
-
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci | — |
|
|
236
|
-
| 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 | — |
|
|
237
257
|
| ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
238
258
|
| csharp | csharp-ls | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
239
|
-
| typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci |
|
|
240
|
-
| markdown | marksman | push-only | silent | direct | 3 | ci | — |
|
|
241
|
-
| lua | lua-language-server | push-only | silent | direct | 3 | dev+ci | — |
|
|
242
|
-
| python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
243
|
-
| jedi | jedi-language-server (alt of python) | push-only | publishes-versioned | direct | 2 | ci |
|
|
244
|
-
| yaml | yaml-language-server | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
245
|
-
| shell | bash-language-server | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
246
|
-
| 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 | — |
|
|
247
267
|
| dockerfile-official | docker-language-server (official) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
|
|
248
|
-
| toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
249
|
-
| terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
250
|
-
| prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci | — |
|
|
251
|
-
| php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci | — |
|
|
252
|
-
| zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
253
|
-
| 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? | — | — | — | — |
|
|
254
275
|
| dart | dart language-server | push-only | publishes-unversioned | direct | 2* | ci | — | — | — |
|
|
255
|
-
| gleam | gleam lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
256
|
-
| clojure | clojure-lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
257
|
-
| 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 | — |
|
|
258
279
|
| ast-grep | ast-grep (aux) | push-only | publishes-versioned | direct | 2 | dev+ci | — | — | — |
|
|
259
|
-
| 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 | — |
|
|
260
281
|
|
|
261
282
|
**Unknown — fixture exists, mode not yet captured.** The toolchain-gated family
|
|
262
283
|
(no auto-install today; tracked in #241) — `go` (gopls), `java` (jdtls),
|
|
@@ -409,22 +430,22 @@ dispatched nightly replaces it on the first night that reaches the server.
|
|
|
409
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) |
|
|
410
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) |
|
|
411
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) |
|
|
412
|
-
| opengrep | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
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) |
|
|
413
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) |
|
|
414
|
-
| go | `save` | no |
|
|
415
|
-
| zig | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
416
|
-
| 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
|
|
417
|
-
| terraform | `save` | no | Measured: answers without a save (
|
|
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) |
|
|
418
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 |
|
|
419
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) |
|
|
420
|
-
| clojure | `save+text` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
421
|
-
| fish | `save+text` |
|
|
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) |
|
|
422
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) |
|
|
423
|
-
| cue | `save` | no | Measured: answers without a save (1 publish event on didOpen); a later save alone:
|
|
424
|
-
| csharp | `save+text` |
|
|
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) |
|
|
425
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) |
|
|
426
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) |
|
|
427
|
-
| powershell | `save+text` |
|
|
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) |
|
|
428
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) |
|
|
429
450
|
|
|
430
451
|
Notes.
|
|
@@ -491,6 +512,7 @@ marker; a mismatch means the marker may need a human update (#529). `unknown`
|
|
|
491
512
|
observations are never compared (a slow/absent server is not evidence either way).
|
|
492
513
|
|
|
493
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)
|
|
494
516
|
|
|
495
517
|
## Capability matrix refresh state (nightly-generated)
|
|
496
518
|
|
|
@@ -500,5 +522,5 @@ streaks behind the `stale` column (#4512) and consecutive-night
|
|
|
500
522
|
`idle-eviction` counts (#3989). Regenerated every run; never a measurement.
|
|
501
523
|
|
|
502
524
|
```json
|
|
503
|
-
{"idle-eviction":{"
|
|
525
|
+
{"idle-eviction":{"svelte":{"nights":[{"day":"2026-11-03","rssMb":233,"coldMs":2987},{"day":"2026-11-04","rssMb":233,"coldMs":2944}]}}}
|
|
504
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
|
package/docs/pi-lens-fixer.md
CHANGED
|
@@ -247,11 +247,21 @@ remains: prefer deleting over simplifying, simplifying over optimizing, and
|
|
|
247
247
|
optimizing over automating. If the diff survives, leave it alone; churn is not
|
|
248
248
|
rigor (#2599).
|
|
249
249
|
|
|
250
|
+
The hand-back summary lists scope growth first, then a `Decisions:` line: each
|
|
251
|
+
default you chose and each brief line you read a particular way, with its
|
|
252
|
+
reason. Each check the body or the hand-back cites as proof names what it does
|
|
253
|
+
not prove in one clause (`does not prove: Windows`, `does not prove: a real
|
|
254
|
+
server`), so routing reads the gap, not only the green. A reinterpretation the
|
|
255
|
+
orchestrator has to discover in the diff is a finding (#5242 kept a version the
|
|
256
|
+
brief misnamed; #5254 read "turn" as a prompt).
|
|
257
|
+
|
|
250
258
|
## Handoff
|
|
251
259
|
|
|
252
260
|
- The PR body follows `.github/PULL_REQUEST_TEMPLATE.md`, which a reader must
|
|
253
261
|
be able to scan (#5003): `## Summary` (at most three sentences, with the
|
|
254
|
-
closing keyword, which GitHub ignores in a title
|
|
262
|
+
closing keyword, which GitHub ignores in a title, and with counted sentences
|
|
263
|
+
in its `Refs #NNN`, `Remaining #NNN:` and `Closes #NNN` lines counted too),
|
|
264
|
+
`## Notes for the reviewer`
|
|
255
265
|
(at most five bullets, no tables or fences), `## Change outline`, and
|
|
256
266
|
`## Proof and checks` with `### Tests`, `### Class sweep` (ending in one
|
|
257
267
|
`Alignment:` line that names the families of `docs/alignment-families.md` the
|
|
@@ -9,6 +9,9 @@ issue and the requested evidence surface.
|
|
|
9
9
|
- Keep the worktree and Git state read-only.
|
|
10
10
|
- Define the symptom as an answerable question with time window, sessions, and
|
|
11
11
|
build in scope.
|
|
12
|
+
- Search closed issues and merged PRs for the target before the first probe;
|
|
13
|
+
a closed duplicate is the answer (a second #5123 investigation ran on
|
|
14
|
+
2026-11-02).
|
|
12
15
|
- Reproduce through the reporter's production entry point before naming a seam.
|
|
13
16
|
- Deliver a proven diagnosis and one concrete next step; a plausible story is
|
|
14
17
|
not a diagnosis. Implement only a contained fix the brief asks for, under
|
|
@@ -19,7 +19,8 @@ acceptance surface quoted from that run's log. Any self-bound inside the lane
|
|
|
19
19
|
must sit below the job cap by a stated margin so the loud-failure path is
|
|
20
20
|
reachable.
|
|
21
21
|
|
|
22
|
-
Every PR body has `## Summary` (at most three sentences
|
|
22
|
+
Every PR body has `## Summary` (at most three sentences, counted sentences in
|
|
23
|
+
its `Refs #NNN`, `Remaining #NNN:` and `Closes #NNN` lines included),
|
|
23
24
|
`## Notes for the reviewer` (at most five bullets), `## Change outline`, and
|
|
24
25
|
`## Proof and checks`, which holds `### Tests`, `### Class sweep`,
|
|
25
26
|
`### Observability`, and `### Fold check`, plus the conditional sections the
|
|
@@ -33,8 +34,9 @@ fence at 20 lines (#5003).
|
|
|
33
34
|
1. **Review.** Spawn `pi-lens-reviewer` (worktree isolation) with the PR
|
|
34
35
|
number, a one-paragraph summary of the claim, and any PR-specific attack
|
|
35
36
|
angles. Self-authored and small PRs get reviewed too — the depth follows
|
|
36
|
-
the review tier below, never the priority label. Bots review
|
|
37
|
-
|
|
37
|
+
the review tier below, never the priority label. Bots review a PR when the
|
|
38
|
+
orchestrator requests it (`@coderabbitai review`, `@greptileai`,
|
|
39
|
+
`/agentic_review`), never on their own: every bot thread (Greptile and others) gets a disposition reply, `fixed in
|
|
38
40
|
<sha>`, `accepted and disclosed`, or `rejected because <reason>`.
|
|
39
41
|
2. **Fix rounds.** Send findings back to the PR's original author agent when
|
|
40
42
|
its worktree survives (SendMessage — cheapest context); otherwise spawn
|
|
@@ -375,8 +377,9 @@ operator's private notes, so a different orchestrator can run the same train.
|
|
|
375
377
|
applies to human PRs; a bump title can never carry a ref. Merge order: one
|
|
376
378
|
at a time (each merge dirties the rest; dependabot rebases them itself);
|
|
377
379
|
gate on Lint, Unit tests and every non-advisory check on the exact head;
|
|
378
|
-
pr-metadata.yml itself skips "PR
|
|
379
|
-
|
|
380
|
+
pr-metadata.yml itself skips "PR metadata" (the title and close-keyword
|
|
381
|
+
checks, one job since #5002) and "PR body (advisory)" for dependabot
|
|
382
|
+
(2026-09-09, refs #2714), so nothing
|
|
380
383
|
needs hand-ignoring; hold anything red on a real check
|
|
381
384
|
with a comment naming the check (2026-09-07: tsls 6 needs a Node-floor bump, biome
|
|
382
385
|
fails the install test, vitest 5 fails four gates; a bump whose install
|
|
@@ -427,7 +430,7 @@ operator's private notes, so a different orchestrator can run the same train.
|
|
|
427
430
|
also fine). The merge loop is
|
|
428
431
|
`node scripts/ci-verdict.mjs <pr> --wait <seconds>` — read its final line:
|
|
429
432
|
0 merge, 3 still pending (re-arm the wait), anything else read the table. Never
|
|
430
|
-
text-match the table for `failure`: advisory rows (PR body,
|
|
433
|
+
text-match the table for `failure`: advisory rows (PR body, Lint (advisory))
|
|
431
434
|
print `failure` while the verdict is green, and on 2026-09-07 that stopped
|
|
432
435
|
the #2692 loop on a green PR.
|
|
433
436
|
- **Maintainer trailing commits** are for intent-free deltas only (a literal
|
|
@@ -526,7 +529,7 @@ operator's private notes, so a different orchestrator can run the same train.
|
|
|
526
529
|
the verdict table for `failure`, because advisory rows print `failure` on a
|
|
527
530
|
green PR. But "does not gate" is not "carries no information", and filtering
|
|
528
531
|
advisory rows out of your attention is a different mistake from filtering
|
|
529
|
-
them out of the gate.
|
|
532
|
+
them out of the gate. The typos step of `Lint (advisory)` found a real defect in #2955's
|
|
530
533
|
round-12 diff — a comment in which "reading" was misspelt — which the
|
|
531
534
|
gating checks had no opinion about and which would otherwise have reached
|
|
532
535
|
master. (The misspelling is described rather than reproduced here: quoting
|
|
@@ -864,3 +867,8 @@ Each row cost a lane at least once; the prose above carries the record.
|
|
|
864
867
|
| Linting a PR body in the main checkout | The main checkout sits on another branch, so citations resolved against the wrong tree; three edits needed a hand-built head tree (2026-10-25). `pr-body.sh edit` without `--tree` now builds a temp tree at the PR head |
|
|
865
868
|
| Guessing issue labels (`area:ci`, `area:formal`, `chore`) | Three filings were refused, and the refusal listed only priority labels (2026-10-25). `file-issue.sh` now lists the known type, area and priority labels |
|
|
866
869
|
| Reaping a lane whose issue is closed while its ledger row is live | Two maintainer-ordered lanes on closed issues (#4714, #4691) were flagged for TaskStop (2026-10-25). `agent-reap.sh` now skips a closed issue with a live ledger row |
|
|
870
|
+
| Dispatching four heavy plegma workers while a local model server runs | The host ran out of memory, hung, and took the daemon and two reviews with it (2026-11-02). The cap is two heavy workers while `ds4-server` or `llama-server` runs, and the orchestrator dispatch guard now lowers the daemon's live heavy cap to two while either process runs |
|
|
871
|
+
| Regenerating `package-lock.json` with the npm on PATH | npm 9.2 dropped every `libc` field twice in one day (#5200, the #5201 bump), and npm 11.18.0 had to redo it. Regenerate only with `npx npm@11.18.0 install --package-lock-only --ignore-scripts`. The default `check:lockfile` reads `libc` only on the root entry, so it does not refuse the drop yet; #5207 (open) adds that refusal |
|
|
872
|
+
| Applying a reviewer's reuse prescription without its ratchets | Verify r3 on #5202 asked to import `REAL_NODE_MODULES` from lane-check-kit; that module imports `child_process`, and the flake-shape real-process-spawn ratchet then flagged the test (2026-11-02). Run the governance suite on a prescription before pushing it; the round reverted to the local path |
|
|
873
|
+
| Bisecting a worktree-only red by hand | Three unrelated files red in one plegma tree and green on master; an hour of bisecting ended at a stale shared `node_modules/.vitest-cache` (2026-11-02). Rerun once with `--fsModuleCache=false` before bisecting; #5212 moved Vitest's module cache (`fsModuleCachePath`) into each worktree's `.vitest-cache`, so new runs stop writing the shared copy. The old copy in the main install stays until someone deletes it, and the runtime `vitest.config.mjs` from `tests/support/lane-check-kit.ts` still writes there (accepted residual) |
|
|
874
|
+
| Dispatching a user-facing design before the maintainer has seen the output | #5202 round 4 was interrupted twice as the maintainer moved from full prose to headlines to a straight copy of the release bodies (2026-11-02). Show the rendered sample and agree the design before the round |
|
package/docs/pi-lens-reviewer.md
CHANGED
|
@@ -82,7 +82,7 @@ does not ship.
|
|
|
82
82
|
| A relaxed or rewritten existing assertion | Mutate the behaviour the test is named for; a rewrite that stays green is a deleted test (AGENTS "Issue and PR design contract"; principles §2) | The red on the new assertion, with that behaviour broken | #4390 (the eviction smoke's rewrite passed with root re-registration broken) |
|
|
83
83
|
| A new decision branch on a session, lifecycle or delivery seam | Name its record, sink plus kind, and read it back through the real seam (`docs/invariants/session-telemetry.md` "Session, telemetry, and delivery"; shape 31) | The record literal, and the test that reads it back | #3873 (a fix that could not be shown to fire live), #3875 |
|
|
84
84
|
| A new failure path, catch or silent return | One bounded record per distinct event, in a stream a monitor reads without asking (principles §1 "Every new failure path gets bounded observability"; shape 31) | The record literal and its sink, or `none:` with its reason | #4562 (a failed log write stayed silent), #4575 (a failed save left no trace) |
|
|
85
|
-
| Every diff, every changed file, tests included | Read the whole diff file by file. Check each PR-body claim
|
|
85
|
+
| Every diff, every changed file, tests included | Read the whole diff file by file. Check each claim against the diff: PR-body lines, changelog fragments and user-doc sentences alike, with a probe when the claim is about behaviour. For each check the body cites as proof, name what it does not prove; a check cited for more than it covers is a finding. Look in the body for proof before calling it missing (principles §3 "Reviewing and delegating") | The body line or transcript quoted beside a claim the diff cannot show, or the finding names the body line that lacks it | #4574 F2, #4582 F1; 3 of Greptile's 4 false positives were a transcript already in the body (#4572, #4573, #4577); bots, not reviewers, caught a changelog overclaim (#5237) and a doc sentence the loader contradicts (#5252) |
|
|
86
86
|
|
|
87
87
|
Rows 1, 2 and 4 are mechanical from #4585: `scripts/check-pr-body.mjs`
|
|
88
88
|
(`lintDiffCompliance`, wired into both entry points) reds a body that omits
|
package/docs/pi-lens-subagent.md
CHANGED
|
@@ -236,6 +236,19 @@ before moving on; the plegma daemon's cgroup holds every worker's children
|
|
|
236
236
|
long-lived worktree (#3180); reproduce with `--dryRunOnly`, never under a kill
|
|
237
237
|
timeout.
|
|
238
238
|
|
|
239
|
+
Stop only the processes you started, by the PIDs you recorded: never `pkill`,
|
|
240
|
+
or a `pgrep -f` match, on a name another lane also runs. One worker killed
|
|
241
|
+
another lane's `lane:check` and one reviewer killed another lane's ast-grep
|
|
242
|
+
that way (2026-11-02). Never unlink, replace or re-point the linked
|
|
243
|
+
`node_modules` to get past a guard; report the refusal in the hand-back. The
|
|
244
|
+
orchestrator owns private installs (2026-11-02, #5199).
|
|
245
|
+
|
|
246
|
+
A test that copies scripts into a temp root resolves their imports from that
|
|
247
|
+
root upward. Under a `TMPDIR` inside the worktree it finds the worktree's
|
|
248
|
+
`node_modules` and passes, then fails on CI and on any outside `TMPDIR`. Run
|
|
249
|
+
such a test once with `TMPDIR` outside the worktree before the hand-back
|
|
250
|
+
(#5202 r2: `Cannot find module 'marked'`).
|
|
251
|
+
|
|
239
252
|
A sandboxed worker may find the shared `.git` and the linked `node_modules`
|
|
240
253
|
read-only and the network absent (a write-confined sandbox does this; the
|
|
241
254
|
runner's own notes say which mode lifts it). Run Vitest as
|