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
@@ -258,6 +258,35 @@ class ByteExactTests(SafetyBase):
|
||||
self.assertEqual(open(p, "rb").read(), edited)
|
||||
|
||||
|
||||
class OldGeneratedTests(SafetyBase):
|
||||
OLD_PI = (b"// sisi:generated by `sisi install` -- runs `sisi tick` at session start and `sisi gate` before the session settles. Remove with `sisi uninstall`.\n"
|
||||
b"import { execFile } from \"node:child_process\";\nconst OLD = true;\n")
|
||||
|
||||
def test_old_pi_extension_updated_by_install_and_dry_run(self):
|
||||
os.makedirs(self.path(".pi", "agent", "extensions"))
|
||||
p = self.path(".pi/agent/extensions/sisi.ts")
|
||||
self.put(".pi/agent/extensions/sisi.ts", self.OLD_PI)
|
||||
r = self.sisi("install", "--dry-run")
|
||||
self.assertEqual(r.returncode, 0, r.stderr)
|
||||
self.assertNotIn("is not ours", r.stdout)
|
||||
self.assertEqual(open(p, "rb").read(), self.OLD_PI) # dry run changes nothing
|
||||
rc, notes = wiring.install()
|
||||
self.assertEqual(rc, 0, notes)
|
||||
self.assertNotEqual(open(p, "rb").read(), self.OLD_PI)
|
||||
self.assertIn(b"sisi:generated", open(p, "rb").read().split(b"\n", 1)[0])
|
||||
wiring.uninstall()
|
||||
self.assertFalse(os.path.exists(p))
|
||||
|
||||
def test_old_marker_only_in_body_still_refused(self):
|
||||
os.makedirs(self.path(".pi", "agent", "extensions"))
|
||||
mine = b"// my extension\nexport const X = 'sisi:generated';\n"
|
||||
self.put(".pi/agent/extensions/sisi.ts", mine)
|
||||
rc, notes = wiring.install()
|
||||
self.assertEqual(rc, 0, notes)
|
||||
self.assertEqual(open(self.path(".pi/agent/extensions/sisi.ts"), "rb").read(), mine)
|
||||
wiring.uninstall()
|
||||
|
||||
|
||||
class FailOpenCommandTests(SafetyBase):
|
||||
def test_hook_command_fails_open_without_launcher(self):
|
||||
repo = os.path.join(self.tmp, "repo-copy")
|
||||
|
||||
Reference in new issue
Block a user