修正策划 Agent 请求断言与提示词契约
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m24s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m0s
Project CI / Backend tests (pull_request) Successful in 3m53s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 6m28s
Project CI / Frontend tests (pull_request) Successful in 1m55s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m24s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m0s
Project CI / Backend tests (pull_request) Successful in 3m53s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 6m28s
Project CI / Frontend tests (pull_request) Successful in 1m55s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
移除测试中对宿主运行和会话标识出现在请求正文的断言。 保留任务内容、修订漂移及运行态标识的行为验证。
This commit is contained in:
@@ -1011,7 +1011,6 @@ async fn background_agent_runtime_file_delete_confirmation_replans_after_stale_p
|
||||
let replanning_request = receiver
|
||||
.recv_timeout(Duration::from_secs(10))
|
||||
.expect("same-run replanning request after stale delete approval");
|
||||
assert!(replanning_request.contains("design-stale-delete-confirm-run"));
|
||||
assert!(replanning_request.contains("projectRevisionDrift=true"));
|
||||
assert!(replanning_request.contains("旧动作未执行"));
|
||||
|
||||
|
||||
@@ -5492,7 +5492,7 @@ async fn background_agent_runtime_repairs_malformed_tool_plan_in_same_run() {
|
||||
let initial_request = receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("initial tool plan request");
|
||||
assert!(initial_request.contains(run_id));
|
||||
assert!(initial_request.contains("验证 malformed 工具计划可在同一 run 自动修复"));
|
||||
assert!(!initial_request.contains("上一条输出不符合工具计划协议"));
|
||||
assert!(mock_http_request_json(&initial_request)["tools"]
|
||||
.as_array()
|
||||
@@ -5500,7 +5500,6 @@ async fn background_agent_runtime_repairs_malformed_tool_plan_in_same_run() {
|
||||
let repair_request = receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("tool plan repair request");
|
||||
assert!(repair_request.contains(run_id));
|
||||
assert!(repair_request.contains("\"role\":\"assistant\""));
|
||||
assert!(repair_request.contains("格式损坏"));
|
||||
assert!(repair_request.contains("上一条输出不符合工具计划协议"));
|
||||
|
||||
@@ -1957,7 +1957,7 @@ fn finalization_resume_discards_unpersisted_reply_after_revision_drift() {
|
||||
let request = receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("stale prepared finalization must replan");
|
||||
assert!(request.contains(run_id));
|
||||
assert!(request.contains("丢弃恢复时已经过期的 finalization"));
|
||||
let runtime = wait_for_agent_runtime_idle(&root, "design-director");
|
||||
assert_eq!(runtime.phase, "completed");
|
||||
assert_eq!(runtime.run_id, run_id);
|
||||
@@ -2651,11 +2651,11 @@ async fn background_finalization_replans_same_run_after_cross_agent_revision_dri
|
||||
let initial_plan_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("initial convergence plan request");
|
||||
assert!(initial_plan_request.contains(run_id));
|
||||
assert!(initial_plan_request.contains("在当前项目 revision 上验证后给出最终结论"));
|
||||
let stale_final_reply_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("blocked stale final reply request");
|
||||
assert!(stale_final_reply_request.contains(run_id));
|
||||
assert!(stale_final_reply_request.contains("在当前项目 revision 上验证后给出最终结论"));
|
||||
assert!(
|
||||
!game_creator_agent_runtime_task_lock_is_available(&root, "design-director")
|
||||
.expect("inspect lock while final reply is blocked"),
|
||||
@@ -2677,8 +2677,6 @@ async fn background_finalization_replans_same_run_after_cross_agent_revision_dri
|
||||
let replanned_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(30))
|
||||
.expect("same run replanning request");
|
||||
assert!(replanned_request.contains(run_id));
|
||||
assert!(replanned_request.contains(&session_id));
|
||||
assert!(replanned_request.contains("runtime.verification"));
|
||||
assert!(replanned_request.contains("currentRevision=2"));
|
||||
assert!(
|
||||
@@ -2689,13 +2687,12 @@ async fn background_finalization_replans_same_run_after_cross_agent_revision_dri
|
||||
let verified_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(10))
|
||||
.expect("request after current revision verification");
|
||||
assert!(verified_request.contains(run_id));
|
||||
assert!(verified_request.contains("project.verify"));
|
||||
assert!(verified_request.contains("AGENT_RUNTIME_CURRENT_REVISION_OK"));
|
||||
let current_final_reply_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(30))
|
||||
.expect("current final reply request");
|
||||
assert!(current_final_reply_request.contains(run_id));
|
||||
assert!(current_final_reply_request.contains("在当前项目 revision 上验证后给出最终结论"));
|
||||
|
||||
let runtime = wait_for_agent_runtime_idle(&root, "design-director");
|
||||
wait_for_provider_handoff_terminal_cleanup(&root, "design-director", run_id);
|
||||
@@ -2830,8 +2827,6 @@ async fn read_only_background_finalization_replans_when_reply_revision_becomes_s
|
||||
let replanned_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(30))
|
||||
.expect("read-only same-run replanning request");
|
||||
assert!(replanned_request.contains(run_id));
|
||||
assert!(replanned_request.contains(&session_id));
|
||||
assert!(replanned_request.contains("responseRevision=0"));
|
||||
assert!(replanned_request.contains("currentRevision=1"));
|
||||
let runtime = wait_for_agent_runtime_idle(&root, "design-director");
|
||||
@@ -3024,7 +3019,6 @@ async fn stale_finalization_context_survives_restart_before_same_run_replanning(
|
||||
let replanned_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("restart replanning request");
|
||||
assert!(replanned_request.contains(run_id));
|
||||
assert!(replanned_request.contains("currentRevision=2"));
|
||||
let verified_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(10))
|
||||
@@ -3033,7 +3027,7 @@ async fn stale_finalization_context_survives_restart_before_same_run_replanning(
|
||||
let final_reply_request = request_receiver
|
||||
.recv_timeout(Duration::from_secs(2))
|
||||
.expect("restart final reply request");
|
||||
assert!(final_reply_request.contains(run_id));
|
||||
assert!(final_reply_request.contains("重启后继续验证当前 revision"));
|
||||
|
||||
let runtime = read_game_creator_agent_runtime_at(&root, "design-director")
|
||||
.expect("read completed restart runtime")
|
||||
|
||||
Reference in New Issue
Block a user