Skip to main content

Crate chump_orchestrator

Crate chump_orchestrator 

Source
Expand description

chump-orchestrator — AUTO-013 MVP steps 1+2.

See docs/AUTO-013-ORCHESTRATOR-DESIGN.md for the full design. Step 1 shipped the gap-picker (pickable_gaps) + dry-run binary. Step 2 (this PR) adds dispatch — subprocess-spawn for dispatched subagents. Monitor loop + reflection writes are steps 3-4.

INFRA-DISPATCH-POLICY adds pick_gap — the policy-aware single-gap selector used by chump --pick-gap. Unlike pickable_gaps (which is stateless), pick_gap reads live lease state and the CHUMP_DISPATCH_CAPACITY cap, then sorts eligible gaps by priority ASC / effort ASC.

Modules§

dispatch
Subprocess spawn for dispatched subagents — AUTO-013 MVP step 2.
monitor
Monitor loop for dispatched subagents — AUTO-013 MVP step 3.
reflect
Per-dispatch reflection writes — AUTO-013 MVP step 4.
self_test
AUTO-013 step 5 — synthetic end-to-end harness.

Structs§

Gap
A minimal view of a gap entry from docs/gaps.yaml.

Functions§

dispatch_capacity
Read CHUMP_DISPATCH_CAPACITY from env, defaulting to 3.
done_ids
Collect IDs of gaps already shipped (status == “done”).
load_gaps
Parse a gaps.yaml file from disk. Tolerant of unknown fields.
pick_gap
Policy-aware single-gap picker — the heart of chump --pick-gap.
pickable_gaps
MVP picker. Filters open gaps to those a robot orchestrator can safely auto-dispatch, in input order, capped at n.