Commit Graph
57 Commits
Author SHA1 Message Date
sisi 8aa79ab492 Chore briefs carry a one-time id: delegate the first line, worker prints the brief by id 2026-12-02 10:21:31 -07:00
swaits c2f94ac76c Merge branch 'auto-update' into join 2026-12-02 09:15:00 -07:00
swaits a03568ed46 Auto-update: detached daily check at session start releases new main; one-line notice next session 2026-12-02 09:13:08 -07:00
swaitsandClaude Opus 5.5 cadae3cc8c Plan graph before delegating: sisi plan, pick --node, deny delegations outside the plan, gate on ready nodes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:59:35 -07:00
swaitsandClaude Opus 5.5 2a68ead05f revert no longer undoes moves between levels; it names the command back
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>
2026-12-01 16:28:30 -07:00
swaitsandClaude Opus 5.5 064cd6f5ca rules move and organize never lose or duplicate a rule; one move is one undo
ci / test (push) Waiting to run
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>
2026-12-01 16:06:45 -07:00
swaitsandClaude Opus 5.5 c07ce2176b Retro prompts and usage show --level, so the strict level never trips an agent that copies them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:45:56 -07:00
swaits c5fd556196 Track worker availability from judged out verdicts, not table notes
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.
2026-11-27 17:29:37 -07:00
swaits 8362f69c16 Track recurring problems in retro and escalate repeats to faults 2026-11-26 22:17:39 -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
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 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
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 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 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 3c2aa9b395 Integration 1 and 2: one approval path for changes, learned drivers and allowance probes (typed word at the terminal, hook refuses any id, every decision recorded); one description of a host's tools (canon/orchestration-tools.json read by orchestration and discovery). done / next: 3 (a learned worker is a worker everywhere), tests per point 2026-11-23 16:35:47 -07:00
swaits 29101c63e7 Merge t3/discover-learn-new-workers into the reconciled line: conflicts resolved (session-start blocks, after-tool discovery, failure classifier and down-marking). done / next: unit suite on the merged tree, then the six integration points 2026-11-23 16:29:31 -07:00
swaitsandClaude Sonnet 5.5 09376762b0 Items 1-5: workers that appear after install become routable: host listing and delegation learned in the after-tool hook, new PATH tools named once, learned drivers as data with a smoke task and owner approval for approvals-off flags, unproven workers (routine work only, free ones explored one in three), facts line names them. done / next: item 6 live proof, timing, repeat runs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 15:41:17 -07:00
swaits c5df3068ce Merge t3/enforce-orchestration-meter into spec-reconciliation: one before-tool path (worker exempt, contract guard, delegation guard, meter), routing decision read from the meter, retry-of on routing.retry_choice, ledger kind names. done: merge / next: tests on the merged tree, record parts 2026-11-23 15:10:44 -07:00
swaitsandClaude Sonnet 5.5 275f0b43b2 Item 1: a unit is bound to the session that works on it; sisi unit continue | park | resume; stale_hours; contract init names the three ways on. done / next: item 2 (the before-tool refusal)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:12:46 -07:00
swaitsandClaude Sonnet 5.5 9e8f80bbb7 Delegation records, repeat-failure stop, orchestration in the unit record and rule 6, all-tool hooks with migration and per-host meter notes. done: items 4-7 code and tests / next: item 9 fallback, docs, timing, repeat runs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 13:34:36 -07:00
swaits 6cff3a0667 Merge t3/close-rebuild-seam-gaps: grouped help carries workers note/only; routing adjustments, notes, limits, host-native and with_commit all kept. done / next: fix 1 (rule map) 2026-11-23 13:01:27 -07:00
swaits 4061733430 Item 5: sisi help grouped under four headings in 47 lines; long text per command. done 5 / next 6 (learn receipt) 2026-11-23 12:29:17 -07:00
swaits 405a4cac6f Items 4 and 5: worker notes and provider limits (the commit-after-write helper rides along for item 7). done / next: item 7 test 2026-11-23 12:28:18 -07:00
swaits 6787ef0ae9 Item 4: remove guarded seams and dead code between the merged pieces. done 4 / next 5 (grouped help) 2026-11-23 12:26:42 -07:00
swaits c8aef3dc23 Item 1: contract must state risk.profile; init writes the floor; gate lists it. done 1 / next 2 (routing adjustments reader) 2026-11-23 12:20:40 -07:00
swaitsandClaude Fable 5.2 216f39e8f7 The end-of-turn gate rebuilt on risk profiles; non-findings refused as retro findings
The gate enforces exactly what the profile requires, lists everything missing in
one message, closes a green unit when a finding is recorded, lets a paused unit
stop silently, never blocks a subagent, records a release as unverified, and says
at commit time when the checks have not passed on the tree. Size thresholds and
the floors file are gone. 'It went well' and similar are refused as findings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 12:16:29 -07:00
swaitsandClaude Fable 5.2 7a32e6dc1d Learning loop: the thirteen review findings fixed
Replay validation only counts a real failure before the fix, in a trusted project;
a mechanism carries the scope its learning has earned and anything wider, unproven
or weakening waits for the owner; approval shows the full action and refuses a
non-terminal; delivery only from sisi's own ledger; subagent findings are held;
the migration merges by legacy id and reports what it skipped; promote and export
work from learning records.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 12:07:18 -07:00
swaits f39ca03233 gate rebuild 2: profile requirements module, new gate flow, floors removed 2026-11-23 12:00:59 -07:00
swaits 4821a1b6a4 Learning loop: replay validated only when it ran, mechanisms carry earned scope, owner approval shown and gated, ledger of rows sisi wrote, subagent quarantine from session state, migration merges and reports, dead paths rewritten 2026-11-23 11:55:51 -07:00
swaits 91c954344f WIP (worker interrupted by a usage limit): work-unit record, verification vocabulary, scorecard; tests being updated 2026-11-23 11:35:23 -07:00
swaitsandClaude Fable 5.2 29d239ca3b Evaluation harness: benchmark cases, isolated replay, policy comparison, shadow evaluation, independent judging
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 11:31:21 -07:00
swaits 9b3ea74ffc Build the evaluation harness: benchmark cases, isolated replay, comparison, shadow evaluation and independent judging 2026-11-23 11:25:19 -07:00
swaits 6c5d87e5db Merge t3/rebuild-learning-loop into spec-reconciliation
Learning loop rebuilt on sisi/learning.py as the single store; retro,
cycle, scope and documents cut down; improve/backlog/lessons digest
retired, approve added. Conflicts resolved keeping the risk-and-
relevance hook behaviour (silence by default, 2,000-char prompt cap,
structured recipe matcher) on the new learning functions, the union
of both sides' CLI changes, and our rewritten README.
2026-11-23 11:20:24 -07:00
swaitsandClaude Fable 5.2 8f36c5b527 Risk profiles and relevance: sisi risk, the design section retired, hooks print only what a session can act on, recipes matched by structured tags, a recipe for features
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 11:09:26 -07:00
swaitsandClaude Fable 5.2 887d4ff3de Orchestration: one ledger, worker facts, route with a capped candidate set, the delegation contract, the strategy playbook
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 11:06:16 -07:00
swaits e8d29e80e0 Generic orchestration: ledger, facts, routing, brief contract, playbook 2026-11-23 11:03:12 -07:00
swaits 553b397ad0 Learning loop rebuild: record store, retro, cycle, earned scope 2026-11-23 11:02:37 -07:00
swaits 9b5f34b615 Risk profiles and retire the design section 2026-11-23 10:59:33 -07:00
swaits 7e6b9e8a8c Rewrite README, update docs index and contributing, shorten developing guide 2026-11-23 10:57:12 -07:00
swaits 9b69d41950 Retire note, propose, audit, dev mode, build-canon, canon cost and migrate commands 2026-11-23 10:55:41 -07:00
swaitsandClaude Fable 5.2 ec91e526a6 Choosing the approach is a checked step; three tiers for where knowledge lives; patterns
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
A new first rule and a required design section in the contract for sizeable
work, validated structurally and enforced by the end-of-turn check. Lessons
and statements are tiered core, user or project; core items are queued for
the product (sisi promote). The owner's statements take effect at once and
form the principles document. Every retro names the general pattern behind
its incident; learning rounds group lessons under patterns.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 09:48:47 -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