fabro/lib/apps/fabro-cli/tests/it/cmd
Bryan Helmkamp 350abac014
Build the local sandbox through the one provider path
SandboxSpec had a Local variant beside the provider spec, and a local
sandbox was created by hand over a bare Host provider: no workspace, no
provider connection, its own reconnect, and its own push rule for the
designated directory. The local kind is now one more SandboxSpec:
SandboxSpec::local names the directory on a HostDirectory spec with a
skip clone, and provider_sandbox builds it like a plugin kind, creating
the directory when missing since the Host provider requires it to exist.
Every RunSandbox carries a workspace; a handle wrapped as is gets the
workspace of its own working directory.

The push rule is one rule for every checkout: a checkout fabro cloned
pushes with the credentials it was cloned with, and any other checkout
pushes when it has an origin, with whatever credentials it carries. A
local run therefore pushes the same way before and after a resume;
before, a reconnected local sandbox carried an attached workspace that
never pushed while a fresh one did.

Reconnect uses the recorded id for every kind. The recompute of a local
id from its directory, kept for records written before directories had
ids, is gone, and test fixtures that wrote made-up local ids derive them
through test_support::local_sandbox_id instead. A local run's record now
carries its workspace layout like every provider-chosen directory, and
the sandbox.initializing event precedes the driver's create events for
local as for every other kind.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 16:28:17 -06:00
..
approve.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
archive.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
artifact_cp.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
artifact_list.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
attach.rs Build the local sandbox through the one provider path 2026-09-11 16:28:17 -06:00
auth.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
cli_reference.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
config.rs Create CLI runs from immutable workflow intents 2026-09-01 16:14:34 -04:00
create.rs Report available environments when default is missing 2026-09-03 12:56:47 -04:00
deny.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
diff.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
discord.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
docs.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
doctor.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
dump.rs Keep the sandbox driver's events whole as run events 2026-09-11 13:32:54 -06:00
events.rs Update run creation event fixtures and docs 2026-08-03 15:09:32 -04:00
exec.rs Read catalog policy from lithos core fields and metadata.agent 2026-09-09 23:20:12 -06:00
fabro.rs Create CLI runs from immutable workflow intents 2026-09-01 16:14:34 -04:00
fork.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
graph.rs Show each diagnostic's suggested fix in CLI output 2026-07-27 14:06:31 -04:00
inspect.rs Update inspect snapshots for projected conclusion stages 2026-09-05 11:53:44 -04:00
install.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
json_global.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
logs.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
mcp.rs Make CLI intent runs independent of run-tool changes 2026-09-01 16:28:58 -04:00
mod.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
model.rs Expose lithos request and response shapes through the API, server, CLI, and web 2026-09-09 17:26:57 -06:00
model_list.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
model_test.rs Expose lithos request and response shapes through the API, server, CLI, and web 2026-09-09 17:26:57 -06:00
parent.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
parse.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr_close.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr_create.rs Make pull request creation durable and asynchronous 2026-08-01 19:28:52 -04:00
pr_link.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr_merge.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr_unlink.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr_view.rs fix(workflow): make publish failures terminal 2026-07-27 11:25:18 -04:00
preflight.rs Add model stylesheet templates 2026-08-25 18:14:25 -04:00
provider.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
provider_login.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
ps.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
render_graph.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
repo.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
repo_deinit.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
repo_init.rs Create CLI runs from immutable workflow intents 2026-09-01 16:14:34 -04:00
resume.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
rewind.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
rm.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
run.rs Expect the driver's stop event in the stored event history snapshot 2026-09-11 13:58:09 -06:00
runner.rs Remove client-selected run IDs from the CLI 2026-08-01 11:47:11 -04:00
sandbox_cp.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
sandbox_preview.rs Route Daytona sandboxes through the sandbox driver 2026-09-09 19:14:13 -06:00
sandbox_ssh.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
secret.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
secret_list.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
secret_rm.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
secret_set.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
send_analytics.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
send_panic.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
server_start.rs Remove expired startup secret migrations 2026-09-05 14:05:48 -04:00
server_status.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
server_stop.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
start.rs Create CLI runs from immutable workflow intents 2026-09-01 16:14:34 -04:00
support.rs Build the local sandbox through the one provider path 2026-09-11 16:28:17 -06:00
system.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
system_df.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
system_events.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
system_info.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
system_prune.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
system_repair.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
test_panic.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
top_level.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
unarchive.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
uninstall.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
upgrade.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
validate.rs Add on_failure="succeed" as an explicit failure policy 2026-08-26 07:34:24 -04:00
variable.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
variable_get.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
variable_list.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
variable_rm.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
variable_set.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
version.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
wait.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
worker_auth.rs Remove client-selected run IDs from the CLI 2026-08-01 11:47:11 -04:00
workflow.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
workflow_create.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
workflow_list.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00