Items 6, 7, 8, 10: rule-add/rule-replace with shortens, every problem reported at once, merge and specific reject, a self-contained brief of at most 6000 characters and 8 learnings, apply summary in 15 lines, status --learning, lessons ID. done / next: docs, repeat runs, rehearsal

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-23 14:34:16 -07:00
1 parent 41d4f38dbb
commit 33427c0394
4 files changed
+465 -74

No files matched your search

+2 -2
View File
@@ -120,7 +120,7 @@ class Base(SisiCase):
"--mechanism", "verification", "--expect", "the %s case is caught" % word,
"--validate", "run the %s fixture" % word)
self.assertEqual(r.returncode, 0, r.stderr)
return "L-%04d" % (n + 1)
return self.rows()[-1]["id"]
def set_config(self, cfg):
os.makedirs(self.data, exist_ok=True)
@@ -763,7 +763,7 @@ class Mechanisms(Base):
bad = [{"action": "promote", "learning": "L-0002", "mechanism_kind": "risk",
"pattern": "y/**", "profile": "logic"}]
self.assertNotEqual(self.apply(bad).returncode, 0)
good = [{"action": "reject", "learning": "L-0001", "why": "wrong idea"}]
good = [{"action": "reject", "learning": "L-0001", "why": "the f.txt content check was replaced by a type check"}]
self.assertEqual(self.apply(good).returncode, 0)
self.assertEqual(self.rows()[0]["status"], "rejected")