Commit 544fa69
authored
feat: 0.24.0 — DX cleanup, strict indices, error taxonomy (#47)
* feat: 0.24.0 — DX cleanup, framing, stability tags, biome lint
DX-only release. No runtime behavior changed; positioning, contract clarity,
and developer onboarding all upgraded to senior-staff bar.
README reframed as the substrate for self-improving agents. The package
has shipped EvalCampaign, replay, GEPA / reflective mutation, auto-research,
active curriculum, contamination probes, tournaments, compute curves, PRM,
off-policy estimators, and sequential anytime-valid stats since 0.22 — the
README now actually names them.
src/rl/index.ts carries @stable / @experimental JSDoc on every re-export.
Stable: run-record-adapters, verifiable-reward, preferences, off-policy,
tournament, contamination, compute-curves. Experimental: process-reward,
adversarial, active-curriculum, reward-hacking, adaptation-eval, exporters,
rl-campaign, predictive-validity-researcher, auto-research. Tags emit into
dist/rl.d.ts so IDE hover surfaces stability at the call site.
Added biome + format/lint scripts. biome.json codifies the project style
(no semicolons, single quotes, 2-space indent, 100 col). Auto-format applied
across src/. Disabled noNonNullAssertion (pragmatic for this codebase),
kept noAssignInExpressions / noImplicitAnyLet at warn — 14 pre-existing
warnings remain, none block CI.
Added .github/workflows/ci.yml — typecheck + lint + test + build + Python
pytest on every PR. Previously only publish-on-tag exercised this surface.
Added ReplayCache.entries() — public iterator replacing the private
byKey bracket-access escape hatch in iterateRawCalls.
Added per-example READMEs for multi-shot-optimization and same-sandbox-harness.
Added clients/python/examples/judge_anti_slop.py — runnable script doubling
as pytest, anchoring the judge API contract (composite range,
RubricNotFoundError, ValidationError).
Fixed: reflective-mutation autoCloseTruncatedJson local `escape` shadowed
the global; renamed to `escaped`.
npm + PyPI version-locked at 0.24.0.
* feat(0.24.0): strict indices, error taxonomy, subpath-forced imports
DX + correctness pass. No production behavior moved; consumer contracts
tightened across the board.
Strict indices. Flipped noUncheckedIndexedAccess: true. 251 latent
T | undefined sites surfaced across ~70 files; all fixed with the right
idiom — `!` for loop-bound or known-constant indices (honest), explicit
guards for external lookups / Map.get / regex match groups, accumulator
patterns refactored to capture-then-assign instead of double-read.
Subpath imports forced. Deleted 6 leaky root wildcards (./rl, ./pipelines,
./builder-eval, ./meta-eval, ./prm, ./trace-analyst). Added 7 new subpaths
in package.json + tsup.config.ts. Root re-exports retained only for the
load-bearing capture-integrity surface (./trace, ./knowledge, ./governance).
Error taxonomy. New src/errors.ts: AgentEvalError base + ValidationError,
NotFoundError, ConfigError, CaptureIntegrityError, JudgeError,
VerificationError, ReplayError. Re-parented 10 existing custom errors.
Migrated ~25 user-facing throws to typed errors across rl/, replay,
sandbox-harness, statistics, release-confidence, visual-diff,
counterfactual, run-critic, observability. Internal invariant guards
intentionally left as plain Error.
LlmRouteAssertionError.code → reason. The route-specific reason moved
off .code so it doesn't shadow the AgentEvalError category code
(now 'capture_integrity'). Breaking, but greenfield.
Gates: typecheck 0 errors, lint 0 errors (14 pre-existing warns), test
1019/1019, build clean, OpenAPI emits.
* chore: gitignore claude code runtime lock1 parent 60c8cd3 commit 544fa69
215 files changed
Lines changed: 5908 additions & 3271 deletions
File tree
- .github/workflows
- clients/python
- examples
- src/agent_eval_rpc
- examples
- multi-shot-optimization
- same-sandbox-harness
- src
- benchmarks
- routing
- builder-eval
- governance
- knowledge
- meta-eval
- pipelines
- prm
- rl
- telemetry
- trace-analyst
- trace
- types
- wire
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
3 | 83 | | |
4 | 84 | | |
5 | 85 | | |
| |||
0 commit comments