Both sides kept: the reach column, floor verdict and reach line from origin;
`pick --node ID --started WORKER`, running nodes kept on re-record, stated
resets and plan-wide `out` only on quota wording from the fix branch. The
short `sisi help` is kept and names the floor verdict.
Also: a message naming one model's own cap ("your Fable limit", "limit for
this model") takes off only that model, even with a reset time; attaching a
running job prints the node header, reach and all. sisi/ is 3269 lines, the
cap as origin set it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
- Mid-work retros (when checks have no verdict or a plan node is running) keep
done, plan, node states, open jobs, and changed state; only a retro on
finished work closes them (fixes faults 29 and 34).
- Gate no longer auto-closes work while a plan node runs or demands a closing
retro while a non-late delegation is open.
- Add fourth model class 'deep' across models, pick (falls back to hard when no
deep row exists), plan, judge outcomes, record_line, CLI/hooks, canon/core.md,
and research/plan chore briefs, with the efficiency tie-breaking rule.
Co-Authored-By: Gemini <noreply@google.com>
A change that moves rules between levels (sisi rules move, or an organize
that moves lines across levels) prints the exact reverse command when it
succeeds, and revert after it changes nothing and prints the same command.
Revert keeps undoing learn, retro and single-level organize. The multi-file
undo record and its restore loop are gone.
Fixes the five findings of the fix review: a store with no .git starts its
history with the rules as they are (no undo goes past them); revert reads the
undo record even when its bytes did not change; a trailing slash in SISI_DATA
is still the store; organize takes the user lock and refuses a linked
drops.jsonl. Also: rules usage names canon; a non-UTF-8 file is named.
Product code 2427 -> 2426 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Validate source and target before any write; write project files then one store
commit carrying every project file's undo record, rolling all back on a failed
write. Queued core rules load as user rules until moved to canon. Organize
records user-only work outside git so the level audit runs there. Fixes the
ten findings of the strict-placement review, each with an acceptance test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Multiply each worker's wheel weight by a normalized Laplace quality
factor over its last 10 good/bad verdicts, ((good+1)/(n+2))/((n+1)/(n+2))
= (good+1)/(n+1), ignoring out and extend. Workers with no bad runs keep
their full weight (factor 1.0); workers with all bad runs floor at 1/11
so they remain pickable and picks are never refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A worker judged `out` (with the provider's message) is off the wheel for 6 hours,
then tried again: at most 24 h / 6 h = 4 tries a day. A later good or bad verdict
puts it back at once. `sisi pick` says when a pick is a retry and names when the
first out worker of a class is back; `sisi models` lists who is out and until when.
Why: `out until DATE` notes were typed by an agent as a guess, a rebuild copied
them across, a good verdict never cleared them, and a date of today did not count,
so working workers stayed off the wheel for days. A new table may no longer carry
the note (the research brief says so, and recording one is refused); an old table
is still read: its note dates from the table's own time and spends itself in 6 hours.
- Redact secrets and strip lone surrogates in fault text and notes via shared store.clean.
- Make fault reads never raise on non-UTF-8 (0xFF), deep JSON (60,000 '['), or unreadable dirs (mode 000): command prints one line and returns 1; hooks warn with path, keep printing project rules, and return 0.
- Cap request-hook fault output to 10 oldest + 'and N more: sisi fault'; refuse past 50 open faults; bound notes to 300 chars; require positive <=9-digit id and >=4-word notes.
- Make concurrency test deterministic (fails 6/6 with no-op lock) and fix worker tick-before-prompt test order.
- Tighten rule 7, rule 9, and README wording (no over-promising on gate; clear only once no running job uses it).
Size: sisi/*.py stays within the 1,923-line ceiling (1,923 lines, unchanged).
canon/core.md grew from 8,374 chars (before commit f011df5) to 9,872 chars (+1,498 chars across this piece of work; +98 chars in this commit, raising the rulebook char ceiling in test_the_product_stays_small from 9,774 to 9,872).
- In git the project root is always the main checkout's, from any subfolder or worktree; the
git check-ignore branch and the non-git ancestor walk are gone. When git cannot answer, the
nearest folder holding .git; inside a git directory or bare repository nothing is written.
- The root is looked up once per process: session start runs 4 git processes (was 10).
- Every write of a project's list (learn, retro, organize, move) records path/before/after in
rules/last-project.json and commits it, so `sisi rules revert` undoes the last change of any
kind; it restores only while the file holds exactly what the change left, else declines.
- The move from the store is claimed by an atomic rename; the store copy is removed only after
the store commit succeeds; a claim left by a crash is picked up later; BOM and non-UTF-8 safe.
- A linked .sisi is named in one line; the note closes the file it opens; learn into a folder
that cannot be written says so in one line and keeps nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rulebook is delivered to every installed agent tool (a link, or a marked block in a real file, refreshed
whenever it is rebuilt). Hooks are wired for tools whose hook files take Claude Code's shape: Claude Code,
Codex and Qwen Code. The tools and tool classes are plain data in canon/harnesses.json and canon/tools.json.
sisi uninstall takes out exactly what install put in. sisi release records its source remote, and sisi update
fetches and releases the newest sisi from it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Lessons and statements carry a required scope; project items leave the shared
store for a per-project handover pile filed into that project's own docs.
Every learning round ends with a whole-document edit with traced lessons.
sisi workers / route / delegate discover tools, choose the most affordable
adequate worker and record results in the personal store; the host tool's own
subagents come first, the command-line runner is the fallback.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The earlier expansion is retired. README title and name paragraph, help
header and digest line use the new brand, always lower case. Tests fail if
the old expansion returns or the brand line is capitalised.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>