Skip to content

fix(cli): observe inventory in monitor; health fail-closed - #398

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/monitor-health-inventory-honesty
Sep 15, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/monitor-health-inventory-honesty

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • a3s-box monitor runs the same home-scoped inventory observe/resume refresh at the start of each poll_once before restart/health decisions (parity with ps / prune; no Running observe).
  • Detached health workers fail closed when durable state cannot be loaded (health_worker_is_current → false instead of treating unknown as still current).
  • Unit coverage for health_worker_matches_record generation/status gating (Linux CI).

Test plan

  • cargo check -p a3s-box-cli
  • cargo test -p a3s-box-cli --lib health:: (Windows skips unix-only health worker tests)
  • CI green on PR (Linux runs new health_worker_matches_record test)

Made with Cursor

Monitor poll decisions now refresh managed inventory honesty before
restart/health selection. Detached health workers treat unloadable state
as not current instead of silently continuing.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit fc02213 into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/monitor-health-inventory-honesty branch September 15, 2026 08:19
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