Stop director dispatch from exceeding the global engineer limit #1369

Merged
coilyco-ops merged 6 commits from issue-1016 into main 2026-07-15 09:58:47 +00:00
Member

This tightens engineer admission so a launch waits for Docker to reflect the new container before the capacity lock is released, and it makes the director list surface derive its count from the same live running set the dispatcher uses.

  • closes #1016
  • ward.workflow: pull-request-and-merge
  • tests: WARD_CONFIG_REF=file://$PWD/.ward/ward-kdl go test ./cmd/ward -run 'TestEngineerContainerLimit|TestLaunchAgentContainerRejectsAtLimitWithoutReservation|TestEngineerCapacityLockSerializesConcurrentAdmissions|TestEngineerCapacityLockWaitsForVisibleContainerBeforeRelease|TestAgentRunningEngineerFromInspectIncludesReservation|TestFormatAgentListCapacityNotesUnavailableSource'
This tightens engineer admission so a launch waits for Docker to reflect the new container before the capacity lock is released, and it makes the director list surface derive its count from the same live running set the dispatcher uses. - closes #1016 - ward.workflow: pull-request-and-merge - tests: `WARD_CONFIG_REF=file://$PWD/.ward/ward-kdl go test ./cmd/ward -run 'TestEngineerContainerLimit|TestLaunchAgentContainerRejectsAtLimitWithoutReservation|TestEngineerCapacityLockSerializesConcurrentAdmissions|TestEngineerCapacityLockWaitsForVisibleContainerBeforeRelease|TestAgentRunningEngineerFromInspectIncludesReservation|TestFormatAgentListCapacityNotesUnavailableSource'`
fix: serialize engineer capacity admissions
Some checks failed
test / test (pull_request) Failing after 20s
687ce81406
fix: serialize engineer capacity admissions
Some checks failed
test / test (pull_request) Failing after 21s
1b93720812
fix: restore ward-kdl source bundle
Some checks failed
test / test (pull_request) Failing after 19s
bdfe3785df
fix: keep engineer dispatch under the global cap
Some checks failed
test / test (pull_request) Failing after 22s
1943cef310
fix: keep engineer dispatch under the global cap
All checks were successful
test / test (pull_request) Successful in 23s
1456f05378
Author
Member

WARDED_WORKFLOW: blocked 🛑

details

manual close/update snapshot at 2026-07-15T09:41:17Z is newer than the latest ward acknowledgement at 2026-07-15T09:14:23Z

This action is blocked until the feedback is visibly acknowledged.

— Codex, via ward agent

WARDED_WORKFLOW: blocked 🛑 <details><summary>details</summary> manual close/update snapshot at 2026-07-15T09:41:17Z is newer than the latest ward acknowledgement at 2026-07-15T09:14:23Z This action is blocked until the feedback is visibly acknowledged. </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Merge remote-tracking branch 'origin/main' into issue-1016
All checks were successful
test / test (pull_request) Successful in 53s
1cb4ef76c4
# Conflicts:
#	.ward/ward-kdl/forgejo.swagger.lock.json
#	.ward/ward-kdl/ward-kdl.defaults.kdl
#	.ward/ward-kdl/ward-kdl.docker.guardfile.kdl
#	.ward/ward-kdl/ward-kdl.forgejo.guardfile.kdl
#	.ward/ward-kdl/ward-kdl.tailscale.guardfile.kdl
#	cmd/ward/agent.go
#	cmd/ward/agent_capacity_test.go
#	cmd/ward/agent_list.go
#	cmd/ward/agent_reap.go
#	cmd/ward/configsource_test.go
#	cmd/ward/forgejo_ops.go
#	cmd/ward/forgejo_ops_test.go
#	cmd/ward/setup_test.go
#	cmd/ward/smartdefaults_test.go
Sign in to join this conversation.
No description provided.