A failed move waited moveRetry (6h) before KeepRetiringMoved tried it
again. That was fine while the built-in carried on serving the accounts.
A retired built-in serves nothing, so a move that failed for a moment
(npm out of reach, or the plugin listed in plugins.json but not installed
yet, which the real-account run on 85b8f6d4d hit with Command Code: the
first Move failed, the second worked) left the user's subscription
unserved for up to 6 hours unless they pressed Move.
- retryWait(id) is retiredRetry (10 minutes) for a retired built-in, and
moveRetry otherwise. MoveRetiring and HandOver both use it (retryDue).
- KeepRetiringMoved's next run is brought forward to when a retired
built-in's failed move is due (nextRetiringRun, at least a minute),
instead of always an hour.
- docs/subsystems/provider-plugins.md says so.
TestMoveCutShort now also checks:
- a failed move 11 minutes old waits while the built-in serves it, and
the next run is an hour;
- once retired, the next run is 10 minutes, it isn't tried at once, and
it is moved after retiredRetry.
Broken by hand, each red:
- retryWait returning moveRetry for a retired built-in:
"a retired built-in after retiredRetry: map[]"
- nextRetiringRun always an hour:
"the next run after a retired built-in's failed move: 1h0m0s, not 10m0s"
Run: go test -tags nogui ./internal/provider -run TestMoveCutShort: ok.
What was run for the stack, at load ~300 (it was rebased from bad4508c4
onto 1acd79cdf; the only conflicts were in
docs/subsystems/gateway-routing.md, resolved to main's text with each
commit's own edit, checked word by word):
- At this commit's tree (bda209c1f, on 1e643ba7e; then rebased onto 1acd79cdf, where vet on all three systems and internal/gui ran clean):
gofmt -l clean; go vet darwin/linux/windows clean; go test
./internal/provider ./internal/cli ./plugins/search ok; ./internal/gateway
-run 'Jev|Auto|Review|Plugin|Retire|Move|Search' ok. The full suite
wasn't run again on 1e643ba7e's four new commits (a provider display
name, two Jev changes, auto-mode review), none in a file the stack
touches but the gateway-routing doc; CI runs it before the tag.
- Full suite at 3f0858b6f (on c4aeaec74): gofmt -l
clean, go vet darwin/linux/windows clean, go test -tags nogui ./...
-count=1 -timeout 90m: 64 ok, exit 0.
- Full suite at a42a1090c (on 89521b03d) and ee288bc65 (on 717b69f78):
the same, 64 ok, exit 0. Factory's own min commit (0.1.32) was dropped
in the last rebase: main raised it to 0.1.33 in b5c76935b.
- Full suite at cbf4626a3 (on bad4508c4): gofmt -l clean, go vet darwin/linux/windows
clean, go test -tags nogui ./... -count=1 -timeout 90m: 64 ok, exit 0.
At 4c6c99bbd the same run had gateway red on TestPluginStreamLargeReplies
only (#2551; passes alone, 181.957s).
- GUI: retired-move 4/0 in both engines. The remaining 519 files ran at
85b8f6d4d, two at a time (3864 ok, 109 not ok when this was written;
18 of the reds are browser launch timeouts). Each red file was run
alone at the head, and those still red were run on origin/main
bad4508c4:
- red the same on main, filed: segs-glide 20/20 (#2683), routing-bodies
(#2559, #2658), routing-model-rest (#2115), routing-keys-fold (#1612),
routing-wb-restricted (#1905), provider-advanced-fold (#2552), sidebar
(#2684), s3-sync (#2448), routing-request-metrics (#2571),
rest-try-now (#2564), quota-name-translated and quota-count-wrap
(#2228), lightweight (#2638), codex-predictions (#2624),
gateway-key-models under load (#2648);
- green alone: plugin-list-error, sessions-paging, plugin-kinds-discover,
plugin-kernel, session-terminal, routing-time-went, routing-flood,
routing-context-fold, routing-agent-gone, plugin-local,
plugin-key-hint, name-suffix-no-names, nav-sub-unroll, model-api-gemini,
model-api-preset.
At ee288bc65: retired-move 4/0, routing-compaction 10/0,
library-ime-scroll 18/0; title-bar-tools 4/6, red the same on main
2042123f4 (#2740: a reload cuts off sideGwRead's read).
The stack's only GUI change is the unmoved line in renderMovable, shown
only when /api/providers has unmoved entries.
- Real accounts through the plugins (85b8f6d4d, sandbox HOME): grok,
workbuddy, workbuddy-ai, cursor, zcode 200; devin, commandcode-plan,
mimo-app 200 after a first timeout; qoder 401 shown as lapsed
(plugins#181, the built-in had no 10605 handling either). Not tried:
kiro, factory, zed (no account here).
- The built-in-only WorkBuddy model ids: the plugin reads WorkBuddy's live
list, which doesn't offer them.