pub struct SurfaceRenderResult {
pub text: String,
pub rendered_ids: Vec<String>,
pub rendered_entries: Vec<SurfaceEntry>,
pub omitted_ids: Vec<String>,
pub omissions: Vec<SurfaceOmission>,
pub token_count: usize,
pub critical_drops: Vec<String>,
}Expand description
The production surface render: the budget-selected subset plus honest
omission accounting (Wave 14F). rendered_ids are exactly the entries
the agent sees (ledger recording MUST use only these — omitted
candidates are never marked visible); omitted_ids are every candidate
the pipeline cut. omissions summarizes the cuts by kind.
Fields§
§text: StringThe rendered surface text (header + selected entry blocks).
rendered_ids: Vec<String>Entry ids actually rendered, in selection order.
rendered_entries: Vec<SurfaceEntry>The rendered entries themselves (post hard-max pops — exactly the
set rendered_ids names). Lets callers resolve rendered ids without
recompiling the surface map. Wire-compatible: skipped when empty.
omitted_ids: Vec<String>Candidate entry ids the pipeline omitted (budget/quotas/diversity).
omissions: Vec<SurfaceOmission>Per-kind omission summaries.
token_count: usizeToken estimate of text.
critical_drops: Vec<String>Required entries the hard-max invariant had to DROP after every compression level was exhausted (explicit CRITICAL omissions — the highest-ranked required entry is preserved whenever anything fits). Empty in every non-pathological render.
Trait Implementations§
Source§impl Clone for SurfaceRenderResult
impl Clone for SurfaceRenderResult
Source§impl Debug for SurfaceRenderResult
impl Debug for SurfaceRenderResult
Source§impl<'de> Deserialize<'de> for SurfaceRenderResult
impl<'de> Deserialize<'de> for SurfaceRenderResult
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 SurfaceRenderResult
impl JsonSchema for SurfaceRenderResult
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 more