Planner prefers many small exact nodes; slow checks wait for a downstream join
ci / test (push) Waiting to run

The planning brief now asks for many small, exactly specified nodes a near-free
model can do well and fast, each proven by the quick test of its own change, with
the full suite deferred to a join node that merges its needs, runs it once and
fixes what broke. The pick header names each needed node's branch so a join
knows what to merge. Rule 5 says the same in one character less.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-12-02 17:19:17 -07:00
1 parent 2af7a5ae01
commit 3a349a3859
3 files changed
+19 -7

No files matched your search

+12 -1
View File
@@ -160,9 +160,20 @@ class Plan(unittest.TestCase):
self.assertEqual(rc, 0, out)
self.assertRegex(out.splitlines()[0], r"^sisi chore: plan [0-9a-f]{8}$")
for want in ("export every row without losing any", "1. row counts match", "| node | class | needs | branch | files | check | why |",
"Class by total cost", "routine nodes whenever their", "record (last 20 judged per class)"):
"Class by total cost", "routine nodes whenever their", "record (last 20 judged per class)",
"prefer many small nodes", "quick test of its own change", "merges its needs, runs them once and fixes what broke"):
self.assertIn(want, out)
def test_a_mid_graph_join_takes_the_slow_check_and_its_header_names_the_branches_to_merge(self):
self.ready_plan(text=COLS + (
"| a | routine | - | p-a | sisi/a.py | test a passes | exact spec |\n"
"| b | routine | - | p-b | sisi/b.py | test b passes | exact spec |\n"
"| merge | ordinary | a, b | p-m | sisi/a.py, sisi/b.py | full suite passes | merge, run once, fix |\n"
"| join | lead | merge | - | - | released | the lead releases |\n"))
for n in "ab":
self.assertEqual(self.sisi("plan", "--done", n, "test %s ok" % n, sid="s1")[0], 0)
self.assertIn("needs done: a on p-a (test a ok), b on p-b (test b ok)", self.pick("merge"))
def test_a_retro_clears_the_plan(self):
self.ready_plan()
self.assertEqual(self.sisi("retro", "--no-gap", "every check passed with the tests shown", *test_core.NG, sid="s1")[0], 0)