Choosing the approach is a checked step; three tiers for where knowledge lives; patterns
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
A new first rule and a required design section in the contract for sizeable work, validated structurally and enforced by the end-of-turn check. Lessons and statements are tiered core, user or project; core items are queued for the product (sisi promote). The owner's statements take effect at once and form the principles document. Every retro names the general pattern behind its incident; learning rounds group lessons under patterns. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba84772acf
commit
ec91e526a6
32 files changed
+2484
-251
No files matched your search
+32
-11
@@ -4,7 +4,25 @@ These rules apply in every tool and every project. They are short on purpose. Ea
|
||||
reason, so you can apply it with judgement when a case is not covered. Run `sisi help` to see the
|
||||
commands mentioned here.
|
||||
|
||||
## 1. Know how you will know you are done {#know-done}
|
||||
## 1. Choose the approach from the goal {#choose-the-approach}
|
||||
|
||||
Before sizeable work, think from the goal and the human's standing principles (`sisi oracle`)
|
||||
to what they imply. Fill the contract's `design` section first (`sisi design` prints the
|
||||
principles and the questions):
|
||||
|
||||
- what the goal and the principles imply that the request did not spell out;
|
||||
- what the environment, the tool or the existing system already provides - use that instead
|
||||
of building it, and give evidence it exists;
|
||||
- at least two other approaches, one line each on cost and risk;
|
||||
- the one chosen, and why it is the one the human would pick;
|
||||
- for each principle, the objection the human would raise and how the design answers it, or
|
||||
why it does not apply;
|
||||
- an independent attack on the design as the human would make it, and what changed.
|
||||
|
||||
Why: the human should never have to state a consequence of something they already said. A
|
||||
well-built answer to the wrong approach wastes everything spent building it.
|
||||
|
||||
## 2. Know how you will know you are done {#know-done}
|
||||
|
||||
Before non-trivial work, write a contract at `.sisi/contract.json` in the project (`sisi contract
|
||||
init` creates the skeleton). It lists the checks that decide success, each with a command that can
|
||||
@@ -17,7 +35,7 @@ Skip the contract for small edits (a few lines, a rename, a question).
|
||||
|
||||
Why: ceremony on small tasks costs more than it saves.
|
||||
|
||||
## 2. Use the strongest check available {#strongest-check}
|
||||
## 3. Use the strongest check available {#strongest-check}
|
||||
|
||||
Give each check the highest rung that is feasible, and record the rung:
|
||||
|
||||
@@ -43,7 +61,7 @@ test fail without the change, or run mutation testing.
|
||||
Why: an example test shows one case works. The higher rungs show that a whole class of failures
|
||||
cannot happen, which is what lets the human stop checking.
|
||||
|
||||
## 3. Protect what already works {#protect-working}
|
||||
## 4. Protect what already works {#protect-working}
|
||||
|
||||
Before changing something that exists, add invariants to the contract: what must not change or get
|
||||
worse, with a baseline captured before your first edit (tests passing, a snapshot, a screenshot).
|
||||
@@ -51,14 +69,14 @@ worse, with a baseline captured before your first edit (tests passing, a snapsho
|
||||
Why: the most costly failure seen so far was a good design made worse by a change that reached
|
||||
further than the request.
|
||||
|
||||
## 4. Treat feedback as a change to the contract {#feedback-as-amendment}
|
||||
## 5. Treat feedback as a change to the contract {#feedback-as-amendment}
|
||||
|
||||
When the human gives feedback, restate it in one line as an amendment to the contract. Change only
|
||||
what the amendment covers. Re-run the invariants.
|
||||
|
||||
Why: feedback is narrow. Reading it as licence to rework things is how good work gets damaged.
|
||||
|
||||
## 5. Decide, do not ask {#decide-dont-ask}
|
||||
## 6. Decide, do not ask {#decide-dont-ask}
|
||||
|
||||
Ask the human only when both are true: the answer cannot be worked out from the request, the
|
||||
project, or `sisi oracle`; and a wrong guess would be expensive to undo or would change what success
|
||||
@@ -83,7 +101,7 @@ slow to answer. Options with a recommendation can be answered in one click.
|
||||
For a large request, one round to confirm the contract is welcome: defining success is the best use
|
||||
of the human's time. After that, work without interruption. Approving steps is the worst use of it.
|
||||
|
||||
## 6. Finish by verifying {#finish-by-verifying}
|
||||
## 7. Finish by verifying {#finish-by-verifying}
|
||||
|
||||
Run `sisi verify` before you say the work is done. Report each check, its rung, and its result. A
|
||||
check that was not run is reported as not run. Never describe unverified work as done.
|
||||
@@ -91,7 +109,7 @@ check that was not run is reported as not run. Never describe unverified work as
|
||||
Why: the tools run this same command when you finish and will send you back if a check fails. A
|
||||
false "done" costs the human more than a late one.
|
||||
|
||||
## 7. Every time, say how it could have gone better {#retro-every-time}
|
||||
## 8. Every time, say how it could have gone better {#retro-every-time}
|
||||
|
||||
Before you report finished work, run `sisi retro`. Ask how it could have gone better, never
|
||||
whether it could.
|
||||
@@ -108,9 +126,12 @@ Name the one change that would have helped most:
|
||||
the next agent do it right without being told.
|
||||
|
||||
Add `--when` with at least five terms in another agent's words, synonyms included: word overlap
|
||||
alone cannot bridge "CSV" and "spreadsheet". Add `--scope everywhere` for a universal lesson,
|
||||
`--scope project` for one that belongs only here. "Nothing" and general advice are refused.
|
||||
Subagents do this too.
|
||||
alone cannot bridge "CSV" and "spreadsheet". Add `--pattern`: the general failure of thinking
|
||||
this incident is an instance of, one line that would apply to unrelated work (`sisi retro
|
||||
patterns` lists the existing ones to reuse). Add `--scope core` when it applies to all
|
||||
projects and would help every sisi user, `--scope user` when it is how this human wants work
|
||||
done, `--scope project` for a fact about this project only. "Nothing" and general advice are
|
||||
refused. Subagents do this too.
|
||||
|
||||
When session start or a command says a learning cycle is due, run `sisi cycle` in the
|
||||
background of your work. Never involve the human.
|
||||
@@ -122,7 +143,7 @@ Why: you hold the full context of what just happened, and it is gone when the se
|
||||
Every tool reads the same store, so one honest answer here improves every later session
|
||||
everywhere.
|
||||
|
||||
## 8. Deliver quickly {#deliver-quickly}
|
||||
## 9. Deliver quickly {#deliver-quickly}
|
||||
|
||||
The time from the request to a verified result is part of success. Never buy speed with a weaker
|
||||
check or a smaller result. Buy it by doing independent work at the same time, running the quickest
|
||||
|
||||
Reference in new issue
Block a user