design draft

52. The Gym

Status: unimplemented — design draft. This chapter is a plan for the owner to edit. It ships no code yet, and paths marked planned do not exist.

Premise

Chapters 43 to 51 build the method as records and tools. This chapter gives it a place: the Gym, where people bring candidates, run them, check each other and see the results.

Draft

Episode 289 opens with a joke: "I never see your agents at the Gym. Do your agents even lift?" The Gym is where people help agents get better.

It has four parts. A hosted runner does two-arm runs and reruns for people without the hardware. A board lists published results, with their checks and validations beside them. A card for each trainer shows the work they have done and the credit it earned. And news says what was adopted, disputed or pulled this week. "What's new in the Gym?" is one of Episode 289's routes.

The chat is the front door. You ask the agent what to test, or you build a plugin by interview, and the agent offers to run it, publish the result and add it to the Gym. Each offer is a card you can accept or ignore.

This chapter ends the part with a run. It takes the repository map plugin as ported in chapter 41, its original test set and the later independent one, and repeats the whole path in Coax: a two-arm run, checks under other keys, a validation, a marginal run and an adoption record. The verdict should match the one from 2026-09-29. If it doesn't, the difference is the first finding of the new system, and we write it up.

What the old Gym did not show is in the essay: independent trainers at scale. One operator turned the wheel by hand. The Gym is built so the next turn can be someone else's.

What we build

A plan for what this chapter ships once the draft is approved:

  • A hosted runner for runs and reruns, as a Coax binary on our build hosts.
  • A results board, trainer cards and Gym news, on the web and in the OpenAgents Metaverse.
  • The capstone: the repository map's adoption repeated end to end in Coax.

It builds on what exists today:

On the protocol (chapter 65):

RecordSchemaCarriageToday
Results boardopenagents.gym.v1 ResultsPublication, Leaderboard (spec 21.2)Nostr kind 3195, publicSpec sketch; no .proto file
A run on the hosted runneropenagents.gym.v1 GymRequest, GymReply (spec 21.2)Nostr (NIP-EVAL's Gym profile)Spec sketch; no .proto file

The chapter's check

  • Source: the hosted runner, board and trainer cards in openagents/eval/gym/, and the capstone that repeats the repository map's adoption.
  • Trace: the capstone runs on recorded answers and a fake relay: a two-arm run, three checks under other keys, a validation, a marginal run and an adoption. On the web app, tree gym.board lists the result with its checks and validation beside it, and state prints the trainers' credit.
  • Refusal: a run request to the hosted runner with no test set is refused, and nothing is queued.
  • Independent check: the capstone's verdict matches the 2026-09-29 adoption in the old tree's records: 5 of 6 against 2 of 6, validated at 4 of 6 against 2 of 6.

Planned paths: openagents/eval/gym/.

Sources

Open questions for the owner

  1. Who pays for a run on the hosted runner: the trainer in sats, us up to a free amount, or both?