8000 T136 — A failed retire is retried, and a resumed host-address box is admitted again by minimal-foundry[bot] · Pull Request #2964 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

T136 — A failed retire is retried, and a resumed host-address box is admitted again - #2964

Merged
norrietaylor merged 4 commits into
mainfrom
agent/2930-a-failed-retire-is-retried-and-a-resumed-host-ad
Nov 4, 2026
Merged

norrietaylor merged 4 commits into
mainfrom
agent/2930-a-failed-retire-is-retried-and-a-resumed-host-ad

Conversation

@minimal-foundry
@minimal-foundry minimal-foundry Bot commented Nov 4, 2026 •
Copy link
Copy Markdown
Contributor

T136 — A failed retire is retried, and a resumed host-address box is admitted again

slice: S16
kind: task
covers: NET-085
size: M
est: 80 code, 130 tests
executor: agent
difficulty: needs care
model: standard
diagnostics: the client's log carries one warn line per failed retire with the attempt number, and min bug bundles carry the VM host daemon log, where the admit for a resumed box appears
observability: one warn line per failed retire attempt and one info line per resumed box admitted again, each naming the box
layers:
- client:
- crates/minimal/src/cmd/boxes/vm_host.rs: HostIpResidency retries a retire whose exchange with the VM host daemon fails, three times with backoff; resume_box_row admits a resumed host_ip box's rules again, so a resumed box gets its egress back after a VM host daemon restart
test: cargo nextest run -p minimal failed_host_ip_retire_is_retried
test: cargo nextest run -p minimal resume_readmits_host_ip_box
produces: none
consumes: none
proof: After a VM host daemon restart, a resumed host_ip box reaches what its rules allow, and a box whose first retire failed leaves the gate's union.

Proof

When the first retire of a host_ip box's egress fails, HostIpResidency sends it again, up to three more times with a doubling backoff from 100 ms. The box then leaves the gate's union. failed_host_ip_retire_is_retried shows two lost retires followed by one that lands. After a VM host daemon restart, an attach on a resumed host_ip box admits its own egress rules again, so the box reaches what its rules allow. resume_readmits_host_ip_box shows one admit with the record's egress against a fresh VM host daemon stand-in.

Notes from the agent: The re-admit on resume already existed on this branch. rehold_held_name_before_attach in vm_host.rs runs right after resume_box_row in attach.rs, and dash/rpc.rs prepare_attach does the same. resume_box_row itself is in crates/minimal-client/src/box_registration.rs, which is outside the layers, so I did not move the admit into it. This task adds an info line, naming the session and the box, when the admit for a resumed box lands, plus a test that pins the admit. The dashboard path in dash/rpc.rs does not log that info line, because the file is outside the layers. The retry covers HostIpResidency's drop only, as the layer note says. The destroy path, release_held_box_name through host_ip_box_with_vm_host, still sends one retire. A follow-up can route it through retire_host_ip_box_retrying. minimal_client::attach::host_ip_box_at logs its own warn line with the failure reason. So each failed attempt gives two warn lines: that one, and the new one with the attempt number. A fix needs a change in minimal-client, which is outside the layers. The retries block the dropping thread for at most 700 ms, as the single retire already blocked. I also ran cargo nextest run -p minimal vm_host (35 passed).

Residuals

  • #2989: the dashboard destroy path in crates/minimal/src/dash/rpc.rs still retires a box once, and prepare_attach lacks the re-admit info line. Both are outside this task's layers.

Tests

