Faults: review fixes (redaction, crash-proof reads, bounds, validation, wording)
ci / test (push) Canceled after 0s
ci / test (push) Canceled after 0s
- Redact secrets and strip lone surrogates in fault text and notes via shared store.clean.
- Make fault reads never raise on non-UTF-8 (0xFF), deep JSON (60,000 '['), or unreadable dirs (mode 000): command prints one line and returns 1; hooks warn with path, keep printing project rules, and return 0.
- Cap request-hook fault output to 10 oldest + 'and N more: sisi fault'; refuse past 50 open faults; bound notes to 300 chars; require positive <=9-digit id and >=4-word notes.
- Make concurrency test deterministic (fails 6/6 with no-op lock) and fix worker tick-before-prompt test order.
- Tighten rule 7, rule 9, and README wording (no over-promising on gate; clear only once no running job uses it).
Size: sisi/*.py stays within the 1,923-line ceiling (1,923 lines, unchanged).
canon/core.md grew from 8,374 chars (before commit f011df5) to 9,872 chars (+1,498 chars across this piece of work; +98 chars in this commit, raising the rulebook char ceiling in test_the_product_stays_small from 9,774 to 9,872).
This commit is contained in:
1 parent
9a2fd3fa6e
commit
5f488476e8
6 files changed
+219
-71
No files matched your search
@@ -24,11 +24,12 @@ the numbers (minutes, messages, tool calls, delegations, checks) and the `term`
|
||||
`attention` or `learning`: the terms of the objective), and `sisi retro` lays the facts out under those terms and shows their trend.
|
||||
|
||||
**Faults.** Record any fault you see with `sisi fault "<what is wrong>"` (kept per project across sessions).
|
||||
Session start and every request show the faults still not fixed, and the end-of-turn gate will not let a turn
|
||||
end on an open fault until a fix is started (`--started N`), a blocker is named (`--blocked N`), or evidence
|
||||
closes it (`--fixed N`). sisi also opens faults itself at session start and each request when free disk space
|
||||
falls below `disk_free_percent`, this session uses more than `disk_drop_percent` of the disk, or the repository
|
||||
has more than `checkouts` linked worktrees. `sisi retro` lists the faults still open.
|
||||
Where the tool has hooks, session start and every request show the faults still not fixed, and with the gate
|
||||
on, the end-of-turn hook sends the lead back up to twice on an open fault until a fix is started (`--started N`),
|
||||
a blocker is named (`--blocked N`), or evidence closes it (`--fixed N`). sisi also opens faults itself at
|
||||
session start and each request when free disk space falls below `disk_free_percent`, this session uses more
|
||||
than `disk_drop_percent` of the disk, or the repository has more than `checkouts` linked worktrees. `sisi retro`
|
||||
lists the faults still open.
|
||||
|
||||
## Install
|
||||
|
||||
|
||||
Reference in new issue
Block a user