Repository navigation
serve --pm: a spawn_worker tool that asks an executor for a long-running agent worker - #436
Conversation
…ing agent worker The Project Manager can already answer itself or delegate one task to an expert model. Some work is neither: it edits files, builds, measures, or runs for hours. With --pm-spawn-url URL the PM also gets spawn_worker(worker, box, class, task), which POSTs a versioned proposal (schema_version, worker, box, class, task) to that executor and puts its answer in the tool result: accepted (with the worker, box, class, resolved model, session and brief path) or the reason it was refused, and the PM tells the user either way. The option is off by default and without it the tool is not offered. The engine starts nothing itself: no shell, no tmux, no model choice of its own. The executor decides, so the guards live in one place and cannot drift with the model. docs/pm.md describes the option and the proposal; tests/pm_route.sh covers the proposal the executor receives, an accepted worker and its pm.spawns record, a refusal, an unreachable executor, and that the tool is absent without the option, using the new tests/fake_spawn_exec.py.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
…awn_worker, census, #433) (#446) * docs: the 2026-10-17/18 merges (HRX pins, DwarfStar, PM router and spawn_worker, census, #433) The docs still described the pre-2026-10-18 line. - README status: HRX pinned to AMD e3e6a976 + llama.cpp 8d9ce2c1a with the measured gate numbers; DwarfStar pinned to 5b013dc1bb75 (1BP v5) and its hardware check; the PM gains --pm-router laya and --pm-spawn-url; the census numbers of 2026-10-17. - docs/PORTING.md: the HRX pin (step 2), the Laya source/revision bump (step 4), the 2026-10-17 census (step 5). - docs/registry.md: the 2026-10-17 census table, against registry/census.json, and the current unmapped list. - docs/hrx.md: the engine#433 finding next to the other HRX0 known issues (no abort in 60 fresh loads; the 458-token prompt cannot come from this model template). - docs/dwarfstar.md: what the 2026-10-17 pin was checked on, and that serve cannot set ds4 expert cache size. - .github/workflows/bump-hrx.yml: the loom-jit trap is now described as the step that guards it, with #441 as the validated hand move and #422 still open. Facts from merged PRs #441, #429, #438, #439, #434, #436 and the hardware comments on #441 (TPIN) and #429 (TDS4). * docs/hrx.md: the LoomC-symbol guard, which is the loom-jit trap, and #441 as the validated hand move The workflow comment that described the trap cannot be pushed with this token (no workflow scope), so the fact lives where the pin process is documented: docs/hrx.md, next to the hold. --------- Co-authored-by: pi-zayap2 <bcloud@localhost>
1bit serve --pmcan already answer a request itself or delegate one task to an expert model. Somework is neither: it edits files, builds, measures, or runs for hours.
With
--pm-spawn-url URLthe PM gets a third tool,spawn_worker(worker, box, class, task), whichPOSTs a versioned proposal (
schema_version,worker,box,class,task) to that executor andputs its answer in the tool result: the accepted worker (with its box, class, resolved model, session
and brief path) or the reason it was refused. The PM tells the user either way, and the request still
answers when the executor is unreachable.
The option is off by default; without it the tool is not offered at all. The engine starts nothing
itself — no shell, no tmux, no model choice of its own. The executor decides, so the guards (worker
name, class to local model, health check before launch, duplicate names, the per-box cap, pinning
hardware work to the machine that has it, the local safety rules appended to every brief) live in one
place and cannot drift with the model.
pm.spawn_timeout_sin the experts file (default 180) is theread timeout for one proposal.
The reply's
pmobject gainsspawns[...]{worker,box,class,model,ms,ok,reason}, andX-1bit-PMmentions the spawn count.
docs/pm.md: a "Starting an agent worker (--pm-spawn-url)" section, plus the third tool and thespawnsrecords in the request/reply description.tests/pm_route.shwith the newtests/fake_spawn_exec.py: the tool is offered only with theoption; the proposal the mock executor receives carries the five fields; an accepted worker and its
pm.spawnsrecord reach the client; a refusal and an unreachable executor are relayed with the PMstill answering; one
pm: spawn ...log line per spawn.tests/fake_pm_backend.py: thespawnandspawn-rejectedtool-call forms.Rebased onto
mainafter #434; clean build and fullctestgreen on this branch (31/31, of whichpm_routeis 40 checks).🤖 Generated with Claude Code