stateframeagentsopen source

I gave a 3B-active model a better room. Here's the honest scoreboard.

Giving a 3B-active model a real list of what the job asks for took it from 90 to 151 of the same 188 frozen checks on our hardest tasks. Here's how we got there, the score that still stings, and the small, boring harness bugs that were eating the difference.

In The dumbest genius in the room I made a bet out loud. Once a model is over a certain line, the question stops being "is it smart enough?" and becomes "did it have a fair shot?" I also promised I'd publish the number when I had one, including if it made me look silly.

So here's the number, and the silly part comes first.

I have a private set of four real, multi-file coding tasks I call HERO. I only count a task as done when the ordinary engine, run the normal way, submits the work on its own and it passes every visible check plus a set of independent checks the model never sees. As of this morning, zero of the four meet that bar.

That's the headline I'd rather not write. But it isn't the whole story, and the rest of it is the most useful thing I've learned about harnesses all month.

Best fresh run, public release
57 / 71
Webhook task, StateFrame 0.11.2 from PyPI, untouched starter repo
Best lab result
68 / 71
Same task, two runs each resuming a copy of a 67/71 build
Full HERO completions
0 of 4
Submitted on its own and passed every visible and independent check
Before vs with the ledger
90 → 151
Of the same 188 frozen checks across four HERO tasks; 61 gained, 0 lost

#The setup, so the numbers mean something

The model is Qwen3.6-35B-A3B. It has about 35 billion parameters in total, but it's a mixture of experts, so only around 3 billion are active for any given token. It runs on my own hardware through llama.cpp. Nobody trained anything for this. Every change in this post is to the software around the model, never the weights.

That software is StateFrame, our open source harness. It doesn't keep a growing chat transcript. It rebuilds every request from the task, the tools, the parts of the repository that matter, structured notes about the work so far, and the latest exchange. The full record lives outside the model. That gives the harness a real job: if the model just ran a test, the next request has to say exactly which code that result applies to. If a file is too long to show, the read has to tell the model how to get the rest.

HERO tasks are the kind of thing you'd hand a mid-level engineer. The one I'll talk about most is webhook delivery: add retries, idempotency, per-endpoint ordering and a dead-letter queue to an existing service. Those features step on each other. A duplicate event, a different event reusing the same idempotency key, and a retry after a failure should all do different things. Getting one right while breaking another is easy.

A fresh run gets the public issue, the starter repo and the public tests. Grading happens outside the run, on a detached copy of the code, against 71 independent checks it never sees. Tests the model wrote itself don't count, and the original tests have to stay intact.

#The scoreboard, with the starting line attached

This is where most "look how much better my harness made it" posts cheat, usually by accident. A score means nothing without how it started, how long it ran and who helped. So here are both columns.

TaskOrdinary StateFrame, untouched starterExtended lab or assisted work
Webhook delivery57/71 twice, from two separate runs (one on a research build, one on the public 0.11.2 release). Other clean runs ended at 20/71 and 9/71.Lab build reached 67/71 over two long sessions. Two continuations of it reached 68/71. An assisted repair got 70/71.
Migration34/55, kept all 77 original tests green, but didn't submit.Lab reached 48/55, a continuation 52/55. Assisted repair got 55/55.
Permissions17/31 with our default settings, 4/31 with one of them turned off. Both passed all 35 original tests.Best historical product 24/31.
Quota14/31 on a fresh run after a test-classification fix, passing all 45 original tests. Best clean run 18/31.Historical 15/31 after combining saved work by hand.

The lab column isn't the same game. Those runs could resume the same workspace across launches, used a separately prepared list of the public requirements, and allowed longer outputs. The ordinary runs get about an hour and up to 80 decisions. So please don't divide 68 by 9 and call it a 7x boost. I could. It would be a lie.

What I'll stand behind: the model can clearly build a 57/71 webhook service from scratch in an ordinary run, and something close to 68/71 exists inside it under friendlier conditions. Closing the gap between those two, reliably, is the actual work.

