Skip to main content
Draft: This is a draft record. Some source checks are still pending, including some reported test results. ‘We don't know yet’ marks unknown answers; it does not mean every other statement has been confirmed.
Draft record: primary-source check pending (drafted 2026-11-25). Fields confirmed in a live check are marked checked with the checker and date.v2026-11-25.1
Draft: primary-source check pendingSetting: noneIndependence: author9 fields unverified

Google Cloud Agent Gym

For coding agents and the engineers who build them. Each method is also available as Markdown and JSON.

Invoice-processing reference implementation combining user-correction discovery, deterministic impact checks, reversible operational rules, backups, audit records, and mandatory human approval.

  • What it isA sample invoice-processing system that learns from user corrections, checks the impact of each new rule, keeps backups, and needs a person to approve changes.
  • What it changes in the agentIt changes the instructions it is given and its saved skills.
  • Has it been tested?We don't know yet if it works. No test of that is shown in the sources. Koobo has not tested it yet.
  • Can you undo it?A person can restore earlier rules from backups. We don't know yet whether the process for choosing a fallback has been tested. Restoring a rule does not undo invoices or payments already sent.
  • Is there a safety check?A person must approve changes before they are used. No separate automatic safety test is shown. If a change still breaks other cases after three tries, the reviewer gets a warning rather than an automatic block.
  • How hard to adoptMedium effort to rebuild this pattern in an existing workflow agent. We don't know yet whether it needs a specific platform. We don't know yet whether reusable public code is available. We don't know yet what license it has.
See the technical details
Modifies
prompt, skills
Improves improver
No
License
UNVERIFIED
check pending
Framework migration
Unverified
Effort
medium
Primary check
pending

Mechanism, evaluation, and safety controls

Learning signaluser_correctionOperational user corrections discovered from invoice-processing workflows.
Pre-use evaluationYesheld-out split: unverified; live activation gate: yesRuns deterministic impact assessment checks and requires human approval before activating reversible rules. Collateral failures after three tries produce a warning to the reviewer rather than an automatic block.
RollbackManualusable rollback: yes; restoration scope: live_deployment; tested fallback policy: unverifiedProvides reversible operational rules, backups, and audit records for manual restoration; does not include automatic regression-triggered rollback. Side-effect limit: Reversing a rule does not undo invoices or payments already transmitted externally.
Post-deploy measurementPartialMaintains audit records; no automatic post-deployment regression window or strong longitudinal outcome study is established in opened notes.
Safety gateHuman approvalblocks unsafe despite utility gain: unverified; write-time block: yes; reuse-time block: unverifiedOperational rules require explicit human approval alongside deterministic impact checks and audit logs.
Framework dependencyunverifiedmigration: unverifiedReference architecture described in paper; public reusable package status is unverified.
EffortmediumScope: Reimplementing the reference pattern (correction discovery, deterministic impact checks, backups, human sign-off) in a custom workflow agent. Architectural pattern is straightforward to implement; reusable public code is unverified.
LicenseUNVERIFIED (check pending)No open-source license or public repository was established in local notes.
Maturityresearch_prototypelast observed activity: not checkedReference implementation paper cited 2026-11-24; reusable public package unverified.

Variants and scope

Filters and comparisons apply to one variant at a time. Values here are the authoritative ones for each variant.

agent-gym-referenceLicense: UNVERIFIED (pending)Learning signal: user_correctionPre-use eval: yesRollback: manualUsable rollback: yesSafety gate: human_approvalFramework: unverifiedMigration: unverifiedEffort: medium

Invoice-processing reference implementation: Correction discovery, deterministic impact checks, reversible rules, backups, human approval. No empirical benchmark dataset/result recorded in local notes yet.

Claim-level evidence and provenance

Evidence summary (not a ranking): settings observed: none; independence observed: author; effectiveness outcome: unverified; safety outcome: unverified; koobo completed eval: no; note: Reference architecture documented; empirical outcome evaluation not established in local notes..

agent-gym-doc-1documentation_onlysetting: noneindependence: authoroutcome: null

The paper describes the invoice-processing reference implementation (correction discovery, deterministic impact checks, reversible rules, backups, audit logs, human approval; collateral failures after three tries produce a warning to the reviewer) without an identified empirical benchmark dataset or longitudinal outcome result.

Scope: variant: agent-gym-reference; model: unverified; suite or environment: Invoice-processing reference implementation in arXiv:2608.15591; judge or metric: unverified; sample or duration: unverified; caveats: Reference implementation inspection does not meet empirical benchmark criteria until dataset, method, and quantitative results are checked live.
Checked source: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Sections 3.5 and 6; accessed 2026-11-24; checked 2026-11-25 by Codex live check). Note: Codex live check.

