RecordingCapabilityRegistry class

A recording CapabilityRegistry: host mounts a fake leaf that records START/STOP <capabilityId>(<sessionId>/<nodePath>) so a test asserts the inflation frontier AND the disjoint per-session routing; circuit resolves from circuits; now is a fixed clock.

Implemented types

Constructors

RecordingCapabilityRegistry({Map<String, Circuit> circuits = const {}, DateTime? clock, DateTime nowFn()?})
Creates the recorder over the injected circuits + fixed clock, or an ADVANCING nowFn (FT-1, tg-pez) that returns a fresh instant per now() call so a test can prove startedAt < finishedAt / a non-zero durationMs (use advancingClock). nowFn wins when both are supplied.

Properties

events List<String>
Leaf lifecycle in mount/unmount order — the observable proxy for spawn (START) / kill (STOP).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

circuit(String circuitId) Circuit?
Resolves a (sub-)circuit by circuitId; null when unknown (fail-closed — the predicate then never satisfies a dep on it, and the inflater skips it).
override
host(StepMount mount) → Seed
Builds the engine leaf Seed for the eligible mount.step — a CapabilityHost in the default registry (Track E), a recording fake in Track D tests. NEVER a Seed the author authored; the carrier is engine-private (ADR-0008 D2).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
now() DateTime
The wall clock the frontier predicate reads (the supervised-restart cooldown gate). Injectable so the predicate stays pure (the kernel owns the real clock + backoff timer — D-6/Track G).
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited