Skip to content
devalparikhPublic

About

continual learning eval harness for any agent system

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AutoEval

AutoEval is a hosted evaluation and observation workspace with a FastAPI backend and Next.js dashboard. Applications use the @devalparikh/autoeval SDK in packages/trace-feed to send app-selected observations to /api/backend/v2/traces, retaining their own inference and tool loops. Operators create app keys and review observations in /applications on the Vercel/Supabase instance. See the Lifty integration guide and SDK contract.

The repository and SDK are licensed under the MIT License, copyright 2026 Deval Parikh. Package visibility is managed separately in GitHub Packages.

The workbench also builds, traces, versions, and evaluates LangGraph agent systems. Each system owns its graphs, prompts, traces, datasets, evaluation runs, and results so every run is reproducible and cross-system combinations are rejected. Local development and self-hosting remain supported paths; hosted ingestion does not require moving application execution into AutoEval.

What works

  • Immutable LangGraph and prompt versions with content hashes
  • End-to-end traces with per-node inputs, outputs, latency, token usage, and cost
  • Draft datasets that accept reviewed trace examples, then become immutable when finalized
  • Custom models with local MLX LoRA training on finalized datasets and downloadable adapters
  • Trustworthy trace-to-dataset provenance with idempotent promotion and reverse membership
  • Runtime and evaluation trace origins recorded as separate facts from dataset membership
  • Evaluation runs across multiple models and graph versions with exact match, accuracy, macro precision, recall, F1, cost, and latency, plus each graph version's change against the earliest one
  • Capability-aware OpenRouter, local LM Studio, and deterministic mock inference providers behind the same interface
  • Optional, disabled-by-default local CLI provider boundary
  • Seeded Incident Triage and Portfolio Analyst product flows
  • Deterministic portfolio allocation, concentration, bucket, liquidity, and scenario analysis
  • Immutable server-owned portfolio snapshots plus covered-call screening over locked fixtures or refreshed option data
  • A dedicated system run page that persists every execution as a trace
  • In-place schema migrations and SQLite foreign-key enforcement
  • A sidebar with collapsible list panes and a ⌘K command menu for pages, traces, datasets, and models
  • FastAPI unit and integration tests plus frontend unit and Playwright test harnesses

Coding harnesses

Use Import → Connect a coding harness for Claude Code, Codex, Hermes, OpenCode, Pi, or a compatible client. Capture through a local recorder in front of CLIProxyAPI, review conversations into training datasets, and compare real harness runs on frozen coding tasks. See the setup and benchmark guide.

Local setup

Requirements: Python 3.11+, Node 20.9+, and npm.

cp .env.example .env
make setup
make dev

Open http://localhost:3000. The API runs at http://localhost:8000, with interactive development docs at http://localhost:8000/docs. Both servers listen on loopback only, so the workbench is not reachable from other machines; the frontend also refuses API requests addressed to any host other than this machine.

OpenRouter is optional. Add OPENROUTER_API_KEY to .env, then choose an OpenRouter model on a system's Run or Evaluations page. The adapter posts to the fixed API endpoint https://openrouter.ai/api/v1/chat/completions; OPENROUTER_APP_URL=http://localhost:3000 is only the optional application-attribution referrer, not the API base URL. The mock models require no network or secrets.

The checked-in model catalog currently includes GPT-5.6 Luna (not “Luma”), DeepSeek V4 Flash, and NVIDIA Nemotron 3 Ultra (free). Model request parameters are capability-driven. The free Nemotron route is restricted to inputs explicitly marked synthetic because its provider policy is not appropriate for confidential portfolio data.

LM Studio is optional and off by default. Start the server and load a model from LM Studio's Developer tab, or use its CLI. Then list the identifiers exposed by the OpenAI-compatible API:

lms server start
lms load
curl http://127.0.0.1:1234/v1/models

Set ENABLE_LM_STUDIO=true and add one or more comma-separated identifiers to LM_STUDIO_MODELS in .env. Keep LM_STUDIO_BASE_URL=http://127.0.0.1:1234/v1 unless the local server uses another loopback port. If LM Studio requires authentication, add its token as LM_STUDIO_API_TOKEN. Restart AutoEval, then choose the resulting lmstudio/<identifier> model on a Run or Evaluations page. AutoEval never discovers or loads models during startup. LM Studio requests stay on the configured loopback address, do not follow redirects or use proxy environment variables, and record API cost as $0. Token counts come only from LM Studio's response.

Live portfolio option chains are optional. The initial adapter uses Tradier's fixed official API endpoints and never accepts a request-supplied URL. To enable it, set OPTIONS_MARKET_DATA_PROVIDER=tradier-sandbox or tradier-production and add TRADIER_API_TOKEN. The sandbox uses 15-minute delayed stock/options data and does not provide Greeks; production brokerage accounts receive real-time quotes, while Tradier documents Greeks as hourly. With the default unconfigured provider, real-portfolio refreshes fail clearly without making a network request; synthetic demos remain key-free.

