RL environments field guide
03 / Build contract

What the first release must prove

Build an expert task platform that produces executable environments, runs real RL, and delivers a checkpoint with an honest evaluation.

Plan, not a product. Nothing here is built or measured yet.7 min read3 diagrams
01 / The boundary

One narrow product, end to end

The first release does one of each, and all of them work together.

1capability family
1typed tool environment
1model family
1training recipe
1customer project at a time
Severalinvited contributors, with more than one tenant in the data model

In scope

Expert task creationIndependent reviewEngineer-built environments and verifiersRL that updates parametersA usable checkpointComparison on separate tasks

Later

Public marketplaceUploaded executablesCustomer GPU provisioningBrowser and shell agentsMultimodal trainingEvery available model

The first demo needs no paying customer. The founder can authorize an internal project on permitted open weights and original synthetic tasks, with real review and real training. Label it internal and keep revenue claims out.

Every pilot delivers

Licensed task releaseEnvironment packageVerifier specificationCheckpoint or adapterReproducible comparisonKnown limitationsSettings and cost summaryFailure examplesLoading instructions

A model that loads only on its author's machine does not count as delivered. Hidden test answers stay out of public demos.

Not needed yet

Our own walletTax enginePublic matchingContractor rankingOne chosen industry

The first environment is synthetic and typed, and the pilot brief supplies the real capability. Use established providers for money and identity.

02 / Terms and rules

Ten nouns and twelve rules

TaskGoal, start state,actions, judgingruleTask revisionImmutablesnapshot. Reviewspoint here.Dataset releaseExact revisions,each in one splitTraining runFrozen intent, data,config, budgetAttemptOne execution. Arestart is a newone.EnvironmentServes tools,applies actionsVerifierJudges state by privaterulesRolloutOne whole modelattemptCheckpointWeights or adapter,plus base modelEvaluationVersioned comparison on afixed releasefreezespinnedinputrunssamplesupdatesscored byacts incompared in
Each noun points at an immutable version of the one before it. That chain is what lets a result be traced back.
03 / Permissions

Login proves who you are. Membership grants access.

RoleTask contentReviewsEnv and verifierTrainingFinal testReportsPay recordsAccounts
Training expertownreview sampleown
Training reviewerassigneddecide
Benchmark experttest taskstest tasksauditsign offown
Adjudicator or ops leadquarantineresolverecord
Environment engineermaintain
ML operatorrun
Evaluation owneroperateapprove
Customer viewerown
Platform adminaudited
Blank means no access through that role. One person may hold several roles, but author and approver must differ, and nobody crosses between the two expert sides of a project. Before an outside efficacy claim, a second qualified person reviews the experiment.

How people's data and work are treated

Keep provider references, not identity documentsQualification samples are never sold as production dataEvery qualification decision can be appealedEmergency admin access is loggedNo hidden impersonation
04 / Lifecycles

Tasks and runs move through named states

DraftSubmittedFrozenIn reviewIndependentAcceptedValidatedTests passReleasedPinnedReworkRejectedAdjudicatedQuarantinedchangesnew revisionquality orrights issuenew revision, reviewed again
Reviews bind to one exact revision. A screenshot of a plausible task is not enough, it must initialize, accept actions and give a checkable outcome.
DraftValidatingAwaitingapprovalQueuedStartingRunningFinalizingCompletedInterruptedFailedBad inputs, capacity, data, numbers, artifactCancelrequestedCancelledStop confirmedapproved new attempt
A retry keeps the old attempt and its costs, and a changed model, dataset, reward or config is a new run. Dashed red shows failure and cancellation, which any queued or active state can reach.
What a task must contain
GroupContents
IdentityTenant, project, task and revision IDs, schema version, author, time
GoalInstructions, expected skill, difficulty reason, completion condition
Starting stateFixture digest, environment version, scenario group, seed
Allowed behaviorTool schema, operations, step, time and token limits, forbidden effects
Private judgmentExpected state, good and bad cases, reward, partial credit, verifier version
ProvenanceSources, licenses or consent, allowed uses, retention, sensitivity
ReviewRubric version, reviewer, decision, issue codes, reason, adjudication

The editor shows a plain preview of the instructions and treats uploaded content as text or sanitized markup, never as code.

Reviewers check that a task is understandable, solvable, realistic, unambiguous, licensed and correctly scored, using one good attempt and several realistic bad ones. If two sensible readings score differently, it goes back.

05 / Requirements

80 requirements, grouped into 15 proofs

A requirement passes only with its evidence. Open a group for the one-line version of each.

SuiteCoversWhat must be shown
T-01 Project and workforceR-01 to R-07Approved project, authorized contributor, claim race, one payable, confirmed payment
T-02 Task lifecycleR-08 to R-13Safe edits, revision-bound review, no self-review, duplicates caught, quarantine spreads
T-03 EnvironmentR-14 to R-20Deterministic replay, isolation, idempotent actions, limits, cleanup, pinned digests
T-04 VerifierR-21 to R-25Bypass attempts fail, invalid scores rejected, independent audit, versioned rescore
T-05 Data and rightsR-26 to R-30, R-56, R-57Group-disjoint splits, blocked test access, full lineage, deletion drill
T-06 Real GPU trainingR-31 to R-38Exact manifest, valid traces, optimizer updates, reload, recovery, stop cap
T-07 EvaluationR-39 to R-44Fair baseline, sealed test, grouped uncertainty, reward audit, explicit decision
T-08 Job reliabilityR-45 to R-49Duplicates, unknown submit, stale lease, partial checkpoint, cancel race
T-09 DeliveryR-50, R-51, R-66Rights-checked export, expiring access, clean-machine loading, acceptance record
T-10 SecurityR-52 to R-59, R-64Role matrix, cross-tenant IDs, CSRF, upload abuse, answer isolation, secret scan
T-11 OperationsR-60 to R-65Alert drill, rollback, restore, compute stop, cost reconciliation, handoff
T-12 BaselineR-67 to R-70No approval without it, frozen protocol, hidden from training, stale ones refused
T-13 Two sidesR-71, R-72Second-side grant rejected, benchmark-side authors only, sign-off required
T-14 Attempt reviewR-73 to R-76Frozen sample, no test attempts, scores unchanged, findings become versions
T-15 Lab accountR-77 to R-80Rehearsed install, weights stay put, revocation stops us, access disclosed
R-01 to R-13, projects and tasks
  • R-01No run while a brief field or rights record is missing
  • R-02Invited but unapproved people cannot claim work
  • R-03Accepted terms version attaches to the assignment
  • R-04Concurrent claims produce one owner
  • R-05Replaying acceptance cannot create a second payable
  • R-06Paid needs outside confirmation, not an export
  • R-07Ops can explain any rejection and its rubric version
  • R-08A stale tab gets a conflict and keeps its local edit
  • R-09Later edits create a new revision, never alter the review target
  • R-10Self-review fails in API and database tests
  • R-11An invalid task cannot enter a frozen release
  • R-12A scenario group across splits blocks the release
  • R-13Quarantine blocks future runs and flags past ones
R-14 to R-30, environment, verifier and data
  • R-14Same actions from the same seed give the same state and score
  • R-15Invalid or cross-session actions cannot change state
  • R-16A duplicated request applies once and returns the original result
  • R-17Loops and floods end with a policy outcome and no leaked session
  • R-18The trace keeps the cause, so an outage is unscorable
  • R-19A cleanup drill finds no stale state
  • R-20A release cannot resolve a mutable image tag
  • R-21A forged success message cannot raise the score
  • R-22Labels cannot leak through files, logs, schemas, errors or network
  • R-23NaN, infinity, out-of-range and wrong-version scores are rejected
  • R-24Each release has a verifier test report and resolved disagreements
  • R-25A correction is a new version, and old scores stay
  • R-26No shared groups, sources or fixtures across splits
  • R-27Training credentials cannot list, read, decrypt or download the test
  • R-28A customer can see which capability and population results cover
  • R-29One expired license fails publication with a specific list
  • R-30A revoked asset lists everything downstream
R-31 to R-51, training, evaluation and runs
  • R-31The manifest resolves every input, with no mutable latest
  • R-32A small end-to-end run passes before any longer job
  • R-33Observations and padding never reach the policy loss
  • R-34Missing attempts never become invented zero rewards
  • R-35Logs show steps, finite gradients, parameter change and a reload
  • R-36Non-finite loss or broken updates fail the attempt
  • R-37Resume only from a complete compatible checkpoint
  • R-38A cap drill stops new work and terminates the job
  • R-39Both models run under one frozen protocol
  • R-40Success, reward, tools, latency, cost and violations report separately
  • R-41Uncertainty is estimated at the scenario-group level
  • R-42Human review can challenge the automated score
  • R-43Report says improved, regressed, no clear change or inconclusive
  • R-44Corrections create a new linked report version
  • R-45A provider exit code alone cannot complete delivery
  • R-46Repeated commands cannot create duplicate effects
  • R-47A submit timeout cannot launch a second accepted trainer
  • R-48A truncated upload cannot appear complete
  • R-49Cancelled only after provider termination evidence
  • R-50A clean environment loads the delivered model
  • R-51A revoked user cannot request a new download
R-52 to R-66, security and operations
  • R-52Revoked membership blocks requests despite a valid login
  • R-53Each role is tested against another tenant's data
  • R-54No credentials in source, images, browser, observations or logs
  • R-55A task cannot publish with an unapproved asset
  • R-56A manifest fails if use exceeds its rights record
  • R-57Deletion drill covers storage, versions, caches, exports and backups
  • R-58The app role cannot edit audit events
  • R-59No critical vulnerability or known bypass reaches customers
  • R-60An injected fault reaches an accountable operator
  • R-61Release drill covers migration, health, rollback and audit
  • R-62Restore meets measured targets and reapplies deletions
  • R-63A non-author can execute each runbook in staging
  • R-64Prompts and weights stay out of general analytics
  • R-65Pilot review separates each cost, including staff time
  • R-66A second engineer reproduces the evaluation on a clean machine
R-67 to R-80, the full engagement loop
  • R-67Approval fails without a finished baseline for that exact model and release
  • R-68The protocol freezes first, so a later candidate cannot change metrics or limits
  • R-69Training roles cannot read sealed baseline results through API, storage or reports
  • R-70A changed model, release, verifier or protocol invalidates the baseline
  • R-71A second-side grant fails in API and database tests
  • R-72A sealed release takes benchmark-side authors only, and a report needs expert sign-off
  • R-73Attempt samples follow a frozen rule, include high scores, and never touch the test
  • R-74A review records a finding and evidence, and stored scores stay unchanged
  • R-75Findings act through new revisions, verifier versions or a new linked run
  • R-76Demonstrations enter as a declared stage, and the report separates their gain
  • R-77A signed bundle installs in a separate rehearsal account first
  • R-78Lab weights and raw traces stay in the lab's account, and only agreed metrics leave
  • R-79The lab can revoke our role at any time, and that stops further work
  • R-80The report states which lab staff could reach the sealed test
06 / Limits

Proposed launch settings, to measure and not to promise

3tenants
25active contributors
5reviewers
2ML operators
1GPU run active globally
5,000revisions per project
8episodes per run
20 / 120stool calls and seconds per episode
10 / 100MiB per file and task
750 msp95 target for list and save
60 sstatus refresh, alert at 5 min stale
99.5%monthly web target
15 min / 4 hrecovery point and restore
Uploads: text, JSON, CSV, PNG onlyWCAG 2.2 AA as the UI targetNo stricter SLA until the team can run it

Before spending on data or GPUs

Task count is not a goal

Size the set from coverage, variation, precision and compute, after a paid first batch shows what breaks.

A tiny test set

Shows the pipeline runs. It is too small to claim a capability.

Check the starting model

If it always fails or always succeeds, rewards carry no signal. Fix difficulty before buying GPU time.

Warm starts

A supervised stage is recorded apart, so RL does not get credit for its gain.

Change a requirement by recording the change and its reason before the code moves away from it.

07 / Failure rules

Three rules cover most edge cases

A retry never doubles

Claims, payables, actions, approvals and dispatch all return the first result.

An error never becomes a score

Outages are unscorable. No padding with zeros and no plausible numbers.

Unknown means stop and check

Timeouts, revoked rights and lost heartbeats pause work until someone can verify.

The full register, 55 cases
AreaCase and required outcome
AccessInvite reused: bound to one account. User removed: rechecked per request. Cross-tenant ID: non-disclosing denial.
Claims and editsTwo claims: one wins. Browser crash: draft recovers. Author edits during review: review stays on its revision. Author reviewing via another role: rejected by identity.
QualityReviewer disagreement or collusion: hold and adjudicate. Paraphrases across splits: block. No valid solution: rework. License expired: quarantine and assess downstream.
UploadsLying type or size: reject. Upload after task deleted: orphan cleanup. Replayed link: needs a pinned version. CSV formulas: escape in exports.
EpisodesOther session's action: rejected. Write timeout: query the action ID. State leak: blocks release. Loops or floods: limit and record. Asks for secrets: denied at schema, service and network.
ScoringEnvironment down: unscorable. Invalid score: reject, pause if systematic. Reward shortcut: quarantine, new version, rerun.
JobsQueue duplicate: IDs and revisions. Commit but no send: outbox publishes later. Submit timeout: reconcile first. No GPU: visible wait and deadline.
TrainingOut of memory: fail, new settings mean a new config. NaN or zero update: stop. No reward variance: record and diagnose. Unscorable in group: discard or bounded retry. Stale policy: reject trace. Observations in mask: fail test.
ArtifactsCrash: interrupted attempt. Partial upload: no completion marker. Cancel race: committed transition wins. Late provider events: periodic reconcile. Late spend data: local caps.
EvaluationOutage: report it, same rerun rule for both. Reward up but audit fails: no better-model claim. No clear gain: say so. Test influenced tuning: retire it.
Delivery and payInterrupted download: resume and checksum. Revoked user: no new links. Duplicate callback: one payable, appended events.
Data and platformDeletion against retention: authorized hold. Restore brings data back: replay register. Bad migration: roll back image. Identity or secret outage: fail closed.
EngagementBaseline missing: approval blocked. Baseline stale: comparison refused. Person on both sides: rejected. Review finds an exploit: pause the release. Lab revokes our role mid-run: stop and record. Weights copied out: denied at storage and network.
08 / Screens

Seven workspaces, each with its failure states

Training expert

Invitation, assignments, task editor, attempt review queue, feedback, own pay

Benchmark

Test tasks, sealed results, attempt audit, sign-off

Review

Queue, revision compare, rubric, reference attempt, decision

Engineering

Environment versions, reports, release builder, rights checks

Research

Models, run config, approval, status, checkpoints, comparison

Operations

Membership, briefs, allocation, payables, disputes, audit, incidents

Customer

Progress, approved evaluation, manifest, download, acceptance

States each must handle
WorkspaceStates
Training expertEmpty queue, expired claim, draft conflict, upload processing, rejected, rework, suspended, sample closed
BenchmarkSide conflict, no baseline yet, stale baseline, sign-off withheld, disputed score
ReviewAuthor conflict, stale target, removed assignment, disagreement, quarantined asset
EngineeringMissing fixture, incompatible image, failed test, split collision, superseded release
ResearchPreflight failure, capacity wait, cancelled, cost cap, partial upload, inconclusive
OperationsDenied, duplicate payment reference, changed terms, revoked asset, deletion hold
CustomerNo report yet, revoked delivery, expired link, superseding report

Every state-changing request needs authentication, project authorization, validation, a request ID and an audit event when material. Lists use cursors. Long jobs return an ID.

