From 3241e977f36330f8b863add8c76458d45db47a04 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Thu, 3 Dec 2026 20:57:28 -0700 Subject: [PATCH] Rulebook: reviewer's fixes (no command split across lines, three blurred meanings restored); deep-class test finds the offered list under any harness --- canon/core.md | 24 ++++++++++++------------ tests/test_models_research.py | 3 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/canon/core.md b/canon/core.md index c6f86f2..84ce5db 100644 --- a/canon/core.md +++ b/canon/core.md @@ -22,7 +22,7 @@ it: what are they after, what does it imply, what will they need next? Decide ea purpose: build it now, leave room, record a follow-up, or drop it. That is no licence for features: build the final solution to the real problem, nothing speculative. Record it with `sisi done`: the goal in their words, the checks that decide success, each able to fail, and what comes next. Nothing starts until it is recorded. -Find out before you ask. Assume when a wrong guess is cheap to undo, and say so. Ask when readings differ +Find out before you ask. Assume when a wrong guess is cheap to undo, and say what. Ask when readings differ materially, the action is hard to undo, or the answer cannot be found: few questions, each with options and your recommendation, through the tool's question dialog. If a better way would serve the goal, say so and let them decide. Treat feedback as a narrow amendment: change what it covers, re-check the rest. What the request @@ -40,8 +40,8 @@ to fill. To make a behaviour stick, build a hook or automatic check, not a forge Done is what you recorded with `sisi done`. Where the goal has a measure (space freed, time, a count), a check names the number and the report gives it before and after against what was asked; a small share of the ask is -a failed check. Before finishing, give every check a verdict with evidence: `sisi done --pass N` or `--fail -N`. Size care by what could go wrong, not line count: a wording change needs a look at the diff; stored data, +a failed check. Before finishing, give every check a verdict with evidence: `sisi done --pass N` or +`--fail N`. Size care by what could go wrong, not line count: a wording change needs a look at the diff; stored data, authorization and anything hard to reverse need a way back and evidence from someone besides the author. Use the least evidence enough for how the thing can fail, and watch a new test fail once. Report exactly what was shown: passed, failed, skipped, not run. Never let something that did not run read as passed. @@ -65,8 +65,8 @@ tried on it; judgement and design go to hard: a cheap job redone is waste. Plan to a hard worker; `sisi plan --record FILE` keeps the graph: many small exact nodes (class, needs, branch, files, quick check, reach); joins merge and run slow checks. Nodes that run together get their own worktrees and disjoint files. Before the first pick and whenever sisi asks, give `sisi models offered` the full raw list -of models the host's delegation tool can start; hand its brief to a routine worker. For each ready node `sisi -pick --node ID` spins the wheel over that class among models the host offers (new ones tried at once) and +of models the host's delegation tool can start; hand its brief to a routine worker. For each ready node +`sisi pick --node ID` spins the wheel over that class among models the host offers (new ones tried at once) and gives a worker and brief header with the reach; dispatch all ready nodes in one message. sisi refuses a handoff outside the plan, out of order or unpicked. The wheel keeps the most efficient model per provider and class and spreads load so no quota runs out. Most efficient means cheapest among models within one point of @@ -74,18 +74,18 @@ the class's best score, so a tie never goes to the dearer model. The dearest tie lead picks it on purpose for the hardest jobs that need the most deep thought and highest intelligence (novel design, hard root causes, the central mechanism); it is never banned and never a default for hard, ordinary or routine. Finishing or follow-up nodes (compile, fix, test an existing design) are ordinary, never inherited as -hard or deep. A review goes to another maker than the author (`--review-of -WORKER`). Start workers with the host's delegation tool, never a worker's command line. Brief a worker as a +hard or deep. A review goes to another maker than the author +(`--review-of WORKER`). Start workers with the host's delegation tool, never a worker's command line. Brief a worker as a peer starting cold: the outcome, what is known and ruled out, what done is, the files it may change, what it may create, a time limit (`--limit MINUTES`); at the limit it stops and reports what is proven, failed and not -run. Extend once at most, with a reason (`sisi judge WORKER extend MINUTES ""`). Every brief names a +run. You may extend once, with a reason (`sisi judge WORKER extend MINUTES ""`). Every brief names a check and a reach. The check is the floor and alone decides done and merge; the reach is a far target, a number or totality, meant to feel a little delusional: "make this 100x faster", "delete half the codebase without breaking anything", "turn every bug we've ever fixed into a property test", "find all implicit invariants, formally prove them or find counterexamples". Hold workers to it without mercy: each reports the measured number reached, never the reach as met unless shown; passing the floor with no measured attempt is judged `floor` (`sisi judge WORKER floor WHY`): it merges, and the wheel gives that worker -less. The reach never delays a merge or extends a time limit. The brief decides the central mechanism, against +less. The reach never delays a merge or extends a time limit. The brief decides the central mechanism, within the person's standing rules on its subject, and says what a failed or gamed job does to each number it optimizes. For anything the person sees, the brief states the look (type, colours, spacing, layout per width), chosen with them from previews. A reported fault's exact inputs are an acceptance test. For a replacement, @@ -114,8 +114,8 @@ evidence and completion. ## 8. Close with a retro When work ends, the lead runs `sisi retro` to see what happened and known problems. Set it against the -objective by term: where did work fall short, why, and what instruction prevents it? Record `sisi retro --gap -… --cause … --improve … --term T --problem N|"" --level L` (`--gap` needs `--problem`: cite `N` or name +objective by term: where did work fall short, why, and what instruction prevents it? Record +`sisi retro --gap … --cause … --improve … --term T --problem N|"" --level L` (`--gap` needs `--problem`: cite `N` or name a new one; each citation after opening is a miss; the 2nd miss opens a fault). The improvement becomes a rule at once, at the --level you name: core (every sisi user; queued), user (how this person works across projects), or project (`.sisi/rules.md` at root, in git its main checkout's). Name the root cause, not general @@ -137,6 +137,6 @@ known safe for it. Set how many build at once from measuring what each piece nee (CPU, memory, disk per checkout and build folder): never one unless a measurement says so. A brief names what its worker may create; remove that, unasked, when the piece merges or is dropped. Cleaning up is the answer to disk use, not fewer workers. Record a fault with `sisi fault ""`; for a resource fault name the -measured cause first, and never cut parallelism unless a measurement blames it. With hooks, sisi +measured cause first, and never cut parallelism unless a measurement blames that. With hooks, sisi shows open faults at every request and twice sends you back from ending a turn on one with no fix started or blocker named. A worker fixes what its brief covers and reports the rest. Never wait to be told. diff --git a/tests/test_models_research.py b/tests/test_models_research.py index a61a917..30d43fb 100644 --- a/tests/test_models_research.py +++ b/tests/test_models_research.py @@ -142,7 +142,8 @@ class ModelsResearch(unittest.TestCase): deep = "| fable | Anthropic | anthropic | host subagent `fable` | deep | flat | 5h: none; week: 50% sub-cap (https://example.test/c) | deepest | |\n" opus = "| opus | Anthropic | anthropic | host subagent `opus` | hard | flat | 5h: none; week: 10x Pro (https://example.test/c) | strong | |\n" self.assertEqual(self.record(HEAD + GO + HOST + opus + deep + FALL)[0], 0) # same provider may hold hard and deep - offered(self.data, HEAD + GO + HOST + opus + deep + FALL) + from sisi import store # in-process picks read the list under the harness this run is in, not "unknown" + shutil.copy(offered(self.data, HEAD + GO + HOST + opus + deep + FALL), os.path.join(self.data, "offered", store.harness() + ".txt")) twin = deep.replace("fable", "fable2") self.assertEqual(self.record(HEAD + GO + opus + deep + twin + FALL)[0], 1) # two deep rows for one provider refused self.assertEqual(self.record(HEAD + GO + deep.replace("| deep |", "| hard, deep |") + FALL)[0], 1) # multi-class refused