{
  "schema_version": "2.1.0",
  "slug": "darwin-godel-machine",
  "record_version": "2026-11-25.1",
  "record_status": "draft",
  "content_sha256": "f95db53f6340fd6b99fa09c810c28ab766c2eb39fe5f115e35e1ab49720e40d7",
  "name": "Darwin Godel Machine",
  "aliases": [
    "DGM"
  ],
  "summary": "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.",
  "plain": {
    "what_it_is": {
      "text": "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": {
      "text": "It changes its own code.",
      "from": [
        "modifies",
        "improves_improver"
      ]
    },
    "has_it_been_tested": {
      "text": "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": {
      "text": "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": {
      "text": "We don't know yet. Not shown in the sources.",
      "from": [
        "safety_gate.status",
        "plain_facts[safety]"
      ]
    },
    "how_hard_to_adopt": {
      "text": "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_facts": [
    {
      "topic": "restores",
      "ref": null,
      "text": "earlier code versions",
      "from": "rollback.mechanism"
    },
    {
      "topic": "effort_scope",
      "ref": null,
      "text": "bring its self-rewriting code search into a production agent",
      "from": "adoption_effort_non_framework.implementation_scope"
    },
    {
      "topic": "adoption",
      "ref": null,
      "text": "It was built for offline coding benchmarks and needs strong containment.",
      "from": "adoption_effort_non_framework.notes"
    },
    {
      "topic": "undo",
      "ref": null,
      "text": "Keeping old versions during offline search does not deal with actions taken in live use.",
      "from": "rollback.side_effect_limit"
    },
    {
      "topic": "claim_caveat",
      "ref": "dgm-author-bench-1",
      "text": "Not every candidate was run on the full benchmark, and safety in live use was not shown.",
      "from": "evidence_claims[dgm-author-bench-1].scope.caveats"
    }
  ],
  "modifies": [
    "code"
  ],
  "improves_improver": false,
  "learning_signal": {
    "types": [
      "benchmark_metric"
    ],
    "description": "Staged coding-benchmark evaluation scores on generated code variants."
  },
  "pre_use_evaluation": {
    "status": "yes",
    "held_out_split": "partial",
    "live_activation_gate": "no",
    "how": "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": {
    "status": "checkpoint_only",
    "has_usable_rollback": "no",
    "restoration_scope": "offline_archive_only",
    "automatic_trigger": null,
    "tested_fallback_policy": "no",
    "mechanism": "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": {
    "status": "no",
    "how": "Offline benchmark evolution system without live deployment monitoring."
  },
  "safety_gate": {
    "status": "unverified",
    "blocks_unsafe_despite_utility_gain": "unverified",
    "write_time_blocks_activation": "unverified",
    "reuse_time_blocks_activation": "unverified",
    "how": "Separate behavioral safety controls beyond offline benchmark sandboxing are unverified in opened notes."
  },
  "license": {
    "spdx": "Apache-2.0",
    "source_url": "https://raw.githubusercontent.com/jennyzzt/dgm/main/LICENSE",
    "check_status": "checked",
    "checked_at": "2026-11-25",
    "checked_by": "Codex live check",
    "notes": "LICENSE in jennyzzt/dgm contains the Apache License 2.0 text."
  },
  "repo_url": "https://github.com/jennyzzt/dgm",
  "paper_url": "https://arxiv.org/html/2505.22954",
  "maturity": {
    "stage": "research_prototype",
    "last_observed_activity_date": null,
    "activity_criterion": "Paper inspected 2026-11-24; repository availability and license unverified."
  },
  "framework_dependency": {
    "level": "agent_runtime_coupled",
    "requires_framework_migration": "yes",
    "required_runtime_or_sdk": "Full self-rewriting coding-agent harness and staged benchmark execution runner."
  },
  "adoption_effort_non_framework": {
    "level": "high",
    "judgment_owner": "koobo_editorial",
    "implementation_scope": "Adopting self-rewriting code archive search in a custom production agent.",
    "notes": "High engineering and containment cost; designed for offline coding benchmarks."
  },
  "variants": [
    {
      "variant_id": "dgm-offline-code-search",
      "label": "Darwin Godel Machine offline code search",
      "scope": "Self-rewriting coding agent archive with staged subset evaluation and fixed outer loop.",
      "license_spdx": "Apache-2.0",
      "license_check_status": "checked",
      "learning_signal_types": [
        "benchmark_metric"
      ],
      "pre_use_evaluation_status": "yes",
      "rollback_status": "checkpoint_only",
      "has_usable_rollback": "no",
      "safety_gate_status": "unverified",
      "framework_dependency_level": "agent_runtime_coupled",
      "requires_framework_migration": "yes",
      "adoption_effort_level": "high",
      "notes": "Outer exploration algorithm stays fixed (improves_improver: false)."
    }
  ],
  "known_failure_modes": [
    {
      "mode": "Staged subset filtering misses full-benchmark regressions",
      "detail": "Not every generated code candidate is evaluated on the full benchmark suite; outer exploration procedure stays fixed.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2505.22954",
        "source_revision": "unpinned",
        "location": "Abstract, section 3, and evaluation protocol",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Scope qualification verified in local notes.",
        "checked_at": null,
        "checked_by": null
      }
    }
  ],
  "evidence_summary": {
    "settings_observed": [
      "benchmark"
    ],
    "independence_observed": [
      "author"
    ],
    "effectiveness_outcome": "positive",
    "safety_outcome": "unverified",
    "has_koobo_completed_eval": false,
    "summary_note": "Author offline coding-benchmark results; independent safety and live deployment evidence unverified."
  },
  "evidence_claims": [
    {
      "claim_id": "dgm-author-bench-1",
      "claim_type": "effectiveness",
      "statement": "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.",
      "setting": "benchmark",
      "independence": "author",
      "outcome": "positive",
      "scope": {
        "variant_id": "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": {
        "source_url": "https://arxiv.org/html/2505.22954",
        "source_revision": "unpinned",
        "location": "Abstract, section 3, and evaluation protocol",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Opened 2026-11-24 in local notes; live re-check pending.",
        "checked_at": null,
        "checked_by": null
      }
    }
  ],
  "control_evidence": [
    {
      "field": "pre_use_evaluation.status",
      "statement": "Code candidates are evaluated in stages on benchmark subsets and kept in an offline archive; this is not a live restoration service.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2505.22954v3",
        "source_revision": "v3",
        "location": "Section 4",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check.",
        "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": [
        "Upstream Darwin Godel Machine evaluates code variants in stages on benchmark subsets before expanding them in the archive."
      ],
      "rollback": [],
      "safety_gate": [],
      "scope_note": "Upstream evaluation is offline subset benchmarking. Koobo required controls enforce sandboxed execution, immutable outer security boundaries, and non-compensatory safety gating."
    },
    "koobo_required_controls": {
      "edit_surface_bounds": [
        "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."
      ],
      "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": "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"
    }
  },
  "experiment_refs": [],
  "sources": [
    {
      "title": "Darwin Godel Machine paper (arXiv:2505.22954)",
      "url": "https://arxiv.org/html/2505.22954",
      "published_date": "unverified",
      "accessed_date": "2026-11-24",
      "revision": "unpinned",
      "location": "Abstract, section 3, and evaluation protocol",
      "type": "paper",
      "check_status": "pending",
      "claims_supported": [
        "Variant archive",
        "Staged subset evaluation",
        "Fixed outer exploration mechanism"
      ],
      "checked_at": null,
      "checked_by": null
    },
    {
      "title": "Darwin Godel Machine repository (jennyzzt/dgm)",
      "url": "https://github.com/jennyzzt/dgm",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
      "location": "Repository root (linked from the paper)",
      "type": "repo",
      "check_status": "checked",
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check",
      "claims_supported": [
        "Public repository linked from the paper"
      ]
    },
    {
      "title": "DGM LICENSE",
      "url": "https://raw.githubusercontent.com/jennyzzt/dgm/main/LICENSE",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
      "location": "Full license text",
      "type": "license",
      "check_status": "checked",
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check",
      "claims_supported": [
        "Apache-2.0 license"
      ]
    }
  ],
  "unverified_fields": [
    "safety_gate.status",
    "safety_gate.blocks_unsafe_despite_utility_gain",
    "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:darwin-godel-machine@2026-11-25.1",
    "canonical_url": "https://koobo.co/agent-learning/methods/darwin-godel-machine",
    "versioned_url": "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,\n  title = {Darwin Godel Machine (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/darwin-godel-machine/v/2026-11-25.1.json},\n  note = {Draft record; primary-source check pending}\n}"
  }
}
