Skip to content

Commit 5044a29

Browse files
authored
feat(whaleflow): add model role policy registry (#2830)
1 parent 79c0bd4 commit 5044a29

4 files changed

Lines changed: 506 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5353
executor now evaluates workflows from recorded leaf/control records, computes
5454
stable SHA-256 leaf input hashes, and marks missing records as
5555
`replay_diverged` instead of calling models again (#2673); the runtime replay
56-
command and live-provider replay fallback remain deferred.
56+
command and live-provider replay fallback remain deferred. The crate also now
57+
has a model-agnostic role/capability registry with mock provider plumbing and
58+
fail-closed JSON repair parsing, so WhaleFlow can choose capable models for
59+
roles without hardcoding provider-specific runtime paths (#2672).
5760
Thanks @AdityaVG13 for the WhaleFlow draft and cost-tracking direction.
5861
- Added a state-store v2 schema migration for WhaleFlow trace tables covering
5962
workflow, branch, leaf, control-node, and teacher-candidate runs. The

crates/tui/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5353
executor now evaluates workflows from recorded leaf/control records, computes
5454
stable SHA-256 leaf input hashes, and marks missing records as
5555
`replay_diverged` instead of calling models again (#2673); the runtime replay
56-
command and live-provider replay fallback remain deferred.
56+
command and live-provider replay fallback remain deferred. The crate also now
57+
has a model-agnostic role/capability registry with mock provider plumbing and
58+
fail-closed JSON repair parsing, so WhaleFlow can choose capable models for
59+
roles without hardcoding provider-specific runtime paths (#2672).
5760
Thanks @AdityaVG13 for the WhaleFlow draft and cost-tracking direction.
5861
- Added a state-store v2 schema migration for WhaleFlow trace tables covering
5962
workflow, branch, leaf, control-node, and teacher-candidate runs. The

crates/whaleflow/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//! exposure, worktree application, replay, and model execution are layered on
55
//! top only after their cancellation and evidence semantics are proven.
66
7+
mod model_policy;
78
mod replay;
89
#[cfg(not(target_env = "ohos"))]
910
mod starlark_authoring;
@@ -14,6 +15,7 @@ use std::path::Path;
1415
use serde::{Deserialize, Serialize};
1516
use thiserror::Error;
1617

18+
pub use model_policy::*;
1719
pub use replay::*;
1820
#[cfg(not(target_env = "ohos"))]
1921
pub use starlark_authoring::{

0 commit comments

Comments
 (0)