SpudLab

SpudLab patterns

A field guide to reusable mechanisms for intelligent systems, shown through one worked system: the Darwin Gödel Machine.

Filter
  • Keep every candidate that works in an archive, choose the next parent from the whole archive instead of the current best, and let only candidates that passed lint and were never disqualified parent. Exploration comes from the archive, not from a mutation rate.

    Archive-based selection

    Use when keeping only the winner makes your search stall.

    mechanism · researched · candidate

  • Staged evaluation

    Use when most candidates are weak and a full test is dear.

    mechanism · researched · reference

  • DGM self-modification

    Use when an agent should read its own failures and fix itself.

    mechanism · researched · reference

Recipe: the whole machine · Pattern map

← Back to the shelf

Pattern map

Every pattern, by level.

← Back to the shelf

system · researched · reference

Darwin Gödel Machine uses 7 patterns, combined in this order

Use when you want the whole recipe, not one part.

A coding agent that edits its own repository: a model diagnoses the agent's failures, the agent implements the fix on itself, every child that still works joins an archive, and a fixed benchmark scores each child. Open-ended archive search, not a single hill-climb, is what the ablations credit.

Not measured · n = 0 · no variance estimate Why not measured: Authors' result, not reproduced by us: single runs, reported on the 200 tasks the search used, no holdout

  1. DGM self-modification · step 1

    A model reads the parent agent's own evaluation logs and writes a problem statement about its weakest behaviour;

  2. Append-only hash-chained archive · step 2

    The search's memory is a list of rows, each carrying the sha256 of the row before it, written only by the search code and never by a model.

  3. DGM parent selection (sigmoid / children) · step 3

    DGM's own parent rule; HGM replaces it.

  4. Archive-based selection · step 4

    Archive rows hold only verifier output on development cases; held-out results never enter a row, so selection cannot overfit the held-out set.

  5. Staged evaluation · step 6

    Score a child on a few tasks first and spend the larger evaluation only on children that clear a threshold, so weak children cost little.

  6. Fixed verifier as judge · step 7

    The score comes from cases the candidate cannot see or edit, fixed by a seal written before any candidate runs.

  7. Objective-hacking guard · step 8

    Insert special tokens into the agent's tool-use logs and check that the model's own text never contains them;

  8. HGM clade Thompson selection Not used here

    An alternative that fits in the same place.

Evidence

Verdict Not measured

Not measured Self-improvement lifts SWE-bench from 20.0% to 50.0%

Sample size n
0
Variance
no variance estimate

Authors' result, not reproduced by us: single runs, reported on the 200 tasks the search used, no holdout; Polyglot over 3 runs mean 40.7, sd 2.3.

Why not measured: Authors' result, not reproduced by us: single runs, reported on the 200 tasks the search used, no holdout

Sources and pinned commit

Pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2

  • Code findings at the pinned commit
    research-records/sources/arxiv-2505.22954/FINDINGS.md#8-code-findings-sha-a565fd2d
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • Method
    research-records/sources/arxiv-2505.22954/FINDINGS.md#2-method
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • Repository (read through the API, nothing cloned or run)
    https://github.com/jennyzzt/dgm#readme
    pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2

Paper versus released code

What this card's own notes say about paper versus code

  • Paper prose drifted from the released code in several places (the 200-task stage is not in the release; the second stage fires at resolved >= 0.4 x 10).

Watch out

  • Paper prose drifted from the released code in several places (the 200-task stage is not in the release; the second stage fires at resolved >= 0.4 x 10).
  • Private test patches and eval logs go into the proposer's prompt.
  • No independent reproduction of the headline numbers was found; contamination of SWE-bench Verified is acknowledged.

Family

Root of the archive-evolution family. HGM (2510.21614) re-ran it as a baseline and replaced its parent selection; Hyperagents (2603.19461) re-ran it on Polyglot over 5 runs.

← Back to the shelf

subsystem · researched · reference

DGM improvement loop

Use when you want the outer loop that makes an agent better.

The outer loop that makes the agent better: pick a parent from the archive, let it modify itself, add the working child back to the archive.

No result recorded

How it works

This card has no checks to step through, so here is the mechanism in words.

The outer loop that makes the agent better: pick a parent from the archive, let it modify itself, add the working child back to the archive.

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

No result recorded

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationreference

Described to understand the family; our own loop is archive-based-selection.

Sources and pinned commit

No commit is pinned on this card; its sources are pinned by their checksums.

  • Archive, parent selection, self-modification
    research-records/sources/arxiv-2505.22954/FINDINGS.md#2-method
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • The exploration process itself is fixed (stated by the authors).

Family

Fixed by design: the paper states the archive and selection loop cannot be modified by the agent.

Used in

  • Darwin Gödel Machine (DGM)

Related patterns

← Back to the shelf

subsystem · researched · reference

DGM evaluation

Use when you need to decide how a child is scored.

How a child is scored: a staged filter spends little on weak children, a verifier outside the agent decides pass or fail, and a check for fabricated tool traces guards the objective.

No result recorded

How it works

This card has no checks to step through, so here is the mechanism in words.

How a child is scored: a staged filter spends little on weak children, a verifier outside the agent decides pass or fail, and a check for fabricated tool traces guards the objective.

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

No result recorded

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationreference

Source of the staged filter and of the best documented objective-hacking case.

Sources and pinned commit

Pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2 (pinned by the sources of Darwin Gödel Machine (DGM))

  • Selection set vs reported set, repeats, cost
    research-records/sources/arxiv-2505.22954/FINDINGS.md#3-evaluation-design
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • SWE-bench host scoring, Polyglot in-container scoring
    research-records/sources/arxiv-2505.22954/FINDINGS.md#8-code-findings-sha-a565fd2d
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • The reported set and the selection set overlap; the RSI audit notes no strict holdout.

Family

Two arrangements in one system: SWE-bench scored on the host after stripping test-file edits, Polyglot graded in the same container the agent used.

Used in

  • Darwin Gödel Machine (DGM)

Related patterns

← Back to the shelf

mechanism · researched · candidate

Archive-based selection

Use when keeping only the winner makes your search stall.

Keep every candidate that works in an archive, choose the next parent from the whole archive instead of the current best, and let only candidates that passed lint and were never disqualified parent. Exploration comes from the archive, not from a mutation rate.

Not measured · n = 0 · no variance estimate · $0.181442 Why not measured: The v0.2 run held one variant and ended NO_HEADROOM (baseline accepted 21 of 21), so no parent was ever selected live

How it works

  1. Input
    • a draw 0.3 ✔ can parent
    • b draw 0.8 ✔ can parent ★ chosen
    • c draw 0.99 ✖ lint refused
    • d draw 0.99 ✖ disqualified
    • e draw 0.99 ✖ not evaluated yet
    What happensselect_parent ✔ pass
    Output

    parent b

    Step 1. among eligible a and b the larger draw wins; c, d and e have bigger draws but are not eligible

  2. Input
    • row ✖ lint refused
    What happenseligible ◆ boundary
    Output

    cannot parent

    Step 2. a lint-refused variant is not eligible

  3. Input
    • row ✖ disqualified
    What happenseligible ◆ boundary
    Output

    cannot parent

    Step 3. a variant with a disqualified evaluation never parents

  4. Input
    • row ✖ not evaluated yet
    What happenseligible ◆ boundary
    Output

    cannot parent

    Step 4. a variant with no evaluation yet has no posterior and cannot parent

  5. Input
    • c draw 0.9 ✖ lint refused
    • d draw 0.9 ✖ disqualified
    What happensselect_parent ✖ failure
    Output

    ✖ raises ValueError: nothing can parent

    Step 5. with nothing eligible there is no parent to expand

Use it

Python

Python, 22 lines
"""archive-based-selection: keep every candidate that works, pick the next parent from the whole archive, never from the winner only.

This file is the composition rule our harness uses (prompt-search-v02/archive.py): which rows may parent, and which one is
expanded given one random draw per eligible row. The draw is the primitive's job (select-thompson-hgm or select-sigmoid-dgm);
here the draws are an input, so the rule can be tested without a random number generator.

A row is eligible only if it passed lint, has at least one evaluation, and none of its evaluations was disqualified.
An ineligible row never parents (composition rule: a flagged variant never parents).
"""


def eligible(node):
    """node: {"lint": [str], "evals": [{"disqualified": bool}]}."""
    return not node["lint"] and bool(node["evals"]) and not any(e["disqualified"] for e in node["evals"])


def select_parent(nodes, draws):
    """nodes: {id: node}; draws: {id: float}, one per eligible id. Returns the id with the largest draw (ties: first by id)."""
    pool = sorted(k for k, v in nodes.items() if eligible(v))
    if not pool:
        raise ValueError("no eligible parent")
    return max(pool, key=lambda k: draws[k])

5 checks, all should pass

  1. ✔ pass select_parent → returns "b"
    among eligible a and b the larger draw wins; c, d and e have bigger draws but are not eligible
  2. ◆ boundary eligible → returns false
    a lint-refused variant is not eligible
  3. ◆ boundary eligible → returns false
    a variant with a disqualified evaluation never parents
  4. ◆ boundary eligible → returns false
    a variant with no evaluation yet has no posterior and cannot parent
  5. ✖ failure select_parent → raises ValueError
    with nothing eligible there is no parent to expand

Download vectors (JSON)

Run the checks yourself
python3 vectors.py atlas.json archive-based-selection

Evidence

Verdict Not measured

Archive-based selection beats greedy at equal budget

Not measured. The v0.2 run held one variant and ended NO_HEADROOM (baseline accepted 21 of 21), so no parent was ever selected live; the machinery ran offline with a mock creator.

Why not measured: The v0.2 run held one variant and ended NO_HEADROOM (baseline accepted 21 of 21), so no parent was ever selected live

Sample size n0

Run record: research-records/prompt-search-v02/runs/RESULT.json#L1-L78

Varianceno variance estimate

no variance estimate

Cost$0.181442

Run record: research-records/prompt-search-v02/runs/RESULT.json#L1-L78

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationcandidate

Built and unit-tested in the sealed rung-3 harness; the live run ended NO_HEADROOM, so archive vs greedy is the unmeasured experiment (E3, E4').

Sources and pinned commit

No commit is pinned on this card; its sources are pinned by their checksums.

  • Design note: append-only JSONL, hash chain, clade Thompson primary, DGM rule selectable for the record
    research-records/prompt-search-v02/archive.py#L1-L15
    sha256 fc60e8c99740711bcaa8c8d06e294dc8efc5cfe1795f5dfb65f75eb493a4b18c
  • Search design: generations, children, finalists, held-out
    research-records/prompt-search-v02/FREEZE-SEARCH-v0.2.md#4-search-design
    sha256 24f6bdaf7c580955f53fcada9da04fe66a4386a9ec516bf326dd0b9d24f02e09
  • DGM: archive of every child that compiles and can still edit code
    research-records/sources/arxiv-2505.22954/FINDINGS.md#2-method
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • HGM: tree search over agent versions
    research-records/sources/arxiv-2510.21614/FINDINGS.md#method
    sha256 151a764603acbcdc053f22a7bd08d3c4b0aa34b4bacff9a334a2415db0a35980

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • No measured benefit: archive vs greedy has not been run (E3 repeats and E4' are queued, E3 capped at $11).
  • The DGM evidence for it is single runs, without confidence intervals, partly on selection tasks.
  • Only the eligibility and composition rule is shown; the proposer, the stage schedule and the held-out phase are outside this block.

Pitfalls

  • Reporting the winner on the tasks it was selected on (DGM's 50.0% headline is on its selection tasks; the audit found no strict holdout).
  • Single runs and unequal budgets between arms.
  • A launch from inside a worker's scope dies with the scope: the first v0.2 attempt was killed at 17:20 UTC by its launcher; run funded searches as their own systemd user unit.

Family

DGM archive and sigmoid selection (2505.22954) -> HGM clade Thompson (2510.21614) -> our sealed harness with both rules selectable. The v0.1 run was interrupted and its dev data discarded (see evaluator-access-guard-v01); v0.2 ended NO_HEADROOM; the 3b search on the v0.5 gate is drafted, not sealed, not run.

Used in

  • APS-1 creator-prompt search harness
  • Darwin Gödel Machine (DGM)

Related patterns

  • Fits with Evaluator-access guard (v0.2)

    The guard decides eligibility: a disqualified variant never parents and adds nothing to an ancestor's clade. Its false-positive rate therefore decides what the archive can grow.

  • Fits with Fixed verifier as judge

    Archive rows hold only verifier output on development cases; held-out results never enter a row, so selection cannot overfit the held-out set.

    Open this pattern
  • Fits with Verified probe adapters

    The creator's prompt is what a search varies and this gate is the fixed evaluator it is scored against (rung 3b).

  • Part of APS-1 creator-prompt search harness

    No note on this link.

  • Part of DGM improvement loop

    No note on this link.

    Open this pattern
  • Used in APS-1 creator-prompt search harness

    No note on this link.

  • Used in Darwin Gödel Machine (DGM)

    No note on this link.

    Open this pattern

← Back to the shelf

primitive · reproduced · in-use

Fixed verifier as judge

Use when the thing being judged must not learn the test.

The score comes from cases the candidate cannot see or edit, fixed by a seal written before any candidate runs. The candidate is told only which classes failed, never a case, an input or an expected value.

Positive · n = 6 · a single run · $3.6217

How it works

  1. Input

    Hidden cases, by class

    • hidden_tests
    • wrong_shape
    What happensseal_digest ✔ pass
    Output

    9d4e1bbb87347b65…

    Step 1. sha256 of the canonical JSON text; Python and JavaScript must produce the same hex digest

  2. Input

    Candidate's outputs

    1. {"requests": 0}
    2. "refused"
    What happensjudge ✔ pass

    Behind the wall: hidden cases for hidden_tests, wrong_shape. The candidate never sees them.

    Output (what the candidate sees)

    ✔ accepted failed classes: none

    Step 2. every output equals its sealed expectation

  3. Input

    Candidate's outputs

    1. {"requests": 0}
    What happensjudge ◆ boundary

    Behind the wall: hidden cases for hidden_tests, wrong_shape. The candidate never sees them.

    Output (what the candidate sees)

    ✖ not accepted failed classes: wrong_shape

    Step 3. a missing output fails its case, and only that case's class is reported

  4. Input

    Candidate's outputs

    1. {"requests": 3}
    2. "answered"
    What happensjudge ✖ failure

    Behind the wall: hidden cases for hidden_tests, wrong_shape. The candidate never sees them.

    Output (what the candidate sees)

    ✖ not accepted failed classes: hidden_tests, wrong_shape

    Step 4. a failing candidate learns two class names and nothing about the inputs or expected values

  5. Input

    Candidate's outputs

    1. {"requests": 3}
    2. "refused"
    What happensjudge ✖ failure

    Behind the wall: hidden cases for hidden_tests, wrong_shape. The candidate never sees them.

    Output (what the candidate sees)

    ✖ raises ValueError

    Step 5. cases edited after the seal (expected requests 0 became 3) are refused before any judging

Use it

Python

Python, 33 lines
"""fixed-verifier-as-judge: the verdict comes from cases the candidate cannot see or edit, fixed by a seal.

The candidate only ever receives the failed CLASS names, never a case, an input or an expected value.
Stdlib only, offline, deterministic.
"""
import hashlib
import json


def canon(x):
    """Canonical JSON text: sorted keys, no spaces, ASCII only (so every language hashes the same bytes)."""
    return json.dumps(x, sort_keys=True, separators=(",", ":"), ensure_ascii=True)


def seal_digest(cases):
    """The seal: sha256 of the canonical text of the hidden cases. Written down before any candidate runs."""
    return hashlib.sha256(canon(cases).encode("ascii")).hexdigest()


def judge(outputs, cases, sealed):
    """outputs[i] is the candidate's output for cases[i]; each case is {"class": str, "expect": any}.

    Raises ValueError if the cases are not the sealed ones (the verifier moved). A missing output fails its case.
    Returns what the candidate may see: accepted or not, and the sorted failed classes. Nothing else.
    """
    if seal_digest(cases) != sealed:
        raise ValueError("verifier changed since the seal")
    failed = set()
    for i, case in enumerate(cases):
        got = outputs[i] if i < len(outputs) else None
        if got != case["expect"]:
            failed.add(case["class"])
    return {"accepted": not failed, "classes": sorted(failed)}

Javascript

Javascript, 28 lines
// fixed-verifier-as-judge, JavaScript twin (Node >= 18, CommonJS, no dependencies, no I/O).
// Same contract as the Python file: the candidate sees accepted/not and failed class names, nothing else.
const crypto = require("crypto");

function canon(x) {
  if (Array.isArray(x)) return "[" + x.map(canon).join(",") + "]";
  if (x !== null && typeof x === "object") {
    return "{" + Object.keys(x).sort().map((k) => JSON.stringify(k) + ":" + canon(x[k])).join(",") + "}";
  }
  return JSON.stringify(x);
}

function seal_digest(cases) {
  return crypto.createHash("sha256").update(canon(cases), "ascii").digest("hex");
}

function judge(outputs, cases, sealed) {
  if (seal_digest(cases) !== sealed) throw new Error("ValueError: verifier changed since the seal");
  const failed = new Set();
  cases.forEach((c, i) => {
    const got = i < outputs.length ? outputs[i] : null;
    if (canon(got) !== canon(c.expect)) failed.add(c.class);
  });
  const classes = [...failed].sort();
  return { accepted: classes.length === 0, classes };
}

module.exports = { canon, seal_digest, judge };

5 checks, all should pass

  1. ✔ pass seal_digest → returns "9d4e1bbb87347b658e5e484d6fd3d8d952da8f9b79fdf78b3487a21b047905ea"
    sha256 of the canonical JSON text; Python and JavaScript must produce the same hex digest
  2. ✔ pass judge → returns {"accepted": true, "classes": []}
    every output equals its sealed expectation
  3. ◆ boundary judge → returns {"accepted": false, "classes": ["wrong_shape"]}
    a missing output fails its case, and only that case's class is reported
  4. ✖ failure judge → returns {"accepted": false, "classes": ["hidden_tests", "wrong_shape"]}
    a failing candidate learns two class names and nothing about the inputs or expected values
  5. ✖ failure judge → raises ValueError
    cases edited after the seal (expected requests 0 became 3) are refused before any judging

Download vectors (JSON)

Run the checks yourself
python3 vectors.py atlas.json fixed-verifier-as-judge

Evidence

Verdict Positive

A fixed hidden-case gate refuses a submission and the creator is shown the class only

6 hidden-stage refusals over the v0.3, v0.4 and v0.5 creation runs (nginx_log x3, zpool_status x2, free_mem x1); each reported to the creator as a class

Cost is the three runs' list spend ($0.6295 + $1.4798 + $1.5124). Six events in three runs, one creator model; not a rate.

Sample size n6

Run record: research-records/adapt-eval-v05/runs/RUN-REPORT.md#per-family

Variancea single run

a single run

Cost$3.6217

Run record: research-records/adapt-eval-v05/runs/RUN-REPORT.md#per-family

Evidence stagereproduced

Our own recorded run shows the claimed effect once (a positive or a negative result).

Endora relationin-use

Built into the M1/M2 freezes and into the adapter gate of every sealed run since v0.2.

Sources and pinned commit

Pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2 (pinned by the sources of Darwin Gödel Machine (DGM))

  • The v0.5 gate: class names back to the creator, the full record kept by the evaluator
    research-records/adapt-eval-v05/adapter_gate.py#L425-L446
    sha256 2b7aa2c1428f50f8dfc319f4820b4daf7908cbe9bad5aebc42197258ee8c4959
  • Pre-registered rule the gate serves
    research-records/adapt-eval-v05/FREEZE-ADAPT-v0.5.md#positive-rule-pre-registered-v04s-plus-the-canary
    sha256 9f8076df2d2ae931d09a1c4bc64fa54efa714f3f7cda33403f5c309911188e91
  • DGM: SWE-bench scored on the host, only a patch crosses (the precedent); Polyglot graded in-container (the failed variant)
    research-records/sources/arxiv-2505.22954/FINDINGS.md#8-code-findings-sha-a565fd2d
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • A fixed verifier fixes what is measured, not whether it is the right thing: a gate defect (v0.1) looked like a capability failure until diagnosed offline.
  • Evidence is six refusals in three runs with one creator model; no variance estimate.
  • The Python and JavaScript twins here are 30-line re-expressions of the contract, not the production gate.

Pitfalls

  • A verifier defect scored as a candidate failure: v0.1 staged each submission 0700, the container could not read it, 8 of 8 own-test records read zero (INVALID-RUN).
  • Grading inside the container the candidate just edited (DGM Polyglot) leaves the hidden tests reachable.
  • A case id, input or expected value leaking through feedback text, an error message or a log.

Family

M1/M2 hidden suites (evaluator-outside-candidate) -> the adapter gate (v0.2 to v0.5). DGM's host-side SWE-bench scoring is the external precedent; its Polyglot in-container grading is recorded as the failed variant in-container-grading.

Used in

  • Adapter vault
  • APS-1 creator-prompt search harness
  • Darwin Gödel Machine (DGM)

Related patterns

  • Fits with Archive-based selection

    Archive rows hold only verifier output on development cases; held-out results never enter a row, so selection cannot overfit the held-out set.

    Open this pattern
  • Fits with Refusal contract

    The hidden suite and the wrong-shape generator both read this table, so a correct answer is never also a must-refuse case.

  • Alternative to In-container grading (DGM Polyglot)

    No note on this link.

    Open this pattern
  • Part of Adapter vault

    No note on this link.

  • Part of APS-1 creator-prompt search harness

    No note on this link.

  • Part of DGM evaluation

    No note on this link.

    Open this pattern
  • Used in Adapter vault

    No note on this link.

  • Used in APS-1 creator-prompt search harness

    No note on this link.

  • Used in Darwin Gödel Machine (DGM)

    No note on this link.

    Open this pattern

← Back to the shelf

mechanism · researched · reference

Staged evaluation

Use when most candidates are weak and a full test is dear.

Score a child on a few tasks first and spend the larger evaluation only on children that clear a threshold, so weak children cost little.

Not measured · n = 0 · no variance estimate Why not measured: No run of ours exists for this claim (record: not-run).

How it works

  1. Input

    resolved 4 · tasks 10 · threshold 0.4 (default)

    What happensadvance_paper ◆ boundary
    Output

    paper says stop

    ⚠ The paper and the code disagree here.

    Step 1. paper wording 'above 40%': 4 of 10 is exactly 40% and does not advance

  2. Input

    resolved 4 · tasks 10 · threshold 0.4 (default)

    What happensadvance_code ◆ boundary
    Output

    code says advance

    ⚠ The paper and the code disagree here.

    Step 2. released code: resolved >= 0.4 x 10, so 4 of 10 advances: the two readings disagree here

  3. Input

    resolved 5 · tasks 10 · threshold 0.4 (default)

    What happensadvance_paper ✔ pass
    Output

    paper says advance

    Step 3. 50% is above the threshold under either reading

  4. Input

    resolved 3 · tasks 10 · threshold 0.4 (default)

    What happensadvance_code ✔ pass
    Output

    code says stop

    Step 4. 30% advances under neither reading

  5. Input

    resolved 0 · tasks 0 · threshold 0.4 (default)

    What happensadvance_code ✖ failure
    Output

    ✖ raises ValueError

    Step 5. a stage with no tasks has no rate

Use it

Python

Python, 20 lines
"""staged-evaluation: a cheap first stage decides whether an expensive second stage runs (DGM: 10 tasks, then 50, then more).

Our re-expression of the filter, NOT DGM's code. The two functions differ at exactly one point, the boundary:
the paper says "above 40%"; the released code (swe_bench and polyglot harness, SHA a565fd2d) advances at
resolved >= 0.4 * tasks. 4 of 10 is the case where they disagree.
"""


def advance_paper(resolved, tasks, threshold=0.4):
    """Paper wording: advance when the success rate is above the threshold."""
    if tasks <= 0:
        raise ValueError("no tasks")
    return resolved / tasks > threshold


def advance_code(resolved, tasks, threshold=0.4):
    """Released-code behaviour: advance when resolved >= threshold * tasks."""
    if tasks <= 0:
        raise ValueError("no tasks")
    return resolved >= threshold * tasks

5 checks, all should pass

  1. ◆ boundary advance_paper → returns false
    paper wording 'above 40%': 4 of 10 is exactly 40% and does not advance
  2. ◆ boundary advance_code → returns true
    released code: resolved >= 0.4 x 10, so 4 of 10 advances: the two readings disagree here
  3. ✔ pass advance_paper → returns true
    50% is above the threshold under either reading
  4. ✔ pass advance_code → returns false
    30% advances under neither reading
  5. ✖ failure advance_code → raises ValueError
    a stage with no tasks has no rate

Download vectors (JSON)

Run the checks yourself
python3 vectors.py atlas.json staged-evaluation

Evidence

Verdict Not measured

Staging cuts evaluation cost without losing good children

Not measured by us.

Why not measured: No run of ours exists for this claim (record: not-run).

Sample size n0

No run record.

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationreference

A cheap filter worth copying (reuse list item); the boundary ambiguity below is the thing to pin when we do.

Sources and pinned commit

Pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2 (pinned by the sources of Darwin Gödel Machine (DGM))

  • 10 tasks, then 50, then 140 more: the paper's staging
    research-records/sources/arxiv-2505.22954/FINDINGS.md#3-evaluation-design
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • The code advances at resolved >= 0.4 x 10; the 200-task stage is not in the release
    research-records/sources/arxiv-2505.22954/FINDINGS.md#8-code-findings-sha-a565fd2d
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

⚠ The paper and the released code disagree here

  • Paper at 4 of 10 stop
    paper wording 'above 40%': 4 of 10 is exactly 40% and does not advance
  • Released code at 4 of 10 advance
    released code: resolved >= 0.4 x 10, so 4 of 10 advances: the two readings disagree here

Watch out

  • Our re-expression only; the stage schedule of the release differs from the paper.
  • A cheap first stage can reject children that would have improved later.

Pitfalls

  • State whether the threshold is strict: the paper and the code differ at exactly 40%.
  • The 200-task stage described in the paper is not in the release (full_eval_threshold is passed but unused).

Family

DGM appendix E.2-E.3. Our code is a re-expression showing the boundary, not DGM's implementation.

Used in

  • Darwin Gödel Machine (DGM)

Related patterns

← Back to the shelf

primitive · researched · candidate

Append-only hash-chained archive

Use when you need a memory the model itself can never edit.

The search's memory is a list of rows, each carrying the sha256 of the row before it, written only by the search code and never by a model. Editing any past row breaks the chain at the next row.

Not measured · n = 0 · no variance estimate Why not measured: : the live v0.2 run held one variant (the baseline) and never searched

How it works

  1. Input[[{"id": "a"}, {"id": "b"}, {"id": "c"}]]
    What happenschain ✔ pass
    Output

    [{"id": "a", "prev": "0000000000000000000000000000000000000000000000000000000000000000"}, {"id": "b", "prev": "1306ca6217544bd4310d938f0c9f08c3915611503e3c90ded6bca316837c5df5"}, {"id": "c", "prev": "f8fbbf1fdfce90e623944d9eb5ad75d1f54fa21ebe7a450158798dc58c57f635"}]

    Step 1. the first row links to 64 zeros, each later row to the sha256 of the canonical JSON of the row before

  2. Input[[{"id": "a", "prev": "0000000000000000000000000000000000000000000000000000000000000000"}, {"id": "b", "prev": "1306ca6217544bd4310d938f0c9f08c3915611503e3c90ded6bca316837c5df5"}, {"id": "c", "prev": "f8fbbf1fdfce90e623944d9eb5ad75d1f54fa21ebe7a450158798dc58c57f635"}]]
    What happensverify ✔ pass
    Output

    true

    Step 2. the chain above verifies

  3. Input[[]]
    What happensverify ◆ boundary
    Output

    true

    ⚠ The paper and the code disagree here.

    Step 3. an empty archive is intact

  4. Input[[]]
    What happenschain ◆ boundary
    Output

    []

    ⚠ The paper and the code disagree here.

    Step 4. chaining nothing yields nothing

  5. Input[[{"id": "a", "prev": "0000000000000000000000000000000000000000000000000000000000000000"}, {"id": "x", "prev": "1306ca6217544bd4310d938f0c9f08c3915611503e3c90ded6bca316837c5df5"}, {"id": "c", "prev": "f8fbbf1fdfce90e623944d9eb5ad75d1f54fa21ebe7a450158798dc58c57f635"}]]
    What happensverify ✖ failure
    Output

    ✖ raises ValueError

    Step 5. renaming row b (id x) breaks the link stored in row c: ValueError names row c

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

Verdict Not measured

A tamper-evident archive changes search outcomes

Not measured: the live v0.2 run held one variant (the baseline) and never searched.

Why not measured: : the live v0.2 run held one variant (the baseline) and never searched

Sample size n0

Run record: research-records/prompt-search-v02/runs/RESULT.json#L1-L78

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationcandidate

Part of the sealed rung-3 harness; its value is unmeasured because the live run never searched.

Sources and pinned commit

No commit is pinned on this card; its sources are pinned by their checksums.

  • Archive class: hash chain on load and append
    research-records/prompt-search-v02/archive.py#L16-L40
    sha256 fc60e8c99740711bcaa8c8d06e294dc8efc5cfe1795f5dfb65f75eb493a4b18c
  • DGM keeps lineage as diffs, which is how its hack was caught
    research-records/sources/arxiv-2505.22954/FINDINGS.md#10-for-a-small-lab
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

⚠ The paper and the released code disagree here

  • Released code at [] advance
    an empty archive is intact
  • Released code at [] stop
    chaining nothing yields nothing

Watch out

  • Unit-level behaviour only; no search result depends on it yet.
  • Integrity of the host and of the file's permissions is assumed.

Pitfalls

  • Hash-chaining detects edits, it does not stop them: keep the file out of the creator's mount.
  • Digest uses json.dumps defaults with sorted keys; another language must reproduce that exact text.

Family

DGM's archive is a folder of agents; the hash chain is our addition so a lineage rewrite is detectable.

Used in

  • APS-1 creator-prompt search harness
  • Darwin Gödel Machine (DGM)

Related patterns

  • Part of Archive-based selection

    No note on this link.

    Open this pattern
  • Used in APS-1 creator-prompt search harness

    No note on this link.

  • Used in Darwin Gödel Machine (DGM)

    No note on this link.

    Open this pattern

← Back to the shelf

primitive · researched · reference

DGM parent selection (sigmoid / children)

Use when you want good parents favoured but crowded ones rested.

Weight each archive node by sigmoid(10 x (score - 0.5)) divided by (1 + its children) and draw a parent in proportion: favour high scorers, but discount a node that already has many children so exploring continues.

Not measured · n = 0 · no variance estimate Why not measured: Authors' claim only (DGM 50.0 vs Greedy 39.7 on SWE-bench, single runs, no noise estimate)

How it works

  1. Input

    score 0.5 · children 0

    What happensdgm_weight ✔ pass
    Output

    about 0.5 (± 1e-12)

    Step 1. sigmoid(0) is 0.5 and an unexpanded node has no discount

  2. Input

    score 0.5 · children 1

    What happensdgm_weight ✔ pass
    Output

    about 0.25 (± 1e-12)

    Step 2. one child halves the weight

  3. Input

    score 0.0 · children 0

    What happensdgm_weight ◆ boundary
    Output

    about 0.0066928509242848554 (± 1e-12)

    Step 3. score 0 is nearly never picked but not impossible: 1/(1+e^5)

  4. Input[[{"id": "a", "score": 0.5, "children": 0}, {"id": "b", "score": 0.5, "children": 1}], 0.5]
    What happensdgm_pick ✔ pass
    Output

    a

    Step 4. probabilities 2/3 and 1/3; a draw of 0.5 lands in a's share

  5. Input[[]]
    What happensdgm_probs ✖ failure
    Output

    ✖ raises ValueError

    Step 5. no eligible node means there is nothing to expand

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

Verdict Not measured

Sigmoid selection beats greedy

Authors' claim only (DGM 50.0 vs Greedy 39.7 on SWE-bench, single runs, no noise estimate); not reproduced by us.

Why not measured: Authors' claim only (DGM 50.0 vs Greedy 39.7 on SWE-bench, single runs, no noise estimate)

Sample size n0

No run record.

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationreference

Kept selectable in our harness 'for the record'; HGM-style clade selection is our primary rule.

Sources and pinned commit

No commit is pinned on this card; its sources are pinned by their checksums.

  • Parent selection, appendix C.2 p. 28 (sigmoid with lambda 10, midpoint 0.5)
    research-records/sources/arxiv-2505.22954/FINDINGS.md#2-method
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • Our selectable 'dgm' rule
    research-records/prompt-search-v02/archive.py#L83-L108
    sha256 fc60e8c99740711bcaa8c8d06e294dc8efc5cfe1795f5dfb65f75eb493a4b18c

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • Our re-expression of the formula, not DGM's code.
  • The evidence for it over greedy is single runs without intervals.

Pitfalls

  • The DGM CLI's 'best' mode cannot be reached in the released code (a missing comma, issues #31, #32): read the weights from the paper, not from the flag.

Family

DGM (2505.22954) -> replaced in HGM (2510.21614) by clade-level Thompson sampling, whose authors report the DGM utility correlates with clade metaproductivity at only 0.285.

Used in

  • Darwin Gödel Machine (DGM)

Related patterns

← Back to the shelf

mechanism · researched · reference

DGM self-modification

Use when an agent should read its own failures and fix itself.

A model reads the parent agent's own evaluation logs and writes a problem statement about its weakest behaviour; the parent agent then implements the fix in its own repository. The child joins the archive if it still compiles and can still edit code.

Not measured · n = 0 · no variance estimate Why not measured: Not reproduced by us

How it works

This card has no checks to step through, so here is the mechanism in words.

A model reads the parent agent's own evaluation logs and writes a problem statement about its weakest behaviour; the parent agent then implements the fix in its own repository. The child joins the archive if it still compiles and can still edit code.

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

Verdict Not measured

A model-written problem statement lets an agent improve itself

Not reproduced by us.

Why not measured: Not reproduced by us

Sample size n0

No run record.

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationreference

Needs a funded model loop and the DGM repository; not reproduced by us. Our proposer is a prompt search, a smaller step.

Sources and pinned commit

Pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2 (pinned by the sources of Darwin Gödel Machine (DGM))

  • Self-modification, C.3 pp. 28-30
    research-records/sources/arxiv-2505.22954/FINDINGS.md#2-method
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f
  • Leakage into the proposer: the prompt includes test patch and eval log
    research-records/sources/arxiv-2505.22954/FINDINGS.md#8-code-findings-sha-a565fd2d
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

What this card's own notes say about paper versus code

  • Hard-coded entries in the released code are not described in the paper.

Watch out

  • The proposer sees private test text and results, disclosed but not ablated.
  • Hard-coded entries in the released code are not described in the paper.

Family

Original to DGM; Hyperagents lets the improvement procedure itself be edited (same lab, not independent).

Used in

  • Darwin Gödel Machine (DGM)

Related patterns

← Back to the shelf

mechanism · researched · reference

Objective-hacking guard

Use when an agent might score well by cheating the log.

Insert special tokens into the agent's tool-use logs and check that the model's own text never contains them; review lineage diffs to see how a child changed. DGM caught one agent scoring a perfect 2.0 by deleting the logging of those tokens.

Not measured · n = 1 · no variance estimate Why not measured: One case in the paper (node 114): detected only once the markers were removed and the lineage diffs were read

How it works

This card has no checks to step through, so here is the mechanism in words.

Insert special tokens into the agent's tool-use logs and check that the model's own text never contains them; review lineage diffs to see how a child changed. DGM caught one agent scoring a perfect 2.0 by deleting the logging of those tokens.

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

Verdict Not measured

Marker logging detects fabricated tool traces

One case in the paper (node 114): detected only once the markers were removed and the lineage diffs were read.

Why not measured: One case in the paper (node 114): detected only once the markers were removed and the lineage diffs were read

Sample size n1

No run record.

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationreference

The best documented case of an agent editing its own measurement; informs where our markers live (never in code the agent can edit).

Sources and pinned commit

No commit is pinned on this card; its sources are pinned by their checksums.

  • Fabricated tool traces; node 96 scored 1.67, node 114 scored 2.0 after removing the marker logging
    research-records/sources/arxiv-2505.22954/FINDINGS.md#5-objective-hacking-app-h-pp-69-71
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • The markers lived in the agent's own writable code, so the agent could remove them.
  • Hacking was caught by reviewing lineage diffs, not by the automatic check.

Family

Original to DGM App. H.

Used in

  • Darwin Gödel Machine (DGM)

Related patterns

  • Fits with Evaluator-access guard (v0.2)

    Different tripwires: this one watches the tool calls a creator makes toward the evaluator; DGM's watches the model's own text for fabricated tool traces. Run both, and keep any marker outside code the agent can edit.

  • Part of DGM evaluation

    No note on this link.

    Open this pattern
  • Used in Darwin Gödel Machine (DGM)

    No note on this link.

    Open this pattern

← Back to the shelf

primitive · researched · rejected

In-container grading (DGM Polyglot)

Use when you are tempted to grade where the candidate just worked.

Grade the agent inside the same container it just edited, after git stash, reset and clean. Changes outside tracked files persist and the hidden tests and reference solutions sit in the image, so the grader and the candidate share a world.

Not measured · n = 0 · no variance estimate Why not measured: Reported as an open issue (#35)

How it works

This card has no checks to step through, so here is the mechanism in words.

Grade the agent inside the same container it just edited, after git stash, reset and clean. Changes outside tracked files persist and the hidden tests and reference solutions sit in the image, so the grader and the candidate share a world.

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

Verdict Not measured

Hidden tests are reachable from the agent's container

Reported as an open issue (#35); no exploitation was seen in the logs.

Why not measured: Reported as an open issue (#35)

Sample size n0

No run record.

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationrejected

The failed variant of the fixed verifier: our two-principal vault exists to avoid it.

Sources and pinned commit

Pinned commit a565fd2d1dca504ef5104a7cc0f3bdc4ab9b4fd2 (pinned by the sources of Darwin Gödel Machine (DGM))

  • Polyglot isolation is weaker: COPY ./polyglot /polyglot at dockerfiles.py:86; open issue #35
    research-records/sources/arxiv-2505.22954/FINDINGS.md#8-code-findings-sha-a565fd2d
    sha256 130a0cd0adf88bc6d604e799eab0b77a9461ef9363f853bce28e750110c8697f

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • Our reading of the code and an open issue; no exploit was run by us.

Family

✖ design-rejected

Weaker twin of DGM's SWE-bench arrangement (score on the host, only a patch crosses).

✖ design-rejected

Used in

  • —

Related patterns

← Back to the shelf

primitive · researched · candidate

HGM clade Thompson selection

Use when a parent's own score says little about its descendants.

Score a node by its whole clade (itself plus every eligible descendant): Beta(1 + accepted, 1 + not accepted) over the clade's episodes, one draw per eligible node, expand the largest. A version's own score is a weak guide to whether improving from it pays off.

Not measured · n = 0 · no variance estimate Why not measured: Authors' claim only (correlation 0.78 / 0.63 weighted vs 0.28-0.44 for DGM and SICA

How it works

  1. Input[{"a": {"parent": null, "eligible": true, "accepted": 5, "episodes": 10}, "b": {"parent": "a", "eligible": true, "accepted": 8, "episodes": 10}, "c": {"parent": "b", "eligible": false, "accepted": 10, "episodes": 10}, "d": {"parent": "c", "eligible": true, "accepted": 10, "episodes": 10}}, "a"]
    What happensclade_posterior ✔ pass
    Output

    [14, 8]

    Step 1. a (5 of 10) plus its eligible child b (8 of 10) = 13 accepted of 20: Beta(14, 8)

  2. Input[{"a": {"parent": null, "eligible": true, "accepted": 5, "episodes": 10}, "b": {"parent": "a", "eligible": true, "accepted": 8, "episodes": 10}, "c": {"parent": "b", "eligible": false, "accepted": 10, "episodes": 10}, "d": {"parent": "c", "eligible": true, "accepted": 10, "episodes": 10}}, "b"]
    What happensclade_posterior ◆ boundary
    Output

    [9, 3]

    Step 2. b's child c is ineligible, so c and its eligible child d add nothing: only b's own 8 of 10

  3. Input[{"a": {"parent": null, "eligible": true, "accepted": 5, "episodes": 10}, "b": {"parent": "a", "eligible": true, "accepted": 8, "episodes": 10}, "c": {"parent": "b", "eligible": false, "accepted": 10, "episodes": 10}, "d": {"parent": "c", "eligible": true, "accepted": 10, "episodes": 10}}, "d"]
    What happensclade_posterior ✔ pass
    Output

    [11, 1]

    Step 3. an eligible leaf: 10 of 10

  4. Input[{"a": 0.4, "b": 0.4, "c": 0.1}]
    What happenspick ✔ pass
    Output

    a

    Step 4. equal draws go to the id that sorts first, so a run is reproducible

  5. Input[{"a": {"parent": null, "eligible": true, "accepted": 5, "episodes": 10}, "b": {"parent": "a", "eligible": true, "accepted": 8, "episodes": 10}, "c": {"parent": "b", "eligible": false, "accepted": 10, "episodes": 10}, "d": {"parent": "c", "eligible": true, "accepted": 10, "episodes": 10}}, "zzz"]
    What happensclade_posterior ✖ failure
    Output

    ✖ raises KeyError

    Step 5. a node that is not in the archive cannot be scored

Use it

This card has no runnable code here. The Atlas card holds what exists.

Evidence

Verdict Not measured

Clade selection tracks improvement better than a node's own score

Authors' claim only (correlation 0.78 / 0.63 weighted vs 0.28-0.44 for DGM and SICA; single runs, no intervals); not reproduced by us.

Why not measured: Authors' claim only (correlation 0.78 / 0.63 weighted vs 0.28-0.44 for DGM and SICA

Sample size n0

No run record.

Varianceno variance estimate

no variance estimate

Evidence stageresearched

Read about, or built, but no run of ours shows the effect the card claims.

Endora relationcandidate

The primary parent rule of the rung-3 harness; its benefit over greedy is the experiment E3/E4' would measure.

Sources and pinned commit

No commit is pinned on this card; its sources are pinned by their checksums.

  • Clade metaproductivity and Thompson sampling (2510.21614)
    research-records/sources/arxiv-2510.21614/FINDINGS.md#method
    sha256 151a764603acbcdc053f22a7bd08d3c4b0aa34b4bacff9a334a2415db0a35980
  • Our clade_stats and the hgm rule: ineligible nodes add nothing and are not walked
    research-records/prompt-search-v02/archive.py#L66-L90
    sha256 fc60e8c99740711bcaa8c8d06e294dc8efc5cfe1795f5dfb65f75eb493a4b18c

Paper versus released code

No paper-versus-code comparison is recorded for this card.

Watch out

  • Mismatch evidence is one table with no node counts or repeats.
  • The sampling step is not covered by the vectors.

Pitfalls

  • Selecting on the same tasks the result is reported on (DGM's headline and HGM's Table 2 are on selection tasks).
  • A flagged variant must never parent, nor feed an ancestor's clade.

Family

Successor of select-sigmoid-dgm: HGM re-ran DGM as its baseline and replaced the selection rule.

Used in

  • APS-1 creator-prompt search harness

Related patterns

  • Alternative to DGM parent selection (sigmoid / children)

    No note on this link.

    Open this pattern
  • Part of Archive-based selection

    No note on this link.

    Open this pattern
  • Used in APS-1 creator-prompt search harness

    No note on this link.