{
  "schema_version": "2.1.0",
  "slug": "google-cloud-agent-gym",
  "record_version": "2026-11-25.1",
  "record_status": "draft",
  "content_sha256": "8ad188069d962bd57e4f3acc42289dd09e555f23a105eda1212179193c2c6b4c",
  "name": "Google Cloud Agent Gym",
  "aliases": [
    "Agent Gym Invoice Reference"
  ],
  "summary": "Invoice-processing reference implementation combining user-correction discovery, deterministic impact checks, reversible operational rules, backups, audit records, and mandatory human approval.",
  "plain": {
    "what_it_is": {
      "text": "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": {
      "text": "It changes the instructions it is given and its saved skills.",
      "from": [
        "modifies",
        "improves_improver"
      ]
    },
    "has_it_been_tested": {
      "text": "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": {
      "text": "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": {
      "text": "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": {
      "text": "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_facts": [
    {
      "topic": "restores",
      "ref": null,
      "text": "earlier rules from backups",
      "from": "rollback.mechanism"
    },
    {
      "topic": "effort_scope",
      "ref": null,
      "text": "rebuild this pattern in an existing workflow agent",
      "from": "adoption_effort_non_framework.implementation_scope"
    },
    {
      "topic": "adoption",
      "ref": null,
      "text": "We don't know yet whether reusable public code is available.",
      "from": "adoption_effort_non_framework.notes"
    },
    {
      "topic": "undo",
      "ref": null,
      "text": "Restoring a rule does not undo invoices or payments already sent.",
      "from": "rollback.side_effect_limit"
    },
    {
      "topic": "safety",
      "ref": null,
      "text": "If a change still breaks other cases after three tries, the reviewer gets a warning rather than an automatic block.",
      "from": "pre_use_evaluation.how"
    }
  ],
  "modifies": [
    "prompt",
    "skills"
  ],
  "improves_improver": false,
  "learning_signal": {
    "types": [
      "user_correction"
    ],
    "description": "Operational user corrections discovered from invoice-processing workflows."
  },
  "pre_use_evaluation": {
    "status": "yes",
    "held_out_split": "unverified",
    "live_activation_gate": "yes",
    "how": "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": {
    "status": "manual",
    "has_usable_rollback": "yes",
    "restoration_scope": "live_deployment",
    "automatic_trigger": null,
    "tested_fallback_policy": "unverified",
    "mechanism": "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": {
    "status": "partial",
    "how": "Maintains audit records; no automatic post-deployment regression window or strong longitudinal outcome study is established in opened notes."
  },
  "safety_gate": {
    "status": "human_approval",
    "blocks_unsafe_despite_utility_gain": "unverified",
    "write_time_blocks_activation": "yes",
    "reuse_time_blocks_activation": "unverified",
    "how": "Operational rules require explicit human approval alongside deterministic impact checks and audit logs."
  },
  "license": {
    "spdx": "UNVERIFIED",
    "source_url": null,
    "check_status": "pending",
    "checked_at": null,
    "checked_by": null,
    "notes": "No open-source license or public repository was established in local notes."
  },
  "repo_url": null,
  "paper_url": "https://arxiv.org/html/2608.15591",
  "maturity": {
    "stage": "research_prototype",
    "last_observed_activity_date": null,
    "activity_criterion": "Reference implementation paper cited 2026-11-24; reusable public package unverified."
  },
  "framework_dependency": {
    "level": "unverified",
    "requires_framework_migration": "unverified",
    "required_runtime_or_sdk": "Reference architecture described in paper; public reusable package status is unverified."
  },
  "adoption_effort_non_framework": {
    "level": "medium",
    "judgment_owner": "koobo_editorial",
    "implementation_scope": "Reimplementing the reference pattern (correction discovery, deterministic impact checks, backups, human sign-off) in a custom workflow agent.",
    "notes": "Architectural pattern is straightforward to implement; reusable public code is unverified."
  },
  "variants": [
    {
      "variant_id": "agent-gym-reference",
      "label": "Invoice-processing reference implementation",
      "scope": "Correction discovery, deterministic impact checks, reversible rules, backups, human approval.",
      "license_spdx": "UNVERIFIED",
      "license_check_status": "pending",
      "learning_signal_types": [
        "user_correction"
      ],
      "pre_use_evaluation_status": "yes",
      "rollback_status": "manual",
      "has_usable_rollback": "yes",
      "safety_gate_status": "human_approval",
      "framework_dependency_level": "unverified",
      "requires_framework_migration": "unverified",
      "adoption_effort_level": "medium",
      "notes": "No empirical benchmark dataset/result recorded in local notes yet."
    }
  ],
  "known_failure_modes": [
    {
      "mode": "No unattended promotion or automatic regression rollback",
      "detail": "Relies on manual human approval and manual restoration from backups; no automatic post-deployment regression window or strong longitudinal outcome study was established.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.15591v3",
        "source_revision": "v3",
        "location": "Sections 3.5 and 6",
        "accessed_date": "2026-11-24",
        "check_status": "checked",
        "source_note": "Noted in local deep-research table.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "evidence_summary": {
    "settings_observed": [
      "none"
    ],
    "independence_observed": [
      "author"
    ],
    "effectiveness_outcome": "unverified",
    "safety_outcome": "unverified",
    "has_koobo_completed_eval": false,
    "summary_note": "Reference architecture documented; empirical outcome evaluation not established in local notes."
  },
  "evidence_claims": [
    {
      "claim_id": "agent-gym-doc-1",
      "claim_type": "documentation_only",
      "statement": "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.",
      "setting": "none",
      "independence": "author",
      "outcome": "null",
      "scope": {
        "variant_id": "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": {
        "source_url": "https://arxiv.org/html/2608.15591v3",
        "source_revision": "v3",
        "location": "Sections 3.5 and 6",
        "accessed_date": "2026-11-24",
        "check_status": "checked",
        "source_note": "Codex live check.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "control_evidence": [
    {
      "field": "safety_gate.status",
      "statement": "Human approval is required before activation; this is not proof that an independent safety invariant always blocks approval.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.15591v3",
        "source_revision": "v3",
        "location": "Sections 3.5 and 6",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    },
    {
      "field": "license.spdx",
      "statement": "No repository license or qualifying measured outcome was located in the inspected paper.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.15591v3",
        "source_revision": "v3",
        "location": "Whole paper",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check result: not found.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "adoption_recipe": {
    "adoptable_directly": true,
    "authority_notice": "This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.",
    "upstream_controls": {
      "pre_use_eval": [
        "Reference implementation performs deterministic impact checks before rule activation."
      ],
      "rollback": [
        "Reference implementation stores reversible operational rules, backups, and audit records for manual restoration."
      ],
      "safety_gate": [
        "Reference implementation requires human approval before activating proposed rules."
      ],
      "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."
    },
    "koobo_required_controls": {
      "edit_surface_bounds": [
        "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."
      ],
      "pre_use_eval_requirements": [
        "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."
      ],
      "rollback_requirements": [
        "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."
      ],
      "safety_gate_requirements": [
        "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)."
      ],
      "telemetry_and_abstention_requirements": [
        "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"
    }
  },
  "experiment_refs": [],
  "sources": [
    {
      "title": "Google Cloud Agent Gym paper (arXiv:2608.15591)",
      "url": "https://arxiv.org/html/2608.15591v3",
      "published_date": "2026",
      "accessed_date": "2026-11-25",
      "revision": "v3",
      "location": "Sections 3.5 and 6 (reference implementation)",
      "type": "paper",
      "check_status": "checked",
      "claims_supported": [
        "Deterministic impact checks",
        "Reversible rules and backups",
        "Human approval",
        "No automatic post-deploy rollback"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    }
  ],
  "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"
  ],
  "verification": {
    "status": "primary_source_check_pending",
    "drafted_at": "2026-11-25",
    "last_primary_check_at": null,
    "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."
  },
  "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",
    "versioned_url": "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,\n  title = {Google Cloud Agent Gym (Koobo Agent Learning Index, draft record 2026-11-25.1)},\n  author = {{Koobo Research}},\n  year = {2026},\n  url = {https://koobo.co/agent-learning/methods/google-cloud-agent-gym/v/2026-11-25.1.json},\n  note = {Draft record; primary-source check pending}\n}"
  }
}