#Before the ledger: 90 of 188

To see why 57/71 matters to me, you need to know where these same four tasks were before StateFrame learned to keep a real list of what the job asks for.

Same model, same four tasks, same frozen independent grader. The earlier products, built without a requirements ledger, passed 90 of 188 checks. The later lab products built with one passed 151 of the same 188. Sixty-one checks moved from fail to pass, and not one moved the other way.

Independent checks passed, before and with the requirements ledger
020406080Webhook (of 71), Before the ledger: 54Migration (of 55), Before the ledger: 10Permissions (of 31), Before the ledger: 15Quota (of 31), Before the ledger: 11Webhook (of 71), With the lab ledger: 67Migration (of 55), With the lab ledger: 48Permissions (of 31), With the lab ledger: 24Quota (of 31), With the lab ledger: 12Webhook (of 71)Migration (of 55)Permissions (of 31)Quota (of 31)Checks passed
  • Before the ledger
  • With the lab ledger

HERO task

TaskBefore the ledgerWith the lab ledgerNewly passing / newly failing
Webhook delivery54/7167/7113 / 0
Online migration10/5548/5538 / 0
Document permissions15/3124/319 / 0
Quota accounting11/3112/311 / 0
Total90/188151/18861 / 0

Migration is the one that made me sit up. It went from 10 checks to 48. Quota barely moved, and I'm not going to pretend otherwise.

Now the fine print, because these weren't tidy A/B runs. The ledger runs got far more room: webhook's ran 37 and then 60 logged turns, while the first plain attempts stopped at 14. They also had different prompts and restart histories, and the ledger runs started from a prepared list of the public requirements. Seven of the gains came just from letting the plain runs keep going. So this tells you the ledger products are a lot better on the same grader. It can't tell you how many of those 61 checks the ledger itself earned.

There's a tougher comparison too. The best no-ledger variants we ever built, with extra help like spec tests supplied up front, reached 58/71 on webhook and 37/55 on migration. The ledger products still beat those by 9 and 11 points.

#Why a list mattered so much

StateFrame breaks the task into individual requirements so it can track them. Earlier in November we caught our own extractor mangling them. Here's what it did to a real spec:

