Skip to main content

Crate sim_lib_view_bridge

Crate sim_lib_view_bridge 

Source
Expand description

Reversible BRIDGE packet review surface for SIM Web.

This is the human seat on a BRIDGE conversation. It renders one BridgePacket (from sim-codec-bridge) as Scene data via bridge_packet_view and decodes ordinary intent/edit-field values back into typed BRIDGE collaboration parts via bridge_packet_edit. It is a view codec at the surface position, not a new protocol.

The point is symmetry: a human and an agent edit the same packet expression, and a patch, review, vote, or receipt a person makes (patch_edit_intent / review_edit_intent / vote_edit_intent / receipt_edit_intent) is the identical BRIDGE part record a model produces. So the merge policy in sim-lib-bridge cannot tell a human reviewer from a model reviewer – there is one shared object, not a browser copy beside a model copy. BridgePacketSurfaceCodec / BRIDGE_PACKET_SURFACE_CODEC_ID register the surface; packet_review_demo is the runnable cookbook seat.

Re-exports§

pub use cookbook::packet_review_demo;

Modules§

cookbook
Cookbook fixtures for the BRIDGE packet review surface.

Structs§

BridgePacketSurfaceCodec
Reversible surface codec for BRIDGE packet review.

Enums§

BridgeGlassesReviewInput
Glasses-local review inputs while a BRIDGE/FORGE warrant is focused.
WarrantReviewDecision
Standard warrant decision emitted by glasses review input.

Constants§

BRIDGE_PACKET_SURFACE_CODEC_ID
Stable id for the BRIDGE packet review surface codec.
BRIDGE_WARRANT_REVIEW_MISSION_NAME
Name used by the standard BRIDGE packet-review mission.
BRIDGE_WARRANT_REVIEW_MISSION_NAMESPACE
Namespace used by the standard BRIDGE packet-review mission.
VITURE_WARRANT_REVIEW_PANEL_ID
Stable id for the Viture spatial warrant-review panel.

Functions§

bridge_packet_edit
Decodes one edit intent against packet into a typed BRIDGE part record.
bridge_packet_view
Renders packet through the BRIDGE packet surface.
halo_warrant_glance_pager
Renders packet as a Halo scene/glance pager through the DEVICE_3 reducer.
patch_edit_intent
Builds a patch edit intent for the packet review surface.
receipt_edit_intent
Builds a receipt edit intent for the packet review surface.
review_edit_intent
Builds a review edit intent for the packet review surface.
viture_warrant_review_panel
Renders packet as the pinned Viture center-front review panel.
viture_warrant_review_scene
Renders packet as the Viture spatial scene containing the review panel.
vote_edit_intent
Builds a vote edit intent for the packet review surface.
warrant_review_intent
Builds the standard warrant decision Intent for packet.
warrant_review_intent_from_glasses_input
Converts a glasses-local review input into a standard warrant decision Intent.
warrant_review_mission
Returns the mission symbol used by BRIDGE/FORGE warrant decisions.