pub struct FunctionalSpec {
pub spec_version: String,
pub target: SpecTarget,
pub entities: Vec<Entity>,
pub operations: Vec<Operation>,
pub ui_states: Vec<IrState>,
pub navigation: Vec<IrTransition>,
pub auth: Option<AuthModel>,
pub assumptions: Vec<AssumptionEntry>,
}Expand description
The v0 Functional Spec. Five sections, each node confidence- and
provenance-tagged. Serializes as an A2A DataPart inside a worker’s
completion_reports.artifacts; it is the durable, fully re-derivable
hand-off artifact between conductor ticks (orchestration handoff contract §6).
Fields§
§spec_version: StringSchema version. Currently always "0". Additive-only until "1".
target: SpecTargetWhat was observed and when.
entities: Vec<Entity>Section (1) DOMAIN — entities + relationships inferred from rendered data shapes.
operations: Vec<Operation>Section (2) CAPABILITIES — operations the frontend exposes. Existence is high-confidence; server-side effect is low-confidence by construction.
ui_states: Vec<IrState>Section (3a) UI STATES — a literal superset of the UI Bridge IR. These are the
exact crate::ir::IrState values IrPageSpec.states carries.
Section (3b) NAVIGATION — the exact crate::ir::IrTransition values
IrPageSpec.transitions carries. Reused (not re-declared) so app-gen’s
emitted IR re-parses to the identical spec subset.
auth: Option<AuthModel>Section (4) AUTH / PERMISSION MODEL — from login flows + gated routes.
assumptions: Vec<AssumptionEntry>Section (5) ASSUMPTIONS LEDGER — every node with provenance Assumed, collated so
the operator can review/override the generator’s best-practice fills. For
v0 the override surface is a direct edit of this ledger (overridable).
Trait Implementations§
Source§impl Clone for FunctionalSpec
impl Clone for FunctionalSpec
Source§fn clone(&self) -> FunctionalSpec
fn clone(&self) -> FunctionalSpec
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 FunctionalSpec
impl Debug for FunctionalSpec
Source§impl<'de> Deserialize<'de> for FunctionalSpec
impl<'de> Deserialize<'de> for FunctionalSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for FunctionalSpec
impl JsonSchema for FunctionalSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for FunctionalSpec
impl PartialEq for FunctionalSpec
Source§fn eq(&self, other: &FunctionalSpec) -> bool
fn eq(&self, other: &FunctionalSpec) -> bool
self and other values to be equal, and is used by ==.