Commit Graph
33 Commits
Author SHA1 Message Date
Daniel Samson 5ee6b6021c cli: assert --load-level stays out of run --help
CI / test (pull_request) Successful in 3m22s
Last item of issue #2 phase 4 (CLI & output): the per-command help
test now checks that the removed flag does not resurface in the
help text.
2026-11-12 10:53:03 +00:00
Daniel Samson 3a4c4fa326 daemon: flush deprecation warnings into the log at startup
CI / test (pull_request) Successful in 3m18s
The re-exec'd daemon inherits the buffered stderr writer over
logs/zag.log from main.zig, so the deprecation warnings printed by
Context.loadConfigOnce stayed in the buffer until the process
exited and 'zag service logs' showed nothing right after starting
with an old config. Flush stderr right after printing the
warnings so they reach the log at startup, as the issue requires.

e2e now starts the daemon with a config that still carries the
deprecated load-level settings and asserts the warnings are in the
log while the daemon is running; the settings themselves are
ignored, so the effective config is unchanged for the rest of
the suite.
2026-11-12 10:40:41 +00:00
Daniel Samson 4abc94f681 load levels: remove load levels from model, config, CLI, IPC, tests, docs
CI / test (pull_request) Successful in 3m20s
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.
2026-11-12 10:07:30 +00:00
Daniel Samson 8f3f61c86a test: make liveness and search-path tests portable to macOS
CI / test (pull_request) Successful in 3m17s
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.
2026-11-11 20:46:16 +00:00
Daniel Samson 575c895306 scheduler: run only one job at a time, drop per-load-level limits
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.
2026-11-11 20:16:39 +00:00
Daniel SamsonandClaude Sonnet 5.5 0567e2ef8d build: fix the Windows-unsupported check (std.process.fatal)
CI / test (push) Successful in 3m22s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:49:21 +01:00
Daniel SamsonandClaude Sonnet 5.5 f4e15aa32d Drop Windows support: clear build error, docs updated
CI / test (push) Failing after 11s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:48:57 +01:00
Daniel SamsonandClaude Sonnet 5.5 4db6b7b1b3 docs/ci: zag is public, drop token handling from the formula, installer and README
CI / test (push) Successful in 3m23s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:37:33 +01:00
Daniel SamsonandClaude Sonnet 5.5 24c7a2804d ci: update the Homebrew tap on release; docs for brew and branches
CI / test (push) Successful in 3m19s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:27:43 +01:00
Daniel SamsonandClaude Sonnet 5.5 47b12895fd ci: read the release id correctly and reuse an existing release
CI / test (push) Successful in 3m20s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:17:26 +01:00
Daniel SamsonandClaude Sonnet 5.5 4b55f5a060 ci: report release API errors, support re-running the release for an existing tag
CI / test (push) Successful in 3m20s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:13:24 +01:00
Daniel SamsonandClaude Sonnet 5.5 508f515f5b release: v0.1.0
CI / test (push) Successful in 3m4s
Release / release (push) Failing after 5m57s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
v0.1.0
2026-10-17 14:06:47 +01:00
Daniel SamsonandClaude Sonnet 5.5 120aeeb960 ci: run on the ubuntu-latest runner label
CI / test (push) Successful in 5m25s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:59:25 +01:00
Daniel SamsonandClaude Sonnet 5.5 b3d4c3f7f0 docs: tidy AGENTS.md layout and build notes
CI / test (push) Canceled after 0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:55:07 +01:00
Daniel SamsonandClaude Sonnet 5.5 93b5370dbf docs: update README for the working binary
CI / test (push) Canceled after 0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:53:56 +01:00
Daniel SamsonandClaude Sonnet 5.5 b022dcf32b ci: Gitea Actions workflows for CI and tagged releases; strip option (M7)
CI / test (push) Canceled after 0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:53:12 +01:00
Daniel SamsonandClaude Sonnet 5.5 c5faf8a682 feat: systemd/launchd service install, managed start/stop, install.sh (M6)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:50:24 +01:00
Daniel SamsonandClaude Sonnet 5.5 9d08e4d3fd feat: zag CLI with all commands, human/JSON/XML output and e2e smoke test (M5)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:47:34 +01:00
Daniel SamsonandClaude Sonnet 5.5 35106d405b feat: per-job timeout, shared job query, config problem report, atomic job deletion; arg parser (M5 part 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:39:56 +01:00
Daniel SamsonandClaude Sonnet 5.5 bd4e585ed8 feat: output rendering (JSON/XML/human helpers); musl default build with libc for localtime (M5 part 1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:36:29 +01:00
Daniel SamsonandClaude Sonnet 5.5 0d91b0490a feat: daemon process management (M4 part 3)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:32:53 +01:00
Daniel SamsonandClaude Sonnet 5.5 01a3fbfa29 feat: daemon service with IPC handlers, cleanup timer and reload (M4 part 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:31:22 +01:00
Daniel SamsonandClaude Sonnet 5.5 e07e6acbe2 feat: Job JSON and Unix-socket IPC server/client (M4 part 1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:28:32 +01:00
Daniel SamsonandClaude Sonnet 5.5 ab507c1a7e feat: cleanup policies (M3 part 5)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:25:59 +01:00
Daniel SamsonandClaude Sonnet 5.5 8b8aa068f9 feat: resource usage sampling and usage.csv logging (M3 part 4)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:25:15 +01:00
Daniel SamsonandClaude Sonnet 5.5 b2d68bfb32 feat: crash recovery and per-level job scheduler (M3 part 3)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:23:59 +01:00
Daniel SamsonandClaude Sonnet 5.5 8cccce1383 feat: job runner with heartbeat, timeout, kill and retry (M3 part 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:22:26 +01:00
Daniel SamsonandClaude Sonnet 5.5 4f66ce07a5 feat: retry policy and process spawning helpers (M3 part 1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:21:38 +01:00
Daniel SamsonandClaude Sonnet 5.5 779ca1af83 feat: M2 configuration and load-level classification
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:20:09 +01:00
Daniel SamsonandClaude Sonnet 5.5 e39e1c91a4 feat: M1 job model, state files and repository
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:18:16 +01:00
Daniel SamsonandClaude Sonnet 5.5 d05dc22cee feat: complete M0 foundations (job ids, atomic fs helpers, Jackson-style JSON writer, TOML subset parser)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:14:37 +01:00
Daniel SamsonandClaude Sonnet 5.5 8cf40344a4 feat: add duration parser, ISO timestamps, job state machine; add AGENTS.md
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 13:10:09 +01:00
Daniel SamsonandClaude Sonnet 5.5 9e5c3e3af1 chore: initial zag project scaffold and README
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 12:59:44 +01:00