@ai-ecoverse/slicc-bios 2.10.0 → 2.10.2

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
@@ -568,7 +568,7 @@ Programs ask seven's page for what only a page can do through the kernel's `/dev
568
568
  - **Lifecycle records:** the last 500, in memory, of the previews seven published with the bridge: `{at, event: "connected"|"disconnected"|"emit", previewToken, connId, announced, origin?, userAgent?, connectedAt?, reason?, name?, detail?}`, with `name` cut to 200 characters and `detail` as JSON cut to 1,000. Each is also a further line of that preview's held `serve.publish` reply, which a `--foreground` `serve` prints. A stopped preview's records stay until truncated.
569
569
  - **`serve.logs`** (`{"kind":"serve.logs","previewToken"?}`): one JSON line per record, oldest first, of that preview or of every one the caller may see (its own uid's; root sees all). A token seven never bridged, or another uid's for a caller who isn't root, is `ENOENT`, `seven holds no preview <token>`. **`serve.truncate`** (same options) clears them, re-arms the first-visit announcement of each matching preview still held (`preview.state.update {announced: false}`) and answers `{"cleared","rearmed"}`.
570
570
  - **Refusals:** no serve hub (a seven off `*.sliccy.ai` without `slicc-os.serve-hub`) is `ENOTSUP`, `seven publishes previews only through the serve hub, and it has none here`; a tab that doesn't run the kernel (another seven tab of the same browser) is `ENOTSUP`, `seven publishes only from the tab that runs its kernel; run serve in that tab's terminal`; a socket to the hub that isn't up within 15 s (`seven isn’t connected to the serve hub yet; try again in a moment`), a hub that can't be reached and a bad `port`, `entry`, `maxTabs` or `previewToken` (`invalid port`, `invalid entry`, `invalid maxTabs`, `invalid previewToken`) are `EIO` with the reason. The kinds' policies are `{}`: the kernel admits a process of the session's own uid, so a cone's agent publishes in its own session, and `sudo -u cone` in root's terminal is refused before the page sees it. A remote follower's shell has no page hook, so `serve` there is `ENOTSUP` before the page sees it.
571
- - **Tests:** `test/integration/fake-serve-hub.mjs` is a serve hub with the hub's API, its socket protocol (flow control included), its labels as `<label>.localhost:<port>` and the bridge's injection and visitor sockets. `test/integration/previews.test.mjs` publishes `httptest` on it from a raw `/dev/embedder` request, checks the boot sweep (an orphan stopped, a snapshot and a preview of another tag kept), the mint, the chip, `serve.list`, a visit, a 404 from the server, a 300 000-byte POST echoed whole, a chunked event stream and a preview seven doesn't serve (404), then ends a preview every way (the program killed, the chip's Stop, the hub's revoke, `serve.stop`, a deleted host, which also gets the page a new one, the switch, a reload) and checks each one is stopped with its `stopped` line, that a cone's session lists none of root's previews and can't stop one, and that a hub's refusal comes back as the reply's `error` line; a seven without a hub refuses with `ENOTSUP`. `test/integration/previews-serve.test.mjs` installs `serve` from the catalog, runs `serve --local` and publishes its port: text, a 300 000-byte binary file, the server's own ranges (a window, a suffix, an unsatisfiable one), a 404 and a 25 MiB+1 file that comes through whole. `test/integration/previews-snapshot.test.mjs` sends `serve.snapshot` bodies from the terminal: three files (a 70 000-byte binary among them) uploaded with the host's bearer and their types and finalized, the reply, `serve.list` before and after a reload whose boot sweep stops an orphan and not the snapshot, an upload the hub refuses (`during: "upload"` with its path, then stopped), a body that announces fewer bytes than it carries (`EIO`, stopped), a refused mint, a program killed while the hub holds its finalize (the finalize is released once the program is gone from `ps`; the snapshot is stopped and not kept), the switch off, a `serve.stop` the hub fails (non-zero, and `serve.list` still shows the snapshot), and a second `serve.stop`, after which the hub no longer serves it and `localStorage` keeps no snapshot.
571
+ - **Tests:** `test/integration/fake-serve-hub.mjs` is a serve hub with the hub's API, its socket protocol (flow control included), its labels as `<label>.localhost:<port>` and the bridge's injection and visitor sockets. `test/integration/previews.test.mjs` publishes `httptest` on it from a raw `/dev/embedder` request, checks the boot sweep (an orphan stopped, a snapshot and a preview of another tag kept), the mint, the chip, `serve.list`, a visit, a 404 from the server, a 300 000-byte POST echoed whole, a chunked event stream and a preview seven doesn't serve (404), then ends a preview every way (the program killed, the chip's Stop, the hub's revoke, `serve.stop`, a deleted host, which also gets the page a new one, the switch, a reload) and checks each one is stopped with its `stopped` line, that a cone's session lists none of root's previews and can't stop one, and that a hub's refusal comes back as the reply's `error` line; a seven without a hub refuses with `ENOTSUP`. `test/integration/previews-serve.test.mjs` installs `serve` from the catalog, runs `serve --local` and publishes its port: text, a 300 000-byte binary file, the server's own ranges (a window, a suffix, an unsatisfiable one), a 404 and a 25 MiB+1 file that comes through whole. `test/integration/previews-snapshot.test.mjs` sends `serve.snapshot` bodies from the terminal: three files (a 70 000-byte binary among them) uploaded with the host's bearer and their types and finalized, the reply, `serve.list` before and after a reload whose boot sweep stops an orphan and not the snapshot, an upload the hub refuses (`during: "upload"` with its path, then stopped), a body that announces fewer bytes than it carries (`EIO`, stopped), a refused mint, a program killed while the hub holds its finalize (the finalize is released once the program is gone from `ps`; the snapshot is stopped and not kept), the switch off, a `serve.stop` the hub fails (non-zero, and `serve.list` still shows the snapshot), and a second `serve.stop`, after which the hub no longer serves it and `localStorage` keeps no snapshot. A second test keeps a snapshot minted on the tray hub (its entry has a `trayId`) and checks that `serve.stop` fails with the message that it lives on the tray hub and that `serve.list` still shows it.
572
572
  - **Bridge trust tests:** `test/integration/bridge-trust.test.mjs` (node only) has one row per check that a visitor or the hub's messages can't pass: an unknown token on `bridge.connected`, an emit without the right token or a live connection (a beacon's included), one from a lingering tab whose preview is gone, an emit name with control characters, a `serve-<16 hex>` `webhook.event` through the tray, an oversize or deeply nested emit, an answer from another visitor's connection, an answer over 25 MiB, another visitor's object handle, a forged `preview:<token>:<conn>`, `Target.createTarget`, a duplicate `bridge.connected`, a replay, a tab the hub didn't replay after a relink, a replay under another token, a claimed URL, origin, user agent or title, a getter run by `Runtime.getProperties` (and only accessors listed with `accessorPropertiesOnly`), a resolved node's handle that its group's release keeps (or another group's drops), and a called function that sees the bridge's own names. A mutant whose text isn't in the source fails its run instead of passing it. Each row runs again against a mutant of the code with its check removed (applied at import by a module hook), and that run must fail. Two more run the bridge through the guard on the `preview` route: what it refuses before the visitor sees it, and a visitor claiming a protected origin and URL next to a real browser (the fixture of the guard tests), whose real targets keep their decisions.
573
573
  - **Relay tests:** `test/integration/previews-relay.test.mjs` publishes `relay-fixture` (`test/integration/fixtures/relay-fixture/`, a kernel JS server that echoes what it gets and answers silently, stalls, drips, redirects and sends large bodies on cue) on the fake serve hub and checks through visits and the hub's socket: the visitor's `Cookie`, both `Set-Cookie` lines, the method, query and body, `Host`, `X-Forwarded-Host` from the minted host even when the request names another, a redirect on the port made a path and one elsewhere kept; `400` for a malformed request, `405` for `CONNECT` and `TRACE` and `404` for a preview seven doesn't serve, none of them dialing; a body cut at its `Content-Length` with nothing after it reaching the port; sixteen silent streams answered `504` after 25 s and their connections closed, a seventeenth refused with `503` without a dial, a stream idle for 25 s cut and its connection closed, one that sends for 35 s kept whole; a 70 MiB answer to a visitor that pauses reading, with at most 1 MiB unacknowledged; and a preview's stream ended when the preview ends.
574
574
  - **Relay trust tests:** `test/integration/serve-trust.test.mjs` (node only) has one row per bound of the relay, each run again against a mutant without its check, which must fail: a message's own `port` or `host` never reaches the dial, a token seven doesn't hold dials nothing, a head that doesn't come is `504` with the connection closed, a stalled body is cancelled while one that keeps sending past 120 s stays and arrives whole, the stream caps answer `503` without a dial, an answer of 65 MiB streams through with at most the 1 MiB window in flight, a body longer than its `Content-Length` goes on only up to it, `CONNECT` and `TRACE` are `405`, `X-Forwarded-Host` is the minted host, and unpublishing closes the preview's streams.
@@ -646,6 +646,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
646
646
  - **Credential origins (the identity provider seven signs in with):** the Adobe IMS hosts seven signs in with (`https://ims-na1.adobelogin.com` and `https://ims-na1-stg1.adobelogin.com`, from `os/adobe.js`) keep their cookies and web storage out of export on every route, always, and the guard fails closed. The guard reads slicc-browsers' `catalog.credentialOrigins` list, which names the same two hosts, and keeps the IMS hosts from `os/adobe.js` as a floor: a later catalog can add hosts, but one that leaves an IMS host out doesn't reopen its export, and a change to the host seven signs in with is covered without waiting for a catalog release. A `credentialOrigins` field the guard can't read (not a list of origins) makes it withhold the cookies and storage of every origin. A URL or origin is a credential origin when its host is one of those hosts (`http` or `https`, any port); a cookie domain or a top-level site is one when it covers one of them (`adobelogin.com` does; `x.ims-na1.adobelogin.com`, `other.adobelogin.com` and `.adobe.com` don't). Cookie lists (`Network.getCookies`, with or without `urls`, `Network.getAllCookies`, `Storage.getCookies`, `Page.getCookies`) leave out those cookies, partitioned cookies under such a site and any cookie without a domain. Cookie writes and deletes naming one by `url`, `domain` or `partitionKey` (`Network.setCookie`, `setCookies`, `deleteCookies`, `Page.deleteCookie`, `Storage.setCookies`) are refused with the catalog's `credentialOrigins.refusal` text, and so is every `Storage.*`, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*` and `FileSystem.*` command whose origin, storage key (its top-level site too), cache id or site names one, or can't be parsed. `Network.clearBrowserCookies` and `Storage.clearCookies` keep the rule above. `Storage.getAffectedUrlsForThirdPartyCookieMetadata` leaves those URLs out, and storage events naming one are dropped. `Cookie` and `Set-Cookie` headers, `headersText` lines and `associatedCookies`, `blockedCookies` and `exemptedCookies` are stripped from the `Network` and `Fetch` events of a request whose URL, at any hop, is on such a host's site (a parent-domain cookie reaches every host there), and of a request the guard hasn't seen a URL for. On any other request those lists still leave out an entry whose cookie, or whose `Set-Cookie` line's `Domain` (quoted or not, any case), names a credential or protected origin, an entry whose `Domain` isn't a host name, and an entry with neither a cookie nor a line. An `Audits.issueAdded` cookie issue is dropped when its cookie URL, request, cookie domain or raw `Set-Cookie` line names a protected or credential origin, or when the raw line's origin can't be told. The pages stay drivable: they are listed and attachable, and navigation, `Runtime`, `DOM`, `Input`, `Page` and screenshots work as on any ordinary page, because stock clients sign in by filling and clicking the IdP's page through script. So in-page script (`Runtime.evaluate`, Playwright locators) can still read the non-HttpOnly cookies (`document.cookie`), `localStorage`, `sessionStorage` and IndexedDB of those origins, and response bodies, OAuth codes in URLs and `Authorization` headers on a drivable IdP page are not withheld. A sign-in URL that names seven's client or callback stays protected as a whole, as above. The catalog lists the two Adobe IMS hosts as credential origins: their cookies and storage cannot be exported. The Adobe login-UI hosts (`auth.services.adobe.com`, `adobeid-na1.services.adobe.com`) and federated corporate SSO, MFA and consent hosts are not covered: pages on them are drivable and their cookies and storage are exportable, `Domain=.adobe.com` cookies included, because listing a login-UI host would have made every `.adobe.com` cookie a credential cookie. A host added to the catalog's `credentialOrigins` reaches bios with the pinned slicc-browsers release.
647
647
  - **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. One the guard couldn't prove when it attached (its first read named no URL because it was mid-navigation, or a read failed) is held the same way: the guard checks it again, from the start (URL, protected origins, opener, content proof), at its next navigation or target info change, and every 100 ms while its URL is unread; a protected commit cuts it at once, and if it isn't proved within 10 s it is cut, with its tab's `Target.detachedFromTarget` and `Target.targetDestroyed` and, unless the program holds another session on it, the target's `Target.targetDestroyed`. A session that detaches meanwhile isn't read again. A content read is proved through any session the guard holds on the target, the shown ones first. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
648
648
  - **Cut sessions:** a session whose target becomes protected (`Target.targetInfoChanged`), whose page or any frame in it is about to navigate or navigates to a protected URL (`frameRequestedNavigation`, `frameScheduledNavigation`, `frameStartedNavigating`, `frameNavigated`, `navigatedWithinDocument`, or a `Document` request), or whose context runs on a protected origin is detached at once, without the event, and its target counts as protected from then on. Any other page event that names a protected URL or origin is dropped. Its later events and the answers to its pending commands are dropped, and its commands are refused. The guard watches each session's `Page` events itself, and passes them on only when the program asked for them.
649
+ - **Target info changes on an ordinary page:** Chrome sends `Target.targetInfoChanged` several times while a page loads (its title, its URL). For one whose URL is ordinary and whose target isn't held or guarded, the guard waits up to 5 s for `Target.getTargetInfo` before it judges the target, since a page loading hundreds of requests over the link can keep that answer past the 1 s answer window; a protected URL is judged within 1 s as before. A target it can't confirm in that time is checked again from its frame tree; during an ordinary check that takes longer, commands keep flowing; if the check times out, the session is quarantined and reads are refused until the recheck. That check accepts child frames that haven't loaded a document yet (`url` empty, such as a `loading="lazy"` iframe below the fold, which stays that way until it's scrolled into view) under an ordinary root, as the check on attach does, so a page with a YouTube embed far down isn't cut for good. Keeping the session open doesn't make the child readable: whole-page DOM reads and screenshots are still refused until every frame is identified. A protected frame or root still cuts the session.
649
650
  - **Requests from protected documents:** a request whose URL, document, frame, initiator, `Referer` or `Origin` is protected never reaches the program. The guard continues its `Fetch` pause itself, drops its `Network` events, and refuses its bodies (`Network.getResponseBody`, `getRequestPostData`, `Fetch.getResponseBody` and the like). Bodies, `replayXHR` and `Fetch` replies for a request the guard hasn't seen are refused too. Extra-info events that come before their request wait up to 2 s for it, then are dropped.
650
651
  - **Interception goes through `Fetch`:** the deprecated `Network` interception commands (`Network.setRequestInterception`, `continueInterceptedRequest`, `getResponseBodyForInterception`, `takeResponseBodyForInterceptionAsStream`) are refused before Chrome, with a text that says to use `Fetch` instead. A `Network.requestIntercepted` for a protected request never reaches the program; the guard continues it itself, the way it continues a protected `Fetch` pause.
651
652
  - **Cookies a `Fetch` reply sets:** `Fetch.fulfillRequest` and `Fetch.continueResponse` are refused when a `Set-Cookie` or `Set-Cookie2` line (any case, in `responseHeaders` as a list or a map, in base64 `binaryResponseHeaders`, with values split at line breaks) has a `Domain`, quoted or not, that covers a protected host, and when the guard can't read those headers: another shape, a value that isn't a string, a header name that isn't a token, a line break in another header, base64 it can't decode or a `Domain` that isn't a host name. A `responsePhrase` with a CR, LF or NUL, or one that isn't a string, and a `responseCode` that isn't an integer are refused too, and a phrase with a colon has its `Domain` attributes checked the same way. The whole command is refused, never a stripped copy, and the pause can still be answered. A cookie without `Domain` is host-only, so it reaches a protected host only on a protected request, whose replies are already refused. The same check covers the credential origins below ([#1632](https://github.com/ai-ecoverse/slicc-bios/issues/1632)): a `Domain` that covers one of their hosts is refused, and so is any `Set-Cookie` line in a reply to a request on one of their hosts, or to a request whose URL the guard didn't see, because a host-only cookie there is theirs.
