1b4f0ed203
将已有 HTML 项目测试夹具与 npm 项目初始化契约对齐 更新图片生成与角色提示词断言,移除已退役视觉门禁测试 按持久化请求快照恢复旧图片生成任务缺省参数 修正运行中生成任务查询的测试路由和响应夹具 同步技术方案与共享开发约定
112 lines
3.9 KiB
Rust
112 lines
3.9 KiB
Rust
use super::*;
|
|
|
|
mod action_history;
|
|
mod command_ops;
|
|
mod context;
|
|
mod delegation;
|
|
mod delivery;
|
|
mod file_ops;
|
|
mod goal_contract;
|
|
mod helpers;
|
|
mod isolated_joins;
|
|
mod media;
|
|
pub(in crate::agent) use media::design_foundation_ui_page_output_path_is_valid;
|
|
mod policy;
|
|
mod preview;
|
|
mod process_ops;
|
|
mod project_ops;
|
|
mod run_status;
|
|
mod task_ops;
|
|
mod ui_workflow;
|
|
|
|
pub(in crate::agent) use action_history::*;
|
|
pub(in crate::agent) use command_ops::*;
|
|
pub(in crate::agent) use context::*;
|
|
pub(in crate::agent) use delegation::*;
|
|
pub(in crate::agent) use delivery::*;
|
|
pub(in crate::agent) use file_ops::*;
|
|
pub(in crate::agent) use goal_contract::*;
|
|
pub(in crate::agent) use helpers::*;
|
|
pub(in crate::agent) use isolated_joins::*;
|
|
pub(in crate::agent) use media::*;
|
|
pub(in crate::agent) use policy::*;
|
|
pub(in crate::agent) use preview::*;
|
|
pub(in crate::agent) use process_ops::*;
|
|
pub(in crate::agent) use project_ops::*;
|
|
pub(in crate::agent) use run_status::*;
|
|
pub(in crate::agent) use task_ops::*;
|
|
pub(in crate::agent) use ui_workflow::*;
|
|
|
|
#[cfg(test)]
|
|
pub(crate) use delegation::observe_agent_runtime_agent_delegate_at_locked;
|
|
#[cfg(test)]
|
|
pub(crate) use delivery::{
|
|
build_static_delegate_result_for_child_at, wake_waiting_static_delegate_parent_run_for_test_at,
|
|
};
|
|
#[cfg(test)]
|
|
pub(crate) use media::validate_agent_runtime_canvas_replacement_authorization_at;
|
|
|
|
pub(crate) use action_history::{
|
|
is_valid_agent_runtime_action_id, observe_agent_runtime_action_history,
|
|
};
|
|
pub(crate) use command_ops::{
|
|
observe_agent_runtime_limited_command, observe_agent_runtime_project_verify,
|
|
};
|
|
pub(crate) use delegation::{
|
|
observe_agent_runtime_agent_delegate, observe_agent_runtime_agent_message,
|
|
observe_agent_runtime_agent_spawn_isolated,
|
|
};
|
|
pub(crate) use delivery::{
|
|
agent_runtime_delegation_id, dispatch_isolated_agent_join_at,
|
|
game_creator_agent_runtime_terminal_status, publish_game_creator_agent_delegate_result,
|
|
reconcile_game_creator_agent_delegate_receipts_at,
|
|
};
|
|
#[allow(unused_imports)]
|
|
pub(crate) use isolated_joins::{
|
|
mark_isolated_join_claim_observed_at, render_isolated_join_status_batch,
|
|
};
|
|
#[cfg(test)]
|
|
pub(crate) use media::observe_agent_runtime_platform_art_asset_generation_after_dispatch_for_test;
|
|
#[allow(unused_imports)]
|
|
pub(crate) use media::{
|
|
AGENT_RUNTIME_UI_PROTOTYPE_INSPECTION_KIND,
|
|
AGENT_RUNTIME_UI_PROTOTYPE_LEGACY_VALIDATION_PROFILE, AGENT_RUNTIME_UI_PROTOTYPE_PATH,
|
|
AGENT_RUNTIME_UI_PROTOTYPE_VALIDATION_PROFILE,
|
|
};
|
|
pub(crate) use policy::{
|
|
fail_closed_agent_runtime_confirmation_for_run,
|
|
game_creator_agent_runtime_tool_policy_block_after_lock,
|
|
game_creator_agent_runtime_tool_policy_rule_for_run,
|
|
};
|
|
pub(crate) use preview::{
|
|
observe_agent_runtime_preview_start, observe_agent_runtime_preview_validate,
|
|
};
|
|
#[allow(unused_imports)]
|
|
pub(crate) use project_ops::{
|
|
observe_agent_runtime_project_git_commit_locked_with_audit,
|
|
observe_agent_runtime_project_patchset_with_audit,
|
|
};
|
|
pub(crate) use run_status::observe_agent_runtime_run_status;
|
|
|
|
/// Validation tools are retained for compatibility with older provider turns,
|
|
/// but a relaxed autonomous game-build run must not let an accidental call
|
|
/// reintroduce the legacy verification/preview gates. Resolve the profile
|
|
/// from durable run metadata and report a terminal no-op observation before
|
|
/// any tool-specific parsing or side effects occur.
|
|
pub(crate) fn relaxed_autonomous_validation_skip_observation(
|
|
root: &Path,
|
|
agent_id: &str,
|
|
run_id: &str,
|
|
tool: &str,
|
|
) -> Option<AgentRuntimeToolObservation> {
|
|
autonomous_relaxed_run_at(root, agent_id, run_id)
|
|
.ok()
|
|
.filter(|relaxed| *relaxed)
|
|
.map(|_| AgentRuntimeToolObservation {
|
|
tool: tool.to_string(),
|
|
status: "ok".to_string(),
|
|
summary: format!("{tool} 在 relaxed autonomous lane 中跳过,未执行平台验证"),
|
|
detail: Some("relaxedAutonomous=true · skipped=true".to_string()),
|
|
})
|
|
}
|