npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reaatech/agent-eval-harness-golden

v0.1.0

Published

Golden trajectory management, comparison, and curation for agent-eval-harness

Readme

@reaatech/agent-eval-harness-golden

npm version License CI

Status: Pre-1.0 — APIs may change in minor versions. Pin to a specific version in production.

Golden trajectory management for agent evaluation regression testing. Create, annotate, validate, and curate reference trajectories, then compare candidate agent runs against them with detailed diff analysis and regression detection.

Installation

npm install @reaatech/agent-eval-harness-golden

Feature Overview

  • Golden trajectory CRUD — load, create, update, and filter reference trajectories by tags and scenarios
  • Annotation workflow — mark expected turns, add quality notes, tag golden trajectories for organization
  • Curation pipeline — structured workflow: identify → annotate → validate → publish with batch quality checks
  • Comparison engine — diff candidate trajectories against goldens with turn-level similarity scoring
  • Regression detection — identify missing turns, tool mismatches, and low-similarity responses
  • Batch comparison — compare multiple candidates against a library of golden references

Quick Start

import { createGolden, compareAgainstGolden, quickCreateGolden } from '@reaatech/agent-eval-harness-golden';
import type { Trajectory } from '@reaatech/agent-eval-harness-types';

// Quick creation for simple scenarios
const golden = quickCreateGolden(trajectory, 'password-reset', ['auth', 'critical']);

// Compare a new run against the golden
const result = compareAgainstGolden(golden, candidateTrajectory, { similarityThreshold: 0.85 });
console.log(`Similarity: ${result.similarity}, Regressions: ${result.regressions.length}`);

API Reference

Golden Manager

| Name | Type | Description | |------|------|-------------| | loadGoldenTrajectories(jsonlContent) | function | Parse JSONL string into an array of GoldenTrajectory objects | | validateGolden(golden) | function | Validate a golden trajectory structure; returns { valid, errors, warnings, score } | | goldenToJSONL(golden) | function | Serialize a golden trajectory back to JSONL string format | | createGolden(trajectory, options) | function | Create a new golden trajectory from a candidate trajectory with metadata options | | updateGolden(golden, changes) | function | Update a golden trajectory's metadata and bump the updatedAt timestamp | | filterByTags(goldens, tags) | function | Filter golden trajectories by tag intersection | | getByScenario(goldens, scenario) | function | Search golden trajectories by scenario name (description or trajectory ID match) |

Comparison Engine

| Name | Type | Description | |------|------|-------------| | compareAgainstGolden(golden, candidate, config?) | function | Compare a candidate trajectory against a golden; returns TrajectoryComparisonResult | | batchCompare(golden, candidates, config?) | function | Compare multiple candidates against a single golden in one call | | findBestGolden(candidate, goldens, config?) | function | Find the best-matching golden for a candidate across a golden library |

Curation

| Name | Type | Description | |------|------|-------------| | GoldenCurator | class | Structured curation workflow with start(), annotateTurn(), autoAnnotate(), runQualityChecks(), validate(), publish(), exportJSONL() | | createCurator(trajectory) | function | Factory: returns a new GoldenCurator instance | | quickCreateGolden(trajectory, description, tags) | function | One-shot: auto-annotate, validate, and publish a golden in a single call | | batchQualityCheck(goldens) | function | Run quality checks across a library of goldens; returns per-golden results | | generateCurationReport(goldens) | function | Generate a human-readable curation report with issues and suggestions |

Types

| Name | Type | Description | |------|------|-------------| | GoldenTrajectory | interface | Golden reference with id, metadata (version, tags, description, quality notes), and trajectory | | GoldenMetadata | interface | Version, timestamps, description, tags, quality notes, expected outcomes | | GoldenValidationResult | interface | Result of validateGolden with valid, errors, warnings, score | | TrajectoryComparisonResult | interface | Comparison output: similarity, turnComparisons, matchingTurns, divergentTurns, passesThreshold, regressions, diffSummary | | TurnComparison | interface | Per-turn diff: turnId, similarity, contentMatch, toolMatch, differences | | Regression | interface | Detected regression with type (tool_mismatch / content_divergence / missing_turn / extra_turn), severity, turnId, description | | ComparisonConfig | interface | Comparison options: similarityThreshold, compareTools, semanticComparison, turnMatching | | CurationState | interface | Curation workflow step and accumulated annotations | | TurnAnnotation | interface | Per-turn annotation: turnId, expected, qualityNotes, alternatives | | QualityCheckResult | interface | Curation quality check output: passed, score, issues, suggestions |

Related Packages

| Package | Description | |---------|-------------| | @reaatech/agent-eval-harness-types | Shared domain types and Zod schemas | | @reaatech/agent-eval-harness-trajectory | Trajectory loading, evaluation, and golden comparison | | @reaatech/agent-eval-harness-tool-use | Tool-use validation and schema compliance | | @reaatech/agent-eval-harness-cost | Cost tracking, budgets, and reporting | | @reaatech/agent-eval-harness-latency | Latency monitoring, SLA enforcement, and optimization | | @reaatech/agent-eval-harness-judge | LLM-as-judge with calibration and consensus | | @reaatech/agent-eval-harness-golden | Golden trajectory management and curation | | @reaatech/agent-eval-harness-suite | Suite runner, results aggregation, and comparison | | @reaatech/agent-eval-harness-gate | CI regression gates with JUnit and GitHub output | | @reaatech/agent-eval-harness-mcp-server | MCP server with three-layer tool architecture | | @reaatech/agent-eval-harness-cli | Command-line interface | | @reaatech/agent-eval-harness-observability | OTel tracing, metrics, structured logging, and dashboards |

License

MIT