Repository navigation
Conversation
…shes (HACK-2757) Review follow-ups from #1290: - `cross_boot_stop` no longer counts the pool's current boot while the pool runs. The cross-boot recovery never selects it, so an owner that died while its VM kept running is not sent to `hack down --recover`. A stopped pool's last boot, and earlier boots, still count. - The persisted bridge selection must pass the checks `capture_previous_boot` applies to it (`interrupted_stop_provable`): this pool owner, the old boot, no `previous_boot` or predecessor proof, this plan and bridge capacity, a serial the registry has reached, and bindings that `validate_bindings` accepts (route assignments running on that boot). An empty one needs a settled relay startup. - The doc cites `execute` and `archive_completed_prior`, where the receipt is admitted, not `prepare`, which refuses it. - A ready-stage loss that names no command says why (`withheld`): an unprovable relay, a stop the runtime reports it cannot finish, or a runtime too old to report it. - ForegroundLossRecovery gains the `old-stop-advice` negative control (`StopAdvice = FALSE`): the new runtime with the old message, which fails `NoRefusedAdvice` at `Stopping`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
…top (HACK-2757) #1291 review (High): a provider SIGKILLed with its VM leaves the pool record `running` with the dead boot until `runtime recover` writes `recovered-unclean`, and `runtime status` reads it `process-exited`. The current-boot exclusion skipped that boot too, so the owner's lost-VM advice and a plain `hack up` lost `hack down --recover`. That undid #1290's real-VM rows 1 and 2. Now the current boot is skipped only while it is live: the record says `running` and the provider is not proven gone (`identity::provider_gone`, the check `runtime status` makes). An unreadable provider counts as live, so nothing is promised then. The tests cover a `running` record with a dead provider (a cross-boot stop, and `hack up` names the down), and a live provider (neither). The case where the VM really keeps running still has no supported recovery. It is filed as HACK-2763. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review fix (High) in
Gates at
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Real-VM results at
|
| Row | Observed | Result |
|---|---|---|
1. Provider killed during the Ctrl-C stop at cleanup-intent, then hack down --recover, ×3 |
exit 1 in 0.13 s; the advice names hack down --recover. That exits 0 in 2.72, 2.65, 2.71 s ("services stopped · data retained"); ps shows stopped-data-retained; hack up ready, row kept. 3 of 3 |
PASS |
2. The same, then a plain hack up |
ready; "The native runtime had stopped under this run. It was started and the run was recovered with data retained; starting it again."; web 200, row kept | PASS |
3. Graph owner SIGKILLed during the Ctrl-C stop at cleanup-intent; provider stays alive |
the foreground exits 1 in 0.16 s with: "Native retaining shutdown is incomplete; retained state and mapping require inspection. No uncertain stop was replayed. Inspect with hack doctor --native-cleanup inspect and follow explicit owned cleanup recovery; do not repeat down or restart the pool blindly." Neither hack down --recover nor hack up is named; the only command named is the read-only hack doctor --native-cleanup inspect. The provider is still alive; ps shows phase=cleanup-intent, db=exited, web=running. |
see below |
3. … then hack up -d |
exit 1, no automatic recovery: "E_STARTUP_INCOMPLETE: Native detached startup failed (graph_foreground_owner_exited_unadmitted)… Data is retained, but no supported command can prove and retire that attempt yet; keep the native home unchanged for inspection. The native VM pool may still be running; when no other native project uses it, stop it with runtime down --json on this native home." | as expected |
3. … then runtime down --json |
exit 2, refuses: runtime_down_live_runs, "Native project runs are running in this pool …, so runtime down stopped nothing. Run hack down in each project first (hack down --recover for a run whose hack up has exited), or runtime down --force to stop the pool under them…". Afterwards ps is unchanged (cleanup-intent, web still running, provider alive) |
refuses, nothing changed |
4a. #1279 no-port unsettled relay (killed while relay_startup.app reads prepared) |
advice: "no hack command can retire a run lost at that point yet"; a plain down does not start the pool |
PASS (unchanged) |
4b. #1279 HACK-2719-era loop (run started on next c62f4350, provider killed 2 s after down) |
up refuses ("…listed again… Run hack down --recover…"); down --recover removes the brought-back container; up ready with the row kept; a further down/up works |
PASS (unchanged) |
5. smoke |
PASS |
Two points for your judgement on row 3:
- The foreground advice names
hack doctor --native-cleanup inspect, an inspection command, and no recovery command. - The
uprefusal says to stop the pool withruntime down --json, but that refuses because the run is still live. Theruntime downrefusal in turn suggests "hack down --recover for a run whose hack up has exited", which the row 3 advice says not to rely on. I did not tryhack down --recoverhere, so nothing was disturbed.
Also in that state, a hack exec … db -- psql check refused: "Native dependency refresh identity or outcome is unconfirmed". The web service kept running throughout.
Evidence: 20261127-161433, 161532, 161629-d72ea3ad-p1279-ctrlc (row 1), 161725-d72ea3ad-p1279-ctrlc (row 2), 161821-d72ea3ad-p1279-ctrlc-s0 (row 3, .keep), 161910-d72ea3ad-p1279-dep2 (4a), 161931-d72ea3ad-p1279-old (4b), 162319-d72ea3ad-smoke. Nothing was merged.
Fixes HACK-2757: the review follow-ups from #1290.
graph foreground-ownernow reportscross_boot_stoponly for a stop the recovery really finishes, so the advice never names a refusedhack down --recover.Changes
Current boot while the pool runs (
dead_owner_cleanup::interrupted_stop). The pool's current boot no longer counts while the pool is running. The cross-boot recovery never selects it, so an owner that died during its stop while its VM kept running is no longer reported as a cross-boot stop. The retained-start preflight and the lost-start advice no longer send it tohack down --recover. Two boots still count: a stopped pool's last recorded boot (a provider lost with its VM leaves the poolrecovered-uncleanwith that boot) and earlier boots. New test:an_owner_that_died_while_its_vm_kept_running_is_not_a_cross_boot_stop.Selection check (
bridges::cleanup::interrupted_stop_provable). While the registry still records the run's slots,capture_previous_bootuses those, and so does this check. Otherwise the persisted selection must pass the checks that capture applies to it:previous_bootand no predecessor proof;validate_bindingsaccepts: route assignments running on that boot, with their helper evidence.An empty selection also needs a settled relay startup. New test:
an_interrupted_selection_is_admitted_only_as_capture_previous_boot_admits_it. The HACK-2746 test now also refuses another plan, capacity or boot, aprevious_boot, and a route without helper evidence. In the retained-start preflight test, the old bare{"version":1}file now names no command; a selection the capture accepts names the down.Doc wording. The receipt is admitted by
interrupted_enrollmentinexecuteand inarchive_completed_prior. The explicit cleanup'spreparerefuses it.Advice text. A ready-stage loss that names no command now says why, through a new
withheldreason: an unprovable relay (as before); a stop the runtime reports it cannot finish (its relay cleanup marker names no ended boot of the pool, or the saved bridge selection is missing or does not match); or a runtime too old to reportcross_boot_stop. New test:a ready-stage loss that names no command gives its reason.Model. New negative control
old-stop-advice(StopAdvice = FALSE): the runtime that finishes the interrupted stop, paired with the message that always named the down. It failsNoRefusedAdviceatStoppingfor a stop with no persisted route and an unsettled relay.Validation
typecheckpasses, andcheckpasses with 111 warnings, the same asnext.cargo +1.97.1 fmt --checkpasses, and clippy-D warningspasses with default features and with--all-features.provider::graphtests under the native-bench lock: 732 pass, including the three new or changed Rust tests (they sit in macOS-only modules).test:modelspasses, includingold-stop-advice.privacy:checkand gitleaks are clean.--init, ata8369fc8): fmt, both clippy runs,test-runtime-core.shwith default features and with--all-features, andtest:models(old-stop-adviceverified) pass. The head differs froma8369fc8only in a test in the macOS-onlyretained_startupmodule, which Linux does not build.hack down --recoveradvice and no automatic recovery byhack up), and the HACK-2746 rows again.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.