matrix

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 52 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package matrix owns a model-matrix run (itd-2610161733316518, spc-2610161949559050): one task done many times across a declared matrix of models from one frozen commit, judged the way the task allows, merged nowhere, and recorded exactly enough to be started again and its drift shown.

This first step holds the run's records and the seam a later move to another harness would replace only the scheduler behind:

  • the declaration (declaration.go): the person's matrix, decoded strictly, so a key nobody reads is refused rather than ignored;
  • the run record (run.go): the frozen commit, the binary's digest and version, the prompt and tool-definition hashes, the render template, the machine, the concurrency, the load cap and the spending cap, with every field the run could not pin listed as unpinned with oracle's reasons, never left out;
  • the trial record (trial.go): one copy, keyed by task, cell and repeat, carrying the runners' role receipts and the routes' receipts unchanged (itd-166's asked and served sides), never a parallel shape;
  • the export (export.go): the trial record mapped field by field onto a Harbor trial result and an Inspect eval sample, and back;
  • the copies (clone.go, cell.go, localserver.go; step 3): each copy made in its own clone of the frozen commit alone in the machine-scoped store, outside every working tree, with no local tier and no other copy's refs, under an alias minted at random, so nothing the copy can read of where it runs names its task, its cell or its route, and the record of which alias is which copy kept in the run's state in the lab; dispatched in the runners' cell mode, so a runner's failure is the cell's and nothing falls back; an outage before the copy began retried on the same pin and never scored; a clone bound for a provider passed through the launch bundle's scan first; and one local inference server at a time, as an owned process group. The build loop's trial mode (loop.Options.Trial) runs a copy's stages taking no reservation and landing nothing.
  • the code task's judging (hidden.go, compliance.go; step 4): the hidden tests kept read-only beside the copies and never in one, a copy refused whose clone holds one; and the compliance check every copy passes before it is ranked, reading the copy as data: a copy that edited the tests it was given or read another copy is excluded and named, one the check could not examine is unexamined and reported apart, and what no check can read (the network policy, a host copy's isolation) is recorded as asserted, not proven.
  • the writing task's judging (judging.go, verdict.go; step 6): the copies laid out for people in a packet the judging session is given, each judge's subset at most eight copies, in an order and under codes drawn for it, so that every pair of models meets in some subset, every document rendered as inert text through one template, and no cell, model, trial, run, task or path named, a copy's own text passed through the check copies' identity scrub first, so it cannot sign its work; the copy-to-model mapping kept in a key on the host's machine; and the session's verdict file read back as untrusted input against both, refused whole when any part fails, one ranking kept per judge identity, and the guests' and the host's self-blinded rankings set apart from the members'.

A run is a lab procedure (decision 4): its records live under the lab's state/matrix/ and reach it only through lab.Procedure, so a run obeys the lab's halts and never writes outside its own directory.

A reviewer model is blinded (review.go, udiff.go, reviewscore.go; step 5, adr-2610161733400551): it is handed one copy's normalised diff from the frozen tree, assembled through the reading surface's include table under an opaque label, and nothing else, never a commit, trailer, author, branch or record of the run; a hashed manifest the run keeps says what travelled and what was withheld. Each reviewer is scored on its own, never by vote, on copies whose truth is known: recall on the failing and the seeded-defect copies, the true-negative rate on the passing ones, its guess at each copy's author as the measured leak, and its verdicts on its own developer's copies reported apart.

A check task's copies are compared in two phases (checkcopy.go, checkmatch.go, checkjudge.go; step 7, decisions 22, 27 and 30). Each copy's findings are read as untrusted input into the run's record before its clone is deleted, a doc-fidelity verdict through the recorder's own decoder and never saved where the release gates read. A copy is never shown its task's or its cell's id: its clone, like every copy's, is made under its alias. Everything in the run that could identify it (its run, task, cell, route, runner and pins, and its alias) and every name of a model or its maker is withheld from the copy's own words wherever it stands, inside a longer word too, while a quote the frozen material holds is kept whole, and every position is computed from the frozen material; and the run proves, from a snapshot taken before the copy starts, that it left the doc-fidelity receipts, the review flags and the issue ledger as they were. Findings are matched into rows by exact key first (the consistency finding key, or the document, chapter and quoted sentence), then by overlapping lines, and a matcher model is shown only what neither joins, its agreement with a labelled sample reported. The person judges each row first, shuffled, with no model named and no proposed verdict; only once their verdicts are locked does the run show the outside judge's proposals and the overlap table, with each model's precision, unique valid findings, and recall on the seeded falsehoods and against the findings judged valid.

The package never writes to stdout: it returns results, and the front doors under internal/surface render them. Its entry points (parseDeclaration, newRunRecord, writeRun) are unexported until the front door that calls them lands (spec step 2): a core function arrives with its caller (internal/reachaudit). The exported types and their methods are the records those entry points take and return.

Index

Constants

View Source
const (
	MatchedByKey     = "key"
	MatchedByLines   = "lines"
	MatchedByMatcher = "matcher"
	MatchedAlone     = "alone"
)

How a row's findings were joined, the weakest join it holds.

View Source
const (
	MinPilot = 3
	MaxPilot = 5
)

The pilot's bounds (decision 8): three to five runs a cell estimate the spread the repeat count is then sized from.

View Source
const (
	OutcomeMade   = "made"
	OutcomeFailed = "failed"
)

The outcomes a copy receipt names.

View Source
const (
	ReviewRequestType  = "abcd.matrix.review-request"
	ReviewManifestType = "abcd.matrix.review-manifest"
	ReviewSchema       = 1
)

The request's and the manifest's type tags and shape version.

View Source
const (
	RunPromptSHA256          oracle.Field = "run.prompt_sha256"
	RunToolDefinitionsSHA256 oracle.Field = "run.tool_definitions_sha256"
	RunRenderTemplate        oracle.Field = "run.render_template"
	RunBinaryRevision        oracle.Field = "run.binary.revision"
	// The machine's processor model and memory need a per-OS exec to read,
	// so a run lists them rather than reading them.
	RunMachineCPU    oracle.Field = "run.machine.cpu_model"
	RunMachineMemory oracle.Field = "run.machine.memory"
)

The run-level fields a run lists when it cannot pin them. Their reasons are oracle's; a run adds fields, never reasons.

View Source
const (
	CapFromRun     = "run"
	CapFromMachine = "machine"
)

Where a run's spending cap came from (decision 17): the run's own declaration, which overrides the person's machine-wide configuration. A repository never sets a person's cap.

View Source
const (
	TrialScore oracle.Field = "trial.score"
	TrialCalls oracle.Field = "trial.calls"
	TrialTimes oracle.Field = "trial.times"
)

The fields of a trial, beside the fixed lists of a call's record, that a trial lists in Unpinned where only its maker reported them: its hidden tests' result (TrialScore), the receipts of its calls (TrialCalls) and its times (TrialTimes). A copy made in the host's harness lists the first as self-reported, the second as not reported, since the host hands back no call receipts, and the third as self-reported where the host gave them.

View Source
const CapKey = "matrix.spend_cap"

CapKey is the person's machine-wide spending cap for a matrix run with a metered cell (decision 17), read from ~/.abcd.noindex/config.json. A repository's .abcd/config.json may not set it: a committed file never sets anybody's spending.

View Source
const CheckCopySchema = 1

CheckCopySchema is a check copy's record's schema version.

View Source
const CheckJudgingSchema = 1

CheckJudgingSchema is the schema version of a check's packet, key, verdicts, proposals and table.

View Source
const DeclarationSchema = 1

DeclarationSchema is the declaration's schema version.

View Source
const HandOffSchema = 1

HandOffSchema is a copy hand-off's schema version.

View Source
const JudgingSchema = 1

JudgingSchema is the judging packet's and key's schema version.

View Source
const MaxConcurrency = 64

maxPaths bounds the paths one task names, and maxNameBytes its prose fields.

MaxConcurrency bounds the copies a run makes at once; the run's plan holds it to the machine (spec step 2).

View Source
const MaxDeclarationBytes = 256 << 10

MaxDeclarationBytes bounds a declaration, the bound the rules overlay holds its file to; a larger one is refused before it is parsed.

View Source
const MaxRepeats = 1000

MaxRepeats bounds the repeats a cell may be sized up to. The SOTA note's separations needed about 20–113 runs an arm; the bound sits well past that and refuses a typo that would plan a run no machine finishes.

View Source
const ReportSchema = 1

ReportSchema is the report's schema version.

View Source
const RunSchema = 1

RunSchema is the run record's schema version.

View Source
const TrialSchema = 1

TrialSchema is the trial record's schema version.

View Source
const VerdictSchema = 1

VerdictSchema is the verdict file's schema version.

Variables

View Source
var ErrNotACopyClone = errors.New("not a model-matrix copy's clone in the clone store")

ErrNotACopyClone is CopyClone's refusal of a directory that is not a copy's clone in the clone store.

View Source
var ErrNotConsented = errors.New("the run has no consent: show the person the plan, and start it only with the digest of the plan they said yes to")

ErrNotConsented is a run asked to start with no approval: nothing starts and nothing is written until the person has seen the plan and said yes to it (acceptance criterion 1).

View Source
var ErrWrittenInPart = errors.New("written in part")

ErrWrittenInPart marks a failure raised after the verb had already written something (a run's record, a copy's trial), so a front door never reports that nothing was written. errors.Is finds it; the error's text is unchanged.

Functions

func CloneStores

func CloneStores() string

CloneStores is the folder every repository's clone store sits in, as a person reads it: under the account's abcd home, spelled from the home directory.

func CopyClone

func CopyClone(home, dir, frozen, lanes string, fresh bool) error

CopyClone refuses dir unless it is a copy's clone of frozen in the clone store under home, the account's home directory: exactly cloneDir(cloneStore(home, <root-sha>), <run>, <alias>), each part of its own shape, holding what makeClone made (cloneHolds). Both the store and dir are read through their symbolic links, so a link into the store names the clone it leads to and a link out of it names where it leads. A store that does not stand holds no clone. lanes is the branch-name prefix of the branches the trial's own lanes cut in the clone, the only refs it may hold. fresh is set where the clone holds no trial yet, before any lane shares its object store, and only then is every object it holds judged.

func DrawWriting

func DrawWriting(repoRoot, home, labID, run, task, good, bad string, judges int) (JudgingPacket, JudgingKey, error)

DrawWriting draws writing task's judging from its made copies, once, and writes the packet and the key beside the run's record: every copy's text is read as the run kept it, its alias withheld with every other name that could sign it (the run's checkout, its clone store, the copy's clone, every task, cell, route and model, and every maker), and its sources are read from the frozen commit. good and bad are the calibration examples the person gives, and judges how many subsets to draw.

func KnownModel added in v0.17.0

func KnownModel(s string) bool

KnownModel reports whether s is a name OtherModel can compare: ASCII, with no control character, no longer than maxComparedModel, and naming exactly one model family of modelFamilies in its last segment after a slash or, where that segment names none or two, in the whole name (readModel). A space is a separator here, so `claude opus` is known; the loop keeps no name holding a space as a writer's or a reviewer's (its modelWritten), so for it such a name stays unknown.

func OtherModel added in v0.17.0

func OtherModel(writer, reviewer string) bool

OtherModel reports whether reviewer is shown to name a model other than writer: both names are known (KnownModel), and either their families differ, or the family is the same and both carry a version, the versions differ, and neither one's digits are a prefix of the other's. Every other pair, an unknown name on either side included, counts as the same model, so `opus-4` and `opus-4-6` are not told apart, nor `opus-5` and `opus-55`. It is symmetric, and OtherModel(s, s) is false for every s.

func RecordReviewAnswers

func RecordReviewAnswers(repoRoot, labID, run, task string, answers map[string]map[string][]byte) (int, error)

RecordReviewAnswers reads each host reviewer cell's answer about each label it was asked about (answers[reviewer][label]), each as untrusted input, and records the reviews, once, scored first: one answer that does not validate records nothing. An answer from a runner reviewer cell is refused, since the host never stands in for a runner.

func StartRerun

func StartRerun(repoRoot, labID, from, approve string, cores int, executable, version string, s Starter) (RunRecord, Plan, error)

StartRerun starts a re-run of the run from names, with approve as the person's consent to the plan PlanRerun showed them, as StartRun starts a run: the re-run's record is written, the first run's records are copied under it, and only then does s start it.

func StartRun

func StartRun(repoRoot, labID string, declaration []byte, approve string, cores int, executable, version string, s Starter) (RunRecord, Plan, error)

StartRun builds the plan again and starts the run with approve as the person's consent: the digest of the plan they were shown. The record pins the binary at executable and this machine; prompt, tool-definition and material hashes not yet produced are listed as unpinned.

Types

type Agreement

type Agreement struct {
	Units        int       `json:"units"`
	Alpha        *float64  `json:"alpha"`
	Interval     *Interval `json:"interval"`
	Percent      *float64  `json:"percent"`
	NotEstimable string    `json:"not_estimable,omitempty"`
}

Agreement is how far the judges agree on one kind of judgement: over the units two judges or more judged, Krippendorff's alpha for nominal values with its bootstrapped 95% interval (nil where too few resamples could be estimated), and the share of pairs of their judgements that agree. Where alpha cannot be estimated (no unit judged twice, or every judgement the same), Alpha is nil and NotEstimable says why.

type BTRating

type BTRating struct {
	Model         string    `json:"model"`
	Rating        float64   `json:"rating"`
	Interval      *Interval `json:"interval"`
	SeparableFrom []string  `json:"separable_from"`
	Separable     bool      `json:"separable"`
}

BTRating is one model's rating: the log of its Bradley–Terry strength, its bootstrapped 95% interval, and the models it is separable from (the interval of the two ratings' difference leaves out nought). A model separable from none is not separable.

type BinaryPin

type BinaryPin struct {
	SHA256   string `json:"sha256"`
	Version  string `json:"version"`
	Revision string `json:"revision"`
	Known    bool   `json:"known"`
}

BinaryPin is the abcd binary that drives a run: its sha256, the version it reports and its build vintage. Known is false for a binary whose vintage cannot be read or that was built from a modified tree.

type Calibration

type Calibration struct {
	Good JudgingDoc `json:"good"`
	Bad  JudgingDoc `json:"bad"`
}

Calibration is the good and the bad example a judge reads before ranking.

type Cell

type Cell struct {
	ID             string          `json:"id"`
	Route          string          `json:"route"`
	Settings       oracle.Settings `json:"settings,omitempty"`
	CostPerCopy    *Money          `json:"cost_per_copy,omitempty"`
	MinutesPerCopy *float64        `json:"minutes_per_copy,omitempty"`
}

Cell is one model route the matrix compares. Route is the per-invocation route override's text for the cell's role (decision 14): `<role>=runner:<name>[@<provider>/<model>]`, or `host`. Its grammar is parsed where the run starts (spec step 2), against the runner rung iss-2610161801358637 adds; here it is bounded text. Settings are the vendor's recommended sampling settings, pinned for the cell (decision 5).

CostPerCopy is the person's own expected cost of one copy on a metered cell (decision 36): the plan reckons the expected cost from it, and never fetches a price before consent (decision 12). MinutesPerCopy is the person's own estimate of one copy's time (decision 35): with one on every cell the plan shows a bound before the pilot; otherwise the time is known after it.

type CellCost

type CellCost struct {
	Unit       string   `json:"unit"`
	Total      float64  `json:"total"`
	PerPass    *float64 `json:"per_pass"`
	Comparable string   `json:"comparable"`
}

CellCost is a cell's spend in one unit: the total, the cost per passing (or good-enough) copy, nil where none passed or nothing metered was spent, and what the figure is comparable with.

type CellPin

type CellPin struct {
	Cell     string          `json:"cell"`
	Role     Role            `json:"role"`
	Source   Source          `json:"source"`
	Route    string          `json:"route"`
	Runner   string          `json:"runner"`
	Model    string          `json:"model"`
	Settings oracle.Settings `json:"settings"`
	// HarnessDefault names each sampling setting the cell cannot set, which
	// the harness's own default decides (decision 5), at HarnessVersion.
	HarnessDefault []string     `json:"harness_default"`
	HarnessVersion string       `json:"harness_version"`
	ProviderPin    *ProviderPin `json:"provider_pin"`
	LocalPin       *LocalPin    `json:"local_pin"`
}

CellPin is one cell as the run pinned it: the declared cell's route and settings, the source and runner it resolved to, the model, and the pin its source allows.

type CellReviews

type CellReviews struct {
	Confirmed   int `json:"confirmed"`
	Unconfirmed int `json:"unconfirmed"`
}

CellReviews is what the reviewers caught of one builder's copies: a flag on a copy its hidden tests failed is a confirmed finding, and a flag on one they passed is unconfirmed.

type CheckCopy

type CheckCopy struct {
	SchemaVersion int            `json:"schema_version"`
	Run           string         `json:"run"`
	Key           TrialKey       `json:"key"`
	Form          CheckForm      `json:"form"`
	Answered      bool           `json:"answered"`
	Reason        string         `json:"reason,omitempty"`
	Findings      []CheckFinding `json:"findings"`
	// Redacted counts the mentions withheld from its findings: of where the
	// copy ran, of what in the run identifies it, and of models and makers.
	Redacted int `json:"redacted"`
}

CheckCopy is one check copy as the run records it. A copy whose runner failed, or whose answer was refused, is unanswered: its cell's failure, with nothing of the answer kept.

type CheckFinding

type CheckFinding struct {
	Key      string       `json:"key"`
	Doc      string       `json:"doc,omitempty"`
	Class    string       `json:"class,omitempty"`
	Ends     []FindingEnd `json:"ends"`
	Evidence string       `json:"evidence"`
}

CheckFinding is one finding of a check copy. Key is its exact key, the one derivation (findingkey.Derive): for a consistency finding, the consistency finding key over its class and two ends; for a doc-fidelity finding, the same derivation over the document, the chapter and the quoted sentence.

type CheckForm

type CheckForm string

CheckForm is the shape a check copy answers in.

const (
	// CheckDocFidelity is the doc-fidelity review's verdict, as `docs
	// fidelity record` reads it.
	CheckDocFidelity CheckForm = "doc-fidelity"
	// CheckConsistency is the consistency pass's findings: each a class and
	// the two ends it sets against each other.
	CheckConsistency CheckForm = "consistency"
)

type CheckItem

type CheckItem struct {
	Code     string         `json:"code"`
	Doc      string         `json:"doc,omitempty"`
	Class    string         `json:"class,omitempty"`
	Ends     []CheckItemEnd `json:"ends"`
	Evidence string         `json:"evidence"`
}

CheckItem is one distinct finding, under its code.

type CheckItemEnd

type CheckItemEnd struct {
	Document string    `json:"document"`
	Lines    *LineSpan `json:"lines"`
	Quote    string    `json:"quote"`
}

CheckItemEnd is one end of a finding as a person is shown it: the document's file name, its lines in the frozen material, and the quote.

type CheckKey

