OptionalawaitOptionalcodeSelf-supersede (#141): watches the code tree (the checkout that owns
this running module, not any configured run source) for a git pull
out from under the process. Absent for a viewer-only/npm-installed
process with no code repo to watch (resolveCodeRepo returns null) —
the loop then behaves exactly as it did before #141.
OptionaldebounceOptionalheartbeatOptionallogOptionalonFired exactly once, after the heartbeat write, when the monitor confirms a clean fast-forward past startHead.
OptionalschedulerWhen present, every tick also reconciles orchestrator.yaml's schedules (§4.6).
OptionalstaleAdvisory staleness check run on heartbeat ticks; returned lines are logged (#150).
OptionalstopHow long stop() waits for the pass that is running before it drains
without it (default STOP_WAIT_MS; #502). See STOP_WAIT_MS.
Whether
runLoopresolves only after its startup pass has finished (default true, as before #502).startOrchestratorspasses false, so one repository's slow or hung first pass does not hold up the others, or the handle a caller needs to install its signal handlers.