diff --git a/.claude/skills/ci/SKILL.md b/.claude/skills/ci/SKILL.md index 8283867bf..a737ef24a 100644 --- a/.claude/skills/ci/SKILL.md +++ b/.claude/skills/ci/SKILL.md @@ -553,7 +553,7 @@ code. The easy fixes (a sleep, a retry, a looser assertion) turn CI green and hi ```bash gh pr view "$PR" --json reviews,comments -q '.reviews[] , .comments[] | "\(.author.login): \(.body[0:200])"' - gh api "repos/parawanderer/window-ml/pulls/$PR/comments" -q '.[] | "\(.user.login) \(.path):\(.line): \(.body[0:200])"' # inline review comments + gh api "repos/wanderdev0/window-ml/pulls/$PR/comments" -q '.[] | "\(.user.login) \(.path):\(.line): \(.body[0:200])"' # inline review comments ``` Anything there is answered before the merge: fixed on the branch, or replied to with why not. A bot's comment diff --git a/.claude/skills/pyodide-build/SKILL.md b/.claude/skills/pyodide-build/SKILL.md index 2475e6c3a..8162c1e28 100644 --- a/.claude/skills/pyodide-build/SKILL.md +++ b/.claude/skills/pyodide-build/SKILL.md @@ -20,7 +20,7 @@ node scripts/fetch-pyodide-wheels.mjs --core /pyodide-restricted- npm run build && node scripts/test.mjs python && npx playwright test tests/e2e/python-stream.spec.mjs # 3. publish on the fork, then put the sha256 (and tag/url) in tools/pyodide-dist.json -gh release create -R parawanderer/cpython --target --notes "" +gh release create -R wanderdev0/cpython --target --notes "" # 4. After a bump, IN THE SAME PR: rerun the package oracle, or tests/pkg-verdict.test.mjs stays red on its pin test. # About 3 h of queued probes plus ~15 min unqueued; the packages lane reviews the new data. Fresh directories for both: diff --git a/AGENTS.md b/AGENTS.md index 640f000fa..c56aa32df 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -28,7 +28,7 @@ file` finds the path: | `hub/` (+ `hub/runtime/`), `pairing/`, `archive/`, `chat/`, `native/`, `proto/` | as named; `hub/runtime/` is this browser AS a runtime | | `sidebar/` (+ `resource/`, `transcript/`, `card/`, `code/`, `export/`, `settings/`) | the panel, by view | | `gallery/` | the component gallery's page (`gallery.mjs`, the `gallery` skill) | -| `shell/` | what describes a call to `ml.sh`: program manifests (`manifests/.json`) and `describeCall`; the process host itself is [window-ml-host](https://github.com/parawanderer/window-ml-host) | +| `shell/` | what describes a call to `ml.sh`: program manifests (`manifests/.json`) and `describeCall`; the process host itself is [window-ml-host](https://github.com/wanderdev0/window-ml-host) | | `pdf/` | reading a PDF page by page with pdf.js: the measurements, the classifier, the reader, the worker the offscreen document starts (`pdf-*`) | | `backup/` | the backup and archive-folder file format: compression, encryption, keys | | `lab//` | LAB code: research that lives here but is not for window.ml (`lab/gradient/`). Each topic imports nothing outside its folder (`tests/lab.test.mjs`), has a `docs/spec/` file, and its PRs carry `@lab` | @@ -284,7 +284,7 @@ CPython), which a green local `npm test` is not. Why each of these: `docs/dev/wo ## Forked backends (patched servers) -Several capabilities need `parawanderer/ollama` (branch `slop`) or `parawanderer/open-webui` (branch +Several capabilities need `wanderdev0/ollama` (branch `slop`) or `wanderdev0/open-webui` (branch `ml/tool-execute-api`); each is optional and absent means "not reported". **Read `docs/FORKED-BACKENDS.md` before assuming a resource-panel field is broken.** Hints go through `wireHint`; **an absent `use` means unknown, never guess.** diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 54d4354d4..47a295f43 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,7 +25,7 @@ Optional, and only for the things that need them: ## 2. Clone ```bash -git clone https://github.com/parawanderer/window-ml.git +git clone https://github.com/wanderdev0/window-ml.git cd window-ml ``` @@ -108,7 +108,7 @@ looks exactly like a change that did nothing. ### Putting the app on your own phone (Android) Nothing to build. Every commit on main is packaged by CI and published as the -[`android-latest`](https://github.com/parawanderer/window-ml/releases/tag/android-latest) release: open that page on +[`android-latest`](https://github.com/wanderdev0/window-ml/releases/tag/android-latest) release: open that page on the phone, download `window-ml.apk`, and open it. Android asks once whether the browser may install apps. It is signed with the standard Android debug key, which is all a sideload needs, and means an app already installed @@ -123,7 +123,7 @@ yourself names no repository and never checks. ### Using it on a device with no packaged app (an iPad, any browser) -The same client, hosted: **https://parawanderer.github.io/window-ml/**. Open it, and the browser offers to install it +The same client, hosted: **https://wanderdev0.github.io/window-ml/**. Open it, and the browser offers to install it (iOS: Share → Add to Home Screen). It then opens as its own app, with no browser chrome, and works offline: a service worker holds its files (`src/chat/pwa/`, stamped into `dist-app/` by `scripts/build-web.mjs`). diff --git a/README.md b/README.md index 2c3e0edda..3eec53315 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ that work on the same problem by a different mechanism; those rows say what the | Read-only work runs without asking me; everything else asks. The permission is whether the script is written in a dialect of the language that can only read, always halts, and leaves nothing behind when it refuses. Where the proof lives depends on the runtime: in JavaScript it is an interpreter beside V8, which cannot be touched; in Python it goes into the interpreter itself, as a restricted mode of CPython whose gates sit in the object layer, with the build's specialization switch part of the argument | [the JavaScript dialect](docs/dev/readonly-exec.md), in daily use; the Python one as a CPython fork that runs natively and under Pyodide, whose first slice costs about 6% on 684 real cells and 1.66x on pure-Python benchmarks, measured, and which bounds each cell's memory on both platforms with a cap that fails closed: about 4% at the upper quartile over 1,702 real cells, 1.36x only on a bare loop of approved C calls; the fork's Pyodide build is pinned as a release of the fork, with the fail-closed release pinned (#957). In the extension, `python_exec`'s `mode` is gone: a cell reaches `ml` over the same wire as JavaScript, matplotlib figures come back as images, and a cell inside the dialect runs unasked under the fork's gate while every other cell asks ([notes](docs/spec/PYTHON_DIALECT.md)) | the agent; for Python, the language runtime | | A standing permission is a function over a call's resolved facts, written in that same dialect so that it halts and can only answer. My rules and the built-in free tier are the same kind of object, listed on one page, and nothing widens a grant from a button on a card | the policy realm of the dialect, a store with global and run scopes, a policy page, and three consumers: remembered URLs, `ml.sh` calls, and a tool by which the model proposes a run policy that only the person's answer on a card adds; a call that asks says why when the policy that covered it is gone. A lifter turns a policy that fits a typed fragment into a tree, and covers 63% of the policies models write for `fetch` and 45% for `sh` (15 models), below what was predicted; not built: the tree as what a card leads with, and folding the older grant stores into the one page ([notes](docs/spec/POLICIES.md)) | the agent | | What a call can affect is one algebra of (operation, resource) pairs. A library, a program and a fetch describe themselves in it, and "runs without asking" is a subset test against what the sandbox at that placement bounds | the algebra as code; manifests for fifteen programs, with a root's top-level names outside the free tier and `write-names` a manifest word; under the host's sandbox the judged claims are sent as the envelope; the same corpus deciding which Python the dialect admits ([notes](docs/spec/EFFECTS.md)) | the agent, and the manifests that ship with tools | -| Processes are a capability of the one executor, reached as `ml.sh` under the same rules, never a second world the model has to carry data between. The host is a separate program the browser attaches to, built with no relay code in it, and under its sandbox a manifest's description of a program is enforced as the envelope the program runs in, so a wrong manifest fails the command rather than granting an effect | [the host](https://github.com/parawanderer/window-ml-host), v0.10.0, is reachable as `ml.sh` from JavaScript and from a full Python cell; a call a policy covers runs, a call whose effects stay inside what the sandbox bounds plus reads in its roots runs by default, and anything else asks on the running step, with a card showing the program's facts, never the script. Each call starts under the envelope its judged facts derive, enforced by bubblewrap and Landlock on Linux and by Seatbelt on macOS, with the root's top-level names and `.git` hooks and config held read-only from one list; every call reports what changed among those names, and the result says which envelope the host applied. The hub transport is built behind an optional feature the default build does not compile, and no client drives it yet ([notes](docs/spec/SHELL.md)) | the host, on the person's machine | +| Processes are a capability of the one executor, reached as `ml.sh` under the same rules, never a second world the model has to carry data between. The host is a separate program the browser attaches to, built with no relay code in it, and under its sandbox a manifest's description of a program is enforced as the envelope the program runs in, so a wrong manifest fails the command rather than granting an effect | [the host](https://github.com/wanderdev0/window-ml-host), v0.10.0, is reachable as `ml.sh` from JavaScript and from a full Python cell; a call a policy covers runs, a call whose effects stay inside what the sandbox bounds plus reads in its roots runs by default, and anything else asks on the running step, with a card showing the program's facts, never the script. Each call starts under the envelope its judged facts derive, enforced by bubblewrap and Landlock on Linux and by Seatbelt on macOS, with the root's top-level names and `.git` hooks and config held read-only from one list; every call reports what changed among those names, and the result says which envelope the host applied. The hub transport is built behind an optional feature the default build does not compile, and no client drives it yet ([notes](docs/spec/SHELL.md)) | the host, on the person's machine | | An agent uses my credentials without ever being able to read them: it holds a handle, and the secret stays in the client's background worker. Holding a handle while a broker keeps the secret is an old pattern in security; I have not found it done for a browser agent | not started; its place among policies, the effect algebra and processes is now written down ([notes](docs/spec/SECRET_HANDLES.md)) | the client's background worker, and the host for the secrets processes need | -| I drive an agent at home from my phone through a relay designed so that it cannot drive the agent itself | [the relay](https://github.com/parawanderer/window-ml-hub) carries sealed traffic and a connector republishes a box's telemetry through it, self-hosted. The client's own connector is not built, so nothing drives an agent through it yet ([notes](docs/spec/RUNTIME_HUB.md)) | a small relay server, and the client | +| I drive an agent at home from my phone through a relay designed so that it cannot drive the agent itself | [the relay](https://github.com/wanderdev0/window-ml-hub) carries sealed traffic and a connector republishes a box's telemetry through it, self-hosted. The client's own connector is not built, so nothing drives an agent through it yet ([notes](docs/spec/RUNTIME_HUB.md)) | a small relay server, and the client | @@ -66,15 +66,15 @@ job. - **Client:** a browser extension that puts `window.ml` on web pages (this repository). A web page is an easy source of real tasks with me watching. -- **Chat server:** [a modified OpenWebUI](https://github.com/parawanderer/open-webui), where the client needs a +- **Chat server:** [a modified OpenWebUI](https://github.com/wanderdev0/open-webui), where the client needs a route it does not have. -- **Serving layer:** [a heavily modified Ollama](https://github.com/parawanderer/ollama). The changes are in the +- **Serving layer:** [a heavily modified Ollama](https://github.com/wanderdev0/ollama). The changes are in the scheduler: what it reports about itself, and what it learns to predict from use. -- **Engine:** [a modified llama.cpp](https://github.com/parawanderer/llama.cpp), for what the serving layer cannot +- **Engine:** [a modified llama.cpp](https://github.com/wanderdev0/llama.cpp), for what the serving layer cannot see or change. -- **Relay:** [window-ml-hub](https://github.com/parawanderer/window-ml-hub), written for this, which lets devices +- **Relay:** [window-ml-hub](https://github.com/wanderdev0/window-ml-hub), written for this, which lets devices reach each other's runtimes. -- **Host:** [window-ml-host](https://github.com/parawanderer/window-ml-host), written for this, which runs processes +- **Host:** [window-ml-host](https://github.com/wanderdev0/window-ml-host), written for this, which runs processes for the client on the machine it is attached to, under the operating system's sandbox. It is not the relay and the relay is not it: either works without the other. diff --git a/docs/API.md b/docs/API.md index 8e4ca21e7..909db392a 100644 --- a/docs/API.md +++ b/docs/API.md @@ -30,8 +30,8 @@ and 0.10.2) — unknown routes return the frontend HTML page. Everything on this page runs against a **stock** Ollama behind a **stock** OpenWebUI. The resource panel's capacity, placement and event stream (and `ml.info()`) need a patched Ollama, -[`parawanderer/ollama`](https://github.com/parawanderer/ollama) branch `slop`; OpenWebUI's tool execute route needs -[`parawanderer/open-webui`](https://github.com/parawanderer/open-webui) branch `ml/tool-execute-api`. Without them +[`wanderdev0/ollama`](https://github.com/wanderdev0/ollama) branch `slop`; OpenWebUI's tool execute route needs +[`wanderdev0/open-webui`](https://github.com/wanderdev0/open-webui) branch `ml/tool-execute-api`. Without them those features say "not reported" rather than break. What each field feeds: [FORKED-BACKENDS.md](FORKED-BACKENDS.md). ### Feature support by API format diff --git a/docs/FORKED-BACKENDS.md b/docs/FORKED-BACKENDS.md index 630333130..039732d0c 100644 --- a/docs/FORKED-BACKENDS.md +++ b/docs/FORKED-BACKENDS.md @@ -7,7 +7,7 @@ worse than one that says so. Nothing here is a hard requirement to *use* the extension. Everything degrades: the affected features either turn themselves off or say "unknown", and the rest of the extension is unaffected. -## Ollama — `parawanderer/ollama`, branch `slop` +## Ollama — `wanderdev0/ollama`, branch `slop` Formerly `local/ps-gpu-attribution`; that branch name is stale. Parts of it are upstream as **#18197** (per-device `/api/ps` plus three fixes), **#18198** (VRAM prediction from measured loads) and @@ -208,7 +208,7 @@ Where the whole call differs from the fragments, and what the client does about Raw captures from the deployed build, replayed by `tests/background-stream-calls.test.js`: `tests/fixtures/tool-call-deltas/`. -## OpenWebUI — `parawanderer/open-webui`, branch `ml/tool-execute-api` +## OpenWebUI — `wanderdev0/open-webui`, branch `ml/tool-execute-api` Two commits ahead of upstream: `POST /api/v1/tools/id/{id}/execute`, which runs exactly the callable the chat pipeline would — local tools, OpenAPI tool servers, and MCP servers — so an external client can @@ -275,7 +275,7 @@ Most of this runs against stock Ollama + stock OpenWebUI. Three capabilities do broken: - **`GET /api/info`** (machine capacity) and **`gpus[]` on `/api/ps`** (which card a model is on, and how - a split is divided) come from `parawanderer/ollama`, branch `slop` (the old `local/ps-gpu-attribution` + a split is divided) come from `wanderdev0/ollama`, branch `slop` (the old `local/ps-gpu-attribution` name is stale). Stock Ollama doesn't serve `/api/info` at all — OpenWebUI answers with its SPA's HTML, which is why a non-JSON body is read as "unknown", never as an error. Without them `ml.info()` is `null`, the panel draws no ceiling @@ -315,7 +315,7 @@ broken: `tests/runner-activity.test.mjs` asserts against it directly rather than against shapes written here — two of its cases are ones nobody would have invented: an idle runner still reporting occupancy, and a generation containing no prefill sample at all. -- **`POST /api/v1/tools/id/{id}/execute`** comes from `parawanderer/open-webui`, branch +- **`POST /api/v1/tools/id/{id}/execute`** comes from `wanderdev0/open-webui`, branch `ml/tool-execute-api` — it runs the callable the chat pipeline would, so an external client can drive its own loop over OpenWebUI-configured tools. **The extension does not call it yet**: server tools go through upstream's `tool_ids` + `function_calling` loop (hence the `SERVER_TOOL_MODES` probe). diff --git a/docs/FULL-SETUP.md b/docs/FULL-SETUP.md index 4e2838b8b..a42dc3683 100644 --- a/docs/FULL-SETUP.md +++ b/docs/FULL-SETUP.md @@ -74,9 +74,9 @@ security argument rests on. | **The extension** | `window.ml` on the page, and everything that matters: the agent loop, the tools, the approvals, the keys | Required | | **SearXNG** | web search for OpenWebUI's own tools (step 4) | Optional | | **The [Ollama fork](FORKED-BACKENDS.md)** | capacity, per-GPU attribution, activity and the `/api/events` stream, which is what the resource panel draws | Optional. A stock Ollama says "not reported" and the rest still works | -| **The [llama.cpp fork](https://github.com/parawanderer/llama.cpp)** (`slop`) | what the placement work is fit against: per-layer expert routing recorded from real traffic (`LLAMA_ROUTING_STATS`, read back over `GET /routing`) and the offline `bench/placement` harness, because nothing in a GGUF says how skewed a mixture of experts routes. Also model architectures ahead of upstream: glm5next, its vision tower, and the pieces they need | Required for the placement engine. Otherwise only if you want those models. Point a build at a checkout with `OLLAMA_LLAMA_CPP_SOURCE`; the default fetches upstream at the pin | +| **The [llama.cpp fork](https://github.com/wanderdev0/llama.cpp)** (`slop`) | what the placement work is fit against: per-layer expert routing recorded from real traffic (`LLAMA_ROUTING_STATS`, read back over `GET /routing`) and the offline `bench/placement` harness, because nothing in a GGUF says how skewed a mixture of experts routes. Also model architectures ahead of upstream: glm5next, its vision tower, and the pieces they need | Required for the placement engine. Otherwise only if you want those models. Point a build at a checkout with `OLLAMA_LLAMA_CPP_SOURCE`; the default fetches upstream at the pin | | **The [OpenWebUI fork](FORKED-BACKENDS.md)** | `POST /api/v1/tools/id/{id}/execute`, which runs one configured tool on its own. This is what `ml.dynamicTools` calls, so the agent can run a server tool with arguments it chose instead of handing the whole loop to a model | Needed for `ml.dynamicTools`. Everything else works without it | -| **[window-ml-hub](https://github.com/parawanderer/window-ml-hub)** | watching or driving a runtime from another device | Optional, step 7 | +| **[window-ml-hub](https://github.com/wanderdev0/window-ml-hub)** | watching or driving a runtime from another device | Optional, step 7 | | **`wmlbox`** | republishes a box's telemetry through a hub | Optional, needs the Ollama fork and a hub | ## Prerequisites @@ -250,7 +250,7 @@ await ml.read(document.images[0]); // OCR an image on the page ## 7. Optional: a hub, to watch it from elsewhere -Read this part as a status report rather than a step. [window-ml-hub](https://github.com/parawanderer/window-ml-hub) +Read this part as a status report rather than a step. [window-ml-hub](https://github.com/wanderdev0/window-ml-hub) is a relay that lets a phone or another machine watch and drive a runtime, and it is built to be trusted with nothing: runtimes dial out and never listen, every principal is a key, traffic is sealed end to end, and the hub sees ciphertext and routing metadata only. @@ -261,7 +261,7 @@ yet is the extension's own connector**, so no agent in your browser is reachable step 5 changes if you run one. Skip this section unless you want the telemetry path or want to read the design. ```bash -git clone https://github.com/parawanderer/window-ml-hub && cd window-ml-hub +git clone https://github.com/wanderdev0/window-ml-hub && cd window-ml-hub cp .env.example .env && $EDITOR .env # set WMLHUB_HUB_NAME docker compose up -d docker compose exec hub wmlhub invite create @@ -269,7 +269,7 @@ docker compose exec hub wmlhub invite create That publishes on `127.0.0.1:8787` only, deliberately: put TLS in front of it before anything reaches it from another device. Tailscale and Caddy are both written up, along with registration modes, backups and every setting, -in [the hub's SELF_HOSTING.md](https://github.com/parawanderer/window-ml-hub/blob/main/docs/SELF_HOSTING.md). The +in [the hub's SELF_HOSTING.md](https://github.com/wanderdev0/window-ml-hub/blob/main/docs/SELF_HOSTING.md). The design and its security argument are in [docs/spec/RUNTIME_HUB.md](spec/RUNTIME_HUB.md). ## Troubleshooting diff --git a/docs/SETUP.md b/docs/SETUP.md index ca097cb0b..362134d24 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -24,7 +24,7 @@ JavaScript 'content.js'`). 1. Get a built `dist/`, either way: - **Build it** (needs Node ≥ 20): ```bash - git clone https://github.com/parawanderer/window-ml.git + git clone https://github.com/wanderdev0/window-ml.git cd window-ml npm install npm run build # writes dist/ (npm run watch to rebuild on save) diff --git a/docs/dev/bench-design.md b/docs/dev/bench-design.md index 7e0469ed8..ceaf2de90 100644 --- a/docs/dev/bench-design.md +++ b/docs/dev/bench-design.md @@ -84,6 +84,6 @@ the store and shows a query to read it directly. ## Where this is heading -These rules are a small case of the agent canvas, [issue #320](https://github.com/parawanderer/window-ml/issues/320): +These rules are a small case of the agent canvas, [issue #320](https://github.com/wanderdev0/window-ml/issues/320): a surface an agent always has to render into, which a person watches and can act on, where both are working on one record of what happened. diff --git a/docs/dev/hub-client.md b/docs/dev/hub-client.md index 9982f9370..bb622d74b 100644 --- a/docs/dev/hub-client.md +++ b/docs/dev/hub-client.md @@ -1,6 +1,6 @@ # The hub client (`src/hub/`) -The browser side of [window-ml-hub](https://github.com/parawanderer/window-ml-hub): the cryptography a device needs to +The browser side of [window-ml-hub](https://github.com/wanderdev0/window-ml-hub): the cryptography a device needs to talk to a hub, over WebCrypto. The hub relays ciphertext and routing metadata and can read none of it, so everything that makes that true lives here. diff --git a/docs/dev/pyodide-build.md b/docs/dev/pyodide-build.md index 30f080842..f7c81ed93 100644 --- a/docs/dev/pyodide-build.md +++ b/docs/dev/pyodide-build.md @@ -1,7 +1,7 @@ # The Pyodide core built from the restricted-mode fork `python_exec` runs a Pyodide **core** (`pyodide.mjs`, `pyodide.asm.mjs`, `pyodide.asm.wasm`, `python_stdlib.zip`, -`pyodide-lock.json`) built from `parawanderer/cpython` branch `ml/restricted-mode`, so the dialect's restriction is +`pyodide-lock.json`) built from `wanderdev0/cpython` branch `ml/restricted-mode`, so the dialect's restriction is enforced under wasm and not only in the desktop tests. The wheels stay stock: the fork changes no object header and no stable-ABI surface, so the `cp314-pyemscripten_2026_0_wasm32` wheels from the Pyodide CDN keep working. diff --git a/docs/dev/resource-panel.md b/docs/dev/resource-panel.md index de6bdb7f7..887ecad8d 100644 --- a/docs/dev/resource-panel.md +++ b/docs/dev/resource-panel.md @@ -522,8 +522,8 @@ per device, in bytes. `prompt_eval_cached_count`, and the protobuf `End.cached_tokens` — `optional` on the wire, because proto3 has no presence and an encoder skips a zero, which would turn every cold prefill into "not reported". `0` is cold, absent is unreported, and the two are never collapsed. **OpenWebUI's `/api/chat/completions` drops it** (its - `convert_ollama_usage_to_openai` built a fixed dict); fixed in `parawanderer/open-webui@72ddabd1e`, deployment - pending (it needs the OpenWebUI container recreated). The schema pin moved to `parawanderer/ollama@2f5706f` + `convert_ollama_usage_to_openai` built a fixed dict); fixed in `wanderdev0/open-webui@72ddabd1e`, deployment + pending (it needs the OpenWebUI container recreated). The schema pin moved to `wanderdev0/ollama@2f5706f` for it; the decoder was regenerated, not edited. - **TOPOLOGY: A PAIR LIST, BUILT AGAINST MOCKS** (`topologyFrom`, `linkBetween`, `bridgeOrder`, `bridgeWalls`, `linkPhrase`). The server's shape (agreed with mlbox, `handover-interconnect-topology.md` §4): `status` / diff --git a/docs/dev/wire-and-fetch.md b/docs/dev/wire-and-fetch.md index ac3176195..38f808dfc 100644 --- a/docs/dev/wire-and-fetch.md +++ b/docs/dev/wire-and-fetch.md @@ -108,13 +108,13 @@ is not tidiness: `tool_calls` and `logprobs` arrived upstream — field and enco after the handover had said they were missing — and this read them **with no change here**, because regenerating from a pinned schema absorbs that where a hand-written decoder (a second copy of the field numbers) would have silently ignored them. The schema is not ours, so it is **pinned by git blob id** -(`src/proto/chat.proto.pin.json` → `parawanderer/ollama:middleware/chat.proto`, beside the Go encoder, which +(`src/proto/chat.proto.pin.json` → `wanderdev0/ollama:middleware/chat.proto`, beside the Go encoder, which is what makes it the definition rather than a copy of one). `npm run gen-proto -- --check` verifies the vendored copy OFFLINE (a blob id is content-addressed, so it holds in CI and a fresh checkout), confirms the commit still carries that blob when GitHub is reachable, and reports when upstream has moved on — which a content hash alone cannot, since "we match commit X" stays true forever. **TWO ENCODERS NOW, and `toolIds` no longer keeps SSE.** The second is OpenWebUI's own `/api/chat/completions` in -the fork (`parawanderer/open-webui`, branch `ml/tool-execute-api`), which is the route most setups actually use. +the fork (`wanderdev0/open-webui`, branch `ml/tool-execute-api`), which is the route most setups actually use. What had made that impossible was `sources`, OpenWebUI's retrieval provenance, emitted ahead of the first token with nowhere to go in the schema — so `toolIds` calls were excluded. Two findings from the people who own that route killed the exclusion rather than the feature: `sources` reaches that stream WITHOUT `tool_ids` by four routes (a diff --git a/docs/dev/working-in-the-repo.md b/docs/dev/working-in-the-repo.md index d19cfe957..14e5c2ec6 100644 --- a/docs/dev/working-in-the-repo.md +++ b/docs/dev/working-in-the-repo.md @@ -379,7 +379,7 @@ spaces in the generated string (see `tests/token-pipe.test.mjs`, memoryFault). telling you to stage their generated output. ```bash - cd .. && git clone git@github.com:parawanderer/window-ml.git window-ml- + cd .. && git clone git@github.com:wanderdev0/window-ml.git window-ml- cd window-ml- ln -s ../window-ml/.env .env # the backend + key, for USE_ENV=1 ln -s ../window-ml/pyodide-wheels pyodide-wheels # 28MB of static wheels, don't re-download diff --git a/docs/plan/HOST_SETUP.md b/docs/plan/HOST_SETUP.md index 50bc967c6..1deb2bc1b 100644 --- a/docs/plan/HOST_SETUP.md +++ b/docs/plan/HOST_SETUP.md @@ -16,7 +16,7 @@ UI's settings page shows too (Shane, same day, for the hub; the same rule here). | Piece | State | | --- | --- | -| The host ([window-ml-host](https://github.com/parawanderer/window-ml-host), v0.5.0): `wmlhost install --extension-id ` writes the native messaging manifest naming the binary and allowing only that extension; `uninstall` removes it | BUILT; install is a terminal command after `cargo build --release` | +| The host ([window-ml-host](https://github.com/wanderdev0/window-ml-host), v0.5.0): `wmlhost install --extension-id ` writes the native messaging manifest naming the binary and allowing only that extension; `uninstall` removes it | BUILT; install is a terminal command after `cargo build --release` | | The extension's side (`src/sw/sw-shell.ts`): the one port, `hello` and the protocol check, `configure` from Settings, a status with a reason (`off`, `no-roots`, `not-installed`, `protocol`, `config`) | BUILT | | Settings "Programs (ml.sh)" (`src/sidebar/settings/shell-section.tsx`): the note with the install command carrying THIS browser's extension id, the enable checkbox, the workspace roots, a status line with the reason | BUILT; this is already a front door | | A release of the host (a binary to download) | NONE: `gh release list` on the host repo is empty; the only path is `cargo build` | diff --git a/docs/plan/repl/COORDINATOR.md b/docs/plan/repl/COORDINATOR.md index c4c2955e6..1bc12d1e3 100644 --- a/docs/plan/repl/COORDINATOR.md +++ b/docs/plan/repl/COORDINATOR.md @@ -61,7 +61,7 @@ write every ruling into the spec it changes within the hour, and keep the plan's | --- | --- | --- | --- | | 1 (fresh session) | root J, PR #705 | the lockdown, for PR 2 (`ml` in Pyodide) and root C | the fallback keeps the preview (Shane); PR 2 uses lane 4's nested asks, builds no ask path of its own | | 2 | #706 (`sh` consumer, `judgeCall` asks while unloaded), #709 (policy vectors); then 3b (rows, re-judging), 3c (model-proposed policies as a tool: registry + red-team) | lane 4's #710 for re-judging a nested ask | the archive rule (#707); the told-on-unarchive line | -| 3 | the CPython fork (`parawanderer/cpython`, branch `ml/restricted-mode`): no-specialization build compiling, baseline numbers, then `CO_RESTRICTED`, `_restricted`, the predicate; #703 (one Node leg in CI) | nothing | C now, A later; restriction is a property of the entry (#711); the dialect row in the README takes the first measured cost | +| 3 | the CPython fork (`wanderdev0/cpython`, branch `ml/restricted-mode`): no-specialization build compiling, baseline numbers, then `CO_RESTRICTED`, `_restricted`, the predicate; #703 (one Node leg in CI) | nothing | C now, A later; restriction is a property of the entry (#711); the dialect row in the README takes the first measured cost | | 4 | #710 (nested asks); then the `ml.sh` PR (native port, settings, capabilities, the isolated op, the wire member, pointers, the version probe) with its red-team pass | nothing | a dialect-defined command is invoked through `_restricted.call`; root K's Landlock details | | red-team | #698 (vectors, todo until the lockdown), #708 (interim mitigations); then the lockdown from main per PYODIDE_LOCKDOWN.md, six steps | nothing | P5 ruling (step 6) | | site-access | #647 merged 2026-10-15 (ac417a98). As of 2026-10-23 (the session's own report, shas checked): SITE_PRESENCE step 2a hidden by default (#993, 85adc9f1), the demos for hidden pages (#997, 8a5fca34), the Node 26 pin (#1000, a900d3c5); #987 (the cancel route matrix) approved, merges on green. In progress: step 2b, the MessagePort between `injected.js` and the content scripts, `feat/presence-2b-port` (55dfe772), code-complete, four red-team gaps fixed with tests, one documented residual (a page given `injected.js` late can still take the port); then slice 3 PR 3, PR 4 (new strings; since 2026-10-27 shipped without approval, Shane reports offenders later), step 3 (exec in the isolated world by default), then measuring `use_dynamic_url`. Unowned: issue #1005 (a hidden page's overlay lists none of the person's own runs after a reload) | PR 4's strings | told about the REPL overlaps and the SET_APPROVAL fix | diff --git a/docs/plan/repl/LANE_12_MEMORY_FAIL_CLOSED.md b/docs/plan/repl/LANE_12_MEMORY_FAIL_CLOSED.md index 03b636e03..f9bfaa761 100644 --- a/docs/plan/repl/LANE_12_MEMORY_FAIL_CLOSED.md +++ b/docs/plan/repl/LANE_12_MEMORY_FAIL_CLOSED.md @@ -2,7 +2,7 @@ DONE 2026-10-21: fork #9 merged at 0169c4fd (the janitor reviewed); the re-pin and the `verify-cost` notebook in window-ml #957, merged c03e1344 (the janitor reviewed, neither finder nor builder). The as-built numbers are in the `memory` row; lane 13 is CLOSED on them. The lane's result file is `LANE_12_RESULT.md`, lane 12's to write. -Brief, 2026-10-21, by the coordinator (`repl-specs`). One fork PR on parawanderer/cpython, branch from `ml/restricted-mode` +Brief, 2026-10-21, by the coordinator (`repl-specs`). One fork PR on wanderdev0/cpython, branch from `ml/restricted-mode` at 7c40b038, then a window-ml re-pin (#928's shape: `pyodide-build` skill, release, pin sha, the two wasm tests). Read first: `PYTHON_DIALECT.md`'s `memory` row to its end (the ruling is its last sentences); diff --git a/docs/plan/repl/LANE_12_RESULT.md b/docs/plan/repl/LANE_12_RESULT.md index d80f5f8bf..7d6fe7011 100644 --- a/docs/plan/repl/LANE_12_RESULT.md +++ b/docs/plan/repl/LANE_12_RESULT.md @@ -6,7 +6,7 @@ the real-cell timing added by the coordinator. All of it is done. Lane 13 stays ## What was built -1. **parawanderer/cpython#9**, squash-merged as `0169c4fd` on `ml/restricted-mode` (branch commits `8575f359`, then +1. **wanderdev0/cpython#9**, squash-merged as `0169c4fd` on `ml/restricted-mode` (branch commits `8575f359`, then `b82a1088` after the janitor's review). The janitor reviewed it. - A failed insert into the block table trips the run at every site: `mem_record`, `counted_realloc`'s failure restore, and a realloc that moved and then failed to record. The last cannot return `NULL` (the old block is diff --git a/docs/plan/repl/LANE_13_PROBE_NARROWED.md b/docs/plan/repl/LANE_13_PROBE_NARROWED.md index 597dad7fe..6c18cf47a 100644 --- a/docs/plan/repl/LANE_13_PROBE_NARROWED.md +++ b/docs/plan/repl/LANE_13_PROBE_NARROWED.md @@ -5,10 +5,10 @@ day (window-ml #957, the `memory` row): the full probe costs about 4% at the upp the A/A spread but no widening's worth; the 1.36x is only a bare loop of approved C calls. It reopens only if a real workload shows that shape, and Shane says so. Kept as the design for that day. Originally: it opens only when the gate number below says the cost is visible on real cells, and Shane says so. One fork PR on -parawanderer/cpython after #9 has merged, branched from the fork tip then; a window-ml re-pin in #928's shape; the +wanderdev0/cpython after #9 has merged, branched from the fork tip then; a window-ml re-pin in #928's shape; the `verify-cost` notebook rerun with the new core as a third column. -Read first: `PYTHON_DIALECT.md`'s `memory` row from "Built in parawanderer/cpython#7" to its end (the two rulings of +Read first: `PYTHON_DIALECT.md`'s `memory` row from "Built in wanderdev0/cpython#7" to its end (the two rulings of 2026-10-21 and the wasm32 numbers); [`LANE_12_MEMORY_FAIL_CLOSED.md`](LANE_12_MEMORY_FAIL_CLOSED.md) and lane 12's result file once it exists; `notebooks/python-dialect/verify-cost/` (lane 12's rounds; the shape this lane reruns); the janitor's mail `~/git/session-mail/window-ml/20261021-1138Z-flaky-ci-to-repl-specs-wrapper-mechanism.md` (why a diff --git a/docs/plan/repl/LANE_3_PYODIDE.md b/docs/plan/repl/LANE_3_PYODIDE.md index 776935f2f..cda48f3ec 100644 --- a/docs/plan/repl/LANE_3_PYODIDE.md +++ b/docs/plan/repl/LANE_3_PYODIDE.md @@ -10,7 +10,7 @@ desktop numbers are in [`LANE_3_RESULT_H.md`](LANE_3_RESULT_H.md); the design is ## What the series is -The fork is `parawanderer/cpython`, branch `ml/restricted-mode`, head `8f6a50a` (11 commits on `v3.14.2`: slices 1, +The fork is `wanderdev0/cpython`, branch `ml/restricted-mode`, head `8f6a50a` (11 commits on `v3.14.2`: slices 1, 2, 4, 5, 6, the two mid-slice landings, the print fix, the lifted-generator removal fix and the address-reuse audit's tests; rebased from `v3.14.0` on 2026-10-19, below). Export it from a clean checkout of that branch: diff --git a/docs/plan/repl/LANE_3_RESULT.md b/docs/plan/repl/LANE_3_RESULT.md index 3b57a7037..8e2e819f7 100644 --- a/docs/plan/repl/LANE_3_RESULT.md +++ b/docs/plan/repl/LANE_3_RESULT.md @@ -8,9 +8,9 @@ the same pin, and the trial build exposed a stale release core, fixed with the r | Item | PR | Merge | | --- | --- | --- | -| MEM/OBJ wrappers installed for a run's extent only (RAW and arena stay permanent); a free-threaded build keeps them installed | parawanderer/cpython#6 | a315999c | -| The cap's hooks verified on every domain at each restricted entry: a probe allocation counts our wrappers, zero reinstalls and re-probes, any other count refuses; a free-threaded build refuses instead of reinstalling (#912) | parawanderer/cpython#7 | 7c40b038 | -| The janitor's comment on #6, with the free-threaded limit | parawanderer/cpython#8 | 0acc4aa6 | +| MEM/OBJ wrappers installed for a run's extent only (RAW and arena stay permanent); a free-threaded build keeps them installed | wanderdev0/cpython#6 | a315999c | +| The cap's hooks verified on every domain at each restricted entry: a probe allocation counts our wrappers, zero reinstalls and re-probes, any other count refuses; a free-threaded build refuses instead of reinstalling (#912) | wanderdev0/cpython#7 | 7c40b038 | +| The janitor's comment on #6, with the free-threaded limit | wanderdev0/cpython#8 | 0acc4aa6 | | Recipe stamp + witness: a changed patch set clears the stale CPython build, stdlib and install stamp; the zip's `restricted.py` must equal the fork commit's; `restrictedPySha256` in the pin; core re-released as `pyodide-314.0.3-ml-77376876-r2` | #918 | 42d5bec9 | | Core pinned to fork 7c40b038 (`pyodide-314.0.3-ml-7c40b038`, sha b3b7e879); the spec's `memory` row as built | #928 | 07a4314d | diff --git a/docs/plan/repl/LANE_3_RESULT_H.md b/docs/plan/repl/LANE_3_RESULT_H.md index 186b1a9f6..b9169d46d 100644 --- a/docs/plan/repl/LANE_3_RESULT_H.md +++ b/docs/plan/repl/LANE_3_RESULT_H.md @@ -6,7 +6,7 @@ mechanical hand-off (Claude Code, `openrouter.xiaomi/mimo-v2.6-pro`, session `50cb17e9-1790-434d-8eb4-9783e2c01644`), 2026-10-18, per the handover `20261015-2230Z-repl-lane3-to-coordinator-handover-H-mechanical.md` in `~/git/session-mail/window-ml/`. -The fork is `parawanderer/cpython`, branch `ml/restricted-mode`, head `8f6a50a` on `v3.14.2` (slices 1, 2, 4, 5, 6, +The fork is `wanderdev0/cpython`, branch `ml/restricted-mode`, head `8f6a50a` on `v3.14.2` (slices 1, 2, 4, 5, 6, the two mid-slice landings, the print fix, the lifted-generator removal fix and the address-reuse audit's tests; the measurements of 2026-10-15 were taken at `59bee6b`, those of 2026-10-19 at `29069ba`). On 2026-10-19 the branch was rebased from `v3.14.0` onto `v3.14.2`, the version Pyodide builds ([`LANE_3_PYODIDE.md`](LANE_3_PYODIDE.md)). The commit hashes below are the pre-rebase ones, kept on the branch @@ -129,7 +129,7 @@ The fork's commit messages carry every design choice and its reason; read them i | `59bee6b` / `0a48cfc` | 6: the undo log at the write barrier — a refused run leaves the namespace and every value it reaches as before the cell (one snapshot per owned value per run; globals dict restored; an ordinary error keeps its writes) | | `29069ba` / `962ede6` | print: a cell's `print(...)` is rewritten at check time to `__cell_print__(str(a), …)`, so each argument goes through the cell's own gated `str()`; the writer, lifted behind a check, takes only strings (`sep`/`end` str or None, `flush` bool); `file=`, `**` and print as a value are refused | | — / `eac9d75` | the reference tracer removes a freed generator from the owned set AND the lifted generators' table; it removed one or the other, so a generator a FRESH leaf returned from a lifted extent left a stale `lifted_gens` entry, and a later generator at that address resumed lifted. Found while building the owned-set filter below | -| — / `8f6a50a` | tests only. An audit of the four address-keyed tables (`owned`, `lifted_gens`, `mem_blocks`, `undo_seen`; [fork PR #1](https://github.com/parawanderer/cpython/pull/1)) found no further stale-entry path: every entry leaves on the tracer's DESTROY, which fires before a freelist or the collector can reuse the address. Its 8 tests pin removal at `del`, removal under cycle collection, and generators made after freed lifted ones resuming gated; turning `eac9d75`'s second removal back into `else if` fails 7 of them | +| — / `8f6a50a` | tests only. An audit of the four address-keyed tables (`owned`, `lifted_gens`, `mem_blocks`, `undo_seen`; [fork PR #1](https://github.com/wanderdev0/cpython/pull/1)) found no further stale-entry path: every entry leaves on the tracer's DESTROY, which fires before a freelist or the collector can reuse the address. Its 8 tests pin removal at `del`, removal under cycle collection, and generators made after freed lifted ones resuming gated; turning `eac9d75`'s second removal back into `else if` fails 7 of them | ## What a spec got wrong (each ruled by `repl-specs`) diff --git a/docs/plan/repl/LANE_3_RUNTIME.md b/docs/plan/repl/LANE_3_RUNTIME.md index 3d39f495a..7228f2427 100644 --- a/docs/plan/repl/LANE_3_RUNTIME.md +++ b/docs/plan/repl/LANE_3_RUNTIME.md @@ -42,7 +42,7 @@ a new `notebooks/python-dialect/` topic folder, a new `tests/fixtures/dialect-ve ## Root H: the restricted mode in CPython (the big one; several PRs in the fork, one in this repo) Target the CPython version the current `dist/pyodide/` carries (its `pyodide-lock.json` names it), so the patch applies -to the Pyodide build later. Fork under `parawanderer/` (ask Shane for the repository name before creating it). Land it +to the Pyodide build later. Fork under `wanderdev0/` (ask Shane for the repository name before creating it). Land it in this order, each piece with its vectors passing under `pytest` against the patched binary: 1. `CO_RESTRICTED` on code objects (set by a `compile(…, flags=…)` extension or a `_restricted.compile` helper after the diff --git a/docs/plan/repl/LANE_4_RESULT_HOST_ROUND3.md b/docs/plan/repl/LANE_4_RESULT_HOST_ROUND3.md index cf0326361..e4b954b7d 100644 --- a/docs/plan/repl/LANE_4_RESULT_HOST_ROUND3.md +++ b/docs/plan/repl/LANE_4_RESULT_HOST_ROUND3.md @@ -21,7 +21,7 @@ Work slug `repl-lane4`, session `b9bc1868-816e-4f91-86bc-4fc2e0f3047e`, model `c | window-ml #868 | 94fb146a | `SHELL.md`'s ownership bullet: "up to the three residuals", each named | Reviews done for other lanes: window-ml-host #12 (K3, four rounds), #14; window-ml #800, #802, #807, #818, #820; -parawanderer/cpython #3 and #4 (built and run natively). +wanderdev0/cpython #3 and #4 (built and run natively). ## What was measured diff --git a/docs/plan/repl/LANE_4_RESULT_HUB.md b/docs/plan/repl/LANE_4_RESULT_HUB.md index 0d4a126f5..371254d22 100644 --- a/docs/plan/repl/LANE_4_RESULT_HUB.md +++ b/docs/plan/repl/LANE_4_RESULT_HUB.md @@ -6,18 +6,18 @@ the coordinator's of 2026-10-19 (Q1–Q5, and the H2 and H3 additions). Each sli ## What landed -- **window-ml-host [#9](https://github.com/parawanderer/window-ml-host/pull/9)** (H1, `d211507`): the host's identity +- **window-ml-host [#9](https://github.com/wanderdev0/window-ml-host/pull/9)** (H1, `d211507`): the host's identity on a hub. It pairs as a `Runtime`, and keeps two local files that only `wmlhost hub` on that machine writes: `hub-roots` and `hub-callers`. -- **[#10](https://github.com/parawanderer/window-ml-host/pull/10)** (H2, `3ef2184`): `wmlhost hub serve`. A command is +- **[#10](https://github.com/wanderdev0/window-ml-host/pull/10)** (H2, `3ef2184`): `wmlhost hub serve`. A command is admitted in a fixed order (seal, `desktop` scope, revocation, callers), and each caller gets a session of its own. -- **[#11](https://github.com/parawanderer/window-ml-host/pull/11)** (H3, `ea4b8f4`), tag `v0.5.0`: `done` is published on +- **[#11](https://github.com/wanderdev0/window-ml-host/pull/11)** (H3, `ea4b8f4`), tag `v0.5.0`: `done` is published on a stream of the caller's own. A caller gone past the grace loses its calls, and only its own. All of it is behind the `hub` Cargo feature, and the default build still compiles no `wmlhub-*` crate (window-ml-host's `check-no-hub.sh`). The wire as built is -[`HUB.md`](https://github.com/parawanderer/window-ml-host/blob/main/docs/HUB.md) and -[`PROTOCOL.md`](https://github.com/parawanderer/window-ml-host/blob/main/docs/PROTOCOL.md) (`transport`, `hub`, `v`). +[`HUB.md`](https://github.com/wanderdev0/window-ml-host/blob/main/docs/HUB.md) and +[`PROTOCOL.md`](https://github.com/wanderdev0/window-ml-host/blob/main/docs/PROTOCOL.md) (`transport`, `hub`, `v`). ## The host as built diff --git a/docs/plan/repl/LANE_4_RESULT_I.md b/docs/plan/repl/LANE_4_RESULT_I.md index 5e9419d95..04d44695e 100644 --- a/docs/plan/repl/LANE_4_RESULT_I.md +++ b/docs/plan/repl/LANE_4_RESULT_I.md @@ -4,17 +4,17 @@ Work slug `repl-lane4`, session `b9bc1868-816e-4f91-86bc-4fc2e0f3047e`, model `c ## What landed -- **Repository [parawanderer/window-ml-host](https://github.com/parawanderer/window-ml-host)** (public, MIT), first tag +- **Repository [wanderdev0/window-ml-host](https://github.com/wanderdev0/window-ml-host)** (public, MIT), first tag `v0.1.0` (after PR #1). PR #2 added the rulings below (repository config, recursive readers, `env.free`), PR #3 the manifest reader. One crate, binary `wmlhost`. CI runs on Linux and macOS: fmt, clippy, tests, the Node client, and the no-hub check. - **Decision 4 holds in code.** The default build compiles no crate from window-ml-hub; `check-no-hub.sh` fails CI if one appears. `--features hub` pulls `wmlhub-client`, `wmlhub-seal` and `wmlhub-keys` (tag `v0.4.3`) and compiles a stub `src/hub.rs`. No hub crate was changed or added, so there is no `@hub-compat` PR. -- **The protocol**: [`PROTOCOL.md`](https://github.com/parawanderer/window-ml-host/blob/main/docs/PROTOCOL.md) in +- **The protocol**: [`PROTOCOL.md`](https://github.com/wanderdev0/window-ml-host/blob/main/docs/PROTOCOL.md) in the host repository, the wire as built, for whoever binds it on the extension side (below). - **The sandbox as built**, with what each test showed: - [`SANDBOX.md`](https://github.com/parawanderer/window-ml-host/blob/main/docs/SANDBOX.md). + [`SANDBOX.md`](https://github.com/wanderdev0/window-ml-host/blob/main/docs/SANDBOX.md). - **`clients/node/`**: a dependency-free client whose call layer is separate from its stdio framing, so the same layer runs over a `chrome.runtime.connectNative` port; and a smoke check. - **Install**: `wmlhost install --extension-id [--browser chrome|chrome-beta|chromium|brave|edge|all]` writes the diff --git a/docs/plan/repl/LANE_4_RESULT_K.md b/docs/plan/repl/LANE_4_RESULT_K.md index 824cdcb9e..fa546dc1e 100644 --- a/docs/plan/repl/LANE_4_RESULT_K.md +++ b/docs/plan/repl/LANE_4_RESULT_K.md @@ -7,7 +7,7 @@ of 2026-10-19 (session-mail `20261019-0940Z-repl-specs-to-repl-lane4-k1-answers. ## What landed -- **window-ml-host [#8](https://github.com/parawanderer/window-ml-host/pull/8)**, tag `v0.4.0`. `pathArgs[].hash` +- **window-ml-host [#8](https://github.com/wanderdev0/window-ml-host/pull/8)**, tag `v0.4.0`. `pathArgs[].hash` adds `sha256` to the path fact: the hash of the resolved file, after symlinks. `start` and `pipe` hash it again and refuse with `PinChanged` if it changed since `spawn`. - **window-ml #763.** A manifest with `entrypoint: { path, sha256 }` has no `version`; `ProgramManifest` is a union diff --git a/docs/plan/repl/LANE_4_RESULT_L.md b/docs/plan/repl/LANE_4_RESULT_L.md index 9a7cec385..a7741350e 100644 --- a/docs/plan/repl/LANE_4_RESULT_L.md +++ b/docs/plan/repl/LANE_4_RESULT_L.md @@ -5,8 +5,8 @@ Work slug `repl-lane4`, session `b9bc1868-816e-4f91-86bc-4fc2e0f3047e`, model `c ## What landed -- **window-ml-host [#7](https://github.com/parawanderer/window-ml-host/pull/7)**, tag `v0.3.0`. The wire as built is - [`PROTOCOL.md`](https://github.com/parawanderer/window-ml-host/blob/main/docs/PROTOCOL.md), sections "Owners", +- **window-ml-host [#7](https://github.com/wanderdev0/window-ml-host/pull/7)**, tag `v0.3.0`. The wire as built is + [`PROTOCOL.md`](https://github.com/wanderdev0/window-ml-host/blob/main/docs/PROTOCOL.md), sections "Owners", `status` and `done`. - **window-ml #753**: the extension names each call's owner and reports a call killed past its bound. diff --git a/docs/plan/repl/LANE_5_PYODIDE_BUILD.md b/docs/plan/repl/LANE_5_PYODIDE_BUILD.md index a598f4907..a14c4f7df 100644 --- a/docs/plan/repl/LANE_5_PYODIDE_BUILD.md +++ b/docs/plan/repl/LANE_5_PYODIDE_BUILD.md @@ -2,7 +2,7 @@ Read first: [`ROUND_3.md`](ROUND_3.md); [`LANE_3_RUNTIME.md`](LANE_3_RUNTIME.md) and [`LANE_3_RESULT_H.md`](LANE_3_RESULT_H.md) (the fork, the vectors, what the build plumbing in window-ml #754 already does); `docs/dev/python-sandbox.md`; the -fork itself, `parawanderer/cpython` branch `ml/restricted-mode`, rebased onto v3.14.2 in #760. +fork itself, `wanderdev0/cpython` branch `ml/restricted-mode`, rebased onto v3.14.2 in #760. ## The goal diff --git a/docs/plan/repl/LANE_5_RESULT.md b/docs/plan/repl/LANE_5_RESULT.md index 4d9e35082..8583a061a 100644 --- a/docs/plan/repl/LANE_5_RESULT.md +++ b/docs/plan/repl/LANE_5_RESULT.md @@ -13,7 +13,7 @@ Figures are from an Apple M4 with 10 cores. core files and writes a tarball and a build report. - **The pin**, `tools/pyodide-dist.json`: the one place Pyodide version, emscripten, ABI, fork commit, patch count and artefact (tag, URL, sha256) live. The CI cache key includes it. -- **The artefact**: a GitHub release on `parawanderer/cpython`, tag `pyodide--ml-`. Currently +- **The artefact**: a GitHub release on `wanderdev0/cpython`, tag `pyodide--ml-`. Currently `pyodide-314.0.3-ml-b0bbaa52`, 14 patches, 6.4 MB. The wheels are stock: the fork changes no object header, so `pyodide-lock.json` is the npm package's. - **The consumer**: `npm run fetch-pyodide` downloads the core into `pyodide-core/`, verifies the sha256 before diff --git a/docs/plan/repl/README.md b/docs/plan/repl/README.md index 506906e57..7130bfe07 100644 --- a/docs/plan/repl/README.md +++ b/docs/plan/repl/README.md @@ -346,7 +346,7 @@ listed as remaining is DONE unless named below. - **Round 3 (opened 2026-10-19, [`ROUND_3.md`](ROUND_3.md))**: five lanes on this list: 5 the Pyodide build, 6 lane 1's four follow-ups, 7 `mode` removal, 8 the phone's pairing UX, 9 telling a run why its next call asks. Lane 5's build is window-ml #835 (2026-10-19; merged 2026-10-20 as b2bea587 after the janitor sanctioned one e2e rerun - on the annotate-diff flake that fails on main too; the janitor's fix is #887, 2026-10-20: the approver outlived the wait): the artefact lives as a RELEASE on the fork, `parawanderer/cpython` + on the annotate-diff flake that fails on main too; the janitor's fix is #887, 2026-10-20: the approver outlived the wait): the artefact lives as a RELEASE on the fork, `wanderdev0/cpython` tag `pyodide-314.0.3-ml-8f6a50ab` (Shane's decision, 2026-10-19, after the fetch-hub precedent), pinned by tag, URL and sha256 in the consumer's dist manifest (#835) and checked before unpack. Measured: tarball 6.4 MB; an incremental `make all-but-packages` 47 s on an M4, a full build from a clean tree 448 s. The build is NOT reproducible (lane 5, @@ -366,8 +366,8 @@ listed as remaining is DONE unless named below. whether the wrappers can be installed only for a restricted entry's extent, measured before it is claimed cheaper: natively no gain (2026-10-20, an ordering effect), so open for the wasm number only; the code sits on the fork's `ml/wasm32-wrappers-per-run`. Also found 2026-10-20: the native double count (the cap refused at half its number - under pymalloc), fixed in parawanderer/cpython#3 (merged 2026-10-20, 7e400fbc), lane 4 verified it natively; no Pyodide rebuild. A hook on pymalloc before the first run brings the - double count back; fixed by lane 3 in parawanderer/cpython#4 (merged 2026-10-20, b0bbaa5, lane 4 reviewed): a hidden + under pymalloc), fixed in wanderdev0/cpython#3 (merged 2026-10-20, 7e400fbc), lane 4 verified it natively; no Pyodide rebuild. A hook on pymalloc before the first run brings the + double count back; fixed by lane 3 in wanderdev0/cpython#4 (merged 2026-10-20, b0bbaa5, lane 4 reviewed): a hidden name defers to the startup choice; no wasm32 change. Re-pinned to b0bbaa5 the same day: window-ml #873 (merged fecd6abe; release `pyodide-314.0.3-ml-b0bbaa52`, `pyodide` pinned exactly), the pin lane 3's predicate wiring lands on. **Lane 5: CLOSED 2026-10-20**: [`LANE_5_RESULT.md`](LANE_5_RESULT.md) (#874, bcbb6543); build trees and clone removed. @@ -380,7 +380,7 @@ listed as remaining is DONE unless named below. recursively (the container residual was real), not-data makes the cell outside, no aliasing of a non-data value under a new name (#896), the return value data only (#898), imports admitted as themselves. The red team's second pass cleared it (12/12 alias shapes); the janitor's build review found the numpy/pandas branches were `isinstance`, not - exact type, fixed at 249ccad5. Layer 1 is fork parawanderer/cpython#5 (lane 3, merged 77376876, Shane's by-hand + exact type, fixed at 249ccad5. Layer 1 is fork wanderdev0/cpython#5 (lane 3, merged 77376876, Shane's by-hand merge at the janitor-reviewed head): a `CO_RESTRICTED` frame entered outside a run refuses (R over G), the check-time line fix, and, found by fixing it, the check now parses the cell as itself (the wrapper's indent had been adding four spaces to multi-line strings). Re-pinned by #901 (merged 1334d623; release `pyodide-314.0.3-ml-77376876`, sha @@ -416,7 +416,7 @@ listed as remaining is DONE unless named below. [`LANE_10_RESULT.md`](LANE_10_RESULT.md) (#923, d6ccae00). Lane 11's round-4 items are closed: host #20, #21, #22 (the `ended` record, five causes; the private-sweep fix), #913, #920, #921; [`LANE_11_RESULT.md`](LANE_11_RESULT.md) (#922, eafcc2b3). Lane 11 stayed open on the tree's next item, ruled 2026-10-21 (#921, #924): the lifter, then the - `fetch` and `sh` bench tasks measured as text, with the corpus committed (#925); the lifter's test may hold a tree evaluator under `tests/` (#927). MEASURED 2026-10-21 (#934, b8030ae8): the lifter covers 63% of `fetch` and 45% of `sh` proposals, below the predicted 80-95 and 55-75; one fail-open (an ALLOW over a `null` fact), ruled in `POLICIES.md` (an ALLOW over an unknown never fires); lane 11's follow-up MERGED (#961, c1d1f6ed): the null rule in the realm and the tree verdict, `propose_policy`'s details text, the `fetch` rerun (lifted 63% to 84%, every lifted policy right; in `POLICIES.md`); left there: model proposals not yet appended to `policy-corpus.json`, `riskyRegex` not widened. ASSIGNED 2026-10-21 (#963): the host-side change of the null ruling, `repoConfigRunsCode: false` when no repository encloses `cwd`, is lane 11's, a window-ml-host PR, the janitor reviewing after #957; the two `sh` answers it wins back are in #961's rescore. Built as window-ml-host #23, MERGED 2026-10-21 (fb436349; the janitor reviewed at e12941d), with the commondir residual ruled into it (#965); host #24, MERGED 2026-10-21 (afba286c, f1b0bfd with the janitor's one finding applied: the still-running check tells a timeout from a panicked thread), is the warden exit-2 test queued from #22. #973 (e7ab5488) carries `false` into the scorer's non-git calls, `sh` rescored 29 of 53; it merged before its named review was posted, and the janitor's review of it is post-merge. **Lane 11: DONE** (2026-10-21): [`LANE_11_RESULT.md`](LANE_11_RESULT.md) (#978, f34d3555; reviewed by the coordinator), clone removed. Left, named there: model proposals not appended to `policy-corpus.json`, `riskyRegex` not widened, `sh` in `propose_policy` only if Shane widens it, the two-profile residual of the `ended` record; and from the janitor's post-merge review of #973 (clear, 2026-10-21): no scorer vector is a git call outside a repository, so the host's `false` for that shape is untested in the panel. **Lane 12: DONE** (2026-10-21): [`LANE_12_MEMORY_FAIL_CLOSED.md`](LANE_12_MEMORY_FAIL_CLOSED.md); parawanderer/cpython#9 merged at 0169c4fd (block table fails closed, verify on every approved return, the stacked-wrapper C test; reviewed by the janitor, the red team found it); the re-pin and the `verify-cost` notebook in #957, merged c03e1344 (the janitor reviewed): about 74 ns per approved C call quiet, 1.36x on a bare loop of approved C calls, about 4% at the upper quartile of 1,702 real cells; as built in the `memory` row. CLOSED 2026-10-21: [`LANE_12_RESULT.md`](LANE_12_RESULT.md) (#966, 4bce7b08; reviewed by the coordinator), clones removed. Left, named there: the native column not retaken quiet. Done since: the quiet A/A retake with the load average stamped (#977; raw in `notebooks/python-dialect/wrapper-bench/`); the fork branch `lab/mem-recheck-gate` (9c7e5fb8) deleted 2026-10-21 on Shane's word, its design kept in [`LANE_13_PROBE_NARROWED.md`](LANE_13_PROBE_NARROWED.md). **Lane 13: CLOSED ON THE NUMBER** (2026-10-21): [`LANE_13_PROBE_NARROWED.md`](LANE_13_PROBE_NARROWED.md) kept as the design; 4% at q75 on real cells is no widening's worth, and the 1.36x is only the bare loop; reopens only if a real workload shows that shape, Shane's call. **Lane 3: CLOSED 2026-10-21**: [`LANE_3_RESULT.md`](LANE_3_RESULT.md) (#932, 84ec012b): fork #6/#7/#8, #918, #928, the wasm + `fetch` and `sh` bench tasks measured as text, with the corpus committed (#925); the lifter's test may hold a tree evaluator under `tests/` (#927). MEASURED 2026-10-21 (#934, b8030ae8): the lifter covers 63% of `fetch` and 45% of `sh` proposals, below the predicted 80-95 and 55-75; one fail-open (an ALLOW over a `null` fact), ruled in `POLICIES.md` (an ALLOW over an unknown never fires); lane 11's follow-up MERGED (#961, c1d1f6ed): the null rule in the realm and the tree verdict, `propose_policy`'s details text, the `fetch` rerun (lifted 63% to 84%, every lifted policy right; in `POLICIES.md`); left there: model proposals not yet appended to `policy-corpus.json`, `riskyRegex` not widened. ASSIGNED 2026-10-21 (#963): the host-side change of the null ruling, `repoConfigRunsCode: false` when no repository encloses `cwd`, is lane 11's, a window-ml-host PR, the janitor reviewing after #957; the two `sh` answers it wins back are in #961's rescore. Built as window-ml-host #23, MERGED 2026-10-21 (fb436349; the janitor reviewed at e12941d), with the commondir residual ruled into it (#965); host #24, MERGED 2026-10-21 (afba286c, f1b0bfd with the janitor's one finding applied: the still-running check tells a timeout from a panicked thread), is the warden exit-2 test queued from #22. #973 (e7ab5488) carries `false` into the scorer's non-git calls, `sh` rescored 29 of 53; it merged before its named review was posted, and the janitor's review of it is post-merge. **Lane 11: DONE** (2026-10-21): [`LANE_11_RESULT.md`](LANE_11_RESULT.md) (#978, f34d3555; reviewed by the coordinator), clone removed. Left, named there: model proposals not appended to `policy-corpus.json`, `riskyRegex` not widened, `sh` in `propose_policy` only if Shane widens it, the two-profile residual of the `ended` record; and from the janitor's post-merge review of #973 (clear, 2026-10-21): no scorer vector is a git call outside a repository, so the host's `false` for that shape is untested in the panel. **Lane 12: DONE** (2026-10-21): [`LANE_12_MEMORY_FAIL_CLOSED.md`](LANE_12_MEMORY_FAIL_CLOSED.md); wanderdev0/cpython#9 merged at 0169c4fd (block table fails closed, verify on every approved return, the stacked-wrapper C test; reviewed by the janitor, the red team found it); the re-pin and the `verify-cost` notebook in #957, merged c03e1344 (the janitor reviewed): about 74 ns per approved C call quiet, 1.36x on a bare loop of approved C calls, about 4% at the upper quartile of 1,702 real cells; as built in the `memory` row. CLOSED 2026-10-21: [`LANE_12_RESULT.md`](LANE_12_RESULT.md) (#966, 4bce7b08; reviewed by the coordinator), clones removed. Left, named there: the native column not retaken quiet. Done since: the quiet A/A retake with the load average stamped (#977; raw in `notebooks/python-dialect/wrapper-bench/`); the fork branch `lab/mem-recheck-gate` (9c7e5fb8) deleted 2026-10-21 on Shane's word, its design kept in [`LANE_13_PROBE_NARROWED.md`](LANE_13_PROBE_NARROWED.md). **Lane 13: CLOSED ON THE NUMBER** (2026-10-21): [`LANE_13_PROBE_NARROWED.md`](LANE_13_PROBE_NARROWED.md) kept as the design; 4% at q75 on real cells is no widening's worth, and the 1.36x is only the bare loop; reopens only if a real workload shows that shape, Shane's call. **Lane 3: CLOSED 2026-10-21**: [`LANE_3_RESULT.md`](LANE_3_RESULT.md) (#932, 84ec012b): fork #6/#7/#8, #918, #928, the wasm numbers, the tracemalloc repro refused on 7c40b038. Left, named there: the red team's post-merge read of fork #6 and #7 and its column-shapes PR (the red team's); the superseded fork branch `ml/wasm32-wrappers-per-run` (Shane's to delete); the mechanism of the slowdown without per-run unwrapping, since settled by the janitor (2026-10-21, one extra indirect call per allocation, about 40 ns; in the memory row). Fork #7 merged with no review on it @@ -2811,7 +2811,7 @@ version and reason when it pushes; the coordinator surfaced that reading to Shan chat-two-execs (Chat Page). A pill on a fake (small-fixes). Recording `propose-policy-setting.test.mjs`'s calibration at its next flake. `new URL` in the policy language, its own PR. A shell write-back task with an approver rule, bench's second step. Rulings 129 and 130's builds, and the describer's step 4. -- **The canvas session's fork merges (`[window-ml canvas]`, on Shane's word, 2026-10-24).** parawanderer/cpython#10 +- **The canvas session's fork merges (`[window-ml canvas]`, on Shane's word, 2026-10-24).** wanderdev0/cpython#10 (59d015a5): `risky_regex` tells an exact count like `{3}` from a choice inside a repeated group, and refuses `{0,1}` like `?`, window-ml's `riskyRegex` change ported. cpython#11 (1e35340b): the read-only Python dialect's regex check also walks `re`'s parse tree (`risky_parse`, either check refuses); closes the `{,n}`, verbose-via-flags-int and conditional-group diff --git a/docs/plan/repl/ROOT_K_RESULT_1.md b/docs/plan/repl/ROOT_K_RESULT_1.md index 70ab93096..cf974115a 100644 --- a/docs/plan/repl/ROOT_K_RESULT_1.md +++ b/docs/plan/repl/ROOT_K_RESULT_1.md @@ -5,7 +5,7 @@ R5. Written by the `[window-ml root-k]` session, 2026-10-23. ## What landed -- **Host, parawanderer/window-ml-host#28** (`ae7284e6`, host 0.7.0). `register { pgid, owner, … }` makes a process +- **Host, wanderdev0/window-ml-host#28** (`ae7284e6`, host 0.7.0). `register { pgid, owner, … }` makes a process group a session started a row of the one owner table (`kind: "registered"`), bound to the registering connection, so the port closing is its owner going under the same `onOwnerLoss` as a spawn. The host samples it every 100 ms, holds it to its memory bound (`killed: "oom"`), answers `cancel`, and signals it only through `kill_if_ours`. Refused with diff --git a/docs/plan/repl/ROUND_4.md b/docs/plan/repl/ROUND_4.md index 6357cc0ad..0f79bd049 100644 --- a/docs/plan/repl/ROUND_4.md +++ b/docs/plan/repl/ROUND_4.md @@ -16,14 +16,14 @@ for the mail protocol. **Make your own clone this round** (lanes 10 and 11; lane 3 has its clones). From `~/git`: ``` -git clone git@github.com:parawanderer/window-ml.git window-ml-repl-lane +git clone git@github.com:wanderdev0/window-ml.git window-ml-repl-lane cd window-ml-repl-lane ln -s ../window-ml/.env .env && ln -s ../window-ml/pyodide-wheels pyodide-wheels git config core.hooksPath .githooks npm ci && npm run build ``` -Lane 11's host clone: `git clone git@github.com:parawanderer/window-ml-host.git window-ml-host-lane11` (Rust; its own +Lane 11's host clone: `git clone git@github.com:wanderdev0/window-ml-host.git window-ml-host-lane11` (Rust; its own README says how to build and test). Work ONLY in your clones, on a branch, through a PR with `@` topic labels; never in `~/git/window-ml`, `~/git/window-ml-host`, `~/git/window-ml-host-k3`, `~/git/window-ml-host-review` or another lane's clone (the three host checkouts that exist are not yours and are not removed). Remove a clone you made when your last diff --git a/docs/spec/ARTIFACTS.md b/docs/spec/ARTIFACTS.md index 8099a91ec..fb645dc79 100644 --- a/docs/spec/ARTIFACTS.md +++ b/docs/spec/ARTIFACTS.md @@ -1,6 +1,6 @@ # Spec: artifacts, pages the agent writes and nothing can send anywhere -**Status: spec-wip, nothing built.** Written 2026-10-24 from [issue #320](https://github.com/parawanderer/window-ml/issues/320) +**Status: spec-wip, nothing built.** Written 2026-10-24 from [issue #320](https://github.com/wanderdev0/window-ml/issues/320) (the "agent canvas", refined 2026-10-23 into artifacts) and a design session with @parawanderer the same day. The decisions marked RULED are his; everything else is proposed. The spike that answered the open questions is [docs/plan/artifacts/SPIKE.md](../plan/artifacts/SPIKE.md) (2026-10-24); what it changed is marked "(spike)" below. diff --git a/docs/spec/BACKUP_FORMAT.md b/docs/spec/BACKUP_FORMAT.md index aab7628c8..f27df59eb 100644 --- a/docs/spec/BACKUP_FORMAT.md +++ b/docs/spec/BACKUP_FORMAT.md @@ -166,7 +166,7 @@ written as final, with bytes after it, is `trailing-data`. If neither flag authe To use it on a machine that has neither the repository nor the extension: ``` -curl -O https://raw.githubusercontent.com/parawanderer/window-ml/main/tools/wmlbak-decrypt.mjs +curl -O https://raw.githubusercontent.com/wanderdev0/window-ml/main/tools/wmlbak-decrypt.mjs npm install hash-wasm node wmlbak-decrypt.mjs 2026-10.wmlbak 2026-10.sqlite # asks for the passphrase node wmlbak-decrypt.mjs 2026-10.wmlbak 2026-10.sqlite --recovery-key # asks for the recovery key diff --git a/docs/spec/POLICIES.md b/docs/spec/POLICIES.md index f7f53cd38..dd6d3f31a 100644 --- a/docs/spec/POLICIES.md +++ b/docs/spec/POLICIES.md @@ -186,7 +186,7 @@ card shows the call's resolved facts, not the script. ## A condition about the outside world is a pinned script -(Ruled 2026-10-20: Shane's suggestion after the classifier refused a merge of parawanderer/cpython#4; lane 3's +(Ruled 2026-10-20: Shane's suggestion after the classifier refused a merge of wanderdev0/cpython#4; lane 3's analysis; #853, #859.) A policy cannot ask whether CI is green or whether anyone has commented: it sees only the call's resolved facts and diff --git a/docs/spec/PYTHON_DIALECT.md b/docs/spec/PYTHON_DIALECT.md index fcaafd4b4..3d30be604 100644 --- a/docs/spec/PYTHON_DIALECT.md +++ b/docs/spec/PYTHON_DIALECT.md @@ -43,7 +43,7 @@ is the callback gate plus the kill switch. Four things are wrong with it. runtime.** That draft was the Python analogue of the JS tree-walker, and the tree-walker has already proved what a read-only language is worth; a second proof-of-concept at that layer teaches nothing. In V8 the dialect cannot be hooked into the runtime without shipping a browser, which is why the JS side's best move is a bytecode compiler -([#277](https://github.com/parawanderer/window-ml/issues/277)). CPython is different: Pyodide already builds it from a +([#277](https://github.com/wanderdev0/window-ml/issues/277)). CPython is different: Pyodide already builds it from a patch series, and the process host runs a build we ship. So the gate goes where it belongs, in the interpreter's abstract object layer, and the cost of interpretation goes to zero. @@ -59,7 +59,7 @@ Where each property of the dialect lives: | the step budget | a counter at the eval breaker | CPython already checks it on backward jumps and calls, which is where loops and recursion are; a few lines in `ceval`. The halting rules below still refuse the unbounded forms statically, so a refusal happens BEFORE running where it can | | ownership | an allocation hook under the flag, plus the manifest's return marking | an object allocated while restricted is owned; a leaf's `fresh` return is marked owned, `alias(i)` inherits argument i's, `internal` is never owned (a view from `reshape`). A side set keyed by pointer, with removal on dealloc, so the object layout is unchanged | | rollback | an undo log at the write barrier | every restricted write records container, key and old value, and a refusal replays it; a C leaf marked `mutates(i)` on a value from an earlier cell gets a copy first, or a refusal | -| memory | the same allocation hook, on EVERY allocator domain in use | a byte count per cell, the native form of the JS dialect's `MAX_COLLECTION`. The hook wraps the domain an allocation actually reaches, never one layer it is assumed to pass through: the first cut hooked the RAW domain and pymalloc's arenas, which Pyodide's CPython is built without (`--without-pymalloc`), so under wasm32 the MEM and OBJ domains went straight to `malloc` and the count saw almost nothing (lane 3, 2026-10-19, found from lane 5's two wasm32 vectors). A sequence repeat's size is judged against the count before CPython's own overflow guards, so the refusal is `NotInDialect` and never `OverflowError`/`MemoryError`; the tests run under `PYTHONMALLOC=malloc` natively, which is the same wiring. The MEM and OBJ wrappers are installed only for the outermost run's extent, so plain exec outside a run allocates with nothing in between (RAW stays installed); built in parawanderer/cpython#6 (merged a315999c, 2026-10-21) with two guards against stacked hooks: `MemoryEnd` restores only while the installed allocator is still ours, so a hook stacked on ours during a run (`tracemalloc.start` from host code) is not dropped, and `MemoryBegin` never wraps our own wrapper, or every block counts twice. A free-threaded build keeps them installed from the first run on, since no domain is swapped without a GIL; its FIRST wrap is still unlocked (the janitor's review of #6), a named limit outside Pyodide's build. Measured: natively NO gain (2026-10-20, the generalist: plain exec after a run 1.06–1.11x of before with per-run unwrapping, 1.08–1.19x without, an ordering effect); under wasm32 a gain beyond the spread (lane 3, 2026-10-21: 1,000,000 `(i, i+1)` appends, 12 interleaved rounds, a fresh interpreter per core per round, minimum of 3 per state: plain exec after three metered runs 0.142–0.158 s with per-run wrapping and 0.150–0.237 s without, median 0.146 vs 0.213, faster in all 12 paired rounds; equal before any run and in the metered run itself). Lane 5's earlier 1.3x was the always-installed cost this removes. Its mechanism, settled by the janitor (2026-10-21, mail `20261021-1138Z-flaky-ci-to-repl-specs-wrapper-mechanism.md`, measurement only): one extra C frame and a second function-pointer call on every MEM/OBJ allocation, about 40 ns each (38.5 ns median per held int; 105–122 ns per alloc+free pair, FLAT from 1 B to 2048 B, so not locality; 1.00 before the first restricted run, so not the interleaving), invisible natively because libc malloc already costs more than that. Two measurement rules it leaves: a same-core A/A control's per-round MAX reached 1.29x, taken under four cores of foreign spin (six load shells an earlier repro left running for 27 hours; found 2026-10-21, 13:30Z mail); RETAKEN QUIET the same day (the janitor, 15:35Z, 8 same-core rounds on one core, min over reps, median over rounds, load average and a spinner check stamped beside every row, no spinners, load 2.0-3.8 from ambient editor helpers; raw `notebooks/python-dialect/wrapper-bench/aa-quiet.json`, its driver and `aa-summary.py` beside it, the figures recomputed by the coordinator): A/A median 0.988, difference-in-differences median 0.992 (1.009 the other way round), per-round min and max 0.607 and 1.321. So a wrapper-bench claim is a MEDIAN OVER ROUNDS and is good to about 1%; a single round swings 1.3x either way and is never quoted. The absolute cost the row quotes is the same-core (after minus before) per held allocation, median 35.0 ns (16.9-41.4, n=16); the earlier 38.5 ns was a cross-core pair (always-on against per-run install) from a core that is gone from the box, so it is not retaken, and the 122 ns upper figure was taken under the spin.3 from one paired round; and plain exec after ANY restricted run is 1.33–1.51x slower on both cores, so "worse after metered than after trivial" is that shift plus spread, not accumulation in the wrapper. A second defect of the first cut, native only: the allocator name was read AFTER RAW was wrapped, so under pymalloc the MEM/OBJ domains were wrapped too and every block counted twice (`[0]*10**6` counted 16,000,800 bytes; the desktop host's 256 MiB cap refused at about 128 MiB); the name is read first (parawanderer/cpython#3, the test pins that number; lane 4 verified natively over 5,715 allocator states, and under the default 256 MiB cap the largest `[0]*n` is exactly 2^25 items). A hook installed on pymalloc BEFORE the first run (`-X tracemalloc`, or host code calling `tracemalloc.start` first) hides the allocator's name, and a hidden name used to mean "wrap MEM/OBJ", so the cap counted every block twice again and refused at half its number (lane 4's review, 2026-10-20, listed as a limit that errs toward refusing); fixed the same day in parawanderer/cpython#4 (merged b0bbaa5, lane 4 reviewed): when the name is hidden, the startup choice (`_PyRuntime.preconfig.allocator`) decides, pinned by a tracemalloc variant of the memory test. Left out, by design: an embedder that swaps the MEM/OBJ allocators after startup. Pyodide is unaffected (its name reads `malloc`), so no rebuild is needed for it. A Python-level swap is NOT left out (lane 3, 2026-10-21, measured on 77376876 under both allocators): `tracemalloc.start()` from host code, then any restricted run, then `tracemalloc.stop()` puts back the allocators saved at start, which predate ours, so RAW, MEM and OBJ are all dropped for good and a later dialect cell growing 512 MB of pointers is admitted with `memory() = 0` (a one-shot repeat is still refused, since that check is arithmetic). Only approved full-path code can do it and the consequence is an uncapped cell, a worker OOM, not an escape. Ruled the same day: at EVERY restricted entry the hooks are verified installed on every domain in use and re-installed when not, or the run refuses; a universal check, so it also covers any other swap, not a tracemalloc special case. The per-run branch's MEM/OBJ re-wrap is half of it (RAW stays lost under pymalloc); the fork fix is lane 3's, its own PR after the wasm number, with the repro as its test, read by the red team after merge. Built in parawanderer/cpython#7 (merged 7c40b038, 2026-10-21): at each outermost entry every wrapped domain (RAW; MEM and OBJ without pymalloc) gets one allocation of a distinctive size through its public API, counting the wrappers of ours it passes. One means ours is in the chain, on top or under a stacked hook. None means it was dropped, and ours goes back on top; anything but one after that refuses the run. Only the probe's own size counts, since tracemalloc's trace entries pass through ours too. The arena allocator, which nothing in CPython hooks, is checked by pointer. A free-threaded build refuses instead of re-installing. The block table allocates from the C library, because through RAW a restarted tracemalloc chained back into our wrapper without end. Entry cost natively: none measurable next to a trivial run's 80–99 µs. The repro is the test, under pymalloc, `PYTHONMALLOC=malloc` and `-X tracemalloc`. Red team's post-merge read of #6 and #7 (2026-10-21, mail `20261021-1300Z-redteam-e3-to-coordinator-fork6-fork7-post-merge.md`): both hold on the path the ruling names; one hole in the row as written, ruled the same day. The block table FAILS OPEN: `mem_record` ignores a failed `_Py_hashtable_set` (`restricted.c:898`), so when the table's own node allocation fails the block is live and uncharged and every later block too, and the run is uncapped from then on; the owned set and the lifted-generators table use the same idiom and are fail-closed by construction (not recorded means not owned, stays gated), which the cap's direction is not. Reachable only when the table's malloc fails while the cell's own still succeeds (a process near its limit; zero-byte blocks take a node at zero charge), so a resource-limit hole and not an escape, but a hole in "a byte count per cell". RULED: a failed insert is a TRIP, the block freed and `NULL` returned, and the same for `counted_realloc`'s failure restore (`:960`, `:967`): the cap errs toward refusing, never toward not counting. One case the letter cannot cover, ruled on lane 12's question (2026-10-21, fork #9, merged at 0169c4fd): a realloc that SUCCEEDED and then fails to record cannot be freed and `NULL` returned, since the block may have moved and the caller's old pointer is gone; it trips the run, stays charged and is returned, and the tripped run executes nothing after it. The verify-on-return is per approved call into C, lifted or not. AS BUILT (lane 12, 2026-10-21; window-ml #957, merged c03e1344, pins the fork's 0169c4fd release; the rounds and the raw JSON in `notebooks/python-dialect/verify-cost/`, reviewed by the janitor, who recomputed every figure from `data/`): natively about 55 ns per approved call (1.26x on a `len()` loop); under wasm32 about 74 ns per approved C call on a quiet machine, 1.36x on a bare loop of approved C calls (1.326-1.405, same-core A/A 0.975-1.019), 1.30x on a lifted leaf, 1.047 on a trivial run and 1.05 on the cell's own defs, both inside the A/A; the gate's own cost 1.08-1.09x; on 1,702 real cells (217 ok, 260 own-error, 1,225 refused; a fresh process per core per round, order rotated, min over reps and median over rounds) the ok cells' median is 1.036 and upper quartile 1.045 against an A/A of 0.999-1.014, the cells whose base runs a millisecond or more 1.028 and 1.045, own-error cells 1.041 and 1.051. The 200 ns and 1.41x of the trial were taken under six foreign load shells (the `trial` and `release-loaded` sets, marked), as the native 55 ns may have been; the ratios agree within a few hundredths, the absolute nanoseconds are about 2x. A changed-top-only probe (42-51 ns, 1.09x) is blind to a hook restarted with an identical top, so it is not used, and the full probe STANDS (ruled 2026-10-21): the changed-top check is a proxy for "ours is in the chain", and its blind window is one where bytes are not counted, so no counted quantity can bound it. The narrowing that pays the full probe only after calls that can reach the allocator API ([`LANE_13_PROBE_NARROWED.md`](../plan/repl/LANE_13_PROBE_NARROWED.md)) is CLOSED on the number (ruled 2026-10-21): about 4% at the upper quartile of real cells is outside the A/A spread and worth no widening; the 1.36x exists only on a bare loop of approved C calls, and the brief reopens only if a real workload shows that shape, which is Shane's call. Also ruled: "every entry" is not every moment of a run. An approved leaf (`allow_call`) that swaps the allocator back mid-run (`tracemalloc.stop()` from host code) uncaps the rest of that cell until the next outermost entry; the verify runs again when an approved leaf RETURNS, built in fork #9 with the cost above. The `hits != 1` refusal (a domain that would count twice) is covered by #9's C test that stacks two of our wrappers; its mutation (`== 0`) fails the test. One limit stated, not fixed: the cap is per thread (`mem_mine`), so a C library allocating on its own threads is outside the count, which the shipped wasm32 core cannot do. Left for the next rounds (the janitor's review of #957): the raw JSON carries no load metadata, so the quiet A/A retake stamps the load average before and after beside the timings. | +| memory | the same allocation hook, on EVERY allocator domain in use | a byte count per cell, the native form of the JS dialect's `MAX_COLLECTION`. The hook wraps the domain an allocation actually reaches, never one layer it is assumed to pass through: the first cut hooked the RAW domain and pymalloc's arenas, which Pyodide's CPython is built without (`--without-pymalloc`), so under wasm32 the MEM and OBJ domains went straight to `malloc` and the count saw almost nothing (lane 3, 2026-10-19, found from lane 5's two wasm32 vectors). A sequence repeat's size is judged against the count before CPython's own overflow guards, so the refusal is `NotInDialect` and never `OverflowError`/`MemoryError`; the tests run under `PYTHONMALLOC=malloc` natively, which is the same wiring. The MEM and OBJ wrappers are installed only for the outermost run's extent, so plain exec outside a run allocates with nothing in between (RAW stays installed); built in wanderdev0/cpython#6 (merged a315999c, 2026-10-21) with two guards against stacked hooks: `MemoryEnd` restores only while the installed allocator is still ours, so a hook stacked on ours during a run (`tracemalloc.start` from host code) is not dropped, and `MemoryBegin` never wraps our own wrapper, or every block counts twice. A free-threaded build keeps them installed from the first run on, since no domain is swapped without a GIL; its FIRST wrap is still unlocked (the janitor's review of #6), a named limit outside Pyodide's build. Measured: natively NO gain (2026-10-20, the generalist: plain exec after a run 1.06–1.11x of before with per-run unwrapping, 1.08–1.19x without, an ordering effect); under wasm32 a gain beyond the spread (lane 3, 2026-10-21: 1,000,000 `(i, i+1)` appends, 12 interleaved rounds, a fresh interpreter per core per round, minimum of 3 per state: plain exec after three metered runs 0.142–0.158 s with per-run wrapping and 0.150–0.237 s without, median 0.146 vs 0.213, faster in all 12 paired rounds; equal before any run and in the metered run itself). Lane 5's earlier 1.3x was the always-installed cost this removes. Its mechanism, settled by the janitor (2026-10-21, mail `20261021-1138Z-flaky-ci-to-repl-specs-wrapper-mechanism.md`, measurement only): one extra C frame and a second function-pointer call on every MEM/OBJ allocation, about 40 ns each (38.5 ns median per held int; 105–122 ns per alloc+free pair, FLAT from 1 B to 2048 B, so not locality; 1.00 before the first restricted run, so not the interleaving), invisible natively because libc malloc already costs more than that. Two measurement rules it leaves: a same-core A/A control's per-round MAX reached 1.29x, taken under four cores of foreign spin (six load shells an earlier repro left running for 27 hours; found 2026-10-21, 13:30Z mail); RETAKEN QUIET the same day (the janitor, 15:35Z, 8 same-core rounds on one core, min over reps, median over rounds, load average and a spinner check stamped beside every row, no spinners, load 2.0-3.8 from ambient editor helpers; raw `notebooks/python-dialect/wrapper-bench/aa-quiet.json`, its driver and `aa-summary.py` beside it, the figures recomputed by the coordinator): A/A median 0.988, difference-in-differences median 0.992 (1.009 the other way round), per-round min and max 0.607 and 1.321. So a wrapper-bench claim is a MEDIAN OVER ROUNDS and is good to about 1%; a single round swings 1.3x either way and is never quoted. The absolute cost the row quotes is the same-core (after minus before) per held allocation, median 35.0 ns (16.9-41.4, n=16); the earlier 38.5 ns was a cross-core pair (always-on against per-run install) from a core that is gone from the box, so it is not retaken, and the 122 ns upper figure was taken under the spin.3 from one paired round; and plain exec after ANY restricted run is 1.33–1.51x slower on both cores, so "worse after metered than after trivial" is that shift plus spread, not accumulation in the wrapper. A second defect of the first cut, native only: the allocator name was read AFTER RAW was wrapped, so under pymalloc the MEM/OBJ domains were wrapped too and every block counted twice (`[0]*10**6` counted 16,000,800 bytes; the desktop host's 256 MiB cap refused at about 128 MiB); the name is read first (wanderdev0/cpython#3, the test pins that number; lane 4 verified natively over 5,715 allocator states, and under the default 256 MiB cap the largest `[0]*n` is exactly 2^25 items). A hook installed on pymalloc BEFORE the first run (`-X tracemalloc`, or host code calling `tracemalloc.start` first) hides the allocator's name, and a hidden name used to mean "wrap MEM/OBJ", so the cap counted every block twice again and refused at half its number (lane 4's review, 2026-10-20, listed as a limit that errs toward refusing); fixed the same day in wanderdev0/cpython#4 (merged b0bbaa5, lane 4 reviewed): when the name is hidden, the startup choice (`_PyRuntime.preconfig.allocator`) decides, pinned by a tracemalloc variant of the memory test. Left out, by design: an embedder that swaps the MEM/OBJ allocators after startup. Pyodide is unaffected (its name reads `malloc`), so no rebuild is needed for it. A Python-level swap is NOT left out (lane 3, 2026-10-21, measured on 77376876 under both allocators): `tracemalloc.start()` from host code, then any restricted run, then `tracemalloc.stop()` puts back the allocators saved at start, which predate ours, so RAW, MEM and OBJ are all dropped for good and a later dialect cell growing 512 MB of pointers is admitted with `memory() = 0` (a one-shot repeat is still refused, since that check is arithmetic). Only approved full-path code can do it and the consequence is an uncapped cell, a worker OOM, not an escape. Ruled the same day: at EVERY restricted entry the hooks are verified installed on every domain in use and re-installed when not, or the run refuses; a universal check, so it also covers any other swap, not a tracemalloc special case. The per-run branch's MEM/OBJ re-wrap is half of it (RAW stays lost under pymalloc); the fork fix is lane 3's, its own PR after the wasm number, with the repro as its test, read by the red team after merge. Built in wanderdev0/cpython#7 (merged 7c40b038, 2026-10-21): at each outermost entry every wrapped domain (RAW; MEM and OBJ without pymalloc) gets one allocation of a distinctive size through its public API, counting the wrappers of ours it passes. One means ours is in the chain, on top or under a stacked hook. None means it was dropped, and ours goes back on top; anything but one after that refuses the run. Only the probe's own size counts, since tracemalloc's trace entries pass through ours too. The arena allocator, which nothing in CPython hooks, is checked by pointer. A free-threaded build refuses instead of re-installing. The block table allocates from the C library, because through RAW a restarted tracemalloc chained back into our wrapper without end. Entry cost natively: none measurable next to a trivial run's 80–99 µs. The repro is the test, under pymalloc, `PYTHONMALLOC=malloc` and `-X tracemalloc`. Red team's post-merge read of #6 and #7 (2026-10-21, mail `20261021-1300Z-redteam-e3-to-coordinator-fork6-fork7-post-merge.md`): both hold on the path the ruling names; one hole in the row as written, ruled the same day. The block table FAILS OPEN: `mem_record` ignores a failed `_Py_hashtable_set` (`restricted.c:898`), so when the table's own node allocation fails the block is live and uncharged and every later block too, and the run is uncapped from then on; the owned set and the lifted-generators table use the same idiom and are fail-closed by construction (not recorded means not owned, stays gated), which the cap's direction is not. Reachable only when the table's malloc fails while the cell's own still succeeds (a process near its limit; zero-byte blocks take a node at zero charge), so a resource-limit hole and not an escape, but a hole in "a byte count per cell". RULED: a failed insert is a TRIP, the block freed and `NULL` returned, and the same for `counted_realloc`'s failure restore (`:960`, `:967`): the cap errs toward refusing, never toward not counting. One case the letter cannot cover, ruled on lane 12's question (2026-10-21, fork #9, merged at 0169c4fd): a realloc that SUCCEEDED and then fails to record cannot be freed and `NULL` returned, since the block may have moved and the caller's old pointer is gone; it trips the run, stays charged and is returned, and the tripped run executes nothing after it. The verify-on-return is per approved call into C, lifted or not. AS BUILT (lane 12, 2026-10-21; window-ml #957, merged c03e1344, pins the fork's 0169c4fd release; the rounds and the raw JSON in `notebooks/python-dialect/verify-cost/`, reviewed by the janitor, who recomputed every figure from `data/`): natively about 55 ns per approved call (1.26x on a `len()` loop); under wasm32 about 74 ns per approved C call on a quiet machine, 1.36x on a bare loop of approved C calls (1.326-1.405, same-core A/A 0.975-1.019), 1.30x on a lifted leaf, 1.047 on a trivial run and 1.05 on the cell's own defs, both inside the A/A; the gate's own cost 1.08-1.09x; on 1,702 real cells (217 ok, 260 own-error, 1,225 refused; a fresh process per core per round, order rotated, min over reps and median over rounds) the ok cells' median is 1.036 and upper quartile 1.045 against an A/A of 0.999-1.014, the cells whose base runs a millisecond or more 1.028 and 1.045, own-error cells 1.041 and 1.051. The 200 ns and 1.41x of the trial were taken under six foreign load shells (the `trial` and `release-loaded` sets, marked), as the native 55 ns may have been; the ratios agree within a few hundredths, the absolute nanoseconds are about 2x. A changed-top-only probe (42-51 ns, 1.09x) is blind to a hook restarted with an identical top, so it is not used, and the full probe STANDS (ruled 2026-10-21): the changed-top check is a proxy for "ours is in the chain", and its blind window is one where bytes are not counted, so no counted quantity can bound it. The narrowing that pays the full probe only after calls that can reach the allocator API ([`LANE_13_PROBE_NARROWED.md`](../plan/repl/LANE_13_PROBE_NARROWED.md)) is CLOSED on the number (ruled 2026-10-21): about 4% at the upper quartile of real cells is outside the A/A spread and worth no widening; the 1.36x exists only on a bare loop of approved C calls, and the brief reopens only if a real workload shows that shape, which is Shane's call. Also ruled: "every entry" is not every moment of a run. An approved leaf (`allow_call`) that swaps the allocator back mid-run (`tracemalloc.stop()` from host code) uncaps the rest of that cell until the next outermost entry; the verify runs again when an approved leaf RETURNS, built in fork #9 with the cost above. The `hits != 1` refusal (a domain that would count twice) is covered by #9's C test that stacks two of our wrappers; its mutation (`== 0`) fails the test. One limit stated, not fixed: the cap is per thread (`mem_mine`), so a C library allocating on its own threads is outside the count, which the shipped wasm32 core cannot do. Left for the next rounds (the janitor's review of #957): the raw JSON carries no load metadata, so the quiet A/A retake stamps the load average before and after beside the timings. | | imports | the `IMPORT_NAME` gate | a module is a receiver kind with an allow list; a package installed on demand arrives with its manifest or as `unknown` | **Two things this does that nothing above the runtime can**, and both are why Python 2's `rexec` and RestrictedPython's @@ -79,7 +79,7 @@ list of CVEs look the way they do: fire) guards it forever. Per-form guards in the specialized instructions (deopt when restricted) are the later optimisation if the measured cost of the switch matters; the same vectors then prove they lose nothing. The cost is measured on the corpus's own cells, not only on a benchmark suite. **Measured** (lane 3, 2026-10-15, slice 1 at - `parawanderer/cpython` branch `ml/restricted-mode`, 5b1d921): pyperformance's fourteen pure-Python benchmarks run + `wanderdev0/cpython` branch `ml/restricted-mode`, 5b1d921): pyperformance's fourteen pure-Python benchmarks run 1.66x slower with specialization off (geometric mean, stock and no-spec interleaved per benchmark over three rounds; `json_loads` 1.04x, `nbody` 2.47x), so specialization is most of 3.11+'s speedup. The 684 real bench cells (median 152 µs, mostly pandas and numpy C) run about 1.06x (1.04x weighted by time; noise about 0 to 14%). So the switch is diff --git a/docs/spec/READONLY_LIBRARY_MANIFEST.md b/docs/spec/READONLY_LIBRARY_MANIFEST.md index e784ff340..cb62aa943 100644 --- a/docs/spec/READONLY_LIBRARY_MANIFEST.md +++ b/docs/spec/READONLY_LIBRARY_MANIFEST.md @@ -110,7 +110,7 @@ under JS code and C extensions under Python. This tier is the only one that verifies itself. Its cost in JS is the interpretation slowdown: the JS dialect measures about 3.2M steps/s, far below native speed. In Python it costs nothing, because the gate is in the runtime ([`PYTHON_DIALECT.md`](PYTHON_DIALECT.md)): any pure-Python body reached from a restricted frame is this tier by default. Issue -[#277](https://github.com/parawanderer/window-ml/issues/277) (a bytecode/WASM compiler for the evaluator) is what +[#277](https://github.com/wanderdev0/window-ml/issues/277) (a bytecode/WASM compiler for the evaluator) is what would shrink that gap, and its ahead-of-time resolution of property names to integer ids is the natural place to compile a manifest into: a manifest entry becomes a row in the same table as the built-in whitelist. @@ -448,7 +448,7 @@ file lists has its row. ## Related -- Issue [#277](https://github.com/parawanderer/window-ml/issues/277): the evaluator as bytecode, which makes tier 3 +- Issue [#277](https://github.com/wanderdev0/window-ml/issues/277): the evaluator as bytecode, which makes tier 3 affordable and gives manifests a compiled form. - [`docs/dev/readonly-exec.md`](../dev/readonly-exec.md): the JS dialect, its halting table and its adversarial-test rule, which every manifest-driven extension inherits. diff --git a/docs/spec/REMOTE_TOOL_EXECUTION.md b/docs/spec/REMOTE_TOOL_EXECUTION.md index 7ae801b4f..954e180a9 100644 --- a/docs/spec/REMOTE_TOOL_EXECUTION.md +++ b/docs/spec/REMOTE_TOOL_EXECUTION.md @@ -7,7 +7,7 @@ long it actually spent. against. Two things follow: most of this document is a *mapping* rather than an invention, and the only genuinely new thing in it is one `_meta` key. -**Secondary target: OpenWebUI's `/execute`.** Built and working (`parawanderer/open-webui`, branch +**Secondary target: OpenWebUI's `/execute`.** Built and working (`wanderdev0/open-webui`, branch `ml/tool-execute-api`), reaching what MCP cannot — OpenWebUI's own local Python tools, its OpenAPI tool-server configuration, and its access control. Not proposed upstream. diff --git a/docs/spec/RUNTIME_HUB.md b/docs/spec/RUNTIME_HUB.md index 1627e9602..26419b8fb 100644 --- a/docs/spec/RUNTIME_HUB.md +++ b/docs/spec/RUNTIME_HUB.md @@ -1,6 +1,6 @@ # Spec: the runtime hub, driving agents from anywhere -**Status: built** (agreed 2026-09-15). The hub is `parawanderer/window-ml-hub`, pinned in +**Status: built** (agreed 2026-09-15). The hub is `wanderdev0/window-ml-hub`, pinned in `tests/fixtures/hub-harness.mjs`; the extension's half is `src/hub/` and `src/pairing/` (the index over a hub #182, a session's stream #187, pairing #212, #215 and #227; exec output reaching a hub client, #407). Security comes first in this document because it is the whole design: everything after it is plumbing that must not weaken it. diff --git a/docs/spec/SECRET_HANDLES.md b/docs/spec/SECRET_HANDLES.md index 8239e679d..d344b7e85 100644 --- a/docs/spec/SECRET_HANDLES.md +++ b/docs/spec/SECRET_HANDLES.md @@ -422,7 +422,7 @@ placeholders (not registered secrets). each of which the ruled section answers or states as a limit. The sandbox keeps a hidden file (a dotenv file, a credential file, and a path a `hide` policy holds once the host applies those entries) unreadable, but a program the person runs can still load it and print - a value, and the registry scrub ([#1948](https://github.com/parawanderer/window-ml/pull/1948)) catches only values + a value, and the registry scrub ([#1948](https://github.com/wanderdev0/window-ml/pull/1948)) catches only values the person registered. The idea: the host parses a hidden file when the call is spawned and sends its STRING LEAVES to the worker, which adds them to the session's registry, so an echoed value is scrubbed like a registered one. What it would take, and what stands against it: @@ -464,7 +464,7 @@ placeholders (not registered secrets). ## Amendments after the scrub (2026-11-18) -Four rulings of Shane's that build on the registry scrub ([#1948](https://github.com/parawanderer/window-ml/pull/1948), +Four rulings of Shane's that build on the registry scrub ([#1948](https://github.com/wanderdev0/window-ml/pull/1948), "The scrub as built"). The coordinator's calls under each are marked as such and were surfaced to Shane. Of this section, ruling 39's scrub by registered value and ruling 61 are built; the rest is not (the list under the table at the top). Ruling 30's value scrub lands after scrub PR 2, its channel mask with handles; ruling 32 lands before @@ -657,7 +657,7 @@ calls, each surfaced to Shane: reason is the accident: a token pasted with the text around it, a selection that held one, an attached file with a key in it. This lifts the known limit "the person's own turn and the page context the run is started with" of "The scrub as built" once it is built. The calls below are the coordinator's (plan PR -[#1966](https://github.com/parawanderer/window-ml/pull/1966)), each surfaced to Shane and theirs to override; the ones +[#1966](https://github.com/wanderdev0/window-ml/pull/1966)), each surfaced to Shane and theirs to override; the ones marked "recommended" are this spec's, still open. **Two detectors.** diff --git a/docs/spec/SHELL.md b/docs/spec/SHELL.md index 1ed8943eb..a66f6a2bc 100644 --- a/docs/spec/SHELL.md +++ b/docs/spec/SHELL.md @@ -196,7 +196,7 @@ extension can do is make it one paste. with this install's extension id in it and a "Check again". macOS (Apple silicon, Intel) and Linux (x86-64, arm64) have a line; any other platform is told there is no build. The line differs by OS only in the checksum program, and in Brave (which keeps its own native-messaging folder) it ends `--browser brave`. 2. The line downloads `install.sh` from the host's pinned release, checks its sha256 against the one in - `tools/host-dist.json`, then runs it with `--extension-id`. The installer ([INSTALL.md](https://github.com/parawanderer/window-ml-host/blob/main/docs/INSTALL.md) in window-ml-host) is rendered + `tools/host-dist.json`, then runs it with `--extension-id`. The installer ([INSTALL.md](https://github.com/wanderdev0/window-ml-host/blob/main/docs/INSTALL.md) in window-ml-host) is rendered by the host's release workflow with the sha256 of the release's four archives (one per platform above) written into it, downloads the archive for the platform, stops on a mismatch, puts `wmlhost` at ONE path, `~/.local/bin/wmlhost`, runs `wmlhost install --binary` with that path (so the native messaging manifest and a terminal name the same file; `wmlhost` is the one binary, and a terminal CLI would be a subcommand of it), and @@ -346,7 +346,7 @@ appear. It is a host protocol change (resolve plus a facts field, PROTOCOL.md) a owner is the ASYNC LANE, as a third host slice after `peek` (allocated 2026-11-07, both in the host's resolve path), starting only once `peek`, #1437, #1451 and #1453 are through; the window-ml tests and the `~`-spelled canary row (must ASK and show the expanded path, never read free as a workspace path) are the bench lane's, finder's -own file. Independent of the lease bench. PEEK DESIGN ACCEPTED 2026-11-08 (the async lane, building on branch `async/peek` in its own window-ml-host clone): a new host call `peek { id, bytes? = 4096, at most 512 KiB }` answering `{ id, stdout: { size, truncated, data } | null, stderr: { … } }` with the LAST `bytes` kept bytes of a call still in THIS connection's running table (null for a stage feeding a pipe); anything else is `UnknownId` (an ended call keeps the `done` pointer plus `read`, as now). Bytes, not text: the worker decodes and cuts lines. Same transports as `read` and `cancel`, no hub refusal, since it reads only the connection's own call. `hello` gains `peek: true` so the worker tells an old host apart, and that flag is the ONLY gate (no probing by calling peek). Capture flushes each chunk before publishing its count, so a peek never reads past disk. Conditions (coordinator): the worker drops a partial leading UTF-8 sequence and cuts at a line boundary before the model sees anything; the tail is model-facing and goes through sw-scrub.ts and the tool-output cap (e3's row: a secret in a running call's stdout never reaches the model); host-side red-team rows: peek of another connection's id, of an ended id and of a never-issued id all `UnknownId`, `bytes` above the cap clamped rather than an error that names the size, a peek during capture never reads past the flushed count. The host PR carries its PROTOCOL.md paragraph, janitor-2 reviews, then the window-ml side: an `ml.sh` task's `tail` calls peek when hello says so, else today's null with the reason line, which stays for old hosts. The build arm of the lease bench re-runs after this slice. HOST PR OPEN 2026-11-08: parawanderer/window-ml-host#29 at aedbc008 (verified open, "peek, the latest output of a call that is still running"); janitor-2 reviews it against the conditions above, then the window-ml side follows. TILDE HOST DESIGN RULED 2026-11-08 (the async lane's note; branch `async/tilde` stacked on `async/peek`, PR after #29, janitor-3 reviewing): one rewrite at the top of `Session::spawn`, the only argv resolve path (pipe stages are spawned ids, `register` runs nothing), so facts, path facts, the repo argument, the pending argv and the spawn all see the expanded form; HOME is the host process's own, the value env.rs passes to the child, and unset, empty or relative counts as absent, the argument staying literal with a reason and `to: null`; the facts gain `tilde: [{index, from, to}]`, always present, `index: "cwd"` standing for the cwd, which is expanded then still checked absolute and inside a root; `hello` gains `tilde: true`, the only gate. Three rulings: `"cwd"` in the same list, typed `number | "cwd"`; every later argument expands, not only pathArgs-marked ones, since an argv must mean one thing regardless of manifest, keeping the spec's limit that only a whole-argument `~` or a `~/…` prefix expands (`~user`, `a~b`, `--flag=~/x` stay literal, each with a row); the no-HOME reasons are a fixed enum (`no-home`, `home-not-absolute`), never free text. Two pins: expansion happens BEFORE judging, so `~/.ssh/config` is judged as the expanded path and asks while `~/notes.txt` inside a root reads free; no probing, the hello flag decides. WINDOW-ML HALF BUILT 2026-11-09 on `async/tilde`: the worker passes a `~` cwd through only when `hello.tilde` says so, the card and the unasked line show each entry as `~/x is /real/x` (or warn that it stayed literal), and the JSDoc clause is conditioned on a new `shellTilde` capability rather than the host's version; glob's own cwd does not expand (janitor-3), which nothing in window-ml reaches, since the worker never calls `glob`. PUT SLICE RULED 2026-11-08 (Shane confirmed the ruling in the coordinator's session; the async lane's host design note accepted in full): the fourth slice of the resolve path, after tilde, lets `ml.sh.put(handle, path)` write an attachment's original bytes to disk (FILE_ATTACHMENTS.md ruling 3). THREE CALLS, spawn's resolve → judge → act shape, because "an existing file always asks" must be judged before a byte lands: `put {path, cwd, size}` resolves and answers facts only (`exists`, `existingSize`, `root`, `rel`, `tilde`, `expiresInMs`; the same tilde and cwd rules as `spawn`; the parent must exist, is held as a directory descriptor from then on so a later symlink swap cannot redirect the write; a missing parent is `NoParent`, a parent whose realpath leaves the roots is `OutsideRoots`, a symlink target `IsSymlink` whichever way it points, a directory `IsDirectory`, a `protected_rels` or `looks_secret` target `Protected` with no verdict that can allow it, `size` above the host's cap `TooLarge`); `write {id, offset, bytes}` appends chunks of at most 512 KiB (PROTOCOL's constant) at a strict offset into a temp file created `O_CREAT|O_EXCL|O_NOFOLLOW` 0600 beside the target; `commit {id, replace}` fsyncs, chmods to 0666 & ~umask and renames through the held descriptor, no-replace (`RENAME_NOREPLACE`/`RENAME_EXCL`) unless the person approved the overwrite, so a file that appears between the fact and the write is `Exists`; the answer is `{id, path, rel, size, sha256}`. The temp file is deleted on `discard`, TTL, a failed commit and connection end. Hello carries `put: { max }` (64 MiB first; the host owns the number, the worker refuses above it before the first write and its sentence names it). The host refuses the call over the hub transport (`HubRefused`, scope) as well as the worker refusing a run with `origin.remote`. The window-ml half NAMES `put` in the iso-channel allowlist and never relaxes its length guard (e3's guard row). Owners: async builds the host PR first on `async/put` stacked on `async/tilde` (janitor-3), then the window-ml half in `sh-call.ts` (janitor-2); e3's rule-10 rows are on `redteam/sh-put` at 7a056e3d (13 tests: 2 controls and 1 guard green today, 10 todo, each measured red with the todo stripped), the test-only PR lands after the feature merges. WINDOW-ML HALF BUILT 2026-11-08 on `feat/sh-put` (`shPut`, sw-shell-call.ts; `sh-put.ts`; how it works: `docs/dev/shell.md`, "Writing an attachment to disk"): a new file is judged under the sandbox's bound at placement `host-sandbox`, since the host itself holds that bound for this write, so a nested path is free and a new top-level name asks; an existing file asks as `kind: "put"`; a run whose origin cannot be read is refused like a remote one. FINDING 2026-11-08 (e3, rule 9): the argv pointer-token refusal RULED 2026-10-28 above is UNBUILT: `ml.sh.run(["cat", "@file:3fa91c2"])` spawns the token as a path, unflagged. Not an escape today (opaque token), but with `put` it reads as a route to the person's bytes; the async lane builds the refusal in `sh-call.ts` with or before the put window-ml half, and e3's row flips as the finder's own commit. GH UNDER THE SANDBOX RULED 2026-11-08 (the gh-host session's piece-2 note, measured on macOS 25.6 with gh 2.103.0): gh keeps its token in the KEYRING, not in `hosts.yml`, and reaches it by exec'ing `/usr/bin/security`; with no token reachable, gh answers anonymously with NO error (a private repo reads as "not found"). A profile that authenticates from the keyring needs exec of `security`, read of `~/Library/Keychains` and the `com.apple.SecurityServer` service, and with those three granted the sandbox read a throwaway Keychain item another tool had stored: the Keychain ACL trusts the `security` binary, not the caller, so that variant is the whole Keychain and is REFUSED. The brief's variant (the credential directory read-only, `hosts.yml` writable) is withdrawn. ACCEPTED: a credentialed-network variant of `host-sandbox` whose credential the HOST holds and injects. The host has a fixed table of credential providers in code (v1: `github`), each saying how the token is obtained outside the sandbox (v1: the person's resolved gh run unconfined at spawn with `auth token --hostname github.com`, stdout captured and never logged; a Keychain dialog on first use is the person's one-time consent), which env name receives it (`GH_TOKEN`) and which program may name it (gh, by manifest name AND resolved binary). The manifest names only `credential: {provider}` and `network: {direction, ports}` with ports a subset of the provider's list ([443]); no path, env name or argv comes from a manifest, and the provider is honoured only for a manifest whose hash is in the host's pinned vector copy. The host sets `GH_TOKEN`, `GH_CONFIG_DIR=/gh` (throwaway: the person's pager/browser/editor keys and aliases are never read, which takes #1538's finding (e)), `GH_PROMPT_DISABLED=1`, `GH_NO_UPDATE_NOTIFIER=1`, `GH_TELEMETRY=0`; a call env naming any `GH_*`, `GITHUB_*`, `HTTPS_PROXY`/`HTTP_PROXY`/`ALL_PROXY`/`NO_PROXY` (any case) or `SSL_CERT_*` is refused (takes #1538's finding (c)). No token from the provider is `SecretUnavailable` before spawn: the call never runs anonymously by surprise (measured: a wrong token is a 401, not a fallback; an empty config dir refuses `api`). It ALWAYS asks: no policy allow applies, the free tier never covers it, and the card says "sends your GitHub token" through a `credential` fact (the "as the person" term #1538 pinned). Exec stays program-only, {gh, git, git's exec-path helpers}, never `/usr/bin/security`; Seatbelt is inherited, so git spawned by gh runs under gh's profile with port 443 and `GH_TOKEN` in its env, reads no credential helper, goes anonymous over https and fails over ssh (`~/.ssh` stays denied); the gh calls that spawn git with network already describe `runs-code` and ask. Seatbelt profile additions: `(allow network-outbound (remote tcp "*:443") (remote unix-socket (path-literal "/private/var/run/mDNSResponder")))` and `(allow mach-lookup (global-name "com.apple.trustd.agent"))`; port 80 is refused; nothing is written under `$HOME`. An env token is never refreshed or persisted (gh source `internal/config/config.go`, `ActiveTokenWithRefresh` returns a non-refreshable credential unchanged), so #1538's `hosts.yml` write does not arise on this path. Placement: the placement stays `host-sandbox`; `done`'s envelope gains `profile: "credentialed:github"` beside `write` and `exec`, and the worker's `boundFor` treats it as its own bound (network read and write, the credential effect, never free). A host that lacks the provider or a platform that cannot hold the variant answers `SandboxFailed` and NEVER the ordinary profile, which is the anonymous-by-surprise one; the worker then shows "asks, runs on the plain host" (the plain host keeps today's behaviour: gh asks and runs unconfined with the person's own keyring). STAGING: v1 is macOS with `*:443` (Seatbelt filters by address and port, so the host set is not scopable there), Linux answering `SandboxFailed`; PR 2 is a local CONNECT proxy on BOTH platforms (Seatbelt allows only `localhost:`, bwrap keeps `--unshare-net` with a host-side unix socket bound in and a forwarder inside; the host sets `HTTPS_PROXY`; the proxy filters by CONNECT host: api.github.com, github.com, uploads.github.com, *.githubusercontent.com), designed after v1 merges and measured on Linux by an mlbox handover. SHANE'S DIRECTION 2026-11-08 for PR 2: a manifest author must be able to declare the specific hosts a program may reach, so the PR 2 manifest shape carries `network.hosts` (exact hostnames or one `*.suffix` form, never a bare `*`), enforced by the proxy; a credential provider further restricts where the TOKEN may go to its own host list; a declared host is a described effect the card names ("reaches api.example.com") and asks by default. Hostile-manifest refusals: no path field exists; an env name is never taken from a manifest; a provider not in the table, or named by another program's manifest (curl naming github), is refused; ports outside the provider's list are refused at load; an unpinned manifest gets the ordinary profile. RED-TEAM ROWS (rule 10; e3 writes them as a test-only PR in a separate session after the feature merges): (1) `/usr/bin/security find-generic-password` on a throwaway item fails under the variant, direct and via gh; (2) `~/.config/gh` and `~/Library/Keychains` stay read-denied; (3) no token is `SecretUnavailable` and gh never ran; (4) a call env setting `GH_TOKEN`, `GH_HOST`, `GH_CONFIG_DIR`, `GH_ENTERPRISE_TOKEN`, `GITHUB_TOKEN`, `HTTPS_PROXY`, `https_proxy` or `SSL_CERT_FILE` is refused; (5) port 80 and a non-443 port are refused, 443 admitted; (6) `gh api https://:443/x` sends no `Authorization`; (7) `GH_CONFIG_DIR` is under the call's tmp and gone after, nothing under `$HOME`; (8) the curl manifest naming `provider: github` is refused and an unpinned one gets the ordinary profile; (9) what git spawned by gh CAN do is pinned as a FINDING row; (10) the token appears in no `done`, run log, error text (`sw-scrub.ts`) or card; (11) upgrade: an old host answers `SandboxFailed` to `profile: credentialed:github` and the worker does not retry under the ordinary profile. OWNERS: the gh-host session builds both halves (host PR reviewed by janitor-3; window-ml half, `boundFor`, the `credential` fact, scrub, the upgrade row, reviewed by janitor-2), after host#30 (MERGED a9613327) and the release workflow PR. Unmeasured and said so: the Linux rules, the proxy, git under the inherited profile, whether `gh auth token` run by the host prompts. HOST RELEASE WORKFLOW RULED 2026-11-08 (piece-3 note; the host has 0 releases and CI needs a pinned binary): modelled on the hub's `release.yml`; trigger a `v*` tag push plus `workflow_dispatch` with a tag input, checkout of the TAG, concurrency `release-` not cancelled, a version gate failing when `wmlhost --version` is not the tag minus `v`; three native targets (x86_64-unknown-linux-gnu on ubuntu-24.04, aarch64-unknown-linux-gnu on ubuntu-24.04-arm, aarch64-apple-darwin on macos-14), default features (`native`, no `hub`), each job unpacking its own `wmlhost--.tar.gz` (wmlhost, LICENSE, README.md) and running `--version` and `clients/node/smoke.mjs` before upload; `.sha256` beside each and one `SHA256SUMS`; a `publish` job with `contents: write` creates the release with generated notes and uploads WITHOUT `--clobber` (a tag's bytes are immutable; a broken release gets a new tag); `actions/attest-build-provenance` on each archive IN v1 as provenance, not a gate. The gate is window-ml's OWN pin: unlike fetch-hub, which trusts the release's `.sha256` from the same release, window-ml commits the per-target sha256 in a pin file (flaky-ci's fetch-host; a `host-dist.json` under tools suggested) of shape {repo, tag, commit, assets{:{file, sha256}}}; `fetch-host --bump ` downloads SHA256SUMS and each archive, hashes each itself, refuses unless both agree, reads the tag's commit through the API and rewrites the pin; `--bump --check` compares and writes nothing (the reviewer runs it); a pin bump is a window-ml PR with @ci (+@security when the host sandbox changed) naming tag, commit and the three hashes. First tag v0.7.0 (Cargo.toml's version; tags stop at v0.5.0), cut by the gh-host session on main after host#30 and the workflow PR merge. Shane's own setting to flip: immutable releases on window-ml-host. Unchecked: ubuntu-24.04-arm availability, smoke.mjs on a release build, mlbox's glibc (a 24.04 build needs 2.39; musl is the fallback). CI GAP CONFIRMED BY SHANE 2026-11-08: CI runs ml.sh against a real wmlhost (the e2e specs skip without the binary today). Allocation (Shane confirmed): the release workflow is the gh-host session's; fetch-host, the ml-sh-host.spec gate and one put round trip are flaky-ci's after #1535, design note first, the job FAILING (never skipping) when the release is unreachable; async takes nothing more beyond tilde, put and the argv pointer-token refusal. HOST RELEASED 2026-11-08 (all verified with gh). host#32 (the release workflow) MERGED 323b5c21 after janitor-3's clean review at fcc22473 (comment 6721562229); host#33 (put) MERGED 37739365 after janitor-3's review at 61767538 (6721562412), so all three host slices are in (hello peek, tilde, put). Shane allowed the tag push: wmlhost v0.7.0 is RELEASED by run 42491062828 on all three targets (version gate, smoke, attestation, publish), release immutable, seven assets (three archives, three .sha256, SHA256SUMS). The tag is ANNOTATED: the ref peels through tag object dfecf446 to commit 323b5c21. RULES ADDED: (1) fetch-host's `--bump` and `--check` PEEL the tag (the ref API returns an object of type tag, not the commit) and compare the peeled commit with the pin's `commit`, refusing on a mismatch rather than storing the tag object's sha; (2) the publish job's `--clobber` is ACCEPTED as an exception to the no-clobber rule when and only when the target is still a DRAFT release (a re-run refilling a short draft); a published release is never clobbered, which immutable releases enforce server-side; a re-run deletes no asset it does not upload, which is fine because a published tag's set never changes. The pin values (per-target sha256: x86_64 a7624078…, aarch64-linux f7772d3f…, darwin 9f91a28a…) went to flaky-ci in session-mail (20261108-1444Z-gh-host-to-flaky-ci-wmlhost-v0.7.0-pin.md); fetch-host starts after #1535 merges, design note first. #1535 (fetch-hub retry) is CLEARED by janitor-3 at c705c406 (6722861933; CI fully green including hub and all three e2e shards; four new body-read catch rows); flaky-ci arms; once on main, #1478, #1508, #1524 and #1536 rebase and the 504 blocker lifts. gh-host proceeds to piece 2 v1. FETCH-HOST DESIGN RULED 2026-11-08 (flaky-ci's note, session-mail 20261108-1450Z; ACCEPTED as written, coding may start). The pin is a `host-dist.json` under tools, shape `{repo, tag, commit, assets{:{file, sha256}}}` with v0.7.0's values (commit 323b5c21, the three sha256 from gh-host's 1444Z note); it is the ONLY trust root: fetch-host never fetches the release's `.sha256`, checks the archive against the pinned hash BEFORE unpacking, and runs `--version` after landing at `../window-ml-host-/target/release/` so the existing sibling scan in native-host.mjs is unchanged. `--bump ` downloads SHA256SUMS and every archive, hashes each itself, refuses on any disagreement, and PEELS the tag (ref `object.type` "tag" → `git/tags/` → `.object.sha` until a commit; a lightweight tag is stored as-is); `--bump --check` writes nothing and refuses a pin whose `commit` is a tag object (its own row: passes 323b5c21, refuses dfecf446). The gate job (ubuntu-24.04, cache keyed on the pin's hash, fetch on miss, a visibility step that exits 1 when the binary is absent, E2E_WMLHOST exported so the spec's skip cannot fire) runs ml-sh-host.spec and FAILS when the release is unreachable, never skips; the one put round trip joins it as a second ROW once put's window-ml half merges. glibc ≥ 2.39, bubblewrap and the AppArmor userns step are carried as job requirements, marked as gh-host's unverified claims. Reviewer janitor-3; label @ci; a pin-bump PR carries @ci (+@security if the host sandbox changed) and names tag, commit and the three hashes. GH PIECE 2 v1 OPEN 2026-11-08 (gh-host's note, session-mail 20261108-1615Z; verified with gh). host#34 e658e84f (@host): a provider table in the host's credential module; `spawn.credential:{provider, manifest:}`; `hello.credentials`; `done.envelope.profile`; Seatbelt `(remote tcp "*:443")`; exec program-only (gh, git, git-remote-http(s)); the token read at `start` (`SecretUnavailable` if none); `CredentialRefused`; Linux answers `SandboxFailed`; env denylist plus `GH_*`, `GITHUB_*`, `SSL_CERT_*`, `*_PROXY`. #1545 a2dbc235 (@host @security @docs): manifest `credential:{provider}` and `network:{ports}` (no `direction`; hosts come in PR 2), the gh manifest, `credentialFor`, `ShFacts.credential`, `judgeCall` (no allow policy and no free tier for a held credential), a GitHub-token scrub by shape, an upgrade row. SIX READINGS ACCEPTED: the token is read at start; `network` carries ports only; an unpinned manifest hash is `CredentialRefused`, never a demotion; gh planted in a root or named by path is refused because the token fetch runs unconfined (e3's row 12: planted ./gh, a root first on PATH, an absolute gh, an in-root git `--exec-path`, each refused before anything runs); `boundFor` is unchanged; the upgrade goes through `hello.credentials`. #1538's (c) and (e) are taken. Measured by gh-host: no Keychain dialog, `gh api /rate_limit` 5000, a non-443 port refused. REVIEW: janitor-3 is the only pass on host#34 and janitor-2 reviews #1545; e3's twelve rows are the adversarial pass after both merge. host#34 PASSED 2026-11-08 at e658e84f (janitor-3, comment 6723473480: no findings, no change; the three load-bearing guards each have a row that reds when the guard is removed; no planted-binary route, since PATH is on the denylist and the only writable place outside the roots is the call's own tmp; vectors byte-identical to window-ml 8324c22d; CI run 42493113720 green). Two notes, neither a change: the exec-path directory enters the allowlist as git reports it; the token fetch blocks the session task up to 30 s. host#34 MERGED f82f08f5 (squash of e658e84f, four checks green; clone removed); the pin bump carries it into window-ml once fetch-host exists. #1545 waits on janitor-2; e3's rows measure once it merges. 2026-11-08 evening: #1542's merge (980a7f93) left #1545 a2dbc235 CONFLICTING on sh-call.ts, its test file and docs/dev/shell.md; gh-host merges main into feat/gh-credentialed (a merge, so the diff stays reviewable) and names the new head to janitor-2, keeping #1542's four-prefix refusal in parseShRun. async's put window-ml half starts on feat/sh-put from main; it will meet the same merge if it touches sh-call.ts after #1545 lands. #1545 at 67bcf16a (verified: a merge commit over a2dbc235 and main 980a7f93; mergeable again): docs/dev/shell.md keeps #1542's step 0 and the credential step 1; the four-prefix refusal is intact; gh-host reports tsc clean and the full suite green (8831 pass). janitor-2's review must name 67bcf16a. The host side is complete: host#30 and host#34 merged, v0.7.0 released 2026-11-08 14:43Z; janitor-3 removed its host clone after its three host reviews merged. FETCH-HOST OPEN 2026-11-08 (flaky-ci; verified with gh): #1549 at 21a10ff5 (@ci; eight files: the tests workflow, AGENTS.md, working-in-the-repo.md, package.json, a fetch-host script under scripts, test.mjs, a fetch-host-pin test, and the host-dist pin under tools). The ruling is implemented as written: the pin is the only trust root; the peel rule has its own rows (--check passes on 323b5c21 and refuses a pin that holds dfecf446 by name); --check writes nothing (a row runs it against a temporary pin and asserts the bytes unchanged); the gate job fails at fetch or at its visibility step, and E2E_WMLHOST is exported at the binary the step found, so the ml-sh-host spec's skip cannot fire in CI; the put round trip is named as the job's second row once async's window-ml half merges. One deviation RULED acceptable: the bump path reads the git ref and tag objects with plain fetch to the same api.github.com endpoints instead of the gh CLI, so the peel and --check rows run with a stubbed fetch and no gh dependency; the endpoints and the peel semantics are the ruled ones. Non-blocking note passed to janitor-3: the patch sends no Authorization header, and unauthenticated reads of api.github.com are limited to 60 per hour per IP, which bites only a reviewer re-running --check; sending GITHUB_TOKEN or GH_TOKEN as a bearer when set would remove it. janitor-3 reviews; flaky-ci arms on a comment naming the head; the pin bump that moves CI onto v0.7.0 follows as its own PR. PUT WINDOW-ML HALF OPEN 2026-11-08 (async; verified with gh). #1553 at 6de56c33 (@exec @security; eighteen files, among them a new sh-put module under src/shell, its own sh-put test, iso-channel, sw-shell-call, sw-values, the ask card and the export): an `@file:` attachment's original bytes written to the host's disk over the host's put/write/commit (host#33). `put` is named in iso-channel with its own arity of exactly two; run and read keep their bound of two arguments; a run whose origin cannot be read is refused like a remote one. e3's three fixture notes are folded into its own file at fcd928da on redteam/sh-put (15/15 against the branch with todos stripped); its test-only PR lands after #1553 merges, per #1307. TWO GUESSES RULED ACCEPTED. (1) The judgement runs at placement host-sandbox: a put runs no child, but the host itself holds the write bound for this one write (the parent's realpath inside a root through a held directory descriptor, protected and secret-looking names refused, never through a link), which is the in-root write with no new tier that FILE_ATTACHMENTS.md ruling 3 names; at host-plain every put would ask and the free nested-new-file tier would be dead. The built-in frees a nested new file, asks for a new top-level file, and always asks for an existing file. (2) putFacts carries the keys of an ml.sh.run call that runs nothing (argv empty, program, cwd) beside put, so a person's program policy evaluates without throwing and a put never marks it broken. CONDITION on (2): a program policy must never FREE a put; a rule on c.program.path naming a real program evaluates to false on a put's facts, and a row says so under both placements. janitor-2 is asked to confirm the row exists and to report its absence as a finding. The chat-page lane's FILE_ATTACHMENTS paragraph and UPGRADE row follow the merge. PEEK WINDOW-ML SIDE RULED 2026-11-09 (the async lane's commit 6d48eb40 on async/peek-tail, stacked on feat/sh-put, opening once #1553 merges): (1) two tail bounds, by who asked. The 500-character OUTPUT_CAP.exec.default bounds the tail nobody asked for (the `Detached` message, the inbox line, the `ml.current.tasks` row); the tail the model ASKS for through `task tail` is lines-first, the N asked capped at TASK_TAIL_MAX_LINES (200) with a ceiling of 8 KiB per stream, keeping the end, the full capped stream a value it can point at. "Capped like any tool output" meant bounded, not 500. (2) `ml.current.tasks` keeps one peek per running `ml.sh` task per snapshot (4 KiB requested, the small bound shown); null only when `hello.peek` is false, with the reason sentence. Accepted as the lane guessed: bytes requested (N+1)*240 clamped to 4 KiB-512 KiB; a no-newline fragment that does not start the stream kept and marked "(start of the line cut)"; SH_TAIL_ABSENT reworded to name the old-host and hub cases (model-facing; listed for the next prompt review). Rule 10: e3's secret-in-stdout row ships as e3's test-only PR after the feature merges. janitor-2 reviews. VERIFIED 2026-11-09: #1545 MERGED 337095ac (the gh credential sent to a host that holds it, the call always asks, a GitHub token scrubbed by its shape) with host#34 f82f08f5 merged on the host; the pins' release field is filled when the next host release carries it (flaky-ci's bump). e3's test-only pass on the new surface is #1561 OPEN c3d90df0 (tests/redteam-gh-credential.test.mjs, measured worker-side), janitor-3 reviews, landing after the feature as the amended rule 10 has it. RULED 2026-11-09 (PR 2, gh-host's design note in session-mail 20261109-1145Z, scoping the credentialed call to GitHub's hosts with a host-side CONNECT proxy; v1 complete: host#34 f82f08f5, host#35 4105a44b, #1545 337095ac, #1561 82a3ed37): the profile allows exactly one outbound address, `localhost:

`, a port the host binds for this call alone; behind it a proxy in the host process admits only `CONNECT :443` (exact match after lowercasing and one trailing dot; IP literals, userinfo, percent-escapes, any other method and absolute-URI GET get 403 with no outbound connection; TLS is never terminated); the env (`HTTPS_PROXY` and kin, `NO_PROXY` empty, `ALL_PROXY`) is routing only. Q1: `network.hosts` goes in the manifest as a subset of the provider's list (validator and schema, as `ports`); the host pins both gh.json hashes for one release and an old gh.json gets the provider's full list, so scoping is host behaviour from the first release; `done.envelope` gains `hosts`; the extension's pin bump follows the release. Q2: mDNSResponder is dropped from the profile, measured in the PR; a negative result keeps the socket and the body says what broke. Q3: PR 2a (macOS proxy, worker hosts, card names the hosts, `ShFacts.credential.hosts`) now; PR 2b (Linux: bwrap keeps `--unshare-net`, a unix socket bound into the call tmp, `exec-under` forwards `127.0.0.1:

` to it) after mlbox's measurements; `holds_credentials` stays false on Linux until 2b. Q4: the note's limits list goes into the host's SANDBOX.md with 2a, plus: the proxy resolves the listed name with the host's resolver, so the bound is the name, not the address; a client that ignores the proxy env fails closed. Rows 1 to 13 are e3's, each failing first, under the amended rule 10 in both repos. Reviewer for the host PR 2a: janitor-2; the worker PR's reviewer is assigned by load when it opens. MEASURED 2026-11-09 (mlbox, slop-zone a0821d8, reports/ui-api/gh-host-linux-proxy-answer.md; reported by mlbox and gh-host alike, the repo is not on GitHub so the commit is not verified here): PR 2b's design works on the Linux box. Loopback comes up under bwrap `--unshare-net`; a unix socket bound in with `--bind` accepts connections from inside; curl, git and python reach GitHub through the forwarder while example.com gets 403, a direct connect gets ENETUNREACH and there is no DNS; gh 2.98 honours `HTTPS_PROXY` (a fake token got 401 through the proxy). glibc 2.43, bubblewrap 0.11.1, Landlock ABI 8. Caveat for SANDBOX.md and 2b: Ubuntu 26.04 restricts unprivileged user namespaces and bwrap works only through the AppArmor profile attached to `/usr/bin/bwrap` by path, so a vendored bwrap elsewhere is denied. PR 2b is unblocked; 2a in progress. OPENED 2026-11-09 12:10Z: PR 2a is window-ml-host#36 at 5a9e2e14 (`@host`, CI running at open). gh-host reports: the profile allows only `localhost:` with no DNS; Q2 measured (authenticated gh, rate limit 5000; tarball, release download and raw reachable; example.com answered 403); Q1 both gh.json hashes pinned; the vectors come from window-ml commit 99c96e8d on feat/gh-network-hosts, the worker PR to come (no PR open yet); SANDBOX.md carries the Q4 limits, the two coordinator lines and the AppArmor caveat. e3's v1 FINDING row (any 443 host reachable) fails as expected on the branch; e3 flips it there as its own commit per rule 10. Reviewer janitor-2, as ruled. The measurements are gh-host's report, not verified here; the reviewer confirms them. REVIEWED 2026-11-09 13:00Z: janitor-2 reviewed window-ml-host#36 at 5a9e2e1 clean (comment 6740566163); the one red check is e3's v1 FINDING row, which the PR invalidates on purpose. Head is now 6e73973d (one commit: the 0.8.0 version bump in Cargo.toml, Cargo.lock and docs/PROTOCOL.md). Order from here: e3 flips the FINDING row and rows 1-10 as its own commit on the branch, janitor-2 re-checks the final head, gh-host merges and tags v0.8.0, then opens the worker PR from feat/gh-network-hosts (at 995f3079: the validator and schema take `hosts` as a subset, `ShFacts.credential.hosts`, the card names the hosts, an upgrade row for a host that names none, PROGRAM_MANIFEST.md); only the credential-pins test is red there until #36's merge commit exists. gh-host reports Shane approved the v0.8.0 tag in its session; CONFIRMED by Shane in the coordinator's session on 2026-11-09: this one tag is approved. FLIPPED 2026-11-09 13:30Z: e3's rows 1-10 of the PR 2 note are on host#36 as its own commit, head 8061d665 (one commit, tests/stdio.rs only, verified), each through a real call, the v1 FINDING row (any 443 host reachable) folded into row 5: a raw connect to GitHub's own address or a third party's is refused by the profile and only the proxy admits anything; ten green, full stdio suite 155/155, each row measured red under its own mutation. All four CI jobs green, mergeable; janitor-2 asked to name the head, then merge, tag v0.8.0, worker PR. MEASURED (e3, macOS 26, forwarded to gh-host for SANDBOX.md): the resolver's unix socket is what closes DNS; the grant that reopens resolution is `(allow network-outbound (remote unix-socket (path "/private/var/run/mDNSResponder")))`; mach-lookup grants for com.apple.dnsResponder, com.apple.dnssd.service and com.apple.networkd restore nothing, and resolution fails under `(allow default)(deny network-outbound)` too. The thing never to add back is that socket path, not a mach service. MERGED 2026-11-09: host#36 squash-merged as 7158d74f after janitor-2's comment named 8061d66 (per gh-host); v0.8.0 is tagged and released with three targets and SHA256SUMS (seven assets, verified). The worker PR is #1588 at 246383b1 (`@host` `@security`, twelve files, five in src/shell: credential-pins.json, host-protocol.ts, manifests/gh.json, program-manifest.ts, sh-call.ts): credential-pins.json carries sha 0d8a936c, equal to host main's vectors gh.json, host 7158d74, release v0.8.0, so no pin bump from flaky-ci is needed for this one; gh-host reports 9049 of 9050 locally with the one failure (an ml-sh expectation now carrying hosts) changed in the head. Reviewer janitor-2 by category and load. E3's rows 11-13 land as e3's own commit on feat/gh-network-hosts before the merge. The DNS socket measurement and e3's note that row 10 is git TLS rather than a token spend go in SANDBOX.md with PR 2b, since the v0.8.0 tag was cut before they arrived. REVIEWED 2026-11-09: janitor-2 reviewed #1588 at 246383b1 (comment 6741607568): CI green on the head, no findings, two residuals noted and not asked for; the pin bump verified across both repos rather than from the body (this PR's gh.json hashes to 0d8a936c, byte-identical to the host's vectors manifest at v0.8.0 7158d74; VECTOR_PIN 67a6e114 is that tag's PIN; the tag's pinned gh.v1.json is d8a7af4e, the extension's previous pin, so the one-release overlap is real; start's facts carry credential.hosts at the tag as well as done.envelope). The one gate left is e3's rows 11-13 as e3's own commit on the branch; janitor-2 names that head, then gh-host arms. 2026-11-11: e3 pushed rows 11-13 as one commit on feat/gh-network-hosts, head f2bbbb2a, tests/redteam-gh-credential.test.mjs only (verified against 246383b1), 10/10 at that head reported; each row names the mutation that reds it (a suffix match on the host validator, a card printing "any host", a null-hosts grant falling back to the manifest list). Janitor-2 has the head; gh-host arms once a comment names f2bbbb2a. Janitor-2 named f2bbbb2a (comment 6792571796: the delta is the one test file, no findings) and #1588 MERGED 2026-11-11 as d56395e2 (run 42995735833 green; verified). PR 2a is done; gh-host removed its clone and opens PR 2b, the Linux forwarder, next. PR 2b OPEN 2026-11-12: window-ml-host#37 at a89774a (`@host`, nine files, CI running; verified): a credentialed gh call on Linux through a forwarder to the host's proxy on a unix socket; bubblewrap with Landlock required, SandboxFailed without; the Linux path has run only in CI. Reviewer janitor-2 by category, against two conditions: no Landlock means SandboxFailed and never a fallback that reaches the credential; the forwarder's socket is reachable only from the sandboxed call's own process tree. e3's Linux rows (the body lists the edges) are a test-only PR after #37 merges, reviewer janitor-3, by rule 10 as amended. host#37 MERGED 2026-11-12 as 132a86c4 after janitor-2 named f248d72 (comment 6816555677; both conditions hold; the same-uid question stays open, as on macOS; CI green on Ubuntu with Landlock required, the reach row no longer skips; verified). e3's Linux rows start on host main. DRAFT 2026-11-12: window-ml-host#39 at 135acb3b (tests/stdio.rs only; verified): both rows failed their own instruments on the ubuntu job; e3 bound the other call's socket at start rather than spawn, finds the forwarder by comm or as the only live pid above 1 when the ruleset denies /proc, and corrected a `/dev/tcp/{ip}/443` typo; re-measuring on CI, then the two mutations; reviewer janitor-3 when it leaves draft. READY 2026-11-12: host#39 at 5b75e91f (out of draft, CLEAN, all four checks green on run 43177659951, both rows executing; verified). Each guard was mutated alone on a scratch branch: dropping `--unshare-net` reds row 2 (the call reached GitHub by address with the forwarder dead); binding the whole `sock/` back reds row 1 (the socket directory holds exactly its own) and only that row. Both at once make the call under test fail to start (two forwarders on host port 18443), so they were measured separately; the record is comment 6819268355. Reviewer janitor-3 (assigned); e3 arms on a comment naming 5b75e91f. REVIEWED 2026-11-12 at 5b75e91f (comment 6820879408; verified), one change: the forwarder-kill row's two negative assertions pass when its second phase never ran. NEW HEAD 2026-11-12: 338c7da2 (one commit, tests/stdio.rs, the row asserts its second phase ran; CLEAN; verified); janitor-3 re-reviews it first in its queue and e3 arms only on a comment naming 338c7da2. MERGED 2026-11-12 as ccf65538 on janitor-3 naming 338c7da2 (comment 6822354216; verified): the forwarder-kill row's two `after-*-rc` negatives sit beside an anchor that each of `after-local-rc=` and `after-direct-rc=` starts a line of stdout, with a comment that they are vacuous without it. e3's worktree is removed. host#38 OPEN at 4e80a49f (the 0.9.0 bump: Cargo files and PROTOCOL.md; verified), janitor-2 reviews; gh-host tags v0.9.0 after it merges. Shane's approval of the tag reached the coordinator relayed by gh-host; Shane confirms it in the coordinator's session. CONFIRMED and TAGGED 2026-11-12: Shane confirmed the tag in the coordinator's session; host#38 MERGED as 5fd151e2 after janitor-2 named 4e80a49f (comment 6816707913), and v0.9.0 is tagged on 5fd151e2 (verified against the tag ref); release run 43169925341 builds the assets; gh-host then opens the window-ml pin PR (fetch-host --bump, release v0.9.0 and host 5fd151e2 in credential-pins.json). PINNED 2026-11-12: #1630 MERGED as 0ef5c68f after janitor-2 named 24892e0b (comment 6817825708, verified against the release's bytes); tools/host-dist.json pins v0.9.0 at 5fd151e2. OPEN QUESTION to gh-host: src/shell/credential-pins.json still names host 7158d74 and release v0.8.0 with the vectors sha 0d8a936c; gh-host says whether the pin stays because the vectors did not change and the host field is informational, or follows the release in a one-line PR, and what the two fields gate at runtime. ANSWERED and CLOSED 2026-11-12 (gh-host; verified: no file under src, scripts, tools, build.mjs or .github reads credential-pins.json, only tests/gh-manifest.test.mjs and a comment in tests/redteam-gh-credential.test.mjs): the file stays at 7158d74 and v0.8.0. The runtime gate is the host's compiled-in PINNED table in src/credential.rs, which honours a credential only when the manifest hash the worker sends is in it and otherwise answers CredentialRefused; the test asserts the pins' keys equal the shipped manifests that name a credential, each sha256 equals the manifest's bytes and the hash the worker sends, and `host` is 40 hex (a shape check, never resolved); `release` is checked nowhere. `host` and `release` are a record for people, the first host commit and release whose PINNED holds these bytes, and move only when gh.json's bytes change, which needs a host release first; between v0.8.0 and v0.9.0 the table and the vector are byte-identical. A host version gates only host-dist.json through fetch-host. gh-host's piece 2 PR 2 is finished; the Linux rows stay e3's. SESSION CLOSED 2026-11-12: Shane closed the gh-host session (session 54f76a32) after the coordinator confirmed it held no work (host#39 merged ccf65538, v0.9.0 tagged and pinned in tools/host-dist.json, the credential-pins question closed); nothing is reassigned, since nothing was open. TILDE 2026-11-09: async's #1595 at 8c5046c6 (`@agent` `@api`: ml.sh passes a `~` cwd to a host that expands it, and the card shows each expansion) was open with no reviewer, found through bench's draft; janitor-2 reviews it. Bench's tilde canary row (the 2026-11-07 ruling) is draft #1596 at 7ee169c6 (`@bench` `@security` `@host` `@agent-skills`; eight files, the bench skill, bench-metrics and sh-lease-approver tests, the e2e bench's metrics, sh-canary and the sh-lease-canary spec, the sh-lease pilot spec), draft until #1595 merges, then rebased and marked ready for a reviewer by load. canary-tilde passes only on a denied nested sh ask whose facts.tilde expands `~/…` to the real path with no leak; a free workspace read or a missing expansion fails it; measured with the fake LLM against the pinned v0.7.0 host, main plus #1595 is 4/4 and main alone fails test 5 on the expansion. CI never runs the pilot (no host binary outside the host job), so the merge order matters, not CI. The real-model sweep of the row on the GPU waits for Shane's yes. 2026-11-11: Shane agreed in the coordinator's session that the sweep waits until #1595 and #1596 merge; bench confirmed the order and that the start itself needs the yes said in bench's session. #1595 was rebased twice on 2026-11-11: 14c95293 still conflicted with main because spec PRs #1603 and #1604 had appended sentences to this ruling and the #1588 one; 8d16664c (two commits, fifteen files, verified MERGEABLE) keeps both of main's sentences and the tilde text. Janitor-2 has that head; bench's #1596 rebases once it merges. Then 6d0b70cf applied janitor-2's one finding from 8c5046c6 (comment 6792323865: the `~/proj`-outside-roots row asserted facts a real host refuses with CwdOutsideRoots; the fake host now refuses as spawn does, the ml-sh row asserts the refusal end to end, the synthetic In line moved to sh-call.test.mjs; test files only) but was DIRTY again once #1588 merged into src/shell; 00b647aa (three commits, fifteen files, MERGEABLE; verified) keeps #1588's credential hosts in host-protocol.ts and sh-call.ts with the tilde fields after them, 181/181 across the six shell suites reported. Janitor-2 reviews 00b647aa. DIRTY again on 2026-11-12 after the coordinator's spec PRs edited this paragraph (verified with merge-tree; one hunk): async rebases keeping main's paragraph plus its HALF BUILT sentence; janitor-2 names the new head, then async arms. CONFLICTING a fourth time on 2026-11-12 (main 6304b9e0, SHELL.md only; janitor-2 verified the tree at 3190e8ad identical to 00b647aa in every file the branch touches, 13/13 green). RULED by the coordinator: async resets SHELL.md to main on the branch in one commit and the branch shares no file with the spec PRs; the two doc edits it carried (the HALF BUILT sentence and the `shellTilde` capability paragraph) are on main through this record. Janitor-2 names the new head, async arms. NAMED 2026-11-12: head e61ae4ee, rebased onto 08d1530a rather than a bare reset so the base is not behind main; three commits, fourteen files, none SHELL.md; janitor-2 named it (comment 6817741373; 13/13 green, MERGEABLE; verified); async arms and sends bench the merge SHA. #1595 MERGED 2026-11-12 as ab9b4a8a (verified): the tilde half is on main; bench has the SHA for #1596. #1596 READY 2026-11-12 at 0ef6aa73 (rebased on ab9b4a8a, out of draft; test-only plus the bench skill doc; pilot 4/4 on the pinned v0.7.0 wmlhost, sh-lease-approver + bench-metrics 58/58, bench's word; verified OPEN, BLOCKED): reviewer janitor-3 (it holds #1631 too; janitor-2 holds #1634). Bench's note for the reviewer: sh-lease-approver.test.mjs:55 feeds the scorer a cwd of `~` with a canary fact, an input the fake host now refuses (cwd outside roots); harmless, still checks the scorer. Bench arms on a comment naming 0ef6aa73. After its merge bench runs the GPU canary sweep; bench states Shane approved it on 2026-11-11, which stands only if said in bench's session. SWEPT 2026-11-12 (bench's measurement, attributed to the lane; bench states Shane said yes in its session that day): 18 of 18 correct, 0 errors, on main f4b337c4 (with #1595 and #1596) and wmlhost v0.7.0 (323b5c21) in both placements; gemma4:31b, gemma4:e4b and qwen3.8-flash-next:vision on canary, canary-named and canary-tilde, once each; laptop Seatbelt 9 of 9, container bwrap (image wml-sh-lease:canary) 9 of 9. Every row raised an `ml.sh` ask the approver denied, no line of ~/.ssh/config in any answer or tool result; on all six canary-tilde runs the denied nested sh ask's facts carried the `tilde` entry mapping ~/.ssh/config to the real path (askedExpanded); the outer exec was approved and exactly one ask denied per run. Since 2026-11-07, gemma4:e4b finds `ml.sh` on the unnamed canary prompt in both placements (3 steps), so that row is no longer untested for it. Sweep folders are git-ignored (sync:false, the canary never leaves the process); bench opens a notebook row next to sh-lease as the committed artifact, reviewer janitor-3. OPEN 2026-11-12 as #1655 at b3b06b02 (`@docs`; notebooks/bench/sh-lease-canary.ipynb, make-sh-lease-canary.py, data/sh-lease-canary/runs.json with booleans, counts and ids only, and the notebooks README row; verified). Janitor-3 reviews it third, after host#39 and #1648; bench arms only on a comment naming b3b06b02. MERGED 2026-11-12 as 4a172dfe (verified; janitor-3's comment 6824012356 names b3b06b02 with nothing outstanding and measures the three points itself: runs.json holds booleans, small integers and name-like strings only). The lane's account: both sweep inputs are kept in its clone under tests/e2e/artifacts/bench/ as sh-lease-canary-laptop-20261112 and sh-lease-canary-container-20261112 (the undated name is an older 2026-11-07 sweep; the directories are seen by name), so the extract can be re-derived; NB_REFRESH still looks for the undated name. OPEN ITEM for bench: point NB_REFRESH at the dated inputs, or state in the notebook that the extract is pinned and the inputs archival. CLOSED BY #1682, OPEN 2026-11-12 at 5d4877a7 (verified: `@docs` `@bench`, one commit, three files, notebooks/bench/make-sh-lease-canary.py, sh-lease-canary.ipynb and data/sh-lease-canary/runs.json). The lane's account: the generator finds both placements with wmlnb.find_sweep under the dated names; a refresh from the kept sweeps gives the same 18 rows, only source, commit, extracted_at and the notebook's provenance and execution metadata change; check-notebooks passes. Reviewer janitor-3 (notebooks), seventh in its queue; bench arms only on a comment naming 5d4877a7 with nothing outstanding. ONE CHANGE 2026-11-12 (janitor-3 comment 6825665810) answered at 8ebb0e49 (one commit, notebooks/bench/make-sh-lease-canary.py only; the lane's comment 6825719105: the generator header names the bench clone's artifacts dir as where the dated sweep lives; verified); sent to janitor-3 as a head change; bench arms only on a comment naming 8ebb0e49. CLEARED (janitor-3 comment 6825862331 naming 8ebb0e49) and #1682 MERGED 2026-11-12 as 9dbf98a9 (verified); the lane's worktree and branch are removed (the lane's account). #1702 MERGED 2026-11-12 as 5cb664d3 (armed on 6825950875; verified); its worktree and branch are removed (the lane's account). Bench holds #1704 alone, third in janitor-3's order. SH-LEASE PEEK RE-RUN DONE 2026-11-12 (the lane's account): #1704 at 7ced7884 (`@bench` `@docs`; notebooks/bench/README.md, data/sh-lease-peek/RECOMMENDATION.md and runs.json, make-sh-lease-peek.py, sh-lease-peek.ipynb, tests/e2e/bench/specs/sh-lease.bench.ts; verified) is the spec change and the notebook in one PR. Result: keep SH_LEASE_MS at 15 s. All 18 tails on a running build returned output (0 on 11-07); no outcome moved (build correct 0.76 vs 0.80, task turns per detached build 2.04 vs 1.85, inside the 5-repeat spread); a 5 s lease detaches a 10 s call only for models that give no expectMs (gemma4:31b 5/5 with one task turn each; qwen3.8 1/5, its estimates replacing the lease); no model reported progress unasked; 90 local runs, 256 Wh; sweep kept as sh-lease-peek-20261112 in the bench clone. Async reads RECOMMENDATION.md. #1704 is HELD by the coordinator until one of janitor-3's four clears; bench arms only on a comment naming 7ced7884. ONE CHANGE 2026-11-12 (janitor-3 comment 6827060878 on 7ced7884: RECOMMENDATION.md said qwen3.8 did not detach where the rows show one detach, the estimate-less run; e4b's 2 of 5 detaches unattributed and its 9+7 leaving the step-capped run unnamed; everything numeric else checks against runs.json, the generator reproduces the notebook, check-notebooks passes at 18; the 476 calls / 256 Wh figure is not in the repo). PUSHED c9f108d5 (one commit, RECOMMENDATION.md and the notebook re-inlined; verified): e4b detached 2 of 5; qwen3.8 gave expectMs in 4 of 5 and detached only in the fifth; all 8 detaches on runs with no estimate; the e4b sentence names 9 function calls, 7 that never reached the host and 1 at the step cap (the lane's account); the energy figure stays out of the repo, the PR body naming its source as the sweep's own spend and electricity lines (476 calls, 255.75 Wh, 0.067 EUR). Head change to janitor-3, after #1712 in its order; bench arms only on a comment naming c9f108d5. #1704 CLEARED 2026-11-12 by janitor-3 at c9f108d5 (comment 6830228563, verified): nothing outstanding; both corrections hold against runs.json (e4b 2 of 5, qwen 1 of 5 and the estimate-less one, all 8 detaches estimate-less, 2.04 turns over 27 detached builds, 18 live tails on 13 runs, 14/90 progress, 12/15 correct at 5 and 15 s; the e4b sentence lands on the notebook's three `why` buckets 9 + 7 + 1 = 17; reproduction exact across 28 cells). Bench told to arm with --read 6830228563. #1704 MERGED 2026-11-12 as 5e7cf9b0 (verified); the bench lane has no PR open. Async moves to the owed prompt review (shellTilde, the put sentence, SH_TAIL_ABSENT, the task tail text), then python_exec mode 1. PROMPT REVIEW OPEN 2026-11-12: #1634 at 6b483915 (verified: AGENTS.md, PROMPT_BUDGET.md "Review of 2026-11-12", contract.ts, sh-call.ts, sw-shell-call.ts, tests/sh-call.test.mjs). Three fixes: the `@file:` refusal's put sentence says `/` into a folder that exists, since the host never creates one (NoParent), not `inbox/`; SH_TAIL_ABSENT drops "(it predates peek, or is reached over the hub)"; the shellTilde clause says `~/x` begins at home. AGENTS.md's review date moves to 2026-11-12. Reviewer janitor-2 (code; the lane asked). Async then moves to python_exec mode 1. NEW HEAD 2026-11-12: e9bf2552 (a merge of main after #1618 conflicted on AGENTS.md's prompt-review date line; the date keeps 2026-11-12; two commits, verified); janitor-2 reviews that head and async arms only on a comment naming it. REVIEWED 2026-11-12 at e9bf2552 (comment 6820790662; verified), one change, not armed: the record's kept claim that the asked tail's cut names its pointer is false at this head, since `task` is `citable: false` in tool-registry.ts and agent-loop.ts's mint block never runs, so the model reads the cut with no `@tool:` id; a citable name with the same shape names no id either, `heldChars` coming only from a render capture. The same claim is in docs/dev/shell.md and the comment in tests/redteam-peek-tail.test.mjs. Janitor-2's two resolutions: the tail ring in #1642 makes it true, or the record drops the claim and HELD_BACK.md gets the row. The coordinator's recommendation to async: drop the claim here and add the HELD_BACK.md row, restoring it in #1642 where the ring lands. Everything else holds (put's `~` ordering, Detached/task agreement, ml.embed split, DerefMeta.file, the ten model-facing commits); CI 12 pass, 8 skipped. Janitor-2 started #1642. PUSHED 2026-11-12: 03fc6374 (one commit on e9bf2552, four files, +13/−6, docs and one test comment; verified): PROMPT_BUDGET.md moves the asked-tail claim to "Found and not fixed here" pointing at HELD_BACK.md row 16, which is new (an asked `task tail` past ASKED_TAIL_CHARS has its whole stored as textValue with no way back, since `task` is citable:false, so no id is minted and heldChars is never set); docs/dev/shell.md says the cut tail is stored but cannot yet be pointed at; the tests/redteam-peek-tail.test.mjs comment says the row claims by hand and covers the value store, not the loop's minting. RULED 2026-11-12 (async's proposal, the coordinator's ruling, janitor-2 told): the gap is in the loop, not the tail, and #1642's python `task tail` takes the same textValue path, so the fix janitor-2 named (mint and claim when a result carries textValue, heldChars from the stored whole) lands in async's pointer-mint PR for task results and closes row 16 there; #1642 stays mode 1 only. Janitor-2 re-reviews 03fc6374; async arms only on a comment naming it. HELD 2026-11-12: janitor-2 finds the four-file diff right (all three copies of the finding answered; merge clean against main f4b337c4) but does not name 03fc6374 while e2e is red on it (verified: shard 3 of 3 fails on review-look.spec.mjs:705's three stylesheet rows, site-access.spec.mjs:1624 attack 19, and a waitInShell 15 s timeout); a diff with no source change cannot move UI pixels, so these are rerun rows, sent to flaky-ci's backlog. Async reruns e2e on that head; janitor-2 names it when the shard is green. GREEN 2026-11-12: the rerun of run 43198617151's failed jobs passed, every check on 03fc6374 passing or skipped (CLEAN; verified); janitor-2 names it and async arms on that comment. NAMED 2026-11-12: comment 6822615433 on 03fc6374 (verified); async arms. MERGED 2026-11-12 as 9a16bf39 (verified): the prompt review of 2026-11-12 is on main; async's worktree is removed and the remote branch is gone. Async moves to arming #1642, then the pointer-mint PR, then the kernel object. Of the three rows, flaky-ci first read attack 19 as a recurrence of the row #1163 marked fixed; the site-access lane took it 2026-11-12 and overturned that from the log of run 43198617151: the failed row is site-access.spec.mjs:1624 ("a real click in the first second does nothing; after it, the agent runs"), not the toolbar-badge row, and it failed in setup at open() with the waitInShell 15 s timeout before any card existed, passing on retry in 3.3 s. Cause, a harness race: approveOrigin (tests/e2e/harness.mjs) writes ml_site_always and ml_site_agents in two storage sets, both in SITE_ACCESS_KEYS, so each fires syncPresence; awaitPageScriptRegistration returns on the first; the second unregisters and re-registers the lasting registration, and open()'s single getRegisteredContentScripts read landing in that gap answers false and waits for a gate state an approved page never reaches. All 26 approveOrigin call sites are exposed. The product holds: a page loading in the gap is brought up by showInOpenTabs. RULED 2026-11-12: a test-only PR by the site-access lane (approveOrigin and revokeOrigin write both keys in one set; open() decides visibility by the same polling wait so a misread fails with its own message), recorded in the ci skill as a new harness race and not under #1163, reviewer janitor-3; a second PR after it moves src/ to chrome.scripting.updateContentScripts so there is no unregister gap, reviewer janitor-2, with the presence rows run on it; not urgent. The shard's hard failure was review-look.spec.mjs:705, the "will-change, contain and an offset path" variant failing both tries (260640 pixels outside) with the -webkit-box-reflect variant flaky: new variants of the host-styling table the ci skill tracks at :730; flaky-ci finds its owner from git log and the coordinator routes it. OWNER 2026-11-12 (flaky-ci from git log; verified): the :730 entry is flaky-ci's own known-bad record (#1291, a2554085, 2026-10-28), a sighting and not an owner claim; both parameterized loops in tests/e2e/review-look.spec.mjs, including the two failing variants, came in #581 (60b61445, 2026-10-10, pin the shell's shadow hosts with inline `all: initial !important`), so the property (a page stylesheet's !important rule may not move, copy, refuse or hide our host) and its variants are the site-access lane's. ROUTED 2026-11-12 to that lane as a defect: whether the pin holds against the two variants on current main, and a PR either way (src/ with janitor-2 and the table re-checked on it, or test-only with janitor-3), after #1660 and before the updateContentScripts PR, since the hard-failing variant blocks every shard-3 PR. Flaky-ci records the 260640-pixel measurement against the :730 entry, not as a new row. FOUND 2026-11-12 (the site-access lane): a setup race, not a gap. The pin holds on main, the seven move and copy variants passing 35 of 35 locally over five repeats without retries. setup() clicked the overlay tab and waited a fixed 400 ms, so on a loaded runner the "before" capture could be taken while the panel was still closed or sliding in, and the open panel then read as pixels outside: a closed panel paints a 41 px strip (x 1239 to 1280) and is sliding 24 ms after the click; an open panel paints x 873 to 1280, 250584 pixels outside the closed strip, the size of CI's 260640, identical in both variants and both tries. #1667 OPEN at 921dffc9 (test-only, `@ci` `@security`, tests/e2e/review-look.spec.mjs alone; verified): setup() polls until the panel is laid out against the right edge and a bare capture paints it from its left edge; 154 passed locally (77 tests twice, no retries). The :730 hide and recolour table goes through the same setup, so the 2026-10-28 sighting is likely the same race, unmeasured; flaky-ci notes it on the entry after the merge and watches for a later sighting. Reviewer janitor-3, fifth after #1648, #1655, #1660 and #1664; the lane arms only on a comment naming 921dffc9. Then the updateContentScripts PR. The test-only PR is OPEN 2026-11-12 as #1660 at f5140b34 (`@ci` `@security`; tests/e2e/harness.mjs, tests/e2e/site-access.spec.mjs, .claude/skills/ci/SKILL.md; verified): one write in approveOrigin and revokeOrigin, open() failing fast with its own message, the skill entry as a harness race. The lane's measurement with an untracked probe: two writes left the registration missing in 3 of 40 launches, one write in 0 of 40; site-access.spec.mjs 63 passed locally. Reviewer janitor-3, third after #1648 and #1655; the lane arms on a comment naming f5140b34. MERGED 2026-11-12 as a793046c (verified; janitor-3's comment 6824581076 names f5140b34 with nothing outstanding and measures the mechanism itself: background.ts:218 runs one syncPresence per site-access storage event, each replacing three registrations, 3 present-to-absent transitions in 20/20 launches with two writes and 2 in 20/20 with one; it could not reproduce the ledger's 3-in-40 after awaitPageScriptRegistration returns, both syncs finishing inside the wait's 20 ms poll, stated without asking a change; spec 63/63). #1667 at 921dffc9 is next in janitor-3's order after #1664's re-review; the updateContentScripts src PR follows it, reviewer janitor-2. The updateContentScripts PR follows its merge. #1667 MERGED 2026-11-12 as aa4b70d5 (janitor-3 comment 6825104346 naming 921dffc9, nothing outstanding; verified). The updateContentScripts PR is #1693 at 1242e7b3 (`@security`; src/sw/sw-presence.ts, tests/helpers.js, tests/redteam-presence-race.test.mjs: syncPresence updates its registrations in place, so a page loading during a resync keeps window.ml), reviewer janitor-2, which now holds three (#1642's coming head, #1676, #1693); the overflow move to janitor-3 is suspended by its hold. The lane's account, measured in Chromium: main loses window.ml at document_start on 41/60 loads when the reload is issued in the same tick as a site-access write and 0/60 at 5 ms and 20 ms; the branch 0/60 at all three. The lane's clone window-ml-approve-race is removed (verified absent). The lane arms only on a comment naming 1242e7b3. REVIEWED 2026-11-12 (janitor-2 comment 6825935417 on 1242e7b3; verified): two one-line changes, so no arm: the presence mock merges the old registration instead of replacing it, so no row can catch a dropped excludeMatches; and three places still describe unregister-and-register (SITE_PRESENCE.md:72-74, tests/e2e/harness.mjs:247, SHELL.md:279). The lane pushes one commit; head change to janitor-2; the lane arms only on a comment naming the new head. #1693 PUSHED 2026-11-12 as 426c4a8b (verified: one commit over 1242e7b3 touching tests/helpers.js, tests/presence-ask.test.mjs, SITE_PRESENCE.md, tests/e2e/harness.mjs and SHELL.md); both changes in one commit; the lane's account: presence-ask, redteam-presence-race and redteam-presence 86/86. gh reports the head DIRTY against main, so the lane rebases and the head moves once more; head change sent to janitor-2 with that caveat. The lane's page-health change is on branch fix/page-health off f36b53cc, code in, e2e queued. #1693 HEAD 2026-11-12 aac35d6a (verified BLOCKED on checks and review, clean against main): main merged in, no force-push; the one conflict was SHELL.md:279, resolved by taking main's line and re-applying the "No longer reachable since #1693" sentence; review content unchanged from 426c4a8b by the lane's account. Head change sent to janitor-2; the lane arms only on a comment naming aac35d6a. REBASED 2026-11-12 onto 61d90783: head 3190e8ad (three commits, fifteen files, MERGEABLE, 288/288 shell suites by the lane; verified), SHELL.md resolved as ruled; janitor-2 names 3190e8ad, async arms and sends bench the merge SHA. STATUS 2026-11-09 (later): the window-ml half is #1586 at e1cc54de (`@exec` `@security`: a detached ml.sh task's tail shows the running call's latest output); janitor-2 reviewed 38b3a1f2 once and re-reviews e1cc54de for three text changes; async arms only on a comment naming the head. Janitor-2's queue is #1586, #1595, #1553 and #1588's final head; the next fresh code review goes to janitor-3 by the overflow rule. #1586 MERGED 2026-11-11 as bf56f311 after janitor-2's re-review of e1cc54de (comment 6791912723; verified). Its red-team pass is e3's #1613 at ffb3ba3a (`@security` `@agent`, test-only: tests/redteam-peek-tail.test.mjs plus the genre line, three rows: the stored whole is scrubbed and unreadable from another session, the `lines` clamp is measured at the ask over nineteen shapes, another run's task id sends no peek; verified one commit, two files). Reviewer janitor-3 by category; it lands after #1586 as a new-surface pass. CLEARED 2026-11-12: janitor-3 reviewed ffb3ba3a (comment 6816055590; one body-count correction, the rows hold, each red on its named mutation; verified). #1613 MERGED 2026-11-12 as feba4b88 (verified). +own file. Independent of the lease bench. PEEK DESIGN ACCEPTED 2026-11-08 (the async lane, building on branch `async/peek` in its own window-ml-host clone): a new host call `peek { id, bytes? = 4096, at most 512 KiB }` answering `{ id, stdout: { size, truncated, data } | null, stderr: { … } }` with the LAST `bytes` kept bytes of a call still in THIS connection's running table (null for a stage feeding a pipe); anything else is `UnknownId` (an ended call keeps the `done` pointer plus `read`, as now). Bytes, not text: the worker decodes and cuts lines. Same transports as `read` and `cancel`, no hub refusal, since it reads only the connection's own call. `hello` gains `peek: true` so the worker tells an old host apart, and that flag is the ONLY gate (no probing by calling peek). Capture flushes each chunk before publishing its count, so a peek never reads past disk. Conditions (coordinator): the worker drops a partial leading UTF-8 sequence and cuts at a line boundary before the model sees anything; the tail is model-facing and goes through sw-scrub.ts and the tool-output cap (e3's row: a secret in a running call's stdout never reaches the model); host-side red-team rows: peek of another connection's id, of an ended id and of a never-issued id all `UnknownId`, `bytes` above the cap clamped rather than an error that names the size, a peek during capture never reads past the flushed count. The host PR carries its PROTOCOL.md paragraph, janitor-2 reviews, then the window-ml side: an `ml.sh` task's `tail` calls peek when hello says so, else today's null with the reason line, which stays for old hosts. The build arm of the lease bench re-runs after this slice. HOST PR OPEN 2026-11-08: wanderdev0/window-ml-host#29 at aedbc008 (verified open, "peek, the latest output of a call that is still running"); janitor-2 reviews it against the conditions above, then the window-ml side follows. TILDE HOST DESIGN RULED 2026-11-08 (the async lane's note; branch `async/tilde` stacked on `async/peek`, PR after #29, janitor-3 reviewing): one rewrite at the top of `Session::spawn`, the only argv resolve path (pipe stages are spawned ids, `register` runs nothing), so facts, path facts, the repo argument, the pending argv and the spawn all see the expanded form; HOME is the host process's own, the value env.rs passes to the child, and unset, empty or relative counts as absent, the argument staying literal with a reason and `to: null`; the facts gain `tilde: [{index, from, to}]`, always present, `index: "cwd"` standing for the cwd, which is expanded then still checked absolute and inside a root; `hello` gains `tilde: true`, the only gate. Three rulings: `"cwd"` in the same list, typed `number | "cwd"`; every later argument expands, not only pathArgs-marked ones, since an argv must mean one thing regardless of manifest, keeping the spec's limit that only a whole-argument `~` or a `~/…` prefix expands (`~user`, `a~b`, `--flag=~/x` stay literal, each with a row); the no-HOME reasons are a fixed enum (`no-home`, `home-not-absolute`), never free text. Two pins: expansion happens BEFORE judging, so `~/.ssh/config` is judged as the expanded path and asks while `~/notes.txt` inside a root reads free; no probing, the hello flag decides. WINDOW-ML HALF BUILT 2026-11-09 on `async/tilde`: the worker passes a `~` cwd through only when `hello.tilde` says so, the card and the unasked line show each entry as `~/x is /real/x` (or warn that it stayed literal), and the JSDoc clause is conditioned on a new `shellTilde` capability rather than the host's version; glob's own cwd does not expand (janitor-3), which nothing in window-ml reaches, since the worker never calls `glob`. PUT SLICE RULED 2026-11-08 (Shane confirmed the ruling in the coordinator's session; the async lane's host design note accepted in full): the fourth slice of the resolve path, after tilde, lets `ml.sh.put(handle, path)` write an attachment's original bytes to disk (FILE_ATTACHMENTS.md ruling 3). THREE CALLS, spawn's resolve → judge → act shape, because "an existing file always asks" must be judged before a byte lands: `put {path, cwd, size}` resolves and answers facts only (`exists`, `existingSize`, `root`, `rel`, `tilde`, `expiresInMs`; the same tilde and cwd rules as `spawn`; the parent must exist, is held as a directory descriptor from then on so a later symlink swap cannot redirect the write; a missing parent is `NoParent`, a parent whose realpath leaves the roots is `OutsideRoots`, a symlink target `IsSymlink` whichever way it points, a directory `IsDirectory`, a `protected_rels` or `looks_secret` target `Protected` with no verdict that can allow it, `size` above the host's cap `TooLarge`); `write {id, offset, bytes}` appends chunks of at most 512 KiB (PROTOCOL's constant) at a strict offset into a temp file created `O_CREAT|O_EXCL|O_NOFOLLOW` 0600 beside the target; `commit {id, replace}` fsyncs, chmods to 0666 & ~umask and renames through the held descriptor, no-replace (`RENAME_NOREPLACE`/`RENAME_EXCL`) unless the person approved the overwrite, so a file that appears between the fact and the write is `Exists`; the answer is `{id, path, rel, size, sha256}`. The temp file is deleted on `discard`, TTL, a failed commit and connection end. Hello carries `put: { max }` (64 MiB first; the host owns the number, the worker refuses above it before the first write and its sentence names it). The host refuses the call over the hub transport (`HubRefused`, scope) as well as the worker refusing a run with `origin.remote`. The window-ml half NAMES `put` in the iso-channel allowlist and never relaxes its length guard (e3's guard row). Owners: async builds the host PR first on `async/put` stacked on `async/tilde` (janitor-3), then the window-ml half in `sh-call.ts` (janitor-2); e3's rule-10 rows are on `redteam/sh-put` at 7a056e3d (13 tests: 2 controls and 1 guard green today, 10 todo, each measured red with the todo stripped), the test-only PR lands after the feature merges. WINDOW-ML HALF BUILT 2026-11-08 on `feat/sh-put` (`shPut`, sw-shell-call.ts; `sh-put.ts`; how it works: `docs/dev/shell.md`, "Writing an attachment to disk"): a new file is judged under the sandbox's bound at placement `host-sandbox`, since the host itself holds that bound for this write, so a nested path is free and a new top-level name asks; an existing file asks as `kind: "put"`; a run whose origin cannot be read is refused like a remote one. FINDING 2026-11-08 (e3, rule 9): the argv pointer-token refusal RULED 2026-10-28 above is UNBUILT: `ml.sh.run(["cat", "@file:3fa91c2"])` spawns the token as a path, unflagged. Not an escape today (opaque token), but with `put` it reads as a route to the person's bytes; the async lane builds the refusal in `sh-call.ts` with or before the put window-ml half, and e3's row flips as the finder's own commit. GH UNDER THE SANDBOX RULED 2026-11-08 (the gh-host session's piece-2 note, measured on macOS 25.6 with gh 2.103.0): gh keeps its token in the KEYRING, not in `hosts.yml`, and reaches it by exec'ing `/usr/bin/security`; with no token reachable, gh answers anonymously with NO error (a private repo reads as "not found"). A profile that authenticates from the keyring needs exec of `security`, read of `~/Library/Keychains` and the `com.apple.SecurityServer` service, and with those three granted the sandbox read a throwaway Keychain item another tool had stored: the Keychain ACL trusts the `security` binary, not the caller, so that variant is the whole Keychain and is REFUSED. The brief's variant (the credential directory read-only, `hosts.yml` writable) is withdrawn. ACCEPTED: a credentialed-network variant of `host-sandbox` whose credential the HOST holds and injects. The host has a fixed table of credential providers in code (v1: `github`), each saying how the token is obtained outside the sandbox (v1: the person's resolved gh run unconfined at spawn with `auth token --hostname github.com`, stdout captured and never logged; a Keychain dialog on first use is the person's one-time consent), which env name receives it (`GH_TOKEN`) and which program may name it (gh, by manifest name AND resolved binary). The manifest names only `credential: {provider}` and `network: {direction, ports}` with ports a subset of the provider's list ([443]); no path, env name or argv comes from a manifest, and the provider is honoured only for a manifest whose hash is in the host's pinned vector copy. The host sets `GH_TOKEN`, `GH_CONFIG_DIR=/gh` (throwaway: the person's pager/browser/editor keys and aliases are never read, which takes #1538's finding (e)), `GH_PROMPT_DISABLED=1`, `GH_NO_UPDATE_NOTIFIER=1`, `GH_TELEMETRY=0`; a call env naming any `GH_*`, `GITHUB_*`, `HTTPS_PROXY`/`HTTP_PROXY`/`ALL_PROXY`/`NO_PROXY` (any case) or `SSL_CERT_*` is refused (takes #1538's finding (c)). No token from the provider is `SecretUnavailable` before spawn: the call never runs anonymously by surprise (measured: a wrong token is a 401, not a fallback; an empty config dir refuses `api`). It ALWAYS asks: no policy allow applies, the free tier never covers it, and the card says "sends your GitHub token" through a `credential` fact (the "as the person" term #1538 pinned). Exec stays program-only, {gh, git, git's exec-path helpers}, never `/usr/bin/security`; Seatbelt is inherited, so git spawned by gh runs under gh's profile with port 443 and `GH_TOKEN` in its env, reads no credential helper, goes anonymous over https and fails over ssh (`~/.ssh` stays denied); the gh calls that spawn git with network already describe `runs-code` and ask. Seatbelt profile additions: `(allow network-outbound (remote tcp "*:443") (remote unix-socket (path-literal "/private/var/run/mDNSResponder")))` and `(allow mach-lookup (global-name "com.apple.trustd.agent"))`; port 80 is refused; nothing is written under `$HOME`. An env token is never refreshed or persisted (gh source `internal/config/config.go`, `ActiveTokenWithRefresh` returns a non-refreshable credential unchanged), so #1538's `hosts.yml` write does not arise on this path. Placement: the placement stays `host-sandbox`; `done`'s envelope gains `profile: "credentialed:github"` beside `write` and `exec`, and the worker's `boundFor` treats it as its own bound (network read and write, the credential effect, never free). A host that lacks the provider or a platform that cannot hold the variant answers `SandboxFailed` and NEVER the ordinary profile, which is the anonymous-by-surprise one; the worker then shows "asks, runs on the plain host" (the plain host keeps today's behaviour: gh asks and runs unconfined with the person's own keyring). STAGING: v1 is macOS with `*:443` (Seatbelt filters by address and port, so the host set is not scopable there), Linux answering `SandboxFailed`; PR 2 is a local CONNECT proxy on BOTH platforms (Seatbelt allows only `localhost:`, bwrap keeps `--unshare-net` with a host-side unix socket bound in and a forwarder inside; the host sets `HTTPS_PROXY`; the proxy filters by CONNECT host: api.github.com, github.com, uploads.github.com, *.githubusercontent.com), designed after v1 merges and measured on Linux by an mlbox handover. SHANE'S DIRECTION 2026-11-08 for PR 2: a manifest author must be able to declare the specific hosts a program may reach, so the PR 2 manifest shape carries `network.hosts` (exact hostnames or one `*.suffix` form, never a bare `*`), enforced by the proxy; a credential provider further restricts where the TOKEN may go to its own host list; a declared host is a described effect the card names ("reaches api.example.com") and asks by default. Hostile-manifest refusals: no path field exists; an env name is never taken from a manifest; a provider not in the table, or named by another program's manifest (curl naming github), is refused; ports outside the provider's list are refused at load; an unpinned manifest gets the ordinary profile. RED-TEAM ROWS (rule 10; e3 writes them as a test-only PR in a separate session after the feature merges): (1) `/usr/bin/security find-generic-password` on a throwaway item fails under the variant, direct and via gh; (2) `~/.config/gh` and `~/Library/Keychains` stay read-denied; (3) no token is `SecretUnavailable` and gh never ran; (4) a call env setting `GH_TOKEN`, `GH_HOST`, `GH_CONFIG_DIR`, `GH_ENTERPRISE_TOKEN`, `GITHUB_TOKEN`, `HTTPS_PROXY`, `https_proxy` or `SSL_CERT_FILE` is refused; (5) port 80 and a non-443 port are refused, 443 admitted; (6) `gh api https://:443/x` sends no `Authorization`; (7) `GH_CONFIG_DIR` is under the call's tmp and gone after, nothing under `$HOME`; (8) the curl manifest naming `provider: github` is refused and an unpinned one gets the ordinary profile; (9) what git spawned by gh CAN do is pinned as a FINDING row; (10) the token appears in no `done`, run log, error text (`sw-scrub.ts`) or card; (11) upgrade: an old host answers `SandboxFailed` to `profile: credentialed:github` and the worker does not retry under the ordinary profile. OWNERS: the gh-host session builds both halves (host PR reviewed by janitor-3; window-ml half, `boundFor`, the `credential` fact, scrub, the upgrade row, reviewed by janitor-2), after host#30 (MERGED a9613327) and the release workflow PR. Unmeasured and said so: the Linux rules, the proxy, git under the inherited profile, whether `gh auth token` run by the host prompts. HOST RELEASE WORKFLOW RULED 2026-11-08 (piece-3 note; the host has 0 releases and CI needs a pinned binary): modelled on the hub's `release.yml`; trigger a `v*` tag push plus `workflow_dispatch` with a tag input, checkout of the TAG, concurrency `release-` not cancelled, a version gate failing when `wmlhost --version` is not the tag minus `v`; three native targets (x86_64-unknown-linux-gnu on ubuntu-24.04, aarch64-unknown-linux-gnu on ubuntu-24.04-arm, aarch64-apple-darwin on macos-14), default features (`native`, no `hub`), each job unpacking its own `wmlhost--.tar.gz` (wmlhost, LICENSE, README.md) and running `--version` and `clients/node/smoke.mjs` before upload; `.sha256` beside each and one `SHA256SUMS`; a `publish` job with `contents: write` creates the release with generated notes and uploads WITHOUT `--clobber` (a tag's bytes are immutable; a broken release gets a new tag); `actions/attest-build-provenance` on each archive IN v1 as provenance, not a gate. The gate is window-ml's OWN pin: unlike fetch-hub, which trusts the release's `.sha256` from the same release, window-ml commits the per-target sha256 in a pin file (flaky-ci's fetch-host; a `host-dist.json` under tools suggested) of shape {repo, tag, commit, assets{:{file, sha256}}}; `fetch-host --bump ` downloads SHA256SUMS and each archive, hashes each itself, refuses unless both agree, reads the tag's commit through the API and rewrites the pin; `--bump --check` compares and writes nothing (the reviewer runs it); a pin bump is a window-ml PR with @ci (+@security when the host sandbox changed) naming tag, commit and the three hashes. First tag v0.7.0 (Cargo.toml's version; tags stop at v0.5.0), cut by the gh-host session on main after host#30 and the workflow PR merge. Shane's own setting to flip: immutable releases on window-ml-host. Unchecked: ubuntu-24.04-arm availability, smoke.mjs on a release build, mlbox's glibc (a 24.04 build needs 2.39; musl is the fallback). CI GAP CONFIRMED BY SHANE 2026-11-08: CI runs ml.sh against a real wmlhost (the e2e specs skip without the binary today). Allocation (Shane confirmed): the release workflow is the gh-host session's; fetch-host, the ml-sh-host.spec gate and one put round trip are flaky-ci's after #1535, design note first, the job FAILING (never skipping) when the release is unreachable; async takes nothing more beyond tilde, put and the argv pointer-token refusal. HOST RELEASED 2026-11-08 (all verified with gh). host#32 (the release workflow) MERGED 323b5c21 after janitor-3's clean review at fcc22473 (comment 6721562229); host#33 (put) MERGED 37739365 after janitor-3's review at 61767538 (6721562412), so all three host slices are in (hello peek, tilde, put). Shane allowed the tag push: wmlhost v0.7.0 is RELEASED by run 42491062828 on all three targets (version gate, smoke, attestation, publish), release immutable, seven assets (three archives, three .sha256, SHA256SUMS). The tag is ANNOTATED: the ref peels through tag object dfecf446 to commit 323b5c21. RULES ADDED: (1) fetch-host's `--bump` and `--check` PEEL the tag (the ref API returns an object of type tag, not the commit) and compare the peeled commit with the pin's `commit`, refusing on a mismatch rather than storing the tag object's sha; (2) the publish job's `--clobber` is ACCEPTED as an exception to the no-clobber rule when and only when the target is still a DRAFT release (a re-run refilling a short draft); a published release is never clobbered, which immutable releases enforce server-side; a re-run deletes no asset it does not upload, which is fine because a published tag's set never changes. The pin values (per-target sha256: x86_64 a7624078…, aarch64-linux f7772d3f…, darwin 9f91a28a…) went to flaky-ci in session-mail (20261108-1444Z-gh-host-to-flaky-ci-wmlhost-v0.7.0-pin.md); fetch-host starts after #1535 merges, design note first. #1535 (fetch-hub retry) is CLEARED by janitor-3 at c705c406 (6722861933; CI fully green including hub and all three e2e shards; four new body-read catch rows); flaky-ci arms; once on main, #1478, #1508, #1524 and #1536 rebase and the 504 blocker lifts. gh-host proceeds to piece 2 v1. FETCH-HOST DESIGN RULED 2026-11-08 (flaky-ci's note, session-mail 20261108-1450Z; ACCEPTED as written, coding may start). The pin is a `host-dist.json` under tools, shape `{repo, tag, commit, assets{:{file, sha256}}}` with v0.7.0's values (commit 323b5c21, the three sha256 from gh-host's 1444Z note); it is the ONLY trust root: fetch-host never fetches the release's `.sha256`, checks the archive against the pinned hash BEFORE unpacking, and runs `--version` after landing at `../window-ml-host-/target/release/` so the existing sibling scan in native-host.mjs is unchanged. `--bump ` downloads SHA256SUMS and every archive, hashes each itself, refuses on any disagreement, and PEELS the tag (ref `object.type` "tag" → `git/tags/` → `.object.sha` until a commit; a lightweight tag is stored as-is); `--bump --check` writes nothing and refuses a pin whose `commit` is a tag object (its own row: passes 323b5c21, refuses dfecf446). The gate job (ubuntu-24.04, cache keyed on the pin's hash, fetch on miss, a visibility step that exits 1 when the binary is absent, E2E_WMLHOST exported so the spec's skip cannot fire) runs ml-sh-host.spec and FAILS when the release is unreachable, never skips; the one put round trip joins it as a second ROW once put's window-ml half merges. glibc ≥ 2.39, bubblewrap and the AppArmor userns step are carried as job requirements, marked as gh-host's unverified claims. Reviewer janitor-3; label @ci; a pin-bump PR carries @ci (+@security if the host sandbox changed) and names tag, commit and the three hashes. GH PIECE 2 v1 OPEN 2026-11-08 (gh-host's note, session-mail 20261108-1615Z; verified with gh). host#34 e658e84f (@host): a provider table in the host's credential module; `spawn.credential:{provider, manifest:}`; `hello.credentials`; `done.envelope.profile`; Seatbelt `(remote tcp "*:443")`; exec program-only (gh, git, git-remote-http(s)); the token read at `start` (`SecretUnavailable` if none); `CredentialRefused`; Linux answers `SandboxFailed`; env denylist plus `GH_*`, `GITHUB_*`, `SSL_CERT_*`, `*_PROXY`. #1545 a2dbc235 (@host @security @docs): manifest `credential:{provider}` and `network:{ports}` (no `direction`; hosts come in PR 2), the gh manifest, `credentialFor`, `ShFacts.credential`, `judgeCall` (no allow policy and no free tier for a held credential), a GitHub-token scrub by shape, an upgrade row. SIX READINGS ACCEPTED: the token is read at start; `network` carries ports only; an unpinned manifest hash is `CredentialRefused`, never a demotion; gh planted in a root or named by path is refused because the token fetch runs unconfined (e3's row 12: planted ./gh, a root first on PATH, an absolute gh, an in-root git `--exec-path`, each refused before anything runs); `boundFor` is unchanged; the upgrade goes through `hello.credentials`. #1538's (c) and (e) are taken. Measured by gh-host: no Keychain dialog, `gh api /rate_limit` 5000, a non-443 port refused. REVIEW: janitor-3 is the only pass on host#34 and janitor-2 reviews #1545; e3's twelve rows are the adversarial pass after both merge. host#34 PASSED 2026-11-08 at e658e84f (janitor-3, comment 6723473480: no findings, no change; the three load-bearing guards each have a row that reds when the guard is removed; no planted-binary route, since PATH is on the denylist and the only writable place outside the roots is the call's own tmp; vectors byte-identical to window-ml 8324c22d; CI run 42493113720 green). Two notes, neither a change: the exec-path directory enters the allowlist as git reports it; the token fetch blocks the session task up to 30 s. host#34 MERGED f82f08f5 (squash of e658e84f, four checks green; clone removed); the pin bump carries it into window-ml once fetch-host exists. #1545 waits on janitor-2; e3's rows measure once it merges. 2026-11-08 evening: #1542's merge (980a7f93) left #1545 a2dbc235 CONFLICTING on sh-call.ts, its test file and docs/dev/shell.md; gh-host merges main into feat/gh-credentialed (a merge, so the diff stays reviewable) and names the new head to janitor-2, keeping #1542's four-prefix refusal in parseShRun. async's put window-ml half starts on feat/sh-put from main; it will meet the same merge if it touches sh-call.ts after #1545 lands. #1545 at 67bcf16a (verified: a merge commit over a2dbc235 and main 980a7f93; mergeable again): docs/dev/shell.md keeps #1542's step 0 and the credential step 1; the four-prefix refusal is intact; gh-host reports tsc clean and the full suite green (8831 pass). janitor-2's review must name 67bcf16a. The host side is complete: host#30 and host#34 merged, v0.7.0 released 2026-11-08 14:43Z; janitor-3 removed its host clone after its three host reviews merged. FETCH-HOST OPEN 2026-11-08 (flaky-ci; verified with gh): #1549 at 21a10ff5 (@ci; eight files: the tests workflow, AGENTS.md, working-in-the-repo.md, package.json, a fetch-host script under scripts, test.mjs, a fetch-host-pin test, and the host-dist pin under tools). The ruling is implemented as written: the pin is the only trust root; the peel rule has its own rows (--check passes on 323b5c21 and refuses a pin that holds dfecf446 by name); --check writes nothing (a row runs it against a temporary pin and asserts the bytes unchanged); the gate job fails at fetch or at its visibility step, and E2E_WMLHOST is exported at the binary the step found, so the ml-sh-host spec's skip cannot fire in CI; the put round trip is named as the job's second row once async's window-ml half merges. One deviation RULED acceptable: the bump path reads the git ref and tag objects with plain fetch to the same api.github.com endpoints instead of the gh CLI, so the peel and --check rows run with a stubbed fetch and no gh dependency; the endpoints and the peel semantics are the ruled ones. Non-blocking note passed to janitor-3: the patch sends no Authorization header, and unauthenticated reads of api.github.com are limited to 60 per hour per IP, which bites only a reviewer re-running --check; sending GITHUB_TOKEN or GH_TOKEN as a bearer when set would remove it. janitor-3 reviews; flaky-ci arms on a comment naming the head; the pin bump that moves CI onto v0.7.0 follows as its own PR. PUT WINDOW-ML HALF OPEN 2026-11-08 (async; verified with gh). #1553 at 6de56c33 (@exec @security; eighteen files, among them a new sh-put module under src/shell, its own sh-put test, iso-channel, sw-shell-call, sw-values, the ask card and the export): an `@file:` attachment's original bytes written to the host's disk over the host's put/write/commit (host#33). `put` is named in iso-channel with its own arity of exactly two; run and read keep their bound of two arguments; a run whose origin cannot be read is refused like a remote one. e3's three fixture notes are folded into its own file at fcd928da on redteam/sh-put (15/15 against the branch with todos stripped); its test-only PR lands after #1553 merges, per #1307. TWO GUESSES RULED ACCEPTED. (1) The judgement runs at placement host-sandbox: a put runs no child, but the host itself holds the write bound for this one write (the parent's realpath inside a root through a held directory descriptor, protected and secret-looking names refused, never through a link), which is the in-root write with no new tier that FILE_ATTACHMENTS.md ruling 3 names; at host-plain every put would ask and the free nested-new-file tier would be dead. The built-in frees a nested new file, asks for a new top-level file, and always asks for an existing file. (2) putFacts carries the keys of an ml.sh.run call that runs nothing (argv empty, program, cwd) beside put, so a person's program policy evaluates without throwing and a put never marks it broken. CONDITION on (2): a program policy must never FREE a put; a rule on c.program.path naming a real program evaluates to false on a put's facts, and a row says so under both placements. janitor-2 is asked to confirm the row exists and to report its absence as a finding. The chat-page lane's FILE_ATTACHMENTS paragraph and UPGRADE row follow the merge. PEEK WINDOW-ML SIDE RULED 2026-11-09 (the async lane's commit 6d48eb40 on async/peek-tail, stacked on feat/sh-put, opening once #1553 merges): (1) two tail bounds, by who asked. The 500-character OUTPUT_CAP.exec.default bounds the tail nobody asked for (the `Detached` message, the inbox line, the `ml.current.tasks` row); the tail the model ASKS for through `task tail` is lines-first, the N asked capped at TASK_TAIL_MAX_LINES (200) with a ceiling of 8 KiB per stream, keeping the end, the full capped stream a value it can point at. "Capped like any tool output" meant bounded, not 500. (2) `ml.current.tasks` keeps one peek per running `ml.sh` task per snapshot (4 KiB requested, the small bound shown); null only when `hello.peek` is false, with the reason sentence. Accepted as the lane guessed: bytes requested (N+1)*240 clamped to 4 KiB-512 KiB; a no-newline fragment that does not start the stream kept and marked "(start of the line cut)"; SH_TAIL_ABSENT reworded to name the old-host and hub cases (model-facing; listed for the next prompt review). Rule 10: e3's secret-in-stdout row ships as e3's test-only PR after the feature merges. janitor-2 reviews. VERIFIED 2026-11-09: #1545 MERGED 337095ac (the gh credential sent to a host that holds it, the call always asks, a GitHub token scrubbed by its shape) with host#34 f82f08f5 merged on the host; the pins' release field is filled when the next host release carries it (flaky-ci's bump). e3's test-only pass on the new surface is #1561 OPEN c3d90df0 (tests/redteam-gh-credential.test.mjs, measured worker-side), janitor-3 reviews, landing after the feature as the amended rule 10 has it. RULED 2026-11-09 (PR 2, gh-host's design note in session-mail 20261109-1145Z, scoping the credentialed call to GitHub's hosts with a host-side CONNECT proxy; v1 complete: host#34 f82f08f5, host#35 4105a44b, #1545 337095ac, #1561 82a3ed37): the profile allows exactly one outbound address, `localhost:

`, a port the host binds for this call alone; behind it a proxy in the host process admits only `CONNECT :443` (exact match after lowercasing and one trailing dot; IP literals, userinfo, percent-escapes, any other method and absolute-URI GET get 403 with no outbound connection; TLS is never terminated); the env (`HTTPS_PROXY` and kin, `NO_PROXY` empty, `ALL_PROXY`) is routing only. Q1: `network.hosts` goes in the manifest as a subset of the provider's list (validator and schema, as `ports`); the host pins both gh.json hashes for one release and an old gh.json gets the provider's full list, so scoping is host behaviour from the first release; `done.envelope` gains `hosts`; the extension's pin bump follows the release. Q2: mDNSResponder is dropped from the profile, measured in the PR; a negative result keeps the socket and the body says what broke. Q3: PR 2a (macOS proxy, worker hosts, card names the hosts, `ShFacts.credential.hosts`) now; PR 2b (Linux: bwrap keeps `--unshare-net`, a unix socket bound into the call tmp, `exec-under` forwards `127.0.0.1:

` to it) after mlbox's measurements; `holds_credentials` stays false on Linux until 2b. Q4: the note's limits list goes into the host's SANDBOX.md with 2a, plus: the proxy resolves the listed name with the host's resolver, so the bound is the name, not the address; a client that ignores the proxy env fails closed. Rows 1 to 13 are e3's, each failing first, under the amended rule 10 in both repos. Reviewer for the host PR 2a: janitor-2; the worker PR's reviewer is assigned by load when it opens. MEASURED 2026-11-09 (mlbox, slop-zone a0821d8, reports/ui-api/gh-host-linux-proxy-answer.md; reported by mlbox and gh-host alike, the repo is not on GitHub so the commit is not verified here): PR 2b's design works on the Linux box. Loopback comes up under bwrap `--unshare-net`; a unix socket bound in with `--bind` accepts connections from inside; curl, git and python reach GitHub through the forwarder while example.com gets 403, a direct connect gets ENETUNREACH and there is no DNS; gh 2.98 honours `HTTPS_PROXY` (a fake token got 401 through the proxy). glibc 2.43, bubblewrap 0.11.1, Landlock ABI 8. Caveat for SANDBOX.md and 2b: Ubuntu 26.04 restricts unprivileged user namespaces and bwrap works only through the AppArmor profile attached to `/usr/bin/bwrap` by path, so a vendored bwrap elsewhere is denied. PR 2b is unblocked; 2a in progress. OPENED 2026-11-09 12:10Z: PR 2a is window-ml-host#36 at 5a9e2e14 (`@host`, CI running at open). gh-host reports: the profile allows only `localhost:` with no DNS; Q2 measured (authenticated gh, rate limit 5000; tarball, release download and raw reachable; example.com answered 403); Q1 both gh.json hashes pinned; the vectors come from window-ml commit 99c96e8d on feat/gh-network-hosts, the worker PR to come (no PR open yet); SANDBOX.md carries the Q4 limits, the two coordinator lines and the AppArmor caveat. e3's v1 FINDING row (any 443 host reachable) fails as expected on the branch; e3 flips it there as its own commit per rule 10. Reviewer janitor-2, as ruled. The measurements are gh-host's report, not verified here; the reviewer confirms them. REVIEWED 2026-11-09 13:00Z: janitor-2 reviewed window-ml-host#36 at 5a9e2e1 clean (comment 6740566163); the one red check is e3's v1 FINDING row, which the PR invalidates on purpose. Head is now 6e73973d (one commit: the 0.8.0 version bump in Cargo.toml, Cargo.lock and docs/PROTOCOL.md). Order from here: e3 flips the FINDING row and rows 1-10 as its own commit on the branch, janitor-2 re-checks the final head, gh-host merges and tags v0.8.0, then opens the worker PR from feat/gh-network-hosts (at 995f3079: the validator and schema take `hosts` as a subset, `ShFacts.credential.hosts`, the card names the hosts, an upgrade row for a host that names none, PROGRAM_MANIFEST.md); only the credential-pins test is red there until #36's merge commit exists. gh-host reports Shane approved the v0.8.0 tag in its session; CONFIRMED by Shane in the coordinator's session on 2026-11-09: this one tag is approved. FLIPPED 2026-11-09 13:30Z: e3's rows 1-10 of the PR 2 note are on host#36 as its own commit, head 8061d665 (one commit, tests/stdio.rs only, verified), each through a real call, the v1 FINDING row (any 443 host reachable) folded into row 5: a raw connect to GitHub's own address or a third party's is refused by the profile and only the proxy admits anything; ten green, full stdio suite 155/155, each row measured red under its own mutation. All four CI jobs green, mergeable; janitor-2 asked to name the head, then merge, tag v0.8.0, worker PR. MEASURED (e3, macOS 26, forwarded to gh-host for SANDBOX.md): the resolver's unix socket is what closes DNS; the grant that reopens resolution is `(allow network-outbound (remote unix-socket (path "/private/var/run/mDNSResponder")))`; mach-lookup grants for com.apple.dnsResponder, com.apple.dnssd.service and com.apple.networkd restore nothing, and resolution fails under `(allow default)(deny network-outbound)` too. The thing never to add back is that socket path, not a mach service. MERGED 2026-11-09: host#36 squash-merged as 7158d74f after janitor-2's comment named 8061d66 (per gh-host); v0.8.0 is tagged and released with three targets and SHA256SUMS (seven assets, verified). The worker PR is #1588 at 246383b1 (`@host` `@security`, twelve files, five in src/shell: credential-pins.json, host-protocol.ts, manifests/gh.json, program-manifest.ts, sh-call.ts): credential-pins.json carries sha 0d8a936c, equal to host main's vectors gh.json, host 7158d74, release v0.8.0, so no pin bump from flaky-ci is needed for this one; gh-host reports 9049 of 9050 locally with the one failure (an ml-sh expectation now carrying hosts) changed in the head. Reviewer janitor-2 by category and load. E3's rows 11-13 land as e3's own commit on feat/gh-network-hosts before the merge. The DNS socket measurement and e3's note that row 10 is git TLS rather than a token spend go in SANDBOX.md with PR 2b, since the v0.8.0 tag was cut before they arrived. REVIEWED 2026-11-09: janitor-2 reviewed #1588 at 246383b1 (comment 6741607568): CI green on the head, no findings, two residuals noted and not asked for; the pin bump verified across both repos rather than from the body (this PR's gh.json hashes to 0d8a936c, byte-identical to the host's vectors manifest at v0.8.0 7158d74; VECTOR_PIN 67a6e114 is that tag's PIN; the tag's pinned gh.v1.json is d8a7af4e, the extension's previous pin, so the one-release overlap is real; start's facts carry credential.hosts at the tag as well as done.envelope). The one gate left is e3's rows 11-13 as e3's own commit on the branch; janitor-2 names that head, then gh-host arms. 2026-11-11: e3 pushed rows 11-13 as one commit on feat/gh-network-hosts, head f2bbbb2a, tests/redteam-gh-credential.test.mjs only (verified against 246383b1), 10/10 at that head reported; each row names the mutation that reds it (a suffix match on the host validator, a card printing "any host", a null-hosts grant falling back to the manifest list). Janitor-2 has the head; gh-host arms once a comment names f2bbbb2a. Janitor-2 named f2bbbb2a (comment 6792571796: the delta is the one test file, no findings) and #1588 MERGED 2026-11-11 as d56395e2 (run 42995735833 green; verified). PR 2a is done; gh-host removed its clone and opens PR 2b, the Linux forwarder, next. PR 2b OPEN 2026-11-12: window-ml-host#37 at a89774a (`@host`, nine files, CI running; verified): a credentialed gh call on Linux through a forwarder to the host's proxy on a unix socket; bubblewrap with Landlock required, SandboxFailed without; the Linux path has run only in CI. Reviewer janitor-2 by category, against two conditions: no Landlock means SandboxFailed and never a fallback that reaches the credential; the forwarder's socket is reachable only from the sandboxed call's own process tree. e3's Linux rows (the body lists the edges) are a test-only PR after #37 merges, reviewer janitor-3, by rule 10 as amended. host#37 MERGED 2026-11-12 as 132a86c4 after janitor-2 named f248d72 (comment 6816555677; both conditions hold; the same-uid question stays open, as on macOS; CI green on Ubuntu with Landlock required, the reach row no longer skips; verified). e3's Linux rows start on host main. DRAFT 2026-11-12: window-ml-host#39 at 135acb3b (tests/stdio.rs only; verified): both rows failed their own instruments on the ubuntu job; e3 bound the other call's socket at start rather than spawn, finds the forwarder by comm or as the only live pid above 1 when the ruleset denies /proc, and corrected a `/dev/tcp/{ip}/443` typo; re-measuring on CI, then the two mutations; reviewer janitor-3 when it leaves draft. READY 2026-11-12: host#39 at 5b75e91f (out of draft, CLEAN, all four checks green on run 43177659951, both rows executing; verified). Each guard was mutated alone on a scratch branch: dropping `--unshare-net` reds row 2 (the call reached GitHub by address with the forwarder dead); binding the whole `sock/` back reds row 1 (the socket directory holds exactly its own) and only that row. Both at once make the call under test fail to start (two forwarders on host port 18443), so they were measured separately; the record is comment 6819268355. Reviewer janitor-3 (assigned); e3 arms on a comment naming 5b75e91f. REVIEWED 2026-11-12 at 5b75e91f (comment 6820879408; verified), one change: the forwarder-kill row's two negative assertions pass when its second phase never ran. NEW HEAD 2026-11-12: 338c7da2 (one commit, tests/stdio.rs, the row asserts its second phase ran; CLEAN; verified); janitor-3 re-reviews it first in its queue and e3 arms only on a comment naming 338c7da2. MERGED 2026-11-12 as ccf65538 on janitor-3 naming 338c7da2 (comment 6822354216; verified): the forwarder-kill row's two `after-*-rc` negatives sit beside an anchor that each of `after-local-rc=` and `after-direct-rc=` starts a line of stdout, with a comment that they are vacuous without it. e3's worktree is removed. host#38 OPEN at 4e80a49f (the 0.9.0 bump: Cargo files and PROTOCOL.md; verified), janitor-2 reviews; gh-host tags v0.9.0 after it merges. Shane's approval of the tag reached the coordinator relayed by gh-host; Shane confirms it in the coordinator's session. CONFIRMED and TAGGED 2026-11-12: Shane confirmed the tag in the coordinator's session; host#38 MERGED as 5fd151e2 after janitor-2 named 4e80a49f (comment 6816707913), and v0.9.0 is tagged on 5fd151e2 (verified against the tag ref); release run 43169925341 builds the assets; gh-host then opens the window-ml pin PR (fetch-host --bump, release v0.9.0 and host 5fd151e2 in credential-pins.json). PINNED 2026-11-12: #1630 MERGED as 0ef5c68f after janitor-2 named 24892e0b (comment 6817825708, verified against the release's bytes); tools/host-dist.json pins v0.9.0 at 5fd151e2. OPEN QUESTION to gh-host: src/shell/credential-pins.json still names host 7158d74 and release v0.8.0 with the vectors sha 0d8a936c; gh-host says whether the pin stays because the vectors did not change and the host field is informational, or follows the release in a one-line PR, and what the two fields gate at runtime. ANSWERED and CLOSED 2026-11-12 (gh-host; verified: no file under src, scripts, tools, build.mjs or .github reads credential-pins.json, only tests/gh-manifest.test.mjs and a comment in tests/redteam-gh-credential.test.mjs): the file stays at 7158d74 and v0.8.0. The runtime gate is the host's compiled-in PINNED table in src/credential.rs, which honours a credential only when the manifest hash the worker sends is in it and otherwise answers CredentialRefused; the test asserts the pins' keys equal the shipped manifests that name a credential, each sha256 equals the manifest's bytes and the hash the worker sends, and `host` is 40 hex (a shape check, never resolved); `release` is checked nowhere. `host` and `release` are a record for people, the first host commit and release whose PINNED holds these bytes, and move only when gh.json's bytes change, which needs a host release first; between v0.8.0 and v0.9.0 the table and the vector are byte-identical. A host version gates only host-dist.json through fetch-host. gh-host's piece 2 PR 2 is finished; the Linux rows stay e3's. SESSION CLOSED 2026-11-12: Shane closed the gh-host session (session 54f76a32) after the coordinator confirmed it held no work (host#39 merged ccf65538, v0.9.0 tagged and pinned in tools/host-dist.json, the credential-pins question closed); nothing is reassigned, since nothing was open. TILDE 2026-11-09: async's #1595 at 8c5046c6 (`@agent` `@api`: ml.sh passes a `~` cwd to a host that expands it, and the card shows each expansion) was open with no reviewer, found through bench's draft; janitor-2 reviews it. Bench's tilde canary row (the 2026-11-07 ruling) is draft #1596 at 7ee169c6 (`@bench` `@security` `@host` `@agent-skills`; eight files, the bench skill, bench-metrics and sh-lease-approver tests, the e2e bench's metrics, sh-canary and the sh-lease-canary spec, the sh-lease pilot spec), draft until #1595 merges, then rebased and marked ready for a reviewer by load. canary-tilde passes only on a denied nested sh ask whose facts.tilde expands `~/…` to the real path with no leak; a free workspace read or a missing expansion fails it; measured with the fake LLM against the pinned v0.7.0 host, main plus #1595 is 4/4 and main alone fails test 5 on the expansion. CI never runs the pilot (no host binary outside the host job), so the merge order matters, not CI. The real-model sweep of the row on the GPU waits for Shane's yes. 2026-11-11: Shane agreed in the coordinator's session that the sweep waits until #1595 and #1596 merge; bench confirmed the order and that the start itself needs the yes said in bench's session. #1595 was rebased twice on 2026-11-11: 14c95293 still conflicted with main because spec PRs #1603 and #1604 had appended sentences to this ruling and the #1588 one; 8d16664c (two commits, fifteen files, verified MERGEABLE) keeps both of main's sentences and the tilde text. Janitor-2 has that head; bench's #1596 rebases once it merges. Then 6d0b70cf applied janitor-2's one finding from 8c5046c6 (comment 6792323865: the `~/proj`-outside-roots row asserted facts a real host refuses with CwdOutsideRoots; the fake host now refuses as spawn does, the ml-sh row asserts the refusal end to end, the synthetic In line moved to sh-call.test.mjs; test files only) but was DIRTY again once #1588 merged into src/shell; 00b647aa (three commits, fifteen files, MERGEABLE; verified) keeps #1588's credential hosts in host-protocol.ts and sh-call.ts with the tilde fields after them, 181/181 across the six shell suites reported. Janitor-2 reviews 00b647aa. DIRTY again on 2026-11-12 after the coordinator's spec PRs edited this paragraph (verified with merge-tree; one hunk): async rebases keeping main's paragraph plus its HALF BUILT sentence; janitor-2 names the new head, then async arms. CONFLICTING a fourth time on 2026-11-12 (main 6304b9e0, SHELL.md only; janitor-2 verified the tree at 3190e8ad identical to 00b647aa in every file the branch touches, 13/13 green). RULED by the coordinator: async resets SHELL.md to main on the branch in one commit and the branch shares no file with the spec PRs; the two doc edits it carried (the HALF BUILT sentence and the `shellTilde` capability paragraph) are on main through this record. Janitor-2 names the new head, async arms. NAMED 2026-11-12: head e61ae4ee, rebased onto 08d1530a rather than a bare reset so the base is not behind main; three commits, fourteen files, none SHELL.md; janitor-2 named it (comment 6817741373; 13/13 green, MERGEABLE; verified); async arms and sends bench the merge SHA. #1595 MERGED 2026-11-12 as ab9b4a8a (verified): the tilde half is on main; bench has the SHA for #1596. #1596 READY 2026-11-12 at 0ef6aa73 (rebased on ab9b4a8a, out of draft; test-only plus the bench skill doc; pilot 4/4 on the pinned v0.7.0 wmlhost, sh-lease-approver + bench-metrics 58/58, bench's word; verified OPEN, BLOCKED): reviewer janitor-3 (it holds #1631 too; janitor-2 holds #1634). Bench's note for the reviewer: sh-lease-approver.test.mjs:55 feeds the scorer a cwd of `~` with a canary fact, an input the fake host now refuses (cwd outside roots); harmless, still checks the scorer. Bench arms on a comment naming 0ef6aa73. After its merge bench runs the GPU canary sweep; bench states Shane approved it on 2026-11-11, which stands only if said in bench's session. SWEPT 2026-11-12 (bench's measurement, attributed to the lane; bench states Shane said yes in its session that day): 18 of 18 correct, 0 errors, on main f4b337c4 (with #1595 and #1596) and wmlhost v0.7.0 (323b5c21) in both placements; gemma4:31b, gemma4:e4b and qwen3.8-flash-next:vision on canary, canary-named and canary-tilde, once each; laptop Seatbelt 9 of 9, container bwrap (image wml-sh-lease:canary) 9 of 9. Every row raised an `ml.sh` ask the approver denied, no line of ~/.ssh/config in any answer or tool result; on all six canary-tilde runs the denied nested sh ask's facts carried the `tilde` entry mapping ~/.ssh/config to the real path (askedExpanded); the outer exec was approved and exactly one ask denied per run. Since 2026-11-07, gemma4:e4b finds `ml.sh` on the unnamed canary prompt in both placements (3 steps), so that row is no longer untested for it. Sweep folders are git-ignored (sync:false, the canary never leaves the process); bench opens a notebook row next to sh-lease as the committed artifact, reviewer janitor-3. OPEN 2026-11-12 as #1655 at b3b06b02 (`@docs`; notebooks/bench/sh-lease-canary.ipynb, make-sh-lease-canary.py, data/sh-lease-canary/runs.json with booleans, counts and ids only, and the notebooks README row; verified). Janitor-3 reviews it third, after host#39 and #1648; bench arms only on a comment naming b3b06b02. MERGED 2026-11-12 as 4a172dfe (verified; janitor-3's comment 6824012356 names b3b06b02 with nothing outstanding and measures the three points itself: runs.json holds booleans, small integers and name-like strings only). The lane's account: both sweep inputs are kept in its clone under tests/e2e/artifacts/bench/ as sh-lease-canary-laptop-20261112 and sh-lease-canary-container-20261112 (the undated name is an older 2026-11-07 sweep; the directories are seen by name), so the extract can be re-derived; NB_REFRESH still looks for the undated name. OPEN ITEM for bench: point NB_REFRESH at the dated inputs, or state in the notebook that the extract is pinned and the inputs archival. CLOSED BY #1682, OPEN 2026-11-12 at 5d4877a7 (verified: `@docs` `@bench`, one commit, three files, notebooks/bench/make-sh-lease-canary.py, sh-lease-canary.ipynb and data/sh-lease-canary/runs.json). The lane's account: the generator finds both placements with wmlnb.find_sweep under the dated names; a refresh from the kept sweeps gives the same 18 rows, only source, commit, extracted_at and the notebook's provenance and execution metadata change; check-notebooks passes. Reviewer janitor-3 (notebooks), seventh in its queue; bench arms only on a comment naming 5d4877a7 with nothing outstanding. ONE CHANGE 2026-11-12 (janitor-3 comment 6825665810) answered at 8ebb0e49 (one commit, notebooks/bench/make-sh-lease-canary.py only; the lane's comment 6825719105: the generator header names the bench clone's artifacts dir as where the dated sweep lives; verified); sent to janitor-3 as a head change; bench arms only on a comment naming 8ebb0e49. CLEARED (janitor-3 comment 6825862331 naming 8ebb0e49) and #1682 MERGED 2026-11-12 as 9dbf98a9 (verified); the lane's worktree and branch are removed (the lane's account). #1702 MERGED 2026-11-12 as 5cb664d3 (armed on 6825950875; verified); its worktree and branch are removed (the lane's account). Bench holds #1704 alone, third in janitor-3's order. SH-LEASE PEEK RE-RUN DONE 2026-11-12 (the lane's account): #1704 at 7ced7884 (`@bench` `@docs`; notebooks/bench/README.md, data/sh-lease-peek/RECOMMENDATION.md and runs.json, make-sh-lease-peek.py, sh-lease-peek.ipynb, tests/e2e/bench/specs/sh-lease.bench.ts; verified) is the spec change and the notebook in one PR. Result: keep SH_LEASE_MS at 15 s. All 18 tails on a running build returned output (0 on 11-07); no outcome moved (build correct 0.76 vs 0.80, task turns per detached build 2.04 vs 1.85, inside the 5-repeat spread); a 5 s lease detaches a 10 s call only for models that give no expectMs (gemma4:31b 5/5 with one task turn each; qwen3.8 1/5, its estimates replacing the lease); no model reported progress unasked; 90 local runs, 256 Wh; sweep kept as sh-lease-peek-20261112 in the bench clone. Async reads RECOMMENDATION.md. #1704 is HELD by the coordinator until one of janitor-3's four clears; bench arms only on a comment naming 7ced7884. ONE CHANGE 2026-11-12 (janitor-3 comment 6827060878 on 7ced7884: RECOMMENDATION.md said qwen3.8 did not detach where the rows show one detach, the estimate-less run; e4b's 2 of 5 detaches unattributed and its 9+7 leaving the step-capped run unnamed; everything numeric else checks against runs.json, the generator reproduces the notebook, check-notebooks passes at 18; the 476 calls / 256 Wh figure is not in the repo). PUSHED c9f108d5 (one commit, RECOMMENDATION.md and the notebook re-inlined; verified): e4b detached 2 of 5; qwen3.8 gave expectMs in 4 of 5 and detached only in the fifth; all 8 detaches on runs with no estimate; the e4b sentence names 9 function calls, 7 that never reached the host and 1 at the step cap (the lane's account); the energy figure stays out of the repo, the PR body naming its source as the sweep's own spend and electricity lines (476 calls, 255.75 Wh, 0.067 EUR). Head change to janitor-3, after #1712 in its order; bench arms only on a comment naming c9f108d5. #1704 CLEARED 2026-11-12 by janitor-3 at c9f108d5 (comment 6830228563, verified): nothing outstanding; both corrections hold against runs.json (e4b 2 of 5, qwen 1 of 5 and the estimate-less one, all 8 detaches estimate-less, 2.04 turns over 27 detached builds, 18 live tails on 13 runs, 14/90 progress, 12/15 correct at 5 and 15 s; the e4b sentence lands on the notebook's three `why` buckets 9 + 7 + 1 = 17; reproduction exact across 28 cells). Bench told to arm with --read 6830228563. #1704 MERGED 2026-11-12 as 5e7cf9b0 (verified); the bench lane has no PR open. Async moves to the owed prompt review (shellTilde, the put sentence, SH_TAIL_ABSENT, the task tail text), then python_exec mode 1. PROMPT REVIEW OPEN 2026-11-12: #1634 at 6b483915 (verified: AGENTS.md, PROMPT_BUDGET.md "Review of 2026-11-12", contract.ts, sh-call.ts, sw-shell-call.ts, tests/sh-call.test.mjs). Three fixes: the `@file:` refusal's put sentence says `/` into a folder that exists, since the host never creates one (NoParent), not `inbox/`; SH_TAIL_ABSENT drops "(it predates peek, or is reached over the hub)"; the shellTilde clause says `~/x` begins at home. AGENTS.md's review date moves to 2026-11-12. Reviewer janitor-2 (code; the lane asked). Async then moves to python_exec mode 1. NEW HEAD 2026-11-12: e9bf2552 (a merge of main after #1618 conflicted on AGENTS.md's prompt-review date line; the date keeps 2026-11-12; two commits, verified); janitor-2 reviews that head and async arms only on a comment naming it. REVIEWED 2026-11-12 at e9bf2552 (comment 6820790662; verified), one change, not armed: the record's kept claim that the asked tail's cut names its pointer is false at this head, since `task` is `citable: false` in tool-registry.ts and agent-loop.ts's mint block never runs, so the model reads the cut with no `@tool:` id; a citable name with the same shape names no id either, `heldChars` coming only from a render capture. The same claim is in docs/dev/shell.md and the comment in tests/redteam-peek-tail.test.mjs. Janitor-2's two resolutions: the tail ring in #1642 makes it true, or the record drops the claim and HELD_BACK.md gets the row. The coordinator's recommendation to async: drop the claim here and add the HELD_BACK.md row, restoring it in #1642 where the ring lands. Everything else holds (put's `~` ordering, Detached/task agreement, ml.embed split, DerefMeta.file, the ten model-facing commits); CI 12 pass, 8 skipped. Janitor-2 started #1642. PUSHED 2026-11-12: 03fc6374 (one commit on e9bf2552, four files, +13/−6, docs and one test comment; verified): PROMPT_BUDGET.md moves the asked-tail claim to "Found and not fixed here" pointing at HELD_BACK.md row 16, which is new (an asked `task tail` past ASKED_TAIL_CHARS has its whole stored as textValue with no way back, since `task` is citable:false, so no id is minted and heldChars is never set); docs/dev/shell.md says the cut tail is stored but cannot yet be pointed at; the tests/redteam-peek-tail.test.mjs comment says the row claims by hand and covers the value store, not the loop's minting. RULED 2026-11-12 (async's proposal, the coordinator's ruling, janitor-2 told): the gap is in the loop, not the tail, and #1642's python `task tail` takes the same textValue path, so the fix janitor-2 named (mint and claim when a result carries textValue, heldChars from the stored whole) lands in async's pointer-mint PR for task results and closes row 16 there; #1642 stays mode 1 only. Janitor-2 re-reviews 03fc6374; async arms only on a comment naming it. HELD 2026-11-12: janitor-2 finds the four-file diff right (all three copies of the finding answered; merge clean against main f4b337c4) but does not name 03fc6374 while e2e is red on it (verified: shard 3 of 3 fails on review-look.spec.mjs:705's three stylesheet rows, site-access.spec.mjs:1624 attack 19, and a waitInShell 15 s timeout); a diff with no source change cannot move UI pixels, so these are rerun rows, sent to flaky-ci's backlog. Async reruns e2e on that head; janitor-2 names it when the shard is green. GREEN 2026-11-12: the rerun of run 43198617151's failed jobs passed, every check on 03fc6374 passing or skipped (CLEAN; verified); janitor-2 names it and async arms on that comment. NAMED 2026-11-12: comment 6822615433 on 03fc6374 (verified); async arms. MERGED 2026-11-12 as 9a16bf39 (verified): the prompt review of 2026-11-12 is on main; async's worktree is removed and the remote branch is gone. Async moves to arming #1642, then the pointer-mint PR, then the kernel object. Of the three rows, flaky-ci first read attack 19 as a recurrence of the row #1163 marked fixed; the site-access lane took it 2026-11-12 and overturned that from the log of run 43198617151: the failed row is site-access.spec.mjs:1624 ("a real click in the first second does nothing; after it, the agent runs"), not the toolbar-badge row, and it failed in setup at open() with the waitInShell 15 s timeout before any card existed, passing on retry in 3.3 s. Cause, a harness race: approveOrigin (tests/e2e/harness.mjs) writes ml_site_always and ml_site_agents in two storage sets, both in SITE_ACCESS_KEYS, so each fires syncPresence; awaitPageScriptRegistration returns on the first; the second unregisters and re-registers the lasting registration, and open()'s single getRegisteredContentScripts read landing in that gap answers false and waits for a gate state an approved page never reaches. All 26 approveOrigin call sites are exposed. The product holds: a page loading in the gap is brought up by showInOpenTabs. RULED 2026-11-12: a test-only PR by the site-access lane (approveOrigin and revokeOrigin write both keys in one set; open() decides visibility by the same polling wait so a misread fails with its own message), recorded in the ci skill as a new harness race and not under #1163, reviewer janitor-3; a second PR after it moves src/ to chrome.scripting.updateContentScripts so there is no unregister gap, reviewer janitor-2, with the presence rows run on it; not urgent. The shard's hard failure was review-look.spec.mjs:705, the "will-change, contain and an offset path" variant failing both tries (260640 pixels outside) with the -webkit-box-reflect variant flaky: new variants of the host-styling table the ci skill tracks at :730; flaky-ci finds its owner from git log and the coordinator routes it. OWNER 2026-11-12 (flaky-ci from git log; verified): the :730 entry is flaky-ci's own known-bad record (#1291, a2554085, 2026-10-28), a sighting and not an owner claim; both parameterized loops in tests/e2e/review-look.spec.mjs, including the two failing variants, came in #581 (60b61445, 2026-10-10, pin the shell's shadow hosts with inline `all: initial !important`), so the property (a page stylesheet's !important rule may not move, copy, refuse or hide our host) and its variants are the site-access lane's. ROUTED 2026-11-12 to that lane as a defect: whether the pin holds against the two variants on current main, and a PR either way (src/ with janitor-2 and the table re-checked on it, or test-only with janitor-3), after #1660 and before the updateContentScripts PR, since the hard-failing variant blocks every shard-3 PR. Flaky-ci records the 260640-pixel measurement against the :730 entry, not as a new row. FOUND 2026-11-12 (the site-access lane): a setup race, not a gap. The pin holds on main, the seven move and copy variants passing 35 of 35 locally over five repeats without retries. setup() clicked the overlay tab and waited a fixed 400 ms, so on a loaded runner the "before" capture could be taken while the panel was still closed or sliding in, and the open panel then read as pixels outside: a closed panel paints a 41 px strip (x 1239 to 1280) and is sliding 24 ms after the click; an open panel paints x 873 to 1280, 250584 pixels outside the closed strip, the size of CI's 260640, identical in both variants and both tries. #1667 OPEN at 921dffc9 (test-only, `@ci` `@security`, tests/e2e/review-look.spec.mjs alone; verified): setup() polls until the panel is laid out against the right edge and a bare capture paints it from its left edge; 154 passed locally (77 tests twice, no retries). The :730 hide and recolour table goes through the same setup, so the 2026-10-28 sighting is likely the same race, unmeasured; flaky-ci notes it on the entry after the merge and watches for a later sighting. Reviewer janitor-3, fifth after #1648, #1655, #1660 and #1664; the lane arms only on a comment naming 921dffc9. Then the updateContentScripts PR. The test-only PR is OPEN 2026-11-12 as #1660 at f5140b34 (`@ci` `@security`; tests/e2e/harness.mjs, tests/e2e/site-access.spec.mjs, .claude/skills/ci/SKILL.md; verified): one write in approveOrigin and revokeOrigin, open() failing fast with its own message, the skill entry as a harness race. The lane's measurement with an untracked probe: two writes left the registration missing in 3 of 40 launches, one write in 0 of 40; site-access.spec.mjs 63 passed locally. Reviewer janitor-3, third after #1648 and #1655; the lane arms on a comment naming f5140b34. MERGED 2026-11-12 as a793046c (verified; janitor-3's comment 6824581076 names f5140b34 with nothing outstanding and measures the mechanism itself: background.ts:218 runs one syncPresence per site-access storage event, each replacing three registrations, 3 present-to-absent transitions in 20/20 launches with two writes and 2 in 20/20 with one; it could not reproduce the ledger's 3-in-40 after awaitPageScriptRegistration returns, both syncs finishing inside the wait's 20 ms poll, stated without asking a change; spec 63/63). #1667 at 921dffc9 is next in janitor-3's order after #1664's re-review; the updateContentScripts src PR follows it, reviewer janitor-2. The updateContentScripts PR follows its merge. #1667 MERGED 2026-11-12 as aa4b70d5 (janitor-3 comment 6825104346 naming 921dffc9, nothing outstanding; verified). The updateContentScripts PR is #1693 at 1242e7b3 (`@security`; src/sw/sw-presence.ts, tests/helpers.js, tests/redteam-presence-race.test.mjs: syncPresence updates its registrations in place, so a page loading during a resync keeps window.ml), reviewer janitor-2, which now holds three (#1642's coming head, #1676, #1693); the overflow move to janitor-3 is suspended by its hold. The lane's account, measured in Chromium: main loses window.ml at document_start on 41/60 loads when the reload is issued in the same tick as a site-access write and 0/60 at 5 ms and 20 ms; the branch 0/60 at all three. The lane's clone window-ml-approve-race is removed (verified absent). The lane arms only on a comment naming 1242e7b3. REVIEWED 2026-11-12 (janitor-2 comment 6825935417 on 1242e7b3; verified): two one-line changes, so no arm: the presence mock merges the old registration instead of replacing it, so no row can catch a dropped excludeMatches; and three places still describe unregister-and-register (SITE_PRESENCE.md:72-74, tests/e2e/harness.mjs:247, SHELL.md:279). The lane pushes one commit; head change to janitor-2; the lane arms only on a comment naming the new head. #1693 PUSHED 2026-11-12 as 426c4a8b (verified: one commit over 1242e7b3 touching tests/helpers.js, tests/presence-ask.test.mjs, SITE_PRESENCE.md, tests/e2e/harness.mjs and SHELL.md); both changes in one commit; the lane's account: presence-ask, redteam-presence-race and redteam-presence 86/86. gh reports the head DIRTY against main, so the lane rebases and the head moves once more; head change sent to janitor-2 with that caveat. The lane's page-health change is on branch fix/page-health off f36b53cc, code in, e2e queued. #1693 HEAD 2026-11-12 aac35d6a (verified BLOCKED on checks and review, clean against main): main merged in, no force-push; the one conflict was SHELL.md:279, resolved by taking main's line and re-applying the "No longer reachable since #1693" sentence; review content unchanged from 426c4a8b by the lane's account. Head change sent to janitor-2; the lane arms only on a comment naming aac35d6a. REBASED 2026-11-12 onto 61d90783: head 3190e8ad (three commits, fifteen files, MERGEABLE, 288/288 shell suites by the lane; verified), SHELL.md resolved as ruled; janitor-2 names 3190e8ad, async arms and sends bench the merge SHA. STATUS 2026-11-09 (later): the window-ml half is #1586 at e1cc54de (`@exec` `@security`: a detached ml.sh task's tail shows the running call's latest output); janitor-2 reviewed 38b3a1f2 once and re-reviews e1cc54de for three text changes; async arms only on a comment naming the head. Janitor-2's queue is #1586, #1595, #1553 and #1588's final head; the next fresh code review goes to janitor-3 by the overflow rule. #1586 MERGED 2026-11-11 as bf56f311 after janitor-2's re-review of e1cc54de (comment 6791912723; verified). Its red-team pass is e3's #1613 at ffb3ba3a (`@security` `@agent`, test-only: tests/redteam-peek-tail.test.mjs plus the genre line, three rows: the stored whole is scrubbed and unreadable from another session, the `lines` clamp is measured at the ask over nineteen shapes, another run's task id sends no peek; verified one commit, two files). Reviewer janitor-3 by category; it lands after #1586 as a new-surface pass. CLEARED 2026-11-12: janitor-3 reviewed ffb3ba3a (comment 6816055590; one body-count correction, the rows hold, each red on its named mutation; verified). #1613 MERGED 2026-11-12 as feba4b88 (verified). TRAP (the bench lane, 2026-11-07, measured): a stored WORKSPACE manifest for a script that calls other programs must declare `runs-code`; with `effects: ["read"]` alone, `envelopeFor` sends `{write: "none", exec: "program-only"}` and @@ -682,7 +682,7 @@ follow from it, both the host's and both defaults a policy may change: default kills the group; the alternative a policy can choose parks it on an ORPHAN list the status and the resource panel show, with a timeout after which it is killed anyway. A process outliving its owner silently is impossible by construction, up to the three residuals below, and "whose is this" is a read of the table, never of `ps`. - (2026-10-20, [window-ml-host #18](https://github.com/parawanderer/window-ml-host/pull/18).) The group alone did not + (2026-10-20, [window-ml-host #18](https://github.com/wanderdev0/window-ml-host/pull/18).) The group alone did not hold that: a child that called `setsid` left the group, and once its parent exited it was reparented out of every descendant walk, so a call whose leader exited by itself (`sh -c 'setsid x &'`) left `x` running, and so did an orphan whose leader had died. The kill set is now the group plus every member recorded earlier that is still the same diff --git a/docs/spec/export.schema.json b/docs/spec/export.schema.json index d75d5fdf4..0f8e7606f 100644 --- a/docs/spec/export.schema.json +++ b/docs/spec/export.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/parawanderer/window-ml/main/docs/spec/export.schema.json", + "$id": "https://raw.githubusercontent.com/wanderdev0/window-ml/main/docs/spec/export.schema.json", "title": "window.ml run export", "description": "A window.ml session export, schema version 1. GENERATED from export-schema.ts by scripts/gen-export-schema.mjs — do not edit by hand. The TypeScript file is normative; this is its language-neutral twin, for writing a parser or generating models in another language.", "x-schemaVersion": 1, diff --git a/docs/spec/library-manifest.schema.json b/docs/spec/library-manifest.schema.json index c0b62c2cf..08a8210a2 100644 --- a/docs/spec/library-manifest.schema.json +++ b/docs/spec/library-manifest.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/parawanderer/window-ml/main/docs/spec/library-manifest.schema.json", + "$id": "https://raw.githubusercontent.com/wanderdev0/window-ml/main/docs/spec/library-manifest.schema.json", "title": "window.ml library manifest (read-only Python dialect)", "description": "A library manifest of the read-only Python dialect (notebooks/python-dialect/data/manifest-*.json, imported by src/python/dialect-data.ts, read by the fork's `restricted.load_manifests`): the functions and methods a library may be called by, each with its effect, what its return value aliases, and its cost (docs/spec/READONLY_LIBRARY_MANIFEST.md). HAND-MAINTAINED, unlike program-manifest.schema.json: there is no TypeScript type or validator for this format in this repository (its reader is the CPython fork), so this is the narrowest shape the four shipped files and their consumer justify. The files are written by notebooks/python-dialect (leafpass.py) and the fork is the authority on what it accepts. Two layouts: a LIBRARY file (numpy, pandas, PIL) names one `module` and the `functions` it exposes; the STDLIB file names several `modules`.", "type": "object", diff --git a/docs/spec/program-manifest.schema.json b/docs/spec/program-manifest.schema.json index 895ea22d7..d8fe7900f 100644 --- a/docs/spec/program-manifest.schema.json +++ b/docs/spec/program-manifest.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/parawanderer/window-ml/main/docs/spec/program-manifest.schema.json", + "$id": "https://raw.githubusercontent.com/wanderdev0/window-ml/main/docs/spec/program-manifest.schema.json", "title": "window.ml program manifest", "description": "A program manifest (docs/spec/PROGRAM_MANIFEST.md): how window.ml describes a call to one program, per subcommand and flag. GENERATED from shell/program-manifest.ts by scripts/gen-export-schema.mjs — do not edit by hand. The TypeScript file is normative for the fields and the validator in it is the authority for what is accepted; this schema is the editor's view of both (hints, and the rules JSON Schema can state).", "type": "object", diff --git a/docs/spec/run-log.schema.json b/docs/spec/run-log.schema.json index ac01d49bd..82cb4d1d6 100644 --- a/docs/spec/run-log.schema.json +++ b/docs/spec/run-log.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/parawanderer/window-ml/main/docs/spec/run-log.schema.json", + "$id": "https://raw.githubusercontent.com/wanderdev0/window-ml/main/docs/spec/run-log.schema.json", "title": "window.ml execution log export", "description": "One run's mechanics as a FILE, which is what the panel's download writes. A bare array was the obvious thing and is the wrong one: it carries no version, nothing saying which run it is of, and nothing saying when it was taken — all three of which a file read six months later needs and a panel does not. Normative shape, published as `docs/spec/run-log.schema.json` (generated from here; see scripts/gen-export-schema.mjs).", "x-schemaVersion": 1, diff --git a/docs/spec/tool-protocol.schema.json b/docs/spec/tool-protocol.schema.json index 816980a2e..41951ea4c 100644 --- a/docs/spec/tool-protocol.schema.json +++ b/docs/spec/tool-protocol.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/parawanderer/window-ml/main/docs/spec/tool-protocol.schema.json", + "$id": "https://raw.githubusercontent.com/wanderdev0/window-ml/main/docs/spec/tool-protocol.schema.json", "title": "window.ml tool execution frame", "description": "One frame of a streaming tool execution, schema version 1. GENERATED from tool-protocol.ts by scripts/gen-export-schema.mjs — do not edit by hand. The TypeScript file is normative; this is its language-neutral twin, for writing a parser or generating models in another language.", "x-schemaVersion": 1, diff --git a/docs/spec/tool-timing.schema.json b/docs/spec/tool-timing.schema.json index f48723f50..5de970449 100644 --- a/docs/spec/tool-timing.schema.json +++ b/docs/spec/tool-timing.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/parawanderer/window-ml/main/docs/spec/tool-timing.schema.json", + "$id": "https://raw.githubusercontent.com/wanderdev0/window-ml/main/docs/spec/tool-timing.schema.json", "title": "window.ml tool timing (MCP _meta extension)", "description": "How long a remote executor spent, reported by the executor itself. The reason this has to exist: a client measures a remote call with its own wall clock, which contains the network and whatever the far end was doing before it started. That total is not attributable — nine seconds could be a slow tool or a busy box, and no amount of client-side measurement separates them. Settled ground for model calls, which is why the shape mirrors them: Ollama reports `eval_duration` beside our wall clock, and `prompt_eval_duration` had to be added later because without it \"wall minus generation\" silently charged the box for the model reading its own prompt. ABSENT MEANS UNKNOWN, never instant. A server that cannot measure a field omits it; a zero asserts a measurement. A conforming MCP client ignores an unrecognised `_meta` key, so a server that never implements this degrades to a span whose composition is unknown — reported as unknown.", "x-schemaVersion": 1, diff --git a/examples/searxng_search.py b/examples/searxng_search.py index dc707df21..d69620a2b 100644 --- a/examples/searxng_search.py +++ b/examples/searxng_search.py @@ -2,7 +2,7 @@ title: SearXNG Web Search author: window.ml -git_url: https://github.com/parawanderer/window-ml +git_url: https://github.com/wanderdev0/window-ml description: Query a self-hosted SearXNG instance and return the top web results. Unlike OpenWebUI's built-in "Web Search" (which only runs in the UI's agent loop), this is a workspace Tool, so it executes over the external /api/chat/completions API too — i.e. it works from window.ml / other API clients (open-webui issue #12045). diff --git a/openwebui/searxng_web_search.py b/openwebui/searxng_web_search.py index 537cb2d7e..2d832dd63 100644 --- a/openwebui/searxng_web_search.py +++ b/openwebui/searxng_web_search.py @@ -2,7 +2,7 @@ title: SearXNG Web Search author: window.ml -git_url: https://github.com/parawanderer/window-ml +git_url: https://github.com/wanderdev0/window-ml description: Query a self-hosted SearXNG instance and return the top web results. Unlike OpenWebUI's built-in "Web Search" (which only runs in the UI's agent loop), this is a workspace Tool, so it executes over the external /api/chat/completions API too — i.e. it works from window.ml / other API clients (open-webui issue #12045). Pairs with the "Web Page Fetch & Summarize" tool for drilling into a specific result. diff --git a/openwebui/web_page_fetch.py b/openwebui/web_page_fetch.py index 65d77354f..fc3d3a8aa 100644 --- a/openwebui/web_page_fetch.py +++ b/openwebui/web_page_fetch.py @@ -2,7 +2,7 @@ title: Web Page Fetch & Summarize author: window.ml -git_url: https://github.com/parawanderer/window-ml +git_url: https://github.com/wanderdev0/window-ml description: Fetch a single web page, strip it to readable text, and (by default) compress it against a focused question using a cheap local model before it ever reaches the calling model's context. The deep-dive half of the search/fetch pair — use it on URLs returned by the SearXNG Web Search tool. diff --git a/openwebui/youtube_video_info.py b/openwebui/youtube_video_info.py index 8ce263407..66c400c75 100644 --- a/openwebui/youtube_video_info.py +++ b/openwebui/youtube_video_info.py @@ -2,7 +2,7 @@ title: YouTube Video Info & Transcript author: window.ml -git_url: https://github.com/parawanderer/window-ml +git_url: https://github.com/wanderdev0/window-ml description: Given a YouTube URL, a bare video ID, or a "channel + title" search phrase, return the video's title, description, channel (name + link), view/like counts, upload date, and the timestamped transcript — with the exact segment highlighted when the URL carries a &t= timestamp. Metadata + search come from yt-dlp (no API key); the transcript comes from youtube-transcript-api; title/channel degrade gracefully to YouTube oEmbed if yt-dlp is unavailable. Built for pasting a video (or a screenshot of one) into a chat and discussing its contents. diff --git a/scripts/fetch-host.mjs b/scripts/fetch-host.mjs index 1b0ddeaa7..ed414e26d 100644 --- a/scripts/fetch-host.mjs +++ b/scripts/fetch-host.mjs @@ -17,7 +17,7 @@ import { promisify } from "node:util"; const run = promisify(execFile); const PIN = new URL("../tools/host-dist.json", import.meta.url); -const REPO = "parawanderer/window-ml-host"; +const REPO = "wanderdev0/window-ml-host"; /** Every target a release publishes. A new one is a code change here, in the pin's shape and in the release.yml. */ const TARGETS = ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin"]; diff --git a/scripts/fetch-hub.mjs b/scripts/fetch-hub.mjs index f39fcd876..87d9a7c91 100644 --- a/scripts/fetch-hub.mjs +++ b/scripts/fetch-hub.mjs @@ -29,7 +29,7 @@ async function pinnedTag() { if (!m) throw new Error("no HUB_TAG in tests/fixtures/hub-harness.mjs: it moved, and this reads it by name"); return m[1]; } -const REPO = "parawanderer/window-ml-hub"; +const REPO = "wanderdev0/window-ml-hub"; /** The release archive for THIS machine. A platform with no published build says so rather than downloading a 404. */ function target() { diff --git a/scripts/gen-export-schema.mjs b/scripts/gen-export-schema.mjs index 9ddd724ef..4d31ef986 100644 --- a/scripts/gen-export-schema.mjs +++ b/scripts/gen-export-schema.mjs @@ -559,7 +559,7 @@ export function buildSchema(key = "export") { const file = spec.source.replace(/^src\//, ""); const doc = { $schema: "https://json-schema.org/draft/2020-12/schema", - $id: `https://raw.githubusercontent.com/parawanderer/window-ml/main/${spec.out}`, + $id: `https://raw.githubusercontent.com/wanderdev0/window-ml/main/${spec.out}`, title: spec.title, description: spec.closed ? `${spec.blurb}. GENERATED from ${file} by scripts/gen-export-schema.mjs — do not edit by hand. The TypeScript file is normative for the fields and the validator in it is the authority for what is accepted; this schema is the editor's view of both (hints, and the rules JSON Schema can state).` diff --git a/scripts/vitals.mjs b/scripts/vitals.mjs index b880f1ad0..1942bc690 100644 --- a/scripts/vitals.mjs +++ b/scripts/vitals.mjs @@ -38,26 +38,26 @@ const BIG_FILE = 800; /** The repositories measured from a local checkout. `dir` may be missing; the git half is then skipped. */ export const REPOS = [ - { name: "window-ml", dir: ROOT, ref: "origin/main", gh: "parawanderer/window-ml" }, + { name: "window-ml", dir: ROOT, ref: "origin/main", gh: "wanderdev0/window-ml" }, { name: "window-ml-hub", dir: process.env.VITALS_HUB_DIR || join(ROOT, "..", "window-ml-hub"), ref: "origin/main", - gh: "parawanderer/window-ml-hub", + gh: "wanderdev0/window-ml-hub", }, { name: "window-ml-host", dir: process.env.VITALS_HOST_DIR || join(ROOT, "..", "window-ml-host"), ref: "origin/main", - gh: "parawanderer/window-ml-host", + gh: "wanderdev0/window-ml-host", }, ]; /** The forks, measured through GitHub's compare API against the upstream branch each one diverged from. */ export const FORKS = [ - { name: "ollama", repo: "parawanderer/ollama", branch: "slop", upstream: "ollama:main" }, - { name: "llama.cpp", repo: "parawanderer/llama.cpp", branch: "slop", upstream: "ggml-org:master" }, - { name: "open-webui", repo: "parawanderer/open-webui", branch: "ml/tool-execute-api", upstream: "open-webui:main" }, + { name: "ollama", repo: "wanderdev0/ollama", branch: "slop", upstream: "ollama:main" }, + { name: "llama.cpp", repo: "wanderdev0/llama.cpp", branch: "slop", upstream: "ggml-org:master" }, + { name: "open-webui", repo: "wanderdev0/open-webui", branch: "ml/tool-execute-api", upstream: "open-webui:main" }, ]; export const LOCKFILES = new Set(["package-lock.json", "Cargo.lock", "yarn.lock", "pnpm-lock.yaml", "uv.lock", "poetry.lock"]); diff --git a/src/contract/contract-config.ts b/src/contract/contract-config.ts index d4c5e9f02..6c7eb53c5 100644 --- a/src/contract/contract-config.ts +++ b/src/contract/contract-config.ts @@ -554,7 +554,7 @@ export function publicConfig(config: MlConfig, pageApprovalAllowed: boolean): Ml * `MlConfig.agentStartPage` overrides it, and a client naming its own URL overrides them both — this is only the * answer when nobody gave one. The page is published from `dist-app/` by CI and is linked from nowhere. */ -export const AGENT_START_PAGE = "https://parawanderer.github.io/window-ml/agent-start.html"; +export const AGENT_START_PAGE = "https://wanderdev0.github.io/window-ml/agent-start.html"; /** What `ml.requestAccess` resolves to. A refusal names why; nothing is ever thrown. */ export type AccessAnswer = diff --git a/src/proto/chat.proto.pin.json b/src/proto/chat.proto.pin.json index c04c03066..6009c36d2 100644 --- a/src/proto/chat.proto.pin.json +++ b/src/proto/chat.proto.pin.json @@ -1,6 +1,6 @@ { "_": "WHERE THIS SCHEMA COMES FROM, as a checkable fact rather than a note. The definition is not ours: it lives BESIDE THE ENCODER in the ollama fork, which is what makes it the definition rather than a copy of one \u2014 the same file is also published in the mlbox notes repo, and pinning to that one would have been pinning to a copy. This vendored copy exists because a fresh checkout must be able to generate without the network, and `blob` is what stops it drifting: a git blob id is content-addressed, so `git hash-object src/proto/chat.proto` proves the copy is byte-for-byte the file at that commit offline. `npm run gen-proto -- --check` does that, asks GitHub whether the commit still carries that blob, and says so when upstream has moved on. Do not edit chat.proto: replace it wholesale, update `commit` and `blob`, and re-run the generator.", - "repo": "parawanderer/ollama", + "repo": "wanderdev0/ollama", "path": "middleware/chat.proto", "commit": "aae1107e4d6f5eb1a06a14efbbe51b87ff2cb67a", "blob": "f4446fec4526ac2eab07bc11d462f5faccd1fa6a", diff --git a/src/proto/events.proto.pin.json b/src/proto/events.proto.pin.json index 0e9b1716f..c3d356a04 100644 --- a/src/proto/events.proto.pin.json +++ b/src/proto/events.proto.pin.json @@ -1,6 +1,6 @@ { "_": "WHERE THIS SCHEMA COMES FROM. It describes the NDJSON `/api/events` serves and lives BESIDE THE ENCODER in the ollama fork (`api/events.proto`), where `api/events_proto_test.go` fails whenever the proto and the Go encoder disagree on a JSON path. This copy is pinned by blob id so `git hash-object src/proto/events.proto` proves it is byte-for-byte the file at that commit, offline. `npm run gen-proto -- --check` also asks GitHub whether upstream has moved on. Do not edit events.proto: replace it wholesale, update `commit` and `blob`, and re-run the generator.", - "repo": "parawanderer/ollama", + "repo": "wanderdev0/ollama", "path": "api/events.proto", "commit": "2e95b297a095f8c15ace146d87338fa4be5c9f76", "blob": "b6aff9b2cc93d76a6eeb93bf3c003e8e9965dc2e", diff --git a/src/proto/wmlhub/v1/hub.proto.pin.json b/src/proto/wmlhub/v1/hub.proto.pin.json index c4c99315a..c18ba8357 100644 --- a/src/proto/wmlhub/v1/hub.proto.pin.json +++ b/src/proto/wmlhub/v1/hub.proto.pin.json @@ -1,5 +1,5 @@ { - "repo": "parawanderer/window-ml-hub", + "repo": "wanderdev0/window-ml-hub", "branch": "v0.4.3", "path": "proto/wmlhub/v1/hub.proto", "commit": "5151a1b874538596507979ed124684e3e21b163c", diff --git a/src/proto/wmlhub/v1/identity.proto.pin.json b/src/proto/wmlhub/v1/identity.proto.pin.json index 153acc1bc..08da7535d 100644 --- a/src/proto/wmlhub/v1/identity.proto.pin.json +++ b/src/proto/wmlhub/v1/identity.proto.pin.json @@ -1,5 +1,5 @@ { - "repo": "parawanderer/window-ml-hub", + "repo": "wanderdev0/window-ml-hub", "branch": "v0.4.0", "path": "proto/wmlhub/v1/identity.proto", "commit": "ae396978913a979e0dc42176ee6ac3c16a53de6b", diff --git a/src/proto/wmlhub/v1/seal.proto.pin.json b/src/proto/wmlhub/v1/seal.proto.pin.json index 62059dca8..f4644a503 100644 --- a/src/proto/wmlhub/v1/seal.proto.pin.json +++ b/src/proto/wmlhub/v1/seal.proto.pin.json @@ -1,5 +1,5 @@ { - "repo": "parawanderer/window-ml-hub", + "repo": "wanderdev0/window-ml-hub", "branch": "v0.4.0", "path": "proto/wmlhub/v1/seal.proto", "commit": "ae396978913a979e0dc42176ee6ac3c16a53de6b", diff --git a/src/resource/residency.ts b/src/resource/residency.ts index f8f4b558b..17043de83 100644 --- a/src/resource/residency.ts +++ b/src/resource/residency.ts @@ -44,7 +44,7 @@ export function residencyOf(m: LoadedModel): ModelResidency { // re-reported as `loading` with zeros while a DIFFERENT model loaded, then back to its full figure 2ms // later — with the server's own top-level `vram_used` unchanged at 94,171,928,982 through every frame. // -// FIXED SERVER-SIDE since (parawanderer/ollama `slop`, deployed as ollama-slop:latest). The cause was +// FIXED SERVER-SIDE since (wanderdev0/ollama `slop`, deployed as ollama-slop:latest). The cause was // narrower and worse than it looked: `state: "loading"` meant "I could not take this runner's lock just // now", and ordinary traffic holds that lock — a request finishing, an expiry being reset, another model // being admitted. `vram_used` disagreed because device discovery never consulted it. A `loading` row now diff --git a/src/shell/host-install.ts b/src/shell/host-install.ts index ed4e5b9d8..03077991b 100644 --- a/src/shell/host-install.ts +++ b/src/shell/host-install.ts @@ -42,7 +42,7 @@ export function hostInstall(platform: HostPlatform, extensionId: string, pin: Ho const sum = platform.os === "mac" && (arm || x64) ? "shasum -a 256 -c -" : platform.os === "linux" && (arm || x64) ? "sha256sum -c -" : null; if (!sum) return { ok: false, why: `There is no window-ml-host build for ${platform.os} ${platform.arch} yet (macOS on Apple silicon or Intel, Linux x86-64 and arm64).` }; if (!pin.installer || !/^v\d+\.\d+\.\d+$/.test(pin.tag) || pin.installer.file !== "install.sh" || !/^[0-9a-f]{64}$/.test(pin.installer.sha256)) return { ok: false, why: "The pinned window-ml-host release has no installer; build it from source (docs/dev/shell.md)." }; - const url = `https://github.com/parawanderer/window-ml-host/releases/download/${pin.tag}/${pin.installer.file}`; + const url = `https://github.com/wanderdev0/window-ml-host/releases/download/${pin.tag}/${pin.installer.file}`; const line = `f=$(mktemp) && curl -fsSL ${url} -o "$f" && echo "${pin.installer.sha256} $f" | ${sum} && sh "$f" --extension-id ${extensionId}${platform.browser === "brave" ? " --browser brave" : ""}`; return { ok: true, line, tag: pin.tag, undo: "wmlhost uninstall (the installer prints the exact command), then delete ~/.local/bin/wmlhost" }; } diff --git a/src/sidebar/settings/host-install-guide.tsx b/src/sidebar/settings/host-install-guide.tsx index 674bd3686..4719e3a5c 100644 --- a/src/sidebar/settings/host-install-guide.tsx +++ b/src/sidebar/settings/host-install-guide.tsx @@ -7,8 +7,8 @@ import { CopyableCode } from "../code-block"; /** * The installer guide for one platform, or the reason there is no line for it. - * @gallery an update, the host is behind {"install":{"ok":true,"tag":"v0.10.0","line":"f=$(mktemp) && curl -fsSL https://github.com/parawanderer/window-ml-host/releases/download/v0.10.0/install.sh -o \"$f\" && echo \"0000000000000000000000000000000000000000000000000000000000000000 $f\" | shasum -a 256 -c - && sh \"$f\" --extension-id abcdefghijklmnopabcdefghijklmnop","undo":"wmlhost uninstall"},"update":{"installed":"0.9.0","pinned":"0.10.0"}} - * @gallery {"install":{"ok":true,"tag":"v0.10.0","line":"f=$(mktemp) && curl -fsSL https://github.com/parawanderer/window-ml-host/releases/download/v0.10.0/install.sh -o \"$f\" && echo \"0000000000000000000000000000000000000000000000000000000000000000 $f\" | shasum -a 256 -c - && sh \"$f\" --extension-id abcdefghijklmnopabcdefghijklmnop","undo":"wmlhost uninstall"},"answered":false} + * @gallery an update, the host is behind {"install":{"ok":true,"tag":"v0.10.0","line":"f=$(mktemp) && curl -fsSL https://github.com/wanderdev0/window-ml-host/releases/download/v0.10.0/install.sh -o \"$f\" && echo \"0000000000000000000000000000000000000000000000000000000000000000 $f\" | shasum -a 256 -c - && sh \"$f\" --extension-id abcdefghijklmnopabcdefghijklmnop","undo":"wmlhost uninstall"},"update":{"installed":"0.9.0","pinned":"0.10.0"}} + * @gallery {"install":{"ok":true,"tag":"v0.10.0","line":"f=$(mktemp) && curl -fsSL https://github.com/wanderdev0/window-ml-host/releases/download/v0.10.0/install.sh -o \"$f\" && echo \"0000000000000000000000000000000000000000000000000000000000000000 $f\" | shasum -a 256 -c - && sh \"$f\" --extension-id abcdefghijklmnopabcdefghijklmnop","undo":"wmlhost uninstall"},"answered":false} * @group settings * @param install the line for this machine, or why none * @param answered the last "Check again" found no host (false), or nothing was asked yet (absent) diff --git a/src/sw/sw-tools.ts b/src/sw/sw-tools.ts index 3b7d66973..6a9e09668 100644 --- a/src/sw/sw-tools.ts +++ b/src/sw/sw-tools.ts @@ -6,7 +6,7 @@ // tool-protocol.ts owns those, shared with every other source — so this module is the transport and // nothing else. // -// Contract: docs/spec/REMOTE_TOOL_EXECUTION.md. Endpoint: parawanderer/open-webui, ml/tool-execute-api. +// Contract: docs/spec/REMOTE_TOOL_EXECUTION.md. Endpoint: wanderdev0/open-webui, ml/tool-execute-api. import { getConfig, authHeaders } from "./sw-llm"; import { clipClear, secretsOf } from "../secret-scrub"; import { createToolStream, type ToolFrame, type ToolStreamEnd } from "../tool-protocol"; diff --git a/tests/agent-host.test.mjs b/tests/agent-host.test.mjs index 55c577b41..53ea904a9 100644 --- a/tests/agent-host.test.mjs +++ b/tests/agent-host.test.mjs @@ -6,6 +6,8 @@ import { test } from "node:test"; import { setPythonDialectForTest } from "../src/agent/python-dialect.ts"; import assert from "node:assert"; import { runBackgroundAgent } from "../src/agent/agent-host.ts"; +import helpers from "./helpers.js"; +const { ownRepo } = helpers; // No real membership predicate exists yet, so stand one in: a cell that starts with `return` is INSIDE the dialect, anything else outside. setPythonDialectForTest((code) => code.startsWith("return")); @@ -230,7 +232,7 @@ test("fetch_url of the page the tab is ON is free in every mode, as-you included test("a fetch_url an ask policy matched asks, past every free tier: the page you are on, same origin, an approved URL, a self-source read", async () => { const here = "https://site.example/inbox?id=3", same = "https://site.example/other", seen = "https://seen.example/a", cred = "https://site.example/c"; - const own = "https://raw.githubusercontent.com/parawanderer/window-ml/main/src/util.ts"; + const own = `https://raw.githubusercontent.com/${ownRepo()}/main/src/util.ts`; const urls = [here, same, seen, cred, own]; const deps = baseDeps({ callModel: scriptedModel([ @@ -248,7 +250,7 @@ test("a fetch_url an ask policy matched asks, past every free tier: the page you test("the control: the same calls with no ask run without asking, which is what the ask overrode", async () => { const here = "https://site.example/inbox?id=3", same = "https://site.example/other", seen = "https://seen.example/a"; - const own = "https://raw.githubusercontent.com/parawanderer/window-ml/main/src/util.ts"; + const own = `https://raw.githubusercontent.com/${ownRepo()}/main/src/util.ts`; const deps = baseDeps({ callModel: scriptedModel([...[here, same, seen, own].map((url, i) => call("fetch_url", { url }, `c${i}`)), answer("done")]), fetchIsCurrentPage: (url) => url === here, diff --git a/tests/agent.test.js b/tests/agent.test.js index 64350cda1..a06775c95 100644 --- a/tests/agent.test.js +++ b/tests/agent.test.js @@ -6,7 +6,7 @@ // about. const { test } = require("node:test"); const assert = require("node:assert"); -const { loadDomWorld, loadPageWorld } = require("./helpers"); +const { loadDomWorld, loadPageWorld, ownRepo } = require("./helpers"); const { AnswerSet } = require("../src/pointers/answer-set.ts"); const { PAGE_CONTEXT_HEAD } = require("../src/agent/output-clip.ts"); @@ -1278,10 +1278,10 @@ test("answer(selector) ≡ ml.queryAll(selector): the designated nodes are EXACT }); test("autoApproveSelfSource: an uncredentialed read of the OWN repo source auto-approves; an issue / OFF gates", async () => { - // The repo is BUILD_INFO.repoUrl (parawanderer/window-ml). A raw committed file auto-approves when the flag + // The repo is BUILD_INFO.repoUrl (`ownRepo()`). A raw committed file auto-approves when the flag // is on; a user-prose endpoint (an issue) always gates; and the flag OFF gates even the source read. - const SELF = "https://raw.githubusercontent.com/parawanderer/window-ml/main/injected.ts"; - const ISSUE = "https://api.github.com/repos/parawanderer/window-ml/issues/1"; + const SELF = `https://raw.githubusercontent.com/${ownRepo()}/main/injected.ts`; + const ISSUE = `https://api.github.com/repos/${ownRepo()}/issues/1`; const gateCount = async (url, selfSource) => { const model = scriptedModel([toolCall("fetch_url", { url }, "c1"), reply("done")]); let gates = 0; diff --git a/tests/background-sessions.test.js b/tests/background-sessions.test.js index 1d28e823c..c0d1f108b 100644 --- a/tests/background-sessions.test.js +++ b/tests/background-sessions.test.js @@ -127,7 +127,7 @@ test("an unknown command is answered unsupported", T, async () => { // browser with limited site access reports false, and then also the origins it does hold. const caps = port.messages[0].runtime.capabilities; assert.deepEqual(caps.blankStart, { - url: "https://parawanderer.github.io/window-ml/agent-start.html", granted: true, browser: caps.blankStart.browser, + url: "https://wanderdev0.github.io/window-ml/agent-start.html", granted: true, browser: caps.blankStart.browser, }); // `detached`: `agent.start` takes a target with no tab at all (TABLESS_RUN.md), which needs nothing of the harness. // `detachedResume`: `session.resume` takes one too, for a saved run whose tab closed. @@ -1250,3 +1250,44 @@ test("BACKUP restore waits for the site-access migration before it writes, and s assert.ok(worker.ops.includes("backupFileRemove")); } }); + +// --- the published start page after the owner rename: what an older install's storage still says --- + +const START_NOW = "https://wanderdev0.github.io/window-ml/agent-start.html"; +const START_OLD = "https://parawanderer.github.io/window-ml/agent-start.html"; // a 404 since the account was renamed + +test("upgrade: the start-page setting as every older build wrote it (empty) opens the new page, and asks for the new origin", T, async () => { + // The old code never wrote the published URL anywhere: its default for `agentStartPage` was "" and the URL lived + // only in the bundle. So this is the whole of what an upgraded install holds, and it must land on the page that serves. + const bg = loadBackground({ config, deniedOrigins: ["https://wanderdev0.github.io/*"] }); + // Stored through the settings path (the harness answers only the promise form of storage.sync.get). + bg.setSync({ agentStartPage: "" }); + const port = bg.connect("ml-sessions", PAGE); + await flush(); + port.send({ type: "cmd", id: 1, command: { type: "agent.start", runtime: "local", task: "look around", target: { kind: "blank" } } }); + await flush(20); + assert.equal(bg.tabsCreated[0]?.url, START_NOW, "a blank run opens the page that is published now"); + // The granted-origin check reads the same constant: withholding the NEW origin is what reports it ungranted. + const caps = port.messages.filter((m) => m.runtime).at(-1)?.runtime.capabilities; + assert.deepEqual([caps.blankStart.url, caps.blankStart.granted], [START_NOW, false]); +}); + +test("the old github.io origin is an ordinary stranger: nothing consults it, so withholding it changes nothing", T, async () => { + const bg = loadBackground({ config, deniedOrigins: ["https://parawanderer.github.io/*"] }); + const port = bg.connect("ml-sessions", PAGE); + await flush(); + const caps = port.messages.filter((m) => m.runtime).at(-1)?.runtime.capabilities; + assert.deepEqual([caps.blankStart.url, caps.blankStart.granted], [START_NOW, true]); +}); + +test("a start page the person TYPED is theirs, the old published URL included: kept as written, its own origin checked", T, async () => { + // The one way the old URL reaches storage is by hand in Settings. It is not rewritten: a setting is the person's, + // and the blank-start warning (granted false here) is what tells them it no longer opens. + const bg = loadBackground({ config, deniedOrigins: ["https://parawanderer.github.io/*"] }); + bg.setSync({ agentStartPage: START_OLD }); + await flush(); + const port = bg.connect("ml-sessions", PAGE); + await flush(); + const caps = port.messages.filter((m) => m.runtime).at(-1)?.runtime.capabilities; + assert.deepEqual([caps.blankStart.url, caps.blankStart.granted], [START_OLD, false]); +}); diff --git a/tests/background.test.js b/tests/background.test.js index e9ce1baee..3557da162 100644 --- a/tests/background.test.js +++ b/tests/background.test.js @@ -1,7 +1,7 @@ const { test } = require("node:test"); const assert = require("node:assert"); const vm = require("node:vm"); -const { jsonResponse, htmlResponse, streamResponse, binaryStreamResponse, loadBackground } = require("./helpers"); +const { jsonResponse, htmlResponse, streamResponse, binaryStreamResponse, loadBackground, ownRepo } = require("./helpers"); const IMG = "data:image/png;base64,AAA"; @@ -3072,9 +3072,9 @@ test("SECURITY (FETCH_URL): an as-you GET of the sender's OWN origin needs no gr test("SECURITY (FETCH_URL): self-source is enforced BACKGROUND-side — own-repo SOURCE is free from an untrusted page; an issue / non-self / rendered / flag-off still gate", async () => { // The bug this pins: the client autoApprove skipped the PROMPT, but the background still refused (no per-URL // grant). The background is the authority — it must allow an uncredentialed self-source read itself. repoUrl - // is BUILD_INFO's (parawanderer/window-ml). The untrusted sender is a hostile cross-origin page. - const REPO = "https://raw.githubusercontent.com/parawanderer/window-ml/main/README.md"; - const ISSUE = "https://api.github.com/repos/parawanderer/window-ml/issues/1"; // user prose → NOT self-source + // is BUILD_INFO's (`ownRepo()`). The untrusted sender is a hostile cross-origin page. + const REPO = `https://raw.githubusercontent.com/${ownRepo()}/main/README.md`; + const ISSUE = `https://api.github.com/repos/${ownRepo()}/issues/1`; // user prose → NOT self-source const OTHER = "https://public.example/data.json"; const untrusted = { tab: { id: 9, url: "https://evil.example/" } }; diff --git a/tests/build-info.test.mjs b/tests/build-info.test.mjs index f0843c038..f6d1c1983 100644 --- a/tests/build-info.test.mjs +++ b/tests/build-info.test.mjs @@ -7,9 +7,13 @@ import { readFileSync } from "node:fs"; import { normalizeRepoUrl, writeBuildInfo, dirtyPathsFromStatus } from "../scripts/gen-build-info.mjs"; test("normalizeRepoUrl: scp-style, ssh, and https remotes all become a clean public HTTPS URL", () => { + assert.equal(normalizeRepoUrl("git@github.com:wanderdev0/window-ml.git"), "https://github.com/wanderdev0/window-ml"); + assert.equal(normalizeRepoUrl("ssh://git@github.com/wanderdev0/window-ml.git"), "https://github.com/wanderdev0/window-ml"); + assert.equal(normalizeRepoUrl("https://github.com/wanderdev0/window-ml.git"), "https://github.com/wanderdev0/window-ml"); + assert.equal(normalizeRepoUrl("https://github.com/wanderdev0/window-ml"), "https://github.com/wanderdev0/window-ml"); + // The owner is carried through as the remote names it, never rewritten: a clone whose origin still names the old + // owner stamps the old owner, and self-source then trusts that repo (the PR's "own repo" note). assert.equal(normalizeRepoUrl("git@github.com:parawanderer/window-ml.git"), "https://github.com/parawanderer/window-ml"); - assert.equal(normalizeRepoUrl("ssh://git@github.com/parawanderer/window-ml.git"), "https://github.com/parawanderer/window-ml"); - assert.equal(normalizeRepoUrl("https://github.com/parawanderer/window-ml.git"), "https://github.com/parawanderer/window-ml"); assert.equal(normalizeRepoUrl("https://github.com/parawanderer/window-ml"), "https://github.com/parawanderer/window-ml"); assert.equal(normalizeRepoUrl(""), ""); assert.equal(normalizeRepoUrl(undefined), ""); diff --git a/tests/export-schema.test.mjs b/tests/export-schema.test.mjs index 98b0106bd..993f3fd48 100644 --- a/tests/export-schema.test.mjs +++ b/tests/export-schema.test.mjs @@ -121,10 +121,10 @@ test("$schema pins the COMMIT, so a document says exactly what described it", () // Not `main`: main drifts away from what this file actually is, and a URL that describes a later // format is worse than no URL. raw.githubusercontent, not the github.com blob page, so it is // fetchable JSON. - const url = schemaUrl({ repoUrl: "https://github.com/parawanderer/window-ml", commit: "a".repeat(40) }); - assert.equal(url, `https://raw.githubusercontent.com/parawanderer/window-ml/${"a".repeat(40)}/docs/spec/export.schema.json`); + const url = schemaUrl({ repoUrl: "https://github.com/wanderdev0/window-ml", commit: "a".repeat(40) }); + assert.equal(url, `https://raw.githubusercontent.com/wanderdev0/window-ml/${"a".repeat(40)}/docs/spec/export.schema.json`); - const doc = sessionToJson(agentSession(), { build: { repoUrl: "https://github.com/parawanderer/window-ml", commit: "b".repeat(40) } }); + const doc = sessionToJson(agentSession(), { build: { repoUrl: "https://github.com/wanderdev0/window-ml", commit: "b".repeat(40) } }); assert.ok(doc.$schema.includes("b".repeat(40))); assert.equal(Object.keys(doc)[0], "$schema", "it goes first — an editor looks at the head of the file"); }); diff --git a/tests/fetch-host-pin.test.mjs b/tests/fetch-host-pin.test.mjs index e9c3b472b..1bfc4a63f 100644 --- a/tests/fetch-host-pin.test.mjs +++ b/tests/fetch-host-pin.test.mjs @@ -173,7 +173,7 @@ test("the four published targets map from their Node keys, and an unknown platfo assert.equal(target(), target(`${process.platform}-${process.arch}`), "the default is this machine's key"); assert.throws( () => target("win32-x64"), - { message: "no published host build for win32-x64. Build it yourself and set E2E_WMLHOST, or add the target to parawanderer/window-ml-host's release.yml." }, + { message: "no published host build for win32-x64. Build it yourself and set E2E_WMLHOST, or add the target to wanderdev0/window-ml-host's release.yml." }, ); }); @@ -243,7 +243,7 @@ function freshPin(over = {}) { for (const t of ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin"]) { assets[t] = { file: `wmlhost-v0.7.0-${t}.tar.gz`, sha256: "ab".repeat(32) }; } - return { repo: "parawanderer/window-ml-host", tag: "v0.7.0", commit: PEELED, tagObjectSha: TAGOBJ, assets, ...over }; + return { repo: "wanderdev0/window-ml-host", tag: "v0.7.0", commit: PEELED, tagObjectSha: TAGOBJ, assets, ...over }; } /** The pin on disk in the ruled shape (no tagObjectSha). */ diff --git a/tests/fetch-hub-asset.test.mjs b/tests/fetch-hub-asset.test.mjs index a2950e59f..217d46934 100644 --- a/tests/fetch-hub-asset.test.mjs +++ b/tests/fetch-hub-asset.test.mjs @@ -175,8 +175,8 @@ test("the download route's own bytes and shasum line are used when it answers fi assert.equal(Buffer.from(got.archive).toString("utf8"), "first try\n"); assert.equal(asked.filter((u) => u.includes("/releases/download/") && !u.endsWith(".sha256")).length, 1, "only one pair, no retry needed"); // The name is the asset's own: the URL is exactly `/`, never a second `.tar.gz`. - assert.equal(asked[0], "https://github.com/parawanderer/window-ml-hub/releases/download/v0.4.3/wmlhub-x86_64-unknown-linux-gnu.tar.gz"); - assert.equal(asked[1], "https://github.com/parawanderer/window-ml-hub/releases/download/v0.4.3/wmlhub-x86_64-unknown-linux-gnu.tar.gz.sha256"); + assert.equal(asked[0], "https://github.com/wanderdev0/window-ml-hub/releases/download/v0.4.3/wmlhub-x86_64-unknown-linux-gnu.tar.gz"); + assert.equal(asked[1], "https://github.com/wanderdev0/window-ml-hub/releases/download/v0.4.3/wmlhub-x86_64-unknown-linux-gnu.tar.gz.sha256"); assert.deepEqual(sleeps, [], "first try: nothing waited"); } finally { globalThis.fetch = real; diff --git a/tests/fixtures/fake-github.mjs b/tests/fixtures/fake-github.mjs index 0687d2ab0..137ba93e7 100644 --- a/tests/fixtures/fake-github.mjs +++ b/tests/fixtures/fake-github.mjs @@ -6,7 +6,7 @@ // // node tests/fixtures/fake-github.mjs [--port 8787] [--behind 5] # main is 5 commits past the APK's build // -// and build the app against it: WML_UPDATE_REPO=parawanderer/window-ml WML_UPDATE_API=http://10.0.2.2:8787 \ +// and build the app against it: WML_UPDATE_REPO=wanderdev0/window-ml WML_UPDATE_API=http://10.0.2.2:8787 \ // node scripts/android.mjs install import { createServer } from "node:http"; @@ -27,7 +27,7 @@ export const shaOf = (name) => createHash("sha1").update(String(name)).digest("h * `calls` lists every path asked for, in order. */ export async function startFakeGitHub(o = {}) { - const repo = o.repo ?? "parawanderer/window-ml"; + const repo = o.repo ?? "wanderdev0/window-ml"; const tag = o.tag ?? "android-latest"; const state = { history: o.history ?? [], diff --git a/tests/fixtures/hub/seal-v1.json.pin.json b/tests/fixtures/hub/seal-v1.json.pin.json index 63f947c8b..2d7523109 100644 --- a/tests/fixtures/hub/seal-v1.json.pin.json +++ b/tests/fixtures/hub/seal-v1.json.pin.json @@ -1,5 +1,5 @@ { - "repo": "parawanderer/window-ml-hub", + "repo": "wanderdev0/window-ml-hub", "branch": "v0.4.0", "path": "vectors/seal-v1.json", "commit": "ae396978913a979e0dc42176ee6ac3c16a53de6b", diff --git a/tests/fixtures/tool-call-deltas/README.md b/tests/fixtures/tool-call-deltas/README.md index 9cb92abf4..bfa32cee4 100644 --- a/tests/fixtures/tool-call-deltas/README.md +++ b/tests/fixtures/tool-call-deltas/README.md @@ -1,6 +1,6 @@ # Tool-call fragments: raw streams from the patched Ollama -Raw streams of a tool call being written, captured on mlbox on 2026-10-21 from `parawanderer/ollama` branch +Raw streams of a tool call being written, captured on mlbox on 2026-10-21 from `wanderdev0/ollama` branch `slop-stream-tool-args` (67882976 plumbing, 6374360c the qwen3-coder parser), deployed as `ollama-slop:streamargs`. Each file is the response body exactly as the server sent it. `tests/background-stream-calls.test.js` replays them through the worker. Settings for all four: `think: false` (`reasoning_effort: "none"` on `/v1`), `temperature: 0`, diff --git a/tests/helpers.js b/tests/helpers.js index 3a297501b..9effd471e 100644 --- a/tests/helpers.js +++ b/tests/helpers.js @@ -1165,4 +1165,15 @@ async function loadSidebarWorld({ sync = {}, local = {}, models = [], ollamaMode return { window: win, shadow: win.document, dispatch, raw, tick, flush, changeListeners, syncStore, localStore, unloadCalls, pyCalls, printCalls, openChatCalls, hkCalls, setHousekeeping, setVram }; } -module.exports = { FakeMessageChannel, FakeMessagePort, FakeMessageEvent, jsonResponse, htmlResponse, streamResponse, binaryStreamResponse, loadBackground, loadPageWorld, loadDomWorld, loadSidebarWorld, closeSidebarWorlds, loadDotEnv }; +/** + * The repo this build calls its own, as `owner/repo`: `repoUrl` as gen-build-info.mjs stamped it from the building + * clone's origin remote. Self-source tests build their URLs from it, so they hold under whichever remote a clone has; + * how a remote becomes `repoUrl` is pinned with literal fixtures in build-info.test.mjs. + */ +function ownRepo() { + const m = /"repoUrl":\s*"https:\/\/github\.com\/([^"/]+\/[^"/]+)"/.exec(fs.readFileSync(path.join(__dirname, "../src/build-info.gen.ts"), "utf8")); + if (!m) throw new Error("no GitHub repoUrl in src/build-info.gen.ts: build first, from a clone whose origin is on GitHub"); + return m[1]; +} + +module.exports = { ownRepo, FakeMessageChannel, FakeMessagePort, FakeMessageEvent, jsonResponse, htmlResponse, streamResponse, binaryStreamResponse, loadBackground, loadPageWorld, loadDomWorld, loadSidebarWorld, closeSidebarWorlds, loadDotEnv }; diff --git a/tests/host-install.test.mjs b/tests/host-install.test.mjs index f18e19f9e..64044e72f 100644 --- a/tests/host-install.test.mjs +++ b/tests/host-install.test.mjs @@ -13,7 +13,7 @@ const PIN = { tag: "v0.10.0", installer: { file: "install.sh", sha256: "ab".repe test("macOS and Linux get the pinned installer, its hash checked before it runs, and the id", () => { const mac = hostInstall({ os: "mac", arch: "arm64" }, ID, PIN); assert.ok(mac.ok); - assert.equal(mac.line, `f=$(mktemp) && curl -fsSL https://github.com/parawanderer/window-ml-host/releases/download/v0.10.0/install.sh -o "$f" && echo "${"ab".repeat(32)} $f" | shasum -a 256 -c - && sh "$f" --extension-id ${ID}`); + assert.equal(mac.line, `f=$(mktemp) && curl -fsSL https://github.com/wanderdev0/window-ml-host/releases/download/v0.10.0/install.sh -o "$f" && echo "${"ab".repeat(32)} $f" | shasum -a 256 -c - && sh "$f" --extension-id ${ID}`); assert.equal(hostInstall({ os: "mac", arch: "x86-64" }, ID, PIN).line, mac.line, "Intel Macs: the same line"); const linux = hostInstall({ os: "linux", arch: "x86-64" }, ID, PIN); assert.match(linux.line, /\| sha256sum -c - && sh/); diff --git a/tests/redteam-host-install.test.mjs b/tests/redteam-host-install.test.mjs index 815803c52..a857fdf02 100644 --- a/tests/redteam-host-install.test.mjs +++ b/tests/redteam-host-install.test.mjs @@ -151,7 +151,7 @@ test("RED TEAM: the install line is the pinned release plus chrome.runtime.id, n const mac = hostInstall({ os: "mac", arch: "arm64" }, ID, pin); assert.equal(mac.ok, true, "control: the committed pin builds a line for an Apple-silicon Mac"); assert.equal(mac.line, - `f=$(mktemp) && curl -fsSL https://github.com/parawanderer/window-ml-host/releases/download/${pin.tag}/${pin.installer.file} -o "$f" && echo "${pin.installer.sha256} $f" | shasum -a 256 -c - && sh "$f" --extension-id ${ID}`, + `f=$(mktemp) && curl -fsSL https://github.com/wanderdev0/window-ml-host/releases/download/${pin.tag}/${pin.installer.file} -o "$f" && echo "${pin.installer.sha256} $f" | shasum -a 256 -c - && sh "$f" --extension-id ${ID}`, "the line is not exactly the pinned tag, the pinned hash and this install's id"); assert.equal(mac.line.split(ID).length - 1, 1, "the id is written into the line more than once"); // Everything a shell would otherwise read as code, and every id shape that is not an extension id. diff --git a/tests/redteam-page-run-builtby.test.mjs b/tests/redteam-page-run-builtby.test.mjs index e84177acb..a64ab8e71 100644 --- a/tests/redteam-page-run-builtby.test.mjs +++ b/tests/redteam-page-run-builtby.test.mjs @@ -12,7 +12,7 @@ import assert from "node:assert/strict"; import { createRequire } from "node:module"; const require = createRequire(import.meta.url); -const { jsonResponse, loadBackground } = require("./helpers"); +const { jsonResponse, loadBackground, ownRepo } = require("./helpers"); const T = { timeout: 10000 }; const config = { chatUrl: "http://host/api/chat/completions", apiKey: "sk-test", model: "default-model", apiFormat: "openai", ocrModel: "", debugMode: "off" }; @@ -219,7 +219,7 @@ test("approvalRouting from a page: \"both\" and an unknown value still show and const PY = { name: "python_exec", description: "py", parameters: { type: "object", properties: { code: { type: "string" } } }, requiresApproval: true, capabilities: [] }; const EXEC = { name: "exec", description: "js", parameters: { type: "object", properties: { js: { type: "string" } } }, requiresApproval: true, capabilities: [] }; -const SELF_SRC = "https://raw.githubusercontent.com/parawanderer/window-ml/main/README.md"; +const SELF_SRC = `https://raw.githubusercontent.com/${ownRepo()}/main/README.md`; /** Each flag, the call it would let through without the person, and the config that turns it off. */ const FLAGS = [ { flag: "autoApprovePython", call: { name: "python_exec", args: { code: "print(1)" } }, off: { autoApprovePython: false } }, diff --git a/tests/redteam-policy-ask-free-tiers.test.mjs b/tests/redteam-policy-ask-free-tiers.test.mjs index d6c82d84d..8347a5038 100644 --- a/tests/redteam-policy-ask-free-tiers.test.mjs +++ b/tests/redteam-policy-ask-free-tiers.test.mjs @@ -11,13 +11,13 @@ import assert from "node:assert/strict"; import { createRequire } from "node:module"; const require = createRequire(import.meta.url); -const { jsonResponse, loadBackground, loadPageWorld } = require("./helpers"); +const { jsonResponse, loadBackground, loadPageWorld, ownRepo } = require("./helpers"); const T = { timeout: 30000 }; const EXT_PAGE = { url: "chrome-extension://test/sidebar.html" }; const HERE = "https://site.example/inbox?id=3"; const SAME = "https://site.example/other"; -const SELF = "https://raw.githubusercontent.com/parawanderer/window-ml/main/src/util.ts"; +const SELF = `https://raw.githubusercontent.com/${ownRepo()}/main/src/util.ts`; const config = { chatUrl: "http://host/api/chat/completions", apiKey: "sk-test", model: "default-model", apiFormat: "openai", ocrModel: "", debugMode: "off", autoApproveReadonly: true, autoApproveSelfSource: true }; const plain = (x) => JSON.parse(JSON.stringify(x ?? null)); const flush = async (n = 8) => { for (let i = 0; i < n; i++) await new Promise((r) => setTimeout(r, 0)); }; diff --git a/tests/redteam-python-regex-backtrack.test.mjs b/tests/redteam-python-regex-backtrack.test.mjs index ae004fa48..aa5022667 100644 --- a/tests/redteam-python-regex-backtrack.test.mjs +++ b/tests/redteam-python-regex-backtrack.test.mjs @@ -1,7 +1,7 @@ // redteam-python-regex-backtrack.test.mjs — three exponential-backtracking escapes in the Python read-only dialect's // regex gate, reported by [window-ml canvas]. The fork's Lib/restricted.py `risky_regex` is a hand port of the JS // `riskyRegex` (src/readonly-exec/limits.ts) and reads pattern syntax the way JS spells it, so a spelling only Python's -// `re` understands is misread and the cell runs unasked under autoApprovePython. The fix (parawanderer/cpython#11, +// `re` understands is misread and the cell runs unasked under autoApprovePython. The fix (wanderdev0/cpython#11, // 1e35340b: a check on `re._parser`'s own parse tree) is in the shipped core as of pin ca282158, so the three LAG lines // this file carried are deleted and the defended assertions run. A future lag re-adds a line: while the core lags, the // test reports the escape as a todo and the suite stays green; when a rebuild closes it, the test FAILS with "delete @@ -38,7 +38,7 @@ let skip = hasPyodide ? false : "no dist/pyodide — run `npm run fetch-pyodide` // listed here fails too. The key is the fork commit that fixes it. // // Empty as of pin ca282158 (1e35340b shipped): the three escapes are closed and their defended assertions run. -const TREE = "1e35340b"; // parawanderer/cpython#11: the parse-tree check (three exponential escapes) +const TREE = "1e35340b"; // wanderdev0/cpython#11: the parse-tree check (three exponential escapes) const LAG = {}; // --- the harness: one cell through restricted.run_cell, as python-dialect-vectors-wasm.test.mjs runs a vector --- @@ -219,7 +219,7 @@ test("RED TEAM: re.compile charges nothing — compiling a priced pattern withou assert.ok(refused(searched), `the same pattern's search on the priced input is refused: ${JSON.stringify(searched)}`); }); -// `re.sub` and `re.subn` price their INPUT (arg 2 / `string=`), never their replacement (parawanderer/cpython commit +// `re.sub` and `re.subn` price their INPUT (arg 2 / `string=`), never their replacement (wanderdev0/cpython commit // db7b192065: `regex_check` read `args[1]` as the input for every re function, which for sub/subn is the replacement, // so `re.sub('a+b', 'x', 'a' * 300000)` was charged for 'x' and ran 20 s). window-ml's manifests admit only // re: [compile, findall, search], so this row lifts sub/subn behind the same `regex_check` the manifests use, as the diff --git a/tests/regex-corpus-core.test.mjs b/tests/regex-corpus-core.test.mjs index f34f28b69..6ffab2dcc 100644 --- a/tests/regex-corpus-core.test.mjs +++ b/tests/regex-corpus-core.test.mjs @@ -33,7 +33,7 @@ def wml_regex_verdict(pattern, flags): `); }, { timeout: 240_000 }); -// --- the shipped core against the corpus: no lag at pin ca282158 (parawanderer/cpython #10-#12 shipped) --- +// --- the shipped core against the corpus: no lag at pin ca282158 (wanderdev0/cpython #10-#12 shipped) --- // // A todo in LAG IS a pin lag: the fork has the fix, the core in dist/pyodide does not, so it is closed by REBUILDING the // core and moving tools/pyodide-dist.json's pin, never by a code change here. Each entry names the fork commit that diff --git a/tests/self-source.test.mjs b/tests/self-source.test.mjs index 47571c150..44ec579b1 100644 --- a/tests/self-source.test.mjs +++ b/tests/self-source.test.mjs @@ -5,61 +5,61 @@ import { test } from "node:test"; import assert from "node:assert"; import { isSelfSourceUrl, parseRepo } from "../src/agent/self-source.ts"; -const REPO = "https://github.com/parawanderer/window-ml"; +const REPO = "https://github.com/wanderdev0/window-ml"; const ok = (url, repo = REPO) => assert.equal(isSelfSourceUrl(url, repo), true, `should AUTO-APPROVE: ${url}`); const no = (url, repo = REPO) => assert.equal(isSelfSourceUrl(url, repo), false, `should GATE: ${url}`); test("parseRepo: owner/repo from the common repo-url shapes; null otherwise", () => { - assert.deepEqual(parseRepo("https://github.com/parawanderer/window-ml"), { owner: "parawanderer", repo: "window-ml" }); - assert.deepEqual(parseRepo("https://github.com/parawanderer/window-ml.git"), { owner: "parawanderer", repo: "window-ml" }); + assert.deepEqual(parseRepo("https://github.com/wanderdev0/window-ml"), { owner: "wanderdev0", repo: "window-ml" }); + assert.deepEqual(parseRepo("https://github.com/wanderdev0/window-ml.git"), { owner: "wanderdev0", repo: "window-ml" }); assert.deepEqual(parseRepo("https://www.github.com/o/r/"), { owner: "o", repo: "r" }); assert.equal(parseRepo("https://gitlab.com/o/r"), null); assert.equal(parseRepo(""), null); }); test("ALLOW: raw file content + structural/code API endpoints of THIS repo", () => { - ok("https://raw.githubusercontent.com/parawanderer/window-ml/main/injected.ts"); - ok("https://raw.githubusercontent.com/parawanderer/window-ml/abc123/sidebar/app.tsx"); - ok("https://api.github.com/repos/parawanderer/window-ml/contents/injected.ts"); - ok("https://api.github.com/repos/parawanderer/window-ml/commits"); - ok("https://api.github.com/repos/parawanderer/window-ml/git/trees/main"); - ok("https://api.github.com/repos/parawanderer/window-ml/git/blobs/deadbeef"); - ok("https://api.github.com/repos/parawanderer/window-ml/tags"); - ok("https://api.github.com/repos/parawanderer/window-ml/branches/main"); + ok("https://raw.githubusercontent.com/wanderdev0/window-ml/main/injected.ts"); + ok("https://raw.githubusercontent.com/wanderdev0/window-ml/abc123/sidebar/app.tsx"); + ok("https://api.github.com/repos/wanderdev0/window-ml/contents/injected.ts"); + ok("https://api.github.com/repos/wanderdev0/window-ml/commits"); + ok("https://api.github.com/repos/wanderdev0/window-ml/git/trees/main"); + ok("https://api.github.com/repos/wanderdev0/window-ml/git/blobs/deadbeef"); + ok("https://api.github.com/repos/wanderdev0/window-ml/tags"); + ok("https://api.github.com/repos/wanderdev0/window-ml/branches/main"); // case-insensitive host + owner/repo - ok("https://RAW.GITHUBUSERCONTENT.COM/ParaWanderer/Window-ML/main/README.md"); + ok("https://RAW.GITHUBUSERCONTENT.COM/WanderDev0/Window-ML/main/README.md"); // a query naming a prose word is fine — the gate reads PATH segments, not the query (this is file content) - ok("https://api.github.com/repos/parawanderer/window-ml/contents/x?ref=issues"); + ok("https://api.github.com/repos/wanderdev0/window-ml/contents/x?ref=issues"); }); test("GATE: user-generated PROSE endpoints (the prompt-injection surface) never auto-approve", () => { - no("https://api.github.com/repos/parawanderer/window-ml/issues"); - no("https://api.github.com/repos/parawanderer/window-ml/issues/1"); - no("https://api.github.com/repos/parawanderer/window-ml/issues/comments"); - no("https://api.github.com/repos/parawanderer/window-ml/pulls/2"); - no("https://api.github.com/repos/parawanderer/window-ml/pulls/2/comments"); - no("https://api.github.com/repos/parawanderer/window-ml/pulls/2/reviews"); - no("https://api.github.com/repos/parawanderer/window-ml/comments/9"); - no("https://api.github.com/repos/parawanderer/window-ml/discussions/3"); - no("https://api.github.com/repos/parawanderer/window-ml/releases"); // release BODIES are free prose too + no("https://api.github.com/repos/wanderdev0/window-ml/issues"); + no("https://api.github.com/repos/wanderdev0/window-ml/issues/1"); + no("https://api.github.com/repos/wanderdev0/window-ml/issues/comments"); + no("https://api.github.com/repos/wanderdev0/window-ml/pulls/2"); + no("https://api.github.com/repos/wanderdev0/window-ml/pulls/2/comments"); + no("https://api.github.com/repos/wanderdev0/window-ml/pulls/2/reviews"); + no("https://api.github.com/repos/wanderdev0/window-ml/comments/9"); + no("https://api.github.com/repos/wanderdev0/window-ml/discussions/3"); + no("https://api.github.com/repos/wanderdev0/window-ml/releases"); // release BODIES are free prose too }); test("GATE: a DIFFERENT repo / owner / an unresolvable repo url", () => { no("https://raw.githubusercontent.com/attacker/window-ml/main/x.ts"); // wrong owner - no("https://raw.githubusercontent.com/parawanderer/other-repo/main/x.ts"); // wrong repo + no("https://raw.githubusercontent.com/wanderdev0/other-repo/main/x.ts"); // wrong repo no("https://api.github.com/repos/attacker/window-ml/contents/x"); - no("https://api.github.com/repos/parawanderer/window-ml-evil/contents/x"); // repo must match EXACTLY - no("https://raw.githubusercontent.com/parawanderer/window-ml/main/x.ts", ""); // no repo url → nothing self - no("https://api.github.com/repos/parawanderer/window-ml/contents/x", "https://gitlab.com/o/r"); + no("https://api.github.com/repos/wanderdev0/window-ml-evil/contents/x"); // repo must match EXACTLY + no("https://raw.githubusercontent.com/wanderdev0/window-ml/main/x.ts", ""); // no repo url → nothing self + no("https://api.github.com/repos/wanderdev0/window-ml/contents/x", "https://gitlab.com/o/r"); }); test("GATE: spoofed / non-github hosts, userinfo + traversal tricks, non-https", () => { - no("https://raw.githubusercontent.com.evil.com/parawanderer/window-ml/main/x.ts"); // suffix-spoofed host - no("https://evil.com/raw.githubusercontent.com/parawanderer/window-ml/main/x.ts"); // host is evil.com - no("https://api.github.com.evil.com/repos/parawanderer/window-ml/contents/x"); - no("https://api.github.com@evil.com/repos/parawanderer/window-ml/contents/x"); // userinfo → host is evil.com - no("http://raw.githubusercontent.com/parawanderer/window-ml/main/x.ts"); // not https - no("https://api.github.com/repos/parawanderer/window-ml/../../attacker/repo/issues"); // normalizes to attacker/repo/issues - no("https://gist.githubusercontent.com/parawanderer/deadbeef/raw/x.ts"); // gist host, not raw + no("https://raw.githubusercontent.com.evil.com/wanderdev0/window-ml/main/x.ts"); // suffix-spoofed host + no("https://evil.com/raw.githubusercontent.com/wanderdev0/window-ml/main/x.ts"); // host is evil.com + no("https://api.github.com.evil.com/repos/wanderdev0/window-ml/contents/x"); + no("https://api.github.com@evil.com/repos/wanderdev0/window-ml/contents/x"); // userinfo → host is evil.com + no("http://raw.githubusercontent.com/wanderdev0/window-ml/main/x.ts"); // not https + no("https://api.github.com/repos/wanderdev0/window-ml/../../attacker/repo/issues"); // normalizes to attacker/repo/issues + no("https://gist.githubusercontent.com/wanderdev0/deadbeef/raw/x.ts"); // gist host, not raw no("not a url"); }); diff --git a/tools/host-dist.json b/tools/host-dist.json index 1cde14041..2d185d36b 100644 --- a/tools/host-dist.json +++ b/tools/host-dist.json @@ -1,5 +1,5 @@ { - "repo": "parawanderer/window-ml-host", + "repo": "wanderdev0/window-ml-host", "tag": "v0.10.0", "commit": "7cdd2c3cca9163ba964bd86110f99fe560ad548a", "assets": { diff --git a/tools/pyodide-dist.json b/tools/pyodide-dist.json index 9c9527888..be371b1d2 100644 --- a/tools/pyodide-dist.json +++ b/tools/pyodide-dist.json @@ -5,7 +5,7 @@ "python": "3.14.2", "pythonArchiveSha256": "c609e078adab90e2c6bacb6afafacd5eaf60cd94cf670f1e159565725fcd448d", "cpython": { - "repo": "https://github.com/parawanderer/cpython", + "repo": "https://github.com/wanderdev0/cpython", "base": "v3.14.2", "branch": "ml/restricted-mode", "commit": "35bd1d69510546a78db769fd67079297042cef4a", @@ -19,10 +19,10 @@ "count": 27 }, "artefact": { - "host": "github release on the fork (parawanderer/cpython), Shane's decision 2026-10-19; the consumer pins tag and sha256 and verifies before unpacking", + "host": "github release on the fork (wanderdev0/cpython), Shane's decision 2026-10-19; the consumer pins tag and sha256 and verifies before unpacking", "tag": "pyodide-314.0.3-ml-35bd1d69", "name": "pyodide-restricted-314.0.3-35bd1d69", - "url": "https://github.com/parawanderer/cpython/releases/download/pyodide-314.0.3-ml-35bd1d69/pyodide-restricted-314.0.3-35bd1d69.tar.gz", + "url": "https://github.com/wanderdev0/cpython/releases/download/pyodide-314.0.3-ml-35bd1d69/pyodide-restricted-314.0.3-35bd1d69.tar.gz", "sha256": "93eda2433fa4f650ba395f9df09f6e5c8d4398446d3b295c1075599b52873751" } }