Completes issue #2 on top of the phase-1 strict single-job FIFO
scheduler. Removed:
- Job.load_level / Manifest.load_level / CreateOptions.load_level and
the manifest.json loadLevel field (old manifests still parse: unknown
fields are ignored)
- loadLevel in job JSON and <load_level> in XML output (field order
shifts; old JSON still parses)
- the [load_levels] config section, service.max_concurrent_jobs,
ZAG_LOAD_LEVELS_*/ZAG_LOADLEVELS_*/ZAG_SERVICE_MAX_CONCURRENT_JOBS
env vars, loadlevel.zig / loadclass.zig and the default .load files
Friendly deprecation: old configs and environments still load fine.
config validate and config show report the removed settings as
non-fatal warnings (validate exit 1 stays reserved for real errors)
and the CLI/daemon logs them once at startup. --load-level is gone
from zag run; old IPC clients sending loadLevel are simply ignored.
e2e: wait_state is now portable to macOS bash 3.2 (it silently skipped
three checks before) and a serial-execution check asserts the second
job stays QUEUED while the first runs and both finish in FIFO order.
README and AGENTS.md document the deviation from barn.
std.os.linux.getpid() is a raw Linux syscall (number 39), which maps to
a different syscall on macOS, so it returned a bogus pid (or killed the
test process with SIGSYS) when the suite ran on a Mac. Use the portable
proc.currentPid() in the proc and recovery tests, and make the config
search-path test expect the macOS user config dir on macOS.
This clears the three pre-existing environment failures so 'zig build
test' is green on both macOS and Linux.
Replace the per-load-level concurrency caps (2 high / 8 medium / 32
low) with a strict single-job FIFO: the scheduler starts the next
eligible queued job only when nothing is running.
- Scheduler.Options loses 'limits'; Active loses 'level'; counts[3],
runningAt(), setLimits() and limitFor() are removed; the capacity
check is now active.count() >= 1.
- Service no longer passes cfg.load_levels to the scheduler and
reload() no longer calls setLimits().
- Tests: the three load-level limit tests are replaced by a single
'only one job runs at a time and jobs finish in FIFO order' test.
Part of issue #2. The LoadLevels config type, --load-level flag and
the loadLevel JSON/XML fields remain and are removed in follow-ups.