修复原生壳门禁回归
Project CI / Repository checks (pull_request) Failing after 14s
Project CI / Backend tests (pull_request) Failing after 14s
Project CI / Frontend tests (pull_request) Successful in 3m9s
Project CI / Native shell tests (pull_request) Successful in 16m17s

避免首次修改门禁覆盖试玩失败修复与新版本复验规则

允许异步唤醒测试接受任务已自然结束的竞态结果
This commit is contained in:
2026-08-12 18:56:02 +08:00
parent ea7a6651be
commit 915981e431
2 changed files with 15 additions and 2 deletions
@@ -708,6 +708,13 @@ pub(crate) fn validate_agent_runtime_autonomous_plan_liveness(
if agent_id == GAME_CREATOR_PROJECT_SUPERVISOR_AGENT_ID
&& loop_index > AGENT_RUNTIME_AUTONOMOUS_PRE_MUTATION_LOOP_LIMIT
&& verification_gate.mutation_revision.is_none()
&& verification_gate.failed_playtest_revision.is_none()
&& verification_gate.verified_revision.is_none()
&& !observations.iter().any(|observation| {
observation.tool == "preview.validate"
&& observation.status == "failed"
&& observation.summary == "浏览器验证未通过,请根据诊断修复后重试"
})
&& !has_mutation
&& !has_code_asset_route
&& plan.response.trim().is_empty()
@@ -814,8 +814,14 @@ async fn game_chat_art_receipt_wakes_the_same_code_prototype_run() {
.expect("waiting main task exists");
let wake_started = wake_waiting_static_delegate_parent_run_at(&root, &waiting)
.expect("wake same main run after art receipt");
cancel_game_creator_agent_runtime_task_at(&root, "code-prototype", &main.run_id)
.expect("cancel resumed fixture run");
if let Err(error) =
cancel_game_creator_agent_runtime_task_at(&root, "code-prototype", &main.run_id)
{
assert!(
error.contains("Agent Runtime 任务已结束,不能取消"),
"cancel resumed fixture run: {error}"
);
}
let release_deadline = std::time::Instant::now() + std::time::Duration::from_secs(5);
loop {
if game_creator_agent_runtime_task_lock_is_available(&root, "code-prototype")