diff --git a/docs/design.md b/docs/design.md index ae6112e..9e9d5de 100644 --- a/docs/design.md +++ b/docs/design.md @@ -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. diff --git a/tests/test_personal.py b/tests/test_personal.py index 901838c..875f98a 100644 --- a/tests/test_personal.py +++ b/tests/test_personal.py @@ -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")) diff --git a/tests/test_question_gate.py b/tests/test_question_gate.py index 1f83c0a..83e4df6 100644 --- a/tests/test_question_gate.py +++ b/tests/test_question_gate.py @@ -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 * diff --git a/verifiers/completeness/requirement-to-check-map.md b/verifiers/completeness/requirement-to-check-map.md index dd75504..a72b0f3 100644 --- a/verifiers/completeness/requirement-to-check-map.md +++ b/verifiers/completeness/requirement-to-check-map.md @@ -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. diff --git a/verifiers/intent/acceptance-examples.md b/verifiers/intent/acceptance-examples.md index 79f4276..02cfe20 100644 --- a/verifiers/intent/acceptance-examples.md +++ b/verifiers/intent/acceptance-examples.md @@ -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. diff --git a/verifiers/intent/feedback-as-amendment.md b/verifiers/intent/feedback-as-amendment.md index 2698525..2c1a70c 100644 --- a/verifiers/intent/feedback-as-amendment.md +++ b/verifiers/intent/feedback-as-amendment.md @@ -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 diff --git a/verifiers/intent/taste-baseline.md b/verifiers/intent/taste-baseline.md index 2f628e5..80120bf 100644 --- a/verifiers/intent/taste-baseline.md +++ b/verifiers/intent/taste-baseline.md @@ -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 ""` for lasting +the human states it (rule 8, close-with-retro: `sisi learn ""` for lasting preferences, quoted, never your inference). ## Minimal example