agent/pkg
Snider 53db749738 fix(runner): reserve slot on approval to prevent TOCTOU race
Runner now creates a reservation entry (PID=-1) in the workspace Registry
immediately when approving a dispatch. This prevents parallel requests
from all seeing count < limit before any spawn completes.

Reservations are counted by countRunningByAgent/ByModel (PID < 0 = always
count). Agentic overwrites with real PID via TrackWorkspace after spawn.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-26 11:23:04 +00:00
..
agentic fix(runner): reserve slot on approval to prevent TOCTOU race 2026-03-26 11:23:04 +00:00
brain feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
lib feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
messages feat(runner): extract dispatch runner into independent Core service 2026-03-26 11:00:47 +00:00
monitor feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00
runner fix(runner): reserve slot on approval to prevent TOCTOU race 2026-03-26 11:23:04 +00:00
setup feat: AX v0.8.0 upgrade — Core features + quality gates 2026-03-26 06:38:02 +00:00