docs: measured billing wall (wallet burned on first turn), operation-control 503, To: filter for codes

This commit is contained in:
ENI
2026-11-21 14:19:20 +02:00
parent 3fde9c5635
commit 370858c0df
+26 -9
View File
@@ -119,17 +119,34 @@ Models exposed (all 1M context): `kimi-k3.1-pro`, `qwen3.8-max`, `qwen4-max`, `g
`gpt-6.1-sol`, `deepseek-v4.1-flash`, `deepseek-flash`, `glm-5.3-flash`, `minimax-m3.1-flash`,
`qwen3.8-flash` plus aliases `flash`/`advanced`/`pro`.
## Known blocker: credit hold
## Known blocker: the whole wallet is burned on the first turn
When a chat session is created, QwenWork **blocks the whole remaining balance** on that account
(`/user/billings` -> `{"type":"Blocked","amount":-699.83,"detail":{"title":"Credits blocked"}}`)
if the turn is not completed through the WebSocket session protocol. The hold is *not* released by
`DELETE /api/chat-sessions/{id}`, `PATCH`, or any REST endpoint we found; REST sessions also keep
`end_time=null` forever. Practically: one botched/half-read session zeroes the account.
Measured twice on fresh accounts (700 = 200 daily + 500 welcome). The session itself is free to
create — `POST /api/chat-sessions` returns 201 and the balance is still 700. The moment the agent
starts working, the **entire wallet is moved to `Blocked`**:
Mitigation used here: wait for a real `agent_message_chunk` (not just `result/prompt_response`),
close the session afterwards, and never issue a second session on an account whose previous turn
returned no text. Proper fix is the `/api/chat-ws` protobuf session lifecycle.
```
[start] remaining=700 active=2 daily=200 long=500
create 201 remaining=700 active=2 daily=200 long=500
(after ~1s) remaining=0 exceeded=True
turn result 3.9s, 117 chars of answer <- the turn itself works
DELETE long -0.0353 <- and adds another 0.0187 charge
billings: Blocked -700 "Credits blocked" + Chat -0.0166
```
No REST path returns it: `DELETE`, `PATCH`, `PUT`, `stop`, `cancel` leave `remaining 0`. The one
control endpoint that exists, `GET/PUT /api/chat-sessions/{id}/operation-control`
(`owner_type` = `personal_assistant` | `user`, fields `session_status`, `release_at`, `revision`),
answers `503 SERVICE_UNAVAILABLE "Personal assistant is not available at this site"` on this account
type — that is the likely hook for the release, so it deserves a retest on a bound account.
Practical consequence: **one account = one usable turn** (any of the 13 models, up to ~1M context),
and the remaining ~699 credits are stranded. Price of a turn: 0.013–0.04 credit, cost of the account:
$0.003 of 2captcha. Treat the pool as a per-request budget, not a metered API.
Also: the code email must be matched by its `To:` header. With one Gmail donor and plus-aliases a
naive "newest 6-digit code" picker grabs the code of the *previous* account and the server answers
`400 invalid verification code` — a third of all wave slots died this way before the filter.
## Notes