d2254d1e8c
## 概要 - 抽取通用 `agent-runtime-orchestration` crate,承接多 Agent DAG 的构图校验、ready/wave、下游闭包和全量/返工选择。 - 保留 `platform-agent` 的游戏领域任务与语义路由,避免把 Runtime、Provider、ToolHost 和持久化职责下沉到公共编排层。 - 增加 `GraphProposal` / `TaskProposal` / `GraphEdge` / `GraphLimits`,允许宿主在执行中安全应用 LLM 提出的新增节点和边。 - 扩图采用候选图原子校验:未知 Agent/端点、重复边、自依赖、环及节点/边/深度/扇出预算都会拒绝,失败时原图保持不变;新增节点默认为 `Pending`。 ## 验证 - `npm run agent-runtime-orchestration:check`(15 项通过) - `cargo test --manifest-path server-rs/crates/platform-agent/Cargo.toml`(19 项通过) - `npm run agc:skill-pack:check` - `npm run check:encoding` - `git diff --check` 前端 typecheck 本轮未执行:当前工作树未安装 `node_modules/tsc`,命令会报 `tsc is not recognized`。 Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/207
20 lines
758 B
Rust
20 lines
758 B
Rust
//! Deterministic task-graph orchestration layered over `agent-runtime-core`.
|
|
//!
|
|
//! Hosts register task graphs at runtime. This crate validates the graph and
|
|
//! computes ready tasks, dependency waves and downstream repair impact without
|
|
//! owning persistence, threads, providers, tools or product-specific policy.
|
|
|
|
mod error;
|
|
mod graph;
|
|
mod plan;
|
|
mod proposal;
|
|
|
|
pub use error::{OrchestrationError, OrchestrationErrorKind};
|
|
pub use graph::{TaskGraph, TaskNode, TaskStatus};
|
|
pub use plan::{OrchestrationPlan, PlanSelection};
|
|
pub use proposal::{
|
|
AppliedGraphProposal, DEFAULT_GRAPH_MAX_DEPTH, DEFAULT_GRAPH_MAX_EDGES,
|
|
DEFAULT_GRAPH_MAX_OUT_DEGREE, DEFAULT_GRAPH_MAX_TASKS, GraphEdge, GraphExpansion, GraphLimits,
|
|
GraphProposal, TaskProposal,
|
|
};
|