Package dev.dokimos.core.gate
Record Class BaselineFile
java.lang.Object
java.lang.Record
dev.dokimos.core.gate.BaselineFile
- Record Components:
formatVersion- the format version; readers reject a version newer than they supportexperiment- the experiment namedataset- dataset summary (advisory)pairing-"positional"or"dataset_item_id"runsPerItem- observations per item this file represents (v1: always 1)items- the per-item projections, sorted by keyprovenance- build/judge context, kept separate and excluded from the byte-stability guarantee
public record BaselineFile(int formatVersion, String experiment, BaselineFile.DatasetInfo dataset, String pairing, int runsPerItem, List<BaselineFile.BaselineItem> items, BaselineFile.Provenance provenance)
extends Record
The committed regression-gate baseline (format v1).
This is a stable projection of a run, not a serialized RunResult. It excludes
the model's actual outputs, each evaluator's prose reason, and call metrics — the comparison
engine reads none of them — so the file changes only when measured quality changes, keeping git
diffs minimal. It carries exactly what the comparison needs: a stable item key plus per-evaluator
score and verdict.
Determinism contract (enforced by BaselineStore): scores are rounded to 6 decimals
(matching the engine), evaluators are a list sorted by name, and items are sorted by key, so two
writes of the same run are byte-identical.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne item's projection.static final recordDataset summary metadata (advisory; never used for pairing).static final recordOne evaluator's recorded outcome for an item.static final recordJudge provenance (advisory).static final recordBuild/judge context, kept separate from the measured signal and excluded from the byte-stability guarantee. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe current supported format version. -
Constructor Summary
ConstructorsConstructorDescriptionBaselineFile(int formatVersion, String experiment, BaselineFile.DatasetInfo dataset, String pairing, int runsPerItem, List<BaselineFile.BaselineItem> items, BaselineFile.Provenance provenance) Creates an instance of aBaselineFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataset()Returns the value of thedatasetrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentrecord component.intReturns the value of theformatVersionrecord component.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.pairing()Returns the value of thepairingrecord component.Returns the value of theprovenancerecord component.intReturns the value of therunsPerItemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_VERSION
public static final int CURRENT_VERSIONThe current supported format version.- See Also:
-
-
Constructor Details
-
BaselineFile
public BaselineFile(int formatVersion, String experiment, BaselineFile.DatasetInfo dataset, String pairing, int runsPerItem, List<BaselineFile.BaselineItem> items, BaselineFile.Provenance provenance) Creates an instance of aBaselineFilerecord class.- Parameters:
formatVersion- the value for theformatVersionrecord componentexperiment- the value for theexperimentrecord componentdataset- the value for thedatasetrecord componentpairing- the value for thepairingrecord componentrunsPerItem- the value for therunsPerItemrecord componentitems- the value for theitemsrecord componentprovenance- the value for theprovenancerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
formatVersion
public int formatVersion()Returns the value of theformatVersionrecord component.- Returns:
- the value of the
formatVersionrecord component
-
experiment
Returns the value of theexperimentrecord component.- Returns:
- the value of the
experimentrecord component
-
dataset
Returns the value of thedatasetrecord component.- Returns:
- the value of the
datasetrecord component
-
pairing
Returns the value of thepairingrecord component.- Returns:
- the value of the
pairingrecord component
-
runsPerItem
public int runsPerItem()Returns the value of therunsPerItemrecord component.- Returns:
- the value of the
runsPerItemrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-