The new organize test rebuilt the rulebook in-process with the real home folder and re-pointed ~/.claude/CLAUDE.md at a deleted temp store.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A commit under the store lock read a store file as another process replaced it
outside that lock. git: "short read while indexing rules/last-project.json"
(CI run 46195092165), then "rules/user.md" from rules organize. The undo
snapshot and organize's two store files are now written inside store.commit,
under the lock. sisi's own unlocked `git status` also held index.lock against
those commits ("Unable to create index.lock: File exists"): git calls take no
optional lock. The first line of git's stderr stays in the message.
Every term is now matched as a whole word (the boundaries used to bind only the first
and last term), so 'build' no longer counts as 'ui'. Eight terms are added for screens,
windows, UI, onboarding, PDFs, printable matter, footers and terminals; write, generate
and produce count as making. The four look groups are one compiled expression. Train
0.95 (38 of 40), held 0.96 (22 of 23), every real row right.
Rule 5 gains one sentence: the brief states the look, chosen with the person from previews.
The delegation hook adds a note (never a block) when the brief makes something, names two
or more screen terms and states no look (no Look:/Design system: line, fewer than three of
the four groups). Five lines are merged elsewhere in hooks.py; the labelled-set test skips
while tests/data/screen_briefs.jsonl is absent.
A verdict (or table) dated 6 h or more ahead of now took a worker out until that date, so a wrong clock could do it for good: such times now say nothing.
`sisi judge X out` for a name that is not one worker of the table was recorded and changed nothing: now refused.
The all-out message named the return of a worker that would still be excluded: it now names only workers pick could hand out.
The refusal for `out until` in a table told a research worker to judge the worker, which would record a made-up verdict: it now says to delete the note.
The wheel test raced its own clock (failed on c5fd556 too); it now uses one fixed time. Code size guard 2265 to 2267.
Co-Authored-By: Claude Sonnet 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.
- Allow sisi-only Bash pipelines (joined with ; or && or piped to grep/tail/head) free on the meter.
- Turn all four PreToolUse refusals in watch (NOSHELL, NODONE, NOPICK/UNKNOWN, METER) into exit-0 PreToolUse additionalContext reminders, recording unpicked/unknown delegations in starts and workers_since so sisi judge still times them.
- Make Stop gate LATE remind once per worker start (tracked in session reminded) so healthy workers running past worker_minutes do not block subsequent turn ends, and ensure every Stop gate message names its exact one-command way through.
- Net 0 lines added in sisi/*.py (1,997 total).
Avoids false retro demands when only .sisi/ or the sisi AGENTS.md note
is written and committed after a retro, while still catching any other
edited or committed file. Net 0 lines added in sisi/*.py (1,948 total).
- Keep [owner ...] lines verbatim during organize --record (allow reordering, refuse missing/edited lines naming the first one).
- Exclude [owner ...] lines from rules_lines/rules_chars budgets (due, organize --record, and display _fit trimming so owner rules are never trimmed out in favour of retro rules).
- Update organize prompt text to instruct workers to copy [owner ...] lines verbatim.
- Claim organize notices per scope for 30 minutes under a non-blocking lock (locks/organize.json) so session start never waits and only one organizer runs at a time; clear on record.
- Snapshot live user+project lists in organize_brief and refuse organize --record if rules changed in between.
Size: +25 lines in sisi/rules.py (within 30-line budget), raising the sisi/*.py ceiling in test_the_product_stays_small from 1,923 to 1,948 for owner-rule protection, 30m organize claim, and stale-record guard.
- 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 refusal used to say to pick from the wheel, which can never give an
unlisted worker. Now it says to rebuild the table, and a marker makes
session start in every session say the same until a table that lists the
worker is recorded. A worker in the table, a shell-started worker and an
empty model keep the plain no-pick refusal. The marker is best effort and
its text is cleaned before it is stored or printed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>