inspector_failure_projection.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/inspector_failure_projection.bend as Inspector_failure_projection
8 imports
import Base import ./change_tick.bend as Tick import ./event_runtime.bend as Ev import ./relation_commands.bend as A import ./relation_types.bend as G import ./relation_graph.bend as Graph import ./capabilities.bend as Cap import ./inspector_stream_frame.bend as F
Types
type Declaration source · line 12 · raw
@S:Data -> Data
Selects a relation failure projection by descriptor key. The descriptor must belong to the application schema; this raw declaration does not validate it.
Declaration@S:Data -> @relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> Declaration<S>
type FailureView source · line 16 · raw
@S:Data -> @E:Data -> Data
This declaration-scoped grant exposes selected failures and non-payload timing only. Shared Notice payloads and reader counts stay in the owner harness.
FailureView@S:Data -> @E:Data -> @relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @visible:List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>> -> @retained:List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>> -> @tick:Nat -> @boundary:Nat -> FailureView<S, E>
Templates
template selected source · line 18 · raw
@-S:Data -> @keep:Bool -> @failure:0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S> -> @rest:List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>>
template select_failure source · line 22 · raw
@-S:Data -> @+relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @+failure:0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S> -> @rest:List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>>
template select_notice source · line 25 · raw
@-S:Data -> @-E:Data -> @relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @notice:0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E> -> @rest:List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>>
template failures source · line 31 · raw
@-S:Data -> @-E:Data -> @+relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @notices:List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/relation_types.Failure<S>>
Extract relation failures matching the descriptor key, preserving notice order. Other notice variants are omitted; no payload owners or reader positions change.
template view source · line 37 · raw
@-S:Data -> @-E:Data -> @+relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @snapshot:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Snapshot<0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>> -> FailureView<S, E>
Project visible and retained failures separately from a detached snapshot. Preserve its tick and retention boundary; this does not acknowledge a reader.
template joined source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @cursor:Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/change_tick.Tick> -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/event_runtime.Runtime<S, C, R, 0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Snapshot<0x67fd5084c1da4adc13317822045bb11f/relation_commands.Notice<S, E>>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector_stream_frame.Frame<S, C, R, E>, FailureView<S, E>)
template read source · line 45 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @relation:0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S> -> @frame:0x67fd5084c1da4adc13317822045bb11f/inspector_stream_frame.Frame<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/inspector_stream_frame.Frame<S, C, R, E>, FailureView<S, E>)
Return the runtime frame with a detached failure view. Preserve the Inspector cursor and runtime reader positions; inspection does not drain retained notices.
template descriptor source · line 49 · raw
@-S:Data -> @declaration:Declaration<S> -> 0x67fd5084c1da4adc13317822045bb11f/relation_types.Descriptor<S>
Recover the descriptor carried by this declaration, without validation.
template inspect source · line 54 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:Declaration<S> -> 0x67fd5084c1da4adc13317822045bb11f/capabilities.ValueRead<0x67fd5084c1da4adc13317822045bb11f/inspector_stream_frame.Frame<S, C, R, E>, FailureView<S, E>>
Build the read capability for this declaration. It exposes only selected failures and timing metadata, returning the affine frame after inspection.