Project rules: one list per repository, claimed migration, undo that checks the file
- In git the project root is always the main checkout's, from any subfolder or worktree; the git check-ignore branch and the non-git ancestor walk are gone. When git cannot answer, the nearest folder holding .git; inside a git directory or bare repository nothing is written. - The root is looked up once per process: session start runs 4 git processes (was 10). - Every write of a project's list (learn, retro, organize, move) records path/before/after in rules/last-project.json and commits it, so `sisi rules revert` undoes the last change of any kind; it restores only while the file holds exactly what the change left, else declines. - The move from the store is claimed by an atomic rename; the store copy is removed only after the store commit succeeds; a claim left by a crash is picked up later; BOM and non-UTF-8 safe. - A linked .sisi is named in one line; the note closes the file it opens; learn into a folder that cannot be written says so in one line and keeps nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a540bd45ff
commit
b588cec7a8
6 files changed
+496
-147
No files matched your search
+1
-1
@@ -107,7 +107,7 @@ tests, evidence and completion.
|
||||
When a piece of work ends, the lead runs `sisi retro`, which prints what happened. Set it against
|
||||
the objective, term by term: where did the work fall short, why, and what instruction would have
|
||||
prevented it? Record that (`sisi retro --gap … --cause … --improve …`). The improvement becomes a rule at
|
||||
once: product (useful to every sisi user, in the product), user (how this person works across projects, in their store), or project (one project, in `.sisi/rules.md` at its root, which may be checked in). Name the root cause; general advice is not an
|
||||
once: product (useful to every sisi user, in the product), user (how this person works across projects, in their store), or project (one project, in `.sisi/rules.md` at its root, in git its main checkout's, which may be checked in). Name the root cause; general advice is not an
|
||||
improvement. Work can always be done better: when nothing fell short, name the one thing that would have scored better (`--no-gap … --better …`). Name the term of the objective each time (`--term`). When the person states a lasting
|
||||
preference, record their words at once with `sisi learn`. When session start says the learned
|
||||
rules need organizing, have a cheap worker do it in the background.
|
||||
Reference in new issue
Block a user