Repository navigation
feat(deploy): the 5090 consumes its own deploy requests — deploy-consume turns a DeployRequest into reboot --service on a schedule; --service no longer needs a hand-supplied artifact (82af11f5) - #4208
Merged
Conversation
…deploy-consume` turns a DeployRequest into `reboot --service` on a schedule, and `--service` no longer needs a hand-supplied artifact Card 82af11f5. The DECISION half of the deploy seam is Rust and runs on every node (DeployTrackerModule records state/deploy-request.json). The ACTION half was per-platform: the Macs' launchd script consumes the request and runs `continuum reboot`; on Windows nothing did, so the 5090 ran whatever a hand last typed — five hand deploys in one day while every merged fix sat unfelt on the one seat that mattered (Fable's count, 2026-09-18). - `continuum reboot --service` without `--prebuilt`: the RAM-gated warm build (`warm_build_allowed`, Fable's build-path rule) produces the artifact and the ContinuumCore supervisor takes it, prepared before the old core stops — same check, same ordering, the artifact from the build instead of a hand. With no artifact the service path REFUSES rather than falling back to a child launch (the job-object death this card names). - `continuum deploy-consume` (Windows): reads the request from the same root the tracker writes under; verdict is PURE — no request = nothing owed; the tip already running (7-char prefix) = the tracker retires it; a dirty checkout is REFUSED (a consumer never stashes an operator's tree); else fetch, check the tip out detached, `reboot --service`. The deploy claim it takes is what the tracker's #4187 reconcile reads; `deploy.settled` with no human in the loop is the receipt. - `deploy-consume --install` registers the `ContinuumDeploy` scheduled task (every 10 min, the supervisor's sibling); `--uninstall` removes it. Tests: the_deploy_consumer_deploys_only_a_clean_checkout_toward_a_tip_not_running (verdict vocabulary + option parse); `--service` alone moves from the refusal list to the valid set. CLI test binary 47 green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…und, and uses the tracker's one sha rule Cormac's review of #4208: the task fires every 10 min, a build takes 50 here (70 on IntelMac), and the request stays on disk until Settled — so tick N+10 fired a second `reboot --service` into the first one's build; `reboot` never consults the claim (deploy_gate is the START verb's). Now consume_verdict reads deploy_claim::in_flight(root, now).blocks() and returns BuildInFlight — the fifth arm, mirroring runtime/deploy_tracker::decide — which outranks dirty and the ledger: nothing about that tick acts. An abandoned claim is still swept by reboot itself. Fable's carry: a tip green on CI can still fail on THIS box; without a bound the consumer rebuilt it every tick until the claim aged out. A per-tip ledger (deploy-consume-attempts.json beside the request) gives up after CONSUME_MAX_ATTEMPTS = 3 and leaves deploy.stranded as the receipt; a new tip resets it; success clears it. Compression: the 7-char sha-equivalence rule lived twice; the tracker's same_commit is pub and the consumer calls it (either spelling as the prefix, the test the #4187 review caught). CLI 47, runtime::deploy_tracker 8, hygiene green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
enabled auto-merge (squash)
September 19, 2026 01:51
This was referenced Sep 19, 2026
joelteply
added a commit
that referenced
this pull request
Sep 19, 2026
…rry their reasons; the consumer enters the repo before reboot (ca365c81) (#4212) * fix(deploy): canary green again — #4208's five unjustified unwraps carry their reasons; and the consumer enters the repo before reboot Cormac's card ca365c81: canary tip 7fe1d21 RED, unwrap ratchet 2268 > 2267 from #4208's merge — five `.unwrap_or(`/`.unwrap()` with no same-line reason (three display-only in the verdict println, two test fixtures). Each now says why. Every node's deploy was gated on this. And the wall the first unattended tick would have hit: `reboot`'s warm build locates tools/scripts/start-server.sh by walking UP FROM THE CWD, and a scheduled task starts in System32 — the Macs' launchd tracker's exact wall ("under launchd the cwd is /; continuum reboot then finds no source"). The consumer knows the repo; it enters it before calling reboot. CLI 47, unwrap_justification green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(hygiene): the fourth site from #4209 carries its reason too — partial_cmp(..).unwrap_or(Equal) in the hottest-volume pick Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5 <[email protected]>
This was referenced Sep 19, 2026
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.
Card 82af11f5 — the 5090 stops running whatever a hand last typed
The decision half of the deploy seam is Rust and runs on every node:
DeployTrackerModulerecordsstate/deploy-request.jsonwhen canary's tip is green and not the running build. The action half was per-platform: the Macs' launchd script consumes the request and runscontinuum reboot; on Windows nothing did. Result on 2026-09-18: five hand deploys on the 5090 in a day while every merged fix sat unfelt on the seat that mattered.The change
continuum reboot --servicewithout--prebuilt— the RAM-gated warm build (warm_build_allowed, 12 GiB floor; the 5090 has ~30 GB free while serving) produces the artifact inside this call and theContinuumCoresupervisor takes it, prepared before the old core stops. No artifact → the service path refuses rather than falling back to a child launch. No second actor is needed between the tracker's request and the consumer's tick (Fable's carry 2).continuum deploy-consume(Windows) — verdict is pure, five arms mirroringruntime/deploy_tracker::decide: no request → NothingOwed; the tip already running (the tracker'ssame_commit, 7-char floor either spelling) → AlreadyRunning; a live deploy claim → BuildInFlight (Cormac: the 10-min task vs a 50-min build — never a second reboot into the first's build; outranks everything below); a dirty checkout → RefuseDirty (a consumer never stashes an operator's tree); the tip failed here 3 times → GaveUp (Fable: a CI-green tip can fail on this box;deploy.strandedis the receipt, a new tip resets); else Deploy → fetch, detached checkout,reboot --service.deploy-consume --installregisters theContinuumDeployscheduled task (every 10 min, the supervisor's sibling);--uninstallremoves it.Faster or slower?
Neither for a citizen's turn. For the fleet: a merged fix reaches the 5090 within ~10 min of green with no human, instead of whenever a hand next types.
Tests
the_deploy_consumer_deploys_only_a_clean_checkout_toward_a_tip_not_running— all six cells incl. BuildInFlight outranking dirty + ledger, GaveUp at 3, the per-tip ledger resetting on a new tip;--servicealone moves from the refusal list to the valid set. CLI 47,runtime::deploy_tracker8, hygiene green.Receipt (after install on the 5090)
deploy.settled tip=<sha>on the 5090 with no human in the loop;deploy-consume: … in_flight=false prior_failures=0 → Deployin the task's output, and→ BuildInFlighton the ticks during the build.Not merged tonight per the settle; review requested.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc