8000 fix(minimald): a task box with its own network address and activate hooks runs its task and returns by minimal-foundry[bot] · Pull Request #3566 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimald): a task box with its own network address and activate hooks runs its task and returns - #3566

Merged
mitodrummer merged 3 commits into
mainfrom
agent/3553-a-task-box-with-its-own-network-address-and-acti
Nov 19, 2026
Merged

mitodrummer merged 3 commits into
mainfrom
agent/3553-a-task-box-with-its-own-network-address-and-acti

Conversation

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

Follow-up

Fixes #3553

Task marker
### D3077 — A task box with its own network address and activate hooks runs its task and returns the task's exit code
  kind: task
  size: S
  est: 90 code, 80 tests
  executor: agent
  origin: bug
  epic: 2236
  layers:
    - daemon:
      - crates/minimald/src/box_actor/host.rs: ensure_host replaces the hook shell with the entrypoint and keeps the host-side row (rejoin the standing row or hand it over), not refuse with EntrypointBehindHookShell. Point the doc comment at this issue.
      - crates/minimald/src/box_actor.rs: adjusts the actor state (relaunch_row_confirmed, slot_holds_row, host_origin) so the entrypoint launch rejoins the row that the hook shell bound
      - crates/minimald/src/exec/process.rs: keeps the EntrypointBehindHookShell answer only for the paths that still refuse, and relays the task exit code for the new path
      - crates/minimald/src/box_actor/tests.rs: replaces the refusal test with a test where an own-address task box with an on_activate hook runs its task and returns its exit code
      test: cargo test -p minimald until_complete_ends_on_entrypoint_return_without_client_runs_a_task_behind_a_hook_shell
  proof: min task run on a box with its own network address and an on_activate hook runs the task and exits with the task's exit code, not with the hook-shell refusal.

Proof

A task run (min task run) on a box with its own network address and an on_activate hook now replaces the hook shell with the task, rejoins the box's host-side row, and exits with the task's exit code (7 in the new test), not with the hook-shell refusal. The refusal is printed only when the VM host daemon does not confirm that the row stands.

Notes from the agent: Design: ensure_host asks the VM host daemon (host_row_stands) whether the box's host-side row stands BEFORE it kills the hook shell. If the row stands, it kills the shell, clears slot_holds_row and sets relaunch_row_confirmed. The launch that follows rejoins the row and reads it again once its host is up, as the existing relaunch path does. If the row does not stand (a native host with no report door, or no answer), the hook shell stays and the run is refused with EntrypointBehindHookShell as before, so the box is never left rowless. On a native host with no VM host daemon, the refusal therefore stays.

exec/process.rs needs no change: the new path returns a host through the normal path, which already relays the exit code, and the refusal mapping still applies to the remaining refusal path. So process.rs is unchanged.

The tests.rs layer said to replace the refusal test. I kept it, because it still covers the no-confirmation path (it passes unchanged), and I added the new test beside it. restart_launch still refuses (tracked by #3231). Only its comment changed.

Printed text changed: ENTRYPOINT_BEHIND_HOOK_SHELL now reads "The box has its own network address. The task must replace the shell that ran the project's activate hooks. The box's host did not confirm that the box keeps the address when that shell ends." The old text (the shell 'does not end') was no longer the reason for the refusal. The only pin is the existing refusal test, which uses the constant.

Also ran: cargo test -p minimald --lib hook_shell (4 passed), cargo test -p minimald --lib host_row (3 passed), cargo clippy -p minimald…[truncated]

Tests

line exit tail
cargo test -p minimald until_complete_ends_on_entrypoint_return_without_client_runs_a_task_behind_a_hook_shell 0 running 1 test test box_actor::tests::until_complete_ends_on_entrypoint_return_without_client_runs_a_task_behind_a_hook_shell ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1507 filtered out; finished in 2.42s running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0

Verify

min task run agent-verify timed out after 1800s, so this PR is a draft.

e-sccache-gominimal-minimal\u{1f}SCCACHE_ENDPOINT=https://4103a6df4dd77276970745a22603bea9.r2.cloudflarestorage.com\u{1f}SCCACHE_REGION=auto\u{1f}SCCACHE_S3_USE_SSL=true\u{1f}SHELL=/usr/bin/bash\u{1f}SHLVL=2\u{1f}SSL_CERT_DIR=/etc/ssl/certs\u{1f}SSL_CERT_FILE=/etc/ssl/cert.pem\u{1f}XDG_CACHE_HOME=/state/cache\u{1f}XDG_CONFIG_HOME=/home/.config\u{1f}XDG_DATA_HOME=/home/.local/share\u{1f}XDG_RUNTIME_DIR=/run\u{1f}XDG_STATE_HOME=/home/.local/state\u{1e}stdin\n"
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 3 tests still running
        PASS [   0.453s] ( 628/1529) minimald env::tests::search_finds_known_package
        PASS [   3.777s] ( 629/1529) minimald env::tests::run_task_relays_exit_through_both_paths
        SLOW [> 60.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>120.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>180.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>240.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>300.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>360.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>420.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>480.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>540.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>600.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>660.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>720.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>780.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>840.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>900.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>960.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1020.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1080.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1140.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1200.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1260.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1320.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1380.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task

Closes #3077 (the original issue this task was triaged from).

A task run on a box with its own network address and an on_activate
hook now asks the VM host daemon whether the box's host-side row
stands. When it stands, the run replaces the hook shell with the
entrypoint and the launch rejoins the row, so the run relays the
task's exit code. The refusal stays only for a row the daemon does
not confirm, and its text now says that. Refs #3077.
@coderabbitai
coderabbitai Bot commented Nov 18, 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: 3a807231-5c03-46bd-b00e-ef6d571c1b3a

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 18, 2026 •
Copy link
Copy Markdown
Contributor Author

Reviewed: no findings; approval withheld, 3 threads unresolved at 5f6d7cec9ebf.

APPROVE withheld: 3 unresolved threads — minimal-foundry[bot] crates/minimald/src/box_actor/host.rs:577, minimal-arch[bot] crates/minimald/src/box_actor/host.rs:565, minimal-arch[bot] crates/minimald/src/box_actor/host.rs:575. Resolving the last thread releases the approval on this head.

Resolve the open threads. Resolving the last one releases the approval on this head; no new review is required.

Verdict APPROVE, posted as a comment: the App cannot review its own pull request; the check and the label carry it.

Clobber: not checked with git log. If that was not intentional, restore the earlier change.

@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 on lines +573 to 577
/// while the VM host daemon confirms the box's host-side row stands: the
/// run replaces the hook shell and its launch rejoins that row
/// (https://github.com/gominimal/minimal/issues/3077). This refusal is
/// left for a row that the host does not confirm, which fails closed.
#[derive(Debug)]
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.

LOW · correctness · confidence 0.50

The doc comment links issues/3077, but 3077 is the task marker id (D3077). The PR fixes #3553. The same #3077 appears in host.rs (ensure_host and restart comments) and box_actor.rs. The link will point readers to the wrong issue. Use the real issue number.

What the reviewer checked

host.rs:575 (#3077); pr.json body: 'Fixes #3553'

Hand this to an agent
Act on a code-review finding.

File:       crates/minimald/src/box_actor/host.rs
Lines:      573-577
Category:   correctness
Severity:   low (reviewer confidence 0.50)

Finding:
The doc comment links `issues/3077`, but 3077 is the task marker id (D3077). The PR fixes #3553. The same `#3077` appears in host.rs (ensure_host and restart comments) and box_actor.rs. The link will point readers to the wrong issue. Use the real issue number.

First verify this against the code yourself. It is model output and
may be wrong. If it is wrong, or the tradeoff was deliberate, say so
and change nothing.

👍 useful · 👎 noise — react to tell the reviewer. Replying works too, and says more.

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.

Disputed — not addressed: #3077 is the original bug report, and it is still open. This PR closes both #3077 and #3553, so the links to #3077 name the right issue. The owner ruled to keep them, and they stay unchanged.

@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 · the full ruling

The change conforms. A task run on an own-address box with an on_activate hook now returns the task's exit code, as architecture line 494 requires. The shell is replaced only when the VM host daemon confirms the row, and the row is read again after the launch, so the path fails closed (§7.1). Two notes are outside the design. The restart refusal now prints the new text, which says the host did not confirm the row and that the task must replace the shell, but a restart asks nothing. Also check that the issues/3077 link names the right issue, because the PR fixes #3553. The verify run failed on an unnamed test. That failure is not part of this ruling.

Ruled at d8ebe9b against gominimal/arch@327e1b57d16b by claude-opus-5-5.

The shell that ran the project's activate hooks holds that address, \
and that shell does not end.";
The task must replace the shell that ran the project's activate hooks. \
The box's host did not confirm that the box keeps the address when that shell ends.";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note, not a condition: restart_launch also returns this refusal, and a restart prints this text. A restart does not ask the host, and it is not a task run. So on a restart, this text is not true. Give the restart refusal its own text.

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.

Addressed in 5f6d7cec9ebf: restart_launch now returns RestartBehindHookShell with its own text, which states that a restart cannot keep the address when the shell ends. The restart prints it without the spawn prefix, and the restart refusal test pins it.

/// A box with its own network address and activate hooks runs its task
/// while the VM host daemon confirms the box's host-side row stands: the
/// run replaces the hook shell and its launch rejoins that row
/// (https://github.com/gominimal/minimal/issues/3077). This refusal is
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note, not a condition: D3077 is the task id, and this PR fixes #3553. Make sure that this link names the issue that tracks this work.

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.

Disputed — not addressed: #3077 is the original issue that this task came from, and it is still open. This PR closes it together with #3553, so the link names an issue that tracks this work. The owner ruled to keep it.

@agent-137
Copy link
Copy Markdown
Member

/revise

Owner ruling (Karl, 2026-11-19): round 1 has shown "running" since 22:12Z with no update, so this is a fresh round. Do these:

  1. Give the restart refusal its own text (arch note at crates/minimald/src/box_actor/host.rs:565). restart_launch also returns EntrypointBehindHookShell. A restart does not ask the host and is not a task run, so the task-run text is not true there. Give the restart path a message that states what happened on a restart, and pin it in the restart refusal test.
  2. Issue links (host.rs:575, host.rs:577, and the same link in box_actor.rs). fix(minimald): let a task box with its own address and activate hooks run its task #3077 is the original bug report and is still open; this PR closes it and D3077 — A task box with its own network address and activate hooks runs its task and returns the task's exit code #3553. Keep the links to fix(minimald): let a task box with its own address and activate hooks run its task #3077 and answer both threads with that.
  3. Keep the PR body's line Closes #3077 (the original issue this task was triaged from).

A restart does not ask the VM host daemon and is not a task run, so the
task-run text was not true there. The restart now prints its own text,
without the spawn-failure prefix, and the restart refusal test pins it.
@minimal-foundry
Copy link
Copy Markdown
Contributor Author

Round 1 of 10 on a /revise note, pushed as 5f6d7cec9ebf.

line exit tail
cargo test -p minimald until_complete_ends_on_entrypoint_return_without_client_runs_a_task_behind_a_hook_shell 0 running 1 test test box_actor::tests::until_complete_ends_on_entrypoint_return_without_client_runs_a_task_behind_a_hook_shell ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1514 filtered out; finished in 2.35s running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0

Verify min task run agent-verify timed out after 1800s.

udflarestorage.com\u{1f}SCCACHE_REGION=auto\u{1f}SCCACHE_S3_USE_SSL=true\u{1f}SHELL=/usr/bin/bash\u{1f}SHLVL=2\u{1f}SSL_CERT_DIR=/etc/ssl/certs\u{1f}SSL_CERT_FILE=/etc/ssl/cert.pem\u{1f}XDG_CACHE_HOME=/state/cache\u{1f}XDG_CONFIG_HOME=/home/.config\u{1f}XDG_DATA_HOME=/home/.local/share\u{1f}XDG_RUNTIME_DIR=/run\u{1f}XDG_STATE_HOME=/home/.local/state\u{1e}stdin\n"
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Cancelling due to test failure: 3 tests still running
        PASS [   0.338s] ( 635/1536) minimald env::tests::search_finds_known_package
        PASS [   2.881s] ( 636/1536) minimald env::tests::run_task_relays_exit_through_both_paths
        SLOW [> 60.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>120.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>180.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>240.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>300.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>360.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>420.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>480.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>540.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>600.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>660.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>720.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>780.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>840.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>900.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>960.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1020.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1080.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1140.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1200.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1260.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1320.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1380.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task
        SLOW [>1440.000s] (─────────) minimald env::tests::minenv_run_forwards_stdin_to_the_task

Converted to a draft: something above needs a person before review.

Review threads the coder judged:

min task run on a box with its own network address and an on_activate hook runs the task and exits with the task's exit code. A restart of such a box now prints its own refusal, and that refusal does not use the task-run text.

Notes from the agent: Revise round 1. The restart path now returns RestartBehindHookShell. Its text is RESTART_BEHIND_HOOK_SHELL: "The box has its own network address. Its command must replace the shell that ran the project's activate hooks. A restart cannot keep the address when that shell ends, so the command did not start." The restart prints it after "Session <name> did not start again. It is stopped now." without the "session spawn:" prefix. restart_argv_box_behind_hook_shell_with_host_row_fails_stopped pins the full text. The links to #3077 stay unchanged, as the owner ruled. The PR body line about Closes #3077 is the runner's to keep. I did not edit it. cargo clippy -p minimald --all-targets printed no warnings.

@minimal-foundry
minimal-foundry Bot marked this pull request as draft November 19, 2026 02:06
@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 · the full ruling

The new commit gives the restart its own refusal text and error type. The restart still refuses before it ends the hook shell, so the box keeps its host-side row. This is fail closed, as principle 7 at architecture.md line 336 requires. The gap against line 471 stays the residual #3231. The merge of main is clean and adds no change of its own to the PR's files. No condition is open.

Ruled at 5f6d7ce against gominimal/arch@327e1b57d16b by claude-opus-5-5.

@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: 3 unresolved threads — minimal-foundry[bot] crates/minimald/src/box_actor/host.rs:577, minimal-arch[bot] crates/minimald/src/box_actor/host.rs:565, minimal-arch[bot] crates/minimald/src/box_actor/host.rs:575. No findings.

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

@agent-137
agent-137 marked this pull request as ready for review November 19, 2026 04:07
@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.

Approving. I checked the new ensure_host path against the code:

  • It asks the VM host daemon whether the row stands while the hook shell still holds it, and only then kills the shell.
  • It clears slot_holds_row and hands relaunch_row_confirmed to launch_host. launch_host takes the flag first, reads the row again once the new host is up, and sets slot_holds_row from that second read.
  • If the row is not confirmed, the old refusal still applies, so the box is never knowingly left rowless.

minvmd's RowStanding answers for the box's own non-task row, which matches what the read sends. The restart refusal now has its own type and text, and the test pins both. The #3077 links follow the owner's ruling.

I left three low, non-blocking notes: the refusal comment and the "box's host" wording, the restart text repeating itself, and a missing test for the case where the second read fails after the shell is killed.


Generated by Claude Code

Comment on lines +561 to +565
/// No command changes that answer, so the text states the situation and
/// stops.
pub(crate) const ENTRYPOINT_BEHIND_HOOK_SHELL: &str = "The box has its own network address. \
The shell that ran the project's activate hooks holds that address, \
and that shell does not end.";
The task must replace the shell that ran the project's activate hooks. \
The box's host did not confirm that the box keeps the address when that shell ends.";
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.

Low (non-blocking): this refusal now fires only on the ensure_host branch where the hook shell is still alive. That shell's launch holds the row attached, so minvmd's RowStanding lookup answers true for the box's own id. In practice the refusal means host_row_standing returned None, either because the report door did not answer within REPORT_DEADLINE or because the record has no box_id. The door case is transient: a second min task run can confirm the row and run the task. Two consequences:

  • The doc comment's "No command changes that answer" is not quite true for that case. Rewording it to "the read may not have been answered" would match the code.
  • "The box's host" in the printed text names the VM host daemon. The AGENTS.md glossary uses Box Host for the running minimald, which is the daemon printing this line, so a reader may think the wrong component failed to confirm. Consider wording that does not depend on that term, e.g. "The machine that runs the box did not confirm ...", and update the pinning test with it.

Generated by Claude Code

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.

Tracked in #3640 (non-blocking; kept out of this PR so its approved head stands).

/// https://github.com/gominimal/minimal/issues/3231.
pub(crate) const RESTART_BEHIND_HOOK_SHELL: &str = "The box has its own network address. \
Its command must replace the shell that ran the project's activate hooks. \
A restart cannot keep the address when that shell ends, so the command did not start.";
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.

Low (non-blocking): the restart prints this after "Session <name> did not start again. It is stopped now.", so "so the command did not start" says the outcome a second time. It also joins two facts in one sentence, which the AGENTS.md "Give each fact its own sentence" rule asks us to avoid. Suggest ending with "A restart cannot keep the address when that shell ends." and updating the string pinned in restart_argv_box_behind_hook_shell_with_host_row_fails_stopped to match.


Generated by Claude Code

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.

Tracked in #3640 (non-blocking; kept out of this PR so its approved head stands).

// Set after the kill: the slot no longer holds the binding
// launch's host, so the next launch is the one that rejoins.
self.slot_holds_row = false;
self.relaunch_row_confirmed = rejoins_row;
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.

Low (non-blocking): this PR adds a new state, and no test covers it. The hook shell has already been killed here, so when the second read in launch_host gets row_standing: false (the row was withdrawn between the two reads), the run fails with BoxHostRowEnded and the box has no host. Before this change, the hook shell stayed in that case. The new test always answers true twice.

Please add a variant that answers true and then false. It should check three things:

  • the run fails without the hook-shell refusal;
  • the slot holds no host;
  • a later attach goes through host_row_lost, so that within the grace period it either rejoins or is refused, and never runs rowless.

Generated by Claude Code

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.

Tracked in #3640 (non-blocking; kept out of this PR so its approved head stands).

@mitodrummer mitodrummer 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.

Approved.

@mitodrummer
mitodrummer added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 1665b4c Nov 19, 2026
39 checks passed
@mitodrummer
mitodrummer deleted the agent/3553-a-task-box-with-its-own-network-address-and-acti branch November 19, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants

0