Skip to content

fix(daemon): wait for starting owners during Cook handoff - #18880

Open
chubes4 wants to merge 1 commit into
mainfrom
fix/issue-18873-homeboy
Open

chubes4 wants to merge 1 commit into
mainfrom
fix/issue-18873-homeboy

Conversation

@chubes4

@chubes4 chubes4 commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

Cook launches now wait for a starting daemon instead of immediately failing on its owner lock. Truly terminal handoff failures trigger Cook notification delivery.

What changed

  • Poll daemon readiness for up to 90 seconds without spawning a competing owner.
  • Respect service-manager ownership throughout restart gaps.
  • Settle and announce terminal handoff failures with their recorded cause.
  • Add regression coverage for readiness, timeout, managed restarts, and failure notifications.

Verification

  • 1-verify-2d009b4c2fff7c140a0e853344ad59d7dd2bd2a362627a962da72a2e39704a8f.txt (cargo fmt --all --check): passed on 12d44c7. Base main@3f5115a advanced to 3d067bb (base_behind_by: 3; rebase onto the current base before merging). 8459 ms; retained gate metadata.

  • 2-verify-aaf750d30a0e7ed378059034b15ad55a7c8cd12ca5d8aa08fb0d9716e2921440.txt (cargo check --workspace --all-targets): passed on 12d44c7. Base main@3f5115a advanced to 3d067bb (base_behind_by: 3; rebase onto the current base before merging). 98624 ms; retained gate metadata.

  • HOMEBOY_LINT_BASE=3f5115a27b980a84f6a95a3ba7658fe91ae884fa homeboy --placement l (HOMEBOY_LINT_BASE=3f5115a27b980a84f6a95a3ba7658fe91ae884fa homeboy --placement local review lint homeboy --path . --cha…): passed on 12d44c7. Base main@3f5115a advanced to 3d067bb (base_behind_by: 3; rebase onto the current base before merging). 190263 ms; retained gate metadata.

  • repro: none (no repro gate was declared, so these gates do not prove the issue).

  • CI: pending

Cook run
  • Gate 1: tree fd4c567934535eb0a61809d58eb3e9c3663d2286
  • Gate 2: tree fd4c567934535eb0a61809d58eb3e9c3663d2286
  • Gate 3: tree fd4c567934535eb0a61809d58eb3e9c3663d2286

Evidence

Evidence is missing: no measurements, before/after observations or repro results were supplied.

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served gpt-6.1-sol. Cook time: 35m22s.

AI inspected lifecycle paths, implemented the fixes, and ran focused regression tests, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.

Closes #18873

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cook launch during a daemon upgrade fails with detached_handoff_failed instead of waiting for the starting daemon

1 participant