The Gemini Offensive: Five Google Papers and the Agent and Skill Design of singlefs --- Writing a COW File System from Scratch 10

2026-12-03来源 dev.toEnglish

"Don't be evil." —— Google's old motto. Later changed to "Do the right thing."

Ever since Gemini shipped Antigravity, you can see it evolving with your own eyes. The latest carbon already matches Claude in quite a few scenarios. When I use carbon for code review, it catches a lot of Claude's blind spots. That said, my core working agent is still Claude; moving the whole setup over is not easy.
I hear a new Claude model is coming soon. Will it be Oxygen? Or will Gemini 4 arrive first? Kind of looking forward to it.

From loathing Gemini Pro to "carbon will do" whenever my Claude quota runs tight, that's quite a turnaround for me.

As it happens, I recently saw someone analyzing a few Google papers from this autumn, all about "continual self-evolution". The five were submitted between mid-September and mid-November:

Short name Title Submitted
Dream-RSI Recursive Self-Improvement through Evolving Worlds 2026-09-14
RRSI Regularized Recursive Self-Improvement of Agent Harnesses 2026-09-21
Harness² Recursive Agent Harnessing for an Open World 2026-10-09
SIM Self-Improvement Memory Enables Continual Recursive Self-Improvement 2026-11-13
GUARD Stabilizing Recursive Self-Improvement with Regret Guidance 2026-11-17

Most of them come from the same crew at Google Cloud AI Research; Dream-RSI and SIM also have DeepMind authors.

Reading them felt familiar. Not one of the five is about "how to train a bigger model". The model weights are frozen in all of them. What changes is the ring around the model: the harness, prompts, tools, memory, review, gates.

Indeed, at this point in LLM history, throwing more data and bigger models at the problem is yielding diminishing returns. The engineering and the guardrails around the model matter more and more.

This article is not a head-to-head comparison. My makeshift operation can't compare with Google: they're a research team with benchmark numbers; I'm one person writing a file system with a swarm of agents. I just want to talk about the similarities, and what those similarities grew into inside singlefs.

The five papers, my summary:

  • Dream-RSI: save every exploration run as a whole tree and use it as a replayer, again and again.
  • RRSI: self-improvement overfits to the exam; it needs constraints and someone whose job is to find fault.
  • Harness²: the improver itself stays put; what grows thicker is a book of experience.
  • SIM: the history of improvement must leave a trail, and you can carry it along when the task or the model changes.
  • GUARD: first make sure nothing regresses, then talk about progress.

Alright, one paper at a time.

  1. Dream-RSI: dreaming, and differential testing at scale What the paper does Dream-RSI adds a very thin orchestration layer outside a coding agent. It decides how exploration branches, how many paths run in parallel, and when to stop. The agent itself is not changed.

The key is that every finished "discovery tree" is saved whole: each node stores the attempt, a workspace snapshot, and the score. Next time you want to try a new exploration strategy, you don't burn real online calls; you first replay it on the saved trees and score it offline. The paper calls this "dreaming". The best strategy picked in the dream is taken back online, and the new trees it produces are added to the history pool.

The most eye-catching number: on the Lasso regularization path task, with Gemini-3.1-Pro, it used 317 agent calls, while a fixed exploration strategy needed 550. The "162x" that the media keeps repeating is 317 against the 51,200 generations SimpleTES reported for itself. The two sides used different models, and the paper says so itself. Take it as entertainment.

Put simply, every path walked is saved together with its result and becomes reusable. When a new strategy wants to walk the same path, it doesn't walk it again; it just looks up the result from back then. What's saved is the cost of online evaluation; what's improved is "how exploration compute gets allocated".

What it looks like in singlefs
singlefs trains no models, but singlefs has differential testing at scale. And what that ended up growing into looks uncannily like Dream-RSI's "replayer".

The previous article covered crash-point replay: cut the write stream into segments at barriers, let any combination of writes in a segment land on disk, and judge state by state. The number of states grows exponentially with segment length, so it has to be "scaled up":

  • 2026-09-13, the first transaction: 262,165 crash states, exhaustive, 0 violations.
  • The full run of 2026-09-28 (two machines, 31 cores, expansion depth 28): multi-record publish 268,435,552 states, 0 red; seven tree-split streams 78,905,428 states, 0 red; the local share 987,824,190 states, 0 red, taking 9809 seconds.
  • Exit item 10 of milestone four: at least 10 billion states judged per milestone.

Ten billion states, at 19.5 milliseconds per state on the CPU: do the math and you see there's no way to judge everything from scratch every time. So milestone three nearly tore this part down and rewrote it, and the core is a verdict store:

  • Every block of verdicts is stored under a key. Key = digest of this stretch of writes and the starting disk image + plan digest + block start + judging fingerprint.
  • The judging fingerprint is per function: change one function, and only the verdicts that used it are invalidated; everything else is reused.
  • Each run randomly picks a few already-judged entries as sentinels, plus one forced re-judgement. If the result differs from the store, the reuse mechanism itself goes red.

At first, to keep it simple, the digest of the whole library was the key, so changing a single character of the judging code invalidated everything. We ended up re-judging 3.9 billion extra states. That's what forced the per-function fingerprint.

See: Dream-RSI stores "what score this exploration node got back then"; singlefs stores "what verdict this block of crash states got back then". Dream-RSI uses the saved trees to evaluate new strategies offline; singlefs uses the saved verdicts to skip what hasn't changed and judge only what's new. Both solve the same problem: every online evaluation is too expensive, and what was evaluated before has to be reusable.

The differences are just as clear. Dream-RSI's replay is approximate. A saved score represents "the environment back then", offline scores drift from online results, and the paper admits that on one task (Autocorrelation) it loses to the baseline. singlefs's verdict store doesn't allow approximation: if a single bit of the key doesn't match, it re-judges, and the sentinels and forced re-judgement exist to check "is the reuse lying to us". A file system has no room for "roughly right".

One word on the differential half. Model differential testing feeds the same random sequence of operations to an ideal in-memory file system and to the real implementation, and compares outcomes step by step. On 2026-09-17, the first run against crates/: of four histories, the second one already showed a mismatch; only after four fixes to the model did everything match. Along the way it hit a real bug in the implementation: after more than 24 publishes within one mount, the bookkept allocation was 3981312, while walking all valid roots gave 3964928. They didn't match.

  1. RRSI: don't tune to the exam, and the three-way review What the paper does RRSI found a very plain problem: let an agent automatically modify its own harness, and it overfits to the task set used for evolution. The score goes up; switch to another task set and it falls apart.

The fix is constraints at both ends:

  • The proposing end: each candidate has a budget for how many places it may change. Big changes early on, a tighter budget later.
  • The selecting end: a critic filters out changes "targeted at a particular benchmark" before evaluation; a pruner marks components that never helped and deletes them.

The implementation has three roles: a proposer that suggests changes, an analyst that analyzes results, and a leakage critic whose whole job is to call out "you're gaming the test". All three are Claude Opus 4.8.

The result: scores on the evolution set rise less steeply, but out-of-distribution results get better: SWE-bench Verified +1.8, several other out-of-distribution tasks +3.5 to +4.7 each, and over 30% fewer policy tokens.

The core of the paper is regularization. But in its implementation, it reins in "self-improvement" with three roles that keep each other in check: one proposes, one looks, one finds fault. On this point, singlefs's three-way review goes further.

What it looks like in singlefs
singlefs has a three-way inference procedure (.claude/rules/three-way-inference.md). Each round dispatches two legs: the attacker reasons backward and hunts for counterexamples; the forward leg reasons along the design, and is replaced by a defender when a verdict already exists. The main agent writes the verdict and counts as the third party.

Verdicts are not decided by vote:

  • The main agent first reconstructs the code tree as of the moment work started, and checks each leg's citations line by line against that tree (cite-check.py). If the quoted original doesn't match, that point is void.
  • Any number a leg reports must be rerun in a copy before it can be cited.
  • Design-inference rounds run three times, each with a different attack surface; it counts as broken only if a majority of the three break it, and it stops after the third. Code rounds fix whatever is hit, then attack again, at most three rounds.

As of today, research/prompts/ holds 661 verdict files.

What resembles RRSI most is actually one act of "pruning". Early on, the three-way review had a third leg: a locally run open model, cheap and high-volume, meant to be an extra attacker. On 2026-09-28 I had an agent measure its adoption rate:

  • In 22 verdicts the main agent wrote a local-leg summary. Judged sentence by sentence: 3 hits, 5 partial hits, 14 misses.
  • Of 270 artifacts the local leg handed in, 43 were voided by the corruption gate: 16%.
  • The local model itself isn't expensive; what's expensive is the Sonnet wrapper that babysits it and the repeated resampling.

The next day it was decided: it doesn't work well, remove it. That's exactly what RRSI's pruner does: a component that never helped gets deleted, no matter how good the reason for adding it sounded.

As for the leakage-critic side, singlefs has a counterpart too, in mutation testing. When a mutation isn't caught by the tests, the laziest move is to say "these two forms are equivalent anyway" and walk away. Project rules don't allow that; the criterion is a single sentence:

When a mutation isn't caught, ask: if you pick another sample point, are they still equal?

This guards against the same thing RRSI does: passing just on the few inputs I happened to pick doesn't count as really passing.

carbon has made an appearance here too. There are a few line-by-line review reports from outside; the main agent dispatches investigators to check each point as "holds / partly holds / doesn't hold". For example, one batch of 9 points: 4 hold, 4 partly hold, 1 doesn't. Which model wrote it doesn't matter; whether it survives the check does.

  1. Harness²: the improver stays put, the experience piles up What the paper does Harness² targets the "open world": tasks never seen when the harness was designed, with no ground truth to check against. It has two layers:
  • The task layer: for the current task, propose a few changes, probe them, compose them (Propose–Probe–Compose).
  • The harnessing layer: distill experience from those changes and write it into a persistent experience library for future tasks.

The paper stresses that the model weights, the instructions of each stage, and the decision rules are all fixed; only the experience library changes. A single step already helps: up to +11.5 points on WorkBuddy-Bench.

So its "improver improving itself", more precisely, is: the improver's process stays put, and the book in the improver's hands gets thicker.

What it looks like in singlefs
This "book that keeps getting thicker" is, in singlefs, the upstream SOP repository: singlefs-ai-sop.

The flow goes like this:

  • When downstream work hits a pitfall, it first goes into a debt table, stating what input should be blocked.
  • Once a week a batch is evaluated. What can become a check that goes red goes into upstream rules/ and scripts/; what can't stays local to the project.
  • Changing the upstream governed body requires bumping VERSION, and CHANGELOG gets one section per version with no skipped numbers; both are judged by scripts. Today it's 0.0.78.
  • Downstream doesn't copy the text: skills and agents are stubs, and scripts are a thin wrapper that execs the shared script. If the version stamp doesn't match, the first gate stage goes red: the rules have changed, read before you run.

The rule files themselves contain only criteria, no arguments, no history. The reason was covered in an earlier article: the shorter the meta-prompt, the less of it gets diluted.

But accumulating experience isn't enough. When an agent changes a skill, an agent definition, or a gate, one agent alone doesn't get the final say. singlefs's rules:

  • Once a governance file (agent definition, rule, skill, hook, gate, script) is changed, a three-way round runs on the spot. The verdict must name every changed file by path, and the gate checks it category by category.
  • Every point the three-way review hits is first turned into a world that "must report non-zero", and only then is the definition changed. Red first, then the fix.
  • Every script and hook carries --selftest, and every branch that can go red has a break switch. The registries now hold 239 self-test rows and 118 break-switch rows.

And there have to be numbers. Before the adjustment of 2026-09-28, I had an agent measure the usage of the whole agent system: 8 days, 77 rounds, 367 leg agents, 930 million tokens converted, 22% of it subagents; one three-way round from dispatch to verdict took a median of 88 minutes, p90 200 minutes. The materials clerk sat on the critical path for 20 minutes, doing what was really a script's job. So the clerk was replaced by a script, the local leg was removed, the file-reading threshold was adjusted… seven changes in total, each one tied to a number.

The SOP repository is no different. In version 0.0.77, a full doc-lint run dropped from 616 seconds to 42 seconds, and that number is written in the CHANGELOG. Without a number, the word "optimized" means nothing.

So the SOP is the fulcrum for downstream: downstream hits a pitfall, upstream sets a rule, downstream follows it, then hits a new pitfall. The improver (the main agent and its process) is still the same one; what gets thicker is the book.

  1. SIM: the history of improvement leaves a trail, and travels What the paper does SIM proposes a setting called "continual recursive self-improvement": after switching benchmarks, or even the underlying model, keep going from the previous optimization instead of starting from zero.

SIM is memory for the "improver", not for the model solving the tasks. It groups changes by recurring problems, root causes like "finishing too early"; each attempt records what was changed, why, what was predicted, what actually happened, and in what context it was evaluated. The proposer and the selector read the same memory, and each round appends the chosen candidate along with the regressions it caused.

When transferring, the harness and its memory travel together. The effect: transferring only the harness without the memory is 2.43 to 4.35 points worse than with the full memory; cross-model transfer (source Claude Opus 5.5, target Gemini 3.8 Flash) is worse still, by up to 11.33 points.

Take the result without the process, and you learn nothing. That holds for people too.

What it looks like in singlefs
In the downstream singlefs project, every round of work has its own record.

  • Before work starts, the main agent writes a scheduling record under records/: topic, exit, every task of the round, who depends on whom. Every batch handed back returns to this table and is judged "close this round / open next round / won't do"; not a single item is allowed to vanish silently. records/ currently holds 265 of them.
  • Appending to a record must go through scripts/kb/append-record.py: check before writing, recheck sha256 before the write, then replace atomically. Appending directly with >> is rejected by a hook before it runs.
  • Each decision has exactly one authoritative record: kb/decisions.md is the index, the body describes only the current state, and history is collected into decisions-history.md, now more than sixteen thousand lines.
  • When an agent objected and the user insisted on going ahead, it goes into .claude/warnings/, with four required fields: proposal, objection, known risk, outcome. If something goes wrong later, you can find who said what back then.

These records are almost the same thing as SIM's "root cause, what changed, prediction and measurement". What a three-way verdict writes down, "which point was hit, why, what the rerun showed", is the history of improvement, entry by entry.

Synchronization follows the same idea. After a session is compacted, a hook names the 3 most recently changed records, reminding the main agent where the state lives. When a subagent stops midway, the handover doesn't go through the main agent's retelling; a script mechanically extracts the dispatch prompt, the files written, and the commands run from the session log, and hands them straight to the next one. Information decays every time it passes through a node.

But here there's a trade-off opposite to SIM's. SIM has the improver read the full history every round; singlefs forbids history in its rule files, and any link pointing to history must carry this sentence next to it:

Unless you need to trace the origin, don't read it.

Why? Because Claude's context gets compacted. Read the history in, and what gets squeezed out is the rules themselves. So singlefs treats history as an archive, not as a prompt: kept complete, not read day to day, fetched by name when you need to trace the origin. In SIM's experiments the improver's per-round context is relatively under control; singlefs's main agent runs to hundreds of thousands of tokens. Two scenarios, two different ledgers.

As for "transferable", the SOP is the carrier of that transfer: rules, scripts, and CHANGELOG travel together with the version number, and downstream gets not just the new rules but a record of why this version changed. Only, that record too is "unless you need to trace the origin, don't read it".

  1. GUARD: first, don't regress What the paper does GUARD is the most engineering-minded of the five. The full name is long; the core is one thing: what self-improvement should fear most isn't failing to improve, it's breaking what used to work along the way.

