Watch
1
0
Fork
You've already forked souveraine
0
souveraine/tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fimeg 6b9a415aac tools: probe provider balance before a role dies
Three providers ran out of credit in two days (zai, deepseek, opencode) and
in every case the first signal was a failed subconscious pass. Balance
exhaustion is invisible until something dies; absence of complaint reads as
health.

Sends a real one-token completion rather than checking reachability -- GET
/models on opencode returns 200 with a valid key and a bankrupt workspace.
Classifies on wording, not status code: the same condition is 429 on zai,
402 on deepseek, 401 on opencode.

Exits non-zero only when a provider backing a live role (subconscious,
reflection, archivist) cannot answer, or a role names a model absent from
[models.*].

curl rather than urllib: opencode is behind Cloudflare, which answers
Python-urllib's user-agent with 403 code 1010 -- indistinguishable from a
rejected key.
2026-08-13 09:59:16 -04:00
..
provider-balance.py tools: probe provider balance before a role dies 2026-08-13 09:59:16 -04:00
stage-face.sh the rig ships with the repo; it is self-hosted 2026-08-05 20:11:49 -04:00