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
+4
-2
@@ -19,7 +19,8 @@ The learning loop
|
||||
sisi rules the learned rules in force here
|
||||
sisi rules organize [--record FILE]
|
||||
the brief for a cheap worker to audit and organize them; record its answer
|
||||
sisi rules revert undo the last change to the learned rules
|
||||
sisi rules revert undo the last change to the learned rules, a project's .sisi/rules.md included;
|
||||
it declines, changing nothing, if that file changed since or its folder moved
|
||||
|
||||
Delegation
|
||||
sisi models the workers you have: what each is good at and what it costs
|
||||
@@ -39,7 +40,8 @@ Setting up
|
||||
|
||||
Hooks (the agent tool calls these): sisi tick | prompt | watch | gate
|
||||
|
||||
Your rules, models table and retro log live in ~/.local/share/sisi ($SISI_DATA, else $XDG_DATA_HOME/sisi), a git repository. Settings: "core" in
|
||||
Your own rules, models table and retro log live in ~/.local/share/sisi ($SISI_DATA, else $XDG_DATA_HOME/sisi), a git repository;
|
||||
a project's rules live in its .sisi/rules.md. Settings: "core" in
|
||||
its config.json (gate, meter, direct_calls, direct_extension, rules_lines, rules_chars, organize_after,
|
||||
research_days, shell_workers, worker_minutes)."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user