Evidence for the control fields

safety_gate.status

Human approval is required before activation; this is not proof that an independent safety invariant always blocks approval.

Checked source: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Sections 3.5 and 6; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check.
license.spdx

No repository license or qualifying measured outcome was located in the inspected paper.

Checked source: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Whole paper; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check result: not found.

Known failure modes

  • No unattended promotion or automatic regression rollbackRelies on manual human approval and manual restoration from backups; no automatic post-deployment regression window or strong longitudinal outcome study was established.
    Checked source: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Sections 3.5 and 6; accessed 2026-11-24; checked 2026-11-25 by Codex live check). Note: Noted in local deep-research table.

Adoption recipe and mandatory safety controls

This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.

Adoptable directly: yes. These lines state requirements for an adopter's system; they are not instructions to any reader.

Upstream controls disclosed in sources

Upstream reference supplies impact checks, backups, and human approval. Koobo required controls add non-compensatory behavioral safety tests, reuse-time screening, and tested fallback rules.

Pre-use evaluation (upstream)

  • Reference implementation performs deterministic impact checks before rule activation.

Rollback (upstream)

  • Reference implementation stores reversible operational rules, backups, and audit records for manual restoration.

Safety gate (upstream)

  • Reference implementation requires human approval before activating proposed rules.
Koobo required controls (declarative system requirements)

1. Bounded edit surface

  • The adopter's system limits discovered rules to reversible declarative business rules stored outside authorization and payment-limit code.
  • Every rule carries a backup snapshot and audit record tied to the approving operator.

2. Pre-use evaluation

  • The evaluation harness separates learning data, candidate selection data, and sealed final test data grouped by incident and day (following GEPA, arXiv:2507.19457).
  • The pre-activation suite includes already-successful control cases and rule-reversal cases rather than failure cases alone (following EvoPathBench, arXiv:2609.24663, and Anthropic memory research).
  • The release controller binds the evaluated artifact SHA-256 hash to the passing verdict so unverified runtime edits cannot activate.

3. Rollback and tested fallback

  • The deployment harness retains immutable parent artifact snapshots with SHA-256 content hashes.
  • Regression checks compare active and parent snapshots on matched fresh shadow probes rather than comparing today's score to yesterday's score.
  • Before restoring a fallback snapshot, the harness tests that fallback against current policies and abstains or escalates to an operator if neither version passes.
  • Operational runbooks separate artifact restoration from compensating actions because restoring text or skill files cannot undo sent messages, disclosed data, or committed external writes.

4. Separate non-compensatory safety gate

  • The release pipeline evaluates safety independently from task utility so utility gains cannot offset a disallowed action (grounded in Practice Makes Unsafe, arXiv:2608.12851).
  • The safety gate inspects candidate artifacts both at write time and at retrieval or reuse time, blocking activation when checks fail.
  • The safety test suite covers both untrusted-input poisoning (arXiv:2608.12851) and benign task-pressure degradation (SEABench, arXiv:2609.35596).

5. Telemetry, abstention, and activation authority

  • The deployment harness defaults to abstention (keeping the approved parent artifact) whenever evaluation evidence is inconclusive, missing, or fails a safety check.
  • Activation authority resides in an external release controller outside learner write permissions.
  • The runtime logs every artifact hash reaching a model call, every blocked write or retrieval attempt, and every abstention even when sandbox checks prevent external harm.
Synthetic rejected candidate example (illustrative, not a real event)
Label
synthetic_example
Proposed change
Invoice rule auto-approving duplicate vendor entries below a threshold when line descriptions differ slightly.
Utility result
Reduced manual invoice queue exceptions during replay.
Safety gate result
Blocked by the deterministic duplicate-payment invariant before human sign-off.
Outcome
rejected

Koobo first-party experiment

No Koobo experiment is linked to this method.

Sources

Scroll sideways to see revision, location, access date and check status.

SourceTypeRevision and locationAccessedCheck
Google Cloud Agent Gym paper (arXiv:2608.15591)Published: 2026. Supports: Deterministic impact checks; Reversible rules and backups; Human approval; No automatic post-deploy rollbackpaperv3
Sections 3.5 and 6 (reference implementation)
2026-11-25checked 2026-11-25 by Codex live check

Machine interface and full export

Raw record for google-cloud-agent-gym

