---
schema_version: "2.1.0"
slug: "darwin-godel-machine"
record_version: "2026-11-25.1"
record_status: "draft"
verification_status: "primary_source_check_pending"
content_sha256: "f95db53f6340fd6b99fa09c810c28ab766c2eb39fe5f115e35e1ab49720e40d7"
modifies: [code]
improves_improver: false
learning_signal_types: [benchmark_metric]
framework_dependency: "agent_runtime_coupled"
requires_framework_migration: "yes"
license_spdx: "Apache-2.0"
variants: [dgm-offline-code-search]
citation_id: "koobo:agent-learning:darwin-godel-machine@2026-11-25.1"
canonical_url: "https://koobo.co/agent-learning/methods/darwin-godel-machine"
json_url: "https://koobo.co/agent-learning/methods/darwin-godel-machine.json"
versioned_url: "https://koobo.co/agent-learning/methods/darwin-godel-machine/v/2026-11-25.1.json"
---

# Darwin Godel Machine

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

Rewrites a coding agent's own source code and maintains an archive of variants evaluated in stages on benchmark subsets under a fixed outer exploration procedure.

## In plain language
- **What it is:** It lets a coding agent rewrite its own code and keeps an archive of versions, each scored in stages on parts of a coding benchmark.
  From: summary
- **What it changes in the agent:** It changes its own code.
  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. Not every candidate was run on the full benchmark, and safety in live use was not shown. 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?** Earlier code versions are kept during offline search. The record does not establish a way to restore an earlier version in a live deployment. Keeping old versions during offline search does not deal with actions taken in live use.
  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 bring its self-rewriting code search into a production agent. It needs its own platform, so an existing agent would have to move to it. It was built for offline coding benchmarks and needs strong containment. 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] earlier code versions (restates `rollback.mechanism`)
- [effort_scope] bring its self-rewriting code search into a production agent (restates `adoption_effort_non_framework.implementation_scope`)
- [adoption] It was built for offline coding benchmarks and needs strong containment. (restates `adoption_effort_non_framework.notes`)
- [undo] Keeping old versions during offline search does not deal with actions taken in live use. (restates `rollback.side_effect_limit`)
- [claim_caveat: dgm-author-bench-1] Not every candidate was run on the full benchmark, and safety in live use was not shown. (restates `evidence_claims[dgm-author-bench-1].scope.caveats`)

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

## Links and identifiers
- **Repository:** https://github.com/jennyzzt/dgm
- **Paper:** https://arxiv.org/html/2505.22954
- **Aliases:** DGM
- **HTML:** https://koobo.co/agent-learning/methods/darwin-godel-machine
- **JSON:** https://koobo.co/agent-learning/methods/darwin-godel-machine.json
- **Versioned JSON (immutable):** https://koobo.co/agent-learning/methods/darwin-godel-machine/v/2026-11-25.1.json

## Controls and operational fit
- **Learning signal:** benchmark_metric
  Staged coding-benchmark evaluation scores on generated code variants.
- **Pre-use evaluation:** yes (held-out split: partial; live activation gate: no)
  Evaluates generated code variants in stages on benchmark subsets; not every candidate receives the full benchmark. Offline research search, not a live deployment gate.
- **Rollback:** checkpoint_only (usable rollback: no; restoration scope: offline_archive_only; tested fallback policy: no)
  Maintains an offline archive of code variants during exploration; not a live post-deployment rollback service. Side-effect limit: Archive retention applies to offline search candidates, not live production side effects.
- **Post-deploy measurement:** no
  Offline benchmark evolution system without live deployment monitoring.
- **Safety gate:** unverified (blocks unsafe despite utility gain: unverified; write-time block: unverified; reuse-time block: unverified)
  Separate behavioral safety controls beyond offline benchmark sandboxing are unverified in opened notes.
- **Framework dependency:** agent_runtime_coupled (migration: yes)
  Full self-rewriting coding-agent harness and staged benchmark execution runner.
- **Effort:** high
  Scope: Adopting self-rewriting code archive search in a custom production agent. High engineering and containment cost; designed for offline coding benchmarks.
- **License:** Apache-2.0 (checked 2026-11-25 by Codex live check; https://raw.githubusercontent.com/jennyzzt/dgm/main/LICENSE)
  LICENSE in jennyzzt/dgm contains the Apache License 2.0 text.
- **Maturity:** research_prototype (last observed activity: not checked)
  Paper inspected 2026-11-24; repository availability and license unverified.

## Variants
### Darwin Godel Machine offline code search (`dgm-offline-code-search`)
Scope: Self-rewriting coding agent archive with staged subset evaluation and fixed outer loop.

- License: Apache-2.0 (checked)
- Learning signal: benchmark_metric
- Pre-use eval: yes
- Rollback: checkpoint_only
- Usable rollback: no
- Safety gate: unverified
- Framework: agent_runtime_coupled
- Migration: yes
- Effort: high
- Notes: Outer exploration algorithm stays fixed (improves_improver: false).

## Evidence summary (not a ranking)
- Settings observed: benchmark
- Independence observed: author
- Effectiveness outcome: positive
- Safety outcome: unverified
- Koobo completed eval: no
- Note: Author offline coding-benchmark results; independent safety and live deployment evidence unverified.

## Evidence claims
- [dgm-author-bench-1] effectiveness | setting: benchmark | independence: author | outcome: positive
  Author coding-benchmark study reports archive growth and improved coding-agent performance via staged subset evaluation of rewritten code variants under a fixed outer exploration loop.
  Scope: variant: dgm-offline-code-search; model: Paper evaluation models (not enumerated in local notes); suite or environment: Offline coding benchmarks (staged subsets); judge or metric: Benchmark solve rate across staged subsets; sample or duration: Offline evolutionary archive runs; caveats: Offline benchmark search; not every candidate receives the full benchmark; live safety and deployment controls unverified.
  Provenance: https://arxiv.org/html/2505.22954 (revision: unpinned; location: Abstract, section 3, and evaluation protocol; accessed 2026-11-24; check pending). Note: Opened 2026-11-24 in local notes; live re-check pending.

## Evidence for control fields
- `pre_use_evaluation.status`: Code candidates are evaluated in stages on benchmark subsets and kept in an offline archive; this is not a live restoration service.
  Provenance: https://arxiv.org/html/2505.22954v3 (revision: v3; location: Section 4; accessed 2026-11-25; checked 2026-11-25 by Codex live check). Note: Codex live check.

## Known failure modes
- **Staged subset filtering misses full-benchmark regressions:** Not every generated code candidate is evaluated on the full benchmark suite; outer exploration procedure stays fixed.
  Provenance: https://arxiv.org/html/2505.22954 (revision: unpinned; location: Abstract, section 3, and evaluation protocol; accessed 2026-11-24; check pending). Note: Scope qualification verified in local notes.

## 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 evaluation is offline subset benchmarking. Koobo required controls enforce sandboxed execution, immutable outer security boundaries, and non-compensatory safety gating.
#### Pre-use evaluation (upstream)
- Upstream Darwin Godel Machine evaluates code variants in stages on benchmark subsets before expanding them in the archive.
#### Rollback (upstream)
- None disclosed in the opened sources.
#### Safety gate (upstream)
- None disclosed in the opened sources.

### Koobo required controls
#### 1. Bounded edit surface
- The adopter's system confines self-rewriting code proposals to isolated container sandboxes with zero network or credential access.
- The evaluator, safety harness, outer exploration controller, and deployment authority stay strictly outside editable code paths.
#### 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: Code patch modifying the local runner script to inspect hidden test fixture paths for hints.
- Utility result: Boosted apparent stage-1 benchmark pass rate.
- Safety gate result: Blocked by the sandbox path-boundary check and anti-tampering invariant.
- Outcome: rejected

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

## Sources
- [Darwin Godel Machine paper (arXiv:2505.22954)](https://arxiv.org/html/2505.22954) (paper; published: unverified; revision: unpinned; location: Abstract, section 3, and evaluation protocol; accessed 2026-11-24; check: pending)
  Supports: Variant archive; Staged subset evaluation; Fixed outer exploration mechanism
- [Darwin Godel Machine repository (jennyzzt/dgm)](https://github.com/jennyzzt/dgm) (repo; published: unverified; revision: main branch as served 2026-11-25 (commit SHA not recorded); location: Repository root (linked from the paper); accessed 2026-11-25; check: checked 2026-11-25 by Codex live check)
  Supports: Public repository linked from the paper
- [DGM LICENSE](https://raw.githubusercontent.com/jennyzzt/dgm/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

## Unverified fields
- `safety_gate.status`
- `safety_gate.blocks_unsafe_despite_utility_gain`
- `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: f95db53f6340fd6b99fa09c810c28ab766c2eb39fe5f115e35e1ab49720e40d7
- Schema version: 2.1.0

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

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