GeezerVison is showing github.com — fleet-pool: placement review against #2179 · Issue #14724 · developing-today/code
fleet-pool: placement review against #2179 #14724DescriptionWork item 3d from the fleet transport & pooling design (#13752).
Design §3.5 step 4: review fleet placement (machines/seats) against the primitive, last. A recorded "not yet" is an acceptable outcome, because placement's fairness semantics (#7572) are the least generic part of the estate.
Acceptance
Depends on 3a and 3b.
Design record: doc/2026-11-23T21-10-36Z_design_fleet-transport-pooling/2026-11-23T21-10-36Z_design_fleet-transport-pooling.md (merged via #13757). Design issue #13752; slicing issue #14218; tracking #14158.
Remote builds and tests only: dispatch with fleet queue dispatch (runbook pkgs/fleet/doc/agents/remote-build-and-test.md).
Generated by Claude Code Activitydeveloping-today commented on Nov 25, 2026 developing-today-fleet commented on Nov 25, 2026 Claim: ITEM-WORK-258 lane (Archer's direct item lane) is working this review now — premise check passed (no other claim, no implementing PR, dependencies 3a=#14721 / 3b=#14722 read). Deliverable per acceptance: the placement review note with verdict + reasons, linked from #13752 and #2179.
developing-today-fleet commented on Nov 25, 2026 Placement review against the #2179 / fleet-pool primitive — verdict: not yet
Review of fleet placement — the live dispatch engine (pkgs/fleet/crates/fleet-queue/src/placement.rs; fleet queue dispatch / session / surfaces; the surfaces registry fleet-surfaces.json; plus the #13765 central-coordinator claim/budget state) — against the fleet-pool primitive as specified in the #13752 design §3.2–§3.5 (crate issue #14721). This is design §3.5 step 4, under #14724. Dependencies 3a (#14721) and 3b (#14722) are both still open — the crate does not exist yet — which is itself part of the finding.
Where placement already matches the primitive
- Members ⊂ groups. Surfaces (members) nest under owners (groups) in the registry; load and caps aggregate per owner — the same shape as §3.2's member ⊂ provider ⊂ account.
- Unknown load never sorts as zero. fleet placement: distinguish unreadable runner load from measured idle capacity #13611 is landed in placement:
LoadCoverage::estimated_free returns Option, and unread load is a first-class unknown, never a blind zero. This is the one §3.5 property oracle placement already satisfies.
- Decisions are recorded. Dispatch/session records and placement claims make selections readable back — the local case of §3.2's decision-log law ("a pool decision you cannot read back is a bug").
Where placement does not map onto the primitive
- No failure-evidence state machine. Nothing in placement implements
serving → demoted → walled(scope, until, evidence) → probing → serving (verified: no walled/demoted/probing/classifier concepts exist in placement.rs). Surface status is registry-declared by an operator (active / standby / pending-scope / handoff-only), and health is read at decide time (Actions load, budget and cap reads), not accumulated from classified serve outcomes. The primitive's state machine would have no inputs: no classifier turns a surface failure into (class, scope-evidence, reset-hint) today.
- Attempt semantics are deliberately inverted. The walker's law — advance on failure-to-serve — is the opposite of placement's follow-up stickiness (
sticky_queue_threshold): retries stick to the surface that already holds the session's context. That is a domain session-affinity semantic, not a gap.
- Fairness is the product, and §3.3 keeps it out of the primitive. Per-owner concurrency caps (40/20/20), macOS caps, Blacksmith budget reservation, plan-minute budgets — placement exists to be fair across owners under hard caps. The design's own cautionary boundary is id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572: lease/fairness semantics are domain-shaped, and policy "configures; it does not re-implement state." There is almost no policy-free state here to lift.
- The coordinator is the §3.4(c) exception, and it just landed. The one central-coordinator case the design directs is compile dispatch (fleet placement: central coordinator for compile dispatch — atomic slots, true load view, global budgets, cross-seat queueing #13765); its claim/budget implementation is fresh (PR fleet-queue: placement coordinator build (task 21517) #14585). Re-platforming it onto a not-yet-existing crate now buys churn, not behaviour.
Verdict: not yet
Placement should not adopt fleet-pool at this time. Reasons, in order of weight: (1) the primitive does not exist yet — 3a/3b are open, and §3.5 deliberately puts placement last so it adopts a machine proven by the walker, host selection, and the model-route boundary, not a paper spec; (2) adoption's core mechanism (classifier-driven walls) has no input feed in placement — health is read live at decide time, so the state machine would be ceremony over the same reads; (3) the parts of placement that matter most (caps, budgets, stickiness) are policy that §3.3 reserves to the domain under any adoption scenario.
Re-review triggers (any one reopens this question)
- fleet-pool crate: state machine, strategies, decision log, property tests #14721 (the crate) has landed and adopters 1–3 in §3.5's order have run on it — placement then reviews against a proven primitive.
- A surface-health classifier exists — something records classified outcomes (dispatch failure / quota wall / runner outage, with scope evidence) per surface or owner; that feed is what would give the state machine real inputs.
- Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool #2179's machine pool becomes real — a second machine is onboarded and seats are genuinely selected over, making machine/seat placement a true pool-selection problem rather than CI-surface dispatch.
Carve-outs that hold now (guidance, not adoption)
No follow-up issues filed: per this issue's acceptance, follow-ups are filed only on an adopt verdict.
developing-today-fleet commented on Nov 25, 2026 Completion record (ITEM-WORK-258): acceptance met. Review note with verdict not yet + reasons posted above (#14724 (comment)); linked from #13752 (#13752 (comment)) and #2179 (#2179 (comment)). No follow-up issues (acceptance: follow-ups only on adopt). No code changed, so no PR and no tests; evidence is the design §3.1–§3.5 read plus the live placement engine on main (placement.rs decide() / LoadCoverage, surfaces registry, owners/caps) read via the laptop clone. Closing as completed.
developing-today-fleet commented on Nov 25, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|