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+ fixedclock, or an ADVANCINGnowFn(FT-1, tg-pez) that returns a fresh instant pernow()call so a test can provestartedAt < finishedAt/ a non-zerodurationMs(use advancingClock).nowFnwins when both are supplied.
Properties
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— aCapabilityHostin 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