Choosing the approach is a checked step; three tiers for where knowledge lives; patterns
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

A new first rule and a required design section in the contract for sizeable
work, validated structurally and enforced by the end-of-turn check. Lessons
and statements are tiered core, user or project; core items are queued for
the product (sisi promote). The owner's statements take effect at once and
form the principles document. Every retro names the general pattern behind
its incident; learning rounds group lessons under patterns.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-23 09:48:47 -07:00
1 parent ba84772acf
commit ec91e526a6
32 files changed
+2484 -251

No files matched your search

+16 -1
View File
@@ -56,8 +56,23 @@ class ShortCase(LibCase):
have = {e.get("lesson") for e in notes if isinstance(e, dict) and e.get("action") == "set-scope"}
for e in list(notes):
if isinstance(e, dict) and isinstance(e.get("lesson"), int) and e["lesson"] not in have:
notes.append({"lesson": e["lesson"], "action": "set-scope", "scope": "everywhere"})
notes.append({"lesson": e["lesson"], "action": "set-scope", "scope": "core"})
have.add(e["lesson"])
# every active lesson lacking a pattern needs a set-pattern too
try:
_con = retro.connect()
try:
_prows = [dict(r) for r in _con.execute(
"SELECT id, pattern_id, scope FROM lessons WHERE status IN ('open','applied')")]
finally:
_con.close()
_have_p = {e.get("lesson") for e in notes if isinstance(e, dict) and e.get("action") == "set-pattern"}
_exempt = {e.get("lesson") for e in notes if isinstance(e, dict) and e.get("action") in ("retire", "withdraw", "merge")}
for r in _prows:
if not r.get("pattern_id") and r["id"] not in _have_p and r["id"] not in _exempt and r.get("scope") != "project":
notes.append({"lesson": r["id"], "action": "set-pattern", "pattern": "Reach for the familiar tool instead of the check that fits the claim"})
except Exception:
pass
doc["notes"] = notes
doc.update(parts)
# A cycle file must also answer for every document the brief lists for whole-document