Skip to content

fix(runtime): refuse scale Ready from inspect Running alone (#427) - #427

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/427-scale-ready-requires-durable-running
Sep 16, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/427-scale-ready-requires-durable-running

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Scale inventory maps InstancePhase::Ready only when durable managed state is Running and inspect reports Running.
  • Transitional durable states (Pausing/Killing/Starting/…) that still observe as Running stay Active, so reconcile continues convergence and does not invent ready_replicas from Running-alone.

Does not flip B2, invent Live digests, invent pool ps, or widen timeouts.

Test plan

  • cargo test -p a3s-box-runtime --lib local_scale_inventory_refuses_ready
  • cargo test -p a3s-box-runtime --lib scale::reconciler
  • CI Format / Clippy / Test / Docs

Scale InstancePhase::Ready requires durable managed Running plus Running
observe. Pausing/Killing/Starting must stay Active so ready_replicas and
ensure_running skip are not invented from transitional Running (#427).

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit e658d71 into main Sep 16, 2026
2 of 7 checks passed
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.

1 participant