rooster

Report Brain Presence

Changed on

The brain's worker says what it has in flight, every tick, so a deploy can wait for it.

Frederick, 2026-10-23 (issue #7126), after a Slack answer died under a deploy's SIGTERM: "Why is the brain stuck in the deployment process to get restarted every single time we deploy code?" The deployer repoints the rooster service only when his own code changed, and before it does it asks the worker to drain and reads turns_in_flight off GET /api/health/build-floor, which relays this report (settings_service.brain_presence). Called by tools/rooster_worker/worker.py report_presence on the same rooster:seat:probe grant the container's seat probe already reports through (/seat/probe-result): both are the container reporting about itself, and a new grant would need the service token minted again by hand (mint_service_token.GRANTS). Ruling docs/01_decisions/rulings/2026-10-23-the-brain-is-out-of-the-deploy-flow.md.

put/api/rooster/worker/presence

Request

  • Base URL
    https://api.pigeonly.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

BrainPresenceReport required

What the worker has in flight right now. See settings_service.ROOSTER_BRAIN_PRESENCE.

turns_in_flight, integer required
draining, boolean
surfaces, object

Response

Successful Response

object required

Changes