Skip to content

fix(runtime): refuse inventing Service Stopped when Failed exit absent - #401

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/service-failed-no-invent-stopped
Sep 15, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/service-failed-no-invent-stopped

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Runtime Service runtime_state no longer treats missing exit_code as clean stop (unwrap_or(0) invented Stopped over durable Failed/dead).
  • Keep Stopped for authenticated exit 0 and operator durable Stopped without exit yet.
  • Unit tests lock Failed/dead/Stopped + exit presence combinations; CHANGELOG/ROADMAP honesty notes.

Test plan

  • Linux CI Test runs runtime_state_honesty_tests (driver is linux+vm only)
  • Format / Clippy / SDK Local Sandbox green
  • Confirm no prune/reclaim/B2/Live-digest changes

Durable Failed/dead with no exit_code must not project Stopped via unwrap_or(0). Operator Stopped without exit and authenticated exit 0 stay Stopped.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit b351e8e into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/service-failed-no-invent-stopped branch September 15, 2026 10:41
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