line exit tail
cargo nextest run -p minimal failed_host_ip_retire_is_retried 0 Applying loadouts: default Running task runtime-implement-test-0 in session task-runtime-implement-test-0-b44c... Compiling paths v0.0.1 (/workbench/crates/paths) Compiling args v0.0.1 (/workbench/crates/args) Compiling ot v0.0.1 (/workbench/crates/ot) Compiling client-config v0.0.1 (/wo
cargo nextest run -p minimal resume_readmits_host_ip_box 0 Applying loadouts: default Running task runtime-implement-test-1 in session task-runtime-implement-test-1-8988... Compiling stdlib v0.0.22 (/workbench/crates/stdlib) Compiling version v0.8.0 (/workbench/crates/version) Compiling decode v0.0.1 (/workbench/crates/decode) Compiling mlog v0.

Verify

min task run agent-verify exited 100 under rustc 1.99.0, which the repository does not pin (1.99.1 in rust-toolchain.toml); the PR is not a draft on that alone — CI, which honours the pin, is the gate.

dSpan {
            name: "session.message",
            fields: {
                "kind": "GetNetSwitch",
                "parent_span_id": "33c23850a643b5e0",
                "span_id": "ce75aa858b269774",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "GetDenyAllOptOut",
                "parent_span_id": "33c23850a643b5e0",
                "span_id": "f20ceadf76da90ad",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "GetPaths",
                "parent_span_id": "33c23850a643b5e0",
                "span_id": "38852d2d35357e8c",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "GetRecord",
                "parent_span_id": "33c23850a643b5e0",
                "queued_behind": "0",
                "span_id": "ccfe6290c9e2d911",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "DeleteSession",
                "parent_span_id": "33c23850a643b5e0",
                "queued_behind": "0",
                "span_id": "deab885de9015e11",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "Destroy",
                "parent_span_id": "deab885de9015e11",
                "span_id": "52faf022433ccc08",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "HandOverName",
                "parent_span_id": "deab885de9015e11",
                "queued_behind": "0",
                "span_id": "c7e866134f08ee1d",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
    ]
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 
────────────
     Summary [  37.587s] 850 tests run: 849 passed, 1 failed, 1 skipped
        FAIL [   2.843s] (850/850) minimal::otel_cli exec_run_attach_and_task_run_share_the_commands_trace
error: test run failed

Base

The base branch moved while the coder worked; it was merged in before the tests ran.

Closes #2930

A host_ip box whose retire exchange with the VM host daemon fails is
retired again, three times with a doubling backoff, so it leaves the
gate's union. Each failed attempt is a warn line with its number.
An attach that admits a resumed host_ip box again logs an info line
naming the box (NET-085).
@coderabbitai
coderabbitai Bot commented Nov 4, 2026 •
Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cc837077-dee5-4137-9a9a-05339a9ea8c8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@minimal-foundry
minimal-foundry Bot commented Nov 4, 2026 •
Copy link
Copy Markdown
Contributor Author

Approved: every review thread resolved at ef33f53b9d3d.

@norrietaylor resolved the last thread, which releases the approval this review had withheld.

Nothing to do.

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: PASS_WITH_CONDITIONS · 1 condition · the full ruling

The retry and the re-admit conform to §4.3 rule 2 (line 84): the cohort is evaluated against each live host_ip box's rules. The destroy path in release_held_box_name() still sends one retire. The PR notes name this gap but file no issue for it. A lost retire there leaves a destroyed box's rules in the union. File the issue and link it from the PR body, as C1 says. No code change is required.

Ruled at a051040 against gominimal/arch@7a86ec7bb3c0 by claude-opus-5-5.

Comment thread crates/minimal/src/cmd/boxes/vm_host.rs Resolved
@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — advisory review

Verdict COMMENT — 1 finding, 1 inline.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

Comment thread crates/minimal/src/cmd/boxes/vm_host.rs Resolved
The info line ran on every attach and exec, and also when the session
lookup failed, so it claimed a resume that did not happen. It now logs
only when the session is still there, and it says admitted.
@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — advisory review

Verdict COMMENT — 1 finding, 1 inline.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

Comment thread crates/minimal/src/cmd/boxes/vm_host.rs Resolved
@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: PASS_WITH_CONDITIONS · 1 condition · the full ruling

The retry on the residency drop and the re-admit before attach agree with §4.3 rule 2 and §5.5. The info-line change since the last head is more exact, and the earlier ruling stands. Three retires in vm_host.rs still send one exchange only: destroy, post-attach and the re-admit undo. A lost retire there leaves a box that is gone in the cohort union, against §5.5 line 183. C1 routes them through retire_host_ip_box_retrying, or files the residual as an issue in the PR body.

Ruled at bb6fc5b against gominimal/arch@7a86ec7bb3c0 by claude-opus-5-5.

Comment thread crates/minimal/src/cmd/boxes/vm_host.rs Resolved
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 1 of 10 on the runtime's review findings, pushed as bb6fc5b1d3cf.

line exit tail
cargo nextest run -p minimal failed_host_ip_retire_is_retried 0 Applying loadouts: default Running task runtime-implement-test-0 in session task-runtime-implement-test-0-dc31... Compiling paths v0.0.1 (/workbench/crates/paths) Compiling ot v0.0.1 (/workbench/crates/ot) Compiling args v0.0.1 (/workbench/crates/args) Compiling client-config v0.0.1 (/wo
cargo nextest run -p minimal resume_readmits_host_ip_box 0 Applying loadouts: default Running task runtime-implement-test-1 in session task-runtime-implement-test-1-f4a7... Compiling stdlib v0.0.22 (/workbench/crates/stdlib) Compiling version v0.8.0 (/workbench/crates/version) Compiling decode v0.0.1 (/workbench/crates/decode) Compiling mlog v0.

Verify min task run agent-verify exited 100 under rustc 1.99.0, which the repository does not pin (1.99.1 in rust-toolchain.toml); the PR is not a draft on that alone — CI, which honours the pin, is the gate.

dSpan {
            name: "session.message",
            fields: {
                "kind": "GetNetSwitch",
                "parent_span_id": "07964a7c37d0afc3",
                "span_id": "025a8e049900d577",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            p
8000
arent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "GetDenyAllOptOut",
                "parent_span_id": "07964a7c37d0afc3",
                "span_id": "6ec16b641fe31e66",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "GetPaths",
                "parent_span_id": "07964a7c37d0afc3",
                "span_id": "1d576dd413499ad1",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "GetRecord",
                "parent_span_id": "07964a7c37d0afc3",
                "queued_behind": "0",
                "span_id": "7853a08b31b88580",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "DeleteSession",
                "parent_span_id": "07964a7c37d0afc3",
                "queued_behind": "0",
                "span_id": "983be7b105fd3252",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "Destroy",
                "parent_span_id": "983be7b105fd3252",
                "span_id": "2a158e9e1a2934e3",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "HandOverName",
                "parent_span_id": "983be7b105fd3252",
                "queued_behind": "0",
                "span_id": "1e154b61e6e1f30a",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
    ]
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 
────────────
     Summary [  38.382s] 850 tests run: 849 passed, 1 failed, 1 skipped
        FAIL [   2.794s] (850/850) minimal::otel_cli exec_run_attach_and_task_run_share_the_commands_trace
error: test run failed

Review threads the coder judged:

  • 👎 invalid — crates/minimal/src/cmd/boxes/vm_host.rs:566: The premise is correct: release_held_box_name sends one retire on destroy. But the task scopes the retry to the HostIpResidency drop, and the requested action is to file an issue and link it from the PR body, which this round cannot do. A retry on destroy also changes destroy timing against a VM hos
  • 👍 valid — crates/minimal/src/cmd/boxes/vm_host.rs:385: The info line now prints only on Ok(Some(_)) from the session lookup, says "admitted the host_ip box's egress on the VM host daemon" without "resumed", and an Err lookup logs nothing.

After a VM host daemon restart, an attach or exec into a host_ip box admits its egress rules again before it runs. A HostIpResidency retire that fails is sent again three times with a doubling backoff, so that box leaves the gate's union. The info line for an admit now prints only when the session is still there, and it no longer claims a resume.

Notes from the agent: Revise round 1. Thread PRRT_kwDOPdfcxM6zZA5B: the destroy path (release_held_box_name) still sends one retire with no retry. The finding asks for an issue and a link in the PR body. This round cannot file issues or edit the PR body, so a person must file it. A retry on that path also changes how a destroy behaves against a VM host daemon that does not answer the retire verb, so it needs its own task. cargo clippy -p minimal --all-targets reported no warnings.

@norrietaylor
Copy link
Copy Markdown
Member

/revise Clear arch-review's C1 and the MEDIUM thread on bb6fc5b1, both in crates/minimal/src/cmd/boxes/vm_host.rs:

  1. C1: release_held_box_name (destroy), release_held_name_after_attach and the re-admit undo each send one retire. A lost retire leaves a gone box's rules in the cohort union (design §5.5). Send all three through retire_host_ip_box_retrying, on spawn_blocking where the caller is async.
  2. MEDIUM thread on retire_host_ip_box_retrying: each attempt can wait up to HOST_ASK_CONTROL_TIMEOUT (10 s), so a hung VM host daemon holds Drop for about 40 s. Bound the whole retry with one overall deadline, so a hung daemon costs no more than one control timeout in total, and log the retire it gave up on.

Pin both in tests beside failed_host_ip_retire_is_retried.

The destroy, the release after an attach and the re-admit undo now
retire through the retries, off the async worker. All the attempts of
one retire end at one deadline, so a hung VM host daemon costs one
control timeout in total. A retire given up on is a warn line.
@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approval withheld

Verdict COMMENT — APPROVE withheld: 4 unresolved threads — minimal-arch[bot] crates/minimal/src/cmd/boxes/vm_host.rs:608, minimal-foundry[bot] crates/minimal/src/cmd/boxes/vm_host.rs:385, minimal-foundry[bot] crates/minimal/src/cmd/boxes/vm_host.rs:677, minimal-arch[bot] crates/minimal/src/cmd/boxes/vm_host.rs. No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arch-review: PASS_WITH_CONDITIONS · 1 condition · the full ruling

This head sends every host_ip retire in vm_host.rs through the retries, and one deadline bounds all the attempts. Section 4.3 line 84 evaluates the cohort against each live box only. So in this layer, a lost retire no longer keeps a gone box in the union. The dashboard paths in crates/minimal/src/dash/rpc.rs still send one retire, and they do not log the re-admit line. That file is outside the task's layers. File an issue for it, as C1 says, and name it in the PR body. Then the change can merge.

Ruled at ef33f53 against gominimal/arch@7a86ec7bb3c0 by claude-opus-5-5.

Comment thread crates/minimal/src/cmd/boxes/vm_host.rs Resolved
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 2 of 10 on a /revise note, pushed as ef33f53b9d3d.

line exit tail
cargo nextest run -p minimal failed_host_ip_retire_is_retried 0 Applying loadouts: default Running task runtime-implement-test-0 in session task-runtime-implement-test-0-1819... Compiling paths v0.0.1 (/workbench/crates/paths) Compiling args v0.0.1 (/workbench/crates/args) Compiling ot v0.0.1 (/workbench/crates/ot) Compiling client-config v0.0.1 (/wo
cargo nextest run -p minimal resume_readmits_host_ip_box 0 Applying loadouts: default Running task runtime-implement-test-1 in session task-runtime-implement-test-1-2114... Compiling stdlib v0.0.22 (/workbench/crates/stdlib) Compiling version v0.8.0 (/workbench/crates/version) Compiling decode v0.0.1 (/workbench/crates/decode) Compiling mlog v0.

Verify min task run agent-verify exited 100 under rustc 1.99.0, which the repository does not pin (1.99.1 in rust-toolchain.toml); the PR is not a draft on that alone — CI, which honours the pin, is the gate.

dSpan {
            name: "session.message",
            fields: {
                "kind": "GetNetSwitch",
                "parent_span_id": "93a9bbe85a236ae4",
                "span_id": "69219b5bf8972cb4",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "GetDenyAllOptOut",
                "parent_span_id": "93a9bbe85a236ae4",
                "span_id": "af0bfa0137354c88",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "GetPaths",
                "parent_span_id": "93a9bbe85a236ae4",
                "span_id": "2edc8ccdddf5e0ea",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "GetRecord",
                "parent_span_id": "93a9bbe85a236ae4",
                "queued_behind": "0",
                "span_id": "8a6d67341467f547",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "DeleteSession",
                "parent_span_id": "93a9bbe85a236ae4",
                "queued_behind": "0",
                "span_id": "d86ecc2b1286a2a7",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "session.message",
            fields: {
                "kind": "Destroy",
                "parent_span_id": "d86ecc2b1286a2a7",
                "span_id": "e9211b16abcb3016",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
        LoggedSpan {
            name: "sessions.manager.message",
            fields: {
                "kind": "HandOverName",
                "parent_span_id": "d86ecc2b1286a2a7",
                "queued_behind": "0",
                "span_id": "1b6d5bc894325d64",
                "trace_id": "0af7651916cd43dd8448eb211c803111",
            },
            parent: None,
            closed: true,
        },
    ]
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 
────────────
     Summary [  38.729s] 852 tests run: 851 passed, 1 failed, 1 skipped
        FAIL [   3.014s] (852/852) minimal::otel_cli exec_run_attach_and_task_run_share_the_commands_trace
error: test run failed

Review threads the coder judged:

  • 👍 valid — crates/minimal/src/cmd/boxes/vm_host.rs:677: The retry now has one overall deadline (BOX_CONTROL_TIMEOUT, 5 s) that covers all attempts and waits. Each exchange runs on its own thread and is waited on with recv_timeout, so a hung VM host daemon holds a retire for 5 s in total, not about 40 s. A retire given up on is a warn line. Pinned in fail
  • 👍 valid — crates/minimal/src/cmd/boxes/vm_host.rs: release_held_box_name, release_held_name_after_attach and the re-admit undo now retire through retire_host_ip_box_with_vm_host, which runs retire_host_ip_box_retrying on spawn_blocking. Pinned in failed_host_ip_retire_is_retried_on_destroy_and_after_attach.

After a VM host daemon restart, an attach or exec of a resumed host_ip box admits its rules again, so the box reaches what its rules allow. A host_ip box whose first retire failed is retired again. This is true on the activation drop, on destroy, after an attach that ends with the session gone, and on the re-admit undo, so the box leaves the gate's union. A hung VM host daemon holds a retire for one control timeout (5 s) in total.

Notes from the agent: Round 2. The release_held_box_name, release_held_name_after_attach and re-admit undo paths now use the new retire_host_ip_box_with_vm_host. It runs retire_host_ip_box_retrying on spawn_blocking. The retry has one overall deadline, HOST_IP_RETIRE_DEADLINE = BOX_CONTROL_TIMEOUT (5 s). Each exchange runs on its own thread, so a hung exchange holds that thread and not the caller. A retire given up on logs a warn line. HostIpResidency::drop still blocks its thread, but now for 5 s at most. Outside the layers: crates/minimal/src/dash/rpc.rs (resume undo at line 354, settle_destroyed_box at line 372) still sends one retire through host_ip_box_with_vm_host. That file was not changed. It can call crate::retire_host_ip_box_with_vm_host in a follow-up, if the function is re-exported like host_ip_box_with_vm_host. The just clippy-strict gate was not run.

@norrietaylor
Copy link
Copy Markdown
Member

/revise Arch C1 only, and this is a PR-description change with no code change. Add a Residuals heading to the PR body naming #2989, which tracks the dashboard destroy path in crates/minimal/src/dash/rpc.rs.

@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 3 of 10 on a /revise note: the coder changed nothing. every commit this round put on the branch above ef33f53 is a merge of the base branch, so it carries no work of its own

@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ef33f53b against T136's plan block. A failed retire now goes out again with a doubling backoff, all attempts share one control timeout, and each exchange runs on its own thread so a hung VM host daemon cannot hold the caller past it. Arch C1 is met: the PR description names #2989 as a residual.

@norrietaylor
Copy link
Copy Markdown
Member

/revise No code change unless a thread still holds. Check each of the five open threads against this head, and resolve the ones that are addressed. Arch C1 is met by the Residuals heading now in the PR body. For a thread that still holds, fix it if the fix is inside the task's layers.

@minimal-foundry
Copy link
Copy Markdown
Contributor Author

That /revise is held, not dropped. The container platform had no instance to give the coder: its pool of prepared containers was full, which happens most just after a deploy. Your note is kept and asked again every 10 minutes for up to 30; a wait that outlives that is refused here with the reason.

What the platform said

could not start the coder: Error: there is no container instance that can be provided to this durable object

Nothing to type again: the command gets a rocket when its round starts, or a refusal that names the reason. No round was counted for it yet.

@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 4 of 10 on a /revise note: the coder changed nothing. Revise round 4: no code change. The one open thread (PRRT_kwDOPdfcxM6zaBBF) holds on this head, but its fix is outside the task's layers. crates/minimal/src/dash/rpc.rs (settle_destroyed_box, and the prepare_attach undo near line 354) and crates/minimal/src/cmd/boxes/lifecycle.rs:596 (stop) still send one retire through host_ip_box_with_vm_host(.., None, false). A follow-up task must route them through retire_host_ip_box_with_vm_host in vm_host.rs. I have no credential to file an issue or to edit the PR body. A person must file the issue and name it in the PR body. I did not rerun the test: lines because nothing changed since round 3.

Review threads the coder judged:

  • 👎 invalid — crates/minimal/src/cmd/boxes/vm_host.rs:575: The finding is true on this head, but the fix is outside this task's layers. dash/rpc.rs settle_destroyed_box and the prepare_attach undo (lines 354, 372), and lifecycle.rs:596 (stop), still retire one time through host_ip_box_with_vm_host(.., None, false). The fix goes in crates/minimal/src/dash/rp

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approved

Verdict APPROVE — every review thread is resolved; @norrietaylor closed the last one. The review of ef33f53b9d3d withheld this approval on the threads open then. Posted as a comment: the App cannot approve its own pull request; the check and the label carry it.

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Nov 4, 2026
@norrietaylor
norrietaylor added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 412fa44 Nov 4, 2026
36 checks passed
@norrietaylor
norrietaylor deleted the agent/2930-a-failed-retire-is-retried-and-a-resumed-host-ad branch November 4, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

T136 — A failed retire is retried, and a resumed host-address box is admitted again

1 participant

0