How:

  • Each task is broken into a set of atomic yes/no self-checks, and a two-level self-evaluator scores each execution trajectory, with no reference answers needed.
  • Deciding what to fix first: rules that have always held are pinned in place; newly broken behaviors are ranked ahead of gaps that were never solved.
  • Candidate changes pass through a gate: only if the gain exceeds the regression it causes is it let in; rejected changes are recorded in a ledger.

The numbers look good. On EvoHarnessBench, accuracy goes from 71.91% to 80.80%, with more than half the tokens per task cut; all 19 promotions caused no regression. The comparison stings even more: in a test that switches through 12 stages in a row, GUARD didn't drop once, and RRSI dropped 8 times.

In a sentence: put preventing regression first. The paper deals with regression and forgetting in the general sense; singlefs deals with something more concrete: a fixed bug may not come back, and you don't move on until the exit is all green.

What it looks like in singlefs
singlefs is a strict red/green gate system, plus milestone entries and exits.

On the gate side:

  • The shared gate.sh runs in stages, and the project has another 18 local stages with over two hundred cells. Whenever a cell goes red, it must print where it's stuck and what to do next.
  • When there's nothing to judge, it exits 77 and records "not run this time", not a pass. Scanning 0 items is not a pass either.
  • Before a commit there are six more heavy stages: crash-point replay, QEMU real devices, herd7 memory ordering, the mutation table, Verus formal verification, broad-spectrum mutation. Each commit takes me clicking through 8 confirmation dialogs.

What resembles GUARD's "newly broken goes first" most is the mutation table crates/mutations.tsv, now over nine thousand lines. The rule: every time a bug is fixed, plant a landmine, a mutation that "must go red if the fix is reverted". If someone later (most likely some agent) casually reverts the fix, the landmine goes off first. If the original text can no longer be found in the code, that row is marked "anchor lost" and also goes red.

That's "first, don't regress": what's already fixed is pinned down, and any change has to get past them first.

On the milestone side, it's GUARD's "let in only if the gain beats the regression" gate, scaled up to the rhythm of the whole project:

  • Entry: the milestone-four document opens by stating that its precondition is every exit of milestone three being met; whatever milestone three is missing when it closes, this document gets rearranged around that gap.
  • Exit: every milestone has an exit table, and every acceptance item must first prove it can go red. Milestone four's exits include: crash-point replay with observers, 0 red across the whole domain; Verus proving GC is an identity transformation; at least 10 billion states; a comparison against six other file systems; the full three-oracle collusion table…

Until the exits are all green, the next milestone doesn't open. No matter how tempting the new features are.

The difference is that GUARD's gate is soft: gains and regressions can offset each other, and if the gain is bigger, it passes. singlefs's gate is hard: one red cell is red, and there's no "it slipped a bit here, but gained a lot over there". In a file system, regression means lost data, and you can't offset that with a performance gain.

Finally
After reading the five papers, my biggest takeaway: Google is building walls outside the model too.

  • Dream-RSI saves past evaluations to avoid burning money twice.
  • RRSI keeps self-improvement from cheating on the exam.
  • Harness² keeps the improver still while the experience piles up.
  • SIM lets the history of improvement travel along.
  • GUARD makes sure nothing regresses first.

singlefs has a homemade version of all five: the verdict store, the three-way review and mutations, the SOP upstream, records, gates and milestones. None of them was built because of these papers; each one has a pitfall behind it. Google has compute, benchmarks, a team; we don't have much in the way of resources, but the thinking is similar, and we made a swarm of agents that, at every turn, want to "write a script and run it".

But the direction is the same: models will keep getting stronger, carbon will catch up, and Oxygen will arrive too.

As for when Gemini 5 arrives, should the attacker leg of the three-way review be swapped for Gemini 5. I've nearly worn myself out writing test scaffolding lately.

Communication between models from multiple vendors seems to be yet another topic. Do we break through the firewall?

What lies on the other side of the firewall. Is there anywhere in gravitational waves where things superpose?

原文:https://www.a8q9.cn/en/article/the-gemini-offensive-five-google-papers-and-the-agent-and-skill-design-of-single-0b4427.html

相关文章