Repository navigation
Conversation
… (HACK-2731) Low follow-ups from the #1273 and #1274 reviews: - The storage barrier reports `graph_cleanup_uncertain` only for a flush that did not confirm (deadline, lost reply or a failed guest command). `guest_identity_mismatch`, `runtime_changed` and every other error keep their own code. - `graph foreground-owner` reports `cross_boot_relay`: whether the cross-boot recovery can prove the dead relay owner (a bridge slot, or a settled relay startup). A live run with no published port and an unsettled relay is no longer advised `hack down --recover`, and the down no longer starts the pool for it; the ready-stage message (and a restart's preflight loss) asks the runtime first. - A lost start's advice parses the reply with the down's own parser (`parseNativeForegroundOwner`), so version, owner and digest checks cannot drift apart. - `hack down --recover` starts a stopped pool for a stopped run whose lost-removal repair is owed: the refused `hack up` leaves a marker beside the run mapping, and the runtime reports an unconfirmed repair (`lost_removal_pending`). A verified stop clears the marker. This ends the `hack up` / `down --recover` loop after the pool goes idle. The ForegroundLossRecovery model gains relay settlement (`settled`, `Unsettled`, `LiveRelayAdvice`) and the `live-relay` negative control, which fails on #1273's message rule. 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. Nice work! 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. |
…e relay (HACK-2731) #1279 review: - A ready-stage loss now withholds `hack down --recover` only when the receipt is live and its relay owner is unprovable (`nativeLiveRelayUnprovable`). A VM lost during the owner's own stop (`cleanup-intent`, `stopped-data-retained`) or with a pending same-boot recovery keeps the down advice it had before, for `hack up` and for a restart lost in its preflight. - `cross_boot_relay` counts a bridge registry as holding the run's slot only when the current pool owner wrote it, as its doc says. - Removing a run mapping removes its lost-removal marker and a temporary file an interrupted marker write left beside it. The ForegroundLossRecovery README says the receipt phase at ready is out of the model's scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review round 1 fixes are in
Gates at
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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 | Head | Observed | Result | Evidence |
|---|---|---|---|---|
1. No-port project whose app has a host dependency (fixed host_pid listener). Provider SIGKILLed while relay_startup.services.app.phase reads prepared (polled from the graph's state.json; seen prepared → released) |
93af4083 |
killed 365 ms into the start, before ready, relay still prepared. Advice: "It was lost before its services were ready, and no hack command can retire a run lost at that point yet. Keep this native home unchanged for inspection…": no down --recover, no command named. A plain hack down refuses runtime_not_running and does not start the pool |
PASS | 20261126-162945-93af4083-p1279-dep2-s0 |
| 1. The same, after ready | both | not reachable here: with a fixed-pid listener the relay is already released before ready. My e4dedc2c kills (one before, one after ready) both landed on a released relay; there the advice names hack down --recover, and the plain down starts the pool, which is correct for a settled relay |
n/a | 20261126-161111-e4dedc2c-p1279-dep-s0 |
2. A run started on a pre-HACK-2719 binary (next c62f4350, which predates #1273; no next.27 or earlier release was cached), hack down, provider killed 2 s later, then this head's hack up |
e4dedc2c and 93af4083 |
up refuses: "…stopped containers that its last hack down had removed are listed again… Nothing was started. Run hack down --recover to remove them again (data kept), then hack up." (web listed as exited). The pool did not stop on its own within 120 s, so I stopped it with runtime down. Then hack down --recover starts the pool and prints "Stopped containers of this run that a lost VM had brought back were removed again; the run's data is kept." After that: hack up ready in 1.6 s, web 200, row kept; a further down/up -d cycle works, so no loop |
PASS | 20261126-160118-e4dedc2c-p1279-old-s0, 20261126-163046-93af4083-p1279-old-s0 |
| 3. Barrier error passthrough | no way to trigger a non-timeout barrier error (such as a guest identity mismatch) on a real VM from outside; skipped | NOT RUN | ||
4. #1273 VM-loss rows: provider killed under a live run (no port), then down --recover and up; plus killed before ready, and the restoring variant |
both | up exits 1 within 0.4 s; down --recover exit 0 in 2.7 to 3.6 s; up ready; data kept; restoring advice names down --recover then up and both work |
PASS | …160532-e4dedc2c-p1253-s, …160651/160755-e4dedc2c-p1253-row2c, …163432-93af4083-p1253-s |
New. VM lost during a Ctrl-C stop, receipt at cleanup-intent (foreground up ready, Ctrl-C, provider SIGKILLed 50 ms later) |
93af4083 3 of 3, e4dedc2c 1 of 1, next 1 of 1 |
exit 1 in 0.14 s with "Run hack down --recover to retire this run with its data kept, then hack up to start it again." But hack down --recover → runtime_not_running; hack ps → runtime_not_running; hack up → graph_foreground_owner_exited_unadmitted. runtime status says the pool is recovered-unclean with no live runs; runtime recover leaves it so; down --recover still refuses. Dead end |
FAIL (HACK-2746) | 20261126-164742-93af4083-p1279-ctrlc-s0 (.keep), next 20261126-164656-682a0296-p1279-ctrlc-s0 (.keep) |
New. The same at stopped-data-retained (kill 3.1 to 3.6 s after Ctrl-C) |
both | the stop had already finished: foreground exit 130, no lost-VM advice; a plain hack up works (ready 4.0 s, web 200, row kept) |
no loss case reached | 20261126-164005-93af4083-p1279-ctrlc-s0 |
5. smoke |
both | PASS | …160900-e4dedc2c-smoke, …163543-93af4083-smoke |
Harness false failures, fixed and rerun: the host-dependency fixture first lacked the share grant and used the python3 shim's pid instead of the listener's. The first "Prepared" detector matched binary files. Two row 2 checks looked for "brought back", but the message says "listed again".
Nothing was merged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0439aa5a45
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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. |
…HACK-2731) #1279 review (Codex P2): a ready-stage loss the runtime cannot retire (`retirable` false) names no command, but the start's own error (the final inspection's unconfirmed cleanup) kept its "Run hack down --recover" sentence in the `(cause: …)` line. The cause's recovery sentence is now dropped for that stage too, as it already was for a requested loss. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Head
Gates at
|
|
@codex review |
|
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. |
…ad/ctrl-c-loss-recover Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes the low follow-ups in HACK-2731 (from the #1273 and #1274 reviews). After a lost VM, the CLI now names only recovery commands the runtime accepts.
What changes
storage_barrier_outcome(packages/runtime-core/src/provider/graph/mod.rs) reportsgraph_cleanup_uncertainonly for a flush that did not confirm: the exec's deadline or a lost reply (agent_protocol_uncertain), or a guest command that did not exit 0 (guest_command_failed).guest_identity_mismatch,runtime_changedand every other error keep their own code and message.preparingrun with unsettled host dependency servicesnextby #1273.nativeCrossBootRecoverableadmits a lost-start phase only withcross_boot_start, which the runtime sets only for a settled relay and dependency startup with no cleanup marker (dead_owner_cleanup::unconfirmed_start). Theunsettledrow of the existingnativeLostStartRetirabletest covers it. The gap that was left is the live phases, which is item 4.nativeLostStartRetirableparses the reply looselyselectForegroundOwnerintoparseNativeForegroundOwner(src/backends/native-cross-boot-recovery.ts). The down and the lost-start advice now share it, so version, run, owner, receipt digest andlive_owner_recoverydigest are checked the same way in both.graph foreground-ownernow reportscross_boot_relay: the run holds a bridge slot (its routes prove the dead owner), or its relay startup settled (bridges::cleanup::relay_owner_provable). A live phase counts as recoverable only with it, sohack down --recoverno longer starts the pool for such a run. A ready-stage loss, including a restart lost in its preflight, asks the runtime first and names no command when the relay is unprovable. If the field is missing (an older runtime), the result is true, as before. If the read fails at the ready stage, the existing advice stays.hack up/down --recoverloop after the pool idlesrecordNativeLostRemoval).graph foreground-owneralso reports the runtime's own marker of a repair whose barrier never confirmed (lost_removal_pending). When the pool is stopped,hack down --recoveron that stopped run starts the pool, and the repair then runs as before. A verified stop clears the marker. A plainhack downdoes not start the pool for it. The marker is advisory: the runtime still revalidates the receipt and each container, and a stale marker costs one pool start. I preferred this to keeping the pool from going idle: that would hold a VM up for as long as the user takes, and would still loop if the pool stopped for any other reason.flowchart TD L[VM lost under hack up] --> S{graph foreground-owner} S -->|live phase, slot or settled relay| D[hack down --recover, then hack up] S -->|live phase, no port, unsettled relay| K[No command: keep the native home] S -->|lost start, cross_boot_start| D S -->|lost start, not admitted| K R[hack up finds containers brought back] --> M[marker for this run] M --> P{pool stopped?} P -->|yes, down --recover| U[start the pool] --> X[repair, verify, clear marker] P -->|no| XUpdated state chart (Pele 1.9.0, label check
PASS ... 0 findings):docs/diagrams/foreground-loss-recovery.pngModel
tests/models/tla/foreground-loss-recovery: addssettled(relay startup settled when the VM died),UnsettledandLiveRelayAdvice. No-route proofs and lost starts now need a settled relay.positiveholds across 596 states. The newlive-relaynegative control is #1273's message rule, which namedhack down --recoveronce ready for a run with no port and an unsettled relay. It failsNoRefusedAdvicewith exactly that witness. The other controls keepUnsettled = FALSE, so their witnesses do not change.Validation
only_an_unconfirmed_barrier_reports_the_barrier_refusal.started, relay unprovablerow and the ready-stagerelay unprovablerow.down --recover starts a stopped pool for an owed lost-removal repairrows.a_live_run_relay_owner_is_provable_by_its_bridge_slot_or_a_settled_relayandforeground_owner_reports_an_unconfirmed_lost_removal_repair.bun install --frozen-lockfile; focused bun tests (native-project-start,native-project-down,native-project-retained-startup,native-start-pool-watch: 428 pass, plus the new rows); rootbun run typecheck;bun run check(the 111 warnings matchnext);bun run test:models;bun run docs:check;bun run privacy:check; gitleaks;cargo +1.97.1 fmt --check; clippy-D warningswith default features and with--all-features; runtime-coreprovider::graphtests under the native-bench lock (723 pass).--init, scratch clone ate4dedc2c):cargo fmt --checkpasses, and clippy-D warningspasses with default features and with--all-features.test-runtime-core.shpasses with default features.bun run test:modelspasses (live-relayverified).test-runtime-core.sh --all-featurespasses every target except one lib test,hostname_authority::managed::tests::serving_loop_exits_soon_after_its_owner_fifo_closes("kept serving after its owner's pipe closed: Timeout"). That test fails the same way on the base682a02964f, passes alone 5 times out of 5, and this PR does not touch that module. It is a timing failure under load that predates this PR.Mac rows worth running
Prepared, then afterready. Expect nohack down --recoveradvice, and the down does not start the pool.hack downon a pre-HACK-2719 receipt, thenhack up(brought-back containers refusal). Let the pool idle-stop, thenhack down --recover. Expect the pool to start, the repair, the note, thenhack upsucceeds.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.