LabHarness class
Deeper swissarmyknife lab harness for notebooks and detector drills.
Surfaces cron-style epoch buckets, CodecPipeline bulk encoding, Memoized
feature extraction, RateLimiter, DateRange, structured Log capture,
and SafeJson walks — research plumbing only (no crypto secrets in logs).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
logCapture
→ List<
Map< String, dynamic> > -
In-memory structured log sink for notebook assertions (cleared on demand).
final
Static Methods
-
codecPipelineBulk(
List< String> domains) → List<Map< String, dynamic> > -
Bulk-encode domain labels through a multi-stage
CodecPipeline. -
cronEpochBucket(
DateTime date, {int rotationDays = 1}) → String - Cron-like bucket id for a wall clock (delegates to EpochBucket).
-
cronMatchesInRange(
String cronExpression, DateTime start, DateTime end, {int maxMatches = 366}) → List< DateTime> -
Parse a five-field cron and list matching instants in
start..end. -
dateRangeDayCount(
DateTime start, DateTime end) → int -
swissarmyknife
DateRangeinclusive day count for notebook schedule cells. -
disableLogCapture(
) → void - Stop appending to logCapture (hook remains installed).
-
enableLogCapture(
{bool clear = true}) → void -
Enable capturing
Loglines into logCapture (idempotent). -
epochBucketsInRange(
DateTime start, DateTime end, {int rotationDays = 1}) → List< String> -
Date-range coverage of epoch buckets between
startandendinclusive. -
logDgaResult(
DGAResult result, {String level = 'info'}) → void - Structured one-line log for a classical result (no secrets).
-
logEvent(
String event, {Map< String, dynamic> ? fields, String level = 'info'}) → void - Structured notebook event (analysis cell complete, detector hit, …).
-
logPqdgaResult(
PQDGAResult result, {String level = 'info'}) → void - Structured one-line log for a PQ result (never includes keys/ss).
-
memoizedEntropy(
String domain) → double -
rateLimiter(
{int maxPerWindow = 10, Duration window = const Duration(hours: 1)}) → RateLimiter - Sliding-window rate limiter (lab emit caps).
-
safeJsonDomainRows(
List< Map< pipelineRows) → List<String, dynamic> >Map< String, dynamic> > -
JSON-safe bulk export via
SafeJson(missing keys → defaults). -
toHex(
Uint8List bytes, {int maxBytes = 32}) → String - Pack arbitrary lab bytes as hex for notebook cells (not secrets).