The spec saidWhat the model was told
Make the storage class in app/store.py implement the Repository protocol in app/ports.py exactly"Make the storage class in app/store."
api.delete(item_id) marks the Book deleted (returns {"ok": True}, or {"error": "not_found"} if missing or already deleted)delete(item_id) marks the Book deleted (returns {"ok" and nothing else
Every successful create and delete appends an event to a log in a new module app/audit.py. Failed operations are not logged.Dropped entirely

It split sentences on every period, including the ones inside file names and function calls, and some clauses just vanished. On a separate set of hard lab features, 21 of 30 of A3B's failures traced back to requirements it never received. You can't blame anyone, model or person, for skipping work nobody wrote down.

So the lab ledger did more than paste a list into the prompt:

  • It split the public issue into individually named requirements.
  • It asked the model to write a test that cites each one.
  • It refreshed the open requirements after relevant actions, and the list survived a restart.
  • It refused "done" while any requirement lacked a cited test or the suite was red.

It isn't magic. A wrong test can still tick the box and miss what the independent checker wants. But a cited test and a green run are a lot cheaper to verify than "trust me, I covered it."

#From the lab into the engine

A lab result only counts if it survives the trip into the product. Migration is the clearest case. An ordinary StateFrame run without the ledger submitted a product that scored 10/55. Two ordinary runs with only the ledger added submitted products that scored 34/55 and 28/55. Both started clean, passed the visible check and actually submitted on their own. Those runs were on different commits, so it's not a perfect pair, and the gain is smaller than the lab's 48. But it showed up where it counts.

Then it got plumbed in properly:

  • 0.7.32 (Nov 17) kept every requirement clause whole, stopped the list from silently cutting off at 256 items, and made the engine say out loud how many items it's hiding.
  • 0.11.2 (today) turned the ledger on by default, along with an independent test author that writes checks from the public brief instead of from the model's own code. That's the build that took an untouched repo to 57/71 on webhook in an ordinary run.

The model's weights never changed once in any of this.

#57 versus 9 is one sentence of behavior

Two fresh runs landed on 57/71 with completely different code. They passed 53 checks in common, and each passed four the other missed. Another run ended at 9/71.

The difference that matters most is simple. Send the 57/71 builds an event that reuses an idempotency key with a changed payload, and they reject it. Send it to the 9/71 build and it quietly hands back the old delivery, like nothing happened. That's the kind of bug that passes a demo and pages someone at 3am.

Same model. Same task. What separated those runs wasn't intelligence. It was mostly the stuff below.

#Five small things that were eating the score

When a run goes sideways, I go through what I call ICTP: information, context, tools and permissions. Did it have the information? Was it in the request where it needed it? Could it actually use the tools? Was it allowed to do the thing the job required? Nearly everything I found this week fell into one of those four buckets, and almost none of it was the model being dumb.

#1. Two tokens of information

StateFrame writes its own tests from the public brief, using a separate author that only sees the public API. On webhook, that author kept building the registry wrong. It passed a plain dictionary where the code wanted an Endpoint object, so its best test crashed in setup before it ever touched the feature.

I pulled up exactly what the author saw. The prompt showed the method as register(self, endpoint). The real code says endpoint: Endpoint. We'd been dropping the type.

Putting it back cost two input tokens. Same model, same limits. All ten calls across nine generated tests switched to real Endpoint objects. On the 57/71 build, eight of the nine then passed. On the 9/71 build, four of them now hit and exposed the real conflict-handling bugs. That shipped as 0.11.4.

A test that dies in setup isn't a weak test. It's a dark room.

#2. A tool it called 48 times and got nothing from

On migration, the model needed something it already had: the requirements ledger, the running list of what the task still asks for. In one 80-decision run, it reached for the ledger 48 times. Every single time it sent an empty request. Two other runs added six more.

The tool required an operation name and its short description was blank. So the model knew the tool existed, kept trying to use it, and kept getting turned away. Showing it an example of the right syntax in a small experiment didn't help either: zero ledger calls in both arms.

So we stopped asking the model to guess. In 0.11.5, an empty call just returns the first page of requirements, byte for byte what the explicit list command returns. Whether readable requirements turn into better code is a separate test I haven't finished. But a tool that exists and can't be used is not a tool.

#3. Where did the hour go?

One webhook run stopped with a message about hitting its tool-call limit. It had used 43 of 320 tool calls and 31 of 80 decisions. That didn't add up, so I read the journal. It had actually run out of wall clock.

Of about 3,491 seconds, roughly 1,453 were spent in model requests. Then I found a chunk going to counting tokens. Replaying one archived request, 20 token-counting calls took 41.5 seconds over the network and 0.94 seconds with a local tokenizer, with identical results every time. That's about 44x faster for that sample.

I want to be careful here. That's the token counting, not generation and not the whole task. The fresh 57/71 run used the local tokenizer, but I haven't run a matched control, so I'm not claiming it caused the score. What I am claiming is that the run was being timed out partly by bookkeeping, and the error message was lying about why.

#4. Sometimes the harness is the one that's wrong

A migration run tried to submit and got refused, three times, with messages saying its tests asserted nothing. Fair enough, except the tests weren't the model's fault. Our own independent test author had written two functions with the same name, three separate times. Python quietly keeps only the second one.

Renaming just those three let all six run, and three public API checks that had been hidden all passed on the same code. The official score didn't move (34/55, with 28 other requirements still open). But the harness had been refusing good work because of its own typo.

Then I tried a broader fix: tell the author to write one test per listed check. On migration it wrote 7 functions instead of 39 and used a tenth of the tokens. On webhook it made things worse: tests that used to pass 9 of 9 on a strong build passed 1 of 9 on both builds, because its fixture fed in an invalid clock. Shelved. A change that helps one task and wrecks another isn't a fix. I only know it wrecks another because I tried it on two.

#5. And sometimes the model just doesn't look

Fairness cuts both ways. In one fully protected webhook run, every one of its first 57 decisions showed the public check failing, and every one offered a test runner. It never ran it. It scored 5/71 at the first deadline and 12/71 by its last decision.

No harness fixes a model that won't look at the evidence in front of it. That one goes in the "model still matters" column, and I'm putting it here on purpose.

#A permissions twist I didn't expect

The webhook issue explicitly says three old tests are obsolete and should be updated or removed. The 67/71 lab build changed exactly those three. The fresh public run, though, had every original test file locked for the whole run.

After it reached 57/71, it tried to fix those tests eight times and was refused every time. Its first attempt was correct: a first-try HTTP 503 should now retry, not fail for good. Applying just that one edit on a copy took the local suite from 61/64 to 62/64 with the same product code.

The independent score stayed at 57/71, so this isn't hidden points. But it's a real difference in what the two runs were allowed to do, and it's the P in ICTP. If the job says "change these tests" and the harness says "you may never touch tests," the harness is giving contradictory orders.

#Not every good idea survives a full run

One more, because it's the clearest example of why I don't trust early wins.

In an earlier experiment, showing the model one real caller of a function it needed (an analogous function plus where it's wired up) took small feature tasks from 5 of 20 to 14 of 20. On migration with the real CLI, three decisions in, the same trick moved the product from 2/55 to 11/55. That's a real effect.

Then a full migration run with it ended at 7/55. On webhook, the early bump was 2/71 to 3/71, and the original tests slipped from 61/64 to 60/64. A better first step didn't add up to a better finish. It's still in my toolbox, it's just not a headline.

#What shipped because of all this

Every number above came from a published build or a fix that's now published. In one morning:

  • 0.11.3: a checkpoint could restore an old clock after you granted a run more time. Fixed, and verified on a small test run that resumed byte for byte with time actually left on the clock. The full HERO version of that check is still running.
  • 0.11.4: the test author now sees full typed signatures. Those two tokens.
  • 0.11.5: an empty requirements-ledger call returns the first page instead of an error.

They sit on top of 0.11.2, which turned on the requirements ledger and independent test authoring by default, and 0.11.0, which added a TOML config and commands to print the settings a run really used. That last one matters more than it sounds. Half of "I reproduced it" claims fall apart when you ask what settings were on.

Each release was built twice, independently, and the public downloads match those builds byte for byte.

#What I'm claiming, and what I'm not

I'm not claiming a small open model now finishes multi-file engineering tasks on its own. Zero of four says it doesn't, yet. There's no public benchmark here and no head-to-head against a frontier model. The samples are small, the builds differ, and two runs of the same thing can land far apart.

I am claiming this: a ~3B-active model built a 57/71 webhook service from an untouched repo in an ordinary run, twice, and the problems I dug up this week were a missing type hint, a tool with a blank description, a token counter on the wrong side of a network, a duplicated test name and a permission that contradicted the ticket. Those aren't intelligence problems. They're room problems. And room problems are the ones I can fix by lunch.

#Try it on your own runs

Next time an agent falls on its face, before you reach for a bigger model, walk it through ICTP:

0 of 4 done

StateFrame saves every request it sends, so you can do exactly this. It's open source on GitHub and still a preview. If you find a room I left dark, tell me. I'll publish the next scoreboard either way.

Pass it on

THE NEXT QUESTION IS YOURS

Know More.
Succeed More.

Bring the decision, the alternatives, and the constraints. Put Farside on the research behind your next move.

Create an account. Review your plan and the cost before research starts.