Repository navigation
fix(daemon): pause dispatch on low disk and carry workerSandbox to the runner (AGT-4785) - #845
Merged
Merged
Conversation
…e runner (AGT-4785) The heartbeat now measures free space on every volume the daemon writes to and holds dispatch below autonomous.minFreeDiskGiB (default 10), after the worktree sweep and before any fetch or claim. One notice per change of state. service.ts also never passed autonomous.workerSandbox to the runner, so the worker bash ran unfenced while the boot log said the sandbox was on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
statfs,bavail) on every volume the daemon writes to and holds dispatch belowautonomous.minFreeDiskGiB(default 10, 0 = off). It sits after the worktree sweep and before any fetch/claim, so cleanup keeps running. One notice per change of state. Reads fail open.workerSandboxwas never passed to the runner:core/service.tsbuilds the runner config by hand-picked mapping and omitted the field. The runner sawundefined; the bash tool fences only on an explicit'on', so the worker shell ran unfenced while the boot log said "Worker sandbox: on". Now mapped.Verification
npm run ciandnpm run test:coverage(580 files / 7829 tests, thresholds met) pass locally.service.test.ts; removing the gatereturnor ignoring the configured floor failsautonomousRunner.hostHealth.test.ts.hostHealth.ts, 3/3 pass with it.statfsreadings for exact equality.Not done
/api/work,exec --issue) is not held by the disk gate.infra_error.workerSandbox.