track guide.agent

Track Guide Agent

At Track Titan (sim-racing coaching), onboard lap clips become YouTube track guides. A pipeline cuts each clip, blurs names and queues it for human review. The one judgement call left was which clip goes out next. I gave that call to an agent.

Why

The release queue was ordered by a fixed score. It couldn't weigh "this combo is on the racing calendar next week and has no guide yet" against "this lap is 0.4% off the best". People could weigh that, but not every few hours.

What

An agent that reads the queue and the racing calendar and picks the next clip to release, following a selection policy written in plain English. It posts a one-line reason to the team.

How

Give the agent the pipeline as it already is. The hard rules stay in code, the judgement moves to a policy anyone can edit, and the agent runs in shadow mode first.

Five slides

01 · The pipeline already existed

Don't rebuild it. Put the agent where the judgement is.

  1. A session ends, and the lap's clip is cut and its on-screen names blurred automatically (spot batch, resumable).
  2. A person reviews and approves the clip, and permission is recorded.
  3. Approved clips wait on a release queue that goes out at a steady pace to the video renderer and YouTube.
  4. The agent's job is step 3's ordering, nothing else.
02 · Code keeps the hard rules

Every candidate has already passed the filters

By the time a clip is on the queue, code has excluded races, checked the lap's pace is inside the allowed window, honoured drivers who opted out, and confirmed approval, permission and redaction.

The agent only ranks what is left. The queue still re-checks every pick (a known clip, one per car-and-track combo, the per-run limit). So a confused model can make a bad pick but never an invalid one.

03 · Simple tools

Three to look, two to finish

ToolWhat it gives
get_clip_listEvery candidate in queue order: game, track, car, pace to the leaderboard best, when it was driven, guides already sent for that combo, calendar points, pinned or not.
get_season_listThe racing calendar around now: which tracks and cars are being raced this week and next.
get_clip_detailOne clip's full details, if a fact is missing.
queue_clipFinish: release this clip, with a reason of 280 characters or fewer.
no_pickFinish: nothing should go out now.
04 · The policy is the product

Judgement in plain English, editable by prompting

  • Coverage: prefer combos with few guides. Each extra guide is worth roughly 1, 1/2, 1/3...
  • Calendar: prefer tracks and cars that are being raced now or in the next three weeks. Car and track together beat track alone.
  • Pace: within about 0.5% of the best counts as equally strong. Beyond about 3% adds little.
  • Variety: don't release two clips from the same driver, and don't let one game crowd out the others.
  • Humans win ties: a pinned clip at the front goes out unless something is overwhelmingly better, and the agent has to say so.
05 · Built to be trusted

Shadow mode, a hand-written loop, and a record of every decision

  • Shadow first: on each tick the agent sees the same queue the scorer is about to release, and the team sees what it would have released beside what actually went out.
  • Manual tool loop: it stops the moment a finishing tool is called, so there's no extra paid turn for the model to say "done". There's a turn cap and a deadline too.
  • Decision record: every call and reason is saved, so the policy can be tuned against real picks.
  • Untrusted text: on-screen text in a clip's details comes from OCR of the game's HUD and chat. The prompt treats it as data, and no tool can do anything irreversible.

What I took from it

The agent didn't need clever tools. It needed the pipeline's existing facts in a form it could read, a clear boundary between rules (code) and judgement (policy), and a way to explain itself in one line. The reason it posts reads like a person's:

"Monza F4 is live on iRacing next week, no guide yet, 0.4% off best"The example reason in the selection policy

The same pattern, with a budget plus a brief in place of a hand-kept spreadsheet, went into a draft plan for pricing driver bounties.