@@ -666,7 +667,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
666
667
 
667
668
  - **Known limit:** slicc-extension 7.12.0 and later expose `sliccExtension.frames(tabId)`, and seven hands it to the guard, so an ordinary page with a cross-site iframe is placed and stays drivable. An older extension (7.10.0 and 7.11.x, which seven still supports) has no `frames()`, so the guard can't place the cross-site child and fails closed: the page stays locked for paint, DOM, CSS, accessibility and input, while Runtime reads still work. Once the cross-site frame is gone, the page is drivable again. `guard-paint-extension-frameless.test.mjs` asserts that limit. Extensions before 7.15.0 lock a page with an error iframe on the extension route the same way: they report the failed frame only as `kind: 'error'`, without `errorProtected`, so the guard keeps the lock. From 7.15.0 only protected error frames lock: an error entry with `errorProtected: false` counts as ordinary and the page is placed, while `true`, missing or anything else keeps the lock, and a protected frame next to it revokes the page. `guard-extension-error-frame.test.mjs` keeps the lock row for the older fake (`OLDER_FAKE`, 7.12.2) and the place and lock rows for the fake at the current extension version (`CURRENT_EXTENSION`). The shared vectors gate `C8.iframe-error` on that capability (`errorFrameClass`, slicc-browsers 1.27.3): the DevTools and link paths declare it and run the row, and the extension path declares it when the fake states 7.15.0 or later (`sendsErrorProtected`), so C8.iframe-error runs there with both variants while a protected error iframe stays locked.