type CheckKey struct {
	SchemaVersion int           `json:"schema_version"`
	Run           string        `json:"run"`
	Task          string        `json:"task"`
	Packet        string        `json:"packet"`
	Copies        []TrialKey    `json:"copies"`
	Rows          []CheckKeyRow `json:"rows"`
}

CheckKey is what the packet's codes stand for, kept on the host's machine: the run and task, the packet's digest, every copy compared, and each code's row in the packet's order.

type CheckKeyRow

type CheckKeyRow struct {
	Code string   `json:"code"`
	Row  CheckRow `json:"row"`
}

CheckKeyRow is one code's row.

type CheckMember

type CheckMember struct {
	Copy    TrialKey `json:"copy"`
	Finding int      `json:"finding"`
}

CheckMember is one copy's finding in a row.

type CheckModelScore

type CheckModelScore struct {
	Cell            string `json:"cell"`
	Copies          int    `json:"copies"`
	Unanswered      int    `json:"unanswered"`
	Precision       Rate   `json:"precision"`
	UniqueValid     int    `json:"unique_valid"`
	UniqueUncounted int    `json:"unique_uncounted"`
	RecallSeeded    Rate   `json:"recall_seeded"`
	RecallValid     Rate   `json:"recall_valid"`
}

CheckModelScore is one cell's column. Precision is over the distinct findings each answered copy raised; RecallValid is against the findings the person judged valid, so it is recall relative to what the copies found together, never true recall; RecallSeeded is on the falsehoods seeded into the frozen material, over each answered copy. A valid finding only this cell raised is UniqueValid where the cell answered in two copies or more, and UniqueUncounted where it answered once, since one copy's find may be noise.

type CheckOverlap

type CheckOverlap struct {
	A      string `json:"a"`
	B      string `json:"b"`
	Both   int    `json:"both"`
	Either int    `json:"either"`
}

CheckOverlap is how much two cells' findings overlap: the distinct findings both raised, of those either raised.

type CheckPacket

type CheckPacket struct {
	SchemaVersion int         `json:"schema_version"`
	Items         []CheckItem `json:"items"`
}

CheckPacket is the first phase: every distinct finding, shuffled.

type CheckProposal

type CheckProposal struct {
	Code   string `json:"code"`
	Valid  bool   `json:"valid"`
	Reason string `json:"reason"`
}

CheckProposal is the outside judge's proposed verdict on one finding.

type CheckProposalFile

type CheckProposalFile struct {
	SchemaVersion int             `json:"schema_version"`
	Packet        string          `json:"packet"`
	Proposed      []CheckProposal `json:"proposed"`
}

CheckProposalFile is the outside judge's proposals: a model outside the matrix, shown the same packet the person is.

type CheckReport

type CheckReport struct {
	Task  string      `json:"task"`
	Table *CheckTable `json:"table"`
}

CheckReport is a check task's rows: its second phase, nil until the person's verdicts are locked and the table recorded.

type CheckRow

type CheckRow struct {
	Members   []CheckMember `json:"members"`
	MatchedBy string        `json:"matched_by"`
}

CheckRow is one distinct finding: every copy's finding joined to it, and the weakest join it holds.

type CheckTable

type CheckTable struct {
	SchemaVersion int               `json:"schema_version"`
	Run           string            `json:"run"`
	Task          string            `json:"task"`
	Cells         []string          `json:"cells"`
	Rows          []CheckTableRow   `json:"rows"`
	Scores        []CheckModelScore `json:"scores"`
	Overlap       []CheckOverlap    `json:"overlap"`
	Seeded        int               `json:"seeded"`
	Matcher       *MatcherAgreement `json:"matcher"`
}

CheckTable is the second phase.

type CheckTableRow

type CheckTableRow struct {
	Code      string       `json:"code"`
	Doc       string       `json:"doc,omitempty"`
	Class     string       `json:"class,omitempty"`
	Ends      []FindingEnd `json:"ends"`
	MatchedBy string       `json:"matched_by"`
	// Valid is the person's locked verdict, and Proposed the outside
	// judge's, nil where none was given.
	Valid    bool           `json:"valid"`
	Proposed *CheckProposal `json:"proposed"`
	// RaisedBy is how many of each cell's copies raised the finding, and
	// OnlyModel the cell, where one cell alone raised it.
	RaisedBy  map[string]int `json:"raised_by"`
	OnlyModel string         `json:"only_model"`
}

CheckTableRow is one distinct finding of the second phase.

type CheckVerdict

type CheckVerdict struct {
	Code  string `json:"code"`
	Valid bool   `json:"valid"`
}

CheckVerdict is the person's verdict on one finding: valid or not.

type CheckVerdictFile

type CheckVerdictFile struct {
	SchemaVersion int            `json:"schema_version"`
	Packet        string         `json:"packet"`
	Locked        bool           `json:"locked"`
	Verdicts      []CheckVerdict `json:"verdicts"`
}

CheckVerdictFile is what the judging session hands the run once the person has locked their verdicts.

type CodeCell

type CodeCell struct {
	Cell   string `json:"cell"`
	Model  string `json:"model"`
	Source Source `json:"source"`
	Runner string `json:"runner"`
	// PassAt1 counts the passes and the failures; a copy never started, or
	// one set apart by the compliance check, is in neither.
	PassAt1 PassRate `json:"pass_at_1"`
	// HostReported counts the attempts in PassAt1 whose hidden tests' result
	// is the host's report, which abcd neither placed nor ran.
	HostReported int       `json:"host_reported"`
	PassHatK     []PassHat `json:"pass_hat_k"`
	NotStarted   int       `json:"not_started"`
	Excluded     int       `json:"excluded"`
	Unexamined   int       `json:"unexamined"`
	// NotHandedBack, AwaitingRunner, Refused and NeverHandedOff count the
	// copies with no trial, by where they stand; none is in any rate.
	NotHandedBack  int         `json:"not_handed_back"`
	AwaitingRunner int         `json:"awaiting_runner"`
	Refused        int         `json:"refused"`
	NeverHandedOff int         `json:"never_handed_off"`
	Reviews        CellReviews `json:"reviews"`
	Costs          []CellCost  `json:"costs"`
	// ModelTimeMS and GateWaitMS are each the mean over the attempts: the
	// time the models spent, and apart from it the time spent waiting on
	// gates.
	ModelTimeMS int64 `json:"model_time_ms"`
	GateWaitMS  int64 `json:"gate_wait_ms"`
}

CodeCell is one builder cell's row of a code task.

type CodeReport

type CodeReport struct {
	Task        string          `json:"task"`
	Intent      string          `json:"intent"`
	Cells       []CodeCell      `json:"cells"`
	Comparisons []Comparison    `json:"comparisons"`
	Reviewers   []ReviewerScore `json:"reviewers"`
}

CodeReport is a code task's rows.

type Comparison

type Comparison struct {
	A string `json:"a"`
	B string `json:"b"`
	// Kind is "model" within one source and "model and harness" across
	// sources, since model and harness travel together by source (decision
	// 10).
	Kind       string   `json:"kind"`
	Difference *float64 `json:"difference"`
	RepeatsA   int      `json:"repeats_a"`
	RepeatsB   int      `json:"repeats_b"`
	// MinDetectable is the smallest difference the repeats could have
	// detected; Needed the repeats each cell needs to detect the declared
	// smallest difference, nought where none was declared.
	MinDetectable float64 `json:"min_detectable"`
	Needed        int     `json:"needed"`
	Ranked        bool    `json:"ranked"`
	// HostReported is whether either cell's pass rate rests on hidden
	// tests' results the host reported; its Note then says so, so no
	// ranking on them is shown unqualified.
	HostReported bool `json:"host_reported"`
	// Ahead is the cell whose pass rate is ahead where the comparison is
	// ranked and the difference is past chance; "" otherwise.
	Ahead string `json:"ahead"`
	Note  string `json:"note"`
}

Comparison is two builder cells' pass rates set against each other.

type Compliance

type Compliance struct {
	Checks []ComplianceCheck `json:"checks"`
}

Compliance is one copy's compliance result: every rule, in order.

type ComplianceCheck

type ComplianceCheck struct {
	Rule   ComplianceRule  `json:"rule"`
	State  ComplianceState `json:"state"`
	Detail string          `json:"detail"`
}

ComplianceCheck is one rule's outcome and abcd's account of it: one line of plain text naming paths in the copy's tree, never where anything sits on this machine.

type ComplianceRule

type ComplianceRule string

ComplianceRule is a rule of the run a copy is checked against.

const (
	// RuleTestsKept: the copy edited no test file the frozen commit holds (it
	// changed none, deleted none and replaced none with a link). Adding tests
	// of its own is no breach.
	RuleTestsKept ComplianceRule = "tests_kept"
	// RuleOwnCopyOnly: the copy read nothing in the run's clone store outside
	// its own clone, so no other copy and none of the hidden tests, as its
	// transcript and the links its clone holds show. The hidden tests and
	// the other clones sit beside the copy under one account, so their modes
	// do not bar it from them: the rule is a heuristic scan for the reads a
	// transcript records, not a barrier (ownCopyOnly).
	RuleOwnCopyOnly ComplianceRule = "own_copy_only"
	// RuleNetworkPolicy: the copy kept the run's network policy. No runner
	// reports what a copy reached on the network, so this is asserted for
	// every copy.
	RuleNetworkPolicy ComplianceRule = "network_policy"
	// RuleIsolation: the copy worked in its own clone. A runner's copy is
	// launched there by abcd; a host copy runs in the host's harness, which
	// abcd neither launches in the clone nor confines to it, so its isolation
	// is asserted, not proven.
	RuleIsolation ComplianceRule = "isolation"
)

type ComplianceState

type ComplianceState string

ComplianceState is how a rule came out for one copy.

const (
	// StateKept: the check examined the rule and the copy kept it.
	StateKept ComplianceState = "kept"
	// StateBroken: the check examined the rule and the copy broke it, which
	// excludes the copy.
	StateBroken ComplianceState = "broken"
	// StateUnexamined: the check could not examine the rule for this copy,
	// which sets the copy apart as unexamined.
	StateUnexamined ComplianceState = "unexamined"
	// StateAsserted: nothing the check can read shows the rule either way;
	// the copy is ranked on the run's word, and the report lists it among
	// the run's limitations.
	StateAsserted ComplianceState = "asserted"
)

type ConsentInputs

type ConsentInputs struct {
	RunID                 string
	RootSHA               string
	Binary                BinaryPin
	Declaration           []byte
	PromptSHA256          map[string]string
	ToolDefinitionsSHA256 map[string]string
	RenderTemplate        *ContentRef
	HiddenTests           []ContentRef
	SeededMaterial        []ContentRef
	Machine               Machine
}

ConsentInputs is what a consented run's record is written from, beside the plan: the run's id, the repository's root commit, the work binary, the declaration's bytes and the hashes and machine the record names.

type ContentRef

type ContentRef struct {
	Name   string `json:"name"`
	SHA256 string `json:"sha256"`
	Bytes  int64  `json:"bytes"`
}

ContentRef is an artefact a run keeps by content (decision 4: the hidden tests, the seeded material and the render template), named and hashed.

type Copies

type Copies struct {
	PilotTotal int            `json:"pilot_total"`
	MaxTotal   int            `json:"max_total"`
	MaxByCell  map[string]int `json:"max_by_cell"`
}

Copies is how many copies the run makes: every cell does every task, the pilot's repeats first, and the run is sized up to at most Max repeats (decision 8). The person consents to the most.

type CopyBack

type CopyBack struct {
	Receipt    []byte
	Transcript []byte
	Answer     []byte
	Form       CheckForm
}

CopyBack is one copy handed back: the host's receipt, the copy's transcript as its harness wrote it (nil where none), and, for a writing or a check copy, its answer and, for a check, the form it is in.

type CopyLength

type CopyLength struct {
	Key       TrialKey `json:"key"`
	Words     int      `json:"words"`
	MeanPlace float64  `json:"mean_place"`
}

CopyLength is one copy's length beside its place: the mean of the places the members ranked it at, counted from one, since length sways people more than any other style signal (decision 21).

type CopyReceipt

type CopyReceipt struct {
	SchemaVersion  int       `json:"schema_version"`
	Outcome        string    `json:"outcome"`
	Reason         string    `json:"reason,omitempty"`
	HarnessVersion string    `json:"harness_version,omitempty"`
	ModelServed    string    `json:"model_served,omitempty"`
	StartedAt      time.Time `json:"started_at,omitzero"`
	FinishedAt     time.Time `json:"finished_at,omitzero"`
	ModelTimeMS    int64     `json:"model_time_ms,omitempty"`
	GateWaitMS     int64     `json:"gate_wait_ms,omitempty"`
	Score          *Score    `json:"score,omitempty"`
}

CopyReceipt is the host's account of a copy it made, read as untrusted input: what came of it, why where it failed, its harness and served model where the host knows them, its times, and, for a code copy, the result of its hidden tests as the host ran them.

type CopyTruth

type CopyTruth string

CopyTruth is what is known of a reviewed copy before any reviewer sees it.

const (
	// TruthPassing: the hidden tests pass the copy, so it is known good.
	TruthPassing CopyTruth = "passing"
	// TruthFailing: the hidden tests fail the copy.
	TruthFailing CopyTruth = "failing"
	// TruthSeeded: a defect was seeded into the copy on purpose.
	TruthSeeded CopyTruth = "seeded"
)

type Declaration

type Declaration struct {
	SchemaVersion int    `json:"schema_version"`
	Name          string `json:"name"`
	Tasks         []Task `json:"tasks"`
	Builders      []Cell `json:"builders"`
	Reviewers     []Cell `json:"reviewers,omitempty"`
	// Repeats is the pilot and the most each cell may be sized up to; the
	// person consents to the most (spec step 2).
	Repeats Repeats `json:"repeats"`
	// SpendCap is the run's own spending cap, nil when the declaration names
	// none; a run with a metered cell needs one from here or the person's own
	// configuration (decision 17), never a default abcd supplies.
	SpendCap *Money `json:"spend_cap,omitempty"`
	// LoadCap is the cores the run's local cells may load (decision 12). A
	// declaration may leave it out; the run record asks for it when a cell
	// runs locally.
	LoadCap     *int    `json:"load_cap,omitempty"`
	Concurrency int     `json:"concurrency"`
	Judging     Judging `json:"judging"`
}

Declaration is the person's matrix.

type Drift

type Drift struct {
	// Of is the run the re-run repeats.
	Of string `json:"of"`
	// Fields are the fields that drifted, in order, each with both values as
	// JSON ("absent" where one side has no such field).
	Fields []DriftField `json:"fields"`
	// More counts the drifted fields past those listed.
	More int `json:"more"`
	// Same counts the fields that stayed the same.
	Same int `json:"same"`
}

Drift is where a re-run drifted from the run it repeats: every field of the two runs' records and of their copies' trials, compared one by one.

type DriftField

type DriftField struct {
	Field string `json:"field"`
	First string `json:"first"`
	Now   string `json:"now"`
}

DriftField is one field that drifted.

type Estimate

type Estimate struct {
	BoundMinutes *float64 `json:"bound_minutes,omitempty"`
	Note         string   `json:"note"`
}

Estimate is the run's time: a bound when every cell declares its minutes per copy, otherwise known after the pilot (decision 35).

type FindingEnd

type FindingEnd struct {
	Path  string    `json:"path"`
	Quote string    `json:"quote"`
	Lines *LineSpan `json:"lines"`
}

FindingEnd is one end of a finding: the repository-relative path of the document, the quote collapsed to one line, and where the frozen material holds it, nil where it does not.

type GoodEnoughRow

type GoodEnoughRow struct {
	Cell        string     `json:"cell"`
	Good        int        `json:"good"`
	Of          int        `json:"of"`
	GoodCopies  int        `json:"good_copies"`
	Costs       []CellCost `json:"costs"`
	ModelTimeMS int64      `json:"model_time_ms"`
}

GoodEnoughRow is one model's good-enough marks among the members, its copies the members found good enough (more than half of their marks), and its cost per good-enough copy.

type GuessScore

type GuessScore struct {
	Asked               int  `json:"asked"`
	Guessed             int  `json:"guessed"`
	Model               Rate `json:"model"`
	ModelUnscorable     int  `json:"model_unscorable"`
	Developer           Rate `json:"developer"`
	DeveloperUnscorable int  `json:"developer_unscorable"`
}

GuessScore is the author guess as the measured leak: of the verdicts given, how many guessed, and of those, how many named the builder's model and how many its developer. A guess on a copy whose builder's name cannot be read, or names no version, can never name the model, and one whose builder's developer cannot be read can never name the developer: each is kept out of that rate, so it cannot understate the leak, and counted apart.

type HandOff

type HandOff struct {
	SchemaVersion int          `json:"schema_version"`
	Run           string       `json:"run"`
	Key           TrialKey     `json:"key"`
	Kind          TaskKind     `json:"kind"`
	Source        Source       `json:"source"`
	State         HandOffState `json:"state"`
	// Clone is the copy's clone, an absolute path; empty for a refused cell.
	Clone  string `json:"clone,omitempty"`
	Brief  string `json:"brief"`
	Reason string `json:"reason,omitempty"`
	// Gates is what the release gates read, snapshotted before a check copy
	// starts, so its collection can prove them unchanged. It is always
	// written: a snapshot of a repository with nothing under the gates' roots
	// is {} and still a snapshot, and only a code or writing copy's is null.
	Gates gateSnapshot `json:"gates"`
}

HandOff is one copy's hand-off as the run's state records it. It is the host's to read and never the copy's: it names the copy's key. Brief is what the copy is asked, and it names no task id, cell, route or model.

func ReadHandOff

func ReadHandOff(repoRoot, labID, run string, key TrialKey) (HandOff, error)

ReadHandOff is copy key's hand-off in run, from the lab labID.

type HandOffState

type HandOffState string

HandOffState is where a copy stands between its clone and its trial.

const (
	// HandOffWaiting: a host cell's copy, its clone made; the host makes the
	// copy there and hands it back.
	HandOffWaiting HandOffState = "handed_off"
	// HandOffAwaitingRunner: a runner cell's copy, its clone made and, for a
	// provider, scanned; nothing launches its runner yet, and the host never
	// stands in for it.
	HandOffAwaitingRunner HandOffState = "awaiting_runner"
	// HandOffRefused: the cell's clone failed the launch bundle's secret scan,
	// so the copy is never sent to its provider; its clone is removed.
	HandOffRefused HandOffState = "refused"
)

type HarborAgentConfig

type HarborAgentConfig struct {
	ModelName string `json:"model_name,omitempty"`
}

HarborAgentConfig is a trial config's agent: the model asked for.

type HarborAgentContext

type HarborAgentContext struct {
	NInputTokens  int                        `json:"n_input_tokens"`
	NCacheTokens  int                        `json:"n_cache_tokens"`
	NOutputTokens int                        `json:"n_output_tokens"`
	CostUSD       *float64                   `json:"cost_usd,omitempty"`
	Metadata      map[string]json.RawMessage `json:"metadata,omitempty"`
}

HarborAgentContext is Harbor's AgentContext: the token counts, the cost and the free-form metadata abcd's own fields ride in.

type HarborAgentInfo

type HarborAgentInfo struct {
	Name      string           `json:"name"`
	Version   string           `json:"version"`
	ModelInfo *HarborModelInfo `json:"model_info,omitempty"`
}

HarborAgentInfo is Harbor's AgentInfo.

type HarborExceptionInfo

type HarborExceptionInfo struct {
	ExceptionType      string    `json:"exception_type"`
	ExceptionMessage   string    `json:"exception_message"`
	ExceptionTraceback string    `json:"exception_traceback"`
	OccurredAt         time.Time `json:"occurred_at"`
}

HarborExceptionInfo is Harbor's ExceptionInfo.

type HarborModelInfo

type HarborModelInfo struct {
	Name     string `json:"name"`
	Provider string `json:"provider,omitempty"`
}

HarborModelInfo is an agent's model.

type HarborTaskConfig

type HarborTaskConfig struct {
	Path string `json:"path"`
}

HarborTaskConfig is a trial config's task.

type HarborTaskID

type HarborTaskID struct {
	Path string `json:"path"`
}

HarborTaskID is Harbor's LocalTaskId.

type HarborTrialConfig

type HarborTrialConfig struct {
	Task  HarborTaskConfig   `json:"task"`
	Agent *HarborAgentConfig `json:"agent,omitempty"`
}

HarborTrialConfig is Harbor's TrialConfig, the members abcd writes.

type HarborTrialResult

type HarborTrialResult struct {
	TaskName       string                `json:"task_name"`
	TrialName      string                `json:"trial_name"`
	TrialURI       string                `json:"trial_uri"`
	TaskID         HarborTaskID          `json:"task_id"`
	TaskChecksum   string                `json:"task_checksum"`
	Config         HarborTrialConfig     `json:"config"`
	AgentInfo      HarborAgentInfo       `json:"agent_info"`
	AgentResult    *HarborAgentContext   `json:"agent_result,omitempty"`
	VerifierResult *HarborVerifierResult `json:"verifier_result,omitempty"`
	ExceptionInfo  *HarborExceptionInfo  `json:"exception_info,omitempty"`
	StartedAt      *time.Time            `json:"started_at,omitempty"`
	FinishedAt     *time.Time            `json:"finished_at,omitempty"`
}

HarborTrialResult is Harbor's TrialResult, the members abcd writes.

func (HarborTrialResult) Trial

func (h HarborTrialResult) Trial() (TrialRecord, error)

Trial reads a trial record back from a Harbor trial result abcd wrote.

type HarborVerifierResult

type HarborVerifierResult struct {
	Rewards map[string]float64 `json:"rewards"`
}

HarborVerifierResult is Harbor's VerifierResult.

type InspectEvalError

type InspectEvalError struct {
	Message       string `json:"message"`
	Traceback     string `json:"traceback"`
	TracebackANSI string `json:"traceback_ansi"`
}

InspectEvalError is Inspect's EvalError.

type InspectModelFallback

type InspectModelFallback struct {
	Model         string `json:"model"`
	FallbackModel string `json:"fallback_model"`
	Count         int    `json:"count"`
}

InspectModelFallback is Inspect's ModelFallback: the model requested and the one that served instead.

type InspectModelOutput

type InspectModelOutput struct {
	Model      string `json:"model"`
	Completion string `json:"completion"`
}

InspectModelOutput is Inspect's ModelOutput, the members abcd writes: the model that generated, and no completion text (a trial records hashes, never a model's text).

type InspectModelUsage

type InspectModelUsage struct {
	InputTokens           int      `json:"input_tokens"`
	OutputTokens          int      `json:"output_tokens"`
	TotalTokens           int      `json:"total_tokens"`
	InputTokensCacheWrite int      `json:"input_tokens_cache_write"`
	InputTokensCacheRead  int      `json:"input_tokens_cache_read"`
	ReasoningTokens       int      `json:"reasoning_tokens"`
	TotalCost             *float64 `json:"total_cost,omitempty"`
}

InspectModelUsage is Inspect's ModelUsage. InputTokens excludes the cached prompt tokens, which are counted apart.

type InspectSample

type InspectSample struct {
	// ID is the sample's id, a string or an integer upstream; abcd writes the
	// task's id.
	ID             json.RawMessage              `json:"id"`
	Epoch          int                          `json:"epoch"`
	Input          string                       `json:"input"`
	Target         string                       `json:"target"`
	Output         *InspectModelOutput          `json:"output,omitempty"`
	Scores         map[string]InspectScore      `json:"scores,omitempty"`
	Metadata       map[string]json.RawMessage   `json:"metadata,omitempty"`
	ModelUsage     map[string]InspectModelUsage `json:"model_usage,omitempty"`
	ModelFallbacks []InspectModelFallback       `json:"model_fallbacks,omitempty"`
	StartedAt      *time.Time                   `json:"started_at,omitempty"`
	CompletedAt    *time.Time                   `json:"completed_at,omitempty"`
	TotalTime      *float64                     `json:"total_time,omitempty"`
	WorkingTime    *float64                     `json:"working_time,omitempty"`
	Error          *InspectEvalError            `json:"error,omitempty"`
}

InspectSample is Inspect's EvalSample, the members abcd writes.

func (InspectSample) Trial

func (s InspectSample) Trial() (TrialRecord, error)

Trial reads a trial record back from an Inspect eval sample abcd wrote.

type InspectScore

type InspectScore struct {
	Value json.RawMessage `json:"value"`
}

InspectScore is Inspect's Score; its value is any JSON value upstream.

type Interval

type Interval struct {
	Low  float64 `json:"low"`
	High float64 `json:"high"`
}

Interval is a 95% interval.

type JudgeID

type JudgeID struct {
	GitHub string `json:"github,omitempty"`
	Guest  string `json:"guest,omitempty"`
}

JudgeID is who gave a verdict: a team member's GitHub login, or the token a guest was issued at joining. Exactly one is named.

type JudgeNeed

type JudgeNeed struct {
	Task  string   `json:"task"`
	Kind  TaskKind `json:"kind"`
	Who   string   `json:"who"`
	Count int      `json:"count"`
	Note  string   `json:"note,omitempty"`
}

JudgeNeed is who judges one task and how many of them it needs (decisions 21, 22, 26): a code task is judged by its hidden tests and the reviewer models; a writing task by people, each ranking at most eight copies so that every pair of models meets; a check by the person and one outside judge.

type JudgeRanking

type JudgeRanking struct {
	Judge   string       `json:"judge"`
	Slot    string       `json:"slot"`
	GivenAt time.Time    `json:"given_at"`
	Ranked  []RankedCopy `json:"ranked"`
}

JudgeRanking is one judge's ranking, best first.

type JudgeSlot

type JudgeSlot struct {
	ID     string     `json:"id"`
	Copies []SlotCopy `json:"copies"`
}

JudgeSlot is one judge's subset, its copies in the order that judge sees them. The session gives each judge who joins a slot no one else holds.

type Judging

type Judging struct {
	GuestsMayJudge bool `json:"guests_may_judge"`
}

Judging is the run's judging-session settings (decision 24): whether guests admitted by code may judge, their verdicts reported apart.

type JudgingDoc

type JudgingDoc struct {
	ID   string `json:"id"`
	HTML string `json:"html"`
}

JudgingDoc is one document a judge reads, rendered as inert text.

type JudgingKey

type JudgingKey struct {
	SchemaVersion int                  `json:"schema_version"`
	Run           string               `json:"run"`
	Task          string               `json:"task"`
	Packet        string               `json:"packet"`
	Seed          string               `json:"seed"`
	Documents     map[string]KeyedCopy `json:"documents"`
}

JudgingKey is the host's own half of a packet: never given to the session.

type JudgingPacket

type JudgingPacket struct {
	SchemaVersion  int          `json:"schema_version"`
	Criteria       string       `json:"criteria"`
	GuestsMayJudge bool         `json:"guests_may_judge"`
	Template       ContentRef   `json:"template"`
	Sources        []JudgingDoc `json:"sources"`
	Calibration    Calibration  `json:"calibration"`
	Documents      []JudgingDoc `json:"documents"`
	Slots          []JudgeSlot  `json:"slots"`
}

JudgingPacket is what the judging session is given. It names no run, task or path: the session knows it by its digest, and the key, on the host's machine, holds the run and task it is of.

type JudgingResult

type JudgingResult struct {
	SchemaVersion int    `json:"schema_version"`
	Run           string `json:"run"`
	Task          string `json:"task"`
	Packet        string `json:"packet"`
	// Members are the team members' rankings, pooled by the report.
	Members []JudgeRanking `json:"members"`
	// Guests are the rankings of guests admitted by code, reported apart.
	Guests []JudgeRanking `json:"guests"`
	// HostSelfBlinded are the host's own rankings, reported apart: the host
	// holds the key, so their blindness is their own word.
	HostSelfBlinded []JudgeRanking `json:"host_self_blinded"`
	// Superseded counts the verdicts a judge gave before their last.
	Superseded int `json:"superseded"`
}

JudgingResult is a session's verdicts as the run records them.

func RecordVerdicts

func RecordVerdicts(repoRoot, labID, run, task string, data []byte, host string) (JudgingResult, error)

RecordVerdicts validates a judging session's verdict file against the packet and key the run drew for task, and records it, once; host is the host's own GitHub login, whose rankings are reported apart as self-blinded, or "".

type KeyedCopy

type KeyedCopy struct {
	Key   TrialKey `json:"key"`
	Words int      `json:"words"`
	Bytes int      `json:"bytes"`
	// Withheld counts the mentions withheld from the copy's text before a
	// judge reads it: of where it ran, of what in the run identifies it, and
	// of models and makers.
	Withheld int `json:"withheld"`
}

KeyedCopy is what one document of a packet is a copy of, and its length, which the report shows beside its rank (decision 21).

type Launcher

type Launcher struct {
	RepoRoot, Home string
	// Handed is every hand-off Start wrote, in the order it wrote them.
	Handed []HandOff
}

Launcher is the Starter a consented run is started with: it hands off every pilot copy, each in its own clone, from the run's checkout at RepoRoot into the clone store under the account's home at Home.

func (*Launcher) Start

func (l *Launcher) Start(_ Plan, rec RunRecord) error

Start hands off every pilot copy of the run rec records: each task, each builder cell, repeats one to the pilot. A clone that cannot be made, or a hand-off that cannot be written, is the run's error; a cell its clone's scan refuses is recorded refused and the run goes on.

type LineSpan

type LineSpan struct {
	Start int `json:"start"`
	End   int `json:"end"`
}

LineSpan is where a quote stands in the frozen material, lines counted from one.

type LocalPin

type LocalPin struct {
	Runtime        string `json:"runtime"`
	RuntimeVersion string `json:"runtime_version"`
	WeightsSHA256  string `json:"weights_sha256"`
	WeightsFile    string `json:"weights_file,omitempty"`
	Quantisation   string `json:"quantisation"`
	ContextLength  int    `json:"context_length"`
	KVCacheType    string `json:"kv_cache_type"`
}

LocalPin is a local cell's pin, down to its weight file (scope condition 3).

Typed here until abcd-f1's oracle.LocalPin (feat/local-model-pin-r2) reaches the default branch; its fields and tags are that type's, so the reconciliation replaces this declaration with an alias.

type LockedCheckVerdicts

type LockedCheckVerdicts struct {
	SchemaVersion int             `json:"schema_version"`
	Packet        string          `json:"packet"`
	Valid         map[string]bool `json:"valid"`
}

LockedCheckVerdicts is the person's locked verdicts, by code.

type Machine

type Machine struct {
	OS    string `json:"os"`
	Arch  string `json:"arch"`
	Cores int    `json:"cores"`
	// CoresFallback is true when the online core count could not be read and
	// Cores is the runtime's count instead.
	CoresFallback bool `json:"cores_fallback"`
}

Machine is the machine a run ran on, named by what bears on the run and never by who or where: no host name, no user, no path.

type MatcherAgreement

type MatcherAgreement struct {
	Agreed    Rate `json:"agreed"`
	Leftovers int  `json:"leftovers"`
	Joined    int  `json:"joined"`
}

MatcherAgreement is the matcher checked against people: of the pairs they labelled, how many it decided as they did, over how many leftovers, having joined how many pairs. Agreed is not estimable with no label.

type MatcherEnd

type MatcherEnd struct {
	Document string `json:"document"`
	Quote    string `json:"quote"`
}

MatcherEnd is one end of a finding the matcher is shown: what a person labelling its pairs may see, the document by its file name alone, as the person's packet shows it, never its path in the repository.

type MatcherItem

type MatcherItem struct {
	ID       string       `json:"id"`
	Doc      string       `json:"doc,omitempty"`
	Class    string       `json:"class,omitempty"`
	Ends     []MatcherEnd `json:"ends"`
	Evidence string       `json:"evidence"`
}

MatcherItem is one leftover finding under an opaque id: what it says, and nothing of which copy, cell or model said it.

type MatcherRequest

type MatcherRequest struct {
	SchemaVersion int           `json:"schema_version"`
	Items         []MatcherItem `json:"items"`
}

MatcherRequest is what the matcher model is asked to join: the leftovers, shuffled.

type Money

type Money struct {
	Amount float64 `json:"amount"`
	Unit   string  `json:"unit"`
}

Money is an amount in a unit. The only unit is usd: a cap is the person's own figure, and a cost reported in another unit (OpenRouter's credits) is set against it only once their exchange is established (spec step 2).

type PairLabel

type PairLabel struct {
	A    string `json:"a"`
	B    string `json:"b"`
	Same bool   `json:"same"`
}

PairLabel is a person's label on one pair of leftover findings: the same finding or not.

type PassHat

type PassHat struct {
	K     int     `json:"k"`
	Value float64 `json:"value"`
}

PassHat is pass^k: the chance that k of the cell's attempts, drawn without replacement, all pass.

type PassRate

type PassRate struct {
	Passed   int       `json:"passed"`
	Attempts int       `json:"attempts"`
	Rate     *float64  `json:"rate"`
	Interval *Interval `json:"interval"`
}

PassRate is a cell's pass@1: of its attempts that count (passes and failures), how many passed, the rate and its 95% Wilson interval, both nil where nothing counts.

type Plan

type Plan struct {
	Lab            string        `json:"lab"`
	FrozenCommit   string        `json:"frozen_commit"`
	Declaration    ContentRef    `json:"declaration"`
	Cells          []PlannedCell `json:"cells"`
	Copies         Copies        `json:"copies"`
	Cost           []SourceCost  `json:"cost"`
	SpendCap       *Money        `json:"spend_cap"`
	SpendCapOrigin string        `json:"spend_cap_origin"`
	// LoadCap is the cores the local cells may load, nil with no local cell;
	// Cores is this machine's count it is held below (decision 12).
	LoadCap     *int        `json:"load_cap"`
	Cores       int         `json:"cores"`
	Concurrency int         `json:"concurrency"`
	Time        Estimate    `json:"time"`
	Judges      []JudgeNeed `json:"judges"`
	// Digest is the sha256 of the plan with Digest left blank: consent names
	// it, so a plan that changed after it was shown is never started.
	Digest string `json:"digest"`
}

Plan is what the person consents to.

func PlanForLab

func PlanForLab(repoRoot, labID string, declaration []byte, cores int) (Plan, []string, error)

PlanForLab builds the plan for a run of the declaration in the lab labID of the repository at repoRoot, on a machine of cores cores: the lab's pin is the frozen commit, the provider blocks and the spending cap are read from the layered configuration, and each cell's route is checked against a freshly loaded runner configuration, so building the plan changes none. The notes are the configuration reader's, for the front door to print.

func PlanRerun

func PlanRerun(repoRoot, labID, from string, cores int) (Plan, []string, error)

PlanRerun builds the plan for a re-run of the run from names in the lab labID, as PlanForLab builds a run's, from that run's recorded declaration. It writes nothing.

type PlanInputs

type PlanInputs struct {
	Lab          string
	FrozenCommit string
	Declaration  []byte
	API          *oracle.APIConfig
	CheckRoute   func(oracle.FlagRoute) error
	Cap          ResolvedCap
	Cores        int
}

PlanInputs is what a plan is built from. CheckRoute is the runner configuration's own check of one cell's route (an enabled runner, a model its provider lists, no claude for a pinned model), the front door's to supply, so building the plan changes no configuration.

type PlannedCell

type PlannedCell struct {
	Cell   string `json:"cell"`
	Role   Role   `json:"role"`
	Route  string `json:"route"`
	Source Source `json:"source"`
	Runner string `json:"runner"`
	Model  string `json:"model"`
	// Provider is the oracle provider block the model is asked of, "" for a
	// host cell.
	Provider string `json:"provider,omitempty"`
	// ProviderPin is an OpenRouter cell's pin and LocalPin a local cell's,
	// read from this machine's configuration, so the plan the person sees
	// names exactly what each copy is held to (decision 6).
	ProviderPin *ProviderPin `json:"provider_pin,omitempty"`
	LocalPin    *LocalPin    `json:"local_pin,omitempty"`
}

PlannedCell is one cell as the plan resolved it: its role, the source its route reaches (decision 2), and the runner and model it asks for.

type ProviderPin

type ProviderPin struct {
	Order             []string `json:"order"`
	AllowFallbacks    bool     `json:"allow_fallbacks"`
	RequireParameters bool     `json:"require_parameters"`
	DataCollection    string   `json:"data_collection"`
	Quantizations     []string `json:"quantizations"`
	CanonicalSlug     string   `json:"canonical_slug"`
}

ProviderPin is an OpenRouter cell's provider pin (decision 6: fallbacks off, so an outage is retried on the same pin).

Typed here until abcd-f1's oracle.Pin (feat/local-model-pin-r2) reaches the default branch; its fields and tags are that type's, so the reconciliation replaces this declaration with an alias and changes no record.

type RankedCopy

type RankedCopy struct {
	Key        TrialKey `json:"key"`
	GoodEnough bool     `json:"good_enough"`
	Words      int      `json:"words"`
}

RankedCopy is one place of a judge's ranking, decoded through the key.

type Rate

type Rate struct {
	Hits int `json:"hits"`
	Of   int `json:"of"`
}

Rate is a count of hits out of the copies it is over.

func (Rate) Estimable

func (r Rate) Estimable() bool

Estimable reports whether the rate has any copy under it.

type Repeats

type Repeats struct {
	Pilot int `json:"pilot"`
	Max   int `json:"max"`
	// MinDifference is the smallest difference in pass rate that would change
	// a choice; it sizes the repeats by a power estimate, and a comparison
	// resting on fewer repeats than that estimate asks for is not ranked. Nil
	// where none is declared: no comparison is ranked, and each states the
	// smallest difference it could have detected.
	MinDifference *float64 `json:"min_difference,omitempty"`
}

Repeats is the pilot each cell runs first and the most it may be sized up to.

type Report

type Report struct {
	SchemaVersion int           `json:"schema_version"`
	Run           string        `json:"run"`
	Lab           string        `json:"lab"`
	FrozenCommit  string        `json:"frozen_commit"`
	Trials        int           `json:"trials"`
	Code          []CodeReport  `json:"code"`
	Writing       []WritingRow  `json:"writing"`
	Check         []CheckReport `json:"check"`
	// Drift is where a re-run drifted from the run it repeats, nil for a run
	// that repeats none.
	Drift *Drift `json:"drift"`
	// Unreturned is every copy the run handed off, or its pilot asked for
	// once it began handing copies off, that holds no trial, by task, cell and
	// where it stands. None of them is in any rate.
	Unreturned   []UnreturnedCopies `json:"unreturned"`
	Limitations  []string           `json:"limitations"`
	Improvements []string           `json:"improvements"`
}

Report is a run's report.

func BuildReport

func BuildReport(repoRoot, labID, run string) (Report, error)

BuildReport builds run's report from its records in the lab labID of the repository at repoRoot. It reads and writes nothing else.

type ResolvedCap

type ResolvedCap struct {
	Cap    *Money
	Origin string // CapFromRun, CapFromMachine, or ""
}

ResolvedCap is the cap a run spends under and where it came from: the run's own declaration, which overrides the person's machine-wide figure, or that figure. Both empty means no cap is named anywhere; abcd never supplies one.

type ReviewHandOff

type ReviewHandOff struct {
	Reviewer string       `json:"reviewer"`
	Label    string       `json:"label"`
	State    HandOffState `json:"state"`
	Request  string       `json:"request"`
}

ReviewHandOff is one reviewer cell's request about one copy: the opaque label the copy goes under, the request's text, and whether the host carries it (a host reviewer cell's) or it waits for a launcher (a runner's).

func ReviewRequests

func ReviewRequests(repoRoot, home, labID, run, task string) ([]ReviewHandOff, error)

ReviewRequests assembles, once, a blinded request for each of code task's copies the hidden tests judged (passed or failed, never one set apart), each from the frozen tree and the copy's clone read as data, under a fresh opaque label, and records them with the copies' known truth. Every reviewer cell is handed every request. A task asked for already is returned as it was asked.

type ReviewItem

type ReviewItem struct {
	Key  string       `json:"item_key"`
	Kind reading.Kind `json:"kind"`
	Text string       `json:"text"`
}

ReviewItem is one file of the copy's change as the reviewer receives it: an ordinal key, the include table's class for its path, and its diff.

type ReviewManifest

type ReviewManifest struct {
	Type          string               `json:"_type"`
	SchemaVersion int                  `json:"schema_version"`
	Label         string               `json:"label"`
	Assembler     string               `json:"assembler"`
	AskSHA256     string               `json:"ask_sha256"`
	RequestSHA256 string               `json:"request_sha256"`
	Items         []ReviewManifestItem `json:"items"`
	Withheld      []WithheldPath       `json:"withheld"`
	WithheldMore  int                  `json:"withheld_more"`
	Redactions    int                  `json:"redactions"`
}

ReviewManifest is the run's account of one request. It stays with the run and is never handed to a reviewer.

type ReviewManifestItem

type ReviewManifestItem struct {
	Key    string       `json:"item_key"`
	Path   string       `json:"path"`
	Kind   reading.Kind `json:"kind"`
	Change string       `json:"change"`
	Bytes  int          `json:"bytes"`
	SHA256 string       `json:"sha256"`
}

ReviewManifestItem is the run's account of one item: the path it was read from in the copy's tree, its class, its change, and its text's size and hash.

type ReviewRequest

type ReviewRequest struct {
	Type          string       `json:"_type"`
	SchemaVersion int          `json:"schema_version"`
	Label         string       `json:"label"`
	Ask           string       `json:"ask"`
	Items         []ReviewItem `json:"items"`
}

ReviewRequest is the whole of what one reviewer is handed for one copy.

type ReviewScores

type ReviewScores struct {
	Recall        Rate `json:"recall"`
	RecallFailing Rate `json:"recall_failing"`
	RecallSeeded  Rate `json:"recall_seeded"`
	TrueNegative  Rate `json:"true_negative"`
}

ReviewScores is one reviewer's verdicts on one set of copies: recall on every defective copy and on each kind apart, and the true-negative rate on the known-good ones.

type ReviewVerdict

type ReviewVerdict struct {
	Reviewer    string `json:"reviewer"`
	Label       string `json:"label"`
	Defective   bool   `json:"defective"`
	AuthorGuess string `json:"author_guess"`
}

ReviewVerdict is one reviewer cell's verdict on one copy.

type ReviewedCopy

type ReviewedCopy struct {
	Label string    `json:"label"`
	Key   TrialKey  `json:"key"`
	Truth CopyTruth `json:"truth"`
}

ReviewedCopy is one copy a reviewer is asked about: the opaque label it went under, the trial it is (a seeded copy keeps the key of the copy it was seeded into), and what is known of it.

type ReviewerScore

type ReviewerScore struct {
	Reviewer string `json:"reviewer"`
	Model    string `json:"model"`
	// OtherFamily is the reviewer's score: its verdicts on copies another
	// developer's model wrote. SameFamily and UnknownFamily are reported
	// apart from it.
	OtherFamily   ReviewScores `json:"other_family"`
	SameFamily    ReviewScores `json:"same_family"`
	UnknownFamily ReviewScores `json:"unknown_family"`
	// Unanswered counts the copies the reviewer gave no verdict on: no
	// evidence either way, so in no rate.
	Unanswered  int        `json:"unanswered"`
	AuthorGuess GuessScore `json:"author_guess"`
}

ReviewerScore is one reviewer cell's score, on its own.

type Role

type Role string

Role is which side of the matrix a cell sits on.

const (
	RoleBuilder  Role = "builder"
	RoleReviewer Role = "reviewer"
)

type RunRecord

type RunRecord struct {
	SchemaVersion int    `json:"schema_version"`
	RunID         string `json:"run_id"`
	Lab           string `json:"lab"`
	RootSHA       string `json:"root_sha"`
	// FrozenCommit is the commit every copy starts from: the lab's pin.
	FrozenCommit string     `json:"frozen_commit"`
	Binary       BinaryPin  `json:"binary"`
	Declaration  ContentRef `json:"declaration"`
	// PromptSHA256 is each role's prompt hash, and ToolDefinitionsSHA256
	// each runner's tool definitions' hash (prompts are pinned by hash until
	// itd-14 versions them).
	PromptSHA256          map[string]string `json:"prompt_sha256"`
	ToolDefinitionsSHA256 map[string]string `json:"tool_definitions_sha256"`
	RenderTemplate        *ContentRef       `json:"render_template"`
	HiddenTests           []ContentRef      `json:"hidden_tests"`
	SeededMaterial        []ContentRef      `json:"seeded_material"`
	Machine               Machine           `json:"machine"`
	Concurrency           int               `json:"concurrency"`
	// LoadCap is the cores the run's local cells may load (decision 12), nil
	// when the run has no local cell and the declaration names none.
	LoadCap        *int              `json:"load_cap"`
	SpendCap       *Money            `json:"spend_cap"`
	SpendCapOrigin string            `json:"spend_cap_origin"`
	Cells          []CellPin         `json:"cells"`
	Unpinned       []oracle.Unpinned `json:"unpinned"`
}

RunRecord is a run's record.

type Score

type Score struct {
	Passed int    `json:"passed"`
	Total  int    `json:"total"`
	Detail string `json:"detail,omitempty"`
}

Score is a copy's judged result: for a code copy, the hidden tests it passed of those run.

type SlotCopy

type SlotCopy struct {
	Code     string `json:"code"`
	Document string `json:"document"`
}

SlotCopy is one copy of a judge's subset: the code the judge knows it by and the document it is.

type Source

type Source string

Source is where a cell's model comes from (decision 2). Model and harness travel together by source (scope condition 4): host models in the host's harness, every other model in a command-line runner.

const (
	SourceHost       Source = "host"
	SourceOpenRouter Source = "openrouter"
	SourceLocal      Source = "local"
	// SourceProvider is any other provider connection.
	SourceProvider Source = "provider"
)

func (Source) Metered

func (s Source) Metered() bool

Metered reports whether a cell from this source spends money a cap bounds (decision 17): a host or local cell does not.

type SourceCost

type SourceCost struct {
	Source   Source `json:"source"`
	Metered  bool   `json:"metered"`
	Expected *Money `json:"expected,omitempty"`
	Note     string `json:"note,omitempty"`
}

SourceCost is the expected cost of the cells from one source at the most copies the run may make. Expected is nil when the source is not metered, or when a metered cell declared no cost per copy; Note then says so.

type Starter

type Starter interface {
	Start(Plan, RunRecord) error
}

Starter starts a consented run. It is the seam the run's trial mode fills (spec step 3); consent calls it once, after the run's record is written.

type Task

type Task struct {
	ID       string   `json:"id"`
	Kind     TaskKind `json:"kind"`
	Intent   string   `json:"intent,omitempty"`
	Source   []string `json:"source,omitempty"`
	Criteria string   `json:"criteria,omitempty"`
	Material []string `json:"material,omitempty"`
}

Task is one task the matrix does. Which fields apply follows its kind: a code task names its intent; a writing task its source material and the judges' criteria; a check the material it checks (scope condition 2).

type TaskKind

type TaskKind string

TaskKind is how a task is done and judged (decision 18).

const (
	// KindCode is a code feature: built through the runners, judged by
	// hidden tests and reviewer models.
	KindCode TaskKind = "code"
	// KindWriting is a written doc: judged by people, blind.
	KindWriting TaskKind = "writing"
	// KindCheck is a check such as doc fidelity: its copies' findings
	// compared side by side.
	KindCheck TaskKind = "check"
)

type TrialKey

type TrialKey struct {
	Task   string `json:"task"`
	Cell   string `json:"cell"`
	Repeat int    `json:"repeat"`
}

TrialKey is what a copy is a copy of: the task (for a code task, the task that builds its intent), the cell and the repeat, counted from one.

func ParseTrialKey

func ParseTrialKey(s string) (TrialKey, error)

ParseTrialKey reads a copy's key from its one-token form, task/cell/repeat.

func (TrialKey) String

func (k TrialKey) String() string

String is the key as one token.

type TrialRecord

type TrialRecord struct {
	SchemaVersion int      `json:"schema_version"`
	Run           string   `json:"run"`
	Key           TrialKey `json:"key"`
	Kind          TaskKind `json:"kind"`
	// Intent is a code task's intent; empty for any other kind.
	Intent       string `json:"intent,omitempty"`
	FrozenCommit string `json:"frozen_commit"`
	// The cell as it ran: its source, the runner (or host) whose harness made
	// the copy and that harness's version, the model asked for and the one
	// that served, the provider that served it, and the settings sent.
	Source         Source          `json:"source"`
	Runner         string          `json:"runner"`
	HarnessVersion string          `json:"harness_version"`
	ModelAsked     string          `json:"model_asked"`
	ModelServed    string          `json:"model_served"`
	ServedProvider string          `json:"served_provider"`
	Settings       oracle.Settings `json:"settings"`
	Status         TrialStatus     `json:"status"`
	// Reason is abcd's own account of the status: one line of plain text of
	// at most maxReasonBytes.
	Reason string `json:"reason"`
	Score  *Score `json:"score"`
	// Compliance is the compliance check's result (compliance.go), run before
	// the copy is ranked: nil for a copy that was never made, so has nothing
	// to check. A ranked copy, and one the check set apart, carries it.
	Compliance *Compliance `json:"compliance"`
	// The receipts of every role the copy ran and every routed call, both
	// sides each (itd-166), and every fallback (which excludes the copy).
	Roles     []runner.RoleReceipt     `json:"roles"`
	Calls     []oracle.ReceiptRoute    `json:"calls"`
	Fallbacks []runner.FallbackReceipt `json:"fallbacks"`
	// Usage and Cost are the copy's totals; a count or cost not reported is
	// listed in Unpinned.
	Usage      oracle.Usage `json:"usage"`
	Cost       *oracle.Cost `json:"cost"`
	StartedAt  time.Time    `json:"started_at,omitzero"`
	FinishedAt time.Time    `json:"finished_at,omitzero"`
	// ModelTimeMS is the time the models spent, excluding GateWaitMS, the
	// time spent waiting on gates (the code report's criterion).
	ModelTimeMS int64             `json:"model_time_ms"`
	GateWaitMS  int64             `json:"gate_wait_ms"`
	Unpinned    []oracle.Unpinned `json:"unpinned"`
}

TrialRecord is one copy's record.

func CollectCopy

func CollectCopy(repoRoot, home, labID, run string, key TrialKey, back CopyBack) (TrialRecord, error)

CollectCopy takes copy key of run back from the host and writes its trial record: the copy is checked for compliance under one overall deadline first, reading its clone as data and its transcript for reads outside it, the run's state among them (labStore under home); a check copy's findings are read into the run's record before its clone is deleted; a writing copy's text is kept for its judging. It refuses, writing nothing: a copy the run did not hand to the host (a runner cell's, or a refused cell's), one already taken back (short of a check copy whose clone outlived its trial, which a hand-back again deletes, returning the trial written: leftoverClone), a receipt that does not validate, a made code copy without its hidden tests' result, and a made writing or check copy without its answer.

func (TrialRecord) Apart

func (t TrialRecord) Apart() bool

Apart reports whether the copy is reported apart from the cell's ranking, neither a pass nor a failure: one the compliance check excluded, or one it could not examine.

func (TrialRecord) Attempted

func (t TrialRecord) Attempted() bool

Attempted reports whether the copy counts as an attempt of its cell: every copy but one that never started.

func (TrialRecord) Failed

func (t TrialRecord) Failed() bool

Failed reports whether the copy counts as its cell's failure: a failed attempt, or one excluded for carrying a fallback receipt (a fallback is never the model's pass). A copy the compliance check excluded is not a failure.

func (TrialRecord) Harbor

func (t TrialRecord) Harbor() (HarborTrialResult, error)

Harbor maps the trial onto a Harbor trial result. It refuses a trial that does not validate or a value that does not encode.

func (TrialRecord) HostReportedScore

func (t TrialRecord) HostReportedScore() bool

HostReportedScore reports whether the copy's hidden tests' result is its maker's own report, which abcd neither placed nor ran: a score its trial lists as self-reported.

func (TrialRecord) Inspect

func (t TrialRecord) Inspect() (InspectSample, error)

Inspect maps the trial onto an Inspect eval sample. It refuses a trial that does not validate or a value that does not encode.

func (TrialRecord) Passed

func (t TrialRecord) Passed() bool

Passed reports whether the copy counts as its cell's pass.

type TrialStatus

type TrialStatus string

TrialStatus is how a copy came out.

const (
	// StatusPassed: the copy passed its judging (a code copy, its hidden
	// tests).
	StatusPassed TrialStatus = "passed"
	// StatusFailed: the copy was attempted and did not pass, including a
	// runner that failed, refused or answered unparsably inside its cell.
	StatusFailed TrialStatus = "failed"
	// StatusNotStarted: the copy never started (a provider down, or
	// throttling it, before it began, decision 6); retried on the same pin and
	// never scored.
	StatusNotStarted TrialStatus = "not_started"
	// StatusExcluded: the copy broke a rule and is named. One that carries a
	// fallback receipt counts as its cell's failure, never the model's pass
	// (the acceptance criterion on fallback copies); one the compliance check
	// excluded broke a rule of the run rather than failing the task, so it is
	// counted apart, neither a pass nor a failure (rule-breaking runs are
	// rejected before ranking; dcn-2610230216139961).
	StatusExcluded TrialStatus = "excluded"
	// StatusUnexamined: the compliance check could not examine the copy;
	// reported apart, never ranked as compliant.
	StatusUnexamined TrialStatus = "unexamined"
)

type UnreturnedCopies

type UnreturnedCopies struct {
	Task    string          `json:"task"`
	Cell    string          `json:"cell"`
	State   UnreturnedState `json:"state"`
	Repeats []int           `json:"repeats"`
	Reason  string          `json:"reason,omitempty"`
}

UnreturnedCopies is the copies of one task on one builder cell that stand alike and hold no trial: their repeats, and for a refused cell, why.

type UnreturnedState

type UnreturnedState string

UnreturnedState is where a copy with no trial stands.

const (
	// UnreturnedNotHandedBack: handed to the host and never handed back.
	UnreturnedNotHandedBack UnreturnedState = "not_handed_back"
	// UnreturnedAwaitingRunner: a runner cell's copy, waiting for a launcher.
	UnreturnedAwaitingRunner UnreturnedState = "awaiting_runner"
	// UnreturnedRefused: its cell's clone was refused before the copy started.
	UnreturnedRefused UnreturnedState = "refused"
	// UnreturnedNeverHandedOff: a pilot copy the run's start never reached.
	UnreturnedNeverHandedOff UnreturnedState = "never_handed_off"
)

type Verdict

type Verdict struct {
	Judge      JudgeID         `json:"judge"`
	Slot       string          `json:"slot"`
	Calibrated bool            `json:"calibrated"`
	Ranking    []string        `json:"ranking"`
	GoodEnough map[string]bool `json:"good_enough"`
	GivenAt    time.Time       `json:"given_at"`
}

Verdict is one judge's complete verdict on their subset: calibrated first, every code ranked best first, and every code marked good enough to ship or not. A ranking the judge has not finished is the session's to keep, not to hand over.

type VerdictFile

type VerdictFile struct {
	SchemaVersion int       `json:"schema_version"`
	Packet        string    `json:"packet"`
	Verdicts      []Verdict `json:"verdicts"`
}

VerdictFile is what a judging session hands the run: the packet it judged, by digest, and every verdict given in it.

type WithheldPath

type WithheldPath struct {
	Path   string `json:"path"`
	Reason string `json:"reason"`
}

WithheldPath is a path the copy changed, or may have, that did not travel, and why.

type WritingAgreement

type WritingAgreement struct {
	GoodEnough Agreement `json:"good_enough"`
	Order      Agreement `json:"order"`
}

WritingAgreement is the members' agreement on the good-enough marks and on the order of the copies.

type WritingRow

type WritingRow struct {
	Task            string `json:"task"`
	Judged          bool   `json:"judged"`
	Members         int    `json:"members"`
	Guests          int    `json:"guests"`
	HostSelfBlinded int    `json:"host_self_blinded"`
	// Floor says why the members' rankings are not pooled, "" where they are.
	Floor      string                    `json:"floor,omitempty"`
	Ratings    []BTRating                `json:"ratings"`
	Agreement  *WritingAgreement         `json:"agreement"`
	GoodEnough []GoodEnoughRow           `json:"good_enough"`
	Copies     []CopyLength              `json:"copies"`
	Rankings   []JudgeRanking            `json:"rankings,omitempty"`
	Apart      map[string][]JudgeRanking `json:"apart,omitempty"`
}

WritingRow is a written doc's rows.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL