Commit Graph
36 Commits
Author SHA1 Message Date
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 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 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 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
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 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 2e94c44ebb sisi done, sisi pick and measured retros: nothing starts before done is recorded, a delegation needs a pick from the wheel, every record carries its numbers, and the objective is the spec's
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:05:42 -07:00
swaitsandClaude Fable 5.2 acde97798b The learned-rules budget fits thirty one-line rules with their reasons: 4,000 characters
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 19:44:51 -07:00
swaitsandClaude Fable 5.2 084bfc1d6d sisi is two loops and nothing else: a forced retro whose improvement becomes a rule at once, with the rules organized by a worker; and delegation by a researched models table, with the lead stopped when it does the work itself. Everything else is removed (it is kept under the tag before-core-rewrite).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 19:42:59 -07:00
swaits 5029988cdc Rebuilt design from target, corrected against code. done / next: docs index 2026-11-23 13:03:32 -07:00
swaits 7e6b9e8a8c Rewrite README, update docs index and contributing, shorten developing guide 2026-11-23 10:57:12 -07:00
swaitsandClaude Fable 5.2 ba84772acf Universal lessons with project handover; whole-document edits; worker discovery and routing
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
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>
2026-11-23 08:59:21 -07:00
swaitsandClaude Fable 5.2 dad13062a1 sisi is still improving: new expansion of the name
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
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>
2026-11-23 08:24:49 -07:00
swaitsandClaude Fable 5.2 11be8e3664 Mechanisms over intentions: request-time lesson delivery, self-referential rules, enforced question dialog
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
sisi prompt hands the matching recipe and lessons to the agent when the
human's request arrives. Every rule ends with the command that prints its
reasons, history, lessons and enforcement; sisi rule lists what enforces each
rule. Ending a turn by asking in reply text instead of the question dialog is
sent back. Rulebook budget raised to 200 lines and 12,000 characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 08:22:57 -07:00
swaitsandClaude Fable 5.2 f7bc6eded1 Short line and topic for every lesson; sisi lessons digest for the human
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
Lessons gain a one-sentence short form and a topic, written at retro time or
by the next learning round (new set-short action, required for every lesson
lacking one). Field notes and one-line headings use the short form; headings
without one are cut at a word boundary. sisi lessons digest groups them by
topic in plain words.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 07:59:46 -07:00
swaitsandClaude Fable 5.2 e5b603486b Shorter README with nothing that goes stale; honest rulebook budget; complete cycle instructions
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
README cut by about 40 percent, with tests that refuse version numbers,
counts, years and a word ceiling. The rulebook budget now counts characters
as well as lines. Folded lessons no longer count as loose notes, reading a
lesson no longer invalidates a cycle, and the cycle brief answers the twenty
gaps the first real cycle reported. Adds `sisi cycle check`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 03:16:06 -07:00
swaitsandClaude Fable 5.2 4a2905ba80 README: no hardcoded version
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:19:19 -07:00
swaitsandClaude Fable 5.2 7a097f94c7 sisi 0.2.0: the self-improvement loop, and every major harness
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
Lessons take effect when recorded, are offered to later agents starting the
same kind of work, are counted as listed and read, and are strengthened when
the mistake recurs: note, rule, enforced check. `sisi cycle` consolidates
them from normal use with no scheduler; `sisi improve` reports the effect.

Wiring for Codex, Gemini CLI, Copilot CLI, Qwen Code, Pi, Cursor, OpenCode
and rulebook loading for nine more tools, with a dry run, preflight checks
and a tested uninstall guarantee. Time to delivery is measured per turn.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 00:06:34 -07:00
swaitsandClaude Fable 5.2 d2ed821480 README: state the name and the purpose first
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:36:50 -07:00
swaitsandClaude Fable 5.2 4429686d33 ci: run 3.9 on macOS and 3.10 everywhere; README states what CI covers
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:33:02 -07:00
swaitsandClaude Fable 5.2 2fc1fe9c2d sisi 0.1.0: a shared rulebook and verification tool for AI coding agents
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.9) (push) Canceled after 0s
Contracts with a ladder of checks, an end-of-turn gate, retrospectives and
shared lessons, time-to-delivery measurement, a library of 140 verification
techniques and 20 recipes, personal data kept outside the clone, and
releases with rollback. Standard library only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:29:02 -07:00