Tier 1 Core Engine: Deterministic seed replay and crash regression verification runner
operating under a strict <= 60-second watchdog budget.
Constructors
new(name :
String = "
Corpus Regression Gate", seeds :
Array(
CorpusSeed) = [] of
CorpusSeed, deterministic_seeds :
Array(
UInt64) = [] of
UInt64, base_seed :
UInt64 = 42_u64, iterations :
Int32 = 0, mutations_per_seed :
Int32 = 0, rules :
Array(
Rule) = [] of
Rule, expected_errors :
Array(
Exception.class) = [] of
Exception.class, per_seed_timeout :
Time::Span =
DEFAULT_SEED_TIMEOUT, watchdog_budget :
Time::Span =
DEFAULT_WATCHDOG_BUDGET, watchdog_interval :
Time::Span =
DEFAULT_WATCHDOG_INTERVAL, auto_shrink :
Bool = true, fail_fast :
Bool = false, verify_determinism :
Bool = false, execution :
Proc(
Buffer,
Nil) |
Nil = nil)
SourceInstance methods
add_assertion(name :
String = "assertion_#{@assertions.size + 1}", &block :
Buffer ->
Nil) :
Nil Sourceadd_base64_seed(b64 :
String, id :
String |
Nil = nil, seed :
UInt64 |
Nil = nil, mutations :
Int32 = 0) :
CorpusSeed Registers a Base64-encoded crash reproducer or seed payload
Sourceadd_crash_record(record : Campaign::CrashRecord) : CorpusSeed
Imports a CrashRecord (minimized or full reproducer) from a Campaign run
Sourceadd_deterministic_seed(seed_val :
UInt64) :
Nil Registers an explicit PRNG seed for deterministic mutation replay across corpus baselines
SourceRegisters a hex-encoded crash reproducer or seed payload
Sourceadd_invariant(name :
String = "invariant_#{@invariants.size + 1}", &block :
Buffer ->
Bool) :
Nil SourceRegisters a deterministic (PRNG seed, baseline input) mutation replay pair
Sourceadd_rule(rule : Rule) : Nil
Sourceadd_scope(scope : Scope) : Nil
SourceRegisters a corpus seed or crash reproducer for deterministic replay
Sourceexecution=(execution :
Proc(
Buffer,
Nil) |
Nil)
SourceDeterministically loads corpus files from a directory (sorted lexicographically)
Sourceload_session(session :
Session) :
Int32 Loads corpus candidates and recorded session items from a persistent Crowbar::Session
Sourceon_heartbeat
Telemetry and lifecycle callbacks
SourceTelemetry and lifecycle callbacks
Sourceon_regression=(on_regression :
Proc(
SeedResult,
Nil) |
Nil)
Sourceon_seed_complete=(on_seed_complete :
Proc(
SeedResult,
Nil) |
Nil)
Sourcepattern=(pattern : Pattern)
Sourcerun
Executes the full corpus regression gate under the <= 60s watchdog budget
Sourcerun!
Executes the full corpus regression gate and raises RegressionError if not clean
Sourceverify_determinism=(verify_determinism :
Bool)
SourceEnforces the Inviolable 60-Second Watchdog Law (0 < budget <= 60s)
Source