09 / Build plan

Gates, not dates

Engineers estimate after the feasibility work. A missing owner blocks the related gate.

  1. Project definitionBrief, task family, rights, pay rules, cap and region.Founder, with ML and ops. Exit: approved brief
  2. Technical proofPin stack, run a supported tutorial, build a custom environment, prove an update.ML and environment. Exit: real checkpoint and reload
  3. Secure foundationInfrastructure as code, identity, RLS, uploads, audit, CI, backups.Platform. Exit: isolation and restore tests pass
  4. Expert workflowInvites, qualification, editor, review, adjudication, payables.Product and ops. Exit: paid batch of accepted tasks
  5. Reproducible releasesVerifier tests, split checks, private assets, manifests, baseline, two expert sides.Environment and evaluation. Exit: test data unreachable, saved baseline
  6. Managed RLPreflight, approval, dispatch, budgets, cancel, recovery, paid attempt review.ML and platform. Exit: run and failure drills pass
  7. Comparison and deliveryFrozen protocol, uncertainty, audit, clean loading, download.Evaluation and customer. Exit: accepted, outcome reported honestly
  8. Repeat and expandFix pilot failures, measure repeat demand, automate what repeats.Founder and engineering. Exit: second project, no rewrite
  9. Lab accountSigned bundle, narrow role, rehearsal install, revocation and no-egress tests.Platform and customer lead. Exit: lab security review passed, then its checkpoint

Deliberate cuts, and what would reverse them

AreaMVP cutKeep anywayExpand when
WorkforceManual qualification and allocationRevision-bound work, rights, payablesAllocation delays paid projects
TrainingOne recipe, one active GPU runFrozen manifests, real updates, budgetsPaid demand and measured use
EnvironmentsOne typed synthetic tool environmentVersioned tools, independent verifierA signed pilot needs more, threat model first
Customer accessReports and manual setupTenant isolation, audited deliveryRepeat customers need self-service
InfrastructureOne region, no KubernetesTwo zones, backups, infra as codeReliability or residency needs it
BillingManual invoices and paymentsUnique payables, settlement evidenceReconciliation volume justifies it
DataAssets in the operational storeLineage, rights, deletionRepeated outside ingestion
ComplianceContracts and tested controlsEvidence and named risk ownersProcurement needs audits or SSO
Decisions to close before implementation
DecisionStarting pointWho and when
Customer and capabilityOne a reachable team will inspect and pay forFounder and ML, before task authoring
EconomicsFixed scope with task, expert, compute capsFounder, before paying contributors
ModelQwen3-1.7B, first candidate, check licenseML, after preflight
HardwareOne 48 GiB GPU, profiled firstML and platform, after a measured run
Cloud and regionAWS, region by contract and costFounder and platform, before customer assets
Privacy and reusePer-project rights, no cross-customer reuse by defaultCustomer and business owner
EvaluationMetric, minimum gain, regressions, sampling, test ownerML and customer, before comparison
VersionsStable releases, or a tested immutable commitML and platform, at phase 1 exit
SupportNamed operator, contact, response hoursOps, before external access
Lab accessTheir account, narrow revocable role, weights stayLab and founder, before any lab checkpoint
Expert paySeparate rates for tasks, attempt reviews and benchmark workFounder and ops, before inviting either side

These are real inputs, not details an engineer should invent. A paid engagement stays blocked until they are recorded.

Lab accounts, the data pipeline, closing a project

Inside a lab's account. Specified in the HLD and LLD, and built after the open-weight proof. The first proof must not depend on receiving an unreleased checkpoint.

Data pipeline. Connectors, quarantine, dedupe, license checks, transforms, annotation, quality sampling and immutable versions, reusing the same rights and lineage model. Do not use a vector database as the record for contracts or releases.

Closing. Revoke access, settle payables, export records, stop compute, apply retention, verify cleanup. Deleting source data does not remove it from trained weights, so contracts must say how to handle affected checkpoints.

Sources
PreviousCritique