pi-lens 4.4.5 → 4.4.7
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.md +120 -0
- package/README.md +37 -1
- package/config/biome/core.jsonc +3 -3
- package/dist/{chunk-6XSESGWD.js → chunk-24BILSZW.js} +2 -2
- package/dist/{chunk-YXDCRUKQ.js → chunk-2PHMIAKO.js} +4 -4
- package/dist/{chunk-EN5AM7PX.js → chunk-2TF6RXWB.js} +10 -10
- package/dist/{chunk-XI34NWDI.js → chunk-3F6BMY53.js} +1 -1
- package/dist/{chunk-VUAVE3QC.js → chunk-3FRLWYBG.js} +36 -36
- package/dist/{chunk-THEXI2QO.js → chunk-3K2F6UDZ.js} +42 -42
- package/dist/{chunk-ZPJM7DID.js → chunk-3YY7IXIL.js} +3 -3
- package/dist/chunk-46TNM7XZ.js +88 -0
- package/dist/{chunk-TL2TCJYL.js → chunk-4L36HG27.js} +14 -14
- package/dist/{chunk-UCVMSOXF.js → chunk-4LM3VAZH.js} +2 -2
- package/dist/{chunk-AI3GP74G.js → chunk-4LOE5R5P.js} +15 -15
- package/dist/{chunk-AHWA4AKM.js → chunk-4YHYPW2G.js} +32 -9
- package/dist/{chunk-VITFDI3O.js → chunk-4ZYJHQMB.js} +12 -12
- package/dist/{chunk-KCBRHV5E.js → chunk-6IR3ZYIB.js} +3 -3
- package/dist/chunk-72OKUXSD.js +31 -0
- package/dist/{chunk-RCHO5W7M.js → chunk-75GAYVNO.js} +13 -12
- package/dist/{chunk-2SDHYHHO.js → chunk-7E2563GA.js} +13 -13
- package/dist/chunk-7GLOLOSH.js +57 -0
- package/dist/{chunk-CG5V25HX.js → chunk-ABPKUVA4.js} +1 -1
- package/dist/chunk-AKUUMGD5.js +26 -0
- package/dist/chunk-ASUXV767.js +22 -0
- package/dist/{chunk-Q42LJANT.js → chunk-AWDSEDER.js} +2 -2
- package/dist/{chunk-Y2TPADJR.js → chunk-BZARLRJW.js} +9 -9
- package/dist/{chunk-YKVDBNPO.js → chunk-CB4WHS4H.js} +3 -3
- package/dist/{chunk-YXGRRORB.js → chunk-CCV2EU7T.js} +13 -13
- package/dist/{chunk-PJXNTPB2.js → chunk-CE6VMBCB.js} +21 -21
- package/dist/{chunk-KPVLQHCZ.js → chunk-CPSR3AVL.js} +2 -2
- package/dist/chunk-CTADOKYM.js +25 -0
- package/dist/{chunk-CPZ5JJW6.js → chunk-DH5JPM3K.js} +4 -4
- package/dist/{chunk-4FHUGDKU.js → chunk-DPGEAHZT.js} +5 -5
- package/dist/{chunk-SNEUMLM7.js → chunk-DQZFQSR5.js} +4 -4
- package/dist/{chunk-RG3MXTRI.js → chunk-E7HJ56Y7.js} +7 -7
- package/dist/{chunk-YSDPVDFC.js → chunk-EAOK7MIZ.js} +3 -3
- package/dist/{chunk-PP2A5V2T.js → chunk-EKWX4WD3.js} +7 -7
- package/dist/{chunk-2LDMXL2M.js → chunk-F5Z6URKM.js} +2 -2
- package/dist/{chunk-72J27ICO.js → chunk-F6X3YJWD.js} +2 -2
- package/dist/{chunk-ELZRSR5N.js → chunk-F7K5IBZG.js} +41 -39
- package/dist/{chunk-EX4EXBW7.js → chunk-FB5SCCPT.js} +15 -15
- package/dist/{chunk-SJHC3BCZ.js → chunk-FZKFVUEC.js} +518 -233
- package/dist/{chunk-UVY4TOJH.js → chunk-GNSIWBAT.js} +3 -3
- package/dist/{chunk-EXVXBSGN.js → chunk-H7OR7DFZ.js} +20 -18
- package/dist/{chunk-NLIVE7L6.js → chunk-HO6LWE2E.js} +1 -1
- package/dist/{chunk-X3UTCXAA.js → chunk-HR3OJ3TH.js} +12 -12
- package/dist/{chunk-HYVXA3BB.js → chunk-HWDAVBFU.js} +23 -23
- package/dist/{chunk-ZSUX7KEM.js → chunk-J6JP25XU.js} +2 -2
- package/dist/{chunk-T4NGVFYI.js → chunk-JJ2RRESP.js} +8 -5
- package/dist/{chunk-RU34BA4D.js → chunk-JMEKXFOL.js} +34 -34
- package/dist/{chunk-IL7K66ZQ.js → chunk-KDX35VXP.js} +74 -18
- package/dist/{chunk-EDMLIW6W.js → chunk-KKCK636N.js} +12 -12
- package/dist/{chunk-KJJAVH3X.js → chunk-KPPJTH44.js} +6 -5
- package/dist/{chunk-5LRUKYFA.js → chunk-KW5JQPO5.js} +2 -2
- package/dist/{chunk-N3PLNNCW.js → chunk-KXF5R4UN.js} +1 -1
- package/dist/{chunk-YWNO5Q4R.js → chunk-L3CMBQMH.js} +17 -17
- package/dist/{chunk-YWWG4AQA.js → chunk-L5JYIU47.js} +24 -25
- package/dist/{chunk-K2GUZ4DN.js → chunk-LBLBAFG3.js} +4 -4
- package/dist/{chunk-APFJKOP6.js → chunk-LLS45EWB.js} +10 -2
- package/dist/{chunk-MKPCELNI.js → chunk-LS3QJRUB.js} +13 -13
- package/dist/chunk-LSC3VADM.js +23 -0
- package/dist/{chunk-F7BO6FWH.js → chunk-LUBPZN36.js} +11 -11
- package/dist/{chunk-ASRAO7KG.js → chunk-LV4UMYVH.js} +27 -27
- package/dist/{chunk-COOUUC5W.js → chunk-MB6PXBUA.js} +6 -6
- package/dist/{chunk-3WCEHYOI.js → chunk-MNJIXFX4.js} +1 -1
- package/dist/{chunk-FEDWAYDS.js → chunk-MPKRJBPK.js} +35 -15
- package/dist/{chunk-Q4BKKOVC.js → chunk-N5WSK2K7.js} +8 -8
- package/dist/{chunk-K4SZB56V.js → chunk-NA7SEXHE.js} +12 -8
- package/dist/{chunk-UL5SXQVX.js → chunk-O4BJFESU.js} +1 -1
- package/dist/{chunk-LMCTHJ2H.js → chunk-OE5ZBP7F.js} +18 -18
- package/dist/{chunk-NFNVDDGB.js → chunk-OSTKYB55.js} +1 -1
- package/dist/{chunk-27VWVB23.js → chunk-OXOI55RU.js} +10 -10
- package/dist/{chunk-7IYC4ENJ.js → chunk-PKES3ISE.js} +2 -2
- package/dist/{chunk-EWXXLS26.js → chunk-PQJFG24Z.js} +82 -12
- package/dist/{chunk-3SNDVPOR.js → chunk-PR6PO3ES.js} +8 -8
- package/dist/{chunk-63NMUNYP.js → chunk-PUZ3E2J4.js} +6 -6
- package/dist/{chunk-DS2USX5G.js → chunk-QHSNL7B2.js} +11 -11
- package/dist/{chunk-UO66IMVP.js → chunk-QOE342SU.js} +2 -2
- package/dist/{chunk-7ZS7MC24.js → chunk-R5MOQM2H.js} +107 -40
- package/dist/{chunk-JWOVP5BL.js → chunk-RC2Z6K47.js} +6 -6
- package/dist/{chunk-GLW3YDZZ.js → chunk-RORGS5II.js} +9 -9
- package/dist/{chunk-Y5KTA2OB.js → chunk-RQS4QQSD.js} +2 -2
- package/dist/{chunk-KFXCL4OV.js → chunk-RRV3FNNM.js} +22 -23
- package/dist/{chunk-GYRZ72R4.js → chunk-RZOXUSPC.js} +2 -2
- package/dist/chunk-SHLDT3OI.js +27 -0
- package/dist/{chunk-IEBJF3PN.js → chunk-SNDXCFRS.js} +15 -13
- package/dist/{chunk-XHLK33VM.js → chunk-T7A2HK2B.js} +16 -16
- package/dist/{chunk-WUY4BZEP.js → chunk-TIQJPRDD.js} +106 -50
- package/dist/{chunk-2FYKETQJ.js → chunk-U2SDMG7C.js} +5 -5
- package/dist/{chunk-EIKRZ32J.js → chunk-U5HPROLA.js} +2 -2
- package/dist/{chunk-2Y6OJRSI.js → chunk-U6VN4NVL.js} +3 -3
- package/dist/{chunk-OZNCKLOX.js → chunk-U7BD2QL7.js} +12 -12
- package/dist/chunk-UF7RTZSO.js +27 -0
- package/dist/{chunk-XHDBJODR.js → chunk-URCQWAQ4.js} +21 -21
- package/dist/{chunk-7FLRUH6B.js → chunk-V63BC55Q.js} +1 -1
- package/dist/{chunk-TVZRLTG6.js → chunk-VSFLRN5Y.js} +1 -1
- package/dist/{chunk-OMJ3OFBJ.js → chunk-VUZWQ7UG.js} +6 -6
- package/dist/chunk-W4WP2ERB.js +30 -0
- package/dist/{chunk-G224FADB.js → chunk-WDBICWH3.js} +1 -1
- package/dist/{chunk-4ODSZ35Z.js → chunk-WGRJOXED.js} +121 -155
- package/dist/{chunk-FWZRGGGY.js → chunk-WME2OQST.js} +39 -4
- package/dist/{chunk-MEFLGBCS.js → chunk-XT2HTCJ5.js} +3 -3
- package/dist/{chunk-VIDEKABZ.js → chunk-Y7F7IEE3.js} +55 -23
- package/dist/chunk-YES5CACN.js +73 -0
- package/dist/{chunk-ZAPSUBLU.js → chunk-YHC2O2WO.js} +7 -7
- package/dist/{chunk-GTDSYEA2.js → chunk-YISME6ON.js} +1 -1
- package/dist/{chunk-TPYYEDP5.js → chunk-YVHBNSME.js} +48 -29
- package/dist/{chunk-XWFIHYCH.js → chunk-Z2XAOKHK.js} +2 -2
- package/dist/{chunk-QT66NEYN.js → chunk-ZE3KXHS7.js} +3 -3
- package/dist/{chunk-S55TEC7I.js → chunk-ZGSJDWQU.js} +2 -2
- package/dist/{chunk-4U7GDSZQ.js → chunk-ZJTT47IG.js} +2 -2
- package/dist/{chunk-KX56K73G.js → chunk-ZKXQKGWZ.js} +2 -2
- package/dist/{chunk-5DKE4HGX.js → chunk-ZMAUPOMG.js} +34 -34
- package/dist/index.js +2446 -1303
- package/dist/mcp/analyze-cli.js +10 -10
- package/dist/mcp/cli.js +42 -42
- package/dist/mcp/server.js +724 -472
- package/dist/mcp/worker.js +61 -61
- package/dist/probes/installer.js +19 -19
- package/docs/agent-tools.md +39 -10
- package/docs/configuration.md +3 -1
- package/docs/defect-shapes.md +752 -0
- package/docs/dependencies.md +1 -0
- package/docs/environment-variables.md +14 -0
- package/docs/features.md +11 -1
- package/docs/globalconfig.md +12 -1
- package/docs/invariants/caches-stores.md +30 -0
- package/docs/invariants/dispatch-runners.md +164 -0
- package/docs/invariants/git-guard-host.md +87 -0
- package/docs/invariants/language-config.md +31 -0
- package/docs/invariants/lsp-trust-exec.md +292 -0
- package/docs/invariants/paths-os.md +59 -0
- package/docs/invariants/session-telemetry.md +114 -0
- package/docs/lsp-capability-matrix.md +89 -45
- package/docs/lsp-idle-eviction.md +3 -5
- package/docs/pi-lens-fixer.md +10 -2
- package/docs/pi-lens-merge-policy.md +17 -12
- package/docs/pi-lens-monitor.md +2 -2
- package/docs/pi-lens-orchestration.md +41 -0
- package/docs/pi-lens-release.md +20 -0
- package/docs/pi-lens-retro.md +3 -2
- package/docs/pi-lens-reviewer.md +6 -6
- package/docs/pi-lens-subagent.md +9 -6
- package/docs/schema/pi-lens-config-v1.json +23 -0
- package/docs/servercapabilities.md +1 -1
- package/docs/settings.md +5 -0
- package/docs/usage.md +5 -0
- package/package.json +3 -2
- package/dist/chunk-22Y2BM7H.js +0 -23
- package/dist/chunk-44X7VIKR.js +0 -73
- package/dist/chunk-54NIOJJZ.js +0 -25
- package/dist/chunk-7WWQAW5P.js +0 -30
- package/dist/chunk-EA2ZRG44.js +0 -27
- package/dist/chunk-EKNWOL2I.js +0 -27
- package/dist/chunk-G5UCJFT7.js +0 -26
- package/dist/chunk-N5FBM25N.js +0 -22
- package/dist/chunk-P5XUGPIX.js +0 -31
- package/dist/chunk-PKOXJIVT.js +0 -88
- package/dist/chunk-RG7OODGM.js +0 -57
|
@@ -45,6 +45,29 @@ anything). The native TS7 launch variant (`typescript7`/`typescript7-clean`,
|
|
|
45
45
|
#524/#526) is deliberately excluded from comparison against classic's marker —
|
|
46
46
|
they share a server id but not a verified clean-signal behavior.
|
|
47
47
|
|
|
48
|
+
The `typescript` row has three launch variants, chosen in
|
|
49
|
+
`TypeScriptServer.spawn` (`clients/lsp/server.ts`). The project's own
|
|
50
|
+
TypeScript 7+ decides first: with `@effect/tsgo` installed beside it (the same
|
|
51
|
+
`node_modules` level, with a readable manifest version and an existing
|
|
52
|
+
`.bin/effect-tsgo` path) the launch is `effect-tsgo tsc --lsp --stdio`
|
|
53
|
+
(`launchVariant: "effect-tsgo"`, #4914); otherwise the native `tsc --lsp --stdio`
|
|
54
|
+
(`"native-ts7"`); with TypeScript 6 or older, or none, the classic
|
|
55
|
+
`typescript-language-server` (`"classic"`). Installing `@effect/tsgo` is the
|
|
56
|
+
only opt-in. pi-lens never installs it, adds no setting for it, and runs the
|
|
57
|
+
binary only when pi trusts the project, like the project's compiler. A
|
|
58
|
+
malformed `@effect/tsgo` install keeps the native launch and never takes an
|
|
59
|
+
ancestor's. So does an install the finder admits but the launcher cannot start
|
|
60
|
+
(no exec bit, a directory at the bin path): the failure records one
|
|
61
|
+
`lsp-registry-decision` row per root per generation and the native launch
|
|
62
|
+
follows. A process that starts and then fails `initialize` is not covered.
|
|
63
|
+
`effect-tsgo` wraps the same typescript-go server, so it uses the
|
|
64
|
+
native variant's wait strategy and cascade tier (`isTsgoLaunchVariant`,
|
|
65
|
+
`clients/lsp/server-traits.ts`) and is excluded from classic's marker the same
|
|
66
|
+
way; its own clean-signal behavior is not measured separately. The nightly
|
|
67
|
+
`effect-tsgo` smoke row (`scripts/smoke-tools.mjs`, pinned
|
|
68
|
+
`@effect/tsgo@0.62.0` on `typescript@7.0.2`) requires the `effect-tsgo` variant
|
|
69
|
+
and a published type error.
|
|
70
|
+
|
|
48
71
|
What IS gated is the pair of COMMITTED sources:
|
|
49
72
|
`tests/config/lsp-clean-behavior-census.test.ts` (#3347) compares the
|
|
50
73
|
`clean-behavior` column below against the `silentOnClean` markers in both
|
|
@@ -135,17 +158,23 @@ Merges never blank a prior good value, so a CI non-result leaves the dev
|
|
|
135
158
|
classification standing.
|
|
136
159
|
|
|
137
160
|
Two bounded guards keep that preservation from hiding a dead instrument
|
|
138
|
-
(#3401). A
|
|
139
|
-
re-observe
|
|
140
|
-
`
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
161
|
+
(#3401, #4512). A measured `first-publish` or `clean-behavior` cell the nightly
|
|
162
|
+
probe does not re-observe keeps its last known value and is marked in the
|
|
163
|
+
`stale` column with the date of the first miss (`since YYYY-MM-DD`). The refresh
|
|
164
|
+
never rewrites it to `unknown`: before #4512 a `direct` cell degraded to
|
|
165
|
+
`unknown` after five days, which erased five measured values in the #4338
|
|
166
|
+
refresh with nothing raised. The streak of consecutive nightly misses is kept
|
|
167
|
+
per lang and per axis in the refresh state below, so a `clean-behavior` miss one
|
|
168
|
+
night and a `first-publish` miss the next are two first misses; a cell whose
|
|
169
|
+
axis has missed two consecutive nights is
|
|
170
|
+
raised on one tracking issue (`nightly: LSP capability probe missed (stale
|
|
171
|
+
matrix cells)`), and an observation clears both the mark and the streak.
|
|
172
|
+
`empty-first` cells back the live `emptyFirstPublish` markers and are stamped
|
|
173
|
+
the same way (#4615): the refresh stamps the FIRST night it does not re-observe
|
|
174
|
+
one, and the first-publish census reds once that stamp is five days old, so the
|
|
175
|
+
cell+marker pair cannot outlive the instrument that produced it — a cell with
|
|
176
|
+
no live measurement behind it is no longer indistinguishable from a healthy
|
|
177
|
+
one. A `clean-behavior`/`tier` change is written only after two
|
|
149
178
|
consecutive nightly runs observe the same new value, so one flapping nightly
|
|
150
179
|
(ast-grep went 2 → 2* → 3 → 2* across four runs) cannot rewrite a cell; a night
|
|
151
180
|
that measured nothing for the lang resets the hold. A subset probe (`probe-clean-signal.mjs <langs>`) leaves the
|
|
@@ -160,6 +189,20 @@ master's doc otherwise (branch absent, squash-merged, or master edited the doc
|
|
|
160
189
|
since). Closing the bot PR unmerged does not reset the bookkeeping: the branch
|
|
161
190
|
is kept and keeps seeding, so only deleting `bot/lsp-docs-refresh` resets it.
|
|
162
191
|
|
|
192
|
+
The `version` and `install` columns (#4512) record what the nightly ran: the
|
|
193
|
+
first version token of the server's own version command (the `checkArgs` its
|
|
194
|
+
installer entry registers, `--version` by default, read within that entry's
|
|
195
|
+
verification timeout) and the installer route that resolved it (`global-path`, `npm-global`, `pip-user`, `pi-lens-auto`,
|
|
196
|
+
`github-release`, `maven-jar`, `archive-dist`). `characterize-lsp.mjs` writes
|
|
197
|
+
them from the installer's resolution for the one tool a fixture names; a fixture
|
|
198
|
+
that names none or several, a server the installer cannot find, or a launcher
|
|
199
|
+
that answers every argument by starting a JVM (`tree-manifest`) records nothing,
|
|
200
|
+
and the cell keeps its last known value or `—`. They record the installer's
|
|
201
|
+
resolution, not the path the LSP launch finally spawned, so a PATH binary that
|
|
202
|
+
shadows a managed one reads as `global-path`. A change in `version` or `install`
|
|
203
|
+
is not a capability flip: the refresh PR's landing check ignores those columns
|
|
204
|
+
and `stale`.
|
|
205
|
+
|
|
163
206
|
`vue`'s `clean-behavior` was hand-reset to `unknown` (#3390): its
|
|
164
207
|
`publishes-unversioned` cell came from 58/45 publishes that the shared
|
|
165
208
|
`extension.log` window had attributed to vue but that belonged to `tinymist`.
|
|
@@ -169,37 +212,37 @@ to be cleared by hand. It stays `unknown` until a run observes
|
|
|
169
212
|
`@vue/language-server` publish; `tests/config/lsp-clean-behavior-census.test.ts`
|
|
170
213
|
carries the named admission until then.
|
|
171
214
|
|
|
172
|
-
| lang | server | mode | clean-behavior | first-publish | tier | src |
|
|
173
|
-
|
|
174
|
-
| json | vscode-json-language-server | pull | — | n/a (pull) | 1 | dev+ci |
|
|
175
|
-
| css | vscode-css-language-server | pull | — | n/a (pull) | 1 | dev+ci |
|
|
176
|
-
| html | vscode-html-language-server | pull | — | n/a (pull) | 1 | dev+ci |
|
|
177
|
-
| rust | rust-analyzer | pull | — | n/a (pull) | 1 | dev+ci |
|
|
178
|
-
| svelte | svelte-language-server | pull | — | n/a (pull) | 1 | dev+ci |
|
|
179
|
-
| deno | deno (alt of typescript) | pull | — | n/a (pull) | 1 | dev+ci |
|
|
180
|
-
| ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci |
|
|
181
|
-
| csharp | csharp-ls | pull | — | n/a (pull) | 1 | ci |
|
|
182
|
-
| typescript | typescript-language-server | push-only | silent | direct | 3 | dev+ci |
|
|
183
|
-
| markdown | marksman | push-only | silent | direct | 3 | ci |
|
|
184
|
-
| lua | lua-language-server | push-only | silent | direct | 3 | dev+ci |
|
|
185
|
-
| python | pyright | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
186
|
-
| jedi | jedi-language-server (alt of python) | push-only | publishes-versioned | direct | 2 | ci |
|
|
187
|
-
| yaml | yaml-language-server | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
188
|
-
| shell | bash-language-server | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
189
|
-
| dockerfile | docker-langserver | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
190
|
-
| dockerfile-official | docker-language-server (official) | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
191
|
-
| toml | taplo | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
192
|
-
| terraform | terraform-ls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
193
|
-
| prisma | @prisma/language-server | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
194
|
-
| php | intelephense | push-only | publishes-unversioned | empty-first | 2* | dev+ci |
|
|
195
|
-
| zig | zls | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
196
|
-
| vue | @vue/language-server | push-only | unknown | unknown | 2/3? | dev+ci |
|
|
197
|
-
| dart | dart language-server | push-only | publishes-unversioned | direct | 2* | ci |
|
|
198
|
-
| gleam | gleam lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
199
|
-
| clojure | clojure-lsp | push-only | publishes-unversioned | direct | 2* | ci |
|
|
200
|
-
| opengrep | opengrep (aux) | push-only | publishes-unversioned | direct | 2* | dev+ci |
|
|
201
|
-
| ast-grep | ast-grep (aux) | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
202
|
-
| cue | CUE Language Server (cue lsp serve) | push-only | publishes-versioned | direct | 2 | dev+ci |
|
|
215
|
+
| lang | server | mode | clean-behavior | first-publish | tier | src | version | install | stale |
|
|
216
|
+
|---|---|---|---|---|---|---|---|---|---|
|
|
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 | — | — | — |
|
|
223
|
+
| ruby | ruby-lsp | pull | — | n/a (pull) | 1 | ci | — | — | — |
|
|
224
|
+
| 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 | — | — | — |
|
|
233
|
+
| 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 | — | — | — |
|
|
240
|
+
| 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 | — | — | — |
|
|
244
|
+
| 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 | — | — | — |
|
|
203
246
|
|
|
204
247
|
**Unknown — fixture exists, mode not yet captured.** The toolchain-gated family
|
|
205
248
|
(no auto-install today; tracked in #241) — `go` (gopls), `java` (jdtls),
|
|
@@ -372,9 +415,10 @@ observations are never compared (a slow/absent server is not evidence either way
|
|
|
372
415
|
## Capability matrix refresh state (nightly-generated)
|
|
373
416
|
|
|
374
417
|
Bookkeeping for the two-run `first-publish`/`clean-behavior` hysteresis, the
|
|
375
|
-
|
|
376
|
-
|
|
418
|
+
first-miss stamps (#3401, #4615), the consecutive-night `missed-probe`
|
|
419
|
+
streaks behind the `stale` column (#4512) and consecutive-night
|
|
420
|
+
`idle-eviction` counts (#3989). Regenerated every run; never a measurement.
|
|
377
421
|
|
|
378
422
|
```json
|
|
379
|
-
{"idle-eviction":{"
|
|
423
|
+
{"idle-eviction":{"powershell":{"nights":[{"day":"2026-10-27","rssMb":155,"coldMs":2553}]}}}
|
|
380
424
|
```
|
|
@@ -15,7 +15,7 @@ respawned server reports every finding it reported before eviction; the
|
|
|
15
15
|
content-bound coverage check the auxiliary freeze depends on. A server that
|
|
16
16
|
cannot demonstrate it is never proposed for eviction on perf grounds alone.
|
|
17
17
|
|
|
18
|
-
_Last generated: 2026-10-
|
|
18
|
+
_Last generated: 2026-10-27 on linux; 49 registry servers: 33 eligible, 0 vetoed, 2 inconclusive, 14 unavailable (0 not reached: budget)._
|
|
19
19
|
|
|
20
20
|
## Per-server rows
|
|
21
21
|
|
|
@@ -46,7 +46,7 @@ step log only, because it flaps.
|
|
|
46
46
|
| dart | primary | unmeasured | unavailable | tool-unavailable | n/a | n/a |
|
|
47
47
|
| deno | primary | transparent | eligible | · | ok | preserved |
|
|
48
48
|
| docker | primary | transparent | eligible | · | ok | preserved |
|
|
49
|
-
| docker-official | primary |
|
|
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
52
|
| fish | primary | transparent | eligible | · | ok | preserved |
|
|
@@ -83,7 +83,7 @@ step log only, because it flaps.
|
|
|
83
83
|
| vue | primary | unmeasured | inconclusive | no-baseline | n/a | unproven |
|
|
84
84
|
| yaml | primary | transparent | eligible | · | ok | preserved |
|
|
85
85
|
| zig | primary | unmeasured | eligible | · | ok | preserved |
|
|
86
|
-
| zizmor | auxiliary |
|
|
86
|
+
| zizmor | auxiliary | transparent | eligible | · | ok | preserved |
|
|
87
87
|
|
|
88
88
|
## Declared versus measured
|
|
89
89
|
|
|
@@ -93,7 +93,6 @@ nothing.
|
|
|
93
93
|
|
|
94
94
|
- **ast-grep** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
95
95
|
- **cue** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
96
|
-
- **docker-official** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
97
96
|
- **expert** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
98
97
|
- **gleam** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
99
98
|
- **kotlin** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
@@ -106,7 +105,6 @@ nothing.
|
|
|
106
105
|
- **toml** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
107
106
|
- **typos** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
108
107
|
- **zig** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
109
|
-
- **zizmor** [proposal] declared unmeasured but eviction and respawn preserved its findings
|
|
110
108
|
|
|
111
109
|
## Reasons
|
|
112
110
|
|
package/docs/pi-lens-fixer.md
CHANGED
|
@@ -265,7 +265,14 @@ rigor (#2599).
|
|
|
265
265
|
must pass, and the hand-back quotes them. The body lint reads the closed
|
|
266
266
|
issue's labels through `gh api`; a `::warning::` that the Detection check
|
|
267
267
|
was skipped means gh failed, so the section was not required, not that it
|
|
268
|
-
passed (#4288). A
|
|
268
|
+
passed (#4288). A body that only references an issue (`Refs #N`, or any
|
|
269
|
+
close keyword the closing read does not own), or whose title names one
|
|
270
|
+
(`(refs #N)`), owes the same section when that issue is labelled `bug` or
|
|
271
|
+
`nightly-drift`; so does a body that closes a `nightly-drift` issue. A
|
|
272
|
+
reference written as `owner/repo#N` or a URL is refused unless the body
|
|
273
|
+
already closes a bug, which owes the section whatever else it cites. CI refuses a label
|
|
274
|
+
it cannot read; the local preflight, with no working gh, warns and skips it
|
|
275
|
+
as for a closed issue (#4968). A non-bug PR either deletes the `## Detection` section or
|
|
269
276
|
fills the three lines, and a `Shape:` or `Enforcer:` line it does write is
|
|
270
277
|
validated too; free text in between reds the local preflight. A bug-closing
|
|
271
278
|
PR that answers a layer, the `Gap: none:` reason, the `Shape: new:` name or
|
|
@@ -293,7 +300,8 @@ rigor (#2599).
|
|
|
293
300
|
(#4439).
|
|
294
301
|
- A `Shape: new: <name>` is a proposal, not a catalog entry: write the
|
|
295
302
|
proposed shape text in the PR body under "Proposed contract change
|
|
296
|
-
(maintainer decision)" and never edit `
|
|
303
|
+
(maintainer decision)" and never edit `docs/defect-shapes.md`. Catalog shapes
|
|
304
|
+
and rule
|
|
297
305
|
changes are the maintainer's decision; the orchestrator lands an approved
|
|
298
306
|
one in its own change (#4577's fixer added shape 74 unasked, and the
|
|
299
307
|
governance suites redded).
|
|
@@ -237,7 +237,7 @@ reviewer. File only different-seam, blocked, decision-dependent, untouched
|
|
|
237
237
|
pre-existing, or risk-class-changing items, as one consolidated issue per PR.
|
|
238
238
|
|
|
239
239
|
Folds also decide the issue list itself, one step earlier than a review
|
|
240
|
-
finding: `
|
|
240
|
+
finding: `docs/pi-lens-orchestration.md` states that check.
|
|
241
241
|
|
|
242
242
|
A brief carries the lane's facts and the task, and points at the role
|
|
243
243
|
contract for everything else. Lane facts are the worktree, branch, base,
|
|
@@ -261,15 +261,15 @@ These are the habits the train depends on. They live here, not in any one
|
|
|
261
261
|
operator's private notes, so a different orchestrator can run the same train.
|
|
262
262
|
|
|
263
263
|
- **Contracts move in the same session.** When a review or a dogfood finding
|
|
264
|
-
reveals a defect CLASS (not an instance), add a numbered shape to
|
|
265
|
-
catalog with the issue ref and a one-line screen, extend the fixer's screen
|
|
264
|
+
reveals a defect CLASS (not an instance), add a numbered shape to the defect-shape
|
|
265
|
+
catalog (`docs/defect-shapes.md`) with the issue ref and a one-line screen, extend the fixer's screen
|
|
266
266
|
list, and cite the number in the next brief — before the next dispatch. "To
|
|
267
267
|
err twice is not the mark of a wise man." (2026-09-03: shapes 28–36 came out
|
|
268
268
|
of one day's reviews this way.)
|
|
269
269
|
- **Second instance of a catalogued shape opens the consolidation lane, not a
|
|
270
270
|
third instance fix (2026-09-09).** The trigger is the shape recurring at all,
|
|
271
271
|
not only twice in one session: when a review, an issue or a dogfood finding
|
|
272
|
-
is the second member of a shape already in
|
|
272
|
+
is the second member of a shape already in the defect-shape catalog, the
|
|
273
273
|
orchestrator files the consolidation lane BEFORE the second instance merges,
|
|
274
274
|
with three fixed deliverables: one seam every consumer calls, one log line
|
|
275
275
|
per resolution (which value was chosen and why, throttled once per key per
|
|
@@ -435,7 +435,8 @@ operator's private notes, so a different orchestrator can run the same train.
|
|
|
435
435
|
`final-review`; NOT borrowed from it: auto-fixing null checks, error
|
|
436
436
|
handling or cleanup hooks, which change meaning.
|
|
437
437
|
- **Allocate the catalog number at MERGE, not at dispatch (2026-09-15).**
|
|
438
|
-
|
|
438
|
+
The defect-shape catalog (`docs/defect-shapes.md`) is a markdownlint MD029
|
|
439
|
+
ordered list: the
|
|
439
440
|
number is the list position, so dispatch-time reservations create a gap on
|
|
440
441
|
branches whose holder has not merged. The orchestrator owns allocation; a
|
|
441
442
|
lane may draft a shape but must not claim a number. At merge, insert or
|
|
@@ -554,15 +555,19 @@ operator's private notes, so a different orchestrator can run the same train.
|
|
|
554
555
|
layer SHOULD have caught it earlier and at what cost. The accepted layer
|
|
555
556
|
words are the `DETECTION_LAYERS` list exported by `scripts/check-pr-body.mjs`,
|
|
556
557
|
which the `## Detection` body check reads; the prose does not restate them.
|
|
557
|
-
`nightly` may carry its workflow as `nightly:<workflow
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
558
|
+
`nightly` may carry its workflow as `nightly:<workflow>`. A PR that only
|
|
559
|
+
references a `bug` or `nightly-drift` issue, in its body or its title, owes
|
|
560
|
+
the section too (#4968: the 2026-10-29 audit found 24 bug-linked PRs merged
|
|
561
|
+
in one week with `Refs #N` and no lesson). A PR that owes the section is refused when `Caught by:`,
|
|
562
|
+
`Should have been caught by:`, the reason after `Gap: none:`, the
|
|
563
|
+
`Shape: new:` name or the `Enforcer: none:` reason is a placeholder (starts
|
|
564
|
+
with `unknown`, or is exactly `n/a`, `tbd` or `?`)
|
|
561
565
|
(#4519: 139 of 363 closed bugs read unknown in the 2026-10-16 retro).
|
|
562
566
|
If that layer does not exist, file it as an issue with the bug as
|
|
563
567
|
its named recurrence — the same standard shapes are held to. The lesson
|
|
564
568
|
names the defect SHAPE and its tree-wide enforcer, not only a test for the
|
|
565
|
-
instance: the Gap names the `
|
|
569
|
+
instance: the Gap names the `docs/defect-shapes.md` catalog shape (or a new
|
|
570
|
+
shape) and
|
|
566
571
|
either a test that scans the whole population, an issue to build one, or
|
|
567
572
|
`judgment-only` with the reason. A one-bug test is the fix's regression
|
|
568
573
|
test, not the closed gap (lint half: #4439). The ledger
|
|
@@ -821,7 +826,7 @@ Each row cost a lane at least once; the prose above carries the record.
|
|
|
821
826
|
| Routing on the word "governance" instead of the risk | #4350 (a CodeQL pin-equality test) went to Opus as "governance authoring"; the Opus rule is for source-scanning detectors only. |
|
|
822
827
|
| Leaving the `dist/` precondition undeclared | At least 5 lanes (#4417, #4418, the #4422 verify, the #4410 r1 review, the #4423 review F5) each ruled out the same 3 census reds that need `npm run build:dist` (2026-10-14). Mechanical: fail fast when a selected test needs `dist/` and it is missing or stale (#4436); `CLAUDE.md` names `npm run build:dist` for those files meanwhile |
|
|
823
828
|
| A wait helper with a fixed wall-clock budget | `interleaving-kit` `waitFor` ran out at 3000 ms under CI load (run 38618401454, `tests/clients/fix-run-restore.test.ts:378`); the file passed alone and under 3 shuffle seeds, so the red read as a flake. Mechanical, filed as #4437 |
|
|
824
|
-
| Briefing a worker to "report the size first" before a large migration | A worker cannot wait for a reply, so the #4432 fixer did the migration anyway (2026-10-14). A brief authorizes the conditional branch with its bound, or tells the worker to stop and hand back; `
|
|
829
|
+
| Briefing a worker to "report the size first" before a large migration | A worker cannot wait for a reply, so the #4432 fixer did the migration anyway (2026-10-14). A brief authorizes the conditional branch with its bound, or tells the worker to stop and hand back; `docs/pi-lens-orchestration.md` |
|
|
825
830
|
| Naming a file by basename in a brief | "index.ts" meant `clients/lsp/index.ts`; a Haiku measurement pass searched the root `index.ts` and reported the #2052 comment missing (2026-10-14). Name every file by its repo path |
|
|
826
831
|
| Sending a lane that must find its own failure space to Haiku | #4342 rounds 1 and 2 left three review findings (a wall-clock bound, a wrong offline premise, a 13-vs-20 population); a fresh Opus round with a state table passed verify first time (#4410 round 3). Haiku folds with a prescribed remedy (#4340, #4341, #4345, #4356, #4368, #4372, #4374, #4417) landed first try. Haiku takes only a prescribed change; `AGENTS.md` "Orchestration and delegated work" |
|
|
827
832
|
| Listing a blast radius without the changed result's callers | #4411 round 3 changed `touchFile`'s result and the body omitted the cascade neighbour caller (`clients/dispatch/integration.ts:2139`), which then printed an uncaused "inconclusive" line every turn (review N2). `AGENTS.md` already requires `module_report` with `blastRadius: true` before and after; run it for the changed result and quote every caller, then read each one |
|
|
@@ -830,7 +835,7 @@ Each row cost a lane at least once; the prose above carries the record.
|
|
|
830
835
|
| Concluding "no existing seam does this" from a search of your own call names | #4528 searched `notifyExternalFileChange\(` and missed six freshness modules in `clients/`; five detectors ended up wiring their own consumers (#4535). Search by primitive (`docs/pi-lens-fixer.md` "Before code"); the reviewer widens the query (`docs/pi-lens-reviewer.md`, #4536) |
|
|
831
836
|
| Importing `dist/` from a script a workflow runs before any build | #4525's `scripts/assert-evaluated.mjs` reached `dist/` through `lib/clean-signal.mjs`, so `tool-smoke-prs` would fail on every refresh PR. #4531 pins the import graph with a test and plants |
|
|
832
837
|
| Pinning workflow step shell as text instead of running it | #4531 r1: four mutations of the Swift, APFS and handshake shell survived, including deleting `set +e`. Run the extracted step shell against stubs in a test |
|
|
833
|
-
| Filing gap after gap on one mechanism without an audit | Eleven freshness gaps went into #4532 before anyone asked why there were eleven; the cause was one missing fan-out (#4535). Three issues on one mechanism open a consolidation audit (`
|
|
838
|
+
| Filing gap after gap on one mechanism without an audit | Eleven freshness gaps went into #4532 before anyone asked why there were eleven; the cause was one missing fan-out (#4535). Three issues on one mechanism open a consolidation audit (`docs/pi-lens-orchestration.md`) |
|
|
834
839
|
| Landing with an unresolved bot review thread | #4548 and #4558 merged with open Greptile threads (2026-10-17); each one's disposition arrived or never did, and nothing held the land. Every bot thread gets a disposition reply and is resolved before the merge (step 1 and step 4 of "The loop, per PR") |
|
|
835
840
|
| Pushing a worker tree on a stale "failed" settlement | The #4575 r5 settlement read as failed while its resumed turn was live and about to push (plegma #752). The orchestrator's push-verify now refuses a tree with a live agent process, and its wait loop takes a `turnId`. |
|
|
836
841
|
| Settling a fix round with unpushed commits | #4582 r1 settled with the commits still local and nobody noticed (plegma #753). The settlement hook now prints `UNPUSHED` or `DIRTY` for the tree it just settled. |
|
package/docs/pi-lens-monitor.md
CHANGED
|
@@ -5,8 +5,8 @@ maintainer does not have to. The monitor observes; it never edits code,
|
|
|
5
5
|
never restarts anything, and never touches the session it is reading.
|
|
6
6
|
|
|
7
7
|
Read first: the engineering principles (`docs/engineering-principles.md`),
|
|
8
|
-
then `AGENTS.md`
|
|
9
|
-
a fixed bound reached at p50 is a design defect), then
|
|
8
|
+
then `AGENTS.md` and the defect-shape catalog (`docs/defect-shapes.md`,
|
|
9
|
+
especially shape 41: a fixed bound reached at p50 is a design defect), then
|
|
10
10
|
`docs/pi-lens-subagent.md` and `docs/pi-lens-investigator.md` for the
|
|
11
11
|
forensics conventions this role inherits. This contract adds the standing
|
|
12
12
|
readout.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Orchestration procedure
|
|
2
|
+
|
|
3
|
+
The orchestrator-only half of `AGENTS.md` "Orchestration and delegated work":
|
|
4
|
+
brief authoring, review intake, the fold check, and the merge gate's CI read.
|
|
5
|
+
The delegation and hand-back rules a worker obeys stay in `AGENTS.md`; the
|
|
6
|
+
per-PR loop itself is `docs/pi-lens-merge-policy.md`.
|
|
7
|
+
|
|
8
|
+
- A brief never asks a worker to wait for an answer ("report the size first"):
|
|
9
|
+
a worker cannot wait for a reply. It either authorizes the conditional
|
|
10
|
+
branch with its bound, or tells the worker to stop and hand back there.
|
|
11
|
+
- A brief names every file by its repo path (`clients/lsp/index.ts`, never
|
|
12
|
+
`index.ts`): a bare basename resolves to another file in a read-only pass.
|
|
13
|
+
- After every completion, push, verdict, merge, or status request, trigger the
|
|
14
|
+
next named owner in the same pass, and keep the handoff (exact head, verdict,
|
|
15
|
+
dispositions, next owner) on the PR or the ledger.
|
|
16
|
+
- Review intake generalizes before it routes. For every HIGH, MEDIUM or
|
|
17
|
+
CRITICAL finding, name the defect shape, grep the tree for other members, and
|
|
18
|
+
record a verdict before the fix round dispatches: contained in this PR (with
|
|
19
|
+
the sweep), sibling issue filed with the member list, or none (with the
|
|
20
|
+
grep). The fix brief carries it as a `Shape:` line. History: `HISTORY.md`,
|
|
21
|
+
2026-10-10.
|
|
22
|
+
- Plegma reads are token-budgeted (#417): settlements via `watch --next --mine`,
|
|
23
|
+
`result` only when the transcript or handoff artifact is needed.
|
|
24
|
+
- Every regroup, merged bug fix, second round on one shape, and incident runs
|
|
25
|
+
the retrospective in `docs/pi-lens-retro.md`.
|
|
26
|
+
- Three open issues on one mechanism, in any seam groups, open a consolidation
|
|
27
|
+
audit across every consumer of that mechanism before the next one is filed
|
|
28
|
+
(history: `HISTORY.md`, 2026-10-16).
|
|
29
|
+
- Run the **fold check** as soon as a lane's mechanism is known, which is when
|
|
30
|
+
the brief is written: read every open issue against that mechanism and decide
|
|
31
|
+
each candidate as folded into this PR (one `Closes #…` per folded issue) or
|
|
32
|
+
not folded, with the reason (two hazards in one review, a maintainer decision,
|
|
33
|
+
a blocked dependency, a different seam). The brief carries the candidate list
|
|
34
|
+
and its decisions, and the PR body records them under `## Fold check`.
|
|
35
|
+
Planning precedes filing: a new issue is the answer for p2+ work no lane can
|
|
36
|
+
carry, never for a p3 the lane could fold (history: `HISTORY.md`, 2026-10-20).
|
|
37
|
+
- The per-PR loop (review, verify, auto-merge on green), round routing, the
|
|
38
|
+
merge gate and the Common mistakes table live in `docs/pi-lens-merge-policy.md`.
|
|
39
|
+
- Read CI with `node scripts/ci-verdict.mjs <pr|sha>` (exact head, all pages).
|
|
40
|
+
Never merge on absent, stale, or advisory-only checks.
|
|
41
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<important if="building, packaging, or releasing">
|
|
2
|
+
|
|
3
|
+
## Build, packaging, and release
|
|
4
|
+
|
|
5
|
+
`main` and `pi.extensions` point to `dist/index.js`; `dist/` is generated and
|
|
6
|
+
not committed. `prepare` builds it for git and package installs. `build:dist`
|
|
7
|
+
bundles pure-JS dependencies while keeping host-provided and lazy native
|
|
8
|
+
packages external. Package-root resource resolution is depth-robust; pi
|
|
9
|
+
resolves `pi.skills` entries relative to the package root, so manifests use
|
|
10
|
+
`"./skills"` and never an escaping path.
|
|
11
|
+
|
|
12
|
+
Runtime imports must be production dependencies. The pi SDK is an optional
|
|
13
|
+
peer/dev dependency and must be imported type-only. Lockfiles use the pinned
|
|
14
|
+
npm version. Release notes use one `.changelog/<slug>.md` fragment per PR
|
|
15
|
+
(`audience: user` or `internal`; the release body lists only `user`); never
|
|
16
|
+
edit `CHANGELOG.md` for ordinary PR notes.
|
|
17
|
+
New user-facing fragments begin with a bold lead of at most 100 characters
|
|
18
|
+
(issue references are excluded from the count); internal fragments are exempt.
|
|
19
|
+
|
|
20
|
+
</important>
|
package/docs/pi-lens-retro.md
CHANGED
|
@@ -8,7 +8,8 @@ output of this role. Source of truth for every rule here is this file and
|
|
|
8
8
|
|
|
9
9
|
Read first: the engineering principles (`docs/engineering-principles.md`),
|
|
10
10
|
then `AGENTS.md` ("Recurring defect shapes", "Orchestration and delegated
|
|
11
|
-
work", "Test requirements"),
|
|
11
|
+
work", "Test requirements"), the shape entries it indexes
|
|
12
|
+
(`docs/defect-shapes.md`), then `docs/pi-lens-subagent.md` when delegated,
|
|
12
13
|
then this contract and `docs/pi-lens-merge-policy.md` ("Common mistakes"),
|
|
13
14
|
which is where mistake rows land.
|
|
14
15
|
|
|
@@ -61,7 +62,7 @@ job logs on the exact head, `latency.log` under the resolved log root (`docs/pi-
|
|
|
61
62
|
exactly as a regression test would; a check without a red is a proposal and
|
|
62
63
|
is filed as an issue naming the incident as its recurrence, not merged.
|
|
63
64
|
4. **Judgement candidates become one line in the right place.** A defect shape
|
|
64
|
-
goes into the `
|
|
65
|
+
goes into the catalog (`docs/defect-shapes.md`) as a lean screen, and its issues, PRs and
|
|
65
66
|
examples go to `HISTORY.md`, under a heading that names the shape, such as
|
|
66
67
|
`## 2026-10-14 - title (shape N)`: a lean entry cites no issue, and
|
|
67
68
|
`tests/config/shape-history-governance.test.ts` finds the record by that
|
package/docs/pi-lens-reviewer.md
CHANGED
|
@@ -63,24 +63,24 @@ does not ship.
|
|
|
63
63
|
| A new `it(` or `test(` title, or a case added to a table test | Red first: the case fails on the pre-fix source, with the failure the defect names (principles §2 "Red first") | The pre-fix transcript, with its `Tests N failed` line naming the new titles | #4577 (Greptile, 2026-10-17: round-4 cases shipped with no red) |
|
|
64
64
|
| A new guard, branch, filter, cap or fallback | Mutation red on that predicate, both directions, in a compile-valid change (principles §2 "Mutation output is quoted") | The `scripts/mutate.mjs` transcript and its `RED` status line, with the one test it reds | #4575 (Greptile r4304045025: no mutation red for the saveOnly rule) |
|
|
65
65
|
| A file under `clients/lsp/`, `formal/`, or any path `formal/switch-pins.json` names | The model moves with the code: a `.tla`/`.cfg` hunk and its TLC verdict, or a `TLA+ unaffected:` line; a flipped constant flips its config and its pin (AGENTS shape 68) | The line, or the model diff plus the verdict, and the pin's test name for a flipped constant | #4575 (Greptile r4304045020: the model did not move with the code), #4387, #4393 |
|
|
66
|
-
| A spawn, shell or path seam: `clients/package-manager.ts`, `clients/lsp/launch.ts`, `clients/path-utils.ts`, `clients/safe-spawn.ts`, or any `trySpawn` caller | Read the Windows lane, and keep a shim cell that asserts the platform command (AGENTS "Test requirements"; "Dispatch, runners, formatters, and installers") | The `Unit tests Windows` row on the head, or the shim cell's platform assertion | #4566 (Greptile r4304149666: the `.cmd` cells), #4356, #4263 |
|
|
67
|
-
| A rung that can execute project code | Judge the rung by the resolved target under every trust state, never by the name it was called with (
|
|
66
|
+
| A spawn, shell or path seam: `clients/package-manager.ts`, `clients/lsp/launch.ts`, `clients/path-utils.ts`, `clients/safe-spawn.ts`, or any `trySpawn` caller | Read the Windows lane, and keep a shim cell that asserts the platform command (AGENTS "Test requirements"; `docs/invariants/dispatch-runners.md` "Dispatch, runners, formatters, and installers") | The `Unit tests Windows` row on the head, or the shim cell's platform assertion | #4566 (Greptile r4304149666: the `.cmd` cells), #4356, #4263 |
|
|
67
|
+
| A rung that can execute project code | Judge the rung by the resolved target under every trust state, never by the name it was called with (`docs/invariants/lsp-trust-exec.md` "LSP, trust, and process execution") | The target table: each spelling, its resolved path, and the verdict under trusted, unknown and denied | #4566 (an empty `PATH` and a global link each ran project code), #4530 |
|
|
68
68
|
| A new shared helper | Net-count rule: delete a same-shape sibling in this change (principles §1 "Net-count rule for shared helpers") | The deleted sibling in `Change outline`, or the unsafe-to-fold reason with its follow-up link | #2585 r1, #2617 r1 (an existing override and scan set bypassed or recopied), #3064, #3065, #3066, #3068 (a fold's newly sole predicate left untested) |
|
|
69
69
|
| A second writer, reader or mirror of one shared record | Design shared state once, with a reason or kind discriminator per writer (principles §1 "Design shared state once"; AGENTS shape 24) | The writers-by-axis table, and the discriminator each writer carries | #1631/#1641 (the `stale` collision that was green alone), #1633, #1703 |
|
|
70
70
|
| A durable record whose shape changes, or a new version of one | Keep the fixture corpus: every version that produced the record still parses (principles §2 "Keep fixture corpora") | The fixture path and the parser test that replays it | #3594 R2-F1 (AGENTS shape 57) |
|
|
71
71
|
| A cache or memo key | Key every input the value depends on, trust scope and install state included (AGENTS shape 6) | The key's input list beside the value's dependencies, and the mutation that changes one input | #4562 (a large update left a cached answer), #4566 (a trust change left tools missing) |
|
|
72
72
|
| A test-side source scan, census, ratchet or detector | Detectors match code, not prose, and fail closed on an unlisted spelling (principles §2 "Detectors match code"; AGENTS shape 69) | The blanked-source read, and three plants the author did not design for: an alias, an indirect call, a value through another binding | #2693 (a ratchet counted four sites where six existed), #4439 |
|
|
73
73
|
| A workflow, action or job | The edited lane runs on a pull request, or a branch run is quoted with its run id (AGENTS "Commands and gates") | `gh workflow run <file> --ref <branch>` with its run id, or the PR-eligible cell's name | #3043, #3085 |
|
|
74
|
-
| A `continue-on-error` producer or a nightly floor | The producer reports to `scripts/assert-evaluated.mjs`, and its floor reds below the measured count (
|
|
74
|
+
| A `continue-on-error` producer or a nightly floor | The producer reports to `scripts/assert-evaluated.mjs`, and its floor reds below the measured count (`docs/invariants/lsp-trust-exec.md` "LSP, trust, and process execution") | The floor value beside the run's evaluated count | #4518 |
|
|
75
75
|
| A path a host tool was given (a `~`, an `@` prefix, a `file://` URL), or a path re-resolved after it left disk | Resolve by provenance, one seam per provenance; a generated or recovered path is never re-resolved (AGENTS shape 74) | The resolver the caller uses, and the path form it accepts, before and after | #4576, #4577 (a bash operand resolved on the host-argument ladder, then an absolute spelling rewritten) |
|
|
76
76
|
| A path recovered from disk, a synthetic write event, or a path pi-lens generates | The path carries its provenance, host argument, shell token, recovered or generated, and nothing re-derives it (AGENTS shape 58) | The provenance the caller states at the injection point, and the resolver it therefore skips | #4577 (a recovered name was re-folded), #4558 |
|
|
77
77
|
| A path-keyed map, normalizer or path comparison | Normalize on write, read, delete and rehydrate, and test Windows separators and casing (AGENTS shape 1) | The writer and reader table, with the normalizer each one calls | #3178 (four rounds, two inverted arms, one unmeasured swap) |
|
|
78
|
-
| A session, lifecycle, generation or turn-end seam | Capture the generation before the await, and key the state by the session that owns it (AGENTS shapes 21 and 22; "Session, telemetry, and delivery") | The captured scope or generation the write checks, and the test that races it | #4258 (a stale activation rebinding a held bridge), #4154 |
|
|
78
|
+
| A session, lifecycle, generation or turn-end seam | Capture the generation before the await, and key the state by the session that owns it (AGENTS shapes 21 and 22; `docs/invariants/session-telemetry.md` "Session, telemetry, and delivery") | The captured scope or generation the write checks, and the test that races it | #4258 (a stale activation rebinding a held bridge), #4154 |
|
|
79
79
|
| A lifecycle, ownership or queue-ordering change | Name a cell and a mutation per axis: owner and identity, last leave, and queue ordering (principles §1 "Identity and lifecycle rules"; AGENTS shapes 21 and 22) | The state table with one row per axis, and the mutation transcript for each cell | #4563 (seven lifecycle findings), #4575 (a slow send overwrote a newer edit), #4562 |
|
|
80
|
-
| A lifecycle change | The TLA+ model moves with the code, and `docs/pi-lens-monitor.md` gains the row for a new store or hand-off branch (AGENTS shape 68; "Session, telemetry, and delivery") | The model diff or `TLA+ unaffected:` line, and the monitor-doc row | #4563, #4569 (held documents undercounted), #4575 |
|
|
80
|
+
| A lifecycle change | The TLA+ model moves with the code, and `docs/pi-lens-monitor.md` gains the row for a new store or hand-off branch (AGENTS shape 68; `docs/invariants/session-telemetry.md` "Session, telemetry, and delivery") | The model diff or `TLA+ unaffected:` line, and the monitor-doc row | #4563, #4569 (held documents undercounted), #4575 |
|
|
81
81
|
| A delivery surface, or a bound on findings that reach the model | A bound discloses its truncation on the rendered surface, and a skipped or unavailable result is not clean (AGENTS shape 10) | The rendered truncation line, or the skip reason from `RUNNER_SKIP_REASONS` | #3166 r2 (an 80-finding input bound zeroed a neighbour's errors) |
|
|
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
|
-
| 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 (
|
|
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
85
|
| Every diff, every changed file, tests included | Read the whole diff file by file. Check each PR-body claim against the diff, and 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) |
|
|
86
86
|
|
package/docs/pi-lens-subagent.md
CHANGED
|
@@ -143,10 +143,13 @@ the brief gives.
|
|
|
143
143
|
is that summary and nothing else: the full evidence (probe transcripts,
|
|
144
144
|
tables, mutation logs) goes in the declared deliverable file or, when there
|
|
145
145
|
is none, `~/.local/share/pi-lens-orchestrator/tmp/<lane>-tmp/REPORT.md`, and
|
|
146
|
-
the summary names that path. The
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
the summary names that path. The hand-back file a brief names is a required
|
|
147
|
+
lane record, kept outside the repo; the harness default against report `.md`
|
|
148
|
+
files does not cover it. A lane that skips the file has not delivered. The
|
|
149
|
+
orchestrator reads the summary alone to route the lane and opens the file only
|
|
150
|
+
when routing a fix round, so a claim made only in the file does not route.
|
|
151
|
+
(Full reports pasted into the reply were the largest orchestrator token cost
|
|
152
|
+
on 2026-10-07.)
|
|
150
153
|
- **Handbacks between rounds.** Every lane's returned summary for PR #N is
|
|
151
154
|
kept at `~/.local/share/pi-lens-orchestrator/tmp/handbacks/pr-<N>.md` (the
|
|
152
155
|
orchestrator's hooks write it; a fixer may also write it). A reviewer or
|
|
@@ -221,8 +224,8 @@ foreground, push with the targeted and governance suites green and say that
|
|
|
221
224
|
the full suite was delegated to CI.
|
|
222
225
|
|
|
223
226
|
Pin `PI_LENS_HOME` and `PILENS_DATA_DIR` to `<worktree>/.probe-home` for
|
|
224
|
-
probes, smoke scripts, and `npm install`/`npm ci` (`
|
|
225
|
-
and operating systems"); a test that inspects the install record also pins
|
|
227
|
+
probes, smoke scripts, and `npm install`/`npm ci` (`docs/invariants/paths-os.md`
|
|
228
|
+
"Paths, data, and operating systems"); a test that inspects the install record also pins
|
|
226
229
|
`PI_LENS_INSTALL_LOG`. Never export them for a Vitest run: the setup keeps
|
|
227
230
|
the real home on purpose (#3178). Kill every language server a probe spawns
|
|
228
231
|
before moving on; the plegma daemon's cgroup holds every worker's children
|
|
@@ -139,6 +139,18 @@
|
|
|
139
139
|
"guard": {
|
|
140
140
|
"x-stability": "stable"
|
|
141
141
|
},
|
|
142
|
+
"astGrep": {
|
|
143
|
+
"x-stability": "stable"
|
|
144
|
+
},
|
|
145
|
+
"zizmor": {
|
|
146
|
+
"x-stability": "stable"
|
|
147
|
+
},
|
|
148
|
+
"typos": {
|
|
149
|
+
"x-stability": "stable"
|
|
150
|
+
},
|
|
151
|
+
"spotbugs": {
|
|
152
|
+
"x-stability": "stable"
|
|
153
|
+
},
|
|
142
154
|
"opengrep": {
|
|
143
155
|
"x-stability": "stable"
|
|
144
156
|
},
|
|
@@ -398,6 +410,17 @@
|
|
|
398
410
|
"turnEnd": {
|
|
399
411
|
"x-stability": "stable"
|
|
400
412
|
},
|
|
413
|
+
"fallow": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"additionalProperties": true,
|
|
416
|
+
"properties": {
|
|
417
|
+
"enabled": {
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"x-stability": "experimental"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"x-stability": "stable"
|
|
423
|
+
},
|
|
401
424
|
"knip": {
|
|
402
425
|
"type": "object",
|
|
403
426
|
"additionalProperties": true,
|
|
@@ -6,7 +6,7 @@ server's `initialize` handshake. Generated by `node scripts/server-capabilities.
|
|
|
6
6
|
absent on the generating host are listed under *Unavailable* — run in a
|
|
7
7
|
provisioned environment (the nightly) to capture those rows.
|
|
8
8
|
|
|
9
|
-
_Last generated: 2026-10-
|
|
9
|
+
_Last generated: 2026-10-27 on linux; 41 servers captured, 9 unavailable._
|
|
10
10
|
|
|
11
11
|
## Diagnostic mode + navigation/edit operations
|
|
12
12
|
|
package/docs/settings.md
CHANGED
|
@@ -77,6 +77,10 @@ column is the effective behavior when nothing is set.
|
|
|
77
77
|
| `--lens-guard` | `guard.enabled` | global | **off** |
|
|
78
78
|
| `--lens-checkout-guard` | `guard.sharedCheckout` | global | **off** |
|
|
79
79
|
| `--no-opengrep` | `opengrep.enabled` | global | Opengrep scanner **on** |
|
|
80
|
+
| `--no-ast-grep` | `astGrep.enabled` | global | ast-grep auxiliary server **on** |
|
|
81
|
+
| `--no-zizmor` | `zizmor.enabled` | global | zizmor auxiliary server **on** |
|
|
82
|
+
| `--no-typos` | `typos.enabled` | global | typos auxiliary server **on** |
|
|
83
|
+
| `--lens-spotbugs` | `spotbugs.enabled` | global | SpotBugs **off** |
|
|
80
84
|
| `--no-read-guard` | `readGuard.enabled` | global | read-before-edit monitor **on** |
|
|
81
85
|
| `--no-lens-context` | `contextInjection.enabled` | global | context injection **on** |
|
|
82
86
|
| `--lens-retain-injections` | `contextInjection.retain` | global | **off** |
|
|
@@ -92,6 +96,7 @@ column is the effective behavior when nothing is set.
|
|
|
92
96
|
| `--no-lazy-tools` | `tools.lazy` | global | `true`: the five situational tools start inactive on every model (`"auto"` only on a model that keeps mid-conversation system messages, `false` never) |
|
|
93
97
|
| `--no-tool=<name>` | `tools.<name>.enabled` | project | every lens tool **on** |
|
|
94
98
|
| `--lens-turn-end-madge` | `turnEnd.madge.enabled` | global | **off** (madge runs at session start, not per turn) |
|
|
99
|
+
| `--lens-fallow` | `fallow.enabled` | global | **off** (fallow-lsp advisory auxiliary on JS/TS files; nothing installed or launched while off) |
|
|
95
100
|
| `--no-knip` | `knip.enabled` | project | knip analyzer **on** |
|
|
96
101
|
| `--no-jscpd` | `jscpd.enabled` | project | jscpd analyzer **on** |
|
|
97
102
|
| `--no-madge` | `madge.enabled` | project | madge analyzer **on** |
|
package/docs/usage.md
CHANGED
|
@@ -109,6 +109,10 @@ pi --no-delta # Disable delta mode (show all diagnostics, not just ne
|
|
|
109
109
|
pi --lens-guard # Block git commit/push when unresolved blockers exist (experimental)
|
|
110
110
|
pi --lens-checkout-guard # Decline git commands that rewrite the working tree while another live pi-lens session shares this dirty checkout (experimental)
|
|
111
111
|
pi --no-opengrep # Disable the Opengrep security scanner (default-on auxiliary LSP)
|
|
112
|
+
pi --no-ast-grep # Disable the ast-grep auxiliary LSP server (default-on)
|
|
113
|
+
pi --no-zizmor # Disable the zizmor auxiliary LSP server (default-on)
|
|
114
|
+
pi --no-typos # Disable the typos auxiliary LSP server (default-on)
|
|
115
|
+
pi --lens-spotbugs # Run SpotBugs on Java and Kotlin files (opt-in; needs a Java build descriptor and compiled classes)
|
|
112
116
|
pi --no-read-guard # Disable the read-before-edit behavior monitor
|
|
113
117
|
pi --lens-retain-injections # Re-send injected findings unchanged in later requests, for exact-prefix (local) prompt caches
|
|
114
118
|
pi --lens-turn-summary # Persist a per-turn summary of diagnostics, autofixes, and autoformats
|
|
@@ -118,6 +122,7 @@ pi --lens-hide-lsp-status # Publish no pi-lens-lsp footer status at all, so
|
|
|
118
122
|
pi --lens-compact-widget # Render the widget as one summary line (languages + totals, LSP↑ chip while servers spawn) with no file rows or blocker details (refs #3959)
|
|
119
123
|
pi --no-lazy-tools # Keep every pi-lens tool active instead of activating the situational ones on demand
|
|
120
124
|
pi --lens-turn-end-madge # Run the madge circular-dependency check at every turn end, not just at session start
|
|
125
|
+
pi --lens-fallow # Run fallow-lsp beside the TypeScript server on JS/TS files (advisory unused-code, duplication and cycle findings; opt-in)
|
|
121
126
|
pi --no-knip # Disable the knip session-start analyzer
|
|
122
127
|
pi --no-jscpd # Disable the jscpd session-start analyzer
|
|
123
128
|
pi --no-madge # Disable the madge session-start analyzer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-lens",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo",
|
|
6
6
|
"repository": {
|
|
@@ -171,6 +171,7 @@
|
|
|
171
171
|
"protobufjs@7.6.6": true
|
|
172
172
|
},
|
|
173
173
|
"overrides": {
|
|
174
|
-
"qs": "^6.15.4"
|
|
174
|
+
"qs": "^6.15.4",
|
|
175
|
+
"undici": "^8.12.2"
|
|
175
176
|
}
|
|
176
177
|
}
|