Merged with the cut, orchestration and risk branches. An independent review found
defects that are fixed in the commits that follow before this is relied on.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
A verdict for every module and command at the base commit (held complete by a
test), the ranked defects with evidence, what stays, and the plan in build
order with the owner's recorded statements and where each is answered.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner's specification is saved verbatim (original .docx plus a Markdown
copy with the same words), protected by checksums and a test. Its normative
statements are numbered in docs/spec/requirements.json; a test holds the
list complete and verbatim. The contract now carries the reconciliation goal
and its design section.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
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>
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>
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>
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>
The end-of-turn gate attributes changed files to the session that changed
them: edit tool calls by path, and shell commands by a snapshot of the tree
before and after. A session answers for failing checks, and is asked for a
retrospective, only over its own files. Another agent's work in progress is
allowed once, marked unverified, with a note that the work is not done.
Single-session behaviour is unchanged, shown by a property test.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
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>