class Crowbar::SessionItem

Overview

Serializable record representing a single generated mutant in a session lifecycle. Retains full provenance, seed coordinates, diff metrics, and reward state.

Included Modules

Defined in:

crowbar/session_item.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(iteration : Int32, size : Int32, diff_count : Int32, mutators : Array(String), steps : Array(TransformationStep), seed : UInt64, seek_offset : Int64, reward : Float64 | Nil = nil, file_path : String | Nil = nil, timestamp : Time = Time.utc) #

def self.new(pull : JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def diff_count : Int32 #

def diff_count=(diff_count : Int32) #

def file_path : String | Nil #

def file_path=(file_path : String | Nil) #

def iteration : Int32 #

def iteration=(iteration : Int32) #

def mutators : Array(String) #

def mutators=(mutators : Array(String)) #

def positive_reward? : Bool #

def reward : Float64 | Nil #

def reward=(reward : Float64 | Nil) #

def rewarded? : Bool #

def seed : UInt64 #

def seed=(seed : UInt64) #

def seek_offset : Int64 #

def seek_offset=(seek_offset : Int64) #

def size : Int32 #

def size=(size : Int32) #

def steps : Array(TransformationStep) #

def steps=(steps : Array(TransformationStep)) #

def timestamp : Time #

def timestamp=(timestamp : Time) #