From 5d3cb67ab13b4bda155350e21fdc9bd64ac8b2ff Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 24 Nov 2026 21:59:43 -0700 Subject: [PATCH] sisi's project rules: add the merge-and-push rule, tidy the retro rules Co-Authored-By: Claude Fable 5.2 --- .sisi/rules.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.sisi/rules.md b/.sisi/rules.md index a3a246b..d778126 100644 --- a/.sisi/rules.md +++ b/.sisi/rules.md @@ -4,12 +4,13 @@ - 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] +- For classifier, matcher or lookup changes, have a different worker write the labelled set and report only held-out accuracy, prototype on a blind set, give three real rows and three real inputs from the live data as test cases, and name every flag the 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 (no bytecode in shared state) and print no user-facing output whose only reader is a log; in tests send 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] +- Test config-file-editing code against hostile pre-existing state: symlinks, read-only files, commented or trailing-comma JSON, duplicate entries, edits between install and uninstall — it fails on real user files otherwise. [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] +- For a brief with a numeric acceptance value or check-skipping 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 where 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] +- In this repo, finished work that passed its checks goes to main and to both remotes (origin and github) in the same step as the final report; the report names the commit and the GitHub test run [retro 2026-11-24]