Mechanisms over intentions: request-time lesson delivery, self-referential rules, enforced question dialog
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

sisi prompt hands the matching recipe and lessons to the agent when the
human's request arrives. Every rule ends with the command that prints its
reasons, history, lessons and enforcement; sisi rule lists what enforces each
rule. Ending a turn by asking in reply text instead of the question dialog is
sent back. Rulebook budget raised to 200 lines and 12,000 characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-23 08:22:57 -07:00
1 parent f7bc6eded1
commit 11be8e3664
21 files changed
+1087 -44

No files matched your search

+4 -2
View File
@@ -463,8 +463,10 @@ class WidenedPropertyTests(SafetyBase):
json.dump(obj, open(p, "w"), indent=2)
wiring.install()
raw = open(p, "rb").read()
# tick + gate + subagent gate + watch (registered for both tool events) = at most 5
self.assertLessEqual(raw.count(b"--tool " + tool.encode()), 5, (tool, raw))
# exactly one registration per event in the tool's spec (tick, prompt where wired,
# gate, subagent gate, watch before/after), however many duplicates were planted
adapter = next(a for a in adapters.ADAPTERS if a.name == tool)
self.assertLessEqual(raw.count(b"--tool " + tool.encode()), len(adapter.spec()), (tool, raw))
d2 = json.load(open(p))
for ev, entries in d2.get("hooks", {}).items():
flat = [e.get("bash") or e.get("command") for e in entries if isinstance(e, dict)]