Repository navigation
feat(daemon): bounded-backoff crash recovery and local hanzod build docs (#24) - #26
Conversation
Signed-off-by: Trần Hoàng Tú <tuth@ominext.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Clean end-to-end implementation for #24, @tranhoangtu-it — completes |
Closes #24
/claim #24
Summary
Lifecycle::spawn_supervisor+SupervisorGuard, wired into bothmain.rsandlib.rswith clean shutdown) andPOST /v1/lifecycle/reconcileendpoint (reconciler.rs+backoff.rs).crashedstatus +last_exitsurfaced in/v1/lifecycle/status,doctor, andps) across runtime, platform services, and managed app processes (AppProcessObs,Engine::refresh_liveness, and real OS child tracking inSystemExecutorviaproc::bg_tokio_cmd).BackoffPolicy/BackoffTrackerwithinitial,max, andreset_afterhealthy reset) that clears automatically on explicitstop,down,start, andresetactions.hanzodbuild prerequisites, test commands, and runtime verification inREADME.md.daemon/src/lifecycle/reconciler.rs(958lines) and all newly added/edited Rust files under 1,000 lines with LF line endings and zero edits toCargo.lockorvendor/.Verification
Automated tests (
cargo test --locked)cargo test --locked -p hanzod --lib lifecycle->ok. 9 passed; 0 failed(includingkilled_workload_reconciles_with_bounded_backoffandsystem_executor_recovers_killed_os_child_process)cargo test --locked -p hanzod --lib proc::tests::no_unguarded_command_new_in_daemon_src->ok. 1 passed; 0 failedcargo test --locked -p steward -p zaphttp->ok. 5 passed(steward) +ok. 5 passed(zaphttp)cargo build --locked -p hanzod --bin hanzod-> compiled cleanly (devprofile)Local
hanzodboot & endpoint probe (isolatedHANZO_DATA_DIR,HANZOD_TARGET_RUNNER=0)