Take the whole plan off only for a shared quota; read date-style resets; fit the size cap

An `out` message widens to every worker on the same provider only when it
states a reset time or names a shared quota (quota, usage window, usage limit,
subscription); a crash, timeout or lost connection takes off just the one.
Resets written as dates ("resets Dec 2, 2pm (America/Denver)") are read.

sisi/ is back at the 3264-line cap: `sisi help` is shorter (README explains each
command), module docstrings keep their first sentence, and dead or single-use
wrappers are gone (rules.delivered, models.speeds/qualities/pools,
install._hooks).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-12-04 07:08:08 -07:00
1 parent 9fb2a61920
commit e2768a1377
9 files changed
+92 -125

No files matched your search

+6 -4
View File
@@ -14,9 +14,11 @@ choose the worker: `sisi pick CLASS` spins a wheel over the workers of that clas
in exactly one class, so the wheel never mixes tiers; weighted by table order and by the cube of the speed ratio),
and a delegation to a worker the wheel did not give gets a note. Recent `bad` verdicts over a worker's last 10
good/bad jobs also scale its weight down (never to zero), while workers with no bad runs keep their full weight. One pick, one delegation. A worker that failed for a
limit is judged `out` with the provider's message: it and every worker on the same provider in the table are off the wheel
until the reset the message states (`resets at 2026-12-07T00:00:00Z`, `Resets in 108h11m37s`, `try again in 45 minutes`),
else for 6 hours, then the wheel tries again (at most 4 times a day), and the pick that hands one out says it is a retry.
limit is judged `out` with the provider's message: it is off the wheel until the reset the message states (`resets at
2026-12-07T00:00:00Z`, `Resets in 108h11m37s`, `try again in 45 minutes`, `resets Dec 2, 2pm (America/Denver)`), else for
6 hours, then the wheel tries again (at most 4 times a day), and the pick that hands it out says it is a retry. When the
message states a reset or names a shared quota (quota, usage window, usage limit, subscription), every worker on the same
provider in the table is off with it; a crash, a timeout or a lost connection takes off only the one worker.
A job already running that no delegation hook saw (a worker you sent a message) is attached to its plan node with
`sisi pick --node ID --started WORKER`. A host that names its models
shortly (Claude Code's `Agent` tool says `sonnet`) may give one whole segment of the picked model id, so name a worker
@@ -105,7 +107,7 @@ its limits are.
| `sisi plan brief` / `sisi plan --record FILE` / `sisi plan` / `sisi plan --done\|--fail ID "…"` | The dependency graph of a piece of work, recorded before any delegation: `\| node \| class \| needs \| branch \| files \| check \| why \|`, one join every node reaches; refused on a cycle, a missing need, a shared branch, or overlapping files between nodes that can run at once. Prints the waves to dispatch together. `sisi pick --node ID` gives the worker and a header for the brief; the hook denies a lead's delegation outside the plan, out of order, unpicked, or without its own worktree, and the end of a turn sends the lead back while ready nodes wait. `sisi judge` closes or reopens the node. A `sisi chore:` brief (models research, plan brief) needs no plan. `"enforce": false` turns denials into reminders |
| `sisi models` / `sisi models research [--record FILE]` | The workers table: at most one row per provider (the plan or account a call draws on) per class (`routine`, `ordinary`, `hard`, `deep`), the cheapest among those within one point of the class's best score (a tie never goes to the dearer one; the dearest tier is its own class, `deep`, never a default for `hard`, `ordinary` or `routine`), the one whose published allowance goes furthest, with its source and quota windows (`5h: N req; week: N req`); the wheel picks a plan less the more of its windows sisi's own delegations have used (never below 5%); research is redone every 3 days by a hard worker. (the shared baseline table ships with sisi in `canon/models.md`), and each worker that is out with when it is back on the wheel; have a worker rebuild it |
| `sisi models offered [--record FILE]` | Save the host's raw offered-model list from stdin and print the chore to match it against the table; `--record FILE` saves the harness's wheel so `sisi pick` only returns models this harness offers |
| `sisi judge WORKER good\|bad\|out "…" [--minutes N] [--newest] [--node ID \| --chore ID]` | How a delegation went (`out` with the provider's own message when it hit a limit: its whole provider is off the wheel until the stated reset, else for 6 hours, then tried again); the minutes are measured from the pick's delegation (or `--minutes N`) and make the wheel favour faster workers. With several of one worker's jobs open, the oldest is judged first (and if another open job has `--node`/`--chore`, a note names the closed job and the remaining ones with their targeting flags), `--newest` the newest, `--node ID` closes or reopens the job running that plan node, and `--chore ID` closes that chore job |
| `sisi judge WORKER good\|bad\|out "…" [--minutes N] [--newest] [--node ID \| --chore ID]` | How a delegation went (`out` with the provider's own message when it hit a limit: off the wheel until the stated reset, else for 6 hours, then tried again; its whole provider too when the message states a reset or names a shared quota); the minutes are measured from the pick's delegation (or `--minutes N`) and make the wheel favour faster workers. With several of one worker's jobs open, the oldest is judged first (and if another open job has `--node`/`--chore`, a note names the closed job and the remaining ones with their targeting flags), `--newest` the newest, `--node ID` closes or reopens the job running that plan node, and `--chore ID` closes that chore job |
| `sisi judge WORKER extend MINUTES "<reason>" [--newest] [--node ID \| --chore ID]` | Give a late job more time instead of judging it: the job that is past its limit (past twice it first, else past once, else the oldest, or the job for `--node ID` / `--chore ID`) gets MINUTES more from now, and its late fault clears |
| `sisi direct "…"` | Allow more direct tool calls this turn, with the reason |