@team-agent/installer 0.5.125 → 0.5.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/crates/team-agent/src/cli/diagnose.rs +0 -137
- package/crates/team-agent/src/cli/emit.rs +13 -8
- package/crates/team-agent/src/cli/grok_slot.rs +88 -3
- package/crates/team-agent/src/cli/intent/runtime.rs +6 -4
- package/crates/team-agent/src/cli/intent/runtime_tests.rs +55 -10
- package/crates/team-agent/src/cli/mod.rs +35 -29
- package/crates/team-agent/src/cli/models.rs +33 -944
- package/crates/team-agent/src/cli/tests/leader_watch.rs +1 -1
- package/crates/team-agent/src/cli/tests/mod.rs +3 -3
- package/crates/team-agent/src/cli/tests/run_delegation.rs +8 -7
- package/crates/team-agent/src/cli/tests/status_send.rs +2 -2
- package/crates/team-agent/src/compiler/tests.rs +54 -12
- package/crates/team-agent/src/compiler.rs +7 -205
- package/crates/team-agent/src/contract_runtime/backend.rs +97 -38
- package/crates/team-agent/src/contract_runtime/commands.rs +335 -4
- package/crates/team-agent/src/contract_runtime/config.rs +12 -8
- package/crates/team-agent/src/contract_runtime/fork.rs +368 -0
- package/crates/team-agent/src/contract_runtime/framework.rs +8 -13
- package/crates/team-agent/src/contract_runtime/mod.rs +1 -0
- package/crates/team-agent/src/contract_runtime/registry.rs +100 -60
- package/crates/team-agent/src/coordinator/steps/abnormal.rs +45 -5
- package/crates/team-agent/src/coordinator/tests/api_error_recovery.rs +54 -16
- package/crates/team-agent/src/coordinator/tests/energy.rs +4 -4
- package/crates/team-agent/src/coordinator/tests/health_sync.rs +2 -44
- package/crates/team-agent/src/coordinator/tests/main_preserved.rs +2 -2
- package/crates/team-agent/src/coordinator/tests/spine.rs +1 -1
- package/crates/team-agent/src/coordinator/tests/takeover.rs +3 -3
- package/crates/team-agent/src/leader/start.rs +1 -1
- package/crates/team-agent/src/lifecycle/launch/add_agent_state.rs +2 -195
- package/crates/team-agent/src/lifecycle/launch/clone_agent.rs +11 -27
- package/crates/team-agent/src/lifecycle/launch/fork_agent.rs +22 -200
- package/crates/team-agent/src/lifecycle/launch/fork_entry.rs +6 -87
- package/crates/team-agent/src/lifecycle/launch/mcp_config.rs +5 -496
- package/crates/team-agent/src/lifecycle/launch/pi_mcp.rs +74 -244
- package/crates/team-agent/src/lifecycle/launch/quick_start.rs +2 -26
- package/crates/team-agent/src/lifecycle/launch/role_source.rs +5 -0
- package/crates/team-agent/src/lifecycle/launch/spawn.rs +26 -51
- package/crates/team-agent/src/lifecycle/launch.rs +3 -34
- package/crates/team-agent/src/lifecycle/profile_launch.rs +18 -373
- package/crates/team-agent/src/lifecycle/restart/common.rs +45 -463
- package/crates/team-agent/src/lifecycle/restart/remove.rs +129 -0
- package/crates/team-agent/src/lifecycle/restart/selection.rs +5 -5
- package/crates/team-agent/src/lifecycle/restart.rs +0 -2
- package/crates/team-agent/src/lifecycle/role_config.rs +40 -13
- package/crates/team-agent/src/lifecycle/tests/acceptance_b_batch_red.rs +1 -1
- package/crates/team-agent/src/lifecycle/tests/agent_ops.rs +8 -12
- package/crates/team-agent/src/lifecycle/tests/behavioral_diff_264_red.rs +38 -236
- package/crates/team-agent/src/lifecycle/tests/claude_profile_launch_red.rs +8 -320
- package/crates/team-agent/src/lifecycle/tests/cli_argv_routing_red.rs +106 -186
- package/crates/team-agent/src/lifecycle/tests/clone_fork_copilot_perms_red.rs +4 -334
- package/crates/team-agent/src/lifecycle/tests/communication_mode_runtime_contract_red.rs +19 -15
- package/crates/team-agent/src/lifecycle/tests/copilot_provider_red.rs +2 -2
- package/crates/team-agent/src/lifecycle/tests/core.rs +33 -58
- package/crates/team-agent/src/lifecycle/tests/f032_startup_prompt_best_effort_red.rs +22 -8
- package/crates/team-agent/src/lifecycle/tests/grok_require_explicit_model_red.rs +15 -133
- package/crates/team-agent/src/lifecycle/tests/harvest2_a_batch_red.rs +3 -51
- package/crates/team-agent/src/lifecycle/tests/host_cotenant_death_p0_contract.rs +30 -67
- package/crates/team-agent/src/lifecycle/tests/issue238_codex_effort_contract.rs +3 -31
- package/crates/team-agent/src/lifecycle/tests/lane_ops.rs +194 -169
- package/crates/team-agent/src/lifecycle/tests/launch_spawn.rs +162 -284
- package/crates/team-agent/src/lifecycle/tests/lifecycle_rollback_red.rs +15 -78
- package/crates/team-agent/src/lifecycle/tests/main_preserved.rs +7 -7
- package/crates/team-agent/src/lifecycle/tests/phase_b_contracts.rs +75 -69
- package/crates/team-agent/src/lifecycle/tests/phase_golden.rs +2 -10
- package/crates/team-agent/src/lifecycle/tests/pi_catalog_red.rs +6 -18
- package/crates/team-agent/src/lifecycle/tests/pi_command_red.rs +52 -70
- package/crates/team-agent/src/lifecycle/tests/pi_dual_entry_red.rs +4 -157
- package/crates/team-agent/src/lifecycle/tests/pi_executable_mcp_red.rs +10 -302
- package/crates/team-agent/src/lifecycle/tests/pi_lifecycle_doctor_red.rs +1 -68
- package/crates/team-agent/src/lifecycle/tests/pi_native_mcp_capability_red.rs +1 -19
- package/crates/team-agent/src/lifecycle/tests/pi_session_delivery_red.rs +2 -100
- package/crates/team-agent/src/lifecycle/tests/quick_start_worker_readiness_red.rs +15 -14
- package/crates/team-agent/src/lifecycle/tests/restart.rs +12 -153
- package/crates/team-agent/src/lifecycle/tests/restart_build_before_destroy_0540_contract.rs +27 -5
- package/crates/team-agent/src/lifecycle/tests/restart_liveness_red.rs +59 -10
- package/crates/team-agent/src/lifecycle/tests/restart_rebind_hotfix_252_red.rs +47 -6
- package/crates/team-agent/src/lifecycle/tests/restart_session_capture_red.rs +3 -1478
- package/crates/team-agent/src/lifecycle/tests/resume_recover_red.rs +27 -10
- package/crates/team-agent/src/lifecycle/tests/status_credential_redaction_contract.rs +7 -7
- package/crates/team-agent/src/lifecycle/tests/subprep_codex_trust_roundtrip_red.rs +67 -313
- package/crates/team-agent/src/lifecycle/tests/swallow_batch4_semantics_red.rs +2 -254
- package/crates/team-agent/src/lifecycle/tests/team_in_team_identity_scope_red.rs +2 -2
- package/crates/team-agent/src/lifecycle/tests/team_in_team_sibling_quick_start_red.rs +1 -1
- package/crates/team-agent/src/lifecycle/tests/team_in_team_state_scope_red.rs +2 -2
- package/crates/team-agent/src/lifecycle/tests/team_key_retirement_txn_red.rs +4 -4
- package/crates/team-agent/src/lifecycle/tests/upgrade_compat_0211_red.rs +74 -19
- package/crates/team-agent/src/lifecycle/tests/verify_rs031_window_consistency_red.rs +39 -38
- package/crates/team-agent/src/lifecycle/tests/worker_spawn_env_red.rs +42 -97
- package/crates/team-agent/src/lifecycle/tests.rs +0 -7
- package/crates/team-agent/src/lifecycle/types.rs +2 -21
- package/crates/team-agent/src/mcp_server/readiness_tests.rs +15 -17
- package/crates/team-agent/src/messaging/delivery.rs +14 -195
- package/crates/team-agent/src/messaging/delivery_consumption_tests.rs +5 -5
- package/crates/team-agent/src/messaging/tests/dup_inject.rs +68 -69
- package/crates/team-agent/src/messaging/tests/main_preserved.rs +2 -2
- package/crates/team-agent/src/messaging/tests/runtime.rs +5 -5
- package/crates/team-agent/src/messaging/tests/spine.rs +30 -32
- package/crates/team-agent/src/messaging/tests/wave2.rs +13 -20
- package/crates/team-agent/src/provider/adapter.rs +71 -572
- package/crates/team-agent/src/provider/adapters/mod.rs +6 -8
- package/crates/team-agent/src/provider/model_catalog.rs +13 -201
- package/crates/team-agent/src/provider/session/capture.rs +11 -211
- package/crates/team-agent/src/provider/session/context_fork/outcome.rs +8 -24
- package/crates/team-agent/src/provider/session/context_fork.rs +29 -240
- package/crates/team-agent/src/provider/session/mod.rs +2 -3
- package/crates/team-agent/src/provider/session_scan/common.rs +27 -87
- package/crates/team-agent/src/provider/session_scan/pi.rs +1 -34
- package/crates/team-agent/src/provider/session_scan.rs +7 -23
- package/crates/team-agent/src/provider/tests/adapter.rs +66 -204
- package/crates/team-agent/src/provider/tests/command_helpers.rs +3 -29
- package/crates/team-agent/src/provider/tests/idle.rs +0 -68
- package/crates/team-agent/src/provider/types.rs +0 -4
- package/crates/team-agent/src/provider/wire.rs +77 -23
- package/crates/team-agent/src/state/abnormal_watch/tests/mod.rs +1 -1
- package/crates/team-agent/src/state/persist.rs +6 -6
- package/crates/team-agent/src/state/repository/tests.rs +2 -2
- package/crates/team-agent/src/tmux_backend.rs +4 -3
- package/package.json +4 -4
- package/skills/team-agent/SKILL.md +8 -5
- package/skills/team-agent/command-coverage.json +29 -1
- package/skills/team-agent/docs/reference/team-agent-operator.md +7 -3
- package/skills/team-agent/references/team-agent-operator.md +7 -3
- package/crates/team-agent/src/lifecycle/launch/grok_per_seat.rs +0 -260
- package/crates/team-agent/src/lifecycle/restart/avatar.rs +0 -1805
- package/crates/team-agent/src/lifecycle/tests/claude_compatible_config_red.rs +0 -325
- package/crates/team-agent/src/lifecycle/tests/codex_weak_window_attribution_red.rs +0 -683
- package/crates/team-agent/src/lifecycle/tests/grok_effort_argv_red.rs +0 -247
- package/crates/team-agent/src/lifecycle/tests/grok_mcp_overlay_red.rs +0 -507
- package/crates/team-agent/src/lifecycle/tests/grok_restart_resume_red.rs +0 -300
- package/crates/team-agent/src/lifecycle/tests/pi_compiler_red.rs +0 -210
- package/crates/team-agent/src/lifecycle/tests/pi_fork_session_inheritance_red.rs +0 -1409
- package/crates/team-agent/src/provider/adapters/claude.rs +0 -78
- package/crates/team-agent/src/provider/adapters/claude_fork.rs +0 -131
- package/crates/team-agent/src/provider/adapters/codex.rs +0 -101
- package/crates/team-agent/src/provider/adapters/grok.rs +0 -67
- package/crates/team-agent/src/provider/adapters/pi.rs +0 -100
- package/crates/team-agent/src/provider/session/context_fork/claude.rs +0 -123
- package/crates/team-agent/src/provider/session/context_fork/codex.rs +0 -514
- package/crates/team-agent/src/provider/session_scan/claude.rs +0 -523
- package/crates/team-agent/src/provider/session_scan/codex.rs +0 -326
- package/crates/team-agent/src/provider/session_scan/grok.rs +0 -288
- package/crates/team-agent/src/test_support/models_timeout_fixture.rs +0 -144
|
@@ -40,8 +40,7 @@ fn launch_source() -> String {
|
|
|
40
40
|
|
|
41
41
|
const QS_TEAM_MD: &str =
|
|
42
42
|
"---\nname: quickteam\nobjective: Quick start.\nprovider: codex\n---\n\nQuick-start team.\n";
|
|
43
|
-
pub(super) const QS_VALID_ROLE: &str = "---\nname: implementer\nrole: Implementation Engineer\nprovider:
|
|
44
|
-
const QS_ROLE_NO_PROVIDER: &str = "---\nname: implementer\nrole: Implementation Engineer\nmodel: gpt-5.5\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nImplement bounded tasks.\n";
|
|
43
|
+
pub(super) const QS_VALID_ROLE: &str = "---\nname: implementer\nrole: Implementation Engineer\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nImplement bounded tasks.\n";
|
|
45
44
|
|
|
46
45
|
/// A REAL team dir `<base>/teamdir/{TEAM.md, agents/implementer.md}` — already in team-dir
|
|
47
46
|
/// layout, so quick_start's prepare_quick_start_team returns it as-is and writes the compiled
|
|
@@ -65,30 +64,13 @@ fn quick_start_team_dir_with_roles(role_docs: &[(&str, &str)]) -> PathBuf {
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
fn role_doc(id: &str) -> String {
|
|
68
|
-
|
|
69
|
-
"---\nname: {id}\nrole: {id} Worker\nprovider: codex\nmodel: gpt-5.5\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\n{id} worker.\n"
|
|
70
|
-
)
|
|
67
|
+
provider_role_doc(id, "fake", "fake")
|
|
71
68
|
}
|
|
72
69
|
|
|
73
|
-
fn
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
session_id: &str,
|
|
77
|
-
embedded_agent_id: &str,
|
|
78
|
-
) -> PathBuf {
|
|
79
|
-
let path = workspace.join(file_name);
|
|
80
|
-
std::fs::write(
|
|
81
|
-
&path,
|
|
82
|
-
format!(
|
|
83
|
-
"{{\"session_meta\":{{\"payload\":{{\"id\":\"{session_id}\",\"cwd\":\"{}\",\"created_at\":\"{}\"}}}}}}\n\
|
|
84
|
-
{{\"type\":\"turn_context\",\"payload\":{{}}}}\n\
|
|
85
|
-
{{\"type\":\"response_item\",\"payload\":{{\"content\":[{{\"type\":\"input_text\",\"text\":\"You are Team Agent worker `{embedded_agent_id}` with role `fixture`.\"}}]}}}}\n",
|
|
86
|
-
workspace.to_string_lossy(),
|
|
87
|
-
chrono::Utc::now().to_rfc3339()
|
|
88
|
-
),
|
|
70
|
+
fn provider_role_doc(id: &str, provider: &str, model: &str) -> String {
|
|
71
|
+
format!(
|
|
72
|
+
"---\nname: {id}\nrole: {id} Worker\nprovider: {provider}\nmodel: {model}\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\n{id} worker.\n"
|
|
89
73
|
)
|
|
90
|
-
.unwrap();
|
|
91
|
-
path
|
|
92
74
|
}
|
|
93
75
|
|
|
94
76
|
fn layout_pane(
|
|
@@ -104,7 +86,7 @@ fn layout_pane(
|
|
|
104
86
|
window_name: Some(crate::transport::WindowName::new(window)),
|
|
105
87
|
pane_index: Some(pane_index),
|
|
106
88
|
tty: None,
|
|
107
|
-
current_command: Some("
|
|
89
|
+
current_command: Some("team-agent".to_string()),
|
|
108
90
|
current_path: None,
|
|
109
91
|
active: pane_index == 0,
|
|
110
92
|
pane_pid: None,
|
|
@@ -159,7 +141,7 @@ fn unowned_running_ws() -> PathBuf {
|
|
|
159
141
|
&ws,
|
|
160
142
|
&json!({
|
|
161
143
|
"session_name": "team-x",
|
|
162
|
-
"agents": { "w1": { "provider": "
|
|
144
|
+
"agents": { "w1": { "provider": "fake", "role": "Worker", "model": "fake", "auth_mode": "subscription" } },
|
|
163
145
|
}),
|
|
164
146
|
)
|
|
165
147
|
.unwrap();
|
|
@@ -476,25 +458,23 @@ fn quick_start_default_workspace_compiled_spec_uses_project_root() {
|
|
|
476
458
|
);
|
|
477
459
|
}
|
|
478
460
|
|
|
479
|
-
//
|
|
480
|
-
//
|
|
481
|
-
|
|
461
|
+
// An omitted role `provider` is the default `pi`, which declares the Pi contract leaf: the
|
|
462
|
+
// compiled spec carries the leaf id, so quick-start never produces a legacy `pi` worker row.
|
|
463
|
+
#[cfg(unix)]
|
|
482
464
|
#[test]
|
|
483
|
-
fn
|
|
484
|
-
let team = quick_start_team_dir(
|
|
485
|
-
|
|
486
|
-
let result = quick_start_with_transport(&team, None, true, None, &transport);
|
|
487
|
-
|
|
488
|
-
let text = format!("{result:?}");
|
|
489
|
-
assert!(
|
|
490
|
-
text.contains("provider"),
|
|
491
|
-
"an invalid role doc (missing provider) must surface the real compile error mentioning \
|
|
492
|
-
'provider'; got {text}"
|
|
493
|
-
);
|
|
494
|
-
assert!(
|
|
495
|
-
!text.contains("no role docs found"),
|
|
496
|
-
"must NOT be the hardcoded stub blocker — real preflight/compile distinguishes the cause"
|
|
465
|
+
fn quick_start_role_without_provider_compiles_to_the_pi_leaf() {
|
|
466
|
+
let team = quick_start_team_dir(
|
|
467
|
+
"---\nname: implementer\nrole: Implementation Engineer\nmodel: gpt-5.5\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nImplement bounded tasks.\n",
|
|
497
468
|
);
|
|
469
|
+
let spec = crate::compiler::compile_team(&team).expect("an omitted provider is the default pi");
|
|
470
|
+
let providers = spec
|
|
471
|
+
.get("agents")
|
|
472
|
+
.and_then(crate::model::yaml::Value::as_list)
|
|
473
|
+
.expect("compiled agents")
|
|
474
|
+
.iter()
|
|
475
|
+
.map(|agent| agent.get("provider").and_then(crate::model::yaml::Value::as_str))
|
|
476
|
+
.collect::<Vec<_>>();
|
|
477
|
+
assert_eq!(providers, vec![Some("pi_tui")]);
|
|
498
478
|
}
|
|
499
479
|
|
|
500
480
|
// P0 — launch (dry_run) over a real compiled spec must resolve the REAL route/permission plan
|
|
@@ -570,7 +550,7 @@ fn add_agent_proceeds_past_owner_gate_and_reaches_recompile() {
|
|
|
570
550
|
let role = ws.join("w2-role.md");
|
|
571
551
|
std::fs::write(
|
|
572
552
|
&role,
|
|
573
|
-
"---\nname: w2\nrole: Second Worker\nprovider:
|
|
553
|
+
"---\nname: w2\nrole: Second Worker\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nSecond worker.\n",
|
|
574
554
|
)
|
|
575
555
|
.unwrap();
|
|
576
556
|
let transport = OfflineTransport::new();
|
|
@@ -715,7 +695,7 @@ fn unowned_running_ws_all_paused() -> PathBuf {
|
|
|
715
695
|
&ws,
|
|
716
696
|
&json!({
|
|
717
697
|
"session_name": "team-x",
|
|
718
|
-
"agents": { "w1": { "provider": "
|
|
698
|
+
"agents": { "w1": { "provider": "fake", "role": "Worker", "model": "fake", "auth_mode": "subscription", "status": "paused" } },
|
|
719
699
|
}),
|
|
720
700
|
)
|
|
721
701
|
.unwrap();
|
|
@@ -787,7 +767,7 @@ fn spine_add_agent_rejects_duplicate_agent_id() {
|
|
|
787
767
|
&json!({
|
|
788
768
|
"session_name": "team-quickteam",
|
|
789
769
|
"agents": {
|
|
790
|
-
"implementer": {"status": "running", "provider": "
|
|
770
|
+
"implementer": {"status": "running", "provider": "fake", "window": "implementer"}
|
|
791
771
|
}
|
|
792
772
|
}),
|
|
793
773
|
)
|
|
@@ -819,7 +799,7 @@ fn e5_add_agent_does_not_copy_role_into_platform_dir_and_injects_into_spec() {
|
|
|
819
799
|
seed_canonical_team_identity(&team, "teamdir");
|
|
820
800
|
// External role file OUTSIDE team_dir/agents, with recognizable body content.
|
|
821
801
|
let role = team.parent().unwrap().join("w2-external-role.md");
|
|
822
|
-
let role_body = "---\nname: w2\nrole: Second Worker\nprovider:
|
|
802
|
+
let role_body = "---\nname: w2\nrole: Second Worker\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nUNIQUE-E5-BUG1-MARKER body for w2.\n";
|
|
823
803
|
std::fs::write(&role, role_body).unwrap();
|
|
824
804
|
let transport = OfflineTransport::new();
|
|
825
805
|
// The spawn may not complete under OfflineTransport; we only assert the no-copy + spec-inject
|
|
@@ -859,7 +839,7 @@ fn e5_restart_rebuilds_runtime_spec_from_role_docs() {
|
|
|
859
839
|
// Edit a role doc AFTER initial compile: change alpha's role text.
|
|
860
840
|
std::fs::write(
|
|
861
841
|
ws.join("agents").join("alpha.md"),
|
|
862
|
-
"---\nname: alpha\nrole: RENAMED Alpha Role\nprovider:
|
|
842
|
+
"---\nname: alpha\nrole: RENAMED Alpha Role\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nAlpha edited.\n",
|
|
863
843
|
)
|
|
864
844
|
.unwrap();
|
|
865
845
|
let transport = OfflineTransport::new();
|
|
@@ -950,7 +930,7 @@ fn red2still_entry_gate_resolves_parent_dot_team_form_a() {
|
|
|
950
930
|
&base,
|
|
951
931
|
&json!({"session_name": "team-teamdir", "team_dir": team_dir.to_string_lossy(),
|
|
952
932
|
"spec_path": runtime_spec.to_string_lossy(),
|
|
953
|
-
"agents": {"w1": {"status": "running", "provider": "
|
|
933
|
+
"agents": {"w1": {"status": "running", "provider": "fake"}}}),
|
|
954
934
|
)
|
|
955
935
|
.unwrap();
|
|
956
936
|
// Entry gate on team_dir: raw team_dir has NO .team (it's in parent), but resolved → base has it.
|
|
@@ -995,7 +975,7 @@ fn red2still_entry_gate_same_dir_dot_team_form_b() {
|
|
|
995
975
|
&team_dir,
|
|
996
976
|
&json!({"session_name": "team-tb", "team_dir": team_dir.to_string_lossy(),
|
|
997
977
|
"spec_path": runtime_spec.to_string_lossy(),
|
|
998
|
-
"agents": {"w1": {"status": "running", "provider": "
|
|
978
|
+
"agents": {"w1": {"status": "running", "provider": "fake"}}}),
|
|
999
979
|
)
|
|
1000
980
|
.unwrap();
|
|
1001
981
|
let transport = OfflineTransport::new();
|
|
@@ -1084,7 +1064,7 @@ fn e5_add_agent_resolves_team_dir_to_role_dir_when_runtime_spec_exists() {
|
|
|
1084
1064
|
let role = team.join("w2-role.md");
|
|
1085
1065
|
std::fs::write(
|
|
1086
1066
|
&role,
|
|
1087
|
-
"---\nname: w2\nrole: Second Worker\nprovider:
|
|
1067
|
+
"---\nname: w2\nrole: Second Worker\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nw2.\n",
|
|
1088
1068
|
)
|
|
1089
1069
|
.unwrap();
|
|
1090
1070
|
let transport = OfflineTransport::new();
|
|
@@ -1197,7 +1177,7 @@ fn spawn_launch_not_dry_run_is_no_longer_the_spawn_stub() {
|
|
|
1197
1177
|
// real-machine test above.
|
|
1198
1178
|
#[test]
|
|
1199
1179
|
fn launch_with_transport_records_one_spawn_per_agent_carrying_build_command() {
|
|
1200
|
-
let team = quick_start_team_dir(QS_VALID_ROLE); // one agent: implementer / provider
|
|
1180
|
+
let team = quick_start_team_dir(QS_VALID_ROLE); // one agent: implementer / provider fake
|
|
1201
1181
|
let spec_path = compiled_spec_path(&team);
|
|
1202
1182
|
let transport = OfflineTransport::new();
|
|
1203
1183
|
|
|
@@ -1226,8 +1206,8 @@ fn launch_with_transport_records_one_spawn_per_agent_carrying_build_command() {
|
|
|
1226
1206
|
assert!(
|
|
1227
1207
|
recorded
|
|
1228
1208
|
.iter()
|
|
1229
|
-
.any(|(_, argv)| argv.iter().any(|a| a == "
|
|
1230
|
-
"each spawn argv must carry the agent's provider build_command (
|
|
1209
|
+
.any(|(_, argv)| argv.iter().any(|a| a == "fake-worker")),
|
|
1210
|
+
"each spawn argv must carry the agent's provider build_command (fake-worker); got {recorded:?}"
|
|
1231
1211
|
);
|
|
1232
1212
|
assert!(
|
|
1233
1213
|
report
|
|
@@ -1350,7 +1330,7 @@ fn seed_canonical_team_identity(workspace: &std::path::Path, team_key: &str) {
|
|
|
1350
1330
|
#[serial(env)]
|
|
1351
1331
|
fn quick_start_with_transport_spawns_workers_not_dry_run() {
|
|
1352
1332
|
let _hermetic = hermetic_guard::HermeticTestEnv::enter_with_leader("launch-spawn-spawn-path");
|
|
1353
|
-
let team = quick_start_team_dir(QS_VALID_ROLE); // one agent: implementer / provider
|
|
1333
|
+
let team = quick_start_team_dir(QS_VALID_ROLE); // one agent: implementer / provider fake
|
|
1354
1334
|
let workspace = team.parent().expect("team_workspace(team_dir) = parent"); // where start_coordinator runs
|
|
1355
1335
|
seed_healthy_coordinator(workspace);
|
|
1356
1336
|
let transport = OfflineTransport::new();
|
|
@@ -1395,8 +1375,8 @@ fn quick_start_with_transport_spawns_workers_not_dry_run() {
|
|
|
1395
1375
|
assert!(
|
|
1396
1376
|
recorded
|
|
1397
1377
|
.iter()
|
|
1398
|
-
.any(|(_, argv)| argv.iter().any(|a| a == "
|
|
1399
|
-
"the spawn argv must carry the agent's provider build_command (
|
|
1378
|
+
.any(|(_, argv)| argv.iter().any(|a| a == "fake-worker")),
|
|
1379
|
+
"the spawn argv must carry the agent's provider build_command (fake-worker); got {recorded:?}"
|
|
1400
1380
|
);
|
|
1401
1381
|
}
|
|
1402
1382
|
|
|
@@ -1730,36 +1710,74 @@ fn quick_start_fresh_ws_spawns_resident_tmux_and_coordinator() {
|
|
|
1730
1710
|
// Golden: restart/orchestration.py (Route-B resume spawn), lifecycle/start.py, lifecycle/operations.py.
|
|
1731
1711
|
// ═════════════════════════════════════════════════════════════════════════
|
|
1732
1712
|
|
|
1733
|
-
pub(super) const DELEG_ROLE_ALPHA: &str = "---\nname: alpha\nrole: Alpha Worker\nprovider:
|
|
1734
|
-
pub(super) const DELEG_ROLE_BRAVO: &str = "---\nname: bravo\nrole: Bravo Worker\nprovider:
|
|
1735
|
-
const DELEG_ROLE_WORKER2: &str = "---\nname: worker2\nrole: Second Worker\nprovider:
|
|
1713
|
+
pub(super) const DELEG_ROLE_ALPHA: &str = "---\nname: alpha\nrole: Alpha Worker\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nAlpha.\n";
|
|
1714
|
+
pub(super) const DELEG_ROLE_BRAVO: &str = "---\nname: bravo\nrole: Bravo Worker\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nBravo.\n";
|
|
1715
|
+
const DELEG_ROLE_WORKER2: &str = "---\nname: worker2\nrole: Second Worker\nprovider: fake\nmodel: fake\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nSecond worker.\n";
|
|
1736
1716
|
|
|
1737
1717
|
/// A workspace (= self-contained team dir) with a compiled 2-agent spec + state listing alpha/bravo as
|
|
1738
|
-
///
|
|
1718
|
+
/// running `fake` workers that were never captured (no session_id / first_send_at), so restart and
|
|
1719
|
+
/// start-agent fresh-spawn them without --allow-fresh (fake has no resume) + a seeded HEALTHY
|
|
1720
|
+
/// coordinator. Resume-path tests use [`restart_ws_two_copilot_resumable_workers`].
|
|
1739
1721
|
pub(super) fn restart_ws_two_resumable_workers() -> PathBuf {
|
|
1722
|
+
restart_team_ws(
|
|
1723
|
+
&[("alpha", DELEG_ROLE_ALPHA.to_string()), ("bravo", DELEG_ROLE_BRAVO.to_string())],
|
|
1724
|
+
json!({
|
|
1725
|
+
"alpha": {"status": "running", "provider": "fake"},
|
|
1726
|
+
"bravo": {"status": "running", "provider": "fake"}
|
|
1727
|
+
}),
|
|
1728
|
+
)
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
/// Same team as [`restart_ws_two_resumable_workers`], but alpha/bravo are Copilot workers whose
|
|
1732
|
+
/// session ids exist in `<home>/.copilot/session-store.db` (the Copilot resume backing), so restart
|
|
1733
|
+
/// takes the Route-B RESUME path. The caller holds `#[serial(env)]` with `HOME=<home>`.
|
|
1734
|
+
pub(super) fn restart_ws_two_copilot_resumable_workers(home: &std::path::Path) -> PathBuf {
|
|
1735
|
+
seed_copilot_session_store(home, &["sess-a", "sess-b"]);
|
|
1736
|
+
restart_team_ws(
|
|
1737
|
+
&[
|
|
1738
|
+
("alpha", provider_role_doc("alpha", "copilot", "gpt-5.5")),
|
|
1739
|
+
("bravo", provider_role_doc("bravo", "copilot", "gpt-5.5")),
|
|
1740
|
+
],
|
|
1741
|
+
json!({
|
|
1742
|
+
"alpha": {"status": "running", "provider": "copilot", "session_id": "sess-a", "first_send_at": "2026-05-27T10:00:00+00:00"},
|
|
1743
|
+
"bravo": {"status": "running", "provider": "copilot", "session_id": "sess-b", "first_send_at": "2026-05-27T10:00:00+00:00"}
|
|
1744
|
+
}),
|
|
1745
|
+
)
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
/// Copilot resume backing is a `sessions` row in `$HOME/.copilot/session-store.db`.
|
|
1749
|
+
pub(super) fn seed_copilot_session_store(home: &std::path::Path, session_ids: &[&str]) {
|
|
1750
|
+
let db = home.join(".copilot").join("session-store.db");
|
|
1751
|
+
std::fs::create_dir_all(db.parent().unwrap()).unwrap();
|
|
1752
|
+
let conn = rusqlite::Connection::open(db).unwrap();
|
|
1753
|
+
conn.execute_batch("create table if not exists sessions (id text primary key);").unwrap();
|
|
1754
|
+
for session_id in session_ids {
|
|
1755
|
+
conn.execute(
|
|
1756
|
+
"insert or replace into sessions(id) values (?1)",
|
|
1757
|
+
[*session_id],
|
|
1758
|
+
)
|
|
1759
|
+
.unwrap();
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
fn restart_team_ws(roles: &[(&str, String)], agents: serde_json::Value) -> PathBuf {
|
|
1740
1764
|
let ws = temp_ws().join("restartteam");
|
|
1741
1765
|
std::fs::create_dir_all(ws.join("agents")).unwrap();
|
|
1742
|
-
let alpha_rollout = ws.join("alpha-rollout.jsonl");
|
|
1743
|
-
let bravo_rollout = ws.join("bravo-rollout.jsonl");
|
|
1744
|
-
std::fs::write(&alpha_rollout, "{}\n").unwrap();
|
|
1745
|
-
std::fs::write(&bravo_rollout, "{}\n").unwrap();
|
|
1746
1766
|
std::fs::write(
|
|
1747
1767
|
ws.join("TEAM.md"),
|
|
1748
1768
|
"---\nname: restartteam\nobjective: Restart probe.\nprovider: codex\n---\n\nteam.\n",
|
|
1749
1769
|
)
|
|
1750
1770
|
.unwrap();
|
|
1751
|
-
|
|
1752
|
-
|
|
1771
|
+
for (id, doc) in roles {
|
|
1772
|
+
std::fs::write(ws.join("agents").join(format!("{id}.md")), doc).unwrap();
|
|
1773
|
+
}
|
|
1753
1774
|
let spec = crate::compiler::compile_team(&ws).expect("compile 2-agent team");
|
|
1754
1775
|
std::fs::write(ws.join("team.spec.yaml"), crate::model::yaml::dumps(&spec)).unwrap();
|
|
1755
1776
|
crate::state::persist::save_runtime_state(
|
|
1756
1777
|
&ws,
|
|
1757
1778
|
&json!({
|
|
1758
1779
|
"session_name": "team-restartteam",
|
|
1759
|
-
"agents":
|
|
1760
|
-
"alpha": {"status": "running", "provider": "codex", "session_id": "sess-a", "rollout_path": alpha_rollout.to_string_lossy(), "first_send_at": "2026-05-27T10:00:00+00:00"},
|
|
1761
|
-
"bravo": {"status": "running", "provider": "codex", "session_id": "sess-b", "rollout_path": bravo_rollout.to_string_lossy(), "first_send_at": "2026-05-27T10:00:00+00:00"}
|
|
1762
|
-
}
|
|
1780
|
+
"agents": agents
|
|
1763
1781
|
}),
|
|
1764
1782
|
)
|
|
1765
1783
|
.unwrap();
|
|
@@ -1770,8 +1788,6 @@ pub(super) fn restart_ws_two_resumable_workers() -> PathBuf {
|
|
|
1770
1788
|
fn restart_ws_one_resumable_worker() -> PathBuf {
|
|
1771
1789
|
let ws = temp_ws().join("restartone");
|
|
1772
1790
|
std::fs::create_dir_all(ws.join("agents")).unwrap();
|
|
1773
|
-
let rollout = ws.join("alpha-rollout.jsonl");
|
|
1774
|
-
std::fs::write(&rollout, "{}\n").unwrap();
|
|
1775
1791
|
std::fs::write(
|
|
1776
1792
|
ws.join("TEAM.md"),
|
|
1777
1793
|
"---\nname: restartone\nobjective: Restart readiness probe.\nprovider: codex\n---\n\nteam.\n",
|
|
@@ -1785,7 +1801,7 @@ fn restart_ws_one_resumable_worker() -> PathBuf {
|
|
|
1785
1801
|
&json!({
|
|
1786
1802
|
"session_name": "team-restartone",
|
|
1787
1803
|
"agents": {
|
|
1788
|
-
"alpha": {"status": "running", "provider": "
|
|
1804
|
+
"alpha": {"status": "running", "provider": "fake"}
|
|
1789
1805
|
}
|
|
1790
1806
|
}),
|
|
1791
1807
|
)
|
|
@@ -1797,10 +1813,13 @@ fn restart_ws_one_resumable_worker() -> PathBuf {
|
|
|
1797
1813
|
// 2 [P0] — restart_with_transport must drive the REAL Route-B resume spawn: one spawn per resumable
|
|
1798
1814
|
// worker. The first resumed worker recreates the session with spawn_first; later workers may use
|
|
1799
1815
|
// spawn_into only after a live-session check proves that recreated session still exists. Each spawn
|
|
1800
|
-
// carries the provider
|
|
1816
|
+
// carries the provider resume command, and the coordinator is started. Copilot is the resumable
|
|
1817
|
+
// legacy provider; its backing is the hermetic HOME session store.
|
|
1801
1818
|
#[test]
|
|
1819
|
+
#[serial(env)]
|
|
1802
1820
|
fn restart_with_transport_spawns_resumable_workers_not_stub() {
|
|
1803
|
-
let
|
|
1821
|
+
let hermetic = enter_hermetic("launch-spawn-restart-resume");
|
|
1822
|
+
let ws = restart_ws_two_copilot_resumable_workers(hermetic.home());
|
|
1804
1823
|
let mut state = crate::state::persist::load_runtime_state(&ws).unwrap();
|
|
1805
1824
|
state["generation"] = json!("old-destroyed-session-birth");
|
|
1806
1825
|
crate::state::persist::save_runtime_state(&ws, &state).unwrap();
|
|
@@ -1824,8 +1843,9 @@ fn restart_with_transport_spawns_resumable_workers_not_stub() {
|
|
|
1824
1843
|
"with has-session=true after alpha spawn, restart may add bravo with spawn_into; this is liveness-based, not index-based; got {recorded:?}"
|
|
1825
1844
|
);
|
|
1826
1845
|
assert!(
|
|
1827
|
-
recorded.iter().all(|(_, argv)| argv.iter().any(|a| a == "
|
|
1828
|
-
|
|
1846
|
+
recorded.iter().all(|(_, argv)| argv.iter().any(|a| a == "copilot")
|
|
1847
|
+
&& argv.iter().any(|a| a == "--resume")),
|
|
1848
|
+
"each resumed worker's spawn argv must carry the provider resume command (copilot --resume); got {recorded:?}"
|
|
1829
1849
|
);
|
|
1830
1850
|
assert!(
|
|
1831
1851
|
matches!(result, Ok(RestartReport::Restarted { coordinator_started: true, .. })),
|
|
@@ -1845,7 +1865,7 @@ fn restart_with_transport_spawns_resumable_workers_not_stub() {
|
|
|
1845
1865
|
.expect("restart.completed event for successful restart");
|
|
1846
1866
|
assert_eq!(completed.get("rc").and_then(|v| v.as_str()), Some("ok"));
|
|
1847
1867
|
|
|
1848
|
-
let ws =
|
|
1868
|
+
let ws = restart_ws_two_copilot_resumable_workers(hermetic.home());
|
|
1849
1869
|
let dead_after_first = OfflineTransport::new().with_session_absent_after_spawn_first();
|
|
1850
1870
|
let result = restart_with_transport_with_readiness_deadline(
|
|
1851
1871
|
&ws,
|
|
@@ -1899,8 +1919,6 @@ fn restart_with_transport_spawns_resumable_workers_not_stub() {
|
|
|
1899
1919
|
fn restart_runtime_spec_spawns_from_run_workspace_not_runtime_dir() {
|
|
1900
1920
|
let workspace = temp_ws();
|
|
1901
1921
|
std::fs::create_dir_all(workspace.join("agents")).unwrap();
|
|
1902
|
-
let rollout = workspace.join("alpha-rollout.jsonl");
|
|
1903
|
-
std::fs::write(&rollout, "{}\n").unwrap();
|
|
1904
1922
|
std::fs::write(
|
|
1905
1923
|
workspace.join("TEAM.md"),
|
|
1906
1924
|
"---\nname: current\nobjective: Restart cwd probe.\nprovider: codex\n---\n\nteam.\n",
|
|
@@ -1921,10 +1939,7 @@ fn restart_runtime_spec_spawns_from_run_workspace_not_runtime_dir() {
|
|
|
1921
1939
|
"agents": {
|
|
1922
1940
|
"alpha": {
|
|
1923
1941
|
"status": "running",
|
|
1924
|
-
"provider": "
|
|
1925
|
-
"session_id": "sess-a",
|
|
1926
|
-
"rollout_path": rollout.to_string_lossy(),
|
|
1927
|
-
"first_send_at": "2026-05-27T10:00:00+00:00",
|
|
1942
|
+
"provider": "fake",
|
|
1928
1943
|
"spawn_cwd": null
|
|
1929
1944
|
}
|
|
1930
1945
|
}
|
|
@@ -1938,7 +1953,7 @@ fn restart_runtime_spec_spawns_from_run_workspace_not_runtime_dir() {
|
|
|
1938
1953
|
|
|
1939
1954
|
assert!(
|
|
1940
1955
|
matches!(result, Ok(RestartReport::Restarted { .. })),
|
|
1941
|
-
"restart should succeed for a
|
|
1956
|
+
"restart should succeed for a never-captured project-root team: {result:?}"
|
|
1942
1957
|
);
|
|
1943
1958
|
assert_eq!(
|
|
1944
1959
|
transport.spawn_cwd_records(),
|
|
@@ -1981,7 +1996,9 @@ fn restart_runtime_spec_spawns_from_run_workspace_not_runtime_dir() {
|
|
|
1981
1996
|
}
|
|
1982
1997
|
|
|
1983
1998
|
#[test]
|
|
1999
|
+
#[serial(env)]
|
|
1984
2000
|
fn restart_allow_fresh_does_not_force_fresh_other_agents_when_one_session_capture_times_out() {
|
|
2001
|
+
let hermetic = enter_hermetic("launch-spawn-restart-atomic");
|
|
1985
2002
|
let ws = temp_ws().join("restartatomic");
|
|
1986
2003
|
std::fs::create_dir_all(ws.join("agents")).unwrap();
|
|
1987
2004
|
std::fs::write(
|
|
@@ -1989,19 +2006,22 @@ fn restart_allow_fresh_does_not_force_fresh_other_agents_when_one_session_captur
|
|
|
1989
2006
|
"---\nname: restartatomic\nobjective: Restart atomicity probe.\nprovider: codex\n---\n\nteam.\n",
|
|
1990
2007
|
)
|
|
1991
2008
|
.unwrap();
|
|
1992
|
-
std::fs::write(ws.join("agents").join("alpha.md"), DELEG_ROLE_ALPHA).unwrap();
|
|
1993
|
-
std::fs::write(ws.join("agents").join("bravo.md"), DELEG_ROLE_BRAVO).unwrap();
|
|
1994
|
-
|
|
1995
|
-
let sessions_root = ws.join("codex-sessions");
|
|
1996
|
-
let dated = sessions_root.join("2026").join("06").join("20");
|
|
1997
|
-
std::fs::create_dir_all(&dated).unwrap();
|
|
1998
|
-
let alpha_session = "019ee540-37ed-7a20-a141-1d654224d209";
|
|
1999
2009
|
std::fs::write(
|
|
2000
|
-
|
|
2001
|
-
"
|
|
2010
|
+
ws.join("agents").join("alpha.md"),
|
|
2011
|
+
provider_role_doc("alpha", "copilot", "gpt-5.5"),
|
|
2012
|
+
)
|
|
2013
|
+
.unwrap();
|
|
2014
|
+
std::fs::write(
|
|
2015
|
+
ws.join("agents").join("bravo.md"),
|
|
2016
|
+
provider_role_doc("bravo", "copilot", "gpt-5.5"),
|
|
2002
2017
|
)
|
|
2003
2018
|
.unwrap();
|
|
2004
2019
|
|
|
2020
|
+
// alpha's resume backing is its Copilot session-store row; bravo has none, so only bravo's
|
|
2021
|
+
// session convergence times out.
|
|
2022
|
+
let alpha_session = "019ee540-37ed-7a20-a141-1d654224d209";
|
|
2023
|
+
seed_copilot_session_store(hermetic.home(), &[alpha_session]);
|
|
2024
|
+
|
|
2005
2025
|
let spec = crate::compiler::compile_team(&ws).expect("compile restart team");
|
|
2006
2026
|
std::fs::write(ws.join("team.spec.yaml"), crate::model::yaml::dumps(&spec)).unwrap();
|
|
2007
2027
|
crate::state::persist::save_runtime_state(
|
|
@@ -2011,15 +2031,13 @@ fn restart_allow_fresh_does_not_force_fresh_other_agents_when_one_session_captur
|
|
|
2011
2031
|
"agents": {
|
|
2012
2032
|
"alpha": {
|
|
2013
2033
|
"status": "running",
|
|
2014
|
-
"provider": "
|
|
2034
|
+
"provider": "copilot",
|
|
2015
2035
|
"session_id": alpha_session,
|
|
2016
|
-
"rollout_path": ws.join("stale").join("missing-alpha.jsonl").to_string_lossy(),
|
|
2017
|
-
"codex_sessions_root": sessions_root.to_string_lossy(),
|
|
2018
2036
|
"first_send_at": "2026-05-27T10:00:00+00:00"
|
|
2019
2037
|
},
|
|
2020
2038
|
"bravo": {
|
|
2021
2039
|
"status": "running",
|
|
2022
|
-
"provider": "
|
|
2040
|
+
"provider": "copilot",
|
|
2023
2041
|
"session_id": null,
|
|
2024
2042
|
"spawn_cwd": ws.to_string_lossy(),
|
|
2025
2043
|
"first_send_at": "2026-05-27T10:00:00+00:00"
|
|
@@ -2058,7 +2076,7 @@ fn restart_allow_fresh_does_not_force_fresh_other_agents_when_one_session_captur
|
|
|
2058
2076
|
assert_eq!(
|
|
2059
2077
|
alpha.get("decision").and_then(|v| v.as_str()),
|
|
2060
2078
|
Some("resume"),
|
|
2061
|
-
"alpha has session_id plus matching
|
|
2079
|
+
"alpha has session_id plus a matching Copilot session-store row and must not be forced fresh: {alpha}"
|
|
2062
2080
|
);
|
|
2063
2081
|
assert!(
|
|
2064
2082
|
alpha.get("forced_fresh").is_none(),
|
|
@@ -2079,153 +2097,6 @@ fn restart_allow_fresh_does_not_force_fresh_other_agents_when_one_session_captur
|
|
|
2079
2097
|
);
|
|
2080
2098
|
}
|
|
2081
2099
|
|
|
2082
|
-
#[test]
|
|
2083
|
-
fn restart_allow_fresh_clears_codex_identity_mismatch_tuple_before_capture() {
|
|
2084
|
-
let ws = temp_ws().join("restartcrossbindallowfresh");
|
|
2085
|
-
std::fs::create_dir_all(ws.join("agents")).unwrap();
|
|
2086
|
-
std::fs::write(
|
|
2087
|
-
ws.join("TEAM.md"),
|
|
2088
|
-
"---\nname: restartcrossbindallowfresh\nobjective: Restart crossbind repair.\nprovider: codex\n---\n\nteam.\n",
|
|
2089
|
-
)
|
|
2090
|
-
.unwrap();
|
|
2091
|
-
std::fs::write(ws.join("agents").join("alpha.md"), DELEG_ROLE_ALPHA).unwrap();
|
|
2092
|
-
std::fs::write(ws.join("agents").join("bravo.md"), DELEG_ROLE_BRAVO).unwrap();
|
|
2093
|
-
let alpha_session = "019f3586-6eb4-7552-8680-c833b483a289";
|
|
2094
|
-
let alpha_rollout = codex_identity_rollout(&ws, "alpha-rollout.jsonl", alpha_session, "alpha");
|
|
2095
|
-
let spec = crate::compiler::compile_team(&ws).expect("compile crossbind team");
|
|
2096
|
-
std::fs::write(ws.join("team.spec.yaml"), crate::model::yaml::dumps(&spec)).unwrap();
|
|
2097
|
-
crate::state::persist::save_runtime_state(
|
|
2098
|
-
&ws,
|
|
2099
|
-
&json!({
|
|
2100
|
-
"session_name": "team-restartcrossbindallowfresh",
|
|
2101
|
-
"agents": {
|
|
2102
|
-
"alpha": {
|
|
2103
|
-
"status": "running",
|
|
2104
|
-
"provider": "codex",
|
|
2105
|
-
"window": "alpha",
|
|
2106
|
-
"first_send_at": "2026-07-06T03:45:00+00:00",
|
|
2107
|
-
"session_id": alpha_session,
|
|
2108
|
-
"rollout_path": alpha_rollout.to_string_lossy(),
|
|
2109
|
-
"captured_at": "2026-07-06T03:45:13.596763+00:00",
|
|
2110
|
-
"captured_via": "fs_watch",
|
|
2111
|
-
"attribution_confidence": "high",
|
|
2112
|
-
"spawn_cwd": ws.to_string_lossy()
|
|
2113
|
-
},
|
|
2114
|
-
"bravo": {
|
|
2115
|
-
"status": "running",
|
|
2116
|
-
"provider": "codex",
|
|
2117
|
-
"window": "bravo",
|
|
2118
|
-
"first_send_at": "2026-07-06T03:45:00+00:00",
|
|
2119
|
-
"session_id": alpha_session,
|
|
2120
|
-
"rollout_path": alpha_rollout.to_string_lossy(),
|
|
2121
|
-
"captured_at": "2026-07-06T03:45:13.596763+00:00",
|
|
2122
|
-
"captured_via": "fs_watch",
|
|
2123
|
-
"attribution_confidence": "high",
|
|
2124
|
-
"spawn_cwd": ws.to_string_lossy()
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
}),
|
|
2128
|
-
)
|
|
2129
|
-
.unwrap();
|
|
2130
|
-
seed_healthy_coordinator(&ws);
|
|
2131
|
-
let transport = OfflineTransport::new();
|
|
2132
|
-
|
|
2133
|
-
let result = restart_with_transport(&ws, true, None, &transport);
|
|
2134
|
-
|
|
2135
|
-
assert!(
|
|
2136
|
-
matches!(result, Ok(RestartReport::Restarted { .. })),
|
|
2137
|
-
"allow-fresh restart should repair by fresh-spawning only poisoned bravo; got {result:?}"
|
|
2138
|
-
);
|
|
2139
|
-
let windows = transport.spawn_window_records();
|
|
2140
|
-
let records = transport.spawn_records();
|
|
2141
|
-
let bravo_idx = windows
|
|
2142
|
-
.iter()
|
|
2143
|
-
.position(|(_, window)| window == "bravo")
|
|
2144
|
-
.expect("bravo must spawn");
|
|
2145
|
-
assert!(
|
|
2146
|
-
!records[bravo_idx].1.iter().any(|arg| arg == "resume"),
|
|
2147
|
-
"poisoned bravo must fresh-start without codex resume argv; records={records:?}"
|
|
2148
|
-
);
|
|
2149
|
-
|
|
2150
|
-
let mut state = crate::state::persist::load_runtime_state(&ws).expect("load state");
|
|
2151
|
-
let bravo = state.pointer("/agents/bravo").expect("bravo");
|
|
2152
|
-
for field in [
|
|
2153
|
-
"session_id",
|
|
2154
|
-
"rollout_path",
|
|
2155
|
-
"captured_at",
|
|
2156
|
-
"captured_via",
|
|
2157
|
-
"attribution_confidence",
|
|
2158
|
-
"capture_state",
|
|
2159
|
-
] {
|
|
2160
|
-
let value = bravo.get(field);
|
|
2161
|
-
assert!(
|
|
2162
|
-
value.is_none() || value == Some(&serde_json::Value::Null),
|
|
2163
|
-
"allow-fresh must clear poisoned bravo {field}; got {value:?} in {bravo}"
|
|
2164
|
-
);
|
|
2165
|
-
}
|
|
2166
|
-
if let Some(teams) = state.get("teams").and_then(serde_json::Value::as_object) {
|
|
2167
|
-
for (team_key, team_state) in teams {
|
|
2168
|
-
if let Some(team_bravo) = team_state.pointer("/agents/bravo") {
|
|
2169
|
-
for field in [
|
|
2170
|
-
"session_id",
|
|
2171
|
-
"rollout_path",
|
|
2172
|
-
"captured_at",
|
|
2173
|
-
"captured_via",
|
|
2174
|
-
"attribution_confidence",
|
|
2175
|
-
"capture_state",
|
|
2176
|
-
] {
|
|
2177
|
-
let value = team_bravo.get(field);
|
|
2178
|
-
assert!(
|
|
2179
|
-
value.is_none() || value == Some(&serde_json::Value::Null),
|
|
2180
|
-
"allow-fresh must clear teams.{team_key}.agents.bravo {field}; got {value:?} in {team_bravo}"
|
|
2181
|
-
);
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
let fresh_session = "019f3587-bravo-fresh";
|
|
2188
|
-
let fresh_rollout =
|
|
2189
|
-
codex_identity_rollout(&ws, "bravo-fresh-rollout.jsonl", fresh_session, "bravo");
|
|
2190
|
-
let mut adapter_for = |provider| crate::provider::adapter::get_adapter(provider);
|
|
2191
|
-
crate::provider::session::capture::capture_missing_provider_sessions_once(
|
|
2192
|
-
&mut state,
|
|
2193
|
-
&mut adapter_for,
|
|
2194
|
-
true,
|
|
2195
|
-
0,
|
|
2196
|
-
)
|
|
2197
|
-
.expect("fresh bravo capture should run");
|
|
2198
|
-
let bravo = state.pointer("/agents/bravo").expect("bravo after capture");
|
|
2199
|
-
assert_eq!(
|
|
2200
|
-
bravo.get("session_id").and_then(serde_json::Value::as_str),
|
|
2201
|
-
Some(fresh_session),
|
|
2202
|
-
"fresh bravo rollout should be capturable after allow-fresh clears poison; rollout={fresh_rollout:?} state={bravo}"
|
|
2203
|
-
);
|
|
2204
|
-
assert_eq!(
|
|
2205
|
-
bravo
|
|
2206
|
-
.get("rollout_path")
|
|
2207
|
-
.and_then(serde_json::Value::as_str),
|
|
2208
|
-
Some(fresh_rollout.to_string_lossy().as_ref())
|
|
2209
|
-
);
|
|
2210
|
-
let plan = crate::lifecycle::restart::classify_restart_plan_with_resume_validation(
|
|
2211
|
-
Some(&ws),
|
|
2212
|
-
&state,
|
|
2213
|
-
false,
|
|
2214
|
-
)
|
|
2215
|
-
.expect("classify after fresh capture");
|
|
2216
|
-
assert!(
|
|
2217
|
-
plan.unresumable.is_empty(),
|
|
2218
|
-
"next restart must not loop on session_identity_mismatch after fresh capture; got {:?}",
|
|
2219
|
-
plan.unresumable
|
|
2220
|
-
);
|
|
2221
|
-
let bravo_decision = plan
|
|
2222
|
-
.decisions
|
|
2223
|
-
.iter()
|
|
2224
|
-
.find(|decision| decision.agent_id.as_str() == "bravo")
|
|
2225
|
-
.expect("bravo decision");
|
|
2226
|
-
assert_eq!(bravo_decision.decision, ResumeDecision::Resume);
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
2100
|
#[test]
|
|
2230
2101
|
fn restart_spawn_failure_isolated_to_partial_report() {
|
|
2231
2102
|
let ws = restart_ws_two_resumable_workers();
|
|
@@ -2389,19 +2260,21 @@ fn restart_times_out_when_spawned_worker_pane_is_not_addressable() {
|
|
|
2389
2260
|
}
|
|
2390
2261
|
|
|
2391
2262
|
// 3 [P0] — start_agent_with_transport on a non-paused agent with a session_id must spawn EXACTLY ONE
|
|
2392
|
-
// worker (resume) carrying the provider
|
|
2393
|
-
// ZERO spawns -> RED at recorded.len().
|
|
2263
|
+
// worker (resume) carrying the provider resume command. Today the stub returns RequirementUnmet with
|
|
2264
|
+
// ZERO spawns -> RED at recorded.len(). Copilot is the resumable legacy provider; its backing is the
|
|
2265
|
+
// hermetic HOME session store.
|
|
2394
2266
|
#[test]
|
|
2267
|
+
#[serial(env)]
|
|
2395
2268
|
fn start_agent_with_transport_spawns_resume_not_stub() {
|
|
2269
|
+
let hermetic = enter_hermetic("launch-spawn-start-agent-resume");
|
|
2396
2270
|
let ws = temp_ws().join("startagentws");
|
|
2397
2271
|
std::fs::create_dir_all(&ws).unwrap();
|
|
2398
|
-
|
|
2399
|
-
std::fs::write(&rollout, "{}\n").unwrap();
|
|
2272
|
+
seed_copilot_session_store(hermetic.home(), &["sess-a"]);
|
|
2400
2273
|
crate::state::persist::save_runtime_state(
|
|
2401
2274
|
&ws,
|
|
2402
2275
|
&json!({
|
|
2403
2276
|
"session_name": "team-sa",
|
|
2404
|
-
"agents": {"alpha": {"status": "running", "provider": "
|
|
2277
|
+
"agents": {"alpha": {"status": "running", "provider": "copilot", "session_id": "sess-a", "first_send_at": "2026-05-27T10:00:00+00:00"}}
|
|
2405
2278
|
}),
|
|
2406
2279
|
)
|
|
2407
2280
|
.unwrap();
|
|
@@ -2426,8 +2299,12 @@ fn start_agent_with_transport_spawns_resume_not_stub() {
|
|
|
2426
2299
|
with ZERO spawns; got {recorded:?}"
|
|
2427
2300
|
);
|
|
2428
2301
|
assert!(
|
|
2429
|
-
recorded[0].1.iter().any(|a| a == "
|
|
2430
|
-
|
|
2302
|
+
recorded[0].1.iter().any(|a| a == "copilot")
|
|
2303
|
+
&& recorded[0]
|
|
2304
|
+
.1
|
|
2305
|
+
.windows(2)
|
|
2306
|
+
.any(|pair| pair[0] == "--resume" && pair[1] == "sess-a"),
|
|
2307
|
+
"the resume spawn argv must carry the provider resume command (copilot --resume sess-a); got {:?}",
|
|
2431
2308
|
recorded[0].1
|
|
2432
2309
|
);
|
|
2433
2310
|
}
|
|
@@ -2479,8 +2356,8 @@ fn add_agent_with_transport_spawns_new_worker_not_stub() {
|
|
|
2479
2356
|
then returns RequirementUnmet with ZERO spawns; got {recorded:?}"
|
|
2480
2357
|
);
|
|
2481
2358
|
assert!(
|
|
2482
|
-
recorded.iter().any(|(_, argv)| argv.iter().any(|a| a == "
|
|
2483
|
-
"the new worker's spawn argv must carry the provider build_command (
|
|
2359
|
+
recorded.iter().any(|(_, argv)| argv.iter().any(|a| a == "fake-worker")),
|
|
2360
|
+
"the new worker's spawn argv must carry the provider build_command (fake-worker); got {recorded:?}"
|
|
2484
2361
|
);
|
|
2485
2362
|
}
|
|
2486
2363
|
|
|
@@ -2501,7 +2378,7 @@ fn add_agent_role_doc_exists_runtime_missing_succeeds() {
|
|
|
2501
2378
|
&json!({
|
|
2502
2379
|
"session_name": "team-addroledoc",
|
|
2503
2380
|
"agents": {
|
|
2504
|
-
"implementer": {"status": "running", "provider": "
|
|
2381
|
+
"implementer": {"status": "running", "provider": "fake", "window": "implementer"}
|
|
2505
2382
|
}
|
|
2506
2383
|
}),
|
|
2507
2384
|
)
|
|
@@ -2549,7 +2426,7 @@ fn start_agent_runtime_missing_role_doc_exists_no_side_effect() {
|
|
|
2549
2426
|
&json!({
|
|
2550
2427
|
"session_name": "team-startmissing",
|
|
2551
2428
|
"agents": {
|
|
2552
|
-
"implementer": {"status": "running", "provider": "
|
|
2429
|
+
"implementer": {"status": "running", "provider": "fake", "window": "implementer"}
|
|
2553
2430
|
}
|
|
2554
2431
|
}),
|
|
2555
2432
|
)
|
|
@@ -2704,21 +2581,22 @@ fn restart_allow_fresh_copilot_keeps_session_id_null_until_capture_confirms() {
|
|
|
2704
2581
|
let _ = plan; // shape verified above; details depend on classifier internals.
|
|
2705
2582
|
}
|
|
2706
2583
|
|
|
2707
|
-
/// 0.4.6 tuple-atomic contract (audit, line 268):
|
|
2708
|
-
/// leaves session_id=null even when
|
|
2584
|
+
/// 0.4.6 tuple-atomic contract (audit, line 268): a fresh restart of a
|
|
2585
|
+
/// preassigned-session worker (Copilot) leaves session_id=null even when the
|
|
2586
|
+
/// input row had a stale session_id.
|
|
2709
2587
|
/// The poisoned-row scenario (Bug 045 release-engineer state).
|
|
2710
2588
|
#[test]
|
|
2711
|
-
fn
|
|
2712
|
-
let ws = temp_ws().join("
|
|
2589
|
+
fn restart_allow_fresh_copilot_clears_poisoned_session_id() {
|
|
2590
|
+
let ws = temp_ws().join("restartcopilot046");
|
|
2713
2591
|
std::fs::create_dir_all(ws.join("agents")).unwrap();
|
|
2714
2592
|
std::fs::write(
|
|
2715
2593
|
ws.join("TEAM.md"),
|
|
2716
|
-
"---\nname:
|
|
2594
|
+
"---\nname: restartcopilot046\nobjective: 0.4.6 contract.\nprovider: claude\n---\n\nteam.\n",
|
|
2717
2595
|
)
|
|
2718
2596
|
.unwrap();
|
|
2719
2597
|
std::fs::write(
|
|
2720
2598
|
ws.join("agents").join("alpha.md"),
|
|
2721
|
-
"---\nname: alpha\nrole: Alpha\nprovider:
|
|
2599
|
+
"---\nname: alpha\nrole: Alpha\nprovider: copilot\nmodel: gpt-5.5\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nAlpha.\n",
|
|
2722
2600
|
)
|
|
2723
2601
|
.unwrap();
|
|
2724
2602
|
let spec = crate::compiler::compile_team(&ws).expect("compile");
|
|
@@ -2727,11 +2605,11 @@ fn restart_allow_fresh_claude_clears_poisoned_session_id() {
|
|
|
2727
2605
|
crate::state::persist::save_runtime_state(
|
|
2728
2606
|
&ws,
|
|
2729
2607
|
&json!({
|
|
2730
|
-
"session_name": "team-
|
|
2608
|
+
"session_name": "team-restartcopilot046",
|
|
2731
2609
|
"agents": {
|
|
2732
2610
|
"alpha": {
|
|
2733
2611
|
"status": "running",
|
|
2734
|
-
"provider": "
|
|
2612
|
+
"provider": "copilot",
|
|
2735
2613
|
"window": "alpha",
|
|
2736
2614
|
"first_send_at": "2026-06-23T10:00:00+00:00",
|
|
2737
2615
|
"session_id": stale_uuid,
|
|
@@ -2749,7 +2627,7 @@ fn restart_allow_fresh_claude_clears_poisoned_session_id() {
|
|
|
2749
2627
|
let result = restart_with_transport(&ws, true, None, &transport);
|
|
2750
2628
|
assert!(
|
|
2751
2629
|
matches!(result, Ok(RestartReport::Restarted { .. })),
|
|
2752
|
-
"allow-fresh restart should fresh-spawn the
|
|
2630
|
+
"allow-fresh restart should fresh-spawn the copilot worker; got {result:?}"
|
|
2753
2631
|
);
|
|
2754
2632
|
|
|
2755
2633
|
let state = crate::state::persist::load_runtime_state(&ws).expect("load state");
|
|
@@ -2757,7 +2635,7 @@ fn restart_allow_fresh_claude_clears_poisoned_session_id() {
|
|
|
2757
2635
|
assert_eq!(
|
|
2758
2636
|
agent.get("session_id"),
|
|
2759
2637
|
Some(&serde_json::Value::Null),
|
|
2760
|
-
"0.4.6 contract:
|
|
2638
|
+
"0.4.6 contract: fresh restart must clear stale session_id; agent={agent}"
|
|
2761
2639
|
);
|
|
2762
2640
|
// C1 dual-projection: teams.<key>.agents.alpha.session_id must also be null.
|
|
2763
2641
|
if let Some(teams) = state.get("teams").and_then(serde_json::Value::as_object) {
|
|
@@ -2789,7 +2667,7 @@ fn fork_refuses_source_with_partial_tuple() {
|
|
|
2789
2667
|
.unwrap();
|
|
2790
2668
|
std::fs::write(
|
|
2791
2669
|
ws.join("agents").join("src.md"),
|
|
2792
|
-
"---\nname: src\nrole: Source\nprovider:
|
|
2670
|
+
"---\nname: src\nrole: Source\nprovider: copilot\nmodel: gpt-5.5\nauth_mode: subscription\ndangerously_skip_permissions: false\ntools:\n - mcp_team\n---\n\nSrc.\n",
|
|
2793
2671
|
)
|
|
2794
2672
|
.unwrap();
|
|
2795
2673
|
let spec = crate::compiler::compile_team(&ws).expect("compile");
|
|
@@ -2801,7 +2679,7 @@ fn fork_refuses_source_with_partial_tuple() {
|
|
|
2801
2679
|
"agents": {
|
|
2802
2680
|
"src": {
|
|
2803
2681
|
"status": "running",
|
|
2804
|
-
"provider": "
|
|
2682
|
+
"provider": "copilot",
|
|
2805
2683
|
"window": "src",
|
|
2806
2684
|
"first_send_at": "2026-06-25T10:00:00+00:00",
|
|
2807
2685
|
"session_id": "scalar-only-uuid",
|
|
@@ -2859,8 +2737,8 @@ fn stop_agent_adaptive_kills_target_pane_not_shared_layout_window() {
|
|
|
2859
2737
|
"session_name": session,
|
|
2860
2738
|
"legacy_display_key": "adaptive",
|
|
2861
2739
|
"agents": {
|
|
2862
|
-
"w1": {"status": "running", "provider": "
|
|
2863
|
-
"w2": {"status": "running", "provider": "
|
|
2740
|
+
"w1": {"status": "running", "provider": "fake", "window": "team-w1", "layout_window": "team-w1", "layout_index": 0, "pane_index": 0, "pane_id": "%1"},
|
|
2741
|
+
"w2": {"status": "running", "provider": "fake", "window": "team-w1", "layout_window": "team-w1", "layout_index": 0, "pane_index": 1, "pane_id": "%2"}
|
|
2864
2742
|
}
|
|
2865
2743
|
}),
|
|
2866
2744
|
)
|
|
@@ -3108,12 +2986,12 @@ fn quick_start_running_agent_state_shape_after_spawn_is_golden() {
|
|
|
3108
2986
|
"spawned_at",
|
|
3109
2987
|
"pane_id",
|
|
3110
2988
|
],
|
|
3111
|
-
"
|
|
2989
|
+
"the fake worker has no pre-assigned session id, so no framework _pending_session_id; raw={raw}"
|
|
3112
2990
|
);
|
|
3113
2991
|
assert_eq!(agent["status"], json!("running"));
|
|
3114
|
-
assert_eq!(agent["provider"], json!("
|
|
2992
|
+
assert_eq!(agent["provider"], json!("fake"));
|
|
3115
2993
|
assert_eq!(agent["agent_id"], json!("implementer"));
|
|
3116
|
-
assert_eq!(agent["model"], json!("
|
|
2994
|
+
assert_eq!(agent["model"], json!("fake"));
|
|
3117
2995
|
assert_eq!(agent["auth_mode"], json!("subscription"));
|
|
3118
2996
|
assert!(agent["profile"].is_null());
|
|
3119
2997
|
assert_eq!(agent["window"], json!("implementer"));
|
|
@@ -3206,9 +3084,9 @@ fn quick_start_paused_agent_state_is_paused_provider_only_and_not_spawned() {
|
|
|
3206
3084
|
"team_dir": team.to_string_lossy(),
|
|
3207
3085
|
"agents": {
|
|
3208
3086
|
"implementer": {
|
|
3209
|
-
"provider": "
|
|
3087
|
+
"provider": "fake",
|
|
3210
3088
|
"role": "Implementation Engineer",
|
|
3211
|
-
"model": "
|
|
3089
|
+
"model": "fake",
|
|
3212
3090
|
"auth_mode": "subscription"
|
|
3213
3091
|
}
|
|
3214
3092
|
},
|
|
@@ -3234,7 +3112,7 @@ fn quick_start_paused_agent_state_is_paused_provider_only_and_not_spawned() {
|
|
|
3234
3112
|
"paused agent state must be exactly golden launch/core.py:171-173; raw={raw}"
|
|
3235
3113
|
);
|
|
3236
3114
|
assert_eq!(agent["status"], json!("paused"));
|
|
3237
|
-
assert_eq!(agent["provider"], json!("
|
|
3115
|
+
assert_eq!(agent["provider"], json!("fake"));
|
|
3238
3116
|
assert!(
|
|
3239
3117
|
transport.spawn_records().is_empty(),
|
|
3240
3118
|
"paused agent must not spawn any terminal window; got {:?}",
|
|
@@ -3538,7 +3416,7 @@ fn e43_adaptive_placement_skips_existing_agent_whose_live_pane_window_name_diffe
|
|
|
3538
3416
|
"agents": {
|
|
3539
3417
|
"architect": {
|
|
3540
3418
|
"status": "running",
|
|
3541
|
-
"provider": "
|
|
3419
|
+
"provider": "fake",
|
|
3542
3420
|
"window": "architect",
|
|
3543
3421
|
// Stale residue — placement must NOT inherit this name.
|
|
3544
3422
|
"layout_window": "team-w2",
|
|
@@ -3615,7 +3493,7 @@ fn e43_add_agent_does_not_split_against_phantom_layout_window() {
|
|
|
3615
3493
|
"agents": {
|
|
3616
3494
|
"architect": {
|
|
3617
3495
|
"status": "running",
|
|
3618
|
-
"provider": "
|
|
3496
|
+
"provider": "fake",
|
|
3619
3497
|
"window": "architect",
|
|
3620
3498
|
"layout_window": "team-w2",
|
|
3621
3499
|
"pane_id": "%1",
|
|
@@ -3702,7 +3580,7 @@ fn e45_adaptive_placement_returns_none_when_no_real_team_w_window_present_in_sta
|
|
|
3702
3580
|
"agents": {
|
|
3703
3581
|
"developer": {
|
|
3704
3582
|
"status": "running",
|
|
3705
|
-
"provider": "
|
|
3583
|
+
"provider": "fake",
|
|
3706
3584
|
"window": "developer",
|
|
3707
3585
|
"layout_window": "developer",
|
|
3708
3586
|
"layout_index": 0u64,
|
|
@@ -3710,7 +3588,7 @@ fn e45_adaptive_placement_returns_none_when_no_real_team_w_window_present_in_sta
|
|
|
3710
3588
|
},
|
|
3711
3589
|
"test-engineer": {
|
|
3712
3590
|
"status": "running",
|
|
3713
|
-
"provider": "
|
|
3591
|
+
"provider": "fake",
|
|
3714
3592
|
"window": "test-engineer",
|
|
3715
3593
|
"layout_window": "test-engineer",
|
|
3716
3594
|
"pane_id": "%521",
|
|
@@ -3764,7 +3642,7 @@ fn e45_adaptive_existing_placement_returns_none_when_claim_is_per_agent_window()
|
|
|
3764
3642
|
"agents": {
|
|
3765
3643
|
"developer": {
|
|
3766
3644
|
"status": "running",
|
|
3767
|
-
"provider": "
|
|
3645
|
+
"provider": "fake",
|
|
3768
3646
|
"window": "developer",
|
|
3769
3647
|
"layout_window": "developer",
|
|
3770
3648
|
"layout_index": 0u64,
|
|
@@ -3824,7 +3702,7 @@ fn e45_add_agent_opens_new_window_does_not_split_into_per_agent_window() {
|
|
|
3824
3702
|
"agents": {
|
|
3825
3703
|
"developer": {
|
|
3826
3704
|
"status": "running",
|
|
3827
|
-
"provider": "
|
|
3705
|
+
"provider": "fake",
|
|
3828
3706
|
"window": "developer",
|
|
3829
3707
|
"layout_window": "developer",
|
|
3830
3708
|
"layout_index": 0u64,
|
|
@@ -3959,7 +3837,7 @@ fn e42_add_then_remove_round_trip_resolves_canonical_spec_not_legacy() {
|
|
|
3959
3837
|
"session_name": "team-iso",
|
|
3960
3838
|
"spec_path": legacy_spec_path.to_string_lossy(),
|
|
3961
3839
|
"agents": {
|
|
3962
|
-
"implementer": {"status": "running", "provider": "
|
|
3840
|
+
"implementer": {"status": "running", "provider": "fake", "window": "implementer"}
|
|
3963
3841
|
}
|
|
3964
3842
|
}),
|
|
3965
3843
|
)
|