Repository navigation
Releases
v0.1.5
Fixed
- Honor cancellation before starting a leased command and terminate confirmed
descendants even when only the daemon observed them. Record the command's
process identity before execution so immediate executor loss preserves ownership. - Preserve submission IDs after an interrupted CLI handoff and preserve command
exit results when capturing output fails. - Recover the request-file channel from transient directory errors and collect
abandoned requests and responses. - Report blocked and capacity-limited work once per incident, including
detached work, without consuming its completion reminder. - Derive Cargo output locks from caller settings and Cargo configuration.
Include the executor's maximum RSS when predicting memory from history. - Handle spaces in jobserver FIFO paths, keep installer backups private and
remove all ATS-linked DSH profiles on a full uninstall. - Support an explicit login-service restart after replacing the binary at the
same path. - Update Tokio, bundled SQLite and rustix to versions with their published
advisory fixes.
Upgrade notes
The database upgrades transactionally to schema 6. Drain active jobs and wait
for QoS restoration to settle, then back up the database with SQLite's backup
API and keep the previous binary. After replacing a login-service binary, use
ats install --restart with the same agent selection as before and verify that
the new daemon starts. For a manually started daemon, restart it with the new
binary. Restoring an older daemon requires the corresponding pre-upgrade
database backup. That restore discards changes written after the backup.
Linux admission requires visible cgroup v2 membership and mounts. Commands
with target directories chosen by shell logic or wrappers can provide an
explicit --lock for that directory.
Full changelog: v0.1.4...v0.1.5
v0.1.4
Fixed
- Redact sensitive arguments inside nested shell command strings, with bounded
recursion and conservative display text for unparseable source. - Return a nonzero terminal CLI result for canceled work even when its main
process previously exited successfully. - Apply the executor's visible cgroup v2 memory limits and ancestor budgets on
Linux, accounting for reservations shared by sibling groups. Wait when the
execution resource domain cannot be observed safely. - Exclude failed commands from the history used to predict resource demand.
- Derive Cargo output locks from workspace roots and explicit manifest or target
directory arguments, including explicit package workspace paths. - Synchronize macOS QoS test startup and inspect base thread priority instead
of dynamic scheduler priority, including inherited policy after fork.
Compatibility and limits
The database remains at schema 5. Existing task data does not need a new schema
migration when upgrading from 0.1.3. Upgrade while no jobs are active and QoS
restoration has settled.
Linux resource-domain checks require visible cgroup v2 membership and mounts;
cgroup v1 and hidden ancestor limits are not covered. These admission checks do
not impose per-job hard memory limits. Cargo target-directory overrides through
environment variables or Cargo configuration are not fully resolved; use an
explicit --target-dir or --lock for those shared output directories.
Full changelog: v0.1.3...v0.1.4
v0.1.3
0.1.3 - 2026-11-09
Fixed
- Keep confirmed job processes, memory reservations and resource locks owned
across daemon restarts, executor loss and completion reports. A job becomes
terminal only after its owned processes are confirmed to have exited. - Continue measuring reparented and escaped workers, including later memory
growth, without adopting descendants through an unverified process identity. - Reject recovery decisions whose task facts or persisted process members changed
concurrently, without partially changing state or releasing resources. - Preserve macOS background-QoS restoration responsibilities across failed
identity reads, daemon restarts and inherited policy in later child processes. - Bound the complete socket or request-file operation, including response reads,
so an unresponsive daemon cannot leave an agent hook waiting indefinitely.
A possibly delivered submission is not replayed through another transport. - Exclude macOS metadata from portable release archives.
Changed
- Separate application operations, pure domain and process-membership logic,
submission planning and wire messages. Automated dependency checks keep HTTP
handlers away from database transactions and coordination locks. - Add isolated cross-version and concurrent process-tree acceptance scripts.
Upgrade notes
The database upgrades transactionally from schema 3 or 4 to schema 5. Existing
CLI commands and /v1 protocol messages remain compatible. A completion-report
acknowledgement means the report is durable; job queries and terminal waits
reflect final confirmation that owned work has ended.
Upgrade while no jobs are active, after macOS QoS restoration has settled.
Schema 3 cannot reconstruct escaped workers that were never recorded. Back up
the database consistently with SQLite's backup API, together with the old
binary and service configuration, before replacing the daemon.
An older daemon refuses a schema-5 database. Rollback requires the old binary
and the pre-upgrade database backup together; restoring that backup discards
records written after it was taken.
v0.1.2
Fixes from the full project review:
- Track observed job descendants across process-group and session changes when waiting for completion and cancellation; validate process identities before signaling.
- Read the macOS kernel page size using the correct sysctl integer width.
- Redact credentials inside Authorization and Proxy-Authorization header arguments.
- Preserve continuing background memory and timing estimates across nested command lists.
- Follow shell directory scopes for subshells, pipelines, substitutions, background commands, brace groups and package scripts.
- Resolve symlinks before parent path components when computing resource locks.
- Retry login-service startup when a repeated install has no file changes.
- Create installation diff inputs in a private temporary directory with restricted file permissions.
- Persist background QoS restoration obligations in SQLite and retry restoration after daemon restarts, without touching reused process identities.
The database schema advances to version 3, with transactional migration from versions 1 and 2.
Also includes the compact Codex instruction entrypoint and the separate ~/.codex/ATS.md reference.
Validation: the required checks pass on macOS Arm64, macOS x86_64, Linux Arm64 and Linux x86_64.
Full changelog: https://github.com/Natsuki-Kaede/agent-task-scheduler/compare/v0.1.1...v0.1.2
v0.1.1
Fixes task cancellation, startup recovery, secret redaction and command isolation.
Fixes
- Keep cancellation active after the main process exits, while output pipes or background processes remain open.
- Register the process group before starting the user command so executor loss cannot leave a running command without its reservation and locks.
- Redact complete quoted and escaped secret values in shell commands.
- Honor explicit
--afterdependencies and--lockresources for light commands. - Separate temporary request files, executor logs and jobserver pools by user, and keep
ATS_HOMEinstances isolated.
Upgrade
Let active jobs finish before upgrading, then restart the daemon. This release changes the default request-file directory to $TMPDIR/ats-<uid>/requests.
macOS:
launchctl kickstart -k "gui/$(id -u)/io.github.natsuki-kaede.ats"Linux with systemd:
systemctl --user restart ats.serviceExisting job history and configuration are retained. Archives are available for macOS and Linux, on Arm64 and x86_64. SHA256SUMS lists the archive checksums.
Validation
- Formatting, Clippy and all 100 tests pass locally on macOS Arm64.
- CI passes on macOS Arm64 and x86_64, and Linux Arm64 and x86_64.
v0.1.0
First release.
ats is a local queue for heavy shell commands from AI agents. An agent sends a heavy command to ats run. A daemon starts the command when the machine has memory for it. The output and exit code come back unchanged.
- Admission by predicted peak memory. Predictions come from measured history and tool profiles.
- Every job gets all cores, through a jobserver pool and parallelism variables.
- When the system starts to swap,
atsstarts no new commands. On macOS, running jobs also get background priority. - Commands that run longer than 90 seconds continue in the background.
ats waitgives their output and exit code. Reminder hooks for Claude Code and Codex tell the agent when they end. ats installadds the instructions for the model, the reminder hooks and a login service. It shows each change as a diff first.
Runs on macOS and Linux, on 64-bit Arm and x86.
Install
Give this prompt to your AI coding agent:
Install Agent Task Scheduler (ats) for me. Read https://raw.githubusercontent.com/Natsuki-Kaede/agent-task-scheduler/main/INSTALL.md and do the steps. Ask me before you change files outside this project.
Or install by hand:
brew install natsuki-kaede/tap/ats
ats installWithout Homebrew, download the archive for your machine below. SHA256SUMS lists the checksums.