Attach a running job to a plan node; honour a provider's stated reset for its whole plan

Fault 36: `sisi pick --node ID --started WORKER` records that a job already
running (a worker sent a message, which no delegation hook sees) does the node;
re-recording a plan keeps a running node whose id and branch are unchanged.

Fault 37: `judge WORKER out` keeps the worker off the wheel until the reset its
message states (ISO time or "resets in ..." span; else 6 h), together with every
worker on the same provider in the models table.

Also: tests/test_models_research.py no longer reads the running agent's
CLAUDE_CODE_ENTRYPOINT.

The line-count cap (test_the_product_stays_small) is left for the join: sisi/
is 3330 lines against 3264.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-12-04 07:03:51 -07:00
1 parent fffb97f522
commit 9fb2a61920
7 files changed
+174 -36

No files matched your search

+4
View File
@@ -58,6 +58,10 @@ class ModelsResearch(unittest.TestCase):
CLAUDE_CONFIG_DIR=os.path.join(self.tmp, "claude"))
for name in ("SISI_SESSION_ID", "CLAUDE_ENV_FILE", "XDG_DATA_HOME", "XDG_STATE_HOME", "CODEX_HOME", "CLAUDE_CODE_ENTRYPOINT"):
self.env.pop(name, None)
hide = mock.patch.dict(os.environ) # in-process calls read os.environ: the harness running this suite must not leak in
hide.start()
self.addCleanup(hide.stop)
os.environ.pop("CLAUDE_CODE_ENTRYPOINT", None)
subprocess.run(["git", "init", "-q", self.data], check=True, capture_output=True, stdin=subprocess.DEVNULL)
def in_process(self, fn, *args):