@ai-ecoverse/slicc-bios 1.64.4 → 1.65.0

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/README.md CHANGED
@@ -387,6 +387,13 @@ Seven keeps its secrets in the vault, a separate origin (`@ai-ecoverse/slicc-vau
387
387
  - **Values typed only in the frame:** while the loaded UI enters every value through `enter` and the frame (`valueEntry` from `@ai-ecoverse/slicc-spectrum/ui` is `true`, spectrum ≥ 2.5.0; a test can set `globalThis.sliccValueEntry` to `true` or `false` to force it), every `put` from the page is refused with `EACCES`, *values are typed in the vault's frame*, before anything reaches the vault (one without a value too; Settings-only changes go through `settings`), and an old `/dev/sealed` `request { kind: "value" }`, which only a typed `put` could answer, is refused with `EINVAL`, *ask with op ask instead*; programs use `ask`. `settings`, `import` and seven's own seals (jerk, sign-ins) are unchanged. With an older UI both work as before.
388
388
  - **The agent's port:** for slicc-agent ≥ 4.0.0 only, each agent worker gets its own `agent`-role port, posted raw as `{ vault, scrub }` next to the agent's `{ kernel, admin }`, and again with a fresh port after the frame reloads. The agent port gets no events, so every lock change in the page port's `status` is posted to the worker as `{ locked: true | false }`. `scrub` is the last `{ needed, version, ready }` pair (`localStorage['slicc-os.vault-scrub']`, `null` before any vault connected); each new pair is posted to the worker as `{ scrub }` before seven relays the `put`, `seal` or `import` answer that caused it. Agents before 4.0.0 speak an earlier draft of that wire, so they get no port and stay inert.
389
389
  - **`/dev/sealed`:** the kernel's `sealed` hook relays each request with its kernel stamp (`caller`, unchanged) as the vault's `sealed` op, and returns its one reply. While kernel users aren't `enforce`, `materialize` and `materializeConsume` are refused with `EACCES`; under `enforce`, `materialize` is relayed like the rest, and the kernel's `materializeConsume` (`ticket`, `stamp`, `path`, `resolved`, `argv`, `cwd`, `interpreters`, `trusted`, unchanged) goes to the vault's page op of that name, whose `{ values, placeholders }` go back to the kernel only. jerk's requests (`src/seed/jerk.js`) are answered with `answer`: `jop: list` with rows from each linked device that runs jerk (J1 `list`), `jop: status` from the vault's records, where `mcp:<server>` also counts a `list.mcp` record of exactly that server (exit 3 without one; the vault, not bios, checks that the reader is root), `jop: create` through J1 `create` with its progress lines (exit 4 without a jerk device), `unseal` by removing the provider's `jerk:` records, and `oauth` and `jerk-seal` with exit 5 until seven signs in itself. A `cancelled` event stops a running J1 `create`.
390
+ - **Managed kernel OAuth:** slicc-kernel ≥ 1.178.0, the deployed slicc-vault ≥ 1.25.0 and, with active agent Workers, slicc-agent ≥ 7.28.3 are required. `capabilities`, `oauthGrant`, `oauthStatus`, `oauthRefresh` and `oauthRemove` use `src/seed/kernel-oauth.js`, not the legacy jerk request handler. Before sending credentials, bios queries the connected vault's page `status` and requires protocol 1 and `capabilities.kernelOAuth: 1`; an older vault answers the device capability probe with `{ v: 1, capabilities: {} }`, and managed operations fail with `ENOTSUP`. Bios adds `kernelOAuth: 1` only to the outer `sealed` envelope, beside `req` and the unchanged kernel `stamp`, never to `req`. The assertion proves compatible relay behavior, not permission: only the vault authorizes and owns the records. Nested caller-supplied markers, sources, kinds or stamps never grant authority. A compatible kernel must also allow these five device operations; a dependency pin alone does not enable an older deployed vault.
391
+ - `oauthGrant` carries the initial access token, optional refresh token and public-client metadata in transit only. The vault atomically stores the access record and its private grant. V1 supports `oauth.authMethod: "none"` only; bios stores no tokens or client secrets and implements no refresh engine. Confidential interactive sign-ins remain the CLI's explicitly warned legacy access-only flow, not managed refresh. Settings, agent credentials, env precedence, ordinary named placeholders and legacy jerk status are unchanged. Managed records' legacy `oauthManaged: true` discovery marker is passed through unchanged so an older transport cannot silently downgrade them to legacy credentials.
392
+ - Grant, status and refresh return only `{ v: 1, placeholder, state, expiresAt, refreshable }`: the placeholder is `fnox_proxy_` and 24 lowercase hex digits, expiry is a nonnegative safe-integer epoch millisecond value or `null`, and state is `ready`, `refreshing`, `expired`, `reauth-required`, `removed` or `locked`. Remove returns only `{ v: 1, removed: true }`. Bios validates both envelope and device versions, exact fields and types; unknown fields, codes, causes or malformed replies fail with fixed `EIO`. Supplied error messages are never forwarded. No refresh value, refresh placeholder, OAuth metadata or provider response reaches the kernel.
393
+ - After a successful mutation, bios requests the current page `placeholders`/`scrub` pair, requires it to be no older than its current pair (and ready for grant/refresh; removal can publish a locked, not-ready pair), and installs and publishes it locally. `src/seed/scrub-receipts.js` then sends each attached Worker `{ scrub, scrubReceipt: { v: 1, nonce, version } }` with exactly one private transferred MessagePort. The nonce is fresh, 32 lowercase hex digits. The compatible agent applies the pair synchronously through `Vault/listenVault`, then replies only on that port with exactly `{ v: 1, nonce, version }`; it never acknowledges an unapplied or malformed pair. Bios verifies every receipt before releasing completion. This is receipt ordering, not merely posting order: the agent's monotonic pair handling prevents a later stale welcome, scrub message or null reconnect from undoing the acknowledged safety state. Legacy `{ vault, scrub }` initialization remains separate and unchanged.
394
+ - Capability probing and every `oauthGrant` independently obtain the current valid pair and require receipts before any initial credentials are sent. An old or unresponsive active agent therefore cannot make managed OAuth usable. No workers is a vacuous barrier. Attach, owned detach/termination, vault reconnect and close invalidate the worker generation and pending receipts; an attachment during an operation either participates before completion or causes a fixed refusal. Missing receipts never establish that a worker died. Every receipt wait is bounded to 5 s and honors cancellation, closing its ports, listeners and timer; unrelated/global Worker messages, stale or malformed private replies do not count. A failed barrier is fixed `ENOTCONN` or `ETIMEDOUT`. Supporting published agent, kernel and vault releases are all required for rollout with active agents.
395
+ - Bios bounds the complete managed relay to 44 s inside the kernel's 45 s deadline; capability probing is 10 s, the vault's own operation budget is 40 s, and refresh egress keeps its 25 s bios/30 s vault budgets. Reconnects, cancellation and late replies never replay initial credentials. Cancellation only discards the answer: the vault may already have committed, so the next CLI command reconciles with exact-identity `oauthStatus`, never automatic resealing or compensating deletion.
396
+ - `security-kernel-oauth.test.mjs` exercises the real browser iframe, Workers and private MessagePorts with a synthetic vault and fake credentials: outer assertion and stamping, capability/version skew, strict token-free replies and errors, delayed application/receipts, wrong-worker and malformed receipts, old receivers, cancellation, attachment and termination races, locked removal and safe egress errors. This wiring test does not certify the vault's storage lifecycle or the kernel's device allowlist.
390
397
  - **Secret asks** (`/dev/sealed` op `ask`, from `sealed ask` and fnox; slicc-vault ≥ 1.23.0, slicc-kernel ≥ 1.175.1, spectrum ≥ 2.2.0, all three in the base set): the kernel's hook gives seven `{ v: 1, op: 'ask', name, prompt?, reveal, caller, requester: { exe, argv, cwd, tty, stdin } }`, and seven relays it as the vault's `sealed` op, built from only `v`, `op`, `name`, `prompt`, `reveal`, `replace` and the kernel's `requester` facts `exe`, `argv`, `cwd`, `tty` and `stdin` (any other field is dropped), with three facts of its own in `requester` (`src/seed/secrets.js`): `kind`, `agent` for a process with an agent tag (or, without a user tag, running as a cone or scoop user) and `user` otherwise; `name`, the user's name (`uid <n>` without one); and `where`, the agent (`cone`, `cone-2`, `scoop:<folder>`, also for an untagged cone or scoop user), `a terminal` for a panel terminal, or `on <device>` for a linked device's shell, at most 128 characters with control characters stripped. The call is held open with no timeout of seven's own (the kernel's is 305 s, the vault's 300 s), and a held ask doesn't make the vault look late in `availability()`. The vault names the request in an `asked` event on the page port; when the kernel's hook aborts (the program exited, closed the descriptor, wrote again or ran out of time), seven sends the vault `cancel { request, reason: 'withdrawn' }`, also when the abort comes before the name. The vault's one reply goes back to the kernel as it is: `{ v: 1, state: 'done', placeholder, record, value? }` (`record` the record's state), `cancelled`, `expired`, `withdrawn` (which the kernel drops, since its hook has already aborted) or an error. A revealed `value` is only passed on to the kernel; seven never logs or stores it, and it isn't in any error message.
391
398
  - **In the approvals queue:** each tab lists the vault's `ask` requests from `status.waiting` in `model.approvals` as spectrum's `secret` approvals (`{ id, kind: 'secret', mode, name, prompt?, reveal, requester: { kind, name, where? }, process: { exe, argv, cwd }, createdAt, expiresAt }`), after bios's own sudo and tray items, and the agent merges them into its own through `createAgentModel(connection, { approvals })` as before. `decide(id, 'deny')` cancels the request in the vault; `once` and `always` are refused with *Save or Allow in the vault's frame.*. `ended` says `withdrawn` or `expired` from the vault's `cancelled` event (or the request's `expiresAt`), and `answered` when it was sealed, allowed or denied in another tab. A request this tab denied, or whose frame from this tab's `valueFrame` said `done`, ends without one; when the request leaves `waiting` before the frame has spoken, seven waits up to 1 s for its `done` or `gone`.
392
399
  - **The rest:** after a Cancel (the vault's reply is `cancelled`), the session that asked (its uid and tag) rests for 10 s, as for `/dev/embedder` prompts: its asks are refused with `EACCES`, *another request was just dismissed*, without reaching the vault. A withdrawn or expired ask starts no rest.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.64.4",
3
+ "version": "1.65.0",
4
4
  "description": "Slim loader that boots SLICC into OPFS and serves the UI from there",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -52,10 +52,10 @@
52
52
  "@ai-ecoverse/slicc": "1.64.1",
53
53
  "@ai-ecoverse/slicc-browsers": "1.21.1",
54
54
  "@ai-ecoverse/slicc-cdp": "1.47.4",
55
- "@ai-ecoverse/slicc-kernel": "1.177.0",
55
+ "@ai-ecoverse/slicc-kernel": "1.178.0",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.13.10",
57
57
  "@ai-ecoverse/slicc-spectrum": "2.10.0",
58
- "@ai-ecoverse/slicc-vault": "1.24.2",
58
+ "@ai-ecoverse/slicc-vault": "1.25.0",
59
59
  "@biomejs/biome": "2.6.4",
60
60
  "aws4fetch": "1.0.20",
61
61
  "es-module-lexer": "3.0.4",
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "description": "SLICC's agent, which the UI installs with pnpm in the background into /opt/agent in OPFS",
5
5
  "dependencies": {
6
- "@ai-ecoverse/slicc-agent": "7.28.0",
7
- "@ai-ecoverse/slicc-kernel": "1.177.0"
6
+ "@ai-ecoverse/slicc-agent": "7.28.3",
7
+ "@ai-ecoverse/slicc-kernel": "1.178.0"
8
8
  }
9
9
  }
@@ -14,19 +14,19 @@ importers:
14
14
  .:
15
15
  dependencies:
16
16
  '@ai-ecoverse/slicc-agent':
17
- specifier: 7.28.0
18
- version: 7.28.0(@ai-ecoverse/slicc-kernel@1.177.0)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
17
+ specifier: 7.28.3
18
+ version: 7.28.3(@ai-ecoverse/slicc-kernel@1.178.0)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
19
19
  '@ai-ecoverse/slicc-kernel':
20
- specifier: 1.177.0
21
- version: 1.177.0
20
+ specifier: 1.178.0
21
+ version: 1.178.0
22
22
 
23
23
  packages:
24
24
 
25
- '@ai-ecoverse/jerk-oauth@1.4.2':
26
- resolution: {integrity: sha512-XenbL8KPm7uAABy6eNl8COekMwHyWNaT7kGnaDN9VKjWCRvx2qoYgSSWbYy2fqRVqiYFZRbANDlXAEw6DGOuNA==}
25
+ '@ai-ecoverse/jerk-oauth@1.8.0':
26
+ resolution: {integrity: sha512-wWwsT1Di7DiVG5NAyeM9kJPwyjcrGecf4N+eYQg7i54p192aA4q0+7kFmeNSs5wpf4J3KA8xFmNTSHF5IBbVKg==}
27
27
 
28
- '@ai-ecoverse/slicc-agent@7.28.0':
29
- resolution: {integrity: sha512-SrSMPg7xH6fgc0JhgnPSGL7pJJM5MMzcR3SN0dY++9ym4ljJ7y7lFrCub9UKkJFoi7fKxj+5SHF54QkaHm5IbA==}
28
+ '@ai-ecoverse/slicc-agent@7.28.3':
29
+ resolution: {integrity: sha512-bjEGBarIfHSoR18z+7duiP/rlD3zLvpxyoYrZhBrAmKyWzuHgLFMczjW+iaQcds5VGoWZtGLU/7c4Yhy3T6gPQ==}
30
30
  engines: {node: '>=24'}
31
31
  peerDependencies:
32
32
  '@ai-ecoverse/slicc-kernel': '>=1.172.2 <2'
@@ -35,16 +35,16 @@ packages:
35
35
  '@ai-ecoverse/slicc-spectrum':
36
36
  optional: true
37
37
 
38
- '@ai-ecoverse/slicc-kernel@1.177.0':
39
- resolution: {integrity: sha512-tSUI1a9+0LsICjdp1Q6VbxvhYzVcBvebhhLN/4UxbGghKLaGPV2hPvoJuoyCaLsEnJ+6pJ8REXm1Qb0M2Iy/Gw==}
38
+ '@ai-ecoverse/slicc-kernel@1.178.0':
39
+ resolution: {integrity: sha512-fy22W+mDDKXVkM+h0nPqezfWl9xY2iaVfc7aK9dgNS0pL5Knwp2LMy29FytwxraDu75UuR4VzXLL55n09WcMWw==}
40
40
  engines: {node: '>=26'}
41
41
 
42
42
  '@ai-ecoverse/slicc-scrub@1.1.0':
43
43
  resolution: {integrity: sha512-HZ5qVnVez4B2UTP+UrHbYg6GnHJjpT09byt/HHJ8Y0IRk13q5Oj8rFFCme+R0T5h42ZlmwaNVI+n77VtSaCtuA==}
44
44
  engines: {node: '>=24'}
45
45
 
46
- '@ai-ecoverse/slicc-vault@1.24.0':
47
- resolution: {integrity: sha512-BN1EhKSF7Nk7Gkvsexh/4T29omim1Ag7PSg51/mH7Y7yP+oM+Bco3gJldgoJdvNLQu09brVIzy8DTEcWPgt6mg==}
46
+ '@ai-ecoverse/slicc-vault@1.24.2':
47
+ resolution: {integrity: sha512-uQfFVELijItT0wGAhJR9GOM8P4k9kFos65i54XLdyoQ/zvF1Hpt5pb/wbBWadS42X9wEbdxUdn+LpuGBbKBXWQ==}
48
48
  engines: {node: '>=24'}
49
49
 
50
50
  '@anthropic-ai/sdk@0.129.0':
@@ -349,12 +349,12 @@ packages:
349
349
 
350
350
  snapshots:
351
351
 
352
- '@ai-ecoverse/jerk-oauth@1.4.2': {}
352
+ '@ai-ecoverse/jerk-oauth@1.8.0': {}
353
353
 
354
- '@ai-ecoverse/slicc-agent@7.28.0(@ai-ecoverse/slicc-kernel@1.177.0)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
354
+ '@ai-ecoverse/slicc-agent@7.28.3(@ai-ecoverse/slicc-kernel@1.178.0)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
355
355
  dependencies:
356
- '@ai-ecoverse/slicc-kernel': 1.177.0
357
- '@ai-ecoverse/slicc-vault': 1.24.0
356
+ '@ai-ecoverse/slicc-kernel': 1.178.0
357
+ '@ai-ecoverse/slicc-vault': 1.24.2
358
358
  '@aws-sdk/middleware-websocket': 3.972.54
359
359
  '@earendil-works/chord': 1.5.0
360
360
  '@earendil-works/pi-ai': 1.5.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
@@ -377,13 +377,13 @@ snapshots:
377
377
  - ws
378
378
  - zod
379
379
 
380
- '@ai-ecoverse/slicc-kernel@1.177.0': {}
380
+ '@ai-ecoverse/slicc-kernel@1.178.0': {}
381
381
 
382
382
  '@ai-ecoverse/slicc-scrub@1.1.0': {}
383
383
 
384
- '@ai-ecoverse/slicc-vault@1.24.0':
384
+ '@ai-ecoverse/slicc-vault@1.24.2':
385
385
  dependencies:
386
- '@ai-ecoverse/jerk-oauth': 1.4.2
386
+ '@ai-ecoverse/jerk-oauth': 1.8.0
387
387
  '@ai-ecoverse/slicc-scrub': 1.1.0
388
388
 
389
389
  '@anthropic-ai/sdk@0.129.0':
@@ -10,7 +10,7 @@
10
10
  "@ai-ecoverse/slicc-browsers": "1.21.1",
11
11
  "@ai-ecoverse/slicc-capture": "1.4.2",
12
12
  "@ai-ecoverse/slicc-devices": "1.0.2",
13
- "@ai-ecoverse/slicc-kernel": "1.177.0",
13
+ "@ai-ecoverse/slicc-kernel": "1.178.0",
14
14
  "@ai-ecoverse/slicc-spectrum": "2.10.0",
15
15
  "@ai-ecoverse/wasi-fnox": "1.46.0-2",
16
16
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
@@ -72,9 +72,9 @@
72
72
  }
73
73
  },
74
74
  "node_modules/@ai-ecoverse/slicc-kernel": {
75
- "version": "1.177.0",
76
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.177.0.tgz",
77
- "integrity": "sha512-tSUI1a9+0LsICjdp1Q6VbxvhYzVcBvebhhLN/4UxbGghKLaGPV2hPvoJuoyCaLsEnJ+6pJ8REXm1Qb0M2Iy/Gw==",
75
+ "version": "1.178.0",
76
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.178.0.tgz",
77
+ "integrity": "sha512-fy22W+mDDKXVkM+h0nPqezfWl9xY2iaVfc7aK9dgNS0pL5Knwp2LMy29FytwxraDu75UuR4VzXLL55n09WcMWw==",
78
78
  "license": "Apache-2.0",
79
79
  "engines": {
80
80
  "node": ">=26"
@@ -7,7 +7,7 @@
7
7
  "@ai-ecoverse/slicc-browsers": "1.21.1",
8
8
  "@ai-ecoverse/slicc-capture": "1.4.2",
9
9
  "@ai-ecoverse/slicc-devices": "1.0.2",
10
- "@ai-ecoverse/slicc-kernel": "1.177.0",
10
+ "@ai-ecoverse/slicc-kernel": "1.178.0",
11
11
  "@ai-ecoverse/slicc-spectrum": "2.10.0",
12
12
  "@ai-ecoverse/wasi-fnox": "1.46.0-2",
13
13
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
@@ -21,8 +21,8 @@ importers:
21
21
  specifier: 1.0.2
22
22
  version: 1.0.2
23
23
  '@ai-ecoverse/slicc-kernel':
24
- specifier: 1.177.0
25
- version: 1.177.0
24
+ specifier: 1.178.0
25
+ version: 1.178.0
26
26
  '@ai-ecoverse/slicc-spectrum':
27
27
  specifier: 2.10.0
28
28
  version: 2.10.0
@@ -65,8 +65,8 @@ packages:
65
65
  resolution: {integrity: sha512-HVF7NUEZLIopswppBGUOA20HE6cK+Gjyo+UdSXJXm1qqmo5d/2w9GHeTtco4LH25ROFG6zPerzVTrcgfub/aCQ==}
66
66
  engines: {node: '>=24', slicc-kernel: '>=1.176.0'}
67
67
 
68
- '@ai-ecoverse/slicc-kernel@1.177.0':
69
- resolution: {integrity: sha512-tSUI1a9+0LsICjdp1Q6VbxvhYzVcBvebhhLN/4UxbGghKLaGPV2hPvoJuoyCaLsEnJ+6pJ8REXm1Qb0M2Iy/Gw==}
68
+ '@ai-ecoverse/slicc-kernel@1.178.0':
69
+ resolution: {integrity: sha512-fy22W+mDDKXVkM+h0nPqezfWl9xY2iaVfc7aK9dgNS0pL5Knwp2LMy29FytwxraDu75UuR4VzXLL55n09WcMWw==}
70
70
  engines: {node: '>=26'}
71
71
 
72
72
  '@ai-ecoverse/slicc-ortllama@1.28.0':
@@ -261,7 +261,7 @@ snapshots:
261
261
 
262
262
  '@ai-ecoverse/slicc-devices@1.0.2': {}
263
263
 
264
- '@ai-ecoverse/slicc-kernel@1.177.0': {}
264
+ '@ai-ecoverse/slicc-kernel@1.178.0': {}
265
265
 
266
266
  '@ai-ecoverse/slicc-ortllama@1.28.0':
267
267
  dependencies: