Skip to content

Repository files navigation

experiments

GitHub stars

Karpathy-style experiment framework for Atris.

This repo defines the schema, validation rules, and benchmark harness for self-improvement loops. Live experiment packs belong inside product repos at atris/experiments/.

What This Is

An experiment is not "the agent rewrote its prompt and said it improved."

An experiment is:

  1. one bounded target
  2. one external metric
  3. one keep/revert loop
  4. one append-only log

If the metric goes up, keep the change. If it does not, revert it.

Schema

atris/experiments/
├── README.md
├── validate.py
├── benchmark_validate.py
├── benchmark_runtime.py
└── <experiment-slug>/
    ├── program.md
    ├── measure.py
    ├── loop.py
    ├── results.tsv
    ├── reset.py            # preferred
    ├── proposals/          # optional
    └── <bounded-target>    # candidate.py, system_prompt.txt, etc.

Rules

  1. One bounded mutation target per experiment.
  2. measure.py must use an external metric the agent cannot fake.
  3. loop.py must keep only improvements and revert regressions.
  4. program.md stays short and task-specific.
  5. results.tsv stays append-only.

Repo Contents

  • template/pack/ - starter files for a new experiment
  • validate.py - structural and bloat checks
  • benchmark_validate.py - validator benchmark on fixed good/bad fixtures
  • benchmark_runtime.py - runtime benchmark on example packs
  • examples/ - tiny reference implementation

Example

Start with the smallest honest pack:

examples/smoke-keep-revert/
├── candidate.py
├── measure.py
├── loop.py
├── reset.py
├── results.tsv
└── proposals/
    ├── bad_patch.py
    └── fix_patch.py

What it does:

  • candidate.py starts broken on purpose
  • measure.py scores it on a fixed word-count test
  • bad_patch.py makes it worse
  • fix_patch.py actually fixes it
  • loop.py keeps only the fix

Run it:

python examples/smoke-keep-revert/reset.py
python examples/smoke-keep-revert/loop.py \
  --proposal examples/smoke-keep-revert/proposals/bad_patch.py \
  --proposal examples/smoke-keep-revert/proposals/fix_patch.py

Visual:

broken target
   ↓
score = 0.2
   ↓
bad patch
   ↓
score = 0.0
   ↓
REVERT
   ↓
good patch
   ↓
score = 1.0
   ↓
KEEP

Commands

python validate.py examples
python benchmark_validate.py
python benchmark_runtime.py

Atris ecosystem

Spec for atris/experiments/ packs in product repos. See atris · autoresearch skill

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages