# 0040 - Findings: the working notes of plan 0040 Not the plan. The plan is `0040-release-pipeline.md` (flow, steps, owner decisions, done when). This file is the lead's log while executing it: each failure seen, its cause, the fix and its proof, newest at the end of each list. Nothing here changes what the plan requires. Each: what was seen (with the log), the cause, the fix, its proof. - 0002:run and 0013:c FAIL on prod (2026-11-14 gate): not root-caused. - 0016:badsha passed on a capacity give-up (3617 s) on 2026-11-14: the module accepts any Failed contract (step 6). - 0017:killedlate was skipped with `GATE_SKIP` ("bootstrap fix pending, rc167 follow-up") on 2026-11-14: not root-caused. - The guest's dumbpipe listener (`iroh.service`) exits 0 on its own (`Endpoint dropped without calling Endpoint::close`); the staging install retries around it; the cause is in the pinned upstream dumbpipe. - A bidder's release follower logs `releasefollow_failed ... context canceled` on its own unit's restart (fix staged: `releasefollow_restarting`, INFO). - Correction (2026-11-18): the deployed runner is knotless 4cb9bbb3 (the gateway's `knotless-fork:current`, 2 days old), not af321883: the review rounds and step 7's text read a stale local checkout of knotless-fork-infra. So `superseded: finish` already holds on main and v* tags only (a newer branch push cancels the older run), and the deploy delta of step 7 is the stop change alone (fork 62c08d7b; knotless-fork-infra pull with `--step-timeout 18000`). - A request's summary can say `"phase": "released"`, `"termination": "deleted_on_request"` with `"releaseOk": false` (`releaseStatus` 200): 15 of 246 saved request logs on hat-8 (`~/.tmp/swc-system-tests/runs/*/logs/*/release.log`), and the step 1 rehearsal (2026-11-17, `~/.tmp/rehearse.log`). Cause: the bidder's `vm.terminated` (`deleted_on_request`) lands before the release ack, and the release path's termination branch (`runner.go` `release`) marks the contract Released without `finishRelease`, so `Release.OK` stays false (the contract's ReleaseAcknowledged condition already counts the termination). The first fix (a2980900) patched `release`'s own termination branch and changed nothing: 96 of 96 summaries false on the phase-2 hand cycle. The path the releases take is `settleTerminated` (it logs `requester_release_settled_by_termination`); it now sets `Release.OK` when a release was sent (8ded7269). Proof: that build on the held network stg-131819, 0019 rerun by hand: both releases `"releaseOk": true` with `"termination": "deleted_on_request"`. - main 342d1bea `release` failed its checks (2026-11-17, `knotless checks ... --workflow release --log`): `TestRequesterDecisionSites/.../mutual-operator-vouches`: "the policy run ... did not finish" (81.87 s). Cause: CPU contention: `deploy/check.sh` runs the policy spec tests in the background beside go vet and the cross-OS builds, three packages each with parallel subtests, each run its own deno sandbox; one full-mode run passed the harness client's 60 s (`policytest.DefaultTimeout`); 342d1bea changed no Go (1 of the last 12 releases). Fix: the harness default 3 min (the hang tests set their own 2 s; the package's 15 min bounds a real hang). Proof so far: main 6b5d381a and 85c689be `release` checks green. - main de0b91ee `test` failed 0006:run and 0008:run (2026-11-17; artifacts `runs/staging-composition-1794946921772/ failure.json`, `knotless-ci run artifacts ... --workflow test --commit de0b91ee`): staging bidder b2 logged one startup ERROR 27 s after its start, `Reconciler error: the target HTTP handler is not registered`. Cause: the Exposure controller finds the target's handler, then `Publish` -> `startLocal` looks it up again; the handler gone in between (the component re-registering at start) came back as a plain error, logged at ERROR and retried. Fix: the sentinel `exposure.ErrHandlerMissing`; the controller answers it as it does its own first check (Pending, `HandlerMissing`, no error; the handler's registration re-triggers it). Proof so far: main 85c689be `test` green with 0006 and 0008 (one run; the race was intermittent: 1 of the 2 runs before the fix). - main 5f57d6e5 `release` ended `error`: no bidder had a 12-vCPU slot (hat-8 held two build VMs of earlier pushes, hat-7 suspended for step 4): five landings in 30 min. Landings are batched, one per step, when CI is idle. - The hat-10 entry of `tests/targets/prod.json` (step 4) landed inside 6b5d381a (the policytest timeout commit) by a `commit -a` with the edit uncommitted in the tree; its content is right (hat-10's kcp read over ssh first). - hat-7's new bob bidder logged 4 startup ERROR lines at its first start (2026-11-17 13:42:57 PST, its unit's journal): `Timeout: failed waiting for *v1alpha1.Plc Informer to sync` and the same for `PolicyEngine`. Cause: a fresh install's core starts without its network value (`run bidder` passed `core-network` only for profile `market-network`; `CoreConfig.record` never set it), the root apply then brings one (the public PLC default), `superviseCore` (`internal/devcore`) restarts the component controller manager 2.5 s in, and the cluster engagements in flight are cancelled: controller-runtime reports the cancelled wait as a Timeout. Later starts read the same value from the root and do not restart. Fix: `run bidder` passes the spec's network for every profile, and `CoreConfig.record` carries it. Proof (hat-8, a fresh state dir, `run bidder --profile dev-local --fg`, core.log): rc174: 1 "network value changed", 6 ERROR; the fix: 0 and 0 (`~/.tmp/probe-before`, `~/.tmp/probe-after2`). hat-7's running process still holds its 4 lines until its next restart (the next rc). - `install bidder --handle` without `--bidder-operator-signin` left hat-7's bidder unassociated (its DID claimed bob's handle); fixed by hand per `docs/bidder.md` "Association" (`identity agent-of add --drop-borrowed-handle`, `scripts/associate-bidder.ts`): `internal association` roots = bob. - main 6b5d381a `test`: 16 of 17 passed, 0020:run failed (2026-11-17, the run's log): "build A is the installed build's own bucket prefix: requester \"path:/home/stg/stg/...\" has none". Cause: step 2 took build A's prefix from the target's requester spec; inside the staging network the entry's target names the requester by `path:`. The first guess was not checked against the inner target. Fix: build A is the heartbeat's commit, tried at `main//` then `local//` (the first that downloads; neither: FAIL). Proof: main 85c689be `test` green, 0020 included (https://knotless.socialweb.computer/socialweb.computer/socialweb-computer-kcp/check/did:plc:lpfuqerea3deuoyrn7ojser4/65axqkyrfxktwzgcnmn7yddsnv.3n2culsabyx2j.7eq32bpgrmbxidcfbzlf4dtbop.85c689be3b0bf3caee077c659f34986bf1451789.test). - Step 5 (2026-11-17): `scripts/publish-chain.sh --land` (requester repo 45211c5, atlibs f39c7a7) published requester, cicd-workload, release-workload and the compositions cicd, release and vm-mcp, and wrote the pins records of john, alice AND socialweb.computer (verified): CI's bindings resolve the new requester from then on, before any CI run rehearsed it (the script's header names only john's and alice's record; its body was not read first). Step 20's one pin source is what the chain already does. Proof of the new requester in CI: main 85c689be `release` and `test` green. The chain left `socialweb-computer-vm-mcp.composition.json` on the old requester pin (compose.test failed): the chain now rebuilds and publishes it (not in pins.json). The requester repo's tests: 510, 0 fail (with the README's atlibs-agents sibling). - Owner question (step 6): 0004:run and 0013:run accept an agent that never posts ` online` (they prompt it after 60 s and pass on its answer; reading `online_after_agent_start_s: "not seen..."`), while runbook 0004 expects the line. Left as it is: neither loosened nor tightened without the owner. Answered 2026-11-18 (decision 24c): FAIL. See Findings: "0004 and 0013 FAIL without ` online`". - Step 7's runner half (2026-11-18): fork 62c08d7b (pull 3n2kbx7dcuegq: attach through `stop:`, `stop_timeout`, the stop job's env and secrets; unit tests 72 + 13) deployed as `knotless-fork:62c08d7b2681` with `--step-timeout 18000` (knotless-fork-infra plan, pulls 3n2kbzyx2uuc7 and its done note; the deploy checklist: args with `--queue`, a pull landed through the queue in 20 s, an asked `pins` rerun of kcp main ran green). `test.yml` `stop_timeout: 50` and `ci-test.sh stop` (SIGUSR1 freeze, 30 min hold, then SIGTERM) are on branch phase-2. Proof of the hold on a cancelled run: pending (an asked branch `test`, cancelled mid-run, then attached). - Hand cycle of phase-2 18d162fc (2026-11-18, staging network stg-131819, gate dir /home/stg/stg/gate on its atproto VM, `~/.tmp/ci-hand/staging-18d162fc.log`): three failures that are not missing layers, each open: - 0013:b `install requester --name mp -- --atproto-identity-mode pdsAccount ...` exits 1 ("the job ended failed"). Cause: `install requester` waits for the unit (it prints the sign-in hints first: the sign-in is done while it waits), the unit waits for its password, and the module gave the password after the install returned: it could never pass, and had never run (prod skipped it, staging did not list it). The requester also gave up after 5 min: a pdsAccount identity waiting for its password was not counted as a wait on a person (fixed, 62499ca7; with that alone the install blocked the entry's 30 min, `hand-0013b2.log`). Fix: the module gives the password while the install waits, retried until the requester's kcp takes it. Proof: 0013:b rerun by hand on stg-131819: pass (`hand-0013b4.log`). Also: a failed 0013:b and 0001:s2 leave their installs behind (`swc-requester`, `swc-st-qr`): a rerun on the same host then fails its dry run; open. - 0013:c `cluster c1: no kubeconfig in 10 min`. Cause: k3s runs as the account inside `internal ns-exec`, which binds the cluster's own rancher directory over `/etc/rancher`; `nsexec` `Inside` skipped a bind whose target is not a directory, silently, so on a host without `/etc/rancher` k3s looped on "mkdir /etc/rancher: permission denied" (its `k3s-server.log`, read live on the held network). Fix (a313e48d): a missing bind target is an error, `/etc/rancher` is in the requester gateway's host check with its remedy, the staging install creates it. Proof of this stage: `/etc/rancher` made by hand on stg-131819, 0013:c rerun: the kubeconfig came. Second stage, open: "no Ready quickstart-k8s pod in 15 min": "nodemarket: node claimed from the market" at once, then no market line (RFP, bid, contract) in the requester's log and no node (`hand-0013c2.log`, run 1794970441447). The same entry failed on prod 2026-11-14. Code study (read only, unproven): a bid was won (the log read was the wrong one: the NodeClaim, Infra and Requester controllers log in the network child's `apps//logs/core.log`; "the node can log in to the cluster OpenBao" needs the claim's grant, set after a winning bid). Likely cause on staging: with `--network` the node's download base is `http://192.0.2.1:` (`requestergateway.go` `nodeDownloadBase`, `gatewayapi/config.go`), the guest's own host: "the network's bidders share its host" (`options.json`), false on the multi-VM layout, so the node bootstrap's curl fails and restarts for ever. It does not explain prod. Confirm on a held network: the child's core.log (`node_claim_`, `infra_contract_requested`, `download_base`), the NodeClaim's `status.{phase,infra,grant}`, the contract's `spec.nodeJoin.*.downloadBase`, the guest console on the winner. - 0004:run "release took 206.1 s (fast release: ~15 s)". Cause: `run request`'s wait for the guest's DIDs to be tombstoned (`awaitGuestTombstones`, 3 min) read `r.root.Network`; an invocation placed in a market network has no network value in its root, so it asked plc.directory for staging DIDs (both were tombstoned on the network's PLC: read by hand) and waited its timeout out. Fix (7ee66d15): the wait takes the network's value from its status. Proof: pending. The rerun on the held network (hand-0004.log, run 1794967152554) did not reach it: the agent phase never ended ("not done in 45 min (phase agent)": no association; the first run associated in 135 s), and its release waited 3 min on "no guest.r2Released" (the guest requester never answered). That intermittent non-association is open, and 0004 also never sees `online` (the agent's atirc is irc.fedfork.com: layer c). Code study (read only, unproven): the stall is on the guest side, before the renter logs `requester_guest_requester_reported` (agentStart delivery, `socialweb-r2.service` bring-up, R2's DID report); the atirc mint comes after the association ref, so it cannot block it. Read on the next occurrence: the guest's `socialweb-guest-agent` and `socialweb-r2.service` journals, `systemctl list-jobs`, `/run/socialweb-r2/`, the renter's core.log (`requester_guest_requester_*`, `requester_association_*`), the bidder's journal. - 0015:run on the phase-2 hand cycle (2026-11-18): "the fill reached 32% used, not 95%". Cause: the entry's seconds went 300 -> 10 (owner, c3906466) without checking what they time: the guest script's clock started with the hog's allocation, so at 10 s it ended before the fill was whole (the entry is not in CI's 17, so nothing ran it since). Fix: the hog marks the fill whole, and the 10 s of fsync'd writes start then. Proof: the script's logic by hand on hat-8 (a 2 GiB fill: "filled after 3 s", then the hold); the entry itself: pending (the next hand cycle). - 0017:run on the phase-2 hand cycle: "the owner's subscription closed before it exited: No such file or directory". Cause: the test host runs the owner's interactive session through `socat` (`tests/host/src/swc.rs`), which the staging VM lacks (0017 never ran on staging). Fix: the staging install adds socat beside uidmap. Proof: socat installed by hand on the held network stg-131819, 0017:run rerun by hand: pass, 80 s. - The first full no-SKIP gate on staging (hand cycle of phase-2 18d162fc, 2026-11-18, wall 8004 s): 29 of 43 PASS. FAIL by cause: step 8's layers (0001:run, 0001:s2, 0002:run, 0009:run, 0011:run, 0011:token, 0015:pressure); socat missing (0017:run, killed, killedlate); the fill clock (0015:run); open (0013:b, 0013:c, 0004:run). 0020:run passed with the hand build: build A from `local//` (step 2's `local:` path proven). - Speed (owner, 2026-11-18): the staging network makes four driver accounts (alice1 to alice4; every staging account is alice or bob: `tests/compositions/staging/README.md`, Accounts), one gate slot each (`suite.sh` `GATE_ACCOUNTS`); a survey runs with `freezeTtl` 5; a held network is reused for further gate runs; `docs/ci-debug.md` "Do not waste time" holds the rules. Proof of the four slots and of the gate rerun on a held network: pending (the next stand-up). - Step 8c (the network's atirc; branch `phase-2-atirc`, built, NOT yet run on a network). Mechanism: `dev up --network-atirc-url ` sets `MarketNetworkSpec.atircUrl`, which the network writes into `status.network.atircUrl` (`internal/app/marketnetwork/marketnetwork.go`, beside `ingress`), so children, `--market-network-file` joiners and their guests' requesters read it (`requester.atircBase`, audience `did:web:%3A#atirc`). Staging: the staging module gives dev up `https://atirc.stg.test:8443` and runs `tests/compositions/staging/atirc.sh up` on the atproto VM before `trust.sh accounts`: `atirc serve --endpoint ` on loopback with `ATIRC_PLC_DIRECTORY_URL` = the network's PLC, and socat terminating TLS on the network's address with the run's leaf (`guest-tls/stg.test.crt`). Why not an ingress Exposure: a Service's target is an in-process component of the registry (`internal/exposure/service.go` `Target`, `Endpoints`), so atirc behind the front on 443 needs a new component kind (docs/design/market-network-atirc.md); the leaf covers `*.stg.test`, the DNS answers every name of the zone (`internal/services/plc/dns.go`), and a network bidder's guests may open any TCP port of the network's address. `target.sh` writes the target's `atirc` from the status. The test host passes the target's PLC as `ATIRC_PLC_DIRECTORY_URL` to every atirc CLI call. 0011:token's false passes are fixed: the revoke's result is checked, and the post after it passes only on atirc's revoked-token refusal (its text: the finding below). Open, seen in atirc's source (965fc35), not on a network: `atirc sub` and the mesh daemon dial `wss://` with tokio-tungstenite built with `rustls-tls-webpki-roots` only (`cli/Cargo.toml`, `cli/Cargo.lock`: no rustls-native-certs under it), so a subscribe to an https atirc under the run's root cannot verify the leaf: 0011:token's observer would never see `connected`. Decided (coordinator, 2026-11-17): https stays, no plain-http variant; atirc's wss clients trust the system roots too (atirc branch `native-roots`: tokio-tungstenite features `rustls-tls-native-roots` + `rustls-tls-webpki-roots`), pinned here by the atirc pin commit of this branch, whose tree pins `make pins` on hat-8 must rewrite before it lands. - Open (step 8c): the network atirc's did:web carries a port on a non-localhost host (`did:web:atirc.stg.test%3A8443`), consistent in atirc and the requester but not the atproto did:web form; portless needs atirc as a network component behind the front (docs/design/market-network-atirc.md). - Open (step 8c): an OAuth session requester's mint scope is fixed to `aud=did:web:irc.fedfork.com%23atirc` (`internal/atproto/oauth/scope.go` `RPCAtircMint`; only revoke has a per-audience form), so its mint on a network atirc is unproven and may be refused. - Finding (step 8c, hand cycle 3, stg-858064): `0011:token FAIL not done in 2 min (phase sub)` was the test host's own channel name, not the network's atirc. The host's observer ran `atirc sub -c "#"` (`tests/host/src/more.rs` `observer_sub`); atirc's name for a handle's channel keeps the dash (`default_channel`, atirc `cli/src/server/irc.rs`) and it reads a channel back as a handle with `_` as `.` (`channel_handle`, `cli/src/server/auth.rs`), so `#alice3_80647801_bob_test` was `alice3.80647801.bob.test`'s channel and the subscribe of `alice3-80647801.bob.test` was `403 Forbidden` (channel is bound to another handle): `atirc sub` ended in 164 ms (the run's tick 2: `closed obs`), its stderr went nowhere and the module waited out its deadline. Prod's handles have no dash, so both names were the same there. Seen by hand on the network: the mint is fine (aud and iss `did:web:atirc.stg.test%3A8443`), `pub` 200, `sub -c "#alice4_80647801_bob_test"`: `HTTP error: 403 Forbidden`; `sub` with no `-c` and `sub -c "#alice4-80647801_bob_test"`: `connected` over `wss://atirc.stg.test:8443` (socat passes the upgrade; the native-roots pin verifies the leaf) and the own line. The rule now: the observer passes no channel, atirc names it (as the owner mesh node since 94a66cfb), in the host and in testkit (`Observer`, `OwnerNode`; `channel_of` is gone); the observer's stream ending is `closed` with atirc's last stderr line and 0011:token fails on it at once. 0002's observer is the same host call. The next step then failed on the host's own text: `the post after the revoke failed, but not as a refusal: Error: error-atproto-client-xrpc-2 Not authorized: Unauthorized atirc token revoked`. 310a317a's `Unauthorized: atirc token revoked` is the `{error}: {message}` form of atirc's iroh transport (`check_error`, atirc `cli/src/transport.rs`); over an http(s) endpoint, the only kind a target names, the CLI prints atproto-client's `Not authorized: {error} {message}` for the server's 401 (`atirc token revoked`, `cli/src/server/auth.rs`), on prod as here, so the stricter check had never passed anywhere (main's module still counts any failed post as refused). `ATIRC_REVOKED` is now that text. SEEN on stg-858064 by hand as alice4 (test host and acc_0011.wasm of this fix, beside the gate's): 0011:token PASS in 2 s: `connected` on `#alice4-80647801_bob_test`, the own line, `closed`, pub ok, revoke ok (`token revoked` in serve.log), the post after it refused. - Step 8f decisions (lead, 2026-11-18, the owner may overrule): CI `release` builds the page from a pinned requester commit and publishes it for `test`; Chrome's shared libraries on the staging VM come by apt for now, as uidmap and socat do (against the pinned-assets rule: open); Chrome runs `--no-sandbox` on staging as `scripts/oauth-signin.ts` already does; the page's pins stay in `tests/compositions/staging/page-tools.json`; the page's CDN JS is kept. - Cycle 2 (hand cycle of phase-2 8d2a5453, staging net stg-417196, `freezeTtl` 5): in its gate 0004:run PASS 211 s (the tombstone wait fix, 7ee66d15, proven), 0005:b 118 s (373 s before), 0013:b PASS, 0006 and 0008 PASS on fresh bidders; 0005:run 848 s (592 s before: not looked at). - Step 8b built on branch phase-2-bidders (0d50bf56, worktree wt-8b), unmerged and unproven (built only): the bidder VMs run `install bidder --market-network-file --bidder-spec-file` (vouches as the spec option `vouch`); `bidder.restart` restarts the installed unit, `vm.memory` runs on the winner's host; a restart keeps the log window (0007's before/after counts). Decision (lead, the owner may overrule): the suite key is authorized for root on the throwaway bidder VMs (`via root@10.44.0.x`), the mechanism the atproto VM already uses for itself. Open: drop the foreground branches of `BIDDER_LOG`/`BIDDER_HEALTH`; the delegated user manager stg needs for 0013:c. - 0013:c in cycle 2's gate (stg-417196, the child's `apps/dev/stg-mk/logs/core.log`): the kubeconfig came (the /etc/rancher fix in the gate); the node's contract was requested 04:30:08, its bid came 04:35:11 (5 min: not looked at), the guest was on the network and "fetched its secrets" 04:35:30, and it never became a node before the entry's 15 min ended (released 04:47). So the market side works and the stall is the guest's join: consistent with the download base lead; the winner's guest console is the read that settles it. Open. - Steps 8d and 8e built on branch phase-2-gateway (cc2c2054, worktree wt-8d), unmerged and unproven (built only): `tests/compositions/staging/gateway.sh` runs the gateway (`serve gateway kcp`, its own kcp) and the ssh gateway (prod's shape) on the gateway VM; the target gets real `gateway.{url, aud, requesterDid, kcp, ssh, sshPort, sshWeb, log}`; `trust.sh` makes a `gateway` requester account and an `operator` that vouches the accounts; 0001's requesterDid false pass fixed. Departures and choices for the owner: (1) names are ports on the network's address (`gateway.stg.test:8444`, `ssh-web.stg.test:8445`, `ssh-gateway.stg.test:2222`, socat on the atproto VM to 10.44.0.4), not the per-name A records step 8d decided: a bidder's guests may reach only the network's /32, so a name on 10.44.0.4 would need the guest fence widened (a security control: the owner's call); (2) the gateway's requester is a pdsAccount on the network PDS (a localRepo one needs a `vouch` option on Gateway); (3) both specs carry `bidderDids`: to drop (requesters discover); (4) the gateway's association is `Skip`, as the staging bidders'; (5) the OAuth sign-ins need deno on stg's PATH and Chrome where `oauth-signin.ts` looks (a `--chrome` from the target, not a symlink). Its hand-proof commands are in the agent's report (branch's Findings). - Step 8d (the gateway on the gateway VM; branch `phase-2-gateway`, built, NOT yet run on a network). Mechanism: `tests/compositions/staging/gateway.sh up https://gateway.stg.test:8444 stg@10.44.0.4` runs on the atproto VM after the bidders joined (the staging module: the suite's key authorized on the gateway VM, then `atproto:gateway`, then `trust.sh vouch`) and starts `serve gateway kcp --host-backend proc --gateway-profile market-network --gateway-spec-file` there over ssh. The spec: `network` (net.json's value), `bidderDids` (bidders.json), `webAppFront` 10.44.0.4:8788, options `gateway-audience` did:web:gateway.stg.test and `public-origin` the URL, `identity` {pdsAccount, the account alice5 (`gateway` before the alice/bob names) of accounts.json, association Skip}. Why an account of the network's PDS: the bidders' `bidder-tangled-vouch` needs the gateway's requester vouched before its first RFP and the requester's own policy needs its vouches of the bidders in its repo; `trust.sh` does both for an account it made (`--bidder-vouch` at the bidders' start, putRecord with its password), and a Gateway has no `vouch` option for a localRepo requester. (Superseded, "The staging gateway comes up" below: the requester is localRepo and alice5 its operator, as prod; a localRepo requester needs no `vouch` option, its operator's vouches are its own; the audience is did:web:gateway.stg.test%3A8444.) Names and TLS, decided against the per-name A records for now: (1) a market-network bidder's guests may open TCP only to the network's own address (`AGENTS.md`, the guest fence: 10/8 is dropped), so a tenant node could not reach a name that resolves to 10.44.0.4; (2) the test host sends every named request to `xrpcFront`'s address whatever DNS says (`tests/testkit/src/atproto.rs` `FrontResolver`); an explicit URL port survives it (hyper-util 0.1.21 `client/legacy/connect/http.rs` `set_port`: an explicit port replaces the resolver's); (3) A records need a new field on the Plc component's DNS (`internal/services/plc/dns.go` answers `d.address` for every A), a dev up flag and the run's key on a second VM. So the URL is a name of the zone on a port of the network's address, socat on the atproto VM terminating TLS with the run's leaf (as atirc.sh), forwarding to the web app front on the overlay (caddy's place on prod, `scripts/deploy.sh`). Tenant kubeconfigs name the client certificate front (`https://127.0.0.1:16444`, the gateway's self-signed certificate: SANs localhost and 127.0.0.1 only, `internal/tlsfront`), forwarded from the atproto VM's loopback through the overlay, TLS untouched. The target's `gateway.kcp` is the admin kubeconfig via ssh `stg@10.44.0.4`. 0001's false pass is fixed: no `gateway.requesterDid` is `unmet` at the start. Open, for the held network: the Gateway Ready with a pdsAccount requester on a remote PDS; the network PDS's OAuth server fetching the client metadata of `https://gateway.stg.test:8444` (a private address, `oauth.Config.HTTPClient`); tenant nodes fetching `/downloads/...` by name from a bidder's guest; deno and Chrome for `page.signin`. - Step 8e (the ssh gateway on the gateway VM; branch `phase-2-gateway`, built, NOT yet run on a network). Mechanism: `gateway.sh ssh-up https://ssh-web.stg.test:8445 ssh-gateway.stg.test:2222 stg@10.44.0.4`, after `gateway.sh up`: a standalone `run gateway ssh --instance sg --state-dir /home/stg/stg/gw/sg --host-backend proc --ssh-gateway-spec-file` with `network`, `bidderDids`, the option `public-origin` (the web URL) and `ssh` {publicListen 10.44.0.4:2222, webListen 10.44.0.4:8789, operatorDid}; no owner sessions file, so the web sign-in and `/keys` are served (`AGENTS.md`, the SshGateway paragraph). The operator is the account bob1 (`operator` before the alice/bob names) that `trust.sh accounts` makes (not in the bidders' `--bidder-vouch`, not in the target) and `trust.sh vouch` has vouch alice1 to alice4. Forwards on the atproto VM: TLS with the run's leaf on 8445 to the web listener, plain TCP on 2222 to the sshd. The target gains `gateway.sshWeb` (`tests/testkit/src/target.rs` `Gateway::ssh_web`; absent: `https://ssh.`, prod), used by the host's `ssh.tempKey`, its http allow list, the module input (`gateway.sshWeb`), 0002's module and its Rust test; `gateway.sshPort` 2222; `gateway.log` {`stg@10.44.0.4`, `/home/stg/stg/gw/sg/dev/sg/logs/core.log`}. Open, for the held network: a standalone ssh gateway joined by a network value (the network's CA and names in its per-user requesters and their guests); the web sign-in against the network PDS (as 8d's); the per-user requester's atirc mint scope (step 8c's open finding). - did-key-associator vendored (owner, 2026-11-18): its 52 commits (github main 0a48e76) rewritten under `did-key-associator/` with git filter-repo and replayed on top of phase-2 (authors and dates kept); the tree equals the source's. A squash landing on main keeps the files, not the 52 commits: to keep them the landing must be a merge or a fast-forward (open, the owner's call). Its files hold non-ASCII characters (copied as they are). - The vendored did-key-associator needs its sibling: its deno.json imports `../typescript-helpers/lib/*` (seen: the vendored tests failed TS2307). typescript-helpers (github main 3fae6da, 56 commits) vendored the same way under `typescript-helpers/`; then `deno task test` in `did-key-associator/`: 28 passed. Proof the vendoring is right: the vendored build's `dka-app.js`, `styles.css` and `oauth-client-metadata.json` were byte-equal to what qr.fedfork.com served; then prod was deployed from the vendored tree (`infra/hosts/qr-fedfork-com.sh --apply`, 2026-11-18 05:07Z, log ~/.tmp/qr-deploy/apply.log, backup /root/qr-backup/20261118T050647Z): unit active, the host's backend sha256 05129afa... equals the local build's, `/` 200, the XRPC route 401, the served page is the built one. Not done: a real QR sign-in through it after the deploy. Its deno.lock drifts on every build (as the source repo's did, uncommitted there): committed as built. - 0013:c stage 2, the cause read in the code (unproven by a run): `run requester --network --with-gateway` with the default `--node-download-base` passes "" (`cmd/socialweb-computer/requestergateway.go:239-244`), and the nodes-only GatewayAPI then hands nodes its own Local Exposure (`internal/services/gatewayapi/config.go:206`), an address of the requester's host. On a one-host network the node's bidder is that host; on multi-VM staging the node boots on a bidder VM where that address is not the requester, so socialweb-meshd and socialweb-node are never fetched and the node never joins. The failed run kept only `logs/requester-mk/mk.log` (no node console), so the proof is a rerun: 0013:c by hand on a held network with `--node-download-base` naming a base every bidder's guests reach (the bucket's `downloads/`, or the network's address) must pass. The fix to design after that proof: a network requester's download base must be reachable from every bidder of the network, not only its own host. Prod 2026-11-14 used the bucket default, so this does not explain it. - Step 8g, built on branch `phase-2-qr`, not yet run on a staging network. Built: `dev up --network-qr-origin` -> `MarketNetworkSpec.qrOrigin` -> `status.network.qrOrigin` (schema revision 42); the core's oauthQr identities take the QR origin of their network value (before, only `SOCIALWEB_QR_ORIGIN` set it: `internal/stack/componentcore/controllers.go` `registerIdentity`, so a `--market-network-file` bidder showed qr.fedfork.com whatever the file said; `--qr-origin` in `internal/app/marketbidder/values.go` only reaches the bidder service's argv); `tests/compositions/staging/qr.sh` (`https://qr.stg.test:8446`, the vendored `did-key-associator/` built and run on the VM with the pinned deno 2.9.3: a build on the VM, against Flow's "test builds nothing"; `release` compiling it would put a 134 MB backend binary in the suite tarball); `did-key-associator/scripts/site-config.ts` (prod's build output unchanged byte for byte); 0001:s2 with `--market-network-file`, the link checked against the file's qrOrigin, the done text the page really shows (`Session transferred`; `You can close this window` is not on the page, so the entry's sign-in step could only fail); `oauth.signin` and `page.signin` with the target's `tools` (pinned deno and Chrome, the leaf keys, `DENO_CERT`). Seen on hat-8 without a network (a test CA, `qr.localhost`): `qr.sh up` builds and serves; kcp's `oauthclient.QRTransfer.PollOnce` registers a link there (audience `did:web:`, no port, = the backend's `SERVICE_DID`); the page's link check answers `waiting`; `scripts/oauth-signin.ts` under the pinned deno drives system Chrome through the page to its handle form with the leaf key (`--chrome-arg=`: the `=` form, std parseArgs takes a value starting with `--` as an option). Open, each stops 0001:s2 on staging and needs the owner (existing controls, nothing changed): (1) the network PDS's OAuth server fetches client metadata with indigo's `ssrf.PublicOnlyTransport` and the system roots (`internal/atproto/oauth/client.go` `DefaultHTTPClient`; `internal/services/pds/service.go` `oauthConfig` passes no client), so `https://qr.stg.test:8446/oauth-client-metadata.json` (10.44.0.1, the run CA) is refused at PAR: `invalid_client_metadata`; the gateway layer's two web origins hit the same; (2) the associator backend verifies a posted session only at an https port-443 PDS whose host resolves to no private address (`did-key-associator/hono-backend/identity.ts` `checkUrl`; only the PLC origin is exempt), and the network PDS is on 10.44.0.1: 422 `SessionUnverified`; (3) no kcp server sends `Access-Control-Expose-Headers`, so the page (another origin) cannot read the `DPoP-Nonce` the PDS demands at PAR (`internal/atproto/oauth/server.go` `verifyAuthorizationDPoP`; `internal/atproto/ingress/server.go` `route` sets only `Access-Control-Allow-Origin`): "PAR: server requested nonce but none provided". Unproven besides: an oauthQr identity under profile market-network (`internal/app/marketbidder/marketbidder.go` `operator`: it composes an operator account with the bidder's handle, which in s2 is the signing-in account's); `DENO_CERT` for the backend's PLC fetch; the single-VM layout (no `qr.sh` there). - Step 8g merged (phase-2-qr): built, unrun on a network. 0001:s2 cannot pass until the owner decides three existing controls (nothing changed for them): B2 the network PDS fetches OAuth client metadata with a public-addresses-only client (`internal/services/pds/service.go:378`, `internal/atproto/oauth/client.go:133-153`): refuses `https://qr.stg.test:8446/...`, and the gateway's and ssh gateway's web origins too (0001:run, 0002:run); B1 the QR backend verifies a session only at a public PDS (`did-key-associator/hono-backend/identity.ts:167-174`); B3 the ingress exposes no response headers, so a browser page cannot read `DPoP-Nonce` (`internal/atproto/ingress/server.go:345-346`). Asked 2026-11-18; the phase-2 stand-up waits for the answers. - Merge queue keeping history (owner, 2026-11-18): built in the knotless fork, branch `queue-fast-forward` (8a6dd760, worktree knotless-ff): `branch protect --queue --fast-forward`; a pull whose head contains the tip lands as its head, else as a merge commit; tests for both, a batch of three, a pull with a merge commit, and the squash default pass. Not landed, not deployed, not on. Rollout: land in the fork, deploy knotless-serve, then knotless-run, the new CLI, then the protect command on main. Unrun: the composition executor path our CI uses. phase-2 must not land before it is on. - Owner, 2026-11-18: the merge queue keeps the squash. The fork branch `queue-fast-forward` stays unlanded and undeployed; landing phase-2 squashes the vendored repos' commits into one (their history stays on the phase-2 branch and upstream). The hold on landing for it is lifted. - Owner, 2026-11-18: staging accounts are named aliceN (requester side) and bobN (bidder side): branch phase-2-names. B2 and B1: the network's services use the network's own names (its resolver and CA); B3: expose `DPoP-Nonce`: branch phase-2-signin. Both in work, unmerged. - B1, B2, B3 built (owner, 2026-11-18: "we have DNS, can't you use it?", "same, DNS what happened to it?", "make it so"; branch phase-2-signin), unrun on a network. The rule: a service that is part of a market network reaches the network's own names with the network's client; outside a network nothing changed. B2: a Pds whose `spec.network` carries a `caBundle` hands its OAuth server `oauth.NetworkClient{Domain: GuestTLSDomain(), HTTP: deps.Egress.Client}` (`internal/services/pds/service.go` `oauthNetwork`): a `client_id` or `jwks_uri` whose host is the network's domain or a name under it (never an IP literal) is fetched with the PDS's egress client (its host table, the system resolver, the system roots plus the network CA; redirects off), the client its PLC fetch already uses (`internal/atproto/oauth/client.go` `httpClientFor`); every other host keeps indigo's public-only transport and the system roots, as does every PDS with no network CA (prod). The egress client itself falls through to the system resolver with no address guard, so it is used for the network's names only. Seen (a throwaway program, the real `ClientMetadataResolver`, a TLS server on 172.17.0.1 under a test CA): without a network `https://172.17.0.1:/...` is refused ("is not a public IP address") and `qr.stg.test` does not resolve; with the network client `qr.stg.test` and `gateway.stg.test` are fetched; the IP literal, `other.example` (in the host table, outside the domain), `evilstg.test` and `localtest.me` (a public name on loopback) are still refused, the server never hit. B1: the associator backend takes `NETWORK_ORIGINS` (`network-origins`, default empty; `hono-backend/identity.ts` `checkUrl`): an https port-443 origin named there skips the public-address check as the PLC origin does; `qr.sh` passes the bidder PDS's public URL, the CA is `DENO_CERT`. `deno task test`: 31 pass (28 and three new). Seen (an unprivileged user and network namespace, 10.44.0.1 on its loopback, a stand-in PLC and PDS on 443 under a test CA, the backend from source with prod's checks): unset, the post is 422 `SessionUnverified` with no PDS fetch; set, 200 and the device collects the session after the getSession nonce retry; an account on another private PDS (`pds-alice.stg.test`, not named) 422; without `DENO_CERT` 422. B3: the ingress answers every request with `Access-Control-Expose-Headers: DPoP-Nonce, WWW-Authenticate` (`internal/atproto/ingress/server.go` `route`; prod's relay too, on its next deploy). The page's requests (`did-key-associator/lib/atproto-oauth.js`), all through the ingress, which answers the preflight itself: GET `/.well-known/oauth-protected-resource`, `/.well-known/oauth-authorization-server` and the PLC document (`Access-Control-Allow-Origin: *`); POST PAR, token and revoke with `DPoP` (preflight: Allow-Methods, Allow-Headers echoing `content-type,dpop`; the answer's `DPoP-Nonce` exposed); GET getSession with `Authorization` and `DPoP` (preflight echo; `DPoP-Nonce` and `WWW-Authenticate` exposed). Seen on the real `ingress.Server` handler: both preflights 204 with those headers, a POST and a GET with the expose header. Read only: a subscriber's `DPoP-Nonce` reaches the caller (`internal/exposure/registrar.go` copies the response headers, `responseHeaders` keeps it). Still unrun: a browser through PAR, authorize, token, the post and the device's poll against a real network PDS (steps 4, 7, 8, 10); 0001:run and 0002:run (the gateway's and ssh gateway's origins are names under the domain, so B2 covers them). Not built, proposed (docs/security/proposed-controls.md): pinning a network name's address to the network's own. - Hand cycle 2 (phase-2 8d2a5453, staging net stg-417196, two accounts, `freezeTtl` 5), 2026-11-18: `gate: staging: 35 of 43 PASS` (results ~/.tmp/ci-hand/seen-results2.txt; run dir under ~/.tmp/ci-hand/runs newer than cycle2.start). FAIL: 0001:run, 0001:s2, 0002:run, 0009:run, 0011:run, 0011:token (layers this build predates), 0015:pressure (foreground bidders), 0013:c (the node never joins). First cycle was 29. - Review of the sign-in changes (a cold read-only agent, probes under ~/.tmp/rev43): no blocker; two holes in the new network-client path, both fixed by narrowing it: (1) a zoned IPv6 literal (`[::1%25.stg.test]`) passed the name match (`net.ParseIP` rejects zones) and made a network PDS open TCP to any private address: `names()` now refuses a host with `:` or `%`; (2) a public client's `jwks_uri` under the network domain was fetched with the network client: now only when the client_id itself is a network name (`jwksClientFor`). Proof: a throwaway test (not committed): both zoned literals `names=false`, `qr.stg.test` true, and the public client's jwks client differs from the network client's. Notes left open for the owner: the domain has no shape check (only the Pds spec's writer sets it); any did:key ingress subscriber owns a name under the domain, so its client metadata counts as a network name; `qr.sh down` leaves `kv.db` (sessions) in its 0700 dir; `DENO_CERT` adds the run CA for all of the QR backend's TLS. - Owner asleep until ~14:00 UTC 2026-11-18 (autonomous mode): decisions taken meanwhile are marked "(lead ...)" here. - 0009's page for a hand run (lead, 2026-11-18): `SWC_PAGE_REPO` in ~/.config/socialweb-ci-hand/env names the built requester checkout wt-8f-req (branch page-staging 1858287, pushed as a branch, not on the requester's main). Open before CI can run 0009 on staging: `release` builds the page from a pinned requester commit (step 8f decision). - `deploy/check.sh --fast` on the merged phase-2 (a07bf149, hat-8, 2026-11-18): exit 0, all 16 checks ok (gofmt, apigen, codegen, go vet on every target, architecture rules, the policy engine tests); log ~/.tmp/phase2-check/check-a07bf149.log. - Requester repo: the page agent's `node --test` run hung in `modules/vm-mcp/test.mjs` (killed by it; not from the page change). Open: look at it before the next publish-chain run. - Rehearsal of phase-2 63a42a0d by hand on the held network stg-417196 (an agent, 05:40-06:36Z 2026-11-18; scratch fixes as commits affc6548, 9c93fffd, 6c4d394e, 77619cec in ~/.tmp/rehearse/src, not landed). SEEN PASS: atirc (`atirc.sh up` 1 s, 0011:run PASS); the installed bidder (install 65 s, Ready, no ERROR line, 0015:pressure PASS on it); the QR service + PAR (`invalid_client_metadata` before the core ran the new binary, PAR 200 and the expose header after); `gateway.sh ssh-up` (web 200, keyscan on 2222); deno and Chrome from tools.sh. SEEN FAIL, each with its cause: - tools: pinned node lacks `libatomic.so.1` (`tools.sh:36-42` checks libraries for Chrome only; `page.sh:16` returns 0 on it). - QR sign-in (0001:s2), five in a row, each seen after the one before was scratch-fixed: (1) the network client dials the front's port for any name under the zone (`internal/kit/networkdial/networkdial.go:96-114`, `:155` drops the port), so `qr.stg.test:8446` went to 10.44.0.1:443: 503 NoSubscriber; the same for atirc 8443 and the gateway 8444 from a Go network client; (2) `AccountMismatch`: the identity's pdsUrl is the PDS's own address, the session's its public name (`internal/marketidentity/atproto/accountcheck.go:47-53`); (3) the identity directory is the public one on a network (`internal/stack/componentcore/controllers.go:196`): PLC 404; (4) the QR client's scope lacks guest.memoryPressure, guest.oomKill, guest.image (`internal/atproto/oauth/scope.go:38-40,107` has them; `typescript-helpers/lib/oauth-scope/mod.ts` and `did-key-associator/generated/oauth-scope.js` do not): `SessionExpired`; by reading, prod's qr.fedfork.com has the same list; (5) with the full scope the page shows "oversized session field": `did-key-associator/hono-backend/mod.ts:266` refuses an accessJwt over 8192 (unmeasured: whether the token carries the scope). With all five scratch-fixed the sign-in completed in 14 s and s2 went on to "the target names no gateway kcp". `tests/testkit/src/requester.rs:287-295` drops the script's stderr. - gateway: `serve gateway kcp` with a pdsAccount identity never Ready: the identity looks for its vault in `root:app`, the vault is in `root` (`internal/app/gateway/gateway.go:143`, `gateway/vault.go:123`, `internal/app/compose/identity.go:163-164`); then (read, unrun) the requester cannot write the account's repo (repo and link in `root:app`, `gateway.go:739,744`); `gateway.sh down` kills only serve.pid. - 0013:c: cause PROVEN: the node's `spec.nodeJoin.*.downloadBase` was `http://192.0.2.1:28256`, the guest console repeats `curl: (7) Failed to connect to 192.0.2.1 port 28256`, the listener is on the atproto VM's loopback only; with `SOCIALWEB_NODE_DOWNLOAD_BASE=` the same binary PASSES (268 s). A hand-built binary's node pin is not in the bucket (`downloads/` is published only by `scripts/ci-release.sh:147`). - smaller: `trust.sh:41` reads `$C/creds-$a`, not the account's `.creds`; an installed bidder refetches the 1.44 GiB guest image; the Bidder object's `status.lastHeartbeat` is null. - 0013:c fix (lead, 2026-11-18): the reason `--network` replaced the default download base was a dev build's unpublished pins, not the network (docs/quickstart-prod.md); so only a dev build on a network now uses the requester's local Exposure, and a release build uses the default bucket, where `ci-release.sh stage` publishes `downloads/` by sha256 (by hand too). Proof so far: the rehearsal's PASS with the bucket base on the old binary. To prove: 0013:c in the next hand cycle (its release publishes this build's node pin). Caveat: a CI branch run has no bucket key, so a branch's node pin is published only when it equals main's. - Cold read of the merged stand-up as one sequence (a read-only agent, phase-2 5358f684), fixed before any run: (1) WOULD FAIL every stand-up ~20 min in: `gateway.sh:74` needs `/home/stg/stg/net.json` on the atproto VM, which was written there only in the later suite step: now written in the accounts step; (2) `gateway.sh up`'s output went to /dev/null (the redirect of `bg()` bound to `ssh-up` only): grouped; (3) `qr.sh up` (a deno build, up to minutes) ran inline in a foreground ssh step: detached (`bg("qr")`, its log in the suite logs); (4) the keyscan's three ssh checks returned only the last status: joined with `&&`; (5) input `gateJobs` -> `GATE_JOBS` (four slots on the 4 vCPU / 8G atproto VM are untried); docs/ci-debug.md: the hand tar line lacked gate.sh, entries.txt, the QR service and vm-images, and its step 3 ran the whole gate. Left as found: `target.sh` drops `tools`/`pageRepo` quietly when their install fails (the QR-fix branch makes page.sh fail loudly). - The rehearsal's QR defects fixed on branch `phase-2-fix-qr` (an agent, 06:38-07:00Z 2026-11-18, same held network; binary 5357bbc7 on the atproto VM, its core restarted on it). SEEN: 0001:s2 with fixes 1-3 from the branch and the rehearsal's QR tree (scope added, limit raised): sign-in passed in 13.5 s, then "the target names no gateway kcp" (as the rehearsal). With the branch's own QR tree (scope from the branch, limit untouched): the page shows "Transfer failed: oversized session field", the entry's error now carries the script's stderr. - (1) `internal/kit/networkdial/networkdial.go` `Address`: a name under a zone is on the zone's address at the port asked; the zone's own port stands for a URL that names none (443, 80): on one host the front listens on a leased port and its names carry none in DID documents (`internal/guestseed/userdata.go:359`). An exact entry is unchanged. - (2) `internal/marketidentity/atproto/accountcheck.go`: a session on a PDS other than the configured pdsUrl (and not its entryway) is taken only when the configured PDS names that PDS as its own `oauth-protected-resource` `resource` (`oauthclient.ProtectedResource`; `qr.sh` reads the same value). The identity keeps the PDS's own address: the operator account, password sessions and the sign-in's discovery go there, not through the front. - (3) `internal/stack/componentcore/controllers.go` `identityDirectory`: the PLC the core already uses (`plcBaseURL`) through `busOrNetworkClient`, as `registerStatus` reads it; the public PLC keeps the default directory. `repos.go:31` still uses the default directory on a network (not changed, not seen failing). - (4) the three collections in `typescript-helpers/lib/oauth-scope/mod.ts` (bidder, create) and the generated file; `scripts/check-oauth-scope.sh` in `deploy/check.sh`: `oauth.MissingScopes` of each Go list against the page's generated scope and, with deno, the TS lists. The next deploy of qr.fedfork.com asks for 78 tokens, not 75. rc174 (c123b3c6) already has the three in `BidderOAuthScope` (11981eba, 254722b8), required, so by reading a prod QR bidder's session that reports its grant lacks them ("sign in again"); not checked on prod. `typescript-helpers/test/oauth_scope_test.ts` fails 3 of 8 before and after (its own stale expectations). - (5) MEASURED, not changed: our PDS's access token for the full QR scope is 8244 chars (header 162, payload 7994, signature 86), the refresh token 8250; the limit is 8192 (`did-key-associator/hono-backend/mod.ts:266`). The payload's `scope` claim is the whole scope string, 5519 chars, 5699 as Go's JSON writes it (36 `&` as `\u0026`), of a 5995-byte payload; everything else is 296 bytes. Both tokens carry it (`internal/atproto/oauth/jwt.go:83-92`). The server reads the claim only to require `atproto` (`jwt.go:166`); the grant it enforces is the session's, found by the token's `jti` (`server.go:382-407`). Options, the owner's: the limit (a control); or a token that is a reference (no scope claim, `atproto` checked on the session): about 600 chars. Unescaped `&` alone gives 8004. - (6) `tools.sh` checks node's libraries as chrome's (`PAGE_NODE_DEBS`, libatomic1; the VM already had it: the apt path not seen), `page.sh` fails on a node or chrome that does not run (seen running), `oauth_signin_on`'s error carries stderr without the sign-in URL (seen), `trust.sh` reads the account's `.creds` (not run). - new: a failed 0001:s2 leaves its installed bidder (`swc-st-qr`: the module's `remove` is on the passing path, `tests/modules/acc-0001/src/s2.rs:138`), so the next s2 fails at `useradd`; a frozen entry ends by its control socket's `cleanup`, never SIGTERM (the host's cleanup does not run). - Token size (lead, 2026-11-18): measured on stg-417196: our PDS's access token for the QR scope (78 tokens, 5519 chars) is 8244 chars, the QR backend's limit 8192 (`did-key-associator/hono-backend/mod.ts:266`, an existing control, not changed). 180 of those chars were `&` written as `\u0026`: `encodeSegment` used `json.Marshal`'s HTML escaping, which a JWT does not need: now off (`internal/atproto/oauth/util.go`), so the token is about 8004 (the agent's count; to see in the next cycle). The margin is under 200 chars: the next scope added breaks it again. OWNER DECISION NEEDED for the durable answer: raise or configure the backend's limit, or make our PDS's tokens references (no scope claim; about 600 chars). bsky.social's tokens for the same scope are unmeasured (inferred ~7950 if it embeds the scope). - PROD RISK, unverified (read only): rc174 already requires guest.memoryPressure, guest.oomKill and guest.image in the bidder scope; qr.fedfork.com's client still requests 75 tokens without them, so a prod bidder that signs in by QR today would get a session the bidder calls expired. Prod's four bidders are heartbeating (their sessions predate it or are not QR ones: not checked). The synced scope list is on phase-2; deploying it to qr.fedfork.com is held for the owner (it changes what a prod sign-in asks for, and no prod sign-in was tested). Deployed 2026-11-18 15:13Z (decision 24d). See Findings: "qr.fedfork.com redeployed with the synced scope". - 0001:s2 leaves its temporary bidder (`swc-st-qr`) when it fails (its `remove` is on the passing path only, `tests/modules/acc-0001/src/s2.rs:138`): the next s2 fails at `useradd`. Open: remove on every end. - The staging gateway comes up: prod's identity shape, not pdsAccount (branch `phase-2-fix-gw`, 2026-11-18, SEEN on the held network stg-417196 with a release build of ea125920, no Go change). A Gateway root with a pdsAccount requester is a path no root ever ran (the rehearsal's vault and repo-link failures above). Prod's gateway requester is localRepo: its own Pds and did:plc, the agent of alice by the ident.link pair, and the bidders vouch alice, not the requester's DID (`docs/acceptance/0001-auth-modes.md` "Association" and "Bidder policy"; `internal/app/gateway/gateway.go` `localAccount`, `principal`: `spec.operator`). Staging runs the same: the spec names no identity and `operator` alice5's DID; the Pds is published through the network's ingress (`network.ingress`), the DID registered at the network's PLC with the agent-of entry; `gateway.sh up` runs `trust.sh associate ` (alice5's grant and endorsement, prod's `scripts/associate-bidder.ts`) once the root reports its DID. Seen: identity `AwaitingApproval` 60 s after start, `Ready`, `Associated=True`, associations [alice5] 20 s after the pair; `gateway.sh up` on a clean state dir: up in about 35 s; `gateway.json` with url, aud, requesterDid, kcp; `curl https://gateway.stg.test:8444/` 200 with the run CA through the forward. The stand-up order is unchanged (the bidders' vouch list names alice5, known before they start); no lib.rs change. - The audience: a module's XRPC call to the URL mints its token for the did:web of the origin with its port (`did:web:gateway.stg.test%3A8444`); the layer set `gateway-audience` to the name alone, so 0001:run's createCluster was refused `Unauthorized` (the token's claims captured on a listener). `gateway.sh` now sets the origin's did:web; after it 0001:run as alice2: createCluster, the cluster Ready after 26 s, kubeconfig, readyz, revokeKubeconfig refused after revoke, then FAIL at `page.signin`: no password page in 60 s. - The trust, seen by hand (the steps 0001:run does after the sign-in: createCluster, getKubeconfig, a one-replica deployment): the gateway's requester sent the RFP, bidder-1 bid (`bidder-tangled-vouch`: it vouches alice5, the requester's operator), the requester's policy admitted it (alice5 vouches the bidder), the receipt verified, the guest ran on bidder-1, the node joined and was Ready and the pod Running 2 min after the apply; deleteCluster released it. - OPEN, the gateway's web sign-in off the network's host (0001:run `page.signin`): the gateway logs `web_sign_in_start_failed`: `custody start: HTTP 400: resolve did:plc:...: Get "https://plc.default.global.svc.kcp.local/did:plc:...": http: server gave HTTP response to HTTPS client`. The vault's atproto plugin takes its PLC from the network value's `hosts` with the scheme of `plcDirectoryUrl` (`internal/app/compose/atprotoscope.go:109-113`, `plcScheme` `:166-173`): on the multi-VM network `plcDirectoryUrl` is the https ingress name and the host's address the PLC's plain listener (10.44.0.1:32920: http 200, TLS refused, seen from the gateway VM). The same function trusts `*.=127.0.0.1:` (`:118-120`), which is the front only on the network's own host. Not fixed here: it is the trust the vault signs users in with (the owner decides: dial the zone's names at `network.xrpcFront` and resolve at `plcDirectoryUrl` with the CA bundle, keeping TLS; or http for the hosts' plain listeners as the single-VM network does). - FIXED (branch `phase-2-fix-trust`, 2c807a19 and 442d5870; the owner's rule for a network's members: by name, through the network's front and CA, with TLS): `atprotoTrust` renders one rule from the network value. Names under the zone (`GuestTLSDomain`) dial the front (`*.=`, the port `GuestTLSURL` names): the PDSes, the authorization server and the PLC's https name on any host of the network. The PLC is `plcDirectoryUrl` itself; outside the zone (one host: the direct address) its host is trusted as the host table says (a listed name at its address; plain http only for a listener the network value lists; https as before). The `plc.`/`pds.` plain listeners and `plcScheme` are gone. The loopback entry was bbf451dc's "maps *.relay.localhost to its dispatcher-tls front" written as 127.0.0.1 with the front's port: the same entry now by the front's own address (one host: byte-identical when the front is on 127.0.0.1). Renderings, by a throwaway probe before and after: no network value (prod), an https PLC with no hosts, plc.directory, an empty value: byte-identical (sha256 of the plugin JSON, both scopes, three origins); multi-VM: plc `https://did-key-....stg.test`, hosts `*.stg.test=10.44.0.1:443` (was the plain plc/pds listeners and `*.stg.test=127.0.0.1:443`); one host: plc `http://127.0.0.1:`, hosts `*.relay.localhost=127.0.0.1:` and the PLC's `127.0.0.1:` (was the same listener under the `plc.` name). Consumers: the gateway's root vault (`internal/app/gateway/vault.go:107`), the ssh gateway's vault (`internal/app/sshgateway/sshgateway.go:172`), both also as children of a network (`internal/app/marketnetwork/gatewaychild.go:112`, `children.go:674`); bidder, requester and tenant vaults declare no plugin of this kind. SEEN on stg-417196 (release build of 2c807a19 on the gateway VM, the gateway restarted as `gateway.sh` does, Ready after 11 s, the same DID; root-vault's plugin `trustedHosts: [*.stg.test=10.44.0.1:443]`): 0001:run as alice2 passed createCluster, kubeconfig, readyz, revoke, `page.signin` in 12 s (was FAIL after 124 s), `page.kubeconfig`, both `page.fetch`, the first scale step (node Ready after 108 s), then FAIL at the second: `step to 2 replicas: 1 nodes, 1 Ready pods on 1 nodes after 15 min`. The gateway's requester discovered one bidder (`requester_bidder_discovery`: candidates 7, bidders [bidder-1], 6 dropped `no fresh heartbeat`), which declined (`the RFP asks for 4608M of memory; this bidder's running and reserved guests hold 4608M of its 7965M`), `requester_waiting_for_capacity` round 8: the second bidder was not among the discovered (why its heartbeat was not fresh was not read: the network ended). Open. The ssh gateway (the reported "read, untested" case): on the old binary `POST https://ssh.stg.test:8445/oauth/start` answered 502 with the same `server gave HTTP response to HTTPS client`; restarted on the fix (`dev down`, `run gateway ssh`, 24 s): 200 with the PDS's authorize URL, and the page sign-in (`oauth-signin.ts`, alice4) ended with the `swc_session` cookie on both origins. Not built: one host was not run (rendering only); the plugin's `*.` entry dials one address and port for every port asked, where `networkdial` (5f1423f8) keeps a port the URL names: the network's names under the zone are all on the front's port today, and changing what the plugin may dial is the owner's (a security control). SEEN again on stg-858064 (the gate's network, phase-2 ee47b96f): before, root-vault's plugin `trustedHosts` the plain `plc.`/`pds.` listeners and `*.stg.test=127.0.0.1:443`, the gate's 0001:run FAIL after 155 s and 0002:run FAIL `oauth start answered 502` (the ssh gateway, the same PLC line). After the gateway and the ssh gateway were restarted on a release build of b3084085 (the zone compared normalised: lower case, no trailing dot, the apex at the front; probe: staging and one host unchanged): `trustedHosts: [*.stg.test=10.44.0.1:443]`, `/oauth/start` 200 and the page sign-in to `swc_session` on both origins (alice4). 0001:run by hand (alice4): createCluster to revoke, `page.signin` 12 s, `page.kubeconfig`, both `page.fetch`, scale 1 (379 s), 2 (732 s), back to 1 (153 s), then ended by hand through the control socket's `cleanup` (it held a slot the gate needed): no failing step reached, not seen to PASS. The abort deletes the deployment, not the cluster: the idle node left after the provider's two minutes, the cluster by `deleteCluster` by hand. 0002:run by hand (alice3, the fixed test host, the suite with 04518899): `page.signin` with `startApi` 11 s, the temp key, the exec (42 s), the observer and the transient session, then FAIL `transient session: ssh-run-... not released (8 min after the disconnect)`. The session was released: `requester_release`, the bidder's `deleted_on_request` 5 s later, `requester_contract_records_deleted` 6 of 6; the runner settled it by the termination event and logs `requester_release_settled_by_termination` (`internal/market/requester/runner.go` `settleTerminated`), where the module's `session_end` wants `requester_released` (`tests/modules/acc-0002/src/lib.rs:144`): the ssh gateway's log had 3 of the first and none of the second. Open (not this branch's): one message for a release that is done, or the module takes both. - `oauth-signin.ts --start-api` against the network's PDS (04518899): the app-page click `^(sign in|...)` ran on the authorization server's page, whose button is "Sign in": the click was blocked by the empty required field, `waitForNavigation` waited its 60 s, and the PDS answered `invalid or expired request_uri` after the password (screenshots). With `--start-api` the first page is the authorization server's: no app-page click. Seen: `--start-api` on `https://ssh.stg.test:8445` ends with `swc_session` in 11 s (was "still on ... after consent" after 90 s on both origins). - `gateway.sh down` now stops the gateway's supervisor (SIGTERM to the devsup pid of `state/sup/devsup.json`: its own ordered stop, seen: every process of the state dir gone in 6 s) and fails when a process is left. There is no `dev down` for `serve gateway kcp --host-backend proc`: its layout is not a dev instance. Seen again with a tenant-less Ready gateway through the script's own block: gone in 5 s, then `up`: the same DID, Ready after 22 s. - Held-network notes: the test host's cached sessions (`~/.tmp/swc-system-tests/sessions/`, 04:06Z) answered getServiceAuth `AuthenticationRequired` at 06:50Z (moved aside: a new createSession works; the cache does not sign in again on that error). `gateway.sh` run as stg from a directory stg cannot read (`--exec` starts in /root) exits silently at its first `dev status` (`stat .: permission denied`, stderr dropped, `set -e`): `cd /home/stg/stg` first. - Gateway layer merged in prod's shape (phase-2-fix-gw, ee47b96f): SEEN on stg-417196: the Gateway root Ready (a localRepo requester, agent of the operator account alice5; `trust.sh associate`), gateway.json real, the web origin 200, createCluster to revoke of 0001:run PASS, a tenant node Ready on bidder-1. 0001:run then fails at `page.signin`: the gateway's vault plugin dials the PLC with https at a plain listener (`internal/app/compose/atprotoscope.go:109-120`, `plcScheme`), and maps the zone's names to loopback, right only on the network's own host. Decision (lead, by the owner's rule for its sibling cases B1/B2 and plan 0050): a network member's vault reaches the network's services by name at the network's front with its CA, TLS kept: branch phase-2-fix-trust, in work. - Hand cycle 3 (lead, 2026-11-18 ~07:15Z): release of phase-2 ee47b96f from worktree wt-stg-c3 (the cycle 2 shell still holds wt-stg-debug until its network's hold ends ~07:38Z), log ~/.tmp/ci-hand/cycle3-release-ee47b96f.log; then the stand-up with `freezeTtl` 5 and `gateJobs` 3 (four slots on the 4 vCPU / 8G atproto VM are untried). - Hand cycle 3 (phase-2 ee47b96f, staging net stg-858064, 2026-11-18): the stand-up ran end to end on its first try in about 11 min (07:39-07:50Z): installed bidders, the gateway, atirc, the QR service, the strict key check. Gate: 0001:run FAIL 155 s at `page.signin` (`Waiting for selector input[type="password"]`), every step before it PASS: the vault trust defect (below), as predicted. - Review of the vault trust fix (phase-2-fix-trust 6b3173e5; a cold read-only agent, probe ~/.tmp/trust-review-probe): no blocker; prod's rendering identical; nothing loosened. To fix on the branch: the zone comparison is not normalised (case, trailing dot, apex). Pre-existing, in the plugin's own guard, NOT changed, in docs/security/proposed-controls.md for the owner: a zoned IPv6 literal passes `publicAddr` (`cmd/openbao-plugin-auth-atproto/netguard.go:34-42`): a blind TCP probe of the vault's loopback from a DID document's endpoint, on prod too; and the zone wildcard's bare suffix match. - 0001:s2 in hand cycle 3's gate (stg-858064): the install, the QR sign-in and Ready PASS in the gate (`marketidentity_ready_notified` 07:53:44Z); then every repo write with the OAuth session is refused by the network PDS: `pdsclient: xrpc invalid_dpop_proof: Unauthorized (status 401)` (the badge.blue key, the ingress listen record, the offering), while `oauth_session_refreshed` works at 08:08Z: the entry waits for the offering until its 30 min deadline. Root cause: in work on branch phase-2-fix-dpop (first guess to test: the proof's `htu` and the PDS's expected URL differ, own address vs public name). - 0005:b in hand cycle 3 (FAIL 951 s, "records left": two accepts in the driver's repo): a read-only agent's root cause, with the bidders' journals (copies in ~/.tmp/rc0005): both were accepts bidder-2 refused 409 `CapacityExceeded` (08:23:56Z, 08:32:13Z), which the requester keeps by design (`internal/market/requester/runner.go:385-388`, f439fb2f); the test host's `request.records` (`tests/host/src/swc.rs`) counted them as leftovers, while its sibling `requester.records` already left them out (ce6146c4). A test-host defect, shown by contention: each staging bidder holds ONE guest (7965M, a guest counts 4608M), so the network has two slots for three gate jobs, and a hand 0001:run pinned bidder-1's from 08:31Z. Fix: one rule (`more::declined_accepts`) in both handlers; the contract's own accept is still asserted gone. Exposed the same way: every module that calls `request.records` (0003-0008, 0015-0017). 0005:r2fail's 807 s: the same capacity wait. Also fixed: 0005:run and 0005:b started in one millisecond and shared a run dir (`{runbook}-composition-{ms}`, `tests/host/src/main.rs`): the dir is now made atomically, the ms bumped until free. docs/acceptance/0014 lines that said a refused accept is gone corrected to its own rule. To prove: 0005:b with both bidders full, on the held network. Open for the owner: refused accepts accumulate in a requester's repo. - Staging capacity (seen in cycle 3): two guest slots in all. Three gate jobs mostly wait for capacity; more accounts do not speed the gate without bigger or more bidder VMs. - Vault trust fix merged (phase-2-fix-trust b3084085, reviewed). SEEN on stg-858064 after the gate's three gateway results, the gateway and ssh gateway restarted on that build: `/oauth/start` 200 and a full web sign-in with the `swc_session` cookie on both web origins (the gate had 502 on the ssh one); 0001:run by hand (alice4): `page.signin` PASS in 12 s, `page.kubeconfig`, both `page.fetch`, then scale to 1 replica (379 s), 2 replicas on two nodes (732 s), back to 1 (153 s), all PASS; ended by its control socket's cleanup before the last step, because it held one of the network's two slots under the running gate: not seen to a PASS. 0002:run by hand: after the gate. - 0014:exhausted and 0014:giveup in hand cycle 3 (FAIL 205 s each: a filler "did not come on network within 2m0s"): a read-only agent's root cause (evidence in ~/.tmp/rc0014: bidder journals, kine stall lists, live guest consoles, sar): disk saturation on the staging bidder VMs, not memory, CPU, the PID 1 crash or a leftover. Each bidder VM is one 50G ext4 virtio disk; ext4 has no reflink, so every rental COPIES the 1.44 GiB rootfs (`internal/guestdisk/clone_linux.go:15-48`), guests read with `cache=none` (`internal/vmruntime/qemu_linux.go:71`), and a release discards ~4 GB. With two guests on one bidder the second's copy (15-20 s) lands in the first's boot: kine commits stall 22-27 s, guests wait 23 s for their root mount; boots take 40-67 s when they pass and over 120 s when they fail (the window is `DefaultVMReadyTimeout`, 120 s from the receipt, bidder prep included). Prod's bidder hosts are btrfs (hat-8: `stat -f`), where the clone is a reflink. Fix (lead): the staging bidders' state on a reflink XFS (a loop file, `BIDDER_REFLINK` in the staging module; XFS is in the guest kernel), so staging clones as prod does. Probe on the idle gateway VM: a 300M reflink clone in 2 ms. To prove: `prepared` ~0.1 s and the 0014 fillers in the next stand-up. Not built, for the owner: the 120 s window counts the bidder's prep; `copyExtent` could flush as it copies. - 0015:pressure in hand cycle 3 (FAIL 568 s: `mt: Module call id mt is already pending`): the module asked for the VM's memory reading every 5 s whether or not the last one had answered; `vm.memory` now runs on the winner's host over ssh (step 8b) and one reading took over 5 s. A module defect: a reading still out is not asked again (`tests/modules/acc-0015/src/pressure.rs`). The rehearsal's hand PASS was on a quiet network. To prove: by hand. - CI gap study (a read-only agent; condensed at ~/.tmp/ci-gap/REPORT.md): the staging module is the same for CI and by hand; the gap is the page payload (release builds it from a pin in `page-tools.json`, `test` fetches it: branch phase-2-ci-page, in work), the CI input (`gateJobs` 3, `freezeTtl` 5), and what a branch run lacks (no bucket key, no agent config: about 40 of 43 at best). `scripts/promote.sh:77` passes entry names to `tests/gate.sh`, which refuses them: promote must not be asked before step 11 rewrites it. Plan text to correct after the cycle: steps 7, 8d, 8f, 11, 20 and the account names (the study's list). - 0009:run note for the product (lead, open): the network PDS's createSession `didDoc` names its service `did:plc:...#atproto_pds` (absolute) where bsky.social sends `#atproto_pds`; both are valid DID URLs, and the page's round script now takes either (requester a5dcb50). Any other client that matches the id exactly would miss it the same way: whether our PDS should send the relative form is not decided. - Hand cycle 3 (phase-2 ee47b96f, staging net stg-858064, three gate jobs, `freezeTtl` 5), 2026-11-18 07:39-10:07Z: `gate: staging: 34 of 43 PASS` (results ~/.tmp/ci-hand/seen-results3.txt; run dir under ~/.tmp/ci-hand/runs newer than cycle3.start; log ~/.tmp/ci-hand/cycle3-ee47b96f.log). The stand-up took 11 min; the gate 2 h 17 min on two guest slots. FAIL (9), each with its cause above: 0001:run and 0002:run (vault trust), 0001:s2 (`invalid_dpop_proof`), 0005:b (test host, refused accepts), 0009:run (page script, the service id), 0011:token (test host, channel name), 0014:exhausted and 0014:giveup (disk, image copies), 0015:pressure (module, a reading asked twice). New PASS against cycle 2: 0013:c (first time on multi-VM staging), 0011:run; also PASS on installed bidders: 0007:restart, 0020:run. Cycle 2 was 35: the number fell by one because two 0014 entries and 0005:b failed under load, while the layers' fixes postdate this build. - 0001:s2 after the htu fix (hand, alice2, stg-858064, 09:56-09:59Z): no `invalid_dpop_proof`; the RemotePDS ready and the offering written 1 s after the sign-in. Then FAIL at the offering check: the record lists `iroh`, `https`, `webrtc`, the module accepted only iroh and webrtc. Decision (lead, 2026-11-18, the owner may overrule): the module's expectation was the prod-qr PROFILE's (`marketHTTPS := Profile != ProdQr`, `internal/app/marketbidder/marketbidder.go:453`); by owner decision 8 the staging QR bidder joins with `--market-network-file`, so its profile is `network` and its offering has the https ingress name by design. s2 runs on staging only, so it now asserts exactly {https, iroh, webrtc} and no `endpointUrl` (stricter than "a subset of iroh, webrtc": an exact set). Prod's runbook text (offering iroh + webrtc) is unchanged. To prove: s2 by hand. - Review of the htu fix (31691ecf; a cold read-only agent, probe log ~/.tmp/rev-dpop/probe.log): merge as is; no blocker; prod's oauthQr binding and pdsAccount/localRepo unchanged; `spec.tls` still wins (ran); no control added or removed. Follow-ups, open: (1) an OAuth identity with `spec.identity.pdsRef` naming the PDS's own address still gets the htu mismatch (`internal/app/compose/identity.go:122-126`); (2) a RemotePDS's `spec.auth` refresh (`internal/pds/remote/credentials.go:175`) and its `subscribeRepos` (`internal/atproto/pdsclient/remote.go:71-73`) still use the plain dialer; (3) the old `pds-` RemotePDS object is not pruned when the URL changes (`identity.go:460-469`); (4) the egress client has no private-address guard, as the plain dialer had none: for the owner, not built. - 0009:run by hand with the page script fix (alice1, stg-858064, 10:01Z): bind_key, the contract (45 s), the receipt, the shell (`uid=0(root)`), the release and the 7 records gone all PASS; FAIL at the last check: one `ingress.offer` record left. Cause (the page agent): the round discovered a third bidder, the QR bidder of a concurrent hand 0001:s2 (alice2), offered to it, and it never answered; atlibs-webrtc 0.4.0 `js/record-signals.js` deletes an offer only when its answer is read, so an unanswered offer stays. The check is right: a product leak (any bidder with an offering that does not answer: a dead one on prod too). Not fixed: the fix is in atlibs-webrtc or the page's `webrtc-cubit.js` (withdraw a finished session's offers), then a publish: the owner's call where. In the gate 0001:s2 runs alone, so the overlap was the hand runs' (lead's sequencing); a bidder that leaves a stale offering behind (a failed s2, 0020) would cause the same. To prove 0009: rerun with no stray bidder. - 0001:s2, the last steps (hand reruns 2-4, alice2, stg-858064): the offering check and the bidder's removal PASS; then (a) `deleteRecord refused: ... was not created by this module`: the bidder wrote those three records: the module's manifest gains `anyRecords` for exactly offering, heartbeat and ingress.listen (the agent, df74da51); (b) `AuthenticationRequired` on a saved session older than the PDS's 2 h access TTL: our PDS never answers `ExpiredToken` (`internal/atproto/pds/auth.go:186-196`), so no client refreshes: a product defect, branch phase-2-fix-expired in work (it changes only the error of a refused request); the same was the "cached sessions answered AuthenticationRequired" of cycle 2; (c) the module ends `pass=true` (167.6 s) but the run is `pass: false` on three cleanup errors: the host's end-of-run kube cleanup (restore MarketBidder/app, delete the EventSource and RelayEventSource) dials the temporary bidder's kcp, which the module's `remove` step had uninstalled. Fix (lead): a host call `kube.undo` (the kube transport's own cleanup, now) that s2 makes before `remove`. To prove: s2 by hand. Left for later: each bidder install binds a new badgeBlueKeys record (27 in alice2's repo), kept by rule. - 0002:run by hand with the vault trust fix and the fixed test host (alice3, stg-858064): `page.signin` with startApi (11 s; the gate had 502), the temp key, the exec (42 s), the observer and the transient session all PASS; FAIL at `transient session: ssh-run-... not released (8 min after the disconnect)`, though it WAS released (`requester_release`, the bidder's `deleted_on_request` 5 s later, 6 of 6 records deleted): the requester settled it by the bidder's vm.terminated (`requester_release_settled_by_termination`, `internal/market/requester/runner.go:1975`), and the module took only `requester_released` (`tests/modules/acc-0002/src/lib.rs:144`). Both are the Released outcome; the module now takes either, the second only with reason `deleted_on_request` (lead). To prove: 0002:run by hand. Also from that agent: `gateway.sh up` keeps a live serve on an OLD spec (it overwrites spec.json and says "already runs"): open; `oauth-signin.ts --start-api` no longer clicks the app page's sign-in on the PDS's page (04518899, merged). - PDS `ExpiredToken` (phase-2-fix-expired d0a3b904, merged; an independent review is running): our PDS answered an expired access JWT `401 AuthenticationRequired`; the reference PDS answers `400 ExpiredToken`, and atlibs-host (`rust/host/src/host.rs:772`) and the atlibs JS server refresh only on that name: a saved session older than the 2 h access TTL was dead for good (both sightings today). Now: an expired access JWT, and an expired refresh JWT at refreshSession, get `400 ExpiredToken` (`internal/atproto/pds/auth.go`, `accounts.go`); a token is called expired only when it passes every other check one nanosecond before its `exp`; every other refusal is as before (the author's before/after rows: ~/.tmp/probe-8s). The Go xrpc client also renews on `400 ExpiredToken` (`internal/atproto/xrpc/client.go`): it never did against bsky.social. Never broken: pdsAccount identities (they renew by time). To prove on a network: a session older than 2 h still works (a gate longer than 2 h). - 0001:s2 PASS by hand (alice2, stg-858064, 10:16:58-10:19:09Z, 130.9 s): `pass: true`, no cleanupErrors; the test host and acc-0001 from phase-2 23f45c46 (copies beside the gate's), the binary under test 31691ecf (the htu fix); offering_endpoints ["iroh","https","webrtc"]; `kube.undo` before `remove`; no `invalid_dpop_proof`; afterwards no swc-st-qr account or install and the three records 400. Readings on the VM: /home/stg/stg/readings/0001-composition-2026-11-18T101658619Z.json. The first PASS of this entry anywhere. - 0009:run PASS by hand, alone (alice1, stg-858064, 10:19:49-10:21:38Z, 108.6 s): the patched page script (requester page-staging a5dcb50), binary under test 31691ecf; both bidders' rounds (contracts in 52 s and 48 s), every check, zero `ingress.offer` left. Run dir on the VM: /home/stg/.tmp/swc-system-tests/runs/0009-composition-1794997189646. The first PASS of the page on staging. The unanswered-offer leak above stands, unfixed. - Review of the PDS `ExpiredToken` change (d0a3b904; a cold read-only agent, a differential probe of 65 token variants on 5 routes against the parent and the commit, logs ~/.tmp/rev-expired/out): merge as is. The accepted rows are byte-identical on both sides; the only change is `401 AuthenticationRequired` -> `400 ExpiredToken` for tokens carrying our signature; a forged, wrong-alg, wrong-audience or refresh-as-access token is refused as before, so the name is no signature oracle; the client's retry is bounded as the 401 path. Notes, open: an OAuth (DPoP) session now also refreshes once on a 400 `ExpiredToken` (`internal/atproto/xrpc/client.go:206`); the stale-PDS detection of `internal/eventstream/watchsink.go:342-355` keys on 401/403/404, not on this 400; deleteSession with an expired refresh token still answers 401. - Hand reruns on stg-858064, one at a time, from ONE build of phase-2 854cfb21 (the test host and all module wasm as copies `swc-test-host-h`, `suite-h/`; the binary under test 31691ecf; the gateway and ssh gateway on b3084085), 2026-11-18 10:23-10:58Z, the network empty before and after each: 0002:run PASS 645 s (`/home/stg/stg/hand-h-0002-run.log`); 0011:token PASS 2 s; 0015:pressure PASS 825 s; 0001:run PASS 528 s (createCluster, sign-in, three scale steps, the terminated records, deleteCluster). 0001:run's first try failed in under a second at createCluster, `getServiceAuth ... AuthenticationRequired`: alice1's cached session of 07:49Z on a PDS that still runs the binary from before the `ExpiredToken` fix; the session moved aside by hand. With 0001:s2 and 0009:run above, six of the third cycle's nine FAILs had a seen PASS by hand at that point; 0005:b under contention was running; 0014:exhausted and giveup need the fresh stand-up (the reflink XFS). - The refused-accept fix (1a7a808d) proven by hand (stg-858064, 11:06:54-11:14:23Z, 0005:run as alice3 and 0005:b as alice1 started together, the build of 854cfb21): both accepted one bidder at 11:07:13Z; 0005:run's requester logged `requester_submit_accept_declined` (409 `CapacityExceeded`: "this bidder's running and reserved guests hold 4608M of its 7965M"), `requester_accept_declined_replace`, the other bidder at 11:07:21Z, and the entry PASSED with `assert.recordsGone` and `assert.tombstoned` (449 s); afterwards the refused accept is still in alice3's repo and the contract's own accept is gone. 0005:b PASS 138 s. (The first try had no refusal.) Logs: `/home/stg/stg/hand-h-0005-{run,b}.log`. So seven of the third cycle's nine FAILs have a seen PASS by hand (0001:run, 0001:s2, 0002:run, 0005:b, 0009:run, 0011:token, 0015:pressure); 0014:exhausted and giveup wait for a fresh stand-up. - CI page step merged (phase-2-ci-page, an agent): `scripts/ci-page.sh` (+ `ci-release.sh page`, release.yml step, timeout 20) builds 0009's page from the commits pinned in `tests/compositions/staging/page-tools.json` `page` (requester a5dcb50 on its branch page-staging, atlibs f39c7a7), key = sha256 of the pin; with a bucket key it publishes `page//`, without one into `dist/`; `ci-test.sh host` fetches it (artifact, else the bucket), unpacks to `$CI_HOME/page` and passes `SWC_PAGE_REPO`; the test host takes the payload's own COMMIT; `input_default` gains `gateJobs` 3 and `freezeTtl` 5. Hand rehearsal on hat-8 without a key (log ~/.tmp/ci-page-hand/page.log): 28 s, the four wasm and the page files in `page.tar.gz`. Unproven: in CI; the published path; 0009 with this payload (hand cycle 4). Open: the requester pin is a commit of a branch, not of that repo's main. - SECURITY, 2026-11-18 (the owner notified by push at 12:00Z): hand cycle 4's stand-up (phase-2 5ce234e4, 11:56Z) froze at `infra:start: run requester stg exited exit status: 2 before ready`: `the identity alice2 PDS holds 2 accounts; one identity serves one account`. The second account was not ours: `barb.`, did:plc:m57euzk3yz5fv6erfo2mccae, made at 09:56:55Z through the public ingress relay on alice's hand requester identity (`root.requester.aliceoa.bsky.social`) while cycle 3's requester ran; it made an app password and wrote one record with an 11 KB blob at 09:57:23Z. Cause: `com.atproto.server.createAccount` has no invite or allow check (`internal/atproto/pds/server.go:224`): any PDS reachable by its public name takes accounts from anyone. No repo of ours holds that name or a fake-data library. Done (lead): the identity's whole state copied first (~/.swc/evidence-alice2-20261118T115916Z, 0700); then the foreign account's rows deleted from the live `accounts.db` (1 account, 2 sessions, 1 app password; `integrity_check` ok), its repo blocks, commits, key and blob left in place; the frozen run ended by its cleanup (`cleanupErrors: []`). NOT done: no check added (a control: docs/security/proposed-controls.md); prod's bidders' and the gateway's PDSes not looked at; who did it unknown (the relay's logs on fedproxy.com not read). It can recur whenever one of our PDSes is public, in the next gate too. - Hand cycle 4 restarted (4b) at 12:00Z on the same build and release: log ~/.tmp/ci-hand/cycle4b-5ce234e4.log, results ~/.tmp/ci-hand/seen-results4b.txt. The first try's page path worked: `ci-test.sh host` fetched `page/3eb801db.../` that the release had just published. - Hand cycle 4b's stand-up (stg-609282, 12:00Z) froze at the gateway: `gateway.sh: the gateway on 10.44.0.4 is not Ready after 71 s: exited` (the output kept, as fixed): `serve gateway kcp: bootstrap: ... kcpserver: not ready: readyz ... [-]poststarthook/kcp-start-informers failed`. Root cause (an agent, on the held network; evidence ~/.tmp/rc-gwkcp): a lost watch event at a kcp FIRST start, never retried. kine v0.17.1 starts a watch at `CurrentRevision` and filters later events with `After(rev)` (`pkg/logstructured/logstructured.go:243-268`): a row with a lower id that commits after the snapshot is never delivered (here schema ids 294, 295, after a burned id 293); kcp's APIBinding reconciler returns without a requeue on a NotFound schema (`pkg/reconciler/apis/apibinding/apibinding_reconcile.go` ~220-235), so `root|tenancy.kcp.io` stays `Binding` though a GET of the schema is 200, the tenancy APIs are never served, and `kcp-start-informers` waits for ever. Ours: the bootstrap waits `DefaultReadyTimeout` 1 min (`internal/bootstrap/bootstrap.go:38`, `:548-583`), returns, leaves the stuck kcp running, and the next start adopts it (`ensureUnit`, `:295-318`). Seen by hand: `gateway.sh up` again: fails (adopts it); `down` then `up`: the new kcp waits 64 s for the dead one's leader lease, ready after 78 s, over the budget; `up` once more: Ready in 37 s. Not starvation (the VM idle; no I/O stall), not the supervisor's order. Any kcp of ours can hit it (the network's, a bidder's, each `run request`'s, the gateway's); seen once in about seven gateway starts. Fix: in work on branch phase-2-fix-kcpstart (the kcp fork: requeue on a NotFound schema; our bootstrap: restart a kcp that is not ready in its budget). The run ended by its cleanup (`cleanupErrors: []`). - Hand cycle 4c started 12:19Z on the same build and release (log ~/.tmp/ci-hand/cycle4c-5ce234e4.log, results ~/.tmp/ci-hand/seen-results4c.txt): the third stand-up of this cycle; the first two stopped before any entry (the foreign account; the kcp first start). - The foreign sign-up RECURRED: hand cycle 4c's stand-up (12:19Z) froze at `infra:start` again: a second account, `corm.` (did:plc:l5lkvenmhrdshoxcwa5vpqbs), made at 12:01:30Z, 45 s after cycle 4b's requester started, with an app password named `http`. The ingress relay's log on fedproxy.com for that minute (read only; it records no source address): `GET describeServer` at 12:01:30.05, `POST createAccount` at 12:01:30.57; and in 110 s on that one PDS name 663 `subscribeRepos`, 325 `repo.getRecord` and 106 `sync.getRecord` requests. So an automated client signs up on this PDS whenever it is reachable. Done (lead): evidence copy ~/.swc/evidence-alice2-20261118T122151Z, then the account's rows removed as before (~/.tmp/ci-hand/clean-identity.py: it copies the identity's state, then deletes the rows of every account but the identity's own); the hand cycle's script now runs it before each stand-up. That is a workaround on the hand runner's state, not a fix: the decision on `createAccount` is the owner's (docs/security/proposed-controls.md). Who it is: unknown (Caddy's access log on fedproxy.com not found by the first look). - Hand cycle 4d started 12:22Z (the fourth stand-up of this cycle; log ~/.tmp/ci-hand/cycle4d-5ce234e4.log, results ~/.tmp/ci-hand/seen-results4d.txt). - The kcp first-start fix, built on branches, NOT merged (an independent review is running): (1) the owner's kcp fork, branch `apibinding-schema-requeue` d71f020c (upstream 74e9fb9c + one commit, pushed to the fork only): the APIBinding controller reads a schema live when both listers miss it, and a NotFound schema is requeued by the existing rate-limited path; (2) kcp branch phase-2-fix-kcpstart: ae47faa5 `internal/bootstrap/bootstrap.go`: a kcp slot that this start placed and that is not ready in `ReadyTimeout` is stopped and placed once more (`SlotRestarts` 1), the stale leader lease handed over during the wait; 33f969ac: the `kcp` asset pinned to the fork's archive at d71f020c (`make pins` 35 s, `make check-pins` "pins unchanged", logs ~/.tmp/kcpfix). Seen locally (harness ~/.tmp/kcpfix/cold.sh, fresh state per start): the staging race did not reproduce in 71 starts of the pinned kcp; forced (a throwaway kcp whose lister misses the two schemas): pinned code not ready at 60 s with the staging symptom, fixed code ready in 9-12 s (3 of 3); a kcp stuck on its first start only, with the new bootstrap: restarted, ready 78 s in all. A SECOND stuck mode seen twice in 142 local starts, not fixed: five CRDs of the cache server never report "established" (the store holds the updates: the same lost-event class, untraced). A kine fix (not built): `Watch`'s cutoff in `pkg/logstructured/logstructured.go` should be the poll loop's sequential revision, not the highest committed id. kine is a downloaded binary (v0.17.1, pinned by sha256). - Hand cycle 4d's stand-up completed (12:22-12:35Z): the identity clean, the bidders installed on the reflink XFS, the gateway Ready; the gate started. - Step 11, the part that needs no network, merged (phase-2-step11, an agent; nothing run on prod, no CI asked): `scripts/promote.sh` calls `./gate.sh --account bob,alice` (its 17-name list gone); `scripts/ci-prod-target.sh` writes the prod target on the release VM (creds and bidder kubeconfigs as 0600 files from secrets, `pageRepo` and `tools` under `$CI_HOME/page`, `agentConfig`, `requester`); `scripts/release-prev-rc.sh` (the compat requester, shared with `ci-test.sh`); `promote.yml` names its secrets and stays `on: asked`; `promote.sh --dry-run` and `promote-rehearse.sh` updated. Seen locally with fake values and no network: the produced target loads (`swc-test-host --dry-run`: `composition ok` for 17 runbooks as bob and as alice), every secret file 0600, no secret in the target or the output. New secrets for the owner to seal (names only): `PROD_ALICE_ATPROTO_PASSWORD`, `PROD_BOB_ATPROTO_PASSWORD`, `PROD_KCP_KUBECONFIG_HAT_7`, `_HAT_8`, `_HAT_9`, `_HAT_10` (john's account is not read by the gate). - BLOCKER for "30 of 30 prod in CI" (the same agent's reading of the code; OWNER DECISION): a release VM rented from the market cannot reach the bidder hosts. The prod target reaches each bidder's kcp behind `ssh hat-N` on the owner's LAN (`tests/testkit/src/target.rs:166`, `tests/testkit/src/kcp.rs:148-161`); the VM is a guest on one of those hosts and the guest firewall drops TCP to RFC1918 and to the host's own addresses. Without a bidder kcp these `both` entries end `unmet`: 0001:run, 0003:run, 0005, 0006:run, 0007:run, 0008:run, 0015:run, 0016:run; and `bidder.health` / `bidder.logLines` (0006:run, 0008:run, 0014:abandon) need a shell on the bidder host (`tests/host/src/more.rs:1084-1210`, `:1869-1895`). Options: (a) ssh over iroh to a low-privilege account on each hat (new standing access on four hosts); (b) the kcp by an iroh ticket and the health and log reads moved into the bidder (product work); (c) promote triggers the gate on hat-8 (the gate is then not in the CI VM); (d) reclassify the entries (loses prod coverage: the owner's alone). Also open: r2 on the release VM holds the droplet's root deploy key for the whole gate (for `gateway.log`); the compat requester is rc N-1 by number until release-workload passes the previous version (step 12); the release VM's base image may lack python3 and an ssh client. - The kcp first-start fix MERGED after its review (phase-2-fix-kcpstart de62f917; a cold read-only agent: "merge as is" for both parts: no authorization widening in the kcp change, the restart bounded and safe, the lease handover cannot remove a live holder's lease, the pin exactly upstream 74e9fb9c + one commit). With the review's follow-ups: when the restarted slot is not ready either, `Ensure` stops the slot it placed, so the next start does not adopt a stuck kcp; the stale-lease handover runs during every wait for a slot it placed; tag `swc-apibinding-requeue-1` on the fork for d71f020c; ARCHITECTURE and AGENTS say kcp builds from the owner's fork. Seen locally: a kcp stuck on its first two starts: the first `Ensure` restarts once, fails after 127 s and leaves no kcp process; the second `Ensure` is ready in 8 s; 8 of 8 fresh starts ready in 12-13 s. Unproven: on a network (the next cycle's build); the real kine race; that a restart recovers the second stuck mode (the cache server's five CRDs never Established: its establishing controllers never saw the CRD ADD events: the same lost-event class). Review notes left open: a slow but healthy first start loses its first attempt at `ReadyTimeout`; `DeleteLease` has no precondition (`internal/kcpserver/admin.go:323`). - Hand cycle 4d's gate, first results (the build is 5ce234e4, before the kcp fix): 0001:run PASS 932 s, 0001:s2 PASS 124 s, 0006:run PASS, 0003:run PASS 75 s, 0004:run PASS 319 s: the first PASS of 0001:run and of 0001:s2 in any gate. - 0002:run in hand cycle 4d's gate (stg-414197): FAIL 2402 s, `not done in 40 min (phase held)`. The sign-in, the exec, the observer and the transient session PASSED; the held session's VM was never rented: the ssh gateway's requester logged `requester_bidder_declined` and `requester_waiting_for_capacity` for `ssh-5210437c...` at 12:51:32-12:52:02Z (both guest slots were held by two other gate entries), and the client got `provisioning failed: the guest did not report onNetwork and hostKeys in time` at 12:59:02Z; the module then waited out its deadline. Cause: the gate's VM cap was 4, prod's default (`tests/gate.sh:88`), on a network with two guest slots (step 7's "`GATE_VMS` for two small bidders" was never set): three jobs raced for two slots inside the entries. Fix (lead): the CI input gains `gateVms` 2 (`scripts/ci-test.sh`), so the gate holds entries back by their weight and they do not wait for capacity inside themselves; 0002:run weighs 2 (its held session needs a slot the moment its transient one ends); the module ends at once on a session's `provisioning failed` line. For the owner, not changed: an ssh session gives up after about 7.5 min while its requester still waits for capacity, and says the guest "did not report onNetwork". To prove: 0002:run in the next gate. The by-hand PASS (645 s) was alone on the network. - 0008:run in hand cycle 4d's gate: FAIL 145 s, `the contract failed before Held: ... the winning bidder declined the accept: ... HTTP 409 ... CapacityExceeded ... this bidder's running and reserved guests hold 4608M of its 7965M`. The entry rents one VM (`--hold`, `tests/modules/acc-0008/src/lib.rs:22`) but the gate weighed it 0 ("host checks none", `tests/gate.sh` WEIGHT), so it started beside entries that already held both guest slots and lost the accept race until the requester's bound (`MaxAcceptReplacements` 3, `internal/market/requester/runner.go:371`). A gate table defect: 0008:run now has the default weight 1; with `gateVms` 2 it waits its turn. In hand cycle 3 it passed (the slots happened to be free). To prove: the next gate. - Hand cycle 4d's gate so far (13:35Z): 15 PASS, 2 FAIL (0002:run, 0008:run: both the two-slot capacity, fixed in the gate's scheduling); PASS for the first time in any gate: 0001:run, 0001:s2, 0009:run (on the page payload the release's page step published), 0011:token; PASS again after their cycle 3 FAIL: 0005:b. - OWNER, 2026-11-18 ~13:40Z (AskUserQuestion): (1) createAccount: "Own account only": a requester's, bidder's or gateway's own PDS refuses createAccount once its identity's account exists; a market network's PDS stays open unless its operator sets otherwise. (2) Prod: "Check and remove then roll fix to prod". (3) The vault plugin's address guard: "Fix it": strip the zone before the public-address check, skip the zone wildcard for hosts with ':' or '%'. (4) On the prod gate's reach of the bidder hosts the owner asked why a test hardcodes hosts: the requests discover bidders; `tests/targets/prod.json` lists each bidder's kcp kubeconfig and ssh host for the operator-side checks (the VM object gone on the winner's kcp, a bidder's start-up log, a core restart, a VM's memory limit): whether the prod gate may use operator access at all, or only what the protocol shows, is OPEN with the owner. - PROD CHECK (lead, read only first, 13:40Z): 324 foreign accounts on prod's PDSes, made through the open createAccount since 2026-11-01, all `name.` (two on hat-9 without the dot): hat-9's bidder 87 (first 11-01, last 11-18 12:32Z), the gateway 84 (11-02 .. 11-18 03:53Z), hat-8's bidder 63 (11-03 .. 11-18 12:27Z), john's old suspended hat-7 bidder 63 (11-09 .. 11-17), hat-10's bidder 27 (11-15 .. 11-18 11:40Z), the new hat-7 bidder 0. What they stored: per host 52-261 commits, 20-170 KB of repo blocks, and blobs: 79-143 files, 6.6-55 MB a host (about 110 MB in all); the gateway's held 2109 sessions. - PROD CLEAN-UP (lead, by the owner's word, 13:48Z; script ~/.tmp/prod-clean/clean.py): on each host, first a full copy of the PDS's state dir to `/var/lib/socialweb-computer-evidence/