Repository navigation
Commit a6a7e49
committed
feat(cli, runtime, core): os serve loads installed plugins, re-verified and dispatched by runtime tier; os plugin disable | enable | uninstall (#27123)
Slice 2 of 3 of ADR-0025 §3.5 M1 (Claim 6485671080).
- runtime: installed-plugin-loader.ts (loadInstalledPlugins,
verifyInstalledPlugins, dispatchPluginRuntime). Each installation is
re-checked before any of its code is imported: its own install dir,
disabled, the kept artifact's sha256, the signature over the raw kept
bytes against sys_trusted_key (revoked since install refuses), the
unpacked tree byte-equal to the artifact, the manifest id/version, then
the tier: node imports in process, sandbox/worker/undeclared refused by
name. Uninstall finishes at boot with a shared-dir guard.
- runtime: the installations file takes a pid lock for every
read-modify-write; a stale lock (dead pid, older than 5 min, own pid
while unheld, unparseable and older than 1 s) is cleared by the next
writer.
- core: the archive reader moves here with a bounded inflate
(MAX_UNPACKED_ARTIFACT_BYTES); PluginLoader refuses a signature no host
verified (recordPluginArtifactVerdict).
- cli: serve registers installed plugins before bootstrap; install
verifies the signature before inflating and warns on a tier the boot
refuses; new disable / enable / uninstall; the shared trust read
plugin-trust-read.ts.
- spec: the runtime tier's describe text and TSDoc, its pin, the liveness
row live-elsewhere -> live; generated reference pages regenerated.
Claude-Session: https://claude.ai/code/session_01Utp6CXg4K8dxetvqvU81bD
Co-authored-by: Claude <noreply@anthropic.com>1 parent 10f27b6 commit a6a7e49
37 files changed
Lines changed: 2955 additions & 345 deletions
File tree
- .changeset
- content/docs
- protocol/kernel
- references
- api
- kernel
- packages
- cli
- src
- commands
- plugin
- trust
- utils
- test
- core/src
- security
- runtime/src
- spec
- liveness
- state-counts
- src/kernel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
204 | | - | |
205 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
375 | 380 | | |
376 | 381 | | |
377 | 382 | | |
378 | | - | |
379 | | - | |
| 383 | + | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
390 | 395 | | |
391 | 396 | | |
392 | 397 | | |
393 | | - | |
394 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
395 | 404 | | |
396 | 405 | | |
397 | 406 | | |
| |||
920 | 929 | | |
921 | 930 | | |
922 | 931 | | |
923 | | - | |
| 932 | + | |
924 | 933 | | |
925 | 934 | | |
926 | 935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| |||
0 commit comments