Skip to content

tri fleet: the live prober for the free-model fleet (Refs #12170) - #12375

Merged
gHashTag merged 1 commit into
masterfrom
lane/fleet-scan
Oct 25, 2026
Merged

gHashTag merged 1 commit into
masterfrom
lane/fleet-scan

Conversation

@gHashTag

Copy link
Copy Markdown
Collaborator

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 that
probes 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-c
    output of the law: the ROUTES table, the constants, and probe_result() (C, called through
    ctypes). 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, values
    never printed), one tiny claude -p "Reply with exactly: OK" --max-turns 1 call 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, prints
    the 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-foreign applied per the standing rule ("add the label yourself and do the
foreign 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 generic
theorems 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 scan verb is the USB hardware scan (cli/tri/src/fleet.rs,
Rust). The fleet-scanner host verb lives at scripts/tri_loop/fleet.py, run as
python3 scripts/tri_loop/fleet.py (the receipt form this PR pastes). Registering the name inside
the Rust CLI is foreign debt for its own lane, not smuggled in here.

Receipt: the live matrix (2026-10-25T07:39Z, exit 0)

tri fleet scan 2026-10-25T07:39Z | law specs/queen/api_fleet.t27 (#12170) | pool: ZAI_KEY_1 ZAI_KEY_2 ZAI_KEY_3 ZAI_KEY_5 ZAI_KEY_6 | probe: claude -p x1 per cell, 1 at a time, ~1 rps
route | provider | key | model | verdict | ms | probe_date(UTC)
0 | zai-coding-plan | - | glm-5.3-flash | ALIVE (seeded, no host path) | - | 20261025
1 | zai-coding-plan | - | glm-5.3-highspeed | REFUSED (seeded, no host path) | - | 20261025
2 | z.ai | ZAI_KEY_1 | glm-4.5-flash | REFUSED | 4653 | 20261025
2 | z.ai | ZAI_KEY_2 | glm-4.5-flash | ALIVE | 3981 | 20261025
2 | z.ai | ZAI_KEY_3 | glm-4.5-flash | REFUSED | 3934 | 20261025
2 | z.ai | ZAI_KEY_5 | glm-4.5-flash | REFUSED | 3986 | 20261025
2 | z.ai | ZAI_KEY_6 | glm-4.5-flash | REFUSED | 4181 | 20261025
3 | z.ai | ZAI_KEY_1 | glm-4.7-flash | REFUSED | 4805 | 20261025
3 | z.ai | ZAI_KEY_2 | glm-4.7-flash | REFUSED | 4433 | 20261025
3 | z.ai | ZAI_KEY_3 | glm-4.7-flash | REFUSED | 4530 | 20261025
3 | z.ai | ZAI_KEY_5 | glm-4.7-flash | REFUSED | 4493 | 20261025
3 | z.ai | ZAI_KEY_6 | glm-4.7-flash | ALIVE | 5412 | 20261025
4 | nvidia | - | glm-5.3 | UNPROBED (seeded, no host path) | - | 0
5 | free-claude-code | - | glm-5.3 | UNPROBED (seeded, no host path) | - | 0
6 | openrouter | - | glm-5.2:free | UNPROBED (seeded, no host path) | - | 0
pool free capacity estimate: 2 alive key x model cells -- glm-4.5-flash 1/5, glm-4.7-flash 1/5
timed note: A DEAD-ROUTE PROBE WAITED >1s: max 4805 ms over 8 probe(s)

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)

t27c check specs/queen/api_fleet.t27      -> exit 0
t27c test-report specs/queen/api_fleet.t27 -> exit 0 (6 tests, 0 vacuous passes; 5163 asserts in probe_laws_hold_over_the_whole_answer_space)
python3 -m py_compile scripts/tri_loop/fleet.py scripts/tri_loop/fleet_probe.py -> OK
LC_ALL=C grep -c '[^ -~]' (both files) -> 0 (ASCII, L3)
pre-commit hooks: foreign-budget / own-language / secret-gate -> all green

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.

@gHashTag gHashTag added the owner-approved-foreign Owner-approved exception to the only-t27 rule: hand-written foreign code allowed in this PR label Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-25 10:17:52 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 35
PRs with All Checks Green 15
READY 5
FAILING 35
PENDING 0
NO CHECKS YET 0

These columns do not partition: 5 + 35 + 0 + 0 = 40, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=75249fe1efad != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

… probe per key x model, classification through the generated C via ctypes (Refs #12170)
@gHashTag

Copy link
Copy Markdown
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.

@gHashTag
gHashTag merged commit 6566806 into master Oct 25, 2026
27 of 30 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-25 10:52:33 UTC

Summary

Status Count
Total Open PRs 44
PRs with Failing Checks 36
PRs with All Checks Green 8
READY 4
FAILING 36
PENDING 0
NO CHECKS YET 0

These columns do not partition: 4 + 36 + 0 + 0 = 40, and there are 44 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=75249fe1efad != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner-approved-foreign Owner-approved exception to the only-t27 rule: hand-written foreign code allowed in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant