Existing grader registry
This appendix records the 10 default and 25 opt-in built-ins at revision 37545ad. All 35 use the redacted unified session; none read the repository or query a service to fill gaps. For configuration and replay, see Graders.
Reading the tables: ↑ means higher is preferred by default; ↓ means lower. These are comparison directions, not claims about task correctness. null means unavailable, not zero. Four defaults have inclusive pass thresholds, shown below. The other built-ins have none: a finite measurement then has passed: null, even though its status is pass. A computation error is distinct from an unavailable measurement.
Reading the citations: A PR or design decision establishes what GH-AW adopted. A paper establishes what its authors measured. Where only the mathematics or the research question matches, the notes say so; a later bibliographic match is not evidence that the paper motivated the implementation. Native means that the project’s own definition is the source for the scoring rule.
Default graders
Section titled “Default graders”Omitted, null, or empty graders enables all ten. A workflow can disable any individually. Two shared inputs account for most differences between these scores:
- Calls are agent-phase native starts and completions, correlated within session, agent, and attempt, plus unmatched gateway calls. Recorded child calls can be included. An unfinished call, explicit failure/error status or flag, or non-null error counts as failed.
- Requests are agent-phase
firewall.token_usagerecords if any exist, otherwiseusage.reportrecords. This is a phase filter, not a root-caller filter. Detection and eval usage do not count. A duration or token sum requires valid values for every selected record.
| Grader ID | Measurement and evidence | Missing data or special case | Unit / direction |
|---|---|---|---|
tool-success-rate | (calls − failed calls) / calls | No calls → 1 | ratio ↑ ≥ 0.8 |
tool-failure-count | Number of failed calls in the same population | No calls → 0 | count ↓ ≤ 5 |
retries | Count of agent MCP events with a retry marker, hint, or retry/retrying message, plus harness/startup attempts numbered above 1. Per-attempt records supersede matching compatibility summaries. | No matches → 0. Native engine.retry records are tracked separately and do not enter this grade. | count ↓ ≤ 10 |
loops | Number of adjacent equal (session scope, tool name, arguments) keys in the correlated call list. Object key order does not matter. | Fewer than two calls → 0; three identical calls contribute 2, whether or not they failed. | count ↓ ≤ 3 |
trajectory-efficiency | Distinct tool names / calls, ignoring arguments, order, and success | No calls → 1. Measures diversity, not the shortest successful path. | ratio ↑ |
execution-step-count | Number of selected request records, not assistant turns or tool calls | No request records → null | count ↓ |
execution-duration | Sum of selected request durations; otherwise first valid agent execution.result.durationMs | Neither source available → null; observed zero is valid. Summed request time need not equal wall time. | ms ↓ |
working-set-rebuild-factor | Sum of logical input tokens / peak input tokens in one request. Cache counts are not added again. | Incomplete input measurements or no positive peak → null | factor ↓ |
context-growth | Total input plus output tokens / first request’s input plus output tokens | Incomplete or unsafe totals, no requests, or zero first total → null | factor ↓ |
artifact-production | Count successful safe_output.result records plus status-less legacy records not superseded by a canonical safe-job result of the same type. | No qualifying records → 0. Not a count of unique files, human adoption, or later value. | count ↑ |
Default formulas · Session evidence and fallbacks · Working-set calculation · Default grader tests · Retry accounting tests
Origins. Nine defaults are native. PR #54678 and its design decision introduced the two tool outcomes, retries, loops, tool-name diversity, request count, duration, context growth and artifact count as trace diagnostics. They do not attribute those formulas or thresholds to a benchmark. In particular, trajectory-efficiency is not path length relative to an optimal solution.
working-set-rebuild-factor has a documented research connection. Mohammadi, Klein, Chadha, Arora and Bindschaedler, The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Tasks, arXiv:2608.16630v1, §4.4, contrast peak per-turn context with cumulative input: peak varies 1.8-fold across their configurations, cumulative input 12.8-fold. PR #54416 and its design decision cite that observation; PR #54934 registered the grader. The single-run ratio sum(input) / max(input) is GH-AW’s contribution, not the paper’s coherence-debt measure or either of its cross-configuration ratios.
Opt-in trajectory graders
Section titled “Opt-in trajectory graders”Each ID must be enabled explicitly, directly or through its import fragment. The last agent-phase trajectory.ir supplies the trajectory. Without it, the projection still provides native agent event kinds/indexes and correlated tool calls, but it does not invent states, objectives, references, or lineage. A recognized trajectory or reference collection over 5,000 items makes the grade unavailable.
PR #55174 introduced the ranked catalog, which names several methods but has no per-grader bibliography. Some first shipped as shared grader fragments. PR #64023 registered the first 22 as built-ins; the final three have separate implementation PRs below. PR #70130 moved computation onto the in-memory unified session. The tables describe the shipped algorithms, not the original proposals.
State recurrence and event diversity
Section titled “State recurrence and event diversity”The five state measures use visits in states[], ordered using firstEventIndex when available. They do not reconstruct visits from state_change events. Let n be visits and n_s visits to state ID s. A recurrent point is an ordered pair of equal state IDs at different positions. This distinguishes counting revisits (REP), counting pairs (RR), measuring line coverage (DET/LAM), and measuring line length (TT).
| Grader ID | Measurement and evidence | Missing data or special case | Unit / direction |
|---|---|---|---|
state-revisit-probability-rep | (n − distinct state IDs) / n | Fewer than 2 visits → null; no revisit → 0 | ratio ↓ |
recurrence-rate | sum(n_s × (n_s − 1)) / (n × (n − 1)) | Fewer than 2 visits → null; no equal pairs → 0 | ratio ↓ |
recurrence-determinism | Recurrent points in diagonal runs of length ≥ 2 / all recurrent points | Fewer than 4 visits → null; no recurrent points → 0 | ratio ↓ |
recurrence-laminarity | Recurrent points in vertical runs of length ≥ 2 / all recurrent points | Fewer than 4 visits → null; no recurrent points → 0 | ratio ↓ |
recurrence-trapping-time | Sum of lengths of those qualifying vertical runs / number of those runs | Fewer than 4 visits → null; no qualifying runs → 0 | steps ↓ |
event-entropy-rate | First-order conditional Shannon entropy of the next event given the previous one, divided by log₂(alphabet size) and clamped to [0, 1] | Fewer than 2 events → null; one symbol → 0 | ratio ↑ |
lempel-ziv-trajectory-complexity | LZ76 incremental phrase count × log(n)/log(alphabet size) / n, clamped to [0, 1]; here n counts events | Fewer than 2 events → null; one symbol → 0 | ratio ↑ |
Revisits are not recurrent pairs. Dang et al., Multiple Thinking Achieving Meta-Ability Decoupling for Object Navigation, ICML 2023, appendix B, eq. 14, call their metric repeated exploration probability (REP). GH-AW’s REP matches one episode’s (visits − distinct states) / visits, using canonical state IDs and no average across episodes. The PR supplies that formula but does not cite Dang et al. For A, B, C, A, REP is 1/4 (one repeat visit); RR is 2/12 (two ordered pairs).
| Named method | Source and GH-AW convention |
|---|---|
| RR and DET | Marwan et al., Recurrence Plots for the Analysis of Complex Systems, 2007, §§3.5.1–2, eqs. 41 and 46. RR there uses N² matrix positions. GH-AW compares exact state IDs, drops the identity diagonal and uses N(N−1); DET counts points on diagonal lines of length at least two. |
| LAM and TT | Marwan et al., Recurrence-Plot-Based Measures of Complexity and Their Application to Heart-Rate-Variability Data, 2002, §III, eqs. 2–3. Both use vertical lines of length at least two here. LAM divides their points by all recurrent points; TT divides by the number of qualifying lines. TT measures steps, not elapsed time. |
| Event entropy | Shannon, A Mathematical Theory of Communication, 1948, §7, pp. 396–398, theorem 6. GH-AW estimates the next-symbol entropy conditional on one previous symbol, from observed adjacent pairs, then divides by log₂(observed alphabet size). It does not estimate an arbitrary process’s full entropy rate. |
| Lempel–Ziv complexity | Lempel and Ziv (1976) define finite-sequence phrase complexity; the PR explicitly credits Kaspar and Schuster (1987) for the parser. Estevez-Rams et al. (2013), §II, eq. 6, give the alphabet-adjusted scale and note that finite normalized scores can exceed 1. Using the observed alphabet and capping the result at 1 are GH-AW conventions, not an LZ bound. |
Both event grades use the same sequence ordered by index (fallback: array position). Symbols are event kinds, except tool_call with a nonempty string reference becomes tool_call:<ref>. Entropy uses adjacent pairs; LZ76 uses substrings. See the sequence tests.
Objectives, constraints, and stopping
Section titled “Objectives, constraints, and stopping”| Grader ID | Measurement and evidence | Missing data or special case | Unit / direction |
|---|---|---|---|
policy-near-miss | Unmet guard objectives / guard objectives in one trace containing a safe_output event. A whole-word description match selects checks, verification, policy, approvals, guards, confirmation, or authorization. A null/absent satisfaction index means unmet. | No objectives, matching guards, or outcome event → null. The event does not establish that the outcome succeeded. | ratio ↓ |
skill-constraint-coverage | Covered / all configured constraints. Each regex must match a call’s name/arguments or an action’s type/target. Every match must avoid explicit failure, incompletion, or invalidity unless requireSuccess: false. | No calls/actions or no valid patterns → null. If any pattern is valid, malformed and unmatched constraints remain in the denominator. | ratio ↑ |
exploration-error | With unmet objectives, clamp(1 − observations / visited states, 0, 1). Count distinct state_change refs, falling back to the number of declared state records. | No objectives → null; all satisfied → 0. Otherwise missing states → null; zero observations with states → 1. | ratio ↓ |
exploitation-error | With unmet objectives and at least as many observations as visited states, unused / all observations. Unused means consumedByActionIds absent, non-array, or empty. | No objectives → null; all satisfied → 0. Otherwise missing states/observations or insufficient exploration → null. | ratio ↓ |
premature-termination-gap | Count of objectives with absent/null satisfiedAtEventIndex | Empty/malformed objectives or invalid index → null; all satisfied → 0 | count ↓ |
objective-coverage | Completed / all objectives. A nonnegative safe-integer satisfaction index marks completion. | Same eligibility as termination gap: coverage = 1 − gap / objective count. | ratio ↑ |
evidence-saturation-stopping-lag | Count events whose index is strictly greater than the last satisfaction index across all objectives. Counts events, not index distance or time. | No objectives, any unmet objective, invalid records/indexes, or any satisfaction event absent → null; none later → 0 | count ↓ |
dependency-order-violation-rate | Completed dependent objectives with any unmet, invalid, or later prerequisite / completed dependent objectives. Each dependent counts once; ties are allowed. | No completed dependents or dependencies → null, as do malformed/duplicate objective IDs or unknown dependency references. | ratio ↓ |
grounding-accuracy | Actions with validAtIssueTime: true / all issued actions, independent of whether the tool later succeeded | No actions, or any missing/nonboolean validity annotation → null | ratio ↑ |
Policy, constraints, and exploration tests · Completion, dependency, and grounding tests
The historical PRs establish the GH-AW rules. The publications below distinguish a direct metric match from a related research question:
| Grader | Academic source and relationship to the implementation |
|---|---|
policy-near-miss | Related phenomenon. Rabinovich et al., Near-Miss, v1, §§3.2–3.3, fig. 3, check whether an agent obtained required information before a mutation on a trajectory that reached the gold final state. PR #56996 instead counts unmet keyword-selected guards in one trace containing a safe output. It tests neither ordering nor the final state. |
skill-constraint-coverage | Different numerator. Tan, Huang and Sun, Skill Coverage: A Test Adequacy Metric for Agent Skills, v2, §IV-B2, count an exercised constraint as covered whether it passes or fails. PR #57055 requires a regex match and, by default, success. The two scores can differ even on the same exercised constraint. |
exploration-error, exploitation-error | Same names, different estimators. Park et al., Exploration and Exploitation Errors Are Measurable for Language Model Agents, v1, §4, table 1 and eq. 1, classify grid moves using progress, target distance and staleness. GH-AW measures observation shortfall or unused observations when objectives remain unmet. Neither ratio diagnoses the cause of failure. |
premature-termination-gap, evidence-saturation-stopping-lag | Native counts. Cemri et al., Why Do Multi-Agent LLM Systems Fail?, v3, appendix A, FM-3.1 and FM-1.5, distinguish premature stopping from failing to recognize a stopping condition. These are annotated failure categories, not GH-AW’s counts of unmet objectives or subsequent events. |
dependency-order-violation-rate | Related constraint, different metric. Lu et al., ToolSandbox, v2, §2.3 and appendix A.7, eq. 2, score milestone matches subject to a partial order. GH-AW counts completed dependent objectives with a late or unmet prerequisite; it does not optimize a milestone alignment or count violated edges. |
objective-coverage | Same fraction, different evidence. Shridhar et al., ALFRED, CVPR 2020, §5.1 “Goal-Condition Success”, measure the fraction of goal conditions true in the final environment. GH-AW counts recorded satisfaction indices; a condition previously reached need not still hold. |
grounding-accuracy | Direct named metric. Ma et al., AgentBoard, v2, §4.3 “Grounding accuracy”, table 4, measure valid actions / issued actions. GH-AW uses the recorded validity flag instead of querying the benchmark environment. This is not factual grounding or tool success. |
Evidence use and provenance
Section titled “Evidence use and provenance”| Grader ID | Measurement and evidence | Missing data or special case | Unit / direction |
|---|---|---|---|
tool-output-consumption-rate | Tool-origin observations with a nonempty string consumer ID / observations whose sourceToolCallId matches a tool call ID. The consumer’s existence and timing are not checked. | No matching tool-origin observations → null; missing or malformed consumer IDs count as unconsumed. | ratio ↑ |
end-to-end-lineage-completeness | Final safe_output events traceable to a tool or observation ID / final safe_output events. Walk provenanceEdges backwards from each output ref. | Missing graph collections, no final outputs, or any missing output ref → null; eligible outputs with no reachable roots → 0. | ratio ↑ |
action-provenance-coverage | Consequential actions traceable to a tool or observation ID / consequential actions. Same graph walk as lineage completeness, starting at action IDs. | Missing graph collections, malformed action/flag, no consequential actions, or missing consequential action ID → null; no reachable roots → 0. | ratio ↑ |
Consumption tests for a direct consumer annotation; the other two allow multi-hop paths. Consumption is not the complement of exploitation-error, which considers all observations and only applies its unused-observation formula after sufficient exploration. Consumption and provenance tests
All three fractions are native. For the tool-output consumption grader, a dataflow analogue is Basu et al., NESTFUL, EMNLP 2025, fig. 1: an API output supplies another call’s argument. The benchmark scores nested call sequences, not the percentage of outputs consumed. For the two lineage graders, Souza et al., PROV-AGENT, v3, §III, fig. 3, model how tool use, outputs and decisions connect. A backward path to one recorded root is GH-AW’s scoring rule, not a published test that all relevant evidence was captured.
Reference trajectories, files, and process models
Section titled “Reference trajectories, files, and process models”| Grader ID | Measurement and evidence | Missing data or special case | Unit / direction |
|---|---|---|---|
tool-wise-score | Sum (1 + matching fraction of expected argument keys) / 2 over the matching tool-name prefix, divided by full reference length. Extra arguments are ignored. No expected keys gives full argument credit. | Missing/empty reference, malformed calls, or mixed indexed/unindexed observations → null; valid empty observed array → 0. Extra calls beyond the reference do not reduce the score. | ratio ↑ |
trajectory-ndtw | exp(−DTW distance / reference state count) between reference.states and state_change refs in event array order. Equal IDs cost 0; unequal IDs cost 1. | Missing/invalid reference, malformed events, or no usable state-change path → null. Repeating a state can have zero alignment cost. | ratio ↑ |
code-search-recall | Located file resources overlapping the reference patch / distinct reference files | Missing/invalid patch or malformed resources → null; valid empty resources → 0. | ratio ↑ |
code-read-precision | Distinct nonconsequential read/inspect targets in the reference patch / distinct read or inspected targets | Missing/invalid patch, malformed actions/targets, or no qualifying reads → null; no overlap → 0. | ratio ↑ |
code-edit-precision | Distinct consequential edit targets in the reference patch / distinct edited targets | Missing/invalid patch, malformed actions/targets, a nonconsequential edit, or no edits → null; no overlap → 0. | ratio ↑ |
process-alignment-fitness | Correct first tool + correct last tool + allowed adjacent transitions, divided by (call count + 1). Uses config.model and calls sorted by unique eventIndex. | No model, malformed/oversized model, or empty/invalid/duplicate-indexed calls → null; one call still gets two boundary checks. | ratio ↑ |
tool-wise-score has a native stopping and weighting rule. He et al., TRAJECT-Bench, v2, §4.1 “Metrics”, distinguish tool-name Exact Match from parameter-level Tool Usage. They report separate measures, not GH-AW’s half-credit for a correct name plus argument credit, accrued only until the first name mismatch.
trajectory-ndtw adapts a named metric. Ilharco et al., General Evaluation for Instruction Conditioned Navigation using Dynamic Time Warping, arXiv:1907.05446v2, §2, equations 1–2, normalize DTW cost by reference length and a distance threshold before exponentiating. GH-AW uses exact state IDs, a mismatch cost of 1 and a unit distance threshold instead of physical navigation distances. It does not apply the paper’s separate success gate (SDTW).
File scores compare distinct paths after trimming whitespace, a leading ./, and leading slashes. A published comparison is TrajEval in Kim et al., Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Code, arXiv:2603.24631v2, §2.2, equations 1–3. Its three denominators explain why the names sound alike but the results are not interchangeable:
- Search recall (eq. 1): both use gold modified files as the denominator; GH-AW uses located file resources rather than only files viewed.
- Read precision (eq. 2): TrajEval compares observed and gold modified functions. PR #67742 explicitly limits the grader to distinct read/inspect files.
- Edit precision (eq. 3): TrajEval compares functions in the final candidate patch with gold functions. PR #67996 uses files in consequential edit events; a reverted edit can still count. Neither the file score nor the paper measures line/hunk precision.
These are retrospective method matches, not a citation found in those PRs. As TrajEval §2.3 notes, overlap with one reference patch does not determine whether an action was necessary or correct. Reference and process tests
process-alignment-fitness checks direct successors, not an optimal alignment. Leemans, Poppe and Wynn, Directly Follows-Based Process Mining: Exploration & a Case Study, §III(d), definitions 1–2, p. 28, define a valid trace by its start, consecutive edges and end. That is a binary membership test. PR #68048 awards partial credit by averaging the n + 1 checks for n calls. It does not replay a model or minimize insertion/deletion costs.
Custom IDs and metric selectors
Section titled “Custom IDs and metric selectors”operational-value is a reserved custom ID, not a 36th built-in. Its workflow-supplied script returns an ordered, nonempty array of unique {id, value} metrics. The first value is the grade; remaining values are diagnostics, not separately registered graders. The workflow defines the unit and formula; the default direction is higher-is-better. A null primary is unavailable even if a diagnostic is numeric.
An ordinary custom ID requires its own synchronous script, evidence rule, and unit; a threshold also requires a direction. It returns a finite number, null, or an object with such a value. Invalid returns and script failures are errors. Both custom forms run in the separate graders job, never in conclusion, and cannot override built-ins. grader:<id> and graders.<id>.value are two experiment selectors for the same grade. See the grader specification, ordinary custom tests, and operational-value tests.