Skip to content

IdeaL Loop (experimental)

IdeaL already learns from evolution: before each mutation it hands out a slate of ideas, after the mutation it records the score change, and it rates ideas by those outcomes. The loop treats one generation the same way:

EvolutionGeneration
A runOne generation of one task
A mutationOne authoring or repair attempt (a candidate)
The mutation’s score changeThe candidate’s self-check score
The run’s best chainThe final chain, with its execution quality as fitness

No new server endpoints are needed. The server’s own control arm (a share of slates deliberately left empty) is what lets it compare “with ideas” against “without ideas”, for generation exactly as for evolution. See Rating and outcomes.

sequenceDiagram
    participant G as v3 generator
    participant L as IdeaL
    G->>L: retrieve (evolution), candidate c0, focus = task
    L-->>G: idea slate (or empty control slate)
    G->>G: author, admit
    G->>L: outcome (mutation): parent score, delta, cited ideas, chain diff
    loop each repair round
        G->>L: retrieve (evolution), focus = admission or dry-run diagnosis
        L-->>G: idea slate
        G->>G: repair, admit, dry run
        G->>L: outcome (mutation)
    end
    Note over G: the benchmark runner executes the chain
    G->>L: outcome (run): final chain, fitness = execution quality
  • Every generation opens with an evolution retrieve, even when no idea is wanted: the server scopes a mutation outcome to a namespace and task only through the run that retrieve registers.
  • Ideas are focused by the task description at c0 and by the diagnosis at repairs (memory_loop_ideas_by: diagnosis, the default), or always by the task (query).
  • Score of a candidate: 0 if it was not admitted, 0.5 if admitted, and 0.5 + 0.5 × the share of passed dry-run fixtures after a dry run. Only self checks feed this score; the benchmark grader never does.
  • After execution the run outcome stores the final chain tagged with its task, so the catalog can return it to the next generation of the same task. That is what the reuse ladder reads.
  • A memory failure never fails a generation. Every call and its error is kept in the trace (memory_loop.calls).

Per benchmark arm:

FieldDefaultMeaning
memory_loopofflocal: reuse ladder only. ideal: reuse ladder plus IdeaL rounds.
memory_loop_store, memory_loop_namespaceunsetIdeaL base URL and namespace.
memory_loop_chain_storelocalWhere proven chains live: a local JSON store or IdeaL (run outcomes and the catalog).
memory_loop_learntruefalse freezes the lake: ideas are delivered, nothing is posted.
memory_loop_ideas_bydiagnosisOr query.
memory_loop_ideas_k3Ideas per slate shown to the author.
memory_loop_reuse, memory_loop_ideastrueSwitch the ladder or the ideas off.
memory_loop_exact_min_fitness, memory_loop_near_min_similarity, memory_loop_near_min_fitness0.999, 0.8, 0.999Reuse thresholds.
memory_loop_near_modeadaptOr reuse_if_admits, which returned an outdated answer in a live test and is no longer the default.

The IdeaL key is read from IDEAL_API_KEY (header X-API-Key).

The loop was written against the IdeaL server branch feat/ideal-v0 (commit 210d2f1) by reading its code. It calls POST /v1/ideal/retrieve and POST /v1/ideal/outcome. This was not checked against the IdeaL API documented in API reference.

  • Idea extraction from outcomes runs only if the server has extraction and a lake LLM configured; it is off by default.
  • Search is English-only, so the study’s seed lake is in English.
  • Namespaces are created by the first write.