194 lines
14 KiB
Markdown
194 lines
14 KiB
Markdown
# Changelog
|
|
|
|
All notable changes to this project are recorded here. The format follows
|
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
|
|
[Semantic Versioning](https://semver.org/).
|
|
|
|
## Unreleased
|
|
|
|
### Removed
|
|
|
|
- `sisi note` and `sisi propose`: use `sisi retro` or `sisi learn`. Existing notes and proposal
|
|
files in a personal store are no longer read.
|
|
- `sisi audit` and the audit module.
|
|
- Developer mode (`sisi dev on|off|status` and the developer-source entry in personal config).
|
|
`sisi release` and `sisi promote` now act on the product folder of the launcher that is
|
|
running: run `bin/sisi release` from the clone. Release, rollback and the stable copy remain.
|
|
- `sisi build-canon` and `sisi canon cost` as public commands; the functions remain for install
|
|
and other code, and `sisi doctor` now shows the always-loaded size.
|
|
- `sisi migrate` as a command; `sisi update` performs the migration.
|
|
|
|
### Changed
|
|
|
|
- The package version is read from the VERSION file, the one source of truth.
|
|
- The README is rewritten and shortened; contributions are judged against SPEC.md by
|
|
requirement id.
|
|
|
|
- Request-time delivery no longer hands over a recipe on a weak match or for a question that names
|
|
no work; reading lessons can no longer stale a learning round; the due test counts only lessons a
|
|
round can act on.
|
|
- `sisi install` updates extension files written by earlier versions instead of refusing them.
|
|
- The name now expands to "sisi is still improving"; the earlier expansion is retired.
|
|
- The always-loaded rulebook budget is raised to the largest size vendor guidance supports; growth
|
|
still requires shortening elsewhere.
|
|
|
|
### Added
|
|
|
|
- Lessons and `sisi learn` statements now carry a tier (`--scope core|user|project`, required),
|
|
decided by two questions: does it apply to all projects where sisi may be used, and would it be
|
|
useful to every user who installs sisi? Both yes is `core` (a change to sisi itself, live at once
|
|
through the overlay and queued for the product, `sisi promote`); the first only is `user` (how
|
|
this owner wants work done); neither is `project`. Items recorded with the earlier two-way
|
|
`everywhere` scope are not yet tiered and keep being delivered until a learning round tiers them.
|
|
Core and user lessons are refused when their delivered text names the current project (the name
|
|
sisi itself is always exempt); their history may name it freely. Project-scoped items leave the
|
|
shared store for a per-project handover pile (`sisi handover`) and are filed into that project's
|
|
own documentation or work list.
|
|
- A learning round now ends with a whole-document edit: each rulebook, recipe and technique
|
|
document with unintegrated notes is rewritten as a proper document or marked reviewed with a
|
|
reason; every folded lesson must be traced to the text that carries it, so nothing can be lost.
|
|
`sisi done ID --trace` and `sisi lessons show ID` print where each lesson lives.
|
|
- Choosing the approach is now a checked step: contracts for sizeable work carry a `design`
|
|
section (what the goal and the owner's principles imply, what already exists to use,
|
|
alternatives with cost and risk, the choice, each principle's objection, an independent
|
|
challenge), checked structurally against filler and enforced by the end-of-turn gate with the
|
|
usual send-back limits. `sisi design` prints the principles and the questions; `sisi contract
|
|
init` prints the principles and writes the skeleton; request-time delivery hands them over for
|
|
design or build requests. The rulebook gains a first rule on choosing the approach.
|
|
- `sisi learn` statements take effect at once (no quarantine holding file; the old file is
|
|
migrated losslessly). `sisi oracle` prints the standing principles as a document owned by the
|
|
learning round's whole-document edit, with every statement traced into it.
|
|
- Lessons generalise upward: `sisi retro` requires `--pattern`, the general failure of thinking
|
|
behind the incident, and `sisi retro patterns` lists the patterns to reuse. Learning rounds
|
|
assign, merge and promote patterns into the rulebook as strategic behaviours; the digest and
|
|
`sisi improve` show patterns first.
|
|
- `sisi promote` with no argument lists core-tier items not yet in the product, and
|
|
`sisi promote --export` writes a contribution file from their universal text only. Promoting an
|
|
overlay item now drops the personal copy once the product is checked to contain the text.
|
|
- Rule 7 of the rulebook is rewritten as short grouped instructions.
|
|
|
|
- Dynamic workers (`sisi workers`, `sisi route`, `sisi delegate`): the agent tools and models on
|
|
the machine are discovered and cached (refreshed during normal use, never scheduled), work is
|
|
routed to the most affordable usable worker by pure arithmetic over a judged delegation ledger
|
|
(flat-rate allowance before per-use price, load spread in proportion to allowance left, thin
|
|
records explored on low-difficulty work, reviews sent to a different maker, "contributor"
|
|
models never chosen), and one brief can be run unattended with limit and login failures —
|
|
recognised from output text, including failures reported with a success exit status — recorded
|
|
as unavailability and retried on the next choice. Judgements are recorded with
|
|
`sisi delegate judge`; an earlier hand-kept ledger is imported once, unchanged. The session's
|
|
own model is now kept from hook payloads, and session start says in one line whether it should
|
|
plan and delegate or do the work itself. See docs/workers.md.
|
|
- Request-time delivery (`sisi prompt`): where a tool documents a prompt-submission event with a
|
|
context channel (Claude Code, Codex CLI, Gemini CLI, Muse CLI, Pi), the matching
|
|
recipe's "done means" list and the strictly matching lessons are injected when the human's
|
|
request arrives — no asking needed — each with the command that prints it in full. Nothing is
|
|
injected for trivial or unmatched messages, the injection is size-capped, showings are counted as
|
|
listings, and the hook can never block a turn. No prompt hook is wired where the event or its
|
|
injection channel is unconfirmed (Qwen Code, Cursor, OpenCode); see docs/harnesses.md.
|
|
- `sisi rule [N|ID]`: every rule in the effective rulebook with how it is enforced, derived from
|
|
code facts, and one rule in full with its reasons, history and folded lessons. The generated
|
|
rulebook ends each rule with `More: sisi rule N`; the size budgets grow only by those pointer
|
|
lines (rule text keeps its former budgets).
|
|
- The end-of-turn gate enforces the question-dialog rule where a dialog exists and the transcript
|
|
is readable (Claude Code; Qwen Code wired the same way pending transcript confirmation): ending
|
|
a turn by asking in reply text without using the dialog is sent back once, with subagents and
|
|
dialog-less tools exempt.
|
|
|
|
- Lessons gain an optional short line (one plain sentence, at most 140 characters) and topic
|
|
(between one and three lower-case words, at most 30 characters), written at `sisi retro` with
|
|
`--short` and `--topic` or by a learning round with a `set-short` note action. The cycle brief
|
|
lists every active lesson lacking either field and the topics already in use, and
|
|
`sisi cycle check` refuses a file that omits one. `sisi cycle --now` starts a round on demand
|
|
when none is due, field-note bullets and agent-facing headings use the short line when present,
|
|
and `sisi lessons digest` prints a plain-language summary grouped by topic for the human.
|
|
|
|
### Changed
|
|
|
|
- The end-of-turn gate now attributes edits to the session that made them. Edit-tool calls are read
|
|
incrementally from the session's own transcript (a per-session offset; native subagents' transcripts
|
|
under the session count too), and shell commands are measured, not guessed: where the tool has
|
|
before/after tool hooks (Claude Code, Codex, Gemini, Copilot, Cursor), `sisi watch` snapshots the
|
|
tree (sizes and mtimes only) before and after the command and attributes the changed paths to the
|
|
session. A retrospective is required only when this session, or a subagent it started, edited files
|
|
since its last retrospective. When checks fail and no path changed since the last passing state is
|
|
attributed to this session, the stop is allowed once per distinct tree state with a note that the
|
|
contract is not satisfied and the work must not be reported as done, recorded unverified; otherwise
|
|
the session is sent back as before. `git commit` and sisi's own commands (except `contract
|
|
init/waive/trust`) never count as edits; another agent's write inside this session's command window
|
|
is attributed to this session (strict, documented); tools without before/after tool events keep the
|
|
command-text classifier. See the known limits in [docs/design.md](docs/design.md).
|
|
|
|
## [0.2.0] - 2026-11-23
|
|
|
|
### Added
|
|
|
|
- Lessons take effect on their first occurrence: verifier and recipe lessons attach as field notes at once,
|
|
recipe lessons naming a missing recipe become draft recipe notes shown by `sisi done for`, rule, oracle and
|
|
brief lessons become learned notes with trigger words, and tool lessons form a backlog (`sisi backlog`).
|
|
- Lessons are delivered at the moment they match — in `sisi done for`, `sisi verifiers for`,
|
|
`sisi verifiers show`, `sisi contract init` and the gate's send-back message, at most three in 600
|
|
characters — and every showing is recorded. Session start shows the strongest lessons first.
|
|
- A strength ladder (1 note, 2 candidate rule, 3 enforced): a recurrence after at least two showings moves a
|
|
lesson up; folded lessons shown 20 times without a recurrence retire; lessons that keep recurring at
|
|
strength 3 are withdrawn and not re-learned in the same form.
|
|
- `sisi cycle` (`due`, brief, `apply`, `revert`, `status`): agent-run consolidation under a base version and
|
|
the personal-data lock, one commit per cycle, exact revert, and flagging of cycles whose deliveries got
|
|
worse. Due-ness is a counter checked at session start, at the end of each turn, and in `sisi retro`,
|
|
`sisi verify` and `sisi done for`; there is no scheduler, and a session is told at most once until 20
|
|
further checks pass or the counter grows.
|
|
- Enforced lessons (`overlay/enforced.json`), checked like floors; command checks run only in trusted projects.
|
|
- `sisi improve` and a learning line in `sisi status`; [docs/learning.md](docs/learning.md).
|
|
- Matching measured on labelled corpora in the test suite (distinctive-word weighting), matched lessons on
|
|
`sisi done ID`, unconfirmed duplicate sightings recorded on the retro refusal path, promotions that
|
|
require two showings since the previous promotion, and required `--when` terms on `sisi retro` (the bridge
|
|
vocabulary a later agent with different words needs).
|
|
- A two-part delivery block in `sisi done for`, `sisi done ID`, `sisi verifiers for` and
|
|
`sisi contract init`: strict "likely to apply" lessons in full (two of the request's own content words
|
|
inside the when-terms, or one plus the printed entry as target), then every loose lesson as a heading
|
|
within a 1,500-character budget for the asking agent to judge. Listings and readings are counted
|
|
separately, and more than 30 loose lessons (or headings over budget) makes a cycle due.
|
|
- Retro refusals are structural only (presence, length, enums, when-term count, moment differs from
|
|
change, five exact empty answers), each naming its check and quoting the text. The earlier
|
|
phrase-matching rules are gone: one of them refused a true lesson whose moment spelled its number out.
|
|
- Wiring for every major harness, one adapter per tool (`sisi/adapters.py`) with per-tool hook translation
|
|
in `sisi/hookio.py` (`sisi tick --tool NAME`, `sisi gate --tool NAME`): blocking session-start and
|
|
end-of-turn hooks for Codex CLI (with its one-time `/hooks` trust step called out in install and doctor),
|
|
Gemini CLI, GitHub Copilot CLI, Qwen Code and Pi; a follow-up gate for Cursor; an OpenCode plugin whose
|
|
enforcement is unproven on v2.3.2; rulebook-only links for Windsurf (pointer file), Cline, Kiro, Zed,
|
|
Goose, Amp, Grok CLI, Crush and Aider; truthful `sisi doctor` rows for Muse Code (rulebook via foreign
|
|
context, no native gate), Antigravity, and the T3 Code / Orca hosts. See [docs/harnesses.md](docs/harnesses.md).
|
|
|
|
### Changed
|
|
|
|
- Verifier and recipe field notes are written on a lesson's first occurrence (previously the second, from a
|
|
second session). Existing personal data migrates on open without loss.
|
|
|
|
## [0.1.0] - 2026-11-22
|
|
|
|
First public release.
|
|
|
|
### Added
|
|
|
|
- A rulebook (`canon/core.md`, at most 120 lines) shared by every tool, plus minimum-rung floors for kinds of
|
|
claim that may not rest on example tests alone (`canon/floors.json`).
|
|
- Contracts: `sisi contract init | check | waive | trust | untrust`, and `sisi verify` with fast and deep tiers,
|
|
parallel checks, per-check time limits and a record of every result.
|
|
- An end-of-turn gate (`sisi gate`) that sends an agent back when a check fails or was not run, and a
|
|
session-start hook (`sisi tick`). The gate blocks in Claude Code only.
|
|
- Wiring by reference for Claude Code, Codex and OpenCode: `sisi install`, `uninstall`, `doctor`, `audit`.
|
|
- A verifier library of 140 techniques across ten sections, and 20 "what done means" recipes, with
|
|
`sisi verifiers` (list, show, for, doctor, lint) and `sisi done`.
|
|
- Retrospectives and shared lessons (`sisi retro`, `sisi lessons`), human-stated preferences held in quarantine
|
|
(`sisi learn`), and time to delivery (`sisi time`, `sisi status`).
|
|
- Product and personal data kept apart: a personal folder with its own git history, an overlay of learned changes
|
|
to rules, verifiers and recipes, `sisi update`, `export`, `import`, `migrate`.
|
|
- Releases for people who both use and develop sisi (`sisi release`, `rollback`, `dev`, `promote`).
|
|
- A data layer for learning from past sessions: harvest of Claude Code transcripts, a task set, escape
|
|
candidates, check statistics and a weekly scoreboard.
|
|
- `sisi --version` and `sisi version`.
|
|
|
|
### Not included
|
|
|
|
- The build conductor (`sisi build`, `sisi inbox`) and the model-driven learning loop are designed in
|
|
`docs/design.md` and not built.
|