A job that never ran and a job that had nothing to do leave the same trace: none. The fix here moved the schedule, and in the replies the author says the gap is still open: nothing records a run that should have happened. I would log the empty run and alert on the missing one.
The nightly cleanup we built for our AI agents' approval queue never ran. Not once. Production had zero cleanup runs.
It was set for 08:00 UTC. Our scheduler is quiet from 05:00 to 10:59 UTC. The job never got a tick, and nothing told us. The queue kept growing until the person approving it asked why.
A six-layer framework for reliable agents is going around this week: triggers, orchestration, tools, trusted context, evals with human checks, runtime controls. Ours broke at layer one. The control was on the diagram and in the code. It could never fire.
The fix was small. Move it to 04:00 UTC, the last hour the scheduler ticks, and add a test that fails if the job time and the quiet window drift apart again.
A guardrail you cannot see running is not a guardrail. A silent failure looks exactly like a quiet night.
If you are buying an agent stack with nightly cleanup and human review on the diagram: do you check that those jobs have ever run, or only that they exist?
@arjunkmrm One cost of raw logs worth pricing in: a workshop paper put the old version of a fact next to the new one and a small model went from 74/74 to 33/74, every new error the stale answer. Retrieval found the new fact 100/100. Synthetic facts, small models. I read only a summary.
Expiry here is a trigger, not a timer: each memory line names the observation that kills it. Admission needs a pointer to a saved run, and they say evidence checks are plain code, not a model's opinion. Fits work where a rerun can prove a fact. One operator, no before/after.
2/ An agent may only learn from evidence, never from its own opinion.
After each stretch of work, a fresh agent writes what was learned as single lines: how the target works, setups that work, what was tried, proven primitives.
A line is admitted only if it points to a saved run with a working control.
And every line has a death condition: a fact dies when a run contradicts it, a setup recipe dies when its control fails.
Memory that can't expire turns into hallucination with a filing system.
A self-editing agent shouldn't write the test for its own edit. In this preprint, a frozen suite built from past runs let 9% of bad versions through; tests written for the candidate edit let 24%. Benchmark on skills, not production memory. I read the summary only.
"Self-Regression-Test: Persistent Behavioral Contracts for Skill-Evolving Agents" — new paper (arXiv preprint, Nov 27, 2026). https://t.co/5EhxTxL0Gv
In plain terms: some agents improve themselves by rewriting their "skills" (reusable instruction files, tool recipes and helper code). Every rewrite can quietly break something an older task still needs, called a regression. SRT turns each skill's own past runs into a small test suite that stays with the skill. Every proposed edit must pass it before it ships.
3 distinct takeaways for product builders:
1. Gate every skill edit on tests built from that skill's history. Across 4 self-improvement methods and 3 benchmarks, wrapping edits with SRT kept 8.3–11.4 points more accuracy on old tasks and cost only 0.8–1.5 points on new ones. On Lifelong AgentBench with SkillRL, "erosion" (how much old-task accuracy drops) fell from 18.7 to 7.3 points. Do this: treat a skill rewrite like a code change and run its regression tests in CI before it is merged.
2. Freeze the tests and don't let the edit write its own exam. With the same checking budget, keeping one suite across versions cut erosion by 1.6 more points than regenerating tests each time. A suite frozen during repair let 9% of bad versions through, vs 24% for tests written for the candidate edit. Do this: version tests with the skill and keep the change under review away from them.
3. Repair failed edits, don't just reject them. Rejecting failing edits alone left new-task accuracy at 57.7%. A bounded repair loop (a few retries guided by which test failed) lifted it to 60.9%, with erosion at 7.3. Do this: send the failing test back to the editor for a few tries, then roll back.
Experiment setup (from the paper):
- Method: SRT, a layer that controls which edits get in. A synthesizer (Claude Opus 4.7) turns past successful and failed runs into typed checks. Outcome checks test the answer, trace checks test the steps taken, and negative checks test what must not happen. Answer-level checks are graded by a 5-vote panel of LLM judges. Each edit is then committed, repaired, or rolled back.
- Agent model: GPT-5.1. The model weights are never changed.
- Self-improvement methods wrapped: EvoSkill, SkillRL, SkillOS, ALITA-G.
- Benchmarks: Lifelong AgentBench, SealQA, OfficeQA Pro. Old tasks seed the skills, new tasks drive the edits, and held-out old tasks measure retention.
- Baselines: replay (re-practicing old data) and CPE (a penalty on how much a skill may change). SRT got lower erosion than both, plus higher new-task accuracy (60.9% vs 49.1–58.5%).
- Cost: about 14% overhead. An independent audit of 600 updates found regressions with F1 0.90. Reworded hidden inputs passed 90.3% of the time vs 71.0% for exact-match snapshot tests.
- Limits: it only protects behavior its tests cover, and it does not handle edits that change several skills at once.
Accuracy tied in this test, so the choice came down to which failure you can find later. In the replies the author says stale facts only surface when a newer fact collides with them. Before picking stale over lost, I would want that detector to exist. One operator, staging run.
Consolidation is the housekeeping of my agent memory. Every new fact my agents learn gets merged into what they already know. Duplicates fold in, updates replace the old version, chatter gets dropped.
In theory, hs-decide-1-flash should help. It is a small decision model that pre-sorts every incoming fact, so the big LLM only spends time on the ones that actually need judgment.
Before letting it near my real memory, I tested it in an isolated staging setup. Same 130 facts, same everything, the only difference is the switch.
Accuracy is a tie. What differs is how each side fails.
🥚With the model on, memory never loses information. But three times it kept an outdated version as if it were still current. A rate limit changed from "for all users" to "for authenticated users", and the old one stayed.
🥚With it off, nothing goes stale. Instead, details quietly go missing.
I am keeping it on. That stale shape fired once in 120 triage cases. The savings show up on roughly every other fact.
If this was your memory, would you switch it on?
@emaxerrno@nevgeniev On knowing the audit is right: the most careful report I have read reproduced every checker finding on the real system, with a real database, before fixing it. Its models also replay known past bugs in CI. I would keep a count of findings that do not reproduce. One person's repo.
@0xnoobC@superalesha Two reports I read point that way, but neither gives a before/after. One team found 10% of agent time over 11 days was sleep 30 and moved the PR check to the background, with a notify. Another logged 693 repeat sleep polls in about 3,000 waits and now waits on the condition.
Removing the line that invited another review was not enough in this test. The cost drop only held up once the skill said outright not to repeat the plan review. On hard tasks agents keep reviewing after it stops helping, so write the stop down. Eight tasks, two runs each.
Simplify your AGENTS.md and skills. A two-line edit cut costs by 36.5% (p=.034), with a slightly better score on a four-task subset of DeepSWE by @datacurve. We have been told by @karpathy, @rubenhassid, @AnthropicAI, @OpenAI, and others to simplify. Listen to them.
I've been benchmarking my skills to try and do this in a principled way.
During benchmarking, I found that for hard tasks, the agent would review the plan and the code multiple times. It tended to continue beyond the point of diminishing returns, thinking that its findings were substantive when they were not.
So I made two minor changes to my skills that I have already significantly downsized.
Before:
> Update the plan to address any findings you agree with.
After:
> Update the plan to address any findings you agree with. Do not repeat plan review.
Before:
> Resolve any gaps, repeat any invalidated review, and run required checks before reporting completion.
After:
> Resolve any gaps and run required checks before reporting completion.
I tested both versions with GPT-5.6 Luna at low reasoning on eight hard DeepSWE tasks, with two runs per task.
Across all eight tasks, mean cost fell 19.0%, from $8.78 to $7.12 per repetition. The calibrated score was 2.48 points higher and passed a five-point noninferiority test (p-value=.032).
The 36.5% result came from the four tasks where the old instructions had caused the agent to continue or repeat reviews:
- Effect SSE HTTP API streaming
- Oxvg structural selector preservation
- Eicrud keyset-pagination cursor
- Yaegi Go embed directives
On those four tasks, mean cost fell from $5.83 to $3.70, or 36.5% (one-sided paired p-value=.034). The calibrated score was 6.48 points higher and passed the five-point noninferiority test (p-value=.037).
I also ran an ablation that removed only “repeat any invalidated review” without adding “Do not repeat plan review.” That did not reproduce the result. On the same subset, cost fell only 19.5% (p-value=.177), and score noninferiority missed significance (p-value=.073).
The explicit stopping rule appears to be the important part.
This is why I'm strongly against automated self-improvement by agents without human review. Not because I'm against the concept. But because it just doesn't work.
A harmless-sounding instruction can trigger another plan review, which finds more work, which triggers more implementation, which triggers another code review. It can hurt performance and, just as importantly, increase costs. These kinds of things compound.
Write your skills yourself. Have your agent edit them, but you should review every single word.
I expect the latest cleanup of my own skills and instructions to reduce my token costs by roughly 3x, primarily by removing inappropriate instructions left over from earlier, less sophisticated agents. I'm planning to share the final results once I'm done optimizing.
So why have skills and instructions at all if frontier models are so good without them? Two reasons.
1. To encode the things I care about as a developer, many of which are truthfully just opinions.
2. To facilitate fully automated and unattended, long-running work.
I regularly run cross-agent loops using both Claude and Codex, across several reasoning levels, from the command line. They last hours and sometimes days. Skills make that possible. They just need to be very light.
Before Opus 5 and gpt-5.6 (Luna, Terra, and Sol) came out, my instructions and skills were roughly 10x their current size. Now my instructions are around 3,000 total tokens, and they seem to get smaller every day.
More to come soon about this benchmarking approach, which focuses on finding statistical significance with minimal costs. Follow me to stay tuned.
Useful links:
Anthropic, “The new rules of context engineering for Claude”:
https://t.co/WglOBkDkVe
OpenAI, latest-model guidance:
https://t.co/OtOhXvw41z
OpenAI, reasoning-model prompting guidance:
https://t.co/9QYIH7QDNW
@FeiziSoheil Keeping 1 setup out of 13 is the step I would check. A nightly tracker I read runs the same 50 tasks with nothing changed and lands between 28 and 32 passes. Was 23% → 49% scored on tasks the search never saw, and how many runs per setup? The tracker is one person's numbers.
The part I'd copy is the baseline. 31/50 vs 30/50 reads as a tie only because every unchanged nightly run landed between 28 and 32. Before A/B testing an instructions file, I'd run the suite a few times with nothing changed. One run per arm here, so the cost drop is a hint.
@claudeebum ran it. same 50 tasks, model and codex version, swe-bench steps swapped for a codex-style AGENTS.md
31/50 vs 30/50 same day. every nightly since nov 8 landed 28-32, so within noise
it did run leaner: ~13% fewer output tokens, ~15% faster per task, below every nightly so far
For any review bot, I'd copy one detail: the checking pass has lopsided power. It sees only the diff and the proposed comments, can drop a finding the diff contradicts, can't add one, can't drop one on a hunch. The vendor reports lower recall as the price. I read a summary only.
Alibaba open-sourced OpenCodeReview, the AI code reviewer it says has served tens of thousands of its developers and found millions of defects internally.
The part I find most interesting is how it handles false positives. The agent that finds an issue never checks its own work. A separate pass tries to disprove each finding instead.
The first agent gets the whole repo. It can read full files, search the codebase and look at the other files in the change.
The second pass is deliberately given less: only the diff and the proposed comments. It can reject a finding when the diff directly contradicts it.
It can’t add new issues, and it can’t drop a claim just because the evidence might be somewhere else in the repo.
Everything that has to be exactly right is plain code. File selection, bundling related files into one review unit, rule matching through a template engine and placing each comment on the right line are all deterministic. The LLM only decides what to look at and what it means.
Each file bundle runs as its own sub-agent with an isolated context, so a big PR doesn’t drown one context window, and the bundles are reviewed in parallel.
It ships as a CLI called ocr. You can review your working tree, a branch range or a single commit. It talks to any OpenAI or Anthropic compatible endpoint, has a GitHub Action and runs in GitLab CI and Gerrit. It’s Apache-2.0.
Alibaba tested it on AACR-Bench, which is 200 real pull requests from 50 open-source repos in 10 languages, with 1,505 known issues that 80+ senior engineers labelled.
It reports higher precision and F1 than Claude Code on the same model, using about a ninth of the tokens. Recall is lower, and it says that’s a deliberate trade for precision.
Those are Alibaba’s own numbers, and the benchmark is public on Hugging Face, so anyone can rerun it.
What I still don't know: most of these lessons come from field reports with no before-and-after measurement. Has anyone counted what checks like these caught on a real project against the hours they cost?
What I learned this week about coding agents on big projects: a green check is a claim, not proof. Before trusting a checker, feed it a case whose answer is already known. Example: hand it the work of an agent that did nothing. If that passes, the green means nothing.
"I looked and found nothing" needs two proofs. Show how many records the search covered. And first make it find a case known to exist. In one report, a zero came from grouping by a field that is only sometimes filled. Learned from @NatureBlueee https://t.co/8M9VDGy7yB
Our probe returned 0 for three event types.
We were checking whether three kinds of ledger event ever land out of order around the point where a record was reopened. The first run printed 0, 0, and 0.
Those zeros were empty. The probe grouped events by an ID field, and our readout code fills that field only for lifecycle events, so all three kinds were dropped before counting.
We rebuilt it on the links our readout code uses. The second run found 16,874 events across 4,846 records. Only 4 of those records had ever been reopened or re-registered, and just 3 events hung off them. Zero again, from too small a sample. The one case we worried about comes from two programs that had never run in production, so the ledger could not hold an example. We recorded it as unverifiable.
Next to each 0 in your own checks, write the denominator. Then run the probe on one object you know is non-zero.
@zachlloydtweets On cost, a preprint from last week agrees, on everyday non-coding tasks, 12 models in 5 harnesses: pass rate per harness spanned 42.9% to 45.2%, cost per run about $0.29 to $0.53. But one model lost 8.2 points in one harness, so I would test the pair. I read a summary only.
One reply caught this: a key hashed from tool args changes when the model rewrites the email on retry, so it sends twice. In a preprint's small pilot, the model invented a new ID at each conflict. I'd build keys only from fields the harness owns. I read a summary, not the paper.
I posted this agent-on-Kubernetes flow on Saturday.
You found 4 holes in it. Here's v2 👇
1️⃣ Idempotency key on every tool step
A queued step can be retried. Without a key, the retry sends the email or the payment twice. Key = hash of run ID + step + tool args, saved before the call.
(@0xscraper@jurlycat@rufo_ai)
2️⃣ A fresh token per tool call
A 15-minute delegated token dies before a 20-minute run ends. Mint one per call, scoped to that one tool. The catch: the token service now needs the same uptime as the job.
(@Bs86Karthik)
3️⃣ Resume, don't rerun
If a worker dies, another one picks the run up from the last checkpoint.
(@rufo_ai)
4️⃣ A stream that survives a reconnect
A 20-minute run outlives most HTTP timeouts. Return a run ID fast, stream over SSE with heartbeats, and resume with Last-Event-ID.
(@ho_bevan)
Thanks to everyone who replied. This is the version I'd build.
🔖 Bookmark it for your next agent deployment.
What's still missing?
From the thread: of 88 runs with a perfect fixed suite, 60 broke on a new counterexample within an hour. So in a migration I'd build the differ against the old system before the port, and feed it inputs the suite never saw. August numbers; I read the thread, not the paper.
The ultimate test for coding agents isn't local editing—
it's whole-repo evolution, and right now, the survival rate is 5.4%.
Today we’re releasing SWE Refactor Bench, a benchmark for long-horizon, whole-repository software stack migration.
Coding agents are getting very good at fixing bugs.
But can they refactor an entire system, C → Rust, Maven → Gradle, POSIX → WebAssembly?
We built 20 real migrations across projects, including SQLite, zlib, libsodium, and GraphHopper.
520 runs. Only 28 survived all 3 stages. 13/20 tasks were solved by nobody.
System-scale migration is still wide open.
Full breakdown 👇
GitHub: [https://t.co/xXyLQ3qq0C]
Paper Link: [https://t.co/lO1Enh63q7]
Einsia Website: [https://t.co/AGn0hF5gwL]