Keep done and plan on mid-work retros; add deep model class and efficiency rule
- Mid-work retros (when checks have no verdict or a plan node is running) keep done, plan, node states, open jobs, and changed state; only a retro on finished work closes them (fixes faults 29 and 34). - Gate no longer auto-closes work while a plan node runs or demands a closing retro while a non-late delegation is open. - Add fourth model class 'deep' across models, pick (falls back to hard when no deep row exists), plan, judge outcomes, record_line, CLI/hooks, canon/core.md, and research/plan chore briefs, with the efficiency tie-breaking rule. Co-Authored-By: Gemini <noreply@google.com>
This commit is contained in:
1 parent
361a850da5
commit
81cc722400
10 files changed
+221
-46
No files matched your search
+10
-2
@@ -168,6 +168,8 @@ class Core(unittest.TestCase):
|
||||
report = self.sisi("retro", sid="s1")[1]
|
||||
self.assertIn("The objective: Maximize the long-term, verified value", report)
|
||||
self.assertIn("you made 1 tool call(s) yourself", report)
|
||||
self.done("s1", "--pass", "1", "counts matched at 120")
|
||||
self.done("s1", "--pass", "2", "empty name exported ok")
|
||||
rc, out, _ = self.sisi("retro", *GAP, "--improve", "Compare row counts before and after every export change", sid="s1")
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertEqual(self.hook("gate")[1], "") # held: the turn may end
|
||||
@@ -204,6 +206,8 @@ class Core(unittest.TestCase):
|
||||
GAP[:-2] + ("--improve", "Compare the row counts every time", "--scope", "everyone")):
|
||||
self.assertEqual(self.sisi("retro", *args, sid="s1")[0], 1, args)
|
||||
self.assertIn('"block"', self.hook("gate")[1])
|
||||
self.done("s1", "--pass", "1", "counts matched at 120")
|
||||
self.done("s1", "--pass", "2", "empty name exported ok")
|
||||
self.assertEqual(self.sisi("retro", "--no-gap", "the person accepted it first time and every check passed", *NG, sid="s1")[0], 0)
|
||||
self.assertEqual(self.hook("gate")[1], "")
|
||||
|
||||
@@ -2007,6 +2011,8 @@ cli.main(["tick"])
|
||||
self.assertEqual(judge()[1].strip(), "recorded, not timed.")
|
||||
self.assertEqual(delegate(), (0, 0)) # a retro ends the stored starts
|
||||
self.assertIn("starts", self.state())
|
||||
self.done("s1", "--pass", "1", "counts matched at 120")
|
||||
self.done("s1", "--pass", "2", "empty name exported ok")
|
||||
self.assertEqual(self.sisi("retro", *GAP, "--improve", "Compare row counts before and after every export change", sid="s1")[0], 0)
|
||||
self.assertNotIn("starts", self.state())
|
||||
self.assertEqual(judge()[1].strip(), "recorded, not timed.") # no stale start left to time it
|
||||
@@ -3100,6 +3106,8 @@ cli.main(["tick"])
|
||||
self.assertEqual(self.tool("Agent", tool_input={"model": "glm"}), (0, "", ""))
|
||||
self.sisi("pick", "ordinary", sid="s1")
|
||||
self.assertIn("not in the models table", self.note(self.tool("Agent", tool_input={"model": "claude-3-o3ghost"})))
|
||||
self.done("s1", "--pass", "1", "counts matched at 120")
|
||||
self.done("s1", "--pass", "2", "empty name exported ok")
|
||||
self.sisi("retro", "--no-gap", "the person accepted it and the checks all passed", *NG, sid="s1")
|
||||
self.assertNotIn("picked", self.state())
|
||||
self.done()
|
||||
@@ -4741,10 +4749,10 @@ cli.main(["tick"])
|
||||
|
||||
def test_the_product_stays_small(self):
|
||||
code = sum(len(self.read(p).splitlines()) for p in glob.glob(os.path.join(REPO, "sisi", "*.py")))
|
||||
self.assertLessEqual(code, 3230, "sisi is two loops. If it needs more than this, find the simpler shape.")
|
||||
self.assertLessEqual(code, 3264, "sisi is two loops. If it needs more than this, find the simpler shape.")
|
||||
rulebook = self.read(REPO, "canon", "core.md")
|
||||
self.assertLess(len(rulebook.splitlines()), 144)
|
||||
self.assertLessEqual(len(rulebook), 11269)
|
||||
self.assertLessEqual(len(rulebook), 11778)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user