Plan: the graph stays wide, exact and current by construction
- overlap refusal names the file and says to split the nodes or give the shared edit to one small owner
node; two nodes may share a file each in its own worktree under one worker join that needs both
- a need between two live nodes that share a file must say what it uses (`id (what)`), unless the node
merges parallel work or the need was already recorded: a need only to settle a shared file made a chain
- files are compared only between nodes that can still run (not done ones)
- `{a,b}.rs` in a files cell is each of its files (it was cut at the comma and collided falsely)
- every record, every `sisi plan` and every returning node prints the width (running or ready now, widest
wave, longest path of nodes left, class mix) and the nodes the most others build on; a chain is told to
re-plan, once at the end of a turn too; the pick header tells a worker how many nodes build on its result
- re-recording never resets a done node whose class, branch, files and check are unchanged (fault 41)
- `sisi judge WORKER` with several nameable open jobs and no --node/--chore refuses (fault 58)
- planning brief and rulebook: needs are results used, class by what builds on a node, the graph is
re-assessed as nodes return, a design node ends in a lead plan node
- size caps at the measured counts: code 3337 lines (was 3269), rulebook 146 lines, 12213 characters (was
11778); the owner said on 2026-12-05 to take the room needed
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
3241e977f3
commit
ab0d405394
7 files changed
+262
-35
No files matched your search
@@ -133,21 +133,29 @@ class JudgeChore(unittest.TestCase):
|
||||
self.assertEqual(rc_j1, 0, out_j1)
|
||||
self.assertEqual(self.state()["starts"]["alpha"], [])
|
||||
|
||||
def test_2_judge_without_flag_warns_with_closed_and_open_targets(self):
|
||||
def test_2_judge_without_flag_refuses_to_guess_and_newest_says_what_it_closed(self): # fault 58
|
||||
cid1 = self.start_chore("plan", "brief")
|
||||
time.sleep(0.02)
|
||||
cid2 = self.start_chore("models", "research")
|
||||
t1, t2 = self.state()["starts"]["alpha"]
|
||||
|
||||
rc, out, _ = self.sisi("judge", "alpha", "good", "oldest chore finished cleanly")
|
||||
before_state, before_out = self.state(), self.outcomes()
|
||||
rc, out, _ = self.sisi("judge", "alpha", "good", "one chore finished cleanly")
|
||||
self.assertEqual(rc, 1, out)
|
||||
self.assertEqual(len(out.strip().splitlines()), 1, out)
|
||||
self.assertIn("--chore " + cid1, out)
|
||||
self.assertIn("--chore " + cid2, out)
|
||||
self.assertIn("Nothing was changed", out)
|
||||
self.assertEqual((self.state(), self.outcomes()), (before_state, before_out))
|
||||
|
||||
rc, out, _ = self.sisi("judge", "alpha", "good", "newest chore finished cleanly", "--newest")
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertEqual(self.state()["starts"]["alpha"], [t2])
|
||||
self.assertEqual(self.state()["starts"]["alpha"], [t1])
|
||||
lines = out.strip().splitlines()
|
||||
self.assertEqual(len(lines), 2, out)
|
||||
self.assertIn("job started %s" % time.strftime("%H:%M", time.localtime(t1)), lines[0])
|
||||
self.assertIn(cid1, lines[1])
|
||||
self.assertIn("job started %s" % time.strftime("%H:%M", time.localtime(t2)), lines[0])
|
||||
self.assertIn(cid2, lines[1])
|
||||
self.assertIn("--chore " + cid2, lines[1])
|
||||
self.assertIn("--chore " + cid1, lines[1])
|
||||
|
||||
def test_3_stop_gate_lists_unjudged_jobs_on_one_line_without_blocking_on_them(self):
|
||||
graph = ("| node | class | needs | branch | files | check | why |\n|---|---|---|---|---|---|---|\n"
|
||||
|
||||
Reference in new issue
Block a user