Portfolio Q&A selects indexed state through the graph node's server-owned resource policy, never through business input: a direct run can resolve the current snapshot for a stable portfolio identity, while a dataset or evaluation locks the exact resolved snapshot ID. Live option-chain refresh is also separate from business input. Direct runs default capture_node_outputs to false; they still record bounded live-observation metadata on the span, but persist the normalized observation only when capture is explicitly enabled. Trace-to-dataset promotion rejects any used live observation that was not captured, while evaluations replay locked IDs without calling the network. Generic portfolio questions need no options snapshot; covered-call questions with no locked observation fail closed. Every observation records source, mode, registered provider, schema version, as-of/fetch time, quote freshness/delay, separate Greeks provenance, and contract count without persisting vendor references or putting the full chain into graph state, model input, or traces. AUTOEVAL_MARKET_DATA_TIMEOUT_SECONDS, AUTOEVAL_MARKET_DATA_MAX_SYMBOLS, AUTOEVAL_MARKET_DATA_MAX_EXPIRATIONS_PER_SYMBOL, AUTOEVAL_MARKET_DATA_MAX_CONTRACTS, and AUTOEVAL_MARKET_DATA_MAX_RESPONSE_BYTES bound the adapter. When earnings timing is unknown and earnings_blackout is enabled, the deterministic policy rejects the candidate instead of assuming no event. See runtime-input-snapshots.md for the replay contract.

For local fine-tuning, open Custom models and install the optional training dependencies with .venv/bin/python -m pip install -e 'backend[training]' on an Apple Silicon Mac. Select a base model and finalized dataset, review the training example, then start training. See custom-models.md for the data format, setup, lifecycle, and adapter export.

Tests

make test
make check
make e2e
make verify

make check is the practical edit loop: an API-contract drift check, backend lint, format checks, and tests plus frontend lint, type checks, and unit tests. After changing a response schema, run make api-types to regenerate the frontend's OpenAPI types. make verify adds the production frontend build and Playwright end-to-end suite.

Run make seed to ensure the built-in flows, immutable synthetic portfolio snapshots, and demo results exist without starting the servers.

Project map

backend/src/autoeval_api/
  api/            Route groups, request dependencies, middleware
  agent_systems/  Built-in agent definitions, handlers, scoring, seed data
  graph/          Generic LangGraph topology, registries, trace-aware runner
  inference/      Provider contract, adapters, and provider registry
  training/       Dataset preparation and optional local MLX training
  services/       Queries and workflows for each product domain
  app.py          Application composition and dependency injection
  main.py         Thin ASGI export
  models.py       SQLAlchemy persistence models
  schemas.py      Pydantic API contracts
frontend/src/
  app/            Thin Next.js route shells
  components/     Shared product UI primitives
  features/       Domain screens, forms, state, and visualizations
  lib/            Typed API client and cross-feature utilities
docs/
  architecture.md
  agent-flow-refactor-plan.md
  extension-guide.md
  code-security-review.md
  dependency-security-report.md
  security-remediation-status.md
  external-skill-review.md

See the architecture, multi-system and provenance design, and extension guide before adding an agent system, inference provider, node handler, scorer, API domain, or frontend feature.

Important boundaries

  • Versions are immutable. Create a new version instead of editing a final record.
  • Only finalized dataset versions can start evaluations.
  • Provider keys stay in the backend environment and are never exposed through NEXT_PUBLIC_* values.
  • The CLI provider is off by default, uses fixed commands without a shell, and has timeout and output limits.
  • Evaluation work runs in-process. There is no durable queue, worker recovery, or multi-instance coordination yet.

Deployment boundary

The hosted path uses Vercel's Next.js/FastAPI services with PostgreSQL and Supabase authentication. Application keys are scoped separately from dashboard operator access. See the hosted client contract and setup guide for the integration contract.

Local development retains SQLite, seed data, and an auth-off loopback profile. The legacy HTTP Basic profile remains available for private single-user previews; it does not provide scoped Supabase user access. See Vercel deployment. Other operators' installation and release boundaries are documented in the customer deployment contract and server release contract; the running instance does not by itself establish a published, generally available server release.

Current limitations

  • The default local profile has no authentication. Do not expose it to a network or place it behind a public reverse proxy; authenticated hosted profiles have separate configuration requirements.
  • The workspace ships three built-in runnable systems; creating or importing arbitrary systems still uses code-level extension seams rather than a generic creation UI.
  • Portfolio Analyst is presented as one product with index and query flows. Each flow has its own runtime registration and independently versioned LangGraph; the persisted AgentFlow normalization remains the additive migration documented in agent-flow-refactor-plan.md.
  • Portfolio Q&A resolves an immutable snapshot ID from the local database. Tradier is the first optional options-chain adapter; no broker trading/order adapter is implemented, and stale, missing, or incomplete market data fails closed.
  • A graph definition's output_node is validated, but its handler currently needs to return the top-level output key for a focused trace result. Arbitrary output-node keys are not extracted.
  • Incident traces retain full local payloads. Portfolio traces apply a code-level projection that removes identity-like fields and raw dollar values, but configurable retention and deletion policies are not implemented.
  • Multimodal inputs must be provider-ready JSON references. Binary upload/storage and image or audio generation outputs are not implemented.

The preserved before-fix reviews are dependency-security-report.md and code-security-review.md. Their file and line evidence reflects the captured pre-refactor layout. The current disposition of the code findings is tracked in security-remediation-status.md. Read them before changing exposure, provider access, or dependency versions.

About

continual learning eval harness for any agent system

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages