Universal lessons with project handover; whole-document edits; worker discovery and routing
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
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
Lessons and statements carry a required scope; project items leave the shared store for a per-project handover pile filed into that project's own docs. Every learning round ends with a whole-document edit with traced lessons. sisi workers / route / delegate discover tools, choose the most affordable adequate worker and record results in the personal store; the host tool's own subagents come first, the command-line runner is the fallback. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
dad13062a1
commit
ba84772acf
33 files changed
+4623
-125
No files matched your search
+12
-7
@@ -103,7 +103,8 @@ def _folded_lessons(rule_id):
|
||||
con = retro.connect()
|
||||
try:
|
||||
return [dict(r) for r in con.execute(
|
||||
"SELECT * FROM lessons WHERE folded_into=? ORDER BY id", (rule_id,))]
|
||||
"SELECT * FROM lessons WHERE folded_into=? OR folded_into=? ORDER BY id",
|
||||
(rule_id, "rule:" + rule_id))]
|
||||
finally:
|
||||
con.close()
|
||||
except Exception:
|
||||
@@ -156,12 +157,16 @@ def _detail(n, rule):
|
||||
print(" - #%d (%s, seen %d times): %s (full text: `sisi lessons show %d`)"
|
||||
% (r["id"], date or "undated", r["count"] or 0,
|
||||
retro.heading_text(r, 140), r["id"]))
|
||||
examples = [r for r in lessons if (r.get("moment") or "").strip()]
|
||||
if examples:
|
||||
print("\nExamples (what actually happened):")
|
||||
for r in examples[:3]:
|
||||
print(" - %s (lesson %d; `sisi lessons show %d`)"
|
||||
% (retro.word_cut(r["moment"], 160), r["id"], r["id"]))
|
||||
try:
|
||||
from . import documents as _docs
|
||||
for _key, _t in _docs.traces_for_lesson(r["id"]):
|
||||
if _t.get("fragment"):
|
||||
print(" carried in %s by: %r" % (_key, _t["fragment"]))
|
||||
except Exception:
|
||||
pass
|
||||
if (r.get("moment") or "").strip():
|
||||
print(" Where this came from (historical example): %s"
|
||||
% retro.word_cut(r["moment"], 160))
|
||||
else:
|
||||
print("\nLessons folded into this rule: none yet.")
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user