Repository navigation
tri fleet: the live prober for the free-model fleet (Refs #12170) - #12375
Merged
Merged
Conversation
This was referenced Oct 25, 2026
test(analog): sar_switch mutation test gaps closed, 349 of 400 mutants killed (Closes #12287)
#12349
Merged
Contributor
This was referenced Oct 25, 2026
… probe per key x model, classification through the generated C via ctypes (Refs #12170)
gHashTag
force-pushed
the
lane/fleet-scan
branch
from
October 25, 2026 10:37
2bf8839 to
9a19a9c
Compare
Collaborator
Author
|
Merged by the queue warden under the owner's blanket authorization (2026-10-25 session). Every red on this PR was read and traced before merging; none is caused by this PR's own three files.
All other 26 checks green. The two host scripts are covered by the foreign-exceptions list merged as #12339; gen/c/queen/api_fleet.c is t27c gen-c output. |
Contributor
PR DashboardGenerated at: 2026-10-25 10:52:33 UTC
Summary
Seal Status
|
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.
The live prober on top of the merged fleet law (#12170, host half)
specs/queen/api_fleet.t27(#12180) is the law. This PR adds its host half: the scanner thatprobes the law's routes live and prints the dated matrix. Everything that DECIDES is generated
from the law and committed (L2); the hand-written part is thin plumbing only.
gen/python/queen/api_fleet.py,gen/c/queen/api_fleet.c--t27c gen-python/gen-coutput of the law: the ROUTES table, the constants, and
probe_result()(C, called throughctypes). Not hand-written, not hand-edited.
scripts/tri_loop/fleet.py(31 lines) +scripts/tri_loop/fleet_probe.py(39 lines) --owner-approved foreign plumbing: reads the pool keys from
~/.claude/.env(names only, valuesnever printed), one tiny
claude -p "Reply with exactly: OK" --max-turns 1call per z.ai cell(concurrency 1, ~1 rps, 10 probes per scan, endpoint api.z.ai/api/anthropic, the reviewer bee's
PROVIDER_STRIP env recipe), classifies every answer through the generated
probe_result, printsthe dated matrix, the pool's free capacity estimate (alive key x model cells) and a timed note.
Owner approval (2026-10-25, owner session): "сам!! одобряю тебе сделать все
owner-approved-foreign" (English: "I myself approve you to make everything owner-approved-foreign").
Label
owner-approved-foreignapplied per the standing rule ("add the label yourself and do theforeign part"); the entries landed in tools/policy/foreign-exceptions.txt via #12339.
Foreign debt only shrinks: this PR adds 70 foreign lines and deletes 143 --
scripts/gen_w386_lean.py(one-off Wave-386 scratch generator, "Append Wave Loop 386 generictheorems to Trinity.TernaryInference.lean", zero references anywhere, last touched 2026-08-28)
is deleted whole. Budget arithmetic: 31 + 39 <= 40 per file, 70 <= 80 total, gained 70 <= lost 143.
Naming: the compiled
tri fleet scanverb is the USB hardware scan (cli/tri/src/fleet.rs,Rust). The fleet-scanner host verb lives at
scripts/tri_loop/fleet.py, run aspython3 scripts/tri_loop/fleet.py(the receipt form this PR pastes). Registering the name insidethe Rust CLI is foreign debt for its own lane, not smuggled in here.
Receipt: the live matrix (2026-10-25T07:39Z, exit 0)
Honest reading of the timed note: the <1s dead-route property does NOT hold at
subprocess-wall level -- the claude CLI costs ~3-4 s of process startup per call, so a refused
route "waits" ~4 s wall even though the API refusal itself arrives fast. The note prints the
measurement, not the desired verdict; the rotator's "<1s on a dead route" (the issue's second
criterion, a later lane) should time the API leg, not the CLI process.
Gates (exit codes pasted)
Live finding for the rotator lane
A calibration re-probe 4 minutes after the receipt run (07:43Z) found ZAI_KEY_1 x glm-4.5-flash
flipped REFUSED -> ALIVE (200). The pool's refusals flap on a minutes scale this hour: the matrix
is a dated snapshot (the law's own words: fix incidents by re-probing the matrix, never by
replacing the pool). Refs #12170.