Commit Graph
68 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 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
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 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
swaitsandClaude Fable 5.2 ea67ed4798 Rulebook: set a briefed mechanism against the person's standing rules and say what a failed or gamed job does to each number it optimizes
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 22:42:54 -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 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 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
swaitsandClaude Fable 5.2 1fca807b03 Brief-writing rules and newest-model rule move into the product rulebook
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 20:38:22 -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 af066d10ba One rulebook text for lead and worker: a worker is told what is its own and what is the lead's
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:06:14 -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 d08d122f7f Merge spec-reconciliation (9a6bc71: newest version within maker and class) into the discovery merge: routing keeps the vouch, the unproven rule and the free slot beside class order and inheritance; one host-tools file with pattern names; learned and host workers classify like any other. done / next: repeat runs, report 2026-11-23 17:09:30 -07:00
swaitsandClaude Fable 5.2 9a6bc71296 Routing prefers the newest version of a model within its maker and class; maker, class and release date are recorded facts (sisi workers classify, sisi workers classes), never read from a name
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 16:57:04 -07:00
swaitsandClaude Sonnet 5.5 f2a5d3d96d Recency only among versions of the same model (never across makers or classes); --released accepts YYYY-MM; rule text says newest version of a given model. done / next: repeat runs, report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:49:51 -07:00
swaitsandClaude Sonnet 5.5 d36550d00f Classification by recorded facts only: no name parser or tier words, no guessed classes; sisi workers classify prints the question for a cheap worker and --record validates and stores its answer; identity (maker, class) and release date drive supersession, inheritance, tie-break; route and session start ask only when it matters. done / next: proof on a copy, repeat runs, report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:45:08 -07:00
swaits b3a68018c0 Integration 3, 4, 5: a learned worker is a worker everywhere (meter picks, delegation guard names provider/model, fallback uses provider phrases and probe reset, retry line); rule 6 text; playbook and docs/workers.md merged; config test. done / next: 6 (session-start lines), the tests per point 2026-11-23 16:42:28 -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 1cd7ab1446 A background delegation stays pending until its completion message; data entry for *delegate_task; tests. done: item 6 / next: full suite, repeats, timing 2026-11-23 16:33:24 -07:00
swaits fd97cf88f4 One tool list with patterns and name words; worker exemption on every unitguard path; tests. done: items 1-5 / next: item 6 background delegation pending 2026-11-23 16:31:01 -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 7db6584388 Item 5: recency breaks ties (recorded release date, else version inside a class); the rule in rule 6, the playbook and docs/workers.md; session start asks for release dates. done / next: class order and sisi workers classes (item 7)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:28:05 -07:00
swaits 858401d58e workerid: one decision of who is a worker, lazy transcript recognition, opening patterns as data. done: module / next: wire callers 2026-11-23 16:25:19 -07:00
swaitsandClaude Fable 5.2 2891c95887 The meter and the contract guard know this host's own delegation tool, and its messaging and control tools are not direct work
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 16:21:38 -07:00
swaitsandClaude Sonnet 5.5 a03102aba9 Items 7-9: per-provider plans, exact provider scoping of constraints and marks, the owner's vouch (relayed counts to 2), allowance probes (key fetched at probe time, never stored, no redirects, owner approval) and provider failure phrases. done / next: owner setup on a copy of the store, real runs, report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:06:03 -07:00
swaitsandClaude Sonnet 5.5 ce6a5b89b9 Item 1: a model id read into maker, line, class and version (tier words are data); unknown when it cannot be read with confidence. done / next: facts (item 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:04:18 -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 5cbd558a2d Live finding: a refused edit shown by the transcript is not a change (the tree decides), sisi commands may pipe into read-only filters, a cache folder is as ignorable as its files; docs. done: live scenario 1 deadlock / next: rerun live checks, stress, timing 2026-11-23 15:28:52 -07:00
swaits cda6133853 Integration points 1-6: one refusal at a time, routing decision in the meter, ledger kinds, retry-of on retry_choice, router lines at difficulty 1 and 2, rule statements name their code. done: points 1-6 / next: fixes A-D, tests 2026-11-23 15:20:53 -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 Fable 5.2 628fe4a1fa No building without a contract for this work: the first edit and build delegations are refused until a valid, session-bound unit exists; pause cannot skip; park and continue; nobody is their own independent evidence
Proven by tools/live_contract_check.py against a real headless agent session.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 15:00:22 -07:00
swaitsandClaude Sonnet 5.5 c8358ded7d Above difficulty 1 measured proof outranks a benchmark: only workers capable by a judged record (the kind's own, else all kinds) compete when any exists; standing decides only when nobody has a record; exploration stays at difficulty 1. done / next: report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:29:32 -07:00
swaitsandClaude Sonnet 5.5 65c79d2ffb Docs: how the choice is made (capable enough by the best evidence, two scales apart, prices as published). done / next: repeat runs, report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:21:58 -07:00
swaitsandClaude Sonnet 5.5 ed55af910a Item 3: delegating a build needs a valid unit (kind from the routing record, else a brief word list kept as data). done / next: item 4 (pause)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:17:04 -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
swaits 64f87e19b6 Worker availability is internal: the fallback and dialog refusal say do not ask and do not report; rule 6/7 and orchestration.md reworded; route decision, retry-of, judge hint. done: item 9 correction, 10a/10b code / next: 10d, tests for 10, live scenario 2 2026-11-23 13:47:44 -07:00
swaitsandClaude Sonnet 5.5 6aedaafd33 Automatic fallback when a worker is unavailable: detected in delegation results and host notices, recorded with the parsed reset time, fallback handed over, the question dialog refused once; rule 6 and orchestration.md say so. done: item 9 / next: item 10 (route record, retry-of, superseded, new workers)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 13:40:02 -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
swaitsandClaude Sonnet 5.5 e5ddda9293 Orchestration meter on every tool: direct-call and character budget refused with the router's picks, reasons that extend it, workers never metered, delegation guard (no model / own model refused, brief advice). done: items 1-3 / next: 4 delegation records, 5 repeat failure
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 13:22:53 -07:00
swaitsandClaude Fable 5.2 bcc093f436 The new rulebook: nine rules in the order work happens, with an enforcement map and old-id handling
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 12:19:17 -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
swaits 6bd8dee872 Step 3: protected rules under the new ids; retired-id map and stale overlay entries; tests moved to new ids. done / next: abuse and fixture tests 2026-11-23 12:13:11 -07:00