Repository navigation
Conversation
…able in Coolify, and a page's first call after opening (Qwen2API-3ue.4, Qwen2API-3ue.5) Runbook (docs/prod-hybrid-deploy.md): - Where the rollout stands: image 37d874c, both transports on, step 5 refused by completions in both modes. That is the epic's fallback plan (the proxy), and the owner's decision. - A variable in Coolify is a full rebuild with a Chromium download: 7.5 and 38.5 minutes of downtime on 24.11. The rollback section said "the same image". Variables go in one batch now; marking them runtime-only is the cure, and the owner's decision. - Level 1 of the rollback (turn egress off) is worse than leaving it on while the direct path is refused from this IP. - Step 3: a refused session right after the page opened is what image 37d874c answered. With the settle wait the first call must pass, and the same single call is the check. - Step 5: a row for what completions answered, a FAIL_SYS_USER_VALIDATE envelope under status 200. - The result of the repeated rollout and what it found: adoptToken, the token changing twice in the first ~3.5 s, the price of a variable. Design doc (docs/browser-egress-design.md): the page's readiness after a (re)load in the lifecycle; the account registry under "the token follows the session"; the E.4 checklist and risks closed or re-stated by the live rollout; the Rollout section's rollback; and the result of the repeated rollout, with how both fixes were checked without a network. The settle wait has not been checked live: that is the one call after the deploy.
fix(egress): a session recovery in the compiled binary; a page is not called before its token has settled (Qwen2API-3ue.5)
…opens passes (Qwen2API-3ue.4, Qwen2API-3ue.5) - Runbook: the state of production (image 439c35b, both transports on, worker without a page); the deploy of the fixes (PR #24 and #25, about a minute by webhook: the layer cache held because no variable had changed since the previous deploy); the live check — one call to the worker right after the page opened passed first time (opening 13.6 s, call 390 ms); two observations (the stored session was pruned as expired at startup; the page was closed with a worker restart). - What the earlier diagnostics show: in both modes the refused first call went out on the 30-day token, on which the page stays for about half a second, and the call that passed a minute later went out on the 15-minute one. A coincidence across two runs, not an isolated factor; what it means for the app's Bearer is Qwen2API-jr9's open question. - Design doc: the lifecycle bullet carries the measured cost of the settle wait on prod; the result of the repeated rollout ends with the deploy and the live check.
docs(egress): the fixes are deployed and the first call after a page opens passes (Qwen2API-3ue.4, Qwen2API-3ue.5)
… own interface, repeat the completions call on the page's own signature, and compare two Bearers (Qwen2API-3ue.4, Qwen2API-9kx, Qwen2API-jr9) --ui-send=1 types a message into the page's input and sends it with its button; what the page's own chats/new and completions carried and what qwen.ai answered is reported. --signed=1 then sends one chats/new and one completions call by the worker's own code with the bx-ua / bx-umidtoken the page put on its own request (read here, never printed). --bearer-compare=1 sends two chats/new a pause apart: on the token the renewal harvested, then on the page's current one. --fast=1 cuts the pauses for loopback rehearsals only. The stub gains ui / ui-punish modes with an input, a send button and a message of the page's own.
…sends no authorization (Qwen2API-jr9) - chats/new and completions (whole and streamed) leave through POST /egress with content-type and x-request-id only (plus accept: application/json on the stream). The worker already sends a call that brings no authorization on the page's localStorage.token; it is not changed, only its comment. - Why: the app sent the token a renewal harvested, which the page, changing its token as it boots, may have moved on from. On 2026-11-24 (prod, image 439c35b) the same chats/new passed on the page's token and was refused as unauthorized on the renewal's. The cause of that refusal is not established (such a token passed from Node on 21.11); that pair is what is established. On the app's token every rotation was a refused call and a reload. - Not the token sync the issue first proposed: a call on the app's token still goes out on a token the page may have left and is repeated, a refusal per rotation; the page's 15-minute token in the store would make the stored session short-lived and add reloads. - The session lifecycle is as it was: the store, publishSession, adoptToken, renew and relogin, markSessionAccepted, the throttles, jar sync. Recovery keeps its limits: chats/new refused as unauthorized gets a reload and exactly one retry, refused again the sign-in in the background; completions get one retry after a reload and never a password; a WAF challenge gets a reload and one retry. A retry is the same call again on the reloaded page. - The token the send seam took for 'browser' (impersonate-transport.js#postCompletions and its caller in request.js) was dead and goes with it. - tests/browser-egress.test.js: the stand-in holds the page's session (a token, or logged out) and answers qwen.ai's verdict from it; every assertion that a retry carried the renewed, the sibling's or the signed-in token is re-expressed as "no authorization, retried after the reload, exactly once". Seven regression tests named for the issue.
…l; jr9 is closed without a token sync (Qwen2API-jr9) - Design doc: every place that had the app's token as the Bearer of an egress call, the refusal recovered inside the request because of it, or jr9 as an open item now says the call goes out on the page's token. The header table and the POST /egress example name who sets authorization. A dated section records what was observed on 24.11, what it does not prove, the change, and why not the token sync. - signin-worker.md: the completions paragraph no longer lists authorization among the headers the app sets.
…way the page's own front end does, without and with the page's referer (Qwen2API-3ue.4) --like-own=1 sends two completions calls the runbook's pause apart, each in a fresh chat: a fetch with what the page's own request carried (x-accel-buffering, bx-v, the page's headers), to the address without the chat id, with a body shaped like the app's — the first from where the page stands, the second, only if the first was refused, with the page's own referer /c/<chat>. 24.11: the page's own call passed from the page the worker's call was refused on. The stub gains own-ok / own-referrer-needed modes for both outcomes.
…l when the first call passes (Qwen2API-3ue.4) Hours may pass between a refusal and the probe; a passing call then says nothing about its shape unless the call that was refused is refused again.
… query in the report, and takes the second call only after a risk-control refusal (Qwen2API-3ue.4) 25.11, prod: qwen.ai takes no completions without the chat id in the address (RequestValidationError) — the page's own carries it, as the app does. The first run of the probe sent neither, and both of its calls were spent on that. The stub now answers a completions without the chat id the same way, and has a mode where the worker's own call is still punished while the fetch passes.
…ons call with the page's body and x-accel-buffering: no added (--isolate-xhr, Qwen2API-3ue.9) The call that was refused (25.11, 03:46 UTC), with two things of the page's own request added and nothing else: whether those two are what the refusal was about, or whether the call has to be a fetch. The stub gains own-xhr-ok.
fix(egress): the Bearer on an egress call is the page's own; the app sends no authorization (Qwen2API-jr9)
tools(egress): the page diagnostic can ask the page itself, and send our call the way it sends its own (Qwen2API-3ue.4)
…h, as its own front end makes it; chats/new stays an XMLHttpRequest (Qwen2API-3ue.9) - pageCall given a channel is a fetch now: credentials 'include', the call's own signal, no referrer, and the headers of the call that passed on prod on 2026-11-25 — accept, accept-language, content-type, authorization, source, timezone, version, x-accel-buffering: no, bx-v, x-request-id — in that order. The rule of the headers is the one it was: a header the caller brought goes as given, and the page's own (version, time zone, language, the Bearer when the caller brings none) are read in the page. Where a stream brings none, the worker also sets x-accel-buffering: no, bx-v and accept: application/json. - Why: from one headless page of one account qwen.ai refused the call as an XMLHttpRequest — status 200 with the punish envelope FAIL_SYS_USER_VALIDATE / RGV587_ERROR, or an HTML challenge page — with the worker's body or the page's, with x-accel-buffering: no or without it, with the Baxia signature or without it; the same call as a fetch passed. Why the server tells the two apart is not known. The whole-answer call (chats/new) is an XMLHttpRequest still, because it passes; only the stream's branches, which it no longer takes, are gone from its code. One in-page function for both, as before: the rule of the headers is shared and tools/egress-page-diag.js evaluates the same function for both. - Kept: the /egress contract (the JSON of the whole answer, the relay's head/chunk/end/error), one report at a time, timeoutMs as a budget of silence that does not run on the app's turn, the AbortController in the page's registry reached by pageAbortStream, maxBytes -> too_large, and a text/html answer relayed whole at the end (the head, then the body as one piece), with the network-side reading of a kept challenge page (watchAnswer) as it was. - A fetch is one promise: the call is ended from its own signal and waits for none of it. A fetch a page hook keeps pending — as the page's are known to on a challenge page, ignoring an abort through their wrapper — holds nothing; the worker reads the answer off the page's network and cuts the call, and the call ends with that. A fetch that stops as an abort which is not the call's own signal is a page script cutting the request: aborted_in_page (page_fault), as the XMLHttpRequest's own 'abort' event was. The network failure of a stream carries the browser's text again (a fetch has one; the XHR's error event had none): 'Failed to fetch' where the relay's message said 'network error'. The code and the HTTP status are the same. - tests/helpers/fake-xml-http-request.js: a stand-in for the page's fetch beside the XHR's — recorded (script.fetches: what it was asked, whether its signal was aborted), telling the page's network of every answer, and holding a page back for hold/release as the XHR's does. - tests/signin-worker-egress-stream.test.js: +3, all named for the issue and all red on the old source — a stream is a fetch and no XMLHttpRequest is made for it, and the call waits for none of it (a fetch kept pending: cancelled, silent, aborted before the request is out); what the fetch carried; the body in pieces while the answer runs, each the bytes that arrived. Seven scenarios that proved "it was an XMLHttpRequest" are re-expressed for fetch: oversize cut and the kept answer released (script.fetches), the app's abort (the reason is the worker's 'cancelled' on the fetch's own signal), a page script cutting the request (a body that ends with an AbortError that is not the call's), the network failure's text, what leaves the page, and — in tests/signin-worker-egress.test.js — the one for handler properties and readyState, now about the whole answer's XHR alone. - tools/worker-egress-local-smoke.js: the stand-in answers a completions made as an XMLHttpRequest with a challenge page, and one made as a fetch with the page's headers with SSE; the completions scenario holds the worker's relay to the SSE (the old way gets the challenge), to the values on the wire and to the order the call gives fetch(). On the wire the order is the browser's own (Chromium 159, HTTP/1.1 to the stand-in: the same for an XHR). In strict mode the page's hook keeps a blocked fetch pending and ignores the abort, as the real one is known to: the kept challenge is relayed off the page's network in about a second and the next stream runs after it. A stream over its cap is cut inside the page.
…ont end makes it — what was observed on 25.11 and what is not known (Qwen2API-3ue.9) - Design doc: every place that said the call is an XMLHttpRequest now says which call — the whole answer still is one, the stream is a fetch. The POST /egress header list names what the worker adds for a stream alone (x-accel-buffering: no, bx-v, and accept: application/json where the caller brings none). A dated section records what was observed on prod — the page's own call and ours as a fetch passed, ours as an XMLHttpRequest was refused with the worker's body or the page's, with the header or without it, with the Baxia signature or without it — that why the server tells them apart is not known, the form of the passing call, what is kept, how a challenge page is seen on a stream now that a fetch has no events to listen to, and what was verified without a network. - signin-worker.md: the stream bullet and the completions paragraph say the call goes out as a fetch; the smoke's and the tests' descriptions follow.
…e address; the rollout resumes from step 1 with 3ue.9 and jr9 (Qwen2API-3ue.4, Qwen2API-3ue.9)
fix(egress): the streaming completions call leaves the page as a fetch, as the page's own front end makes it (Qwen2API-3ue.9)
…ed "pong" on the first try, on image 8f16590 (Qwen2API-3ue.4, Qwen2API-jr9, Qwen2API-3ue.9)
docs(runbook): the rollout of 25.11 — "pong" on the first try, image 8f16590 (Qwen2API-3ue.4)
… is a 35-second deploy without Stop, not a rebuild (Qwen2API-3ue.8) - Runbook: what a variable change costs now and why it used to cost a rebuild. Coolify writes an ARG for every variable flagged "Build time" into each stage of the Dockerfile, so a changed value drops the cache of every RUN after it; the Dockerfiles had no ARG of their own. Two rules stay: no Stop before a Deploy (the build runs while the old containers are up, only the recreate is downtime), and the first deploy after 00:00 UTC is always a full build because the nightly cleanup prunes the build cache. Steps that said "Stop -> Deploy" now say Deploy. - The record of 25.11 gains the runtime-only rollout: the rebuild of the same commit (4 minutes in the background, 29 seconds down), the measured variable change (build skipped, 35 seconds end to end, 16 seconds down) and the "pong" after it. The morning deploy's downtime is corrected to the 28 seconds its log shows. - Design doc: the Rollout note no longer calls a flag change a rebuild.
docs(runbook): Coolify variables are runtime-only — a variable change is a 35-second deploy without Stop, not a rebuild (Qwen2API-3ue.8)
…age — a whole-answer seam with session recovery, the generation through the streaming relay (Qwen2API-03v) After E.2/E.3 only chats/new and the text completions left through the page. The rest of the qwen.ai calls of images/video and of file upload still went from Node on the app's token, which qwen.ai refuses as a Bearer, over a TLS it does not let through from the prod address: text answered, a picture, a video and a file in the prompt did not. They take the same two roads now, behind the same two flags; no new variable, the worker unchanged. - browser-egress.js: `egressJson` — one whole-answer JSON call to any address of the chat origin, behind the flag of chats/new, with no authorization on it (Qwen2API-jr9); the answer comes back in axios' shape. A refused session, a dead profile and a WAF challenge page get one reload and exactly one retry, as the completions do; a refusal that survives the reload escalates to nothing — the password is spent on chats/new's verdict alone. A challenge is read before the session, as chats/new reads it, so that it never costs a password, and it carries the chat challenge's wait. A worker that cannot carry the call is never papered over — not with a direct request, not with an empty answer: it leaves as a retryable 503 with the worker's code. A non-2xx of qwen.ai is rejected as axios rejects one. - chat.image.video.js: the generation of an image, an edit and a video goes through postCompletions (COMPLETIONS_TRANSPORT=browser) — the same fetch the text completions are, on the one address qwen.ai takes from a fetch alone (Qwen2API-3ue.9); a video's answer is read whole and parsed, as Axios answered it. Chat info and the video task's status go through egressJson: what the egress could not get answered is no longer swallowed as "not ready yet" and polled on for the task's whole allowance. A failed generation is said to the client as what it is — a 502/503, and to a streaming client as the status or an error frame in the stream, never the failure's text for its picture. The direct paths are not touched. - upload.js: the STS token and the file parse go through egressJson; the bytes still go to OSS directly. qwen.ai's silence on the STS call is retried as a timeout always was. A challenge on the parse is named for the parse breaker as the direct path names it. - upstream-error.js: CHAT_CHALLENGE_RETRY_AFTER_SECONDS is exported.
…the worker stand-in; the gate's count is reblessed (1796/138, was 1737/138) (Qwen2API-03v) tests/browser-egress.test.js, on the stand-in worker (standInWorker): - the seam: GET and POST leave from the page with no authorization and come back in axios' shape; a refused session, an HTTP 401, a dead profile, a challenge page and the punish envelope get one reload and exactly one retry and never a password — a challenge served as a 401 included; a refusal inside the recovery window schedules nothing behind the request; a non-2xx is axios' refusal; a worker that cannot carry the call (five codes, unreachable, out of shape) is one call and a 503; the throttle; a sibling's recovery; a target off the origin refused before the worker; - images/video: chats/new whole, the generation relayed (stream: true, the same address and body), nothing of axios; a video's answer read whole and its task polled through the page; the link looked up in the chat; the one retry an internal error always had; a challenge once and twice; a session refused once and twice; a worker that cannot carry the generation or a poll; the quota; a relay failing midway through an answer; an image edit; the OpenAI endpoints; the chat breaker counting the page's answers and releasing a failed probe; a streaming client given the status, not the failure for its picture; each call behind its own flag, and the direct paths as they were (the same Bearer, response type and budget); - files: the STS token asked of the page and the bytes put to OSS directly; the parse and its status from the page; an agent context whole; a worker that cannot carry STS or parse; a challenge twice — the parse breaker's strike, three of them opening the breaker; the 403 and the service's own answers read as before; a 5xx and a silence retried as they always were; with chats/new direct everything stays on axios with the Bearer it always carried. Every mutated guard is caught by these tests (20 mutations, each red): a Bearer on /egress, the generation from axios, a swallowed failure in the lookup and in the poll, an escalation to the password, an unlimited or unrecovered retry, a worker failure dressed as an answer, a challenge or a session read in the wrong order, a lost Retry-After, a failure told to a streaming client as content, an unreleased probe, a stale token, a parse challenge not named for its breaker, a lost retry on silence, STS or parse asked of axios.
…e road of each call, what is verified without a network and what is left for the live check (Qwen2API-03v) - signin-worker.md: what the two transport flags switch since Qwen2API-03v, the road of each call (generation through the relay; chat info, task status, STS token and parse as whole answers; the result download and the OSS upload stay direct), the recovery the seam gives, what a worker failure means to the client now, and the limits that only a live check settles. - browser-egress-design.md: the six call sites, the seam, the generation through the relay, why a worker failure is not swallowed as "not ready yet"; what is verified without a network (59 tests, the gate in the container, the independent read and what it found, the mutations); what no live call has shown yet; the limits. - prod-hybrid-deploy.md: the state of the rollout — the 03v code is in main, not on prod, never tried live; what the two flags switch now; what is left before the key returns.
fix(egress): images, video and file upload through the account's page — a whole-answer seam with session recovery, the generation through the streaming relay (Qwen2API-03v)
…ssions, the worker's relay and a restart, against a stand-in on 127.0.0.1 (Qwen2API-3ue.7) The binaries job of CI ran tools/bun-smoke.js on the real executable and in the real container, but in v1 mode: no v2 sessions, no worker, no recovery. That is how a session recovery that fails only where account.js is not a file on disk lived from E.2 to the live rollout of 2026-11-24 (MODULE_NOT_FOUND in the binary). - tools/bun-smoke-browser.js: the scenario, run by the same invocation for the source, --binary and --docker-image. The application starts with the flags of prod (V2_SESSION_MODE=browser, CHAT_CREATION_TRANSPORT=browser, COMPLETIONS_TRANSPORT=browser, SIGNIN_WORKER_TOKEN set) and both addresses it reads for qwen.ai pointing at one loopback stand-in for the worker and for qwen.ai. An account is added through the worker; its first chats/new is refused as a session and comes back renewed — the log says so, and the account record and the session follow on disk; the relay hands the frames of a stream on as they arrive (the stand-in holds the rest back until the client has the first frame); a relay that ends in an error event costs one more completions call and the client still gets the answer; after a restart the session is back from disk with no sign-in and no reload; a WAF challenge page is a real 503 with one reload, one retry and no password; no Bearer of the app's on any /egress (Qwen2API-jr9), the worker's token on every worker call, chats/new and completions never asked for directly. - tools/bun-smoke.js: how the application is started, stopped and disposed is one piece of code now, shared by the v1 scenario and the browser-mode one. The v1 scenario is as it was; the native executable is copied once per run, and a restart starts the copy that is there. - tools/net-guard.js: nothing this smoke starts on its own may leave the loopback. fetch, WebSocket, the HTTP, HTTPS and HTTP/2 clients, net and tls connects, the resolvers and UDP are wrapped where they start (Bun's clients are native and do not pass through net.Socket#connect the way Node's do); a proxy in the environment is told to leave the loopback alone (Bun's fetch carries even a 127.0.0.1 request through http_proxy). The guard proves itself in the runtime at hand before the smoke starts anything: 23 ways out refused with its own error, the loopback working. A compiled Bun binary loads no preload (checked on 1.3.14), so the application under test is not covered by it: it is kept to the loopback by its configuration, and the stand-in writes down every call it gets. Proof on the real executables, in a container without a network (oven/bun:1.3.14-debian): the binary built from d20f4e8^1 fails the scenario with "v2 会话续期失败 … MODULE_NOT_FOUND" and a 502 to the client, as prod did; the binary of the fixed code passes all seven steps. The same scenario passes from source (Bun 1.3.11, Windows) and as the Debian container built from the executable.
…nt is reblessed (1800/138, was 1796/138) (Qwen2API-3ue.7) tests/net-guard.test.js, each in a child process of its own (the guard wraps the runtime's own clients, and the gate's files share one process): - every way out is refused with the guard's own error and the loopback still works; each refusal is on the guard's record, and nothing but the reserved targets ever was; - the self-test fails, naming the client, when one of the wraps does not hold; - the loopback is exempted from a proxy in the environment in both spellings, and what was in no_proxy stays; - the guard names no real host: its probes ask for addresses reserved for documentation.
…o, the network guard and where it stops, what is verified without a network and what is not (Qwen2API-3ue.7) - browser-egress-design.md: a new section for the smoke of the compiled binary — why the gap was there, the seven steps of the browser-mode scenario and what each holds, the network guard of the smoke's own processes (what it wraps, how it proves itself in the runtime at hand, and that a compiled Bun binary takes no preload, so the application is kept to the loopback by its configuration), what the probes found on the way (Bun's fetch carries a loopback request through http_proxy; no_proxy is read as it goes), what is verified without a network, and the limits: text only, one form of a relay's failure, no Windows executable built locally. - prod-hybrid-deploy.md: the lesson of the repeated rollout of 24.11 — the binary smoke did not run the session recovery — gains where it is closed since: the same `bun run test:bun` runs browser mode on the executable and in the container.
…account, then the refusal as before; one account's refusal answered by the other (Qwen2API-27f) The smoke of the binary and the container (CI's three jobs of it) held the contract as it was: a chats/new refused as unauthorized is answered with its 502 after one chats/new, no retry. Since Qwen2API-27f the request is asked again from its start with another account: with both accounts of the smoke refusing, that is one chats/new an account — the second on the other account, the one that refused passed over by name, which the stub now reads off the Bearer — and then the refusal the client always got; a challenge is not asked again, one chats/new as before. A scenario of its own: the first account's session refused, the other's answered — 200 behind two chats/new on two accounts, one completion, no sign-in. The completions the later scenarios counted from zero are counted from before the delayed replies now (the switch's four came first). Run from the source on the host (Bun 1.3.11): 27 PASS, exit 0.
fix(session, retry, worker): an account whose session sign-ins do not mend is put out of rotation and probed; the request is asked again from another account; the worker says qwen.ai's message (Qwen2API-27f)
…that sign-ins do not mend: the state block, a row of «Часовое наблюдение», the record at the end (Qwen2API-27f) Written before the deploy, as at 00:28 UTC the same day: it rides with the deploy, and the trees of `main` and `production` stay the same. The state block and the record name the lines to look for live — the rotator's mark, the whole retry's lines for `session_refused`, the worker's `— code unauthorized (message: …)`, the line of `hour-stats.js`, `status.cooldownReason` — and the facts read before the deploy: among them the wave of the network failures since 11:49 UTC (Qwen2API-atx), of which the owner was asked and who said «катить сейчас». The new row of the table carries pipes at its cell boundaries only: GitHub splits a cell by a pipe, backticks or not. The patch went by anchors found exactly once, with a rehearsal. Documents only: `tests/no-private-addresses.test.js` and `tests/agents-instructions.test.js` pass, 8 of 8; the runbook keeps LF.
docs(runbook): the record of the second rollout of 01.12 — a session that sign-ins do not mend (Qwen2API-27f)
…re of the first attempt cancelled by a client that has left writes «整体重试不需要 (原因: client_left)» (Qwen2API-056); v2-read.sh retry names a refusing docker logs and ends with 3, puts the retries' lines under V2_READ_RETRY_LINES, and the worker's mask is held by test
…failures, quota, session_refused, in the words of each locale (Qwen2API-jjw); see-anchor.js in tools/ — where an anchor landed is seen before a mutation run
… system has given to another process is not the run, the record is restored over it (Qwen2API-a85); -Subtree for find-cwd-holder.ps1, exact match stays the default; the mutator's self-check spec (31 mutants) in the repository, its anchors held by test; AGENTS.md «Mutations» tells all three
wave 1 — small tasks: the client-left line and the retry mode's refusals and ceiling (056), the panel's cooldown reason and see-anchor in tools/ (jjw), the mutator's pid check and the self-check spec in the repository (a85)
…mall tasks: the client-left line, the panel's cooldown reason, the retry mode's refusals and ceiling; the transfer of v2-read.sh by the same word (Qwen2API-056, Qwen2API-jjw, Qwen2API-a85)
docs(runbook): the record of the third rollout of 01.12 — wave 1, written before the rollout
…etter and the browser's net::ERR_… — the steps of a password sign-in are said as they are reached (Qwen2API-byl) Until now a failure on the road — a page that did not open, a call the page reported as "network error", a token refresh that did not get through — was one line with a status and a time, and nothing of what it was: on 2026-12-01, for 85 minutes, about every second call of every page to qwen.ai was cut ≈8,15 s after it began, on 12 proxies, and the log could not say whether the proxy or qwen.ai cut it (NOTES Qwen2API-atx, «РАЗБОР ВОЛНЫ»). Since this commit the line of a failure ends with: — <what it was> and what it was is the browser's own word of the request that did not get through (net::ERR_…: ERR_TUNNEL_CONNECTION_FAILED and ERR_PROXY_* are the proxy's; ERR_CONNECTION_RESET, ERR_CONNECTION_CLOSED, ERR_EMPTY_RESPONSE and ERR_HTTP2_* lie beyond it), and the proxy the page is behind — by the letter the application sends with the account (`proxyLabel`: the letter `v2-acc.sh state` prints for that proxy, since the worker has no account list of its own to count by). Never an address: the account's is not on a line before and is not now, and the proxy's is hidden from what is quoted. Of a call made in the page that word is read off the page's network (lib/net-failures.js, Playwright's 'requestfailed'), by the x-request-id the worker gives the call: the call itself cannot know it, its XMLHttpRequest says "network error" and no more. The worker waits for the network's word up to failureGraceMs (250), for the two reports of one failure travel apart — and of a network error alone: a call cut by its own timer does not ask the network, for the browser's word of that cut is net::ERR_ABORTED, which is nobody's (a navigation, a script of the page or the call's own timer takes the request: found by a review, for on a real browser every timeout would have read as a word of the road). The last other failure of the page in the call's window is said with it, as the page's: a preflight of the refresh call carries no marker of the worker's. Of a navigation — the opening of a page, a renewal, a sign-in — from the error it throws: the first line of Playwright's message, masked, at most 160 characters and not through a mask's own word. token-refresh failed (network_error, 8183 ms) — proxy C, net::ERR_CONNECTION_RESET auth.qwen.ai/api/v2/auths/refresh token-refresh ok (1213 ms, 14 min left) — proxy C resident-close open_failed (3 pages) — proxy C, page.goto: net::ERR_CONNECTION_CLOSED at https://chat.qwen.ai/ request POST /egress -> 502 8188ms — egress_failed, proxy C, net::ERR_CONNECTION_RESET chat.qwen.ai/api/v2/chats/new egress-stream /api/v2/chat/completions egress_failed (1000 ms) — proxy C, net::ERR_… silent-renew failed (error) — proxy C, page.goto: net::ERR_TIMED_OUT at https://chat.qwen.ai/ signin-step form filled (3400 ms) — proxy C The same word is in the message of the error the application gets, on the first line of it: the application will stop dropping it in the commit after this. A letter sent once stands with the page and with the session, for the calls that send none (a silent renewal has no request to hear it again); a wrong one is as none, and is said as `proxy ?`. The steps of a password sign-in (lib/browser-signin.js#signin, onStep): begun, /auth loaded, form ready, form filled, submitted, left /auth, token read — each with the time since the flow began, for the sign-ins of 2026-12-01 took 2,7 s longer than the day's before them and the log could not say which step had grown. Tests: tests/signin-worker-transport-lines.test.js (20 — the stream after its head and the timer's cut among them); the assertions that anchored a `token-refresh failed` or a failed stream's line to its last bracket accept the tail now.
…nt is behind, by the letter `v2-acc.sh state` gives it; the worker's message of a failure reaches the log instead of a stub (Qwen2API-byl) The worker names a proxy on its lines since the commit before this, by the letter `v2-acc.sh state` prints for it — and it cannot count the letters itself: the rule is by the order of the application's accounts (/api/getAllAccounts), and the worker has no list of them. So the application counts (src/utils/proxy-label.js) and sends the letter with every call of an account — /session, /renew, /egress whole and streamed — as `proxyLabel`: A for the proxy of the first account behind one, B for the next proxy met, accounts on one proxy sharing its letter, the proxy known by the host of its address and its address never named. The rule is the script's, to the letter, so that a letter in the worker's log is found in the script's table of the same moment; what follows from it holds too — an account removed shifts the letters after it. An account with no proxy is `direct`. One that goes by the application's own proxy (PROXY_URL) gets no letter, for the script counts none: the worker then says it was told nothing (`proxy ?`), rather than a made-up letter. account.js says where the list is read (setAccountList), at every call, for the list changes; a list that cannot be read costs no call. And what the worker said of a failure is no longer dropped on the way to the log: signin-worker-client.js#workerFailure replaced the worker's message with "Signin worker rejected the request." whatever it was. Since this commit the message is the worker's — its first line, at most 160 characters, masked a second time on this side (no address, no credentials of a URL, no Bearer) — for since the commit before this that is where the browser's word of the failure stands, net::ERR_…, and the road's diagnosis with it. The stub stands when the worker said nothing. The same text is what the admin routes answer a failed sign-in with (SigninError#toPublicResponse): the administrator, who is who the diagnosis is for. Tests: tests/proxy-label.test.js (3; the sixteen accounts of production by their twelve proxies, letter for letter with the script's rule; the wiring through account.js), two more in tests/signin-worker-client.test.js; the eight exact payloads of tests/browser-egress.test.js carry `proxyLabel: 'direct'`.
…, by the browser's word and by where the line said it; the steps of a password sign-in, with their times (Qwen2API-byl)
The worker says since Qwen2API-byl what a failure on the road was — the proxy
by its letter, the browser's net::ERR_… — and the counter reads it:
transport.proxy.<letter> by proxy — the letter `v2-acc.sh state` prints
for it; `direct`; `?` when the application named none
transport.net.<ERR_…> by the browser's word, by its code
transport.line.<where> by where the line said it: request, stream, page,
tokenRefresh, silentRenew
tokenRefresh.ok.proxy.<L> a token renewed, by proxy: a wave is told by the
proxies that failed and stood in the same minutes
signinStep.<step> the steps of a password sign-in the flow reached,
with their times since it began (rendered as a median
and a longest, in the order of the flow)
Only a failure on the road is counted as one: a line where the page itself
reported a network error (egress_failed; a token refresh with network_error) or
that carries the browser's word — net::ERR_… but never ERR_ABORTED, which is a
navigation's, a script's or the call's own timer's doing. egress_timeout and
browser_error by themselves are none: silence past a timer, a wedged renderer, a
WAF page answering the auth form with 403 (a review found that the worker's code
alone made those a proxy wave). A refused sign-in, a script of the page, a
profile that no longer authenticates — none is, whatever proxy it names. The
verdict says it as a wave — how many failures, on how many proxies, which, and
what the browser said (ERR_TUNNEL_CONNECTION_FAILED and ERR_PROXY_* the proxy's;
ERR_CONNECTION_RESET, ERR_CONNECTION_CLOSED, ERR_EMPTY_RESPONSE and ERR_HTTP2_*
beyond it) — from two proxies or three failures: one or two on one proxy the
other complaints say already. A failed stream's refusal is still read before the
road's part of its line — and a stream's line that says nothing before the road
is read too (a mutation found that it was not). Logs from before the image have
no tail and count as they did; nothing in them is unparsed.
tools/worker-egress-local-smoke.js: its two assertions on a `token-refresh
failed` line accept the tail.
Tests: two more in tests/egress-log-watch.test.js (65), the shape guard
follows the reworded lines.
…orker is the budget's, not the machine's load (Qwen2API-byl) "a worker that does not answer is given up on after a bound; the account is removed all the same" held the removal to under 4000 ms. What is under test is that it did not wait the client's whole default budget (35 s): 4 s was the machine's margin, and under a load it is none — on 2026-12-01 the gate's control run, after three clean attempts, read 4242 ms and went red while the bless was clean. The bound is 9000 ms now: inside the test's own deadline of ten seconds, and far from the budget it is there to rule out.
…the browser's word; the `proxyLabel` field; the chapter of 01.12 with what is not verified live (Qwen2API-byl) docs/signin-worker.md: the block «Строки транспорт-падений (Qwen2API-byl)» — the forms of every line that says what a failure was, the letter of the proxy as `v2-acc.sh state` gives it, the browser's word and what is not one (net::ERR_ABORTED), the steps of a password sign-in, and how the counter reads it all; the older examples of the token's lines carry their tail now. docs/browser-egress-design.md: `proxyLabel` in the contract of /egress; the chapter «Строки транспорт-падений: прокси буквой и слово браузера (Qwen2API-byl, 2026-12-01)» — what happened (the wave, by the numbers of NOTES Qwen2API-atx), what was made, what was checked without a network (the gate 2569 / 183, both Node majors, 72 of 72 mutants, the review and what it changed), and eight things not verified live for the rollout session.
Transport failures say what they were: the proxy by its letter and the browser's net::ERR_… — worker, application, counter (Qwen2API-byl)
…equest bound to the account of its upload, and the sends a handler makes on its own pass over the accounts whose session refused the request (Qwen2API-m2o, Qwen2API-jjw) The existing mid-stream failover of the Anthropic stream — a quota frame, or a transport that broke, before a single block was shown — resent the round naming no account, and the rotator took another: for a request whose pictures were uploaded from an account's page no other account can serve it. Bound to the account (ctx.accountPinned), the failure is the way out, as it is for the daily-limit notice. wholeAnswer.refusedSessions(): the accounts whose session refused this request so far (Qwen2API-27f), for the sends the handlers make on their own — both sends of handleAnthropicStream, the agent runtime's failover (runOpenAIAgentTurn), the empty-output compensation of chat.js. Each takes an account itself, and the rotator's choice is the least recently used: the account that refused a moment ago, once the whole retry switched away from it — asked again, it refused again, and the client got the 502 the retry had just spared it.
…ds the send at once — the send's signal (Qwen2API-056) Until the answer was the reader's nobody ended the call: a page went on waiting for qwen.ai's head for 120–170 s after its client was gone (29.11), busy all the while, on an answer nobody would read. signalForTheSend (utils/client-gone.js): the client's leaving as an AbortSignal for one send of a request — chats/new, and completions up to its head — living as long as the send; awaitWhileClientStays: a call that cannot be cancelled from here is not waited out, and its late answer is kept. axios and the impersonating transport cancel their request on the signal (ERR_CANCELED); the egress ends its wait at once in ClientGoneError and hangs up on the worker's relay the moment the worker hands it over — which is when qwen.ai has answered its head: until then the page waits as it did, the worker taking no other word than its relay going. A send that ended with the signal aborted goes out as ClientGoneError, whatever the transport says of it: nothing failed, nothing logged, nothing charged.
… pass-over list; the agent runtime's guard against a manager that hands back an account the request was refused by is held by a test (Qwen2API-m2o, Qwen2API-jjw)
…he client never heard ends nothing but the call, the relay being hung up on first (Qwen2API-056)
…ng — and what that does not do on the road of the pages: until qwen.ai's head the page waits as it did (Qwen2API-056)
Wave 2: the upload-account pin and the refused sessions in the handlers' own sends (Qwen2API-m2o, Qwen2API-jjw); the send's signal (Qwen2API-056)
… the pair of lines before it — the worker's and the request module's — and neither is named as a refusal; a switch that had nowhere to start and the retry not made for a client gone are counted; the counter falls with a code of its own and fetch-logs.sh keeps the logs on the host while it has not passed (Qwen2API-zps) The precise word of the session-refusal complaint: what it counts is the deliveries whose reason is session_refused — the switch's own answer (a request delivered after a later death carries that death's reason, and is counted by no number of this complaint). The worker's line of the pair only of the code the retry reads (egress_timeout), paired one to one; opens of the two roads are closed by their own reason's delivery. The three lines of a switch nowhere to start read as one run, one line wide, and complained of nowhere — the refusal the switch was asked for is said on its own road. fetch-logs.sh: the counter's exit 3 keeps the directory on the host. v2-read.sh: signin-step in the window filter (the copy on the host goes by a separate word). hour-stats.js: a line each for the road, the run and the client_left. The runbook: the pair's row, the client_left counters, and a row for the three lines.
Contributor
Author
|
Открыт по ошибке (gh по умолчанию выбрал родительский репозиторий); PR этой ветки — в weselow/Qwen2API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qwen2API-zps. База fea3fef (PR #95). Гейт 2596 / 185 (bless по трём чистым попыткам в контейнере Node 24, контроль PASS); мутации 17 из 17 пойманы, контроль зелёный (спека вне репозитория, C:\temp\zps\mutate-spec.js). Прод не тронут.
Пункты промпта «01.12, 18:33 UTC»:
hour-stats.js — три новые строки; рунбук — строка пары, счётчики client_left, новая строка о переключении-некуда.
Пункты 6 (locale хоста) и 8 (гипотеза 170 с) — не кодовые; журналы под рукой посмотрены, вывод в NOTES zps и в финальном отчёте сессии.