Attach a running job to a plan node; honour a provider's stated reset for its whole plan
Fault 36: `sisi pick --node ID --started WORKER` records that a job already running (a worker sent a message, which no delegation hook sees) does the node; re-recording a plan keeps a running node whose id and branch are unchanged. Fault 37: `judge WORKER out` keeps the worker off the wheel until the reset its message states (ISO time or "resets in ..." span; else 6 h), together with every worker on the same provider in the models table. Also: tests/test_models_research.py no longer reads the running agent's CLAUDE_CODE_ENTRYPOINT. The line-count cap (test_the_product_stays_small) is left for the join: sisi/ is 3330 lines against 3264. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fffb97f522
commit
9fb2a61920
7 files changed
+174
-36
No files matched your search
@@ -14,8 +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 is off the wheel for 6 hours, then the wheel tries it again (at most
|
||||
4 times a day), and the pick that hands it out says it is a retry. A host that names its models
|
||||
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.
|
||||
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
|
||||
by its full model id (`claude-sonnet-5-5`); anywhere else the name must match whole.
|
||||
|
||||
@@ -91,7 +94,7 @@ its limits are.
|
||||
| `sisi done --goal … --check … [--check …] --next …` | Record what done means and what comes next; nothing starts before |
|
||||
| `sisi done --pass N "…"` / `--fail N "…"` | Give a check its verdict and evidence; `sisi done` alone shows it |
|
||||
| `sisi fault "<what is wrong>"` / `--started\|--blocked\|--fixed N "…"` | Record an open fault in this project, start a fix, name a blocker, or close it; `sisi fault` alone lists them |
|
||||
| `sisi pick routine\|ordinary\|hard\|deep [--review-of WORKER] [--not WORKER] [--limit MINUTES] [--branch REF]` | The wheel gives one worker (a `deep` pick falls back to `hard` when the table has no `deep` row); a review goes to a different maker. `--limit` sets this delegation's lateness limit (default `worker_minutes`) and `--branch` names the branch whose last commit shows its progress; picks of one worker are matched to its delegations in order. A job past twice its limit becomes a late-worker fault in the session that started it (only that session is stopped by it; `sisi fault --fixed N "…"` from any other session clears it) |
|
||||
| `sisi pick routine\|ordinary\|hard\|deep [--review-of WORKER] [--not WORKER] [--limit MINUTES] [--branch REF]` | The wheel gives one worker (a `deep` pick falls back to `hard` when the table has no `deep` row); a review goes to a different maker. `--limit` sets this delegation's lateness limit (default `worker_minutes`) and `--branch` names the branch whose last commit shows its progress; `sisi pick --node ID --started WORKER` records that a job already running does the node, without spinning the wheel; picks of one worker are matched to its delegations in order. A job past twice its limit becomes a late-worker fault in the session that started it (only that session is stopped by it; `sisi fault --fixed N "…"` from any other session clears it) |
|
||||
| `sisi retro` | Print what happened in this piece of work and known problems, to set against the objective |
|
||||
| `sisi retro --gap … --cause … --improve … --term T --problem N\|"…" --level core\|user\|project` | Record the gap, the term of the objective it fell short on, and the problem (`N` to cite an existing one or words to open a new one); the improvement is a rule at once, and a 2nd miss (3rd citation) opens a fault |
|
||||
| `sisi retro --no-gap … --term T --better …` | Nothing fell short, but work can always be done better: name the term and the one concrete thing that would have scored better (recorded with the retro; it becomes a rule only if it recurs, when the rules are organized) |
|
||||
@@ -102,7 +105,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: off the wheel 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: 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 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 |
|
||||
|
||||
|
||||
Reference in new issue
Block a user