Commit Graph
13 Commits
Author SHA1 Message Date
aiongg faa08ba595 Pools: unsettled-push gate counts only live recent pushes and is a plain skip at item start, StoppedError ends a job as done, halts are rethrown in every step catch, pool room formula 2026-11-07 03:19:52 +00:00
aiongg 7506afe4e8 Pools: per-pool cap, stop check before each model call, cancelled items leave no failure rows, unsettled-push limit, one PR's items in sequence, exact issue-ref log prefix, reservation ends when the PR audit row exists 2026-11-07 03:15:16 +00:00
aiongg 40e8595cb1 Jobs are unique per step and repo: step_parallel setting, named mutexes only for shared global work, security-first start order, slot-aware starts, narrowed lease-skip unpark 2026-11-07 00:21:49 +00:00
aiongg fee8c0d49d Record a job's lease skips and park the step only while a lease is held 2026-11-07 00:09:54 +00:00
aiongg 7f87a535c5 Leases: re-read after the lease, lease the remaining per-PR write loops, recompute the limit at enqueue, count lease skips as activity 2026-11-07 00:08:43 +00:00
aiongg 44cd4e5248 Work leases, daily-limit reservation and ctx.stopping()
Fix-up, CI fix, Fix, Collect fix results and the security fix lease the PR, issue or finding they work, so two jobs never work one head. A job's limit leaves the unspent part of the step's other queued or running jobs. Fix-up takes its item budget before an item's first await. Jobs stop starting items when cancelled, past the deadline, or started by the pipeline while it is not on.
2026-11-07 00:02:22 +00:00
aiongg dfb7bbbb1f Model-call queue with priority classes and a global Jev cap
Waiting Claude calls are rows in model_waits, ranked by class (security, path to merge, rest), then running calls of the repo and step, then age; a freed slot goes to the best-ranked fresh waiter. queueRoom replaces claudeRoom. jev_parallel caps running Jev calls across all jobs (default 16).
2026-11-06 23:48:24 +00:00
aiongg 78470474d8 Stuck jobs review fixes: code-derived deadlines, graceful deadline stop, drain only from on, check history, drain blocks manual jobs, cheaper warning query
- Deadline is the larger of the registry floor and the bound from the code (model calls, check time, lint rounds, items); a stopped step waits at least 1 hour.
- At the deadline the job is told to finish its current item; its process is stopped 10 minutes later.
- pipeline drain is refused from Off; pipeline on --if-draining ends only a drain.
- Check limit history: same shape, exit 0, run time from worker claim; queue wait keeps the total cap.
- Draining starts no job, manual ones included. deadlineStops reads a bounded window; index for the median query; ack refuses unknown steps; no Draining subtitle.
2026-11-05 18:26:26 +00:00
aiongg 4dd4d93800 Rename remaining craft-auto names to autocraft (command, env vars, paths, key label) 2026-11-03 16:48:10 +00:00
aiongg 7346945846 Autopilot: plan on content changes, fingerprint idle jobs, short failure backoff, one-minute external polls 2026-11-03 06:38:27 +00:00
aiongg dae0453ecd Claude accounts, agent runs and rates: account allocation, run recording, API, CLI, docs 2026-11-02 19:55:16 +00:00
aiongg ed39e5bcd8 Autopilot: pipeline on/off switch, per-stage daily item limits, planner in the runner; remove schedules 2026-11-02 19:41:52 +00:00
aiongg 35f5222238 Pipeline runner: jobs table, step registry, runner service and Pipeline API 2026-11-02 19:12:47 +00:00