Repository navigation
Description
Observable failure
Pin the talk slot to a lane the router will not serve the model from (lane.talk: anthropic with deepseek/deepseek-v4-flash) and paste any brief into the chat. Measured on the live router, 2026-09-02, shipped dev binary 1978b34, and identically on PR #368's tip 6b35eb5:
- The pre-turn aux call demands anthropic, gets the router's
permits only:404 in ~40 ms, walks (hedged, two arms) to DigitalOcean and lands. - The turn's own call demands anthropic, gets the same 404 in 36 ms, and the turn ends. The transcript records an
errorrow (status 404) and then afailurerow:{"class":"work","reason":"the request itself was refused","action":"report","status":404,"attempt":1}. The conversation shows the brief, one line· error: API error (404): … but your request's provider.only preference permits only: anthropic.and· 15:35 · 59s · $0.0001; the status line readsvia digitalocean … idle. No rung of the ladder, no walk, no second attempt appears in the call ledger.
Every turn of the session ends this way. A person who pinned a lane that cannot serve the model has a conversation that cannot answer, and the only thing on screen is the router's sentence.
This is distinct from #375, which describes a refusal that the ladder recovers and the next turn re-demanding: that is what happens on the hedged aux path. On the turn path nothing recovers. It sits on #368's seam (the refusal object) and the fix builds on that object after #368 lands; #368 does not cover this class, by design (its replication drives the race, not a pin).
Replication
The pilot recipe of the pin experiment: an isolated AFORGE_HOME whose config.json carries model.talk and all four models.tiers.* = deepseek/deepseek-v4-flash, tools.approvalMode: allow, setup_seen_at, and lane.talk: anthropic; aforge chat -yolo -one-model -model deepseek/deepseek-v4-flash -max-cost 1 in tmux against a checkout of a small issue (the canary pool's anchor 1, Human-Agent-Society/reef#145); paste the brief, enter. The turn fails within a minute of the paste. Any lane absent from GET /api/v1/models/deepseek/deepseek-v4-flash/endpoints reproduces it.
Evidence
Call ledger rows (<home>/logs/calls.jsonl) from the dev run, abridged:
start lane=anthropic
end lane=anthropic status=404 ms=44 "No allowed providers are available … permits only: anthropic."
start lane=DigitalOcean hedged arms=2
end lane=DigitalOcean status=200 ms=33162
start tag=turn lane=anthropic deadline_ms=10000
end tag=turn lane=anthropic status=404 ms=36 "… permits only: anthropic."
and nothing after. Transcript: error then failure as quoted above. The same shape on #368's tip, and the same on a second dev run. Kept by the reporting session under its scratchpad pin/pilot/ (cell/ for the #368 tip, door-dev/ for dev, pane-full.txt for the screen).
For contrast, an experiment build that retires the pin for the model on the first terminal refusal (branch exp/pin-yields-line) runs the same brief to completion on DeepInfra and CoreWeave.
Guessed cause (the reporter's, labelled a guess)
The turn's call is unhedged (no race, deadline_ms 10000), so canWalk is false and the routing 404 falls through to the failure classifier as a refusal of the request itself, rather than to recoverFromRefusal's rung one (drop the provider object and retry once). A second observation from the arm build supports the neighbourhood: a routing refusal that the ladder does absorb never reaches refuseUpstream, so the strike and the serving-set write in #368 never fire for this class when there is nowhere to walk.
Acceptance (functional, required)
The same anchor through the chat door with lane.talk set to a lane that cannot serve the model: the turn runs on another lane and finishes the work; the ledger shows the first 404 and then a request carrying no provider.only for that lane; the lane is struck (written out of the serving set); the person sees one line saying what happened rather than the router's sentence. A tmux golden frame of the status row and the conversation line.
Drafted with CodeAF · reviewed and owned by the author
Activity
santoshkumarradha commentedon Sep 2, 2026
Trace from the #368 owner's session, confirming both findings against the code (quoted with permission so the fixer does not re-find it):
internal/provider/client.go:440-459: when a routing refusal arrives on the unhedged path, the block hands the refusal back ifstreamWatchFrom(ctx).canWalk()(the walk then strikes in hedge.go) and otherwise callsrecoverFromRefusal, the ladder. Neither branch callsrefuseUpstream. The strike fires only fromclient.go:1069,client.go:1344andretry.go:280, all paths where the refusal surfaces as an error. So a routing refusal absorbed by the ladder, exactly the case with nowhere to walk, never reachesrefuseServing, andlanes.Serves(model, "Ghost")stays true. #368's acceptance passes because its staged scenario always has somewhere to walk, so its stub cannot reach the branch that drops the strike.Design answer from the same session for the unhedged branch: rung one, drop the provider object, retry once, with two conditions. The strike fires BEFORE the rung is offered (the fact "this machine refused this model" is true whatever happens next, and is recorded once at the seam where it is known). The retry is one attempt at rung one, not a re-entry into the ladder: a refused pinned turn widens to the model's other machines and tries again; if that also fails the turn ends with the refusal named. What must not happen is today's shape: the turn dies while the demanded lane is still marked as serving, so the next turn makes the same demand and dies the same way.
Lands on top of #368's merge, not inside it: the gap predates #368 (dev 1978b34 does the same), and a strike plus a retry on a live path needs its own test and its own real-wire proof.
The pin ruling (#375, the running experiment) and this fix are two halves of one behaviour: an experiment build that retires the pin for the model on the first terminal refusal runs the same brief to completion on the live wire.
santoshkumarradha commentedon Sep 2, 2026
Decision and fix shape (user decision, 2026-09-02 18:35, relayed by the coordinating session)
When the pinned provider cannot serve the model, use another provider and say so. This is arm B of the pre-registered experiment. Arm C (yield silently) is out by the no-silent-substitution law; arm A (the shipped behaviour above) is the defect.
Fix shape, on top of #368's refusal object, as built in experiment branch
exp/pin-yields-line(082a005) and to be landed as a PR carrying only the pin policy:internal/provider/lanepin.go: a retired set keyed by (pinned lane, ledger model), written where the response has just been classified as a terminal routing refusal of the demanded lane (Client.sendRecovered, before the fork between the walk and the ladder) and read inClient.laneChoiceFor, so a retired pair falls through to the auto choice.SetLanePinclears it. Nothing on disk changes; the pin still applies to other models.refuseServing), then one retry at rung one; if that also fails the turn ends with the refusal named.RescueNewswith aretiredreason, rendered byinternal/tui3/lanes.go:X cannot serve this model; routing on auto for this model until you pin again.internal/manual/chat/lanes.md, and the row inmodels-and-cost.md) gains the same clause.Acceptance (functional, required; both proven on the live router with deepseek-v4-flash through the tmux harness)
refused · trying coreweave…. Either it is drawn for less than the 3 s sampling interval or not on the live path.permits only404 in total. In the experiment each task child re-paid one 404 (B and C averaged ~3 re-demands per cell instead of 1), because retirement is per process and a child runs in its own session.The experiment, for the record
Report: the reporting session's scratchpad,
pin/run1/report.md, withreport-table.md(per cell),prereg.md(pre-registration and amendments),baseline-35c1a79e.md,sealed.jsonand every cell's ledger, transcript, frames and grade undercells/<id>/. 32 cells, four arms × four briefs (reef-145, attrs-1416, click-3740, tox-4031) × two replicates, chat door, flash on every seat, live OpenRouter,lane.talk: anthropic, total spend $0.73, sealed map opened after the last record.Arm means (n = 8): A pin absolute 0/8 tests pass, $0.0001, wall 902 s, 2.1 re-demands, 1 visible sentence (the router's 404 text); B yields with line 8/8, $0.0356, 668 s, 3.2; C yields silently 8/8, $0.0271, 598 s, 3.0; N unpinned 8/8, $0.0288, 688 s, 0. Noise band: cost $0.0105, wall 109 s. Pareto front on (cost, wall, 1−quality): A, B, C, N, with A there only because a dead turn is free; tiebreak (quality, cost, wall): C, N, B, A; B and C tie inside the band on every metric, and both tie with N.
Pre-registration amendments, verbatim:
Amendment before the first cell (2026-09-02 15:52 EDT)
The pool holds nine validated anchors in this order: reef-145, attrs-1416, packaging-1318, click-3740, tox-4031, build-860, virtualenv-3072, astroid-2305, sphinx-11437. The rule "first k in pool order" would take packaging-1318, whose fail-to-pass set is 53,420 tests and whose grade is slow enough that eight cells of it would dominate the run's wall for a reason that has nothing to do with the arms. It is skipped, and the briefs are the next four in pool order: reef-145, attrs-1416, click-3740, tox-4031. Declared here before any cell ran; the sealed map was written with these four. Cells run three at a time; the box's one-minute load is recorded at each cell's start and end and reported beside wall.
Scoring note added during the run (16:20 EDT), before any cell was scored
aforge-v2-14 reports that pytest's cleanup of the shared /tmp/pytest-of-santosh can die under other sessions' pytest runs and leave a grade reading "0 passed 0 failed" with an rm_rf traceback in f2p.log. The driver copy this run uses predates the per-cell TMPDIR fix and is not edited while cells are in flight. Rule: after the last cell, every cell whose judge shows zero tests collected and an rm_rf traceback in f2p.log is re-graded with CANARY_REGRADE=1 through the canary lib on dev (no door re-run, no spend), and the report lists which cells were re-graded. A grade is never changed by hand.
Amendments at scoring (18:25 EDT), declared before the front was read
routing: a pin the router refuses for a model yields to another lane (#…
routing: a pin the router refuses for a model yields to another lane,…
fix: a machine that was never asked, and a demand that is finished an…
fix: a machine that was never asked, and a demand that is finished an…
router: an ignore list never empties the set the request is sent to (#…