668
669
 
669
- **Sign-in tabs are held for life (#754).** A sign-in popup shows its token or code in its URL and on the IdP's pages, and the guard cannot scrub a page's own content. The owner holds it before sign-in starts. A held tab and its descendants are not listed, attached, auto-attached or reported to a program on any origin until they close. bios's own tests and real-Chrome rows check the hold; the shared `C7.sign-in-hold` vectors of slicc-browsers can't measure it until the sign-in hooks (slicc-browsers#318) ship, so the guard-set harness declares `signInHold` false until then, and #1641 sets it true with the hooks.
670
+ **Sign-in tabs are held for life (#754).** A sign-in popup shows its token or code in its URL and on the IdP's pages, and the guard cannot scrub a page's own content. The owner holds it before sign-in starts. A held tab and its descendants are not listed, attached, auto-attached or reported to a program on any origin until they close. bios's own tests and real-Chrome rows check the hold, and the shared `C7.sign-in-hold` vectors run through the guard-set harness with `signInHold` declared on the DevTools and extension paths. The harness declares `signInHold` false on link (`not-supported:signInHold`): production holds a linked sign-in through a baseline (`askBase` → open → `askHold` with `based: true`), and the shared vectors' ask hook opens the popup first with no baseline step, so that path cannot answer the hold faithfully until slicc-browsers offers a prepare / baseline hook.
670
671
  - **Seven's own sign-in:** the popup opens on `about:blank#slicc-sign-in-<nonce>`. bios asks the owner over the `slicc-held` BroadcastChannel to hold it. The owner finds that target by its marker URL on each browser host (slicc-extension, a DevTools port, and a `seven: true` browser from a CLI linked on this computer), holds it, and only then is the popup sent to the IdP. slicc-cli's link guard shows seven's own popup to bios as plain `about:blank`, without the marker, so on a linked browser the owner goes by a baseline instead. Before it opens the popup, the sign-in asks the owner for a baseline (`{ type: 'base', marker }`). The owner lists every linked browser and keeps the ids it saw for that marker. Only then does it answer `based`, and only then does the sign-in open the popup. Its hold ask then says `based: true` and `expect: 1`, the number of popups the sign-in opened. On each linked browser, the owner holds, as soon as it sees them, every page on `about:blank` that one of seven's or the vault's pages opened and that wasn't in the baseline. Every listing it takes starts after `window.open` has returned. It answers `held` only when two listings in a row show the same new pages, the number of new pages it has seen in all equals `expect`, and all of them are held. If it sees more new pages than that, such as a blank another seven page opened at the same moment, it can't tell which one is the sign-in. It keeps them all held and answers `unheld`, so the sign-in stops before the IdP, and trying again works. If it sees fewer by the end of the hold's 5 s, it answers `unheld` too. `held` means the owner holds as many new pages as the sign-in opened, not that the popup is one of them: a blank another seven page opened, listed alone in two listings in a row while the popup isn't listed yet, gets `held` too. So when a linked browser took part in the ask, a `held` answer also puts the sign-in in flight, as a linked flight. The flight rule for it applies only on linked browsers: while a linked flight is on, the watcher and the sweep on a linked browser, and a program's guard on the link route, hold for life every page that one of seven's or the vault's pages opened, cross-origin pages included, as soon as they see it. A program's guard on slicc-extension and a DevTools port honours a `none` flight, as the watcher and sweep there do, but a linked flight changes nothing on those hosts, so a tab seven opens there, noopener included, stays listed and drivable as before, and their sign-in tabs are held by the marker. So the popup is held on whatever page it is first seen on: the authorize URL, a landing page IMS redirected to before anything listed it, or the login page. That doesn't depend on its URL naming seven's client id or callback, and its later pages (login, MFA, consent) stay held. The other page's blank that got the answer stays held as well: a hold is never released (#754), and the opener rules hold a protected `about:blank` anyway. A protected `about:blank` page that was already open, such as a leftover vault, MCP or sprinkle popup, is no longer taken for the sign-in, and the sign-in's hold doesn't take it. The owner takes one baseline at a time: the next sign-in's baseline waits until the previous sign-in's hold is answered, or 5 s after its baseline when no hold came, so an overlapping sign-in's baseline already lists the earlier popup. The sign-in fails closed in each of these cases: no `based` answer within 6 s while bios sees a host; a linked browser the owner couldn't list at the baseline, or one that wasn't there then; a baseline that was lost or expired; no new protected `about:blank` within the 5 s. Each says it couldn't keep the window out of reach. The marker hosts (slicc-extension, a DevTools port) still go by the marker, as before, and ignore the baseline. A hold ask without `based`, such as the agent's MCP OAuth and device-code popups, still holds every protected `about:blank` page on a linked browser, as before. The sweep, the watcher and the guard then treat a held tab on a linked browser as on the other hosts: it isn't listed, attached or read on any later page until it closes. The owner answers `held` once it has held the tab on every listed host, `none` when no host is listed, and `unheld` otherwise, including when a listed host can't be opened. On `unheld`, on `none` while bios sees a host, or on no answer within 6 s while a host is connected, the sign-in stops before the IdP and says so; it never goes on unheld. On `none`, the sign-in goes on in flight too, as before: that flight counts on every host, for the watcher and the sweep. A flight is kept per marker in `localStorage` (`slicc-os.sign-in-flight`, so a reload keeps it) for at most 11 minutes, with whether it is linked. An older bios's plain number still counts on every host; an entry that doesn't say whether it is linked counts as linked. The reverse doesn't hold: an older bios still running in another seven tab can't read the new entries and sees no flight, which only matters while tabs of both versions are open during an update. Seven's sign-in ends its own flight when it ends (its token, an error, Cancel or the timeout), so one sign-in ending doesn't end another's, in this tab or another. Before any program gets a browser connection, the owner sweeps every host: it holds sign-in tabs still on `about:blank`, and while a sign-in is in flight, every page a protected page opened. So a host that connects in the middle of a sign-in never sees its tab.
671
672
  - **Sign-in pages by their URL:** a page whose URL names seven's callback (`www.sliccy.ai/auth/callback`) or a client id seven signs in with is protected, also when the URL is percent-encoded up to five times or nested in another URL. On the link route, slicc-cli's link guard has already cut a protected URL inside another URL down to its origin, so `redirect_uri=https%3A%2F%2Fwww.sliccy.ai%2Fauth%2Fcallback` reaches bios as `redirect_uri=https://www.sliccy.ai`. On that route only, `https://www.sliccy.ai` or `www.sliccy.ai` on its own inside a URL (followed by `?`, `&`, `#`, `;`, a space or the end) counts as seven's callback too, so such a sign-in page stays hidden without the hold. A page there that only links to seven's home page is hidden too, and other `sliccy.ai` addresses aren't affected. On every route (a DevTools port, the link route and slicc-extension), a URL whose `redirect_uri` parameter names seven's bare origin `https://www.sliccy.ai`, with or without a trailing slash or a path, plain or percent-encoded up to five times, counts as seven's callback too (#1638), which also hides any other page whose URL carries such a `redirect_uri`, for example a link back to seven on another site. Such a URL only hides a page while the page is on it, also one that seven or the vault opened: once it leaves, it is listed again, unless a flight rule above held it.
672
673
  - **Puppeteer and a held tab:** over the DevTools port and the link, Chrome attaches a held tab's `tab` target before the guard knows which page it holds. When the guard cuts that tab's session on the browser session (its page is held or protected, on the tab's first command or later, or the tab's own address is protected at its attach), it reports `Target.detachedFromTarget` if the client saw it attach and `Target.targetDestroyed` in every case, once, so Puppeteer's connect, which waits for every tab it saw attach to get a page or go away, finishes while a sign-in is held.
@@ -961,6 +962,7 @@ No test calls a real model. Every test serves an empty `packages/agent/` project
961
962
 
962
963
  - **Pull requests:** after lint, the pipeline's `deploy` job publishes a `bb/**` branch's preview (see [Hosting](#hosting)); the tests and reviewers get its URL as `STAGING_URL`.
963
964
  - **Pull requests and the merge queue:** lint, then every `test/integration/*.test.mjs` split by the last runs' JUnit timings over 12 pool shards (`ci / integration`), then on a pull request the Claude and Codex reviews (`ci / review`) with this repository's `review-prompt`. The shared guard vectors run as one file per path (devtools, extension, link), target group (`seven`, `vault`, `vault-x`, `apex` and the rest, `test/integration/guard-groups.mjs`) and detach variant (`lagging` or the others), 30 files of 2 to about 12 minutes, so the split can balance them. Each path's guard gets the route bios's browser hook gives it: none (`devtools`) over the DevTools port, the linked browser's own route for the link, and `{ kind: 'extension', version }` with the per-browser tab records and the extension's `frames()` for the extension. The run fails before any row if `Browser.getVersion` through the guard doesn't answer `slicc.route` equal to the path, and prints that answer as `GUARD-ROUTE`, and next to it `GUARD-FRAMES hook <path> {route, frames, version}`: the route, whether the guard got a `frames()` hook, and the extension version the page states. Every other test that builds a guard over an extension or linked transport passes the route the browser hook would, through `guardRoute` in `test/integration/guard-route.mjs` in Node or the page's own extension or linked browser route in the page, and `guard-route.test.mjs` fails when one doesn't. The fake extension states the version the real-extension tests run (`CURRENT_EXTENSION` in `test/integration/real-extension.mjs`), which also puts the Debugger route (7.12.0 and later) under test, and answers `frames()` with the contract of ai-ecoverse/slicc-extension's `extension/cdp.js` (`frames()` and `frameReply()`): a version 2 reply with each frame's `kind`, and, only when every frame is ordinary, `rootFrameId`, the frame ids, the local frames and the cross-process owners (`frameId`, `backendNodeId`); an unsettled or failed list is refused with `slicc: refused: unsettled frame list`. Stating 7.15.0 or later it sends `errorProtected` on each error frame, computed from the failed URL as the extension does (`false` only for a plain `http(s)` address that isn't protected and has no `redirect_uri=`, `client_id=` or `/auth/callback` marker after up to 8 percent-decodes), and an error frame marked `false` counts as ordinary; then the extension route declares `errorFrameClass`, so C8.iframe-error runs there. Stating an older version (`OLDER_FAKE`, 7.12.2, the contract from v7.12.0 to v7.14.3) it refuses a list with an error frame, as those releases do, and `guard-extension-error-frame.test.mjs` keeps the lock row for it. `test/integration/fake-extension-frames.mjs` builds it from a separate browser-level connection, the way the extension's service worker reads outside the page's CDP stream. One difference: the real extension is called with a numeric tab id (`extension.frames(Number(targetId))` in `cdp.js`), while the fake's targets are Chrome target ids, so the harness passes the target id as it is. The frames-less limit row runs a fake at `MIN_EXTENSION_VERSION` (7.10.0) without `frames()`. The slicc CLI tests use `node_modules/.bin/slicc` (or `SLICC_CLI`).
965
+ - **Guard-set capabilities:** `test/integration/guard-set.mjs` hands the runner each path's capabilities (`PATHS`), and a row that needs one a path lacks is skipped as `not-supported:<capability>`, which the shared set counts as complete; a skip for a missing observer, a missing row, a failure or an incomplete row fails it. The extension path is bios's extension hook (`extensionConnection`) over a raw browser-level Chrome socket that stands in for `chrome.debugger`; it keeps `autoAttach` for the popup, tab, cross-site iframe and worker rows it passes, and `syntheticAutoAttach` for the `.synthetic` tab rows. The DevTools and extension paths declare `signInHold` (#1574 holds sign-in popups and hides callback-only authorize tabs on each) and `browserSession`, so the `C7.sign-in-hold.*` rows run there; the link path declares `signInHold` false, so those rows stay `not-supported:signInHold` as on main until the shared vectors can offer a baseline step before the popup opens. The guarded client's `signInHold.ask({ marker, hostLabel })` hook calls `askHold(marker)` in seven's page on bios's origin (`src/seed/held.js`), the hold decision a real sign-in reaches, and returns the owner's answer (`held`, `unheld` or `none`); a real sign-in also takes a baseline first (`askBase` → open → `askHold` with `based`), which only matters where the listing hides the marker (link). A `BroadcastChannel` doesn't cross origins, so the fixture's seven page can't ask bios itself. Only the DevTools path declares `jsonList`: its guarded `jsonList()` is the listing the kernel's `9222` facade serves as `/json/list` on that route (a fresh guarded connection to the DevTools host, `Target.getTargets`, mapped to `id`, `type`, `title` and `url`). When that listing is unreachable the leg is incomplete, not excluded. Extension and link leave `jsonList` undeclared, so an unavailable listing is not-supported and excluded. The unguarded observer's `jsonList()` reads Chrome's own `/json/list` on every path. The `ordinary-popup` and `ordinary-authorize` rows check that ordinary popups and authorize pages stay listed and drivable. The `.page` rows (`C3.protected-parent-iframes.page`, `C3.protected-parent-srcdoc.page`, `C3.ordinary-parent-iframes.page`) need `iframeAutoAttach`, auto-attach of non-tab iframe targets under a page session. The DevTools and link paths declare it and run them. The extension path declares it false and skips them as `not-supported:iframeAutoAttach`: the hook emulates tab auto-attach only, and `chrome.debugger` attaches no cross-site iframes or workers (see "Auto-attach through slicc-extension" above), so the grandchild, which is its own iframe target, can't be reached there. The `.page` security rows meet the content lock above as a refused top-session `Runtime.enable` or attach; the vectors count a `slicc: refused:` top-session reply as protection unless the inline ordinary-nest check shows the guard over-blocks an ordinary nest too. The skips the paths keep are real gaps: `siteIsolationOff` (CI's Chrome keeps site isolation), `secureOrigin` (the fixture serves plain HTTP, so no service workers), `closeProtected` (the guard refuses `Target.closeTarget` on a protected tab), `syntheticAutoAttach` on the DevTools and link paths (they forward Chrome's own auto-attach), `inboundDelay` on the link path (the `C8.protected-bfcache-restore` rows run on the DevTools and extension paths), `extensionFrame` off the link path and `chromeUrlsAttach` on the extension path. `not-applicable:no-ordinary-same-site-origin` has no ordinary origin same-site with a protected target, since every `sliccy.ai` host is protected, and plain `not-applicable` is the vectors' own target and scope rules.
964
966
  - **`main`:** semantic-release publishes the npm package (see [The npm package](#the-npm-package)). When it releases, the pipeline's `after-release` publishes that version to seven, in the `production` environment (see [Hosting](#hosting)).
965
967
 
966
968
  Require `ci / integration` and `ci / review`. There is no retry: a flaky test fails the run. The separate `vault drift` workflow is not required.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
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,14 +52,14 @@
52
52
  "@ai-ecoverse/cherry": "6.260.21",
53
53
  "@ai-ecoverse/slicc": "1.69.4",
54
54
  "@ai-ecoverse/slicc-browsers": "1.32.0",
55
- "@ai-ecoverse/slicc-cdp": "2.1.16",
55
+ "@ai-ecoverse/slicc-cdp": "2.1.17",
56
56
  "@ai-ecoverse/slicc-kernel": "1.191.4",
57
57
  "@ai-ecoverse/slicc-shared-web": "2.17.0",
58
58
  "@ai-ecoverse/slicc-spectrum": "2.19.4",
59
59
  "@ai-ecoverse/slicc-vault": "1.30.1",
60
60
  "@biomejs/biome": "2.6.7",
61
61
  "aws4fetch": "1.0.20",
62
- "es-module-lexer": "3.0.4",
62
+ "es-module-lexer": "3.0.5",
63
63
  "fake-indexeddb": "6.2.8",
64
64
  "lefthook": "2.2.2",
65
65
  "modern-tar": "0.8.6",
@@ -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": "8.2.1",
6
+ "@ai-ecoverse/slicc-agent": "8.2.2",
7
7
  "@ai-ecoverse/slicc-kernel": "1.191.4"
8
8
  }
9
9
  }
@@ -14,16 +14,16 @@ importers:
14
14
  .:
15
15
  dependencies:
16
16
  '@ai-ecoverse/slicc-agent':
17
- specifier: 8.2.1
18
- version: 8.2.1(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
17
+ specifier: 8.2.2
18
+ version: 8.2.2(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
19
19
  '@ai-ecoverse/slicc-kernel':
20
20
  specifier: 1.191.4
21
21
  version: 1.191.4
22
22
 
23
23
  packages:
24
24
 
25
- '@ai-ecoverse/slicc-agent@8.2.1':
26
- resolution: {integrity: sha512-MMVPwXeMVDJN30m1h5IXPdNizOpyD0NneQn/mQTmPUD1Ps2i7SMjYduUgZILogm7mlB4ekdhr85XuE48QGK3UA==}
25
+ '@ai-ecoverse/slicc-agent@8.2.2':
26
+ resolution: {integrity: sha512-0nfA/PZy/P3Bggk69VQY9mky0qxn9OEJQuvyRqhm6sf7BO3tmX838deAsmczqaXU3mcOyTprxDsex0uL6OgClw==}
27
27
  engines: {node: '>=24'}
28
28
  peerDependencies:
29
29
  '@ai-ecoverse/slicc-kernel': '>=1.172.2 <2'
@@ -343,7 +343,7 @@ packages:
343
343
 
344
344
  snapshots:
345
345
 
346
- '@ai-ecoverse/slicc-agent@8.2.1(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
346
+ '@ai-ecoverse/slicc-agent@8.2.2(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
347
347
  dependencies:
348
348
  '@ai-ecoverse/slicc-kernel': 1.191.4
349
349
  '@aws-sdk/middleware-websocket': 3.972.54