---
schema_version: "2.1.0"
slug: "google-cloud-agent-gym"
record_version: "2026-11-25.1"
record_status: "draft"
verification_status: "primary_source_check_pending"
content_sha256: "8ad188069d962bd57e4f3acc42289dd09e555f23a105eda1212179193c2c6b4c"
modifies: [prompt, skills]
improves_improver: false
learning_signal_types: [user_correction]
framework_dependency: "unverified"
requires_framework_migration: "unverified"
license_spdx: "UNVERIFIED"
variants: [agent-gym-reference]
citation_id: "koobo:agent-learning:google-cloud-agent-gym@2026-11-25.1"
canonical_url: "https://koobo.co/agent-learning/methods/google-cloud-agent-gym"
json_url: "https://koobo.co/agent-learning/methods/google-cloud-agent-gym.json"
versioned_url: "https://koobo.co/agent-learning/methods/google-cloud-agent-gym/v/2026-11-25.1.json"
---

# Google Cloud Agent Gym

> Status: Draft record 2026-11-25.1 (primary-source check pending; drafted 2026-11-25).
> Authority notice: This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.

Invoice-processing reference implementation combining user-correction discovery, deterministic impact checks, reversible operational rules, backups, audit records, and mandatory human approval.

## In plain language
- **What it is:** A sample invoice-processing system that learns from user corrections, checks the impact of each new rule, keeps backups, and needs a person to approve changes.
  From: summary
- **What it changes in the agent:** It changes the instructions it is given and its saved skills.
  From: modifies, improves_improver
- **Has it been tested?** We don't know yet if it works. No test of that is shown in the sources. Koobo has not tested it yet.
  From: evidence_claims[].claim_type, evidence_claims[].setting, evidence_claims[].independence, evidence_claims[].outcome, evidence_claims[].provenance.check_status, evidence_claims[].scope.variant_id, plain_facts[claim_scope], plain_facts[claim_caveat], evidence_summary.has_koobo_completed_eval
- **Can you undo it?** A person can restore earlier rules from backups. We don't know yet whether the process for choosing a fallback has been tested. Restoring a rule does not undo invoices or payments already sent.
  From: rollback.has_usable_rollback, rollback.status, rollback.restoration_scope, rollback.automatic_trigger, rollback.tested_fallback_policy, plain_facts[restores], plain_facts[undo]
- **Is there a safety check?** A person must approve changes before they are used. No separate automatic safety test is shown. If a change still breaks other cases after three tries, the reviewer gets a warning rather than an automatic block.
  From: safety_gate.status, plain_facts[safety]
- **How hard to adopt:** Medium effort to rebuild this pattern in an existing workflow agent. We don't know yet whether it needs a specific platform. We don't know yet whether reusable public code is available. We don't know yet what license it has.
  From: adoption_effort_non_framework.level, plain_facts[effort_scope], variants[].adoption_effort_level, framework_dependency.requires_framework_migration, plain_facts[adoption], license.spdx, license.check_status, variants[].license_spdx, plain_facts[license]

### Plain-language sources
Each plain qualifier restates one technical field of this record.
- [restores] earlier rules from backups (restates `rollback.mechanism`)
- [effort_scope] rebuild this pattern in an existing workflow agent (restates `adoption_effort_non_framework.implementation_scope`)
- [adoption] We don't know yet whether reusable public code is available. (restates `adoption_effort_non_framework.notes`)
- [undo] Restoring a rule does not undo invoices or payments already sent. (restates `rollback.side_effect_limit`)
- [safety] If a change still breaks other cases after three tries, the reviewer gets a warning rather than an automatic block. (restates `pre_use_evaluation.how`)

## Key facts
- Modifies: prompt, skills
- Improves improver: No
- License: UNVERIFIED (check pending)
- Framework migration: unverified
- Effort: medium
- Primary check: pending

## Links and identifiers
- **Repository:** not recorded
- **Paper:** https://arxiv.org/html/2608.15591
- **Aliases:** Agent Gym Invoice Reference
- **HTML:** https://koobo.co/agent-learning/methods/google-cloud-agent-gym
- **JSON:** https://koobo.co/agent-learning/methods/google-cloud-agent-gym.json
- **Versioned JSON (immutable):** https://koobo.co/agent-learning/methods/google-cloud-agent-gym/v/2026-11-25.1.json

## Controls and operational fit
- **Learning signal:** user_correction
  Operational user corrections discovered from invoice-processing workflows.
- **Pre-use evaluation:** yes (held-out split: unverified; live activation gate: yes)
  Runs deterministic impact assessment checks and requires human approval before activating reversible rules. Collateral failures after three tries produce a warning to the reviewer rather than an automatic block.
- **Rollback:** manual (usable rollback: yes; restoration scope: live_deployment; tested fallback policy: unverified)
  Provides reversible operational rules, backups, and audit records for manual restoration; does not include automatic regression-triggered rollback. Side-effect limit: Reversing a rule does not undo invoices or payments already transmitted externally.
- **Post-deploy measurement:** partial
  Maintains audit records; no automatic post-deployment regression window or strong longitudinal outcome study is established in opened notes.
- **Safety gate:** human_approval (blocks unsafe despite utility gain: unverified; write-time block: yes; reuse-time block: unverified)
  Operational rules require explicit human approval alongside deterministic impact checks and audit logs.
- **Framework dependency:** unverified (migration: unverified)
  Reference architecture described in paper; public reusable package status is unverified.
- **Effort:** medium
  Scope: Reimplementing the reference pattern (correction discovery, deterministic impact checks, backups, human sign-off) in a custom workflow agent. Architectural pattern is straightforward to implement; reusable public code is unverified.
- **License:** UNVERIFIED (check pending)
  No open-source license or public repository was established in local notes.
- **Maturity:** research_prototype (last observed activity: not checked)
  Reference implementation paper cited 2026-11-24; reusable public package unverified.

## Variants
### Invoice-processing reference implementation (`agent-gym-reference`)
Scope: Correction discovery, deterministic impact checks, reversible rules, backups, human approval.

- License: UNVERIFIED (pending)
- Learning signal: user_correction
- Pre-use eval: yes
- Rollback: manual
- Usable rollback: yes
- Safety gate: human_approval
- Framework: unverified
- Migration: unverified
- Effort: medium
- Notes: No empirical benchmark dataset/result recorded in local notes yet.

## Evidence summary (not a ranking)
- Settings observed: none
- Independence observed: author
- Effectiveness outcome: unverified
- Safety outcome: unverified
- Koobo completed eval: no
- Note: Reference architecture documented; empirical outcome evaluation not established in local notes.

## Evidence claims
- [agent-gym-doc-1] documentation_only | setting: none | independence: author | outcome: null
  The paper describes the invoice-processing reference implementation (correction discovery, deterministic impact checks, reversible rules, backups, audit logs, human approval; collateral failures after three tries produce a warning to the reviewer) without an identified empirical benchmark dataset or longitudinal outcome result.
  Scope: variant: agent-gym-reference; model: unverified; suite or environment: Invoice-processing reference implementation in arXiv:2608.15591; judge or metric: unverified; sample or duration: unverified; caveats: Reference implementation inspection does not meet empirical benchmark criteria until dataset, method, and quantitative results are checked live.
  Provenance: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Sections 3.5 and 6; accessed 2026-11-24; checked 2026-11-25 by Codex live check). Note: Codex live check.

## Evidence for control fields
- `safety_gate.status`: Human approval is required before activation; this is not proof that an independent safety invariant always blocks approval.
  Provenance: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Sections 3.5 and 6; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check.
- `license.spdx`: No repository license or qualifying measured outcome was located in the inspected paper.
  Provenance: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Whole paper; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check result: not found.

## Known failure modes
- **No unattended promotion or automatic regression rollback:** Relies on manual human approval and manual restoration from backups; no automatic post-deployment regression window or strong longitudinal outcome study was established.
  Provenance: https://arxiv.org/html/2608.15591v3 (revision: v3; location: Sections 3.5 and 6; accessed 2026-11-24; checked 2026-11-25 by Codex live check). Note: Noted in local deep-research table.

## Adoption recipe and mandatory safety controls
Authority notice: This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.

Adoptable directly: yes. Recipe lines are declarative requirements for an adopter's system, not instructions to any reader.

### Upstream controls disclosed in sources
Scope note: Upstream reference supplies impact checks, backups, and human approval. Koobo required controls add non-compensatory behavioral safety tests, reuse-time screening, and tested fallback rules.
#### Pre-use evaluation (upstream)
- Reference implementation performs deterministic impact checks before rule activation.
#### Rollback (upstream)
- Reference implementation stores reversible operational rules, backups, and audit records for manual restoration.
#### Safety gate (upstream)
- Reference implementation requires human approval before activating proposed rules.

### Koobo required controls
#### 1. Bounded edit surface
- The adopter's system limits discovered rules to reversible declarative business rules stored outside authorization and payment-limit code.
- Every rule carries a backup snapshot and audit record tied to the approving operator.
#### 2. Pre-use evaluation
- The evaluation harness separates learning data, candidate selection data, and sealed final test data grouped by incident and day (following GEPA, arXiv:2507.19457).
- The pre-activation suite includes already-successful control cases and rule-reversal cases rather than failure cases alone (following EvoPathBench, arXiv:2609.24663, and Anthropic memory research).
- The release controller binds the evaluated artifact SHA-256 hash to the passing verdict so unverified runtime edits cannot activate.
#### 3. Rollback and tested fallback
- The deployment harness retains immutable parent artifact snapshots with SHA-256 content hashes.
- Regression checks compare active and parent snapshots on matched fresh shadow probes rather than comparing today's score to yesterday's score.
- Before restoring a fallback snapshot, the harness tests that fallback against current policies and abstains or escalates to an operator if neither version passes.
- Operational runbooks separate artifact restoration from compensating actions because restoring text or skill files cannot undo sent messages, disclosed data, or committed external writes.
#### 4. Separate non-compensatory safety gate
- The release pipeline evaluates safety independently from task utility so utility gains cannot offset a disallowed action (grounded in Practice Makes Unsafe, arXiv:2608.12851).
- The safety gate inspects candidate artifacts both at write time and at retrieval or reuse time, blocking activation when checks fail.
- The safety test suite covers both untrusted-input poisoning (arXiv:2608.12851) and benign task-pressure degradation (SEABench, arXiv:2609.35596).
#### 5. Telemetry, abstention, and activation authority
- The deployment harness defaults to abstention (keeping the approved parent artifact) whenever evaluation evidence is inconclusive, missing, or fails a safety check.
- Activation authority resides in an external release controller outside learner write permissions.
- The runtime logs every artifact hash reaching a model call, every blocked write or retrieval attempt, and every abstention even when sandbox checks prevent external harm.

### Synthetic rejected candidate example
- Label: synthetic_example
- Proposed change: Invoice rule auto-approving duplicate vendor entries below a threshold when line descriptions differ slightly.
- Utility result: Reduced manual invoice queue exceptions during replay.
- Safety gate result: Blocked by the deterministic duplicate-payment invariant before human sign-off.
- Outcome: rejected

## Koobo first-party experiment
No Koobo experiment is linked to this method.

## Sources
- [Google Cloud Agent Gym paper (arXiv:2608.15591)](https://arxiv.org/html/2608.15591v3) (paper; published: 2026; revision: v3; location: Sections 3.5 and 6 (reference implementation); accessed 2026-11-25; check: checked 2026-11-25 by Codex live check)
  Supports: Deterministic impact checks; Reversible rules and backups; Human approval; No automatic post-deploy rollback

## Unverified fields
- `pre_use_evaluation.held_out_split`
- `rollback.tested_fallback_policy`
- `safety_gate.blocks_unsafe_despite_utility_gain`
- `safety_gate.reuse_time_blocks_activation`
- `license.spdx`
- `repo_url`
- `framework_dependency.level`
- `framework_dependency.requires_framework_migration`
- `maturity.last_observed_activity_date`

## Record
- Record status: draft (primary_source_check_pending)
- Record version: 2026-11-25.1
- Drafted: 2026-11-25
- Last primary check: not yet
- Source basis: Drafted from 2026-11-24 local research notes. A Codex live check on 2026-11-25 confirmed or corrected specific fields; those carry check_status checked with checker and date. Everything else is pending.
- Reviewer notes: Live-audit corrections from 2026-11-25 applied. Record remains a draft until every source is pinned and checked.
- Content SHA-256: 8ad188069d962bd57e4f3acc42289dd09e555f23a105eda1212179193c2c6b4c
- Schema version: 2.1.0

## Citation
- ID: `koobo:agent-learning:google-cloud-agent-gym@2026-11-25.1`
- Canonical: https://koobo.co/agent-learning/methods/google-cloud-agent-gym
- Versioned: https://koobo.co/agent-learning/methods/google-cloud-agent-gym/v/2026-11-25.1.json
- Plain text: Koobo Agent Learning Index, "Google Cloud Agent Gym", record 2026-11-25.1 (draft, primary-source check pending), https://koobo.co/agent-learning/methods/google-cloud-agent-gym/v/2026-11-25.1.json

```bibtex
@misc{koobo_agent_learning_google_cloud_agent_gym_2026,
  title = {Google Cloud Agent Gym (Koobo Agent Learning Index, draft record 2026-11-25.1)},
  author = {{Koobo Research}},
  year = {2026},
  url = {https://koobo.co/agent-learning/methods/google-cloud-agent-gym/v/2026-11-25.1.json},
  note = {Draft record; primary-source check pending}
}
```

The Markdown and JSON tabs are the exact bytes served at the .md and .json URLs.