pub struct ResolvedConfig {Show 21 fields
pub bind: SocketAddr,
pub enable_enhance_flow: bool,
pub legacy_worker_binding_policy: LegacyWorkerBindingPolicy,
pub blueprint_ref_base: Option<PathBuf>,
pub blueprint_ref_includes: Vec<PathBuf>,
pub blueprint_strict_embed: bool,
pub git_store_path: PathBuf,
pub issue_store_path: Option<PathBuf>,
pub enhance_setting_store_path: Option<PathBuf>,
pub enhance_log_store_path: Option<PathBuf>,
pub output_store_path: Option<PathBuf>,
pub task_store_path: Option<PathBuf>,
pub run_store_path: Option<PathBuf>,
pub replay_store_path: Option<PathBuf>,
pub seed_blueprint_id: String,
pub default_agent_kind: Option<String>,
pub token_secret: Option<String>,
pub sync_timeout_secs: u64,
pub inject_endpoint_for_worker: bool,
pub long_hold_warn_ms: Option<u64>,
pub check_policy: CheckPolicy,
}Expand description
Fully resolved config — every field has the built-in default applied.
Fields§
§bind: SocketAddrParsed listen address for the server to bind to.
enable_enhance_flow: boolWhether the enhance flow (Lua + AgentBlock factories) is baked into the registry.
legacy_worker_binding_policy: LegacyWorkerBindingPolicyMigration gate for fresh Blueprint declarations.
blueprint_ref_base: Option<PathBuf>Base dir for $file / $agent_md ref expansion in seeded Blueprints.
blueprint_ref_includes: Vec<PathBuf>Merged include list (CLI --include first, then file
blueprint_ref_includes) — tier 4+5 of the include cascade.
Always set (may be empty).
blueprint_strict_embed: boolServer-side strict-embed switch (design table row 3). Always
set — defaults to false when neither CLI nor config file
provides one (backward-compat: the server runs the linker
itself). When true, POST /v1/blueprints/:id refuses raw
bodies that still carry $file / $agent_md refs.
git_store_path: PathBufRoot path for the git-backed BlueprintStore. Always set — defaults
to default_store_path (~/.mse/store) when neither CLI nor config
file provides one.
issue_store_path: Option<PathBuf>Path to the SQLite database file backing the IssueStore. None = fall
back to InMemoryIssueStore (process-volatile).
enhance_setting_store_path: Option<PathBuf>Path to the SQLite database file backing the EnhanceSettingStore.
None = InMemoryEnhanceSettingStore.
enhance_log_store_path: Option<PathBuf>Path to the SQLite database file backing the EnhanceLogStore.
None = InMemoryEnhanceLogStore.
output_store_path: Option<PathBuf>Path to the SQLite database file backing the OutputStore.
None = InMemoryOutputStore.
task_store_path: Option<PathBuf>Path to the SQLite database file backing the TaskStore.
None = InMemoryTaskStore.
run_store_path: Option<PathBuf>Path to the SQLite database file backing the RunStore.
None = InMemoryRunStore.
replay_store_path: Option<PathBuf>Path to the SQLite database file backing the ReplayStore.
None = InMemoryReplayStore.
seed_blueprint_id: StringSeed blueprint id used in combined-mode default routing.
default_agent_kind: Option<String>snake_case AgentKind literal, unvalidated. None = caller applies
the schema-impl Default (Operator).
token_secret: Option<String>Shared secret used to verify/sign CapToken HMAC signatures.
sync_timeout_secs: u64Ceiling (seconds) for the POST /v1/tasks synchronous launch await
(GH #33 Guard 2). Always set — defaults to 3600s / 60 min (see
default_sync_timeout_secs) when neither CLI nor config file
provides one. A per-request TaskLaunchRequest.timeout_secs
override, when present, takes priority over this server-wide value.
inject_endpoint_for_worker: boolOpt-in endpoint injection into worker-facing data (WS Spawn
directive base_url line / StepPointer.content_url absolute
prefix). Always set — defaults to false (never injected) when
neither CLI nor config file provides one. See
FileConfig::inject_endpoint_for_worker.
long_hold_warn_ms: Option<u64>Resolved LongHoldMiddleware threshold. None = the layer is
not installed. See FileConfig::long_hold_warn_ms.
check_policy: CheckPolicyServer-wide mlua_swarm::core::config::CheckPolicy. Always set
— defaults to CheckPolicy::Warn (byte-identical to the
pre-CheckPolicy fail-open behaviour) when neither CLI nor config
file provides one. Per-task TaskSpec.check_policy (set via
caller code — HTTP request per-launch override wiring is a
follow-up) takes priority over this server-wide value.
Trait Implementations§
Source§impl Clone for ResolvedConfig
impl Clone for ResolvedConfig
Source§fn clone(&self) -> ResolvedConfig
fn clone(&self) -> ResolvedConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedConfig
impl Debug for ResolvedConfig
Source§impl Default for ResolvedConfig
impl Default for ResolvedConfig
Source§impl PartialEq for ResolvedConfig
impl PartialEq for ResolvedConfig
impl StructuralPartialEq for ResolvedConfig
Auto Trait Implementations§
impl Freeze for ResolvedConfig
impl RefUnwindSafe for ResolvedConfig
impl Send for ResolvedConfig
impl Sync for ResolvedConfig
impl Unpin for ResolvedConfig
impl UnsafeUnpin for ResolvedConfig
impl UnwindSafe for ResolvedConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more