← All engineering notes

Engineering method · 2026-11-13

Every iteration should leave better evidence

Recursive self-improvement, the way we mean it: not a model changing its own weights, but a team of people, agents and a shared knowledge base that gets better at getting better.

227commits across two repos, Oct 11–20
64%co-authored by agents (168 of 227)
36merged PRs, every change reviewed

What improves

Four engineers set the direction and approve every production change. Agents dig, measure, write things down and correct each other. Every lesson goes back into the repository as an SOP, a rule in AGENTS.md, a test case or a measuring tool. The next agent reads those first, so it starts where the last round ended. The recursion is that the process itself, including the rulers, thresholds and rules, is one of the things being improved.

Layer that improvesExample
Code and configuration18 gateway versions in 4 days; 15 worker patch sets
RulersA 4–9% noisy metric replaced by one at 0.8–2.4%
ProcessA six-stage SOP; canary plus shadow gateway
RulesNine hard rules in AGENTS.md, each with the incident behind it

The rhythm is visible in the history

Knowledge-base repo (117)Ops repo (110)01020304050410-11710-123610-134310-141110-152610-163910-174510-181210-19410-20
Fig. 1 · Commits per day. Peaks land on days that needed an answer the same day: on Oct 14 the DeepSeek gateway changed 8 times; on Oct 17 twelve sub-threads ran in parallel; on Oct 18 the reliability base went from design to production.

One loop, six steps

Knowledge baserules & rulers01Define the problemreplayable input + pass bar02Dig in parallelseveral sub-threads at once03Freeze the rulersame bytes · same box · A/A noise04Cross-checkour own verification wins05Canary rolloutnode by node · reversible06Write the ruleSOP · AGENTS.md
Fig. 2 · Every round reads from the knowledge base and writes back to it.
  • Define the problem: a replayable input, the wrong output before the fix and a pass condition. Without all three, work does not start.
  • Freeze the ruler: the same request bytes, the same machine, and A/A noise measured first.
  • Cross-check: a sub-agent's conclusion counts only after we verify it against raw data.
  • Canary rollout: the standby machine runs the full suite first; then node by node, with the rollback command written before anyone touches production.

The ruler improves too

Repeat-measurement spread of the decode step metric0%2%4%6%8%10%Old: step_ms4–9%New: steady_step_ms0.8–2.4%decision threshold 2%
Fig. 3 · The old metric averaged in the partially filled tail of each batch. Measuring only full-batch steady state cut repeat noise to 0.8–2.4%, below the 2% decision threshold.

The same day we added quality gates (gsm8k, math500, BFCL and a 512K needle test) with paired McNemar tests. After that, every "x% faster" had to clear this ruler first.

Sub-agents are wrong sometimes

Original claimOverturned byEvidenceOutcome
Bounded replay is offOur own checkAlready on in the production launch argsA batch of upstream fixes became applicable
NCCL without in-node network: decode unchangedSame-machine recheckAlternated 4 times: c8 decode 3.3–4.0% slowerNot in the default config
EP4 regresses 9% at c16ABABA restartsMostly that one machine was about 6% slowerEP4 adopted
Cross-machine noise floor is 2%ABABA restartsA restart alone on one machine drifts 3–4%Threshold raised

Our verified conclusion beats a sub-agent's summary. Cross-machine conclusions only count after a same-machine recheck.

Vetoed as often as adopted

DecisionData
Vetoed: DeepSeek PD disaggregation3P+1D had 17% less throughput than 4 aggregated nodes
Vetoed: prefill compute overlap+0.52%, under the 3% bar
Vetoed: KV pool raised to 6MFirst revisit took 40% longer
Adopted: GLM prefill chunk 2048Cold-start p99 157 s → 57 s
Adopted: MXFP8 tactic by Mc1 time per token −18%, outputs bit-identical
Adopted: short requests avoid long prefills4K-token p90 12 s → 0.58 s

Elegance here means that every design choice that remains beat its alternatives, by more than the noise.

Honest limits

  • The loop is still pushed by people: engineers decide which threads to open and close.
  • Changes between teams are not yet announced in one place; two incidents came from unannounced bulk replacements.
  • Non-determinism is not solved: with the same config, greedy output can diverge after a few dozen tokens across restarts.
  • Some conclusions hold only at today's scale, such as "no PD for DeepSeek" at four machines.

Next: run the ruler, the gates and the rollback automatically on every commit, so the loop depends less on people remembering.

Data & sources

TestObserved resultScope
Commits227Knowledge base 117 · ops 110, Oct 11–20
Agent co-authored168 / 227 (64%)Repository history
Metric noise4–9% → 0.8–2.4%Decision threshold 2%

October 2026 engineering measurements on the stated hardware and workload. They are not a cross-model ranking or a service-level guarantee.

This work runs underneath Zenith Tokens.

Try Zenith Tokens