Step 5: references to old rule ids and numbers fixed; sisi time mentions gone. done / next: report

This commit is contained in:
swaits committed 2026-11-23 12:16:49 -07:00
1 parent ef6edf0e9f
commit 2841774ab0
7 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -18,7 +18,7 @@ that shows it:
| Work at a higher level (functions, modules, products) | size of verified work delivered per human message |
| Verifiable outcomes, formal where possible | share of delivered claims backed by a check that ran, by rung |
| Hands off | human minutes and blocking questions per delivered piece of work |
| Delivered sooner, with no weaker check | median time from request to verified result (`sisi time`) |
| Delivered sooner, with no weaker check | median time from request to verified result (`sisi status`) |
| Improves itself from use, everywhere | the numbers above, as trends, across all tools |
## The objective
@@ -30,7 +30,7 @@ with a weaker check or a smaller result.
Time to delivery is measured, not guessed. Each time the end-of-turn gate lets a turn end it records one
delivery row: the time since the last message the human actually typed (hook feedback and tool results do not
count), how many times the gate sent the agent back, and how long the checks ran. `sisi time` shows the median
count), how many times the gate sent the agent back, and how long the checks ran. `sisi status` shows the median
and 90th percentile for the last 7 days against the 7 days before, the share spent in checks, and the five
slowest checks; `sisi status` shows the 7-day median.
@@ -313,7 +313,7 @@ Built and covered by tests:
where nothing blocks.
- The rulebook (`canon/core.md`), the minimum-rung floors, the verifier library and the recipes.
- Retrospectives and lessons (`sisi retro`, `sisi lessons`), `sisi learn` live at once, time to delivery
(`sisi time`).
(`sisi status`).
- Choosing the approach as a checked step: the contract design section, `sisi design`, the gate's
design send-back on large changes, and request-time delivery of the standing principles for design
or build requests. The rulebook's first rule states it and `sisi rule` reports its enforcement.
+1 -1
View File
@@ -361,7 +361,7 @@ class UpdateTests(PersonalCase):
self.assertTrue(open(core).read().endswith("local edit\n"))
open(core, "w").write(orig)
# a person's replacement, then the origin changes that rule
rid = "deliver-fast" # a protected rule (know-done) cannot be replaced at all
rid = "deliver-fast" # a protected rule (define-done) cannot be replaced at all
self.ok_owner("overlay", "replace-rule", rid, "-", stdin=rule_file("Know it, my way", "My text."))
text = open(os.path.join(origin, "canon", "core.md")).read()
open(os.path.join(origin, "canon", "core.md"), "w").write(text.replace("unchanged inputs, and a useful", "unchanged inputs, and one useful"))
+1 -1
View File
@@ -1,4 +1,4 @@
"""Rule 5 enforcement: ending a turn by asking the human a question in reply text sends the agent back
"""Rule 1 (own-the-outcome) enforcement: ending a turn by asking the human a question in reply text sends the agent back
once, where a question dialog exists and was not used in that turn (Claude Code)."""
import json, os, unittest
from support import *
@@ -16,7 +16,7 @@ Note: no tool; the map is a small file and a script. The script was not run
here as written, only the traceability idea behind it (`spec-traceability`).
## Use when
- You start non-trivial work from a request in prose and are drafting `.sisi/contract.json` (core rule 1).
- You start non-trivial work from a request in prose and are drafting `.sisi/contract.json` (rule 3, define-done).
- The request is long, or has "and also" clauses that are easy to drop.
- You are about to say "done" and need to show nothing asked for was left out.
@@ -58,5 +58,5 @@ check, exit 1. Report every `unchecked` entry in the final answer as not verifie
That the check is strong; a Q mapped to a weak check passes. Read the map for
the sentences where the check is only "the command runs". Implicit asks (the
human did not write "do not break the old import") are missing: Q4 above must
be added by you, from the invariants in core rule 3. An `unchecked` list is
be added by you, from the invariants in rule 3 (define-done). An `unchecked` list is
honest only if it is reported.
+1 -1
View File
@@ -26,7 +26,7 @@ is standard specification by example.
- The behaviour is visual or tasteful; see `pairwise-comparison`.
## Set up
Write `acceptance/examples.json` and show it to the human once (core rule 5: one
Write `acceptance/examples.json` and show it to the human once (rule 1, own-the-outcome: one
round of confirmation, with your default stated). Edge cases first: zero,
empty, the largest, a tie, a negative, an invalid input and what it must do.
+2 -2
View File
@@ -13,7 +13,7 @@ verified: ran
---
## Use when
- The human reacts to your work ("the button is too big", "round down not up", "the second paragraph is wrong"). Core rule 4: this is an amendment, not licence to rework.
- The human reacts to your work ("the button is too big", "round down not up", "the second paragraph is wrong"). Rule 1 (own-the-outcome): this is an amendment, not licence to rework.
- A previous change reached further than the request; you want to make that impossible.
- You are fixing a review comment and the diff must show only that fix.
@@ -23,7 +23,7 @@ verified: ran
## Set up
Record the amendment in one line in `.sisi/contract.json` (as a new check or a
note) and name the paths it may touch. Note the commit you start from:
`git rev-parse HEAD`. Re-run the invariants from rule 3.
`git rev-parse HEAD`. Re-run the invariants from rule 3 (define-done).
## Minimal example
Amendment: "Round fees down to the cent, only in `src/fees.py`." Scope script
+1 -1
View File
@@ -25,7 +25,7 @@ Note: no tool. The store is plain files; not run here.
## Set up
Create `docs/taste/` with one small file per verdict. Record a verdict only when
the human states it (core rule 7: `sisi learn "<their words>"` for lasting
the human states it (rule 8, close-with-retro: `sisi learn "<their words>"` for lasting
preferences, quoted, never your inference).
## Minimal example