---
schema_version: "2.1.0"
slug: "ratchet"
record_version: "2026-11-25.1"
record_status: "draft"
verification_status: "primary_source_check_pending"
content_sha256: "23053adf2a1f302d90fc16aa29d311e450077f4d54c42724b926211d73d9ac3e"
modifies: [skills]
improves_improver: false
learning_signal_types: [execution_trace, llm_judge, usage_telemetry, benchmark_metric]
framework_dependency: "cloud_runtime_coupled"
requires_framework_migration: "optional_port"
license_spdx: "Apache-2.0"
variants: [ratchet-bedrock-prototype]
citation_id: "koobo:agent-learning:ratchet@2026-11-25.1"
canonical_url: "https://koobo.co/agent-learning/methods/ratchet"
json_url: "https://koobo.co/agent-learning/methods/ratchet.json"
versioned_url: "https://koobo.co/agent-learning/methods/ratchet/v/2026-11-25.1.json"
---

# Ratchet

> 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.

Procedural skill library with a size cap, constrained synthesis, contribution-based skill retirement (a floor of 100, counted as routed trials in paper v3 and as tasks since addition in current code), and persistence-gated automatic rollback across benchmark rounds.

## In plain language
- **What it is:** A capped library of skills that retires skills that do not help and can restore its best earlier skill set during benchmark testing.
  From: summary
- **What it changes in the agent:** It changes its saved skills.
  From: modifies, improves_improver
- **Has it been tested?** Its creators tested it on benchmark tests and reported that it helped. We have not checked this against the source yet. This was measured in benchmark rounds, not in a live assistant over days. 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?** It can restore its best earlier skill set during benchmark testing, but only after the score stays more than 0.10 below the best for 5 rounds in a row. This has not been shown for live use. We don't know yet whether the process for choosing a fallback has been tested. Restoring skills does not undo actions already taken.
  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?** We don't know yet. Not shown in the sources.
  From: safety_gate.status, plain_facts[safety]
- **How hard to adopt:** High effort to use its code outside Amazon Bedrock or apply its rules to a low-traffic agent. The full version needs its own platform, but the idea can be copied into an existing agent. Its retirement rule has a minimum count of 100: routed trials in paper v3, or tasks since the skill was added in current code. That makes direct use impractical for low-traffic agents without redesign. License: Apache-2.0.
  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] its best earlier skill set (restates `rollback.mechanism`)
- [effort_scope] use its code outside Amazon Bedrock or apply its rules to a low-traffic agent (restates `adoption_effort_non_framework.implementation_scope`)
- [adoption] Its retirement rule has a minimum count of 100: routed trials in paper v3, or tasks since the skill was added in current code. That makes direct use impractical for low-traffic agents without redesign. (restates `adoption_effort_non_framework.notes`)
- [undo] Restoring skills does not undo actions already taken. (restates `rollback.side_effect_limit`)
- [claim_caveat: ratchet-author-bench-1] This was measured in benchmark rounds, not in a live assistant over days. (restates `evidence_claims[ratchet-author-bench-1].scope.caveats`)

## Key facts
- Modifies: skills
- Improves improver: No
- License: Apache-2.0 (checked)
- Framework migration: optional_port
- Effort: high
- Primary check: pending

## Links and identifiers
- **Repository:** https://github.com/amazon-science/Self-Evolving-Agents-Ratchet
- **Paper:** https://arxiv.org/html/2605.22148
- **Aliases:** Self-Evolving Agents Ratchet; Minimal Hygiene Recipe
- **HTML:** https://koobo.co/agent-learning/methods/ratchet
- **JSON:** https://koobo.co/agent-learning/methods/ratchet.json
- **Versioned JSON (immutable):** https://koobo.co/agent-learning/methods/ratchet/v/2026-11-25.1.json

## Controls and operational fit
- **Learning signal:** execution_trace, llm_judge, usage_telemetry, benchmark_metric
  Task failures, LLM-judge or grading signals, and per-skill usage/contribution statistics.
- **Pre-use evaluation:** no (held-out split: unverified; live activation gate: no)
  Newly synthesized skills become active after synthesis (README per-round flow); there is no behavioral admission test before a new skill becomes active. Periodic benchmark-round evaluation and rollback measure the bank after the fact and are recorded under rollback, not as pre-use evaluation.
- **Rollback:** automatic (usable rollback: yes; restoration scope: benchmark_rounds; tested fallback policy: unverified; automatic trigger: score more than 0.1 below best for 5 consecutive rounds)
  Persistence-gated auto-rollback restores the best skill bank after evaluation performance stays more than 0.10 below the best for 5 consecutive rounds; the implementation then remeasures the restored bank. This is a benchmark-round mechanism, not a production calendar-day guarantee. Side-effect limit: Skill-bank restoration reverts stored skills only and cannot reverse completed external side effects.
- **Post-deploy measurement:** partial
  Tracks per-skill usage and contribution across rounds. The retirement floor is 100, but its unit differs by version: routed trials in paper v3, all tasks since the skill was added in current lifecycle code. Live calendar-day production monitoring is not established.
- **Safety gate:** unverified (blocks unsafe despite utility gain: unverified; write-time block: unverified; reuse-time block: unverified)
  Paper notes guarantees depend on grading-signal reliability and do not guarantee safe behavior in an arbitrary business. Separate behavioral safety gate is unverified.
- **Framework dependency:** cloud_runtime_coupled (migration: optional_port)
  Released code is tied to Amazon Bedrock; bounded-library, evidence-log, and persistence-gated restore concepts can be reimplemented independently.
- **Effort:** high
  Scope: Direct code adoption outside Bedrock or porting hygiene rules to low-traffic agents. Bedrock coupling, reliable-metric assumptions, and the 100-observation retirement floor make direct use impractical for sparse-traffic custom agents without redesign.
- **License:** Apache-2.0 (checked 2026-11-25 by Codex live check; https://raw.githubusercontent.com/amazon-science/Self-Evolving-Agents-Ratchet/main/LICENSE)
  LICENSE contains the Apache License 2.0 text.
- **Maturity:** research_prototype (last observed activity: not checked)
  Research repository and paper v3 cited on 2026-11-24; exact commit and file lines unpinned.

## Variants
### Ratchet reference implementation (`ratchet-bedrock-prototype`)
Scope: Amazon Bedrock research codebase with benchmark-round auto-rollback.

- License: Apache-2.0 (checked)
- Learning signal: execution_trace, llm_judge, usage_telemetry, benchmark_metric
- Pre-use eval: no
- Rollback: automatic
- Usable rollback: yes
- Safety gate: unverified
- Framework: cloud_runtime_coupled
- Migration: optional_port
- Effort: high
- Notes: New skills become active after synthesis without an admission test. Rollback (0.10 margin, 5 rounds) is benchmark-round restoration. Retirement floor of 100 counts routed trials in paper v3 and tasks since addition in current code.

## Evidence summary (not a ranking)
- Settings observed: benchmark
- Independence observed: author
- Effectiveness outcome: positive
- Safety outcome: unverified
- Koobo completed eval: no
- Note: Author benchmark results on hard MBPP+ subset; live production and independent safety results unverified.

## Evidence claims
- [ratchet-author-bench-1] effectiveness | setting: benchmark | independence: author | outcome: positive
  Author study (paper v3) evaluates bounded skill-library hygiene, contribution-based retirement with a 100 routed-trial floor, and persistence-gated auto-rollback (restoring the best bank after 5 consecutive rounds more than 0.10 below best) on a deliberately hard MBPP+ subset.
  Scope: variant: ratchet-bedrock-prototype; model: Fixed backbone (exact model ID not recorded in local notes); suite or environment: Deliberately hard MBPP+ subset; judge or metric: Task grading signal / LLM judge reliability analysis; sample or duration: Multi-round benchmark runs; caveats: Round-based benchmark mechanism, not a live deployed business assistant with calendar-day monitoring.
  Provenance: https://arxiv.org/html/2605.22148v3 (revision: v3; location: Sections 3, 5, and 7; accessed 2026-11-24; check pending). Note: Rollback rule in section 3 confirmed by Codex live check; the effectiveness result itself is pending re-check. Current code counts the retirement floor in tasks since addition, not routed trials.

## Evidence for control fields
- `pre_use_evaluation.status`: New skills become active after synthesis; periodic rollback is not a pre-activation behavioral admission test.
  Provenance: https://github.com/amazon-science/Self-Evolving-Agents-Ratchet#per-round-flow-what-run_skill_looppy-does-each-round (revision: main branch as served 2026-11-25 (commit SHA not recorded); location: README section 'Per-round flow: what run_skill_loop.py does each round'; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check.
- `rollback.status`: Paper v3 and the loop implementation agree: restore the best bank after more than 0.10 loss for five consecutive rounds, then remeasure it.
  Provenance: https://arxiv.org/html/2605.22148v3 (revision: v3; location: Section 3; scripts/run_skill_loop.py; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check. Benchmark-round restoration only.
- `post_deploy_measurement.status`: Retirement floor of 100: routed trials in paper v3, tasks since addition in current lifecycle code.
  Provenance: https://raw.githubusercontent.com/amazon-science/Self-Evolving-Agents-Ratchet/main/skillevo/curator/lifecycle.py (revision: main branch as served 2026-11-25 (commit SHA not recorded); location: skillevo/curator/lifecycle.py (retirement floor); accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check.

## Known failure modes
- **Sensitivity to unreliable LLM judges:** Skill retirement and rollback guarantees depend on grading-signal reliability; an unreliable judge breaks retirement decisions.
  Provenance: https://arxiv.org/html/2605.22148v3 (revision: v3; location: Sections 3, 5, and 7; accessed 2026-11-24; check pending). Note: Paper title explicitly asks how reliable an LLM judge must be to retire a skill.
- **High traffic floor for skill retirement:** The retirement floor of 100 (routed trials in paper v3; all tasks since the skill was added in current lifecycle code) is far beyond low-volume daily agents.
  Provenance: https://raw.githubusercontent.com/amazon-science/Self-Evolving-Agents-Ratchet/main/skillevo/curator/lifecycle.py (revision: main branch as served 2026-11-25 (commit SHA not recorded); location: skillevo/curator/lifecycle.py (retirement floor); accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check: the number 100 is supported, but paper v3 counts routed trials while current code counts all tasks since addition.

## 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 controls operate on benchmark rounds and assume a reliable task metric. Newly synthesized skills become active without a behavioral admission test, so the periodic rollback is not a pre-use check. Koobo required controls add pre-activation evaluation, non-compensatory safety gating, current-policy fallback validation, and live abstention.
#### Pre-use evaluation (upstream)
- None disclosed in the opened sources.
#### Rollback (upstream)
- Persistence-gated automatic restoration of the best skill bank after more than 0.10 loss for five consecutive benchmark rounds, followed by remeasurement of the restored bank (paper v3 section 3; scripts/run_skill_loop.py).
#### Safety gate (upstream)
- None disclosed in the opened sources.

### Koobo required controls
#### 1. Bounded edit surface
- The adopter's system caps the procedural skill bank size and stores skills as versioned non-executable text files.
- Grading logic, safety policies, and retirement thresholds remain outside learner write access.
#### 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: Synthesized skill that caches raw customer payment details in plain text across sessions to save tool calls.
- Utility result: Improved round-level task completion score by reducing lookup timeouts.
- Safety gate result: Blocked at write time by the data-privacy invariant regardless of utility gain.
- Outcome: rejected

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

## Sources
- [Ratchet repository README, per-round flow](https://github.com/amazon-science/Self-Evolving-Agents-Ratchet#per-round-flow-what-run_skill_looppy-does-each-round) (docs; published: unverified; revision: main branch as served 2026-11-25 (commit SHA not recorded); location: README section 'Per-round flow: what run_skill_loop.py does each round'; accessed 2026-11-25; check: checked 2026-11-25 by Codex live check)
  Supports: New skills become active after synthesis
- [Ratchet scripts/run_skill_loop.py](https://raw.githubusercontent.com/amazon-science/Self-Evolving-Agents-Ratchet/main/scripts/run_skill_loop.py) (code; published: unverified; revision: main branch as served 2026-11-25 (commit SHA not recorded); location: scripts/run_skill_loop.py (persistence-gated restore); accessed 2026-11-25; check: checked 2026-11-25 by Codex live check)
  Supports: Restore best bank after more than 0.10 loss for five consecutive rounds; Restored bank is remeasured
- [Ratchet skillevo/curator/lifecycle.py](https://raw.githubusercontent.com/amazon-science/Self-Evolving-Agents-Ratchet/main/skillevo/curator/lifecycle.py) (code; published: unverified; revision: main branch as served 2026-11-25 (commit SHA not recorded); location: skillevo/curator/lifecycle.py (retirement floor); accessed 2026-11-25; check: checked 2026-11-25 by Codex live check)
  Supports: Retirement floor of 100 tasks since addition (current code)
- [Ratchet LICENSE](https://raw.githubusercontent.com/amazon-science/Self-Evolving-Agents-Ratchet/main/LICENSE) (license; published: unverified; revision: main branch as served 2026-11-25 (commit SHA not recorded); location: Full license text; accessed 2026-11-25; check: checked 2026-11-25 by Codex live check)
  Supports: Apache-2.0 license
- [Ratchet repository (amazon-science/Self-Evolving-Agents-Ratchet)](https://github.com/amazon-science/Self-Evolving-Agents-Ratchet) (repo; published: unverified; revision: main (commit unpinned); location: Repository root; accessed 2026-11-24; check: pending)
  Supports: Bedrock coupling
- [Ratchet: How Reliable Must an LLM Judge Be to Retire a Skill? (arXiv:2605.22148, v3)](https://arxiv.org/html/2605.22148v3) (paper; published: 2026; revision: v3; location: Section 3 (rollback rule); sections 5 and 7 (results, judge reliability); accessed 2026-11-24; check: pending)
  Supports: Rollback rule (section 3); Hard MBPP+ subset study; 100 routed-trial retirement floor; Judge reliability dependence

## Unverified fields
- `rollback.tested_fallback_policy`
- `safety_gate.status`
- `safety_gate.blocks_unsafe_despite_utility_gain`
- `maturity.last_observed_activity_date`
- `pre_use_evaluation.held_out_split`

## 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: 23053adf2a1f302d90fc16aa29d311e450077f4d54c42724b926211d73d9ac3e
- Schema version: 2.1.0

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

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