Repository navigation
A node held for resident work says so: serving/status and the hourly health carry the hold (card a18452d6) - #5543
Merged
joelteply merged 3 commits intoOct 27, 2026
Conversation
joelteply
added a commit
that referenced
this pull request
Oct 27, 2026
…ever called live work (Codex on #5543) - a_held_engine_reads_held_with_its_work_never_empty was inserted before the previous test's closing brace, nested inside it, so the harness never ran it. It is now its own top-level #[test]. - The HELD line said "the engine hosts live work" for HoldCause::Unknown too, where no work is confirmed. Each cause now has its own words: resident work names its jobs; an unreadable record says the engine's ownership is unknown and serving holds it. The test asserts the unknown line never claims live work. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 27, 2026
…52d6) The binding drift check on #5543 (job 122506384418) found ServingSnapshot.ts without the new held_for field; regenerated by the engine's export_bindings tests. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 27, 2026
…, not dev/ino (card 005e1676) (#5544) * A local endpoint's cleanup spares its successor by an ownership token, not dev/ino (card 005e1676) local_stream::Owned::remove decided whether the endpoint was still its own by the socket's (dev, ino). Linux reuses an inode number at once, so a predecessor's cleanup removed its successor's socket: a_live_owner_is_refused_and_an_old_cleanup_spares_its_successor failed at mod.rs:134 on canary 107af91 and on every PR's host job (#5543 at cbba67a). Now each bind writes a fresh ownership token (pid, clock, per-process count) to the custody sidecar, under custody, and Owned keeps it. remove deletes the socket only while the sidecar still holds that token, then clears it; a successor's bind writes its own, so a late predecessor cleanup spares it whatever inode the socket got. A crashed owner's leftover token is harmless: the next binder reclaims the stale endpoint and writes its own. The custody wait stays bounded (2 ms poll, 2 s ceiling). The successor test no longer depends on inode reuse, so it is deterministic on every OS: 60 of 60 stress runs pass on macOS; Linux is CI's. Taken back from Fable: part a (#5533) is my code. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * Cleanup requires both the socket identity and the ownership token: a replacement is spared as well as a successor (Codex on #5544) The token alone (ee9c615) let an old owner's cleanup remove whatever replaced its socket outside custody: a regular file, a symlink, or a listener that never wrote the sidecar. Owned now keeps the socket's (dev, ino) again beside the token, and remove deletes the path only while it is still a socket with that identity AND the sidecar holds this bind's token: the identity spares any replacement, the token a successor whose socket reused the inode number. Test: an_old_cleanup_never_removes_what_replaced_its_socket (a regular file and a symlink at the path survive the old cleanup). Proven by mutation: with the identity check removed it fails ("a regular file at the path survives"). The token's doc no longer claims absolute uniqueness; the stale Owned doc is fixed. Host: 10 lib + 1 integration pass, 60/60 stress. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…health carry the hold (card a18452d6)
enrico 2026-10-27: Delia's gene training (f633bd36) held the node's only engine for
hours. serving/status read ready:false, degraded_reason:null and citizen.health.hour
read "empty", so a deliberate hold was chased as a dead node (two empty-node
receipts). The hold was decided from the authoritative occupancy and only probed.
- inference::llama_server::serving_hold: a typed ServingHold { since_ms, by:
Resident{work: [job, consumer, base_model, engine pid/started_s/port]} |
Unknown{reason} }, derived PURELY from engine_residency::Occupancy. The same
work on the same incarnations keeps since_ms; a changed incarnation or job, or
a free engine, does not. Identity is the record's ids, never a label.
- ServingSnapshot.held_for: a separate field, never degraded_reason (a hold is
not a degradation). serving/status returns the snapshot, so it shows the hold.
- The serving daemon keeps the hold itself (other publishers replace the
snapshot whole) and publish_hold runs at the reconcile's occupancy decision:
set when held, cleared when free or when the paging emergency replaces it.
- citizen.health.hour: CitizenHealth.held_for read from the published
snapshot; a held hour in which nothing acted reads HELD with the work and its
start, never EMPTY or IDLE. Minds that acted are judged on their acts.
Fixtures: held then kept then released, a changed incarnation and job, record
order (engine); a hold published across a replaced snapshot and cleared on
release (serving daemon); a held hour reads HELD with the job (core health).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ever called live work (Codex on #5543) - a_held_engine_reads_held_with_its_work_never_empty was inserted before the previous test's closing brace, nested inside it, so the harness never ran it. It is now its own top-level #[test]. - The HELD line said "the engine hosts live work" for HoldCause::Unknown too, where no work is confirmed. Each cause now has its own words: resident work names its jobs; an unreadable record says the engine's ownership is unknown and serving holds it. The test asserts the unknown line never claims live work. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…52d6) The binding drift check on #5543 (job 122506384418) found ServingSnapshot.ts without the new held_for field; regenerated by the engine's export_bindings tests. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
force-pushed
the
a18452d6/a-node-held-for-resident-work-says-so-se
branch
from
October 27, 2026 23:01
cbba67a to
679c5b7
Compare
joelteply
deleted the
a18452d6/a-node-held-for-resident-work-says-so-se
branch
October 27, 2026 23:18
joelteply
added a commit
that referenced
this pull request
Oct 28, 2026
…ing the run (card 9beab2da) (#5551) * A deploy defers on the node's in-engine training hold instead of killing the run (card 9beab2da) The windows 5090, 2026-10-28: the supported consumer adopted 84386a at 02:31:56 while serving/status read held_for genome-train:8b46862c (#5543), and killed its in-engine run at 41%. The consumer hands off through reboot(force: false), whose guards knew only mlx_lm pids and eval markers; nothing read the engine's own hold. - ServingHold::live_work (continuum-engine): the live work a handoff would end, named by consumer, base and engine; None for an unknown cause (not evidence of work) or no work. - reboot(): beside the trainer and eval guards, reads the running core's serving/status and refuses as PublishedCoreError::Held when it names live work; --force ends it. No core answering, or an unreadable snapshot, proceeds and says so: no running core holds anything this handoff could end, and the deploy may be its repair. - PublishedCoreError::Held (continuum-cli-lifecycle): the consumer records it as a resource refusal with no attempt charged and no durable deferral, so it rechecks on its next pass (a plain error would charge HandoffFailed and give up after three). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * An unreadable hold on a live core defers the handoff, --force names what it ends, and a Held refusal is tested to charge nothing (Codex on #5551) At 6e6a4a1 a serving/status read that timed out or did not decode collapsed into "nothing held", so a busy training core could still be killed because the guard's read failed; --force skipped the read, ending work with no receipt. - deploy_hold (continuum-cli-lifecycle, beside core_bind_guard): the pure verdict over HoldObservation { NoCore, Free, LiveWork, Unreadable }. Only Free and NoCore proceed on their own; LiveWork and Unreadable defer; --force proceeds through either and says what it ends, or that it could not know. - reboot(): observe_engine_hold reads serving/status always (forced too). A failed read is NoCore only when no core process is alive (running_core_pids), else Unreadable. - deploy_consume: handoff_refusal, the pure charge of a refused handoff (Deferred / Blocked / Failed), extracted from the pass with its behaviour unchanged; Held is Blocked (no attempt charged, no durable deferral). The race between the hold read and the teardown (a job admitted in between) is scoped to card 91921d0f, with S7 stop-drain (920619c5). Tests: deploy_hold::only_a_confirmed_absence_of_work_proceeds_and_force_names_what_it_ ends (local); deploy_consume_tests::a_held_handoff_charges_no_attempt_and_keeps_no_ deferral (CI). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A decoded hold of unknown cause defers the handoff like an unreadable one (Codex on #5551) At 04b1aa4 a serving/status hold that decoded with by = Unknown (its residency record unreadable) went live_work -> None -> Free, so the handoff proceeded past work it could not see. observation_of (reboot.rs, pure) maps a decoded hold: none is Free, resident work is LiveWork, an Unknown cause is Unreadable (deferred, --force overrides). Test: reboot_tests::a_decoded_hold_of_unknown_cause_is_unreadable_never_free, from held_for's own wire JSON (resident, unknown, empty). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * CI's CLI handoff job runs the two new deploy-hold regressions by exact name (Codex on #5551) The job's exact list held seven tests and neither new one, so a green job never ran them: tests::reboot_tests::a_decoded_hold_of_unknown_cause_is_unreadable_never_free and tests::deploy_consume_tests::a_held_handoff_charges_no_attempt_and_keeps_no_deferral. Each must report '1 passed' or the job fails. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Why
On enrico, 2026-10-27, Delia's gene training (job f633bd36) held the node's only engine for hours, and no resident could be seated. The node looked dead:
serving/statusreadready: false, degraded_reason: null;citizen.health.hourreadverdict: empty;The hold had been decided correctly, from the authoritative engine occupancy, but it was only ever probed (
serving.reconcile.held_for_resident_work), never published. Assigned by Codex, who specified a typed occupancy field,since_mskept across observations, clear on release or replacement, no identity inferred from labels, both consumers, and fixtures for held→release and a changed incarnation.Change
continuum-enginellama_server/serving_hold.rs: a typedServingHold:since_msandby, wherebyisResident { work: [job, consumer, base_model, engine pid/started_s/port] } | Unknown { reason };ServingHold::of(occupancy, previous, now)fromengine_residency::Occupancy;since_ms, while a changed incarnation or job starts a new hold and a free engine has none;ServingSnapshot.held_for: a separate field, neverdegraded_reason, because a hold is not a degradation (one value, one meaning).serving/statusreturns the snapshot, so it shows the hold.continuum-serving):serving_hold), because other publishers replace the snapshot whole;publish_holdruns at the reconcile's existing occupancy decision, inside itsServingOperation, and sets the hold when held, clearing it when the engine is free or when the paging emergency replaces it anyway;continuum-cognitionhealth_ledger,continuum-corecitizen_health):CitizenHealth.held_foris read from the published snapshot. An hour that was held and in which nothing acted readsHELD: the engine hosts live work since <rfc3339> — job <id> (<consumer>) on engine pid <pid>, never EMPTY or IDLE. Minds that acted are judged on their acts.Tests
a_hold_keeps_its_start_while_it_lasts_and_is_gone_on_releasea_changed_incarnation_or_job_is_a_new_holdthe_records_order_is_not_a_new_holda_hold_is_published_keeps_its_start_and_is_cleared_on_release(across a replaced snapshot)a_held_engine_reads_held_with_its_work_never_emptyserving_holdplusllama_server::tests, with the new snapshot field in place).serving_budget_plans_around_other_consumers_floorsandwithout_a_past_form_of_ourself_a_six_gigabyte_box_really_does_downshiftfail identically on canary without this change on this host, which had about 13 GB held by the training job (card c4d84be3's class).ServingSnapshotliterals: 15 full literals across the workspace gainedheld_for: None.Measured after deploy (owner: Cormac)
On the next node held for resident work,
serving/statusshowsheld_forwith the job and a stablesince_ms, and the hourly health reads HELD. Card a18452d6 stays open until that receipt is posted.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE