Repository navigation
Conversation
…ached box can be removed A box started detached and never attached had no host launch, so it had no workspace baseline. Stopped, with a tree that is not a git repository, the change check answered "could not be checked", and a plain `min box rm` refused it. The baseline is now armed when the box is finalized, after the upload and the scaffold fill the tree and before a hook or `min box exec` can change it. A later launch reuses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Approved: no findings at Nothing to do. Clobber: none seen. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The design of record is silent on the workspace change baseline and on when it is armed. This is a PASS by absence. The arm moves to finalize in the same box actor. It runs before hooks, attach and min box exec can change the tree. A box with no usable baseline still reads from git state or as Unchecked, so the check still fails closed.
Ruled at b700505 against gominimal/arch@5cfb8febb353 by claude-opus-5-5.
…box without --force The client tests read a box's tree over the harness daemon. Seeded after finalize, their files are now changes against the finalize baseline, so they seed between configure and finalize, the order a real upload has: the harness splits create_configured_session into create_unfinalized_session and finalize_configured_session. The tests that pinned the never-attached refusal now pin its removal, and the end-to-end walk refuses each rm form on a running box instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The compare since b700505e changes only tests and the test harness. The tests follow the finalize-time baseline, which was ruled PASS at that head. The refusal of a box that cannot be checked is still tested at rm_gate and in the daemon. The design does not specify the rm change check, so this is a PASS by absence.
Ruled at 84c18fb against gominimal/arch@5cfb8febb353 by claude-opus-5-5.
A plain
min box rmof a box started with--detach, never attached, and then stopped exits 2:--forceworks. Found in pc's full run on 0.8.0-dev.818 (E4).Why
minimald armed the workspace baseline at a box's first host launch (
box_actor/host.rs). A box started detached and never attached has no host launch, so it had no baseline. Stopped, the change check reads the tree against the baseline (assess_baseline_first, #3994's ruling), and with neither a baseline nor a git repository it answeredUnchecked.Treating such a box as having nothing to lose would be wrong:
min box execchanges the tree with no host launch.What changes
finalizenow arms the baseline (load_or_arm_baseline, which also persists it) after the workspace upload and the defaultminimal.tomlscaffold have filled the tree, and before an activate hook, an attach, ormin box execcan change it. A later host launch reuses that baseline, as a reattach already did. An actor that did not finalize the box, such as one spawned from disk after a restart, still arms at its first launch or reads the persisted sidecar, as before. The walk is the same bounded one (5 s) that the first attach paid before; it now runs at finalize.So a never-attached box, stopped and unchanged, reads clean, and a plain
min box rmremoves it. A file thatmin box execadds reads as changed.Tests
session_delta_rpc_reads_a_never_attached_box_against_its_creationreplacessession_delta_rpc_names_why_a_never_launched_box_is_unchecked, which pinned the reported behaviour. A finalized, never-attached, stopped box reads clean, and a file added with no host readsA. Mutation check: with the finalize arming disabled, it fails.session_delta_rpc_falls_back_to_activation_delta_without_a_repoandsession_delta_rpc_reads_a_stopped_box_against_its_first_launchnow seed their pre-existing file between configure and finalize (create_box_from(.., false)and thenfinalize_session), the order a real upload has. Before, they seeded after finalize and before the first launch.
< 8000 /li>minimalclient tests over the harness daemon:box_rm_without_force_gates_changed_filesnow pins pc's expectation: a never-attached stopped box is removed by a headlessmin box rm, with no--force.box_rm_removes_an_unchanged_stopped_box_without_forceseeds its file before finalize through the new harness split (create_unfinalized_session+finalize_configured_session).box_grammar_and_migration_end_to_endchecks each rm form's refusal on a running box, then removes the stopped boxes without--force.Verification
env::tests::run_task_relays_exit_through_both_paths, which fails in this sandbox on main too ("Exec format error").-D warningsand fmt are clean.just test-crossand the VM e2e.🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
Summary by CodeRabbit
--force.