Commit Graph
52 Commits
Author SHA1 Message Date
sisi a5882e3cfd Review fixes: late faults per session, one-commit learn --means, FIFO pending, extend targets late job, said guards, flags header, README
ci / test (push) Canceled after 0s
2026-11-25 22:54:07 -07:00
swaitsandClaude Opus 5.5 a63134ee6e Size guard: room for the GIT_DIR fix
ci / test (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:37:18 -07:00
swaitsandClaude Opus 5.5 2485fbf352 Size guards: product 2090 lines, rulebook 136 lines / 10530 chars after the incident fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:30:02 -07:00
swaits 4810a03fde Merge branch 'fix/long-workers' into fix/parallel-incident
# Conflicts:
#	tests/test_core.py
2026-11-25 22:28:24 -07:00
swaits ed189976f8 Workers: 90m default, per-job --limit/--branch, extend, prompt status, 2x fault gate 2026-11-25 22:27:46 -07:00
sisi 848560a975 learn: owner tag only for words found in the person's recent messages; agent-attributed tag otherwise; --means line; organize flags concurrency smells and doubtful owner lines 2026-11-25 22:16:18 -07:00
swaits 23332bd0b4 Hooks: convert PreToolUse blocks to help, allow sisi pipelines, remind LATE once
- 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).
2026-11-25 17:23:10 -07:00
swaits 8f7a99bb60 Models: ship shared baseline table in canon/models.md and split research
ci / test (push) Canceled after 0s
2026-11-25 16:51:07 -07:00
swaits 8fe62f6ad9 Deduplicate session environment exports
ci / test (push) Canceled after 0s
Append each session export once under the file lock, refusing links and unsafe files. Keep the product at 1948 lines.
2026-11-25 11:46:13 -07:00
swaits 712cc75c12 Tests: pick routine worker deterministically in judged delegation test
ci / test (push) Canceled after 0s
2026-11-25 11:37:18 -07:00
swaits b2c6af089f Snapshot: compare filtered tree via ls-files instead of HEAD commit id
ci / test (push) Canceled after 0s
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).
2026-11-25 11:32:32 -07:00
swaits 17bd7f82a4 Rules: protect [owner] lines during organize, claim notices for 30m, refuse stale records
ci / test (push) Canceled after 0s
- 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.
2026-11-25 11:19:45 -07:00
swaits 5f488476e8 Faults: review fixes (redaction, crash-proof reads, bounds, validation, wording)
ci / test (push) Canceled after 0s
- 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).
2026-11-25 11:08:45 -07:00
swaits 9a2fd3fa6e Tests: give hang-detection and subprocess timeouts room under load
ci / test (push) Canceled after 0s
2026-11-25 10:54:38 -07:00
swaits 751c4608ec Rulebook: require measured outcomes in rule 3 and capability-first improvements in rule 8
ci / test (push) Canceled after 0s
2026-11-25 10:48:24 -07:00
swaits cf27d4a767 Faults: add automatic disk-free, disk-drop, and checkouts tripwires
ci / test (push) Canceled after 0s
2026-11-25 10:34:51 -07:00
swaits 4ab516c803 Faults: add per-project open-faults list, hooks, retro listing, and rulebook text
ci / test (push) Canceled after 0s
2026-11-25 10:09:50 -07:00
swaits f011df5a46 Rulebook: add rule 9 (Fix what you see) and clarify own cleanup
ci / test (push) Canceled after 0s
2026-11-25 09:57:39 -07:00
swaits 2bec0823f3 Fix hostile project files, non-blocking tick lock, store commit lock, and revert checks 2026-11-24 21:15:24 -07:00
swaits e969aa2bd4 Simplify project rules locking, migration, undo validation, and commit checks 2026-11-24 20:40:20 -07:00
swaitsandClaude Opus 5.5 b588cec7a8 Project rules: one list per repository, claimed migration, undo that checks the file
- 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>
2026-11-24 19:58:19 -07:00
swaits a540bd45ff Fix AGENTS.md note handling, snapshot cost/false-alarm, and read-only doctor 2026-11-24 19:12:25 -07:00
swaits c1cd6d7ee3 Keep a marked .sisi/rules.md note in project root AGENTS.md 2026-11-24 18:49:27 -07:00
swaits de58a13e82 Store project rules in <project root>/.sisi/rules.md with safe migration and revert 2026-11-24 18:38:31 -07:00
swaits aa6c268f58 Review fixes: the agent marker counts only at the very start of the first request; quick work is timed from its first request, and a failed check or a backwards clock still sends it to the retro
ci / test (push) Canceled after 0s
2026-11-24 13:41:03 -07:00
swaits dacfc84594 Merge the delegation and retro cost record 2026-11-24 13:39:05 -07:00
swaits 058b7a80cf Record lead session id, timestamps, model id, and retro_seconds in outcomes.jsonl and retro.jsonl 2026-11-24 13:36:02 -07:00
swaitsandClaude Sonnet 5.5 927eb1bb0b Work that took under retro_minutes (5) from sisi done, passed every check and delegated nothing closes without a retro
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 13:34:01 -07:00
swaitsandClaude Sonnet 5.5 6a5ed356a2 A lead waiting on a delegation that is open and not late is not stopped for checks without a verdict
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 13:32:13 -07:00
swaitsandClaude Sonnet 5.5 85b9f1489d A session whose first request says an agent, not the user, sent it is a worker, so the direct-call limit no longer kills a delegated worker
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 13:31:46 -07:00
swaitsandClaude Fable 5.2 abd48cba8f A delegation to a worker the models table does not list says the table is out of date and marks it for every session
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>
2026-11-24 10:42:09 -07:00
swaitsandClaude Fable 5.2 7a8afcbe69 Fix the wheel test for the cubed speed factor
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 06:52:20 -07:00
swaitsandClaude Fable 5.2 c5f0461a4e The wheel's speed factor is cubed, so a worker five times slower wins under 5 percent of spins
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 06:50:31 -07:00
swaitsandClaude Sonnet 5.5 3a3c9d0070 A short model name matches a segment of the part after the pick's last slash only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 06:49:12 -07:00
swaitsandClaude Sonnet 5.5 210290e8af sisi release through the installed command finds the checkout from the path SOURCE records on its second line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 06:48:39 -07:00
swaitsandClaude Sonnet 5.5 6aeff7afd4 Wheel speed factor is the squared ratio of medians, floor 0.02
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 06:47:24 -07:00
swaitsandClaude Sonnet 5.5 5e73ccfb4a Gate blocks on a worker started over worker_minutes ago that has not been judged; paid for by trimming wrapped code
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 06:45:51 -07:00
swaitsandGLM-5.4 0075926570 Fix four faults: sisi judge names the job it times (--newest: the newest open one); retro says once that no done was recorded; a short model name from tool_input matches one whole segment of the pick; sisi release through the installed command releases the checkout it came from instead of copying itself
Co-Authored-By: GLM-5.4 <noreply@z.ai>
2026-11-23 23:12:42 -07:00
swaitsandClaude Sonnet 5.5 911e1d81b1 Fix the review's faults: only good outcomes set speed; damaged history files skipped; stale starts cleared; judge input bounds and redaction; --better wording
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 21:30:48 -07:00
swaitsandClaude Sonnet 5.5 b5fd3605db A model is in exactly one class: the wheel never mixes classes; --record refuses a row in several
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 21:20:04 -07:00
swaitsandClaude Fable 5.2 b3e00f0d85 Merge the speed build: sisi judge records minutes and the wheel favours faster workers
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 21:11:22 -07:00
swaitsandClaude Sonnet 5.5 52d343f6ae Time each delegation from its pick; the wheel favours faster workers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 21:10:36 -07:00
swaitsandClaude Sonnet 5.5 bc3856c293 Retros name a term of the objective; a no-gap names one better thing; the printout and trend are laid out by term
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 21:09:46 -07:00
swaitsandClaude Opus 5.5 d8d1459a34 Fix the review's faults: pause, PATH, worker sessions, empty table, shell workers, out dates, failed-check count, pick matching, maker column, gate text, free sisi commands, done input
- retro --later sets `paused` (gate silent until an edit, delegation, done verdict or retro); blocks no longer reset
- install links ~/.local/bin/sisi to the launcher; denials name the full path when sisi is not on PATH; doctor reports it
- current_session's fallback skips worker sessions; core.md says done and pick are the lead's
- models: columns by header name, optional maker column, no hard-coded maker; record refuses unusable tables and inexact out dates; pick says why nothing is left; --review-of must name a table worker
- a shell worker is found in any command segment after nohup/exec/time/env/VAR=; general launchers never count
- picks match whole names only and a retro clears them; fails_since survives re-done and later passes
- free sisi commands are parsed with shlex; `sisi done --pass ²` is a usage error

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 20:46:46 -07:00
swaitsandClaude Fable 5.2 e8ae1cab7d The objective test follows the new last sentence
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 20:40:23 -07:00
swaitsandClaude Fable 5.2 d3001a006a The objective keeps the spec's risk-fitted evidence and its ban on judging by one number; rule 3 no longer exempts trivial work
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 20:39:48 -07:00
swaits 9932dfc2de Merge branch 't3/any-harness-rulebook-hooks' into spec-reconciliation 2026-11-23 20:32:59 -07:00
swaitsandClaude Fable 5.2 26d0c7ca4e Rules that apply to every sisi user move from the owner's learned list into the product rulebook: fix obvious defects at once, names stay fixed, size budget from a spec, mechanisms over instructions, release each piece when its checks pass, no chained workers, own checkout per long build, no show of humility
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 20:32:22 -07:00
swaitsandClaude Sonnet 5.5 aecb666c86 sisi works for any agent in any harness: one hook-input normaliser, a table of tool classes, a table-driven installer for every tool installed, sisi update, XDG paths
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>
2026-11-23 20:31:50 -07:00
swaitsandClaude Sonnet 5.5 9173acf14b The rulebook's line budget is 110: the worker paragraph and the done rules need the room (characters stay under 7,000)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:06:40 -07:00