Kaggle · Kaggriculture · entry by Yujin Cha · 21–30 Sep 2026

Kaggriculture Field Notes

What the competition was, how it is scored, what the ladder looked like, and the tools and measurements that decided our final two agents. For the day-by-day story told from the commit log, read the retrospective.

Submissions
1321–30 Sep
Best ladder rating
2644.5hybrid2965 + knobs, 22 Sep
Standing, 30 Sep
~800 / 10,190ladder had deflated by then
Final ranking
~15 OctBradley-Terry fit
Glossary · 14 terms used on this page
Agent
The program that plays the game. One Python file per agent.
Submission, slot
Uploading an agent. Up to 5 a day, but only the latest 2 (the active slots) keep playing.
Ladder, rating
The live table where active agents play each other automatically. The rating moves up on a win and down on a loss; new agents start near 600.
Bradley-Terry
A model that estimates each agent's strength from who beat whom. One fit over the post-deadline games sets the final order.
Fork, lineage
A fork is a copy of someone's agent with changes. Forks of one ancestor form a lineage.
Tape, tape agent
A recorded sequence of actions. A tape agent replays recorded routes and adjusts a few things (sales, herd, hires) to the game.
Opening fingerprint
An md5 over an agent's actions on turns 1–48, used to tell lineages apart.
Seed, seat
The seed fixes the game's random events, such as which shops open. The seat is whether an agent plays first or second.
Paired evaluation
Two candidates play the same seeds from the same seats, so luck cancels out of the comparison.
Gauntlet, wall
A test pool of agents from several lineages, weighted by how often the ladder serves them. A wall is a lineage a candidate must beat to pass.
Band
A rating range, such as teams rated 2300–2399.
Knob
A tunable constant inside an agent's code, such as _S738_LOOK.
Hold-out
Games kept aside while choosing, then used only to confirm the choice.
fastsim
Our headless copy of the official game engine that reproduces ladder games exactly.
Highlights

Three games we like to replay

Each replay shows our farm on the left and the opponent's on the right. The bar below shows the bank gap, green when we lead and brown when we trail, and the line under it is the gap over the whole game. Days 1–26 run fast; the last three days slow down.

GrowingWatered todayWheatCarrotTomatoMelonStrawberryWeedCowSheepGooseChickenEmpty coopEmpty landLocked landFarmerHired hand
Replay of episode 112213443: our farm and Gemini IS ALL YOU NEED's farm grow almost identically; we fall behind by up to $408, take the lead on day 25 and win by $253.
Giant slayer

Beating a top-30 team by $253

Our hybrid2965 fork against "Gemini IS ALL YOU NEED", ranked 26th on the 30 Sep leaderboard. Same lineage, so the farms mirror each other. We trailed for most of the game, by as much as $408 on day 10, took the lead at 19:00 on day 25 and never gave it back. On the last two days both sides placed the same sell orders.

episode 112213443 · 22 Sep · $108,641 to $108,388
Replay of episode 114483134: we are $883 behind at the start of day 30, lead by $18 two hours later and win by $85.
Last-day comeback

$883 down at dawn, $85 up at the bell

The Shepherd's Ledger against l1aF of the cha22 lineage, the family that beat our agents most often. We were down $1,791 on day 25 and still $883 behind when the last day began. Within two hours the day-30 sales had turned it into an $18 lead, and we finished $85 ahead.

episode 114483134 · 28 Sep · $90,819 to $90,734
Replay of episode 113569489: we recover from $2,137 behind on day 24, lead from day 29, and the lead shrinks from $479 to $47 on the last day.
Photo finish

Holding on by $47

The Shepherd's Ledger against hugghngkai, ranked 158th. We were $2,137 behind on day 24 and went ahead for good at 14:00 on day 29. On the last day every one of the opponent's sales ate into the gap: $479, $311, $151, $71, then $47 at the end.

episode 113569489 · 26 Sep · $115,858 to $115,811
The game

A 30-day farm, a shared market, one winner

Two agents run neighbouring farms for 720 turns: 30 days of 24 hours. Each turn they move farmers and hired hands, plant wheat, carrot, tomato, melon and strawberry, keep cows, sheep, geese and chickens, and trade on one market that both farms share. Whoever has more coins in the bank after turn 720 wins. The size of the win does not matter.

Scoring

How the final leaderboard is made

The ladder

A population of forks

Almost every strong public agent is a tape agent: a library of recorded 720-turn routes plus reactive layers that adjust sales, herd and hires. Authors fork each other, so the ladder is a set of lineages rather than independent designs. We named lineages by an opening fingerprint. The fingerprint does not depend on the seed but does depend on the opponent, so each agent is fingerprinted against several.

LineageShare of 2450–2850 bandNotes
hybrid2965 / master-engine28.5%Where our best rating came from
a-wonderful-life / cha2227.1%Ladder versions far stronger than any public copy
V52 / V5310.3%Beats v7 in 93% of games
2945 Farm family10.0%
Unnamed~23%Private agents, 1–4 submissions each
herd-safe (Shepherd's Ledger, harvest-ledger)newAppeared after this window; our final lineage

Band mix from the community episode dataset, games 19–23 Sep.

Lineages form a rock-paper-scissors cycle: v7 beats hybrid, hybrid beats V53, and V53 beats v7. It reproduced 8/8 each way locally. The top 23 teams in Kaggle's own episode dumps all open differently from every public lineage, so the top of the board runs private agents.

Method

Five tools, in the order we came to trust them

  1. fastsim: a headless match runner

    It runs the official interpreter about 20× faster and reproduces ladder games to the coin. Replaying 391 of our ladder games, six opening groups came out exact, including 29 v7 games against six different teams. The misses were against near-forks of the files we had. Without that check, no local number means anything.

  2. Paired evaluation on fixed seeds

    Every candidate plays the same seeds from both seats as its baseline. Per-game margin sd is about $9k and outcomes cluster by seed, so 40-game trials "found" gains that reversed at 80. Six seeds is our minimum.

  3. A lineage-weighted gauntlet

    It plays two agents per lineage, weighted by the ladder mix, with walls that a candidate must hold against every agent. It replaced picking by head-to-head wins against one champion, which is how a locally unbeaten v7 went to the ladder and lost 1,000 rating points.

  4. Tape evaluation on real ladder boards

    We turn the opponent seat of each of our ladder games into an open-loop tape and replay candidates on that game's seed and seat. The file that actually played gives back the ladder banks exactly (195/195, then 73/73 on new boards). This mattered most, because local copies of some lineages were far weaker than the versions on the ladder: the cha22 family lost every local game to the Shepherd's Ledger but won 72% of 93 real ones. Later we built tapes from other teams' games in the community dataset, 188 boards from 117 teams rated 2300–2399.

  5. Knob screens with a hold-out

    Public agents expose dozens of module constants. We screen one change at a time against the same boards, pick on one set, and confirm on boards that played no part in the choice.

Limit of tapes.

A tape repeats what the opponent did and cannot react to us, except through market prices. Absolute win counts are an upper bound. Only the comparison between candidates on the same tapes is reliable.

Findings

Measurements that changed a decision

ChangeEvidenceResult
8-knob search on hybrid296514/16 vs unmodified, then the ladder2370 → 2644
_V92_P_TOP 2 → 6 (Shepherd's Ledger)Lineage gauntlet, 6 seeds, both seats81.2% → 95.4%
_V92_P_TOP 6 → 8188 band boards + 69 own boardsno effect
harvest-ledger (ttv1) vs Shepherd's Ledger188 band boards133 vs 118 wins
Enter tomatoes more readily (_CXTB_MIN_REVENUE 9000 → 6000)188 band boards, paired−16 wins
Sell ahead of own plan (_S738_LOOK 4 → 10) and _CXTB_MIN_REVENUE 7500340 boards including 152 hold-out+15 / −0
Split v7's day-27 bulk sales into slices12 seeds vs V53 and hybridabout −1k own score

Our 2300+ losses were level on money through day 15 and fell behind from day 18, in the selling phase. The stronger farms bought and sold wheat about twice as often, fertilized more, and planted tomatoes on days 15–25 instead of all strawberry. Copying the tomato move made our agent worse, because both farms then sell into one tomato market.

Final pair

Both slots on the harvest-ledger lineage

56633420 · 28 Sep

ttv1_flags

harvest-ledger plus our tuned knobs, _V92_P_TOP = 6.

56701314 · 30 Sep

ttv1_look10

The same, plus _S738_LOOK = 10 and _CXTB_MIN_REVENUE = 7500.

Tapes ranked the Shepherd's Ledger below ttv1 on every board set, so we gave up lineage diversity for strength.