diff --git a/.gitignore b/.gitignore index 7cc099e..d6230d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ __pycache__/ *.pyc .agent-work/ -.sisi/ diff --git a/.sisi/rules.md b/.sisi/rules.md new file mode 100644 index 0000000..a3a246b --- /dev/null +++ b/.sisi/rules.md @@ -0,0 +1,15 @@ +- This repo is sisi itself: a learned rule that applies to every sisi user on every system goes into the product (canon/core.md) and is then deleted from the learned lists, so the sisi people download is effective at once; only rules about this owner or this machine stay in the learned lists. [owner 2026-11-23] +- sisi is a self-improvement loop (forced retros, each improvement a rule at once, rules organized) and nothing more — keep it simple and small, never over-build; anything beyond costs the person attention. [owner 2026-11-23] +- sisi must work globally, for any agent in any harness (T3 Code or otherwise): rules, hooks and the loops are installed and enforced in every agent tool on the machine, not only Claude Code. [owner 2026-11-23] +- Use no external dependencies and no cron jobs; run periodic upkeep from a counter or chance check during a normal turn, so the system improves just by being used. [owner 2026-11-23] +- The real objective function is the one in SPEC.md; sisi always optimizes it by mechanisms (hooks, checks), never by good intentions, and never hard-codes a model or a harness. [owner 2026-11-23] +- Measure size budgets in the unit actually paid for (characters loaded per session), and say plainly whether loaded text grew or shrank after a change. [retro 2026-11-23] +- When a brief asks for a classifier, matcher or lookup change, have a different worker write the labelled set and report only held-out accuracy, prototype first on a blind set, give three real rows and three real inputs copied from the live data as required test cases, and name every flag the existing matcher takes — a tuner scoring its own labels or a made-up row overstates accuracy. [retro 2026-11-23] [retro 2026-11-24] +- Detached background workers must start with python3 -B (never write bytecode into shared state) and print no user-facing output whose only reader is a log; in tests, send their output to temp files, not pipes, and pass stdin explicitly (input or DEVNULL) — open pipes or inherited stdin hang under some shells. [retro 2026-11-23] +- Add a test-base guard that fails any test modifying files under the repo product tree, and run hook-imported modules under python3 -X importtime, keeping the added import time under 20 ms — stray writes and slow hooks go unnoticed. [retro 2026-11-23] +- Test code that edits another program's config files against hostile pre-existing state: symlinks, read-only files, commented or trailing-comma JSON, duplicate entries, edits between install and uninstall — such code fails on real user files. [retro 2026-11-23] +- When a check fails, store and show the lines that identify the failure (FAIL and ERROR blocks, else first and last 40 lines) before the tail — the cause is often far above the end of the output. [retro 2026-11-23] +- Scoring a piece of work: it can ALWAYS be done better, so every retro names a concrete way it could have scored better even when nothing went wrong; and scores are kept in the terms the objective lists (value, verified evidence, elapsed time, compute and tool cost, attention, getting better), never in terms of its own. [owner 2026-11-23] +- For a brief with a numeric acceptance value or a check-skipping time or count limit, compute the number from the formula and put the worked figure in the brief, name the event the count starts from, and require a test in which that event happens twice. [retro 2026-11-24] +- Never pass --help or any probe argument to a command that changes things until its usage is known from the source or the README; read the usage there first. [retro 2026-11-24] +- A project's rules and learning live inside that project, in .sisi/ at the project root, never in a subfolder; whether .sisi/ is git-ignored is the user's choice, and sisi must work either way (owner: 'Personally I'd want this checked in and permanent'). [owner 2026-11-24] diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..b7d51d7 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,3 @@ + +This project's learned rules are in `.sisi/rules.md`. Read that file before any work here and follow it. +