release: publish 65bc585 from the private source

This commit is contained in:
public-repo-gate
2026-09-07 11:11:42 +03:00
parent f72b2308ed
commit 006a9919a1
15 changed files with 1886 additions and 1193 deletions
+10
View File
@@ -12,6 +12,16 @@ Two kinds of noise never reach the base. A watchdog that did its job is not a fa
Capture is idempotent. Reading the same transcript twice does not double the records, because each candidate carries a fingerprint and a repeat raises a counter instead of adding a line.
Capture works with two hands. The first one runs at session close: it reads the transcript
and pulls out failed commands, gate refusals and repeats. The second sits on every tool and
fires in the second something breaks — right where you say "oops, my mistake, fixing it now".
The difference is not convenience: at the review the cause is already forgotten, and one
second after the fall it is still in your head and costs one question.
Both hands stay quiet when a guard did its job or when the evidence is shorter than three
meaningful words. A guard that fired is not trouble, and a non-zero exit code on its own is
not evidence: grep with no match, diff and test all return one.
## Storage appends and never rewrites
The journal at `~/.claude/koiz/lessons.jsonl` is append-only. The state of the base is the result of replaying the journal from the beginning, which means every record keeps its history and nothing is silently edited away.
+10
View File
@@ -12,6 +12,16 @@
Съем идемпотентен. Повторное чтение того же транскрипта не удваивает записи: у каждого кандидата есть отпечаток, и повтор поднимает счетчик вместо новой строки.
Съем идет в две руки. Первая работает на закрытии сессии: разбирает транскрипт, достает
упавшие команды, отказы ворот и повторы. Вторая стоит на каждом инструменте и срабатывает
в секунду падения — там, где вы говорите «ой, ошибка, сейчас исправлю». Разница между ними
не в удобстве: на закрытии причину уже не помнят, а через секунду после падения она еще
в голове, и стоит одного вопроса.
Обе руки молчат, когда сработал сторож или когда улика короче трех значимых слов. Работа
защиты — не беда, а ненулевой код возврата сам по себе не улика: его дают grep без
совпадений, diff и test.
## Хранение только дописывает
Журнал `~/.claude/koiz/lessons.jsonl` работает на дозапись. Состояние базы получается проигрыванием журнала с начала, поэтому у каждой записи остается история, и ничего не правится молча.
+7
View File
@@ -12,6 +12,13 @@
采集是幂等的。同一份记录读两遍不会写出两条:每个候选都带指纹,重复只会让计数加一,而不是多出一行。
采集用两只手。第一只在会话结束时工作:读取记录,取出失败的命令、闸门的拒绝和重复。第二只装在每个工具上,
在东西坏掉的那一秒触发——就是你说“哎呀,出错了,我这就改”的那一刻。两者的区别不在方便:复盘时原因已经忘了,
而摔倒之后一秒,它还在你脑子里,只值一个问题。
两只手都会在守卫生效时保持安静,在证据短于三个有意义的词时也一样。守卫拦下来不是麻烦,非零返回码本身也不是证据:
没有匹配的 grep、diff 和 test 都会返回一。
## 存储只追加
`~/.claude/koiz/lessons.jsonl` 这份日志只做追加。库的状态是从头重放日志得到的结果,所以每条记录都留着自己的历史,也不会被悄悄改掉。