Skip to content

How a piece runs today ​

This page shows what actually happens to a piece, from collection to the review queue and Discover, as it runs on 25 November 2026. Every step names its file and version, so it can be checked. The other pipeline pages describe the approved model; where they say "later" or "not yet", this page is the current state. The Daily Briefing is a separate path (the Daily Briefing).

The chain ​

  1. What starts a run. A person runs scripts/classification/run_bench.py --purpose rung --go under a written cap in the spend ledger. Nothing in the admin can start a run yet. Eight runs have been made, from 14 to 24 November, each recorded in classification_runs.
  2. Video speech first. When a video is collected, its speech is transcribed: YouTube through batch_orchestrator.py, TikTok, Instagram reels and Meta ads through video_after_collect.py, each calling backend/services/transcribe_on_collect.py, which starts scripts/classification/transcribe_videos.py under its own written cap; transcribe_videos.py --collected-since <day> sweeps anything collected another way (a video's speech first). A classification run does not transcribe: it refuses a video with no transcript that is not marked "no speech".
  3. Settle the inputs. backend/services/classification_input.py gathers exactly what the channel's input rule names (docs/atlas/_data/channel-inputs.json, version 8) and refuses a piece that does not have enough to classify (table below).
  4. First look. gpt-4.1-mini, prompt first-pass/3, decides only the content type and, for a website page, the page role.
  5. Route. The route table, routes/6, picks the instructions for that kind of piece (how routes are keyed).
  6. Analyse. gpt-5.4-mini answers the contract piece/3 with the compiled vocabulary c44d738603cf (prompt analysis module /2 when pictures are sent).
  7. Check. The validator, classification-validator/6, keeps an answer, drops it with a reason, or parks it when its confidence is under 0.7 (the cut-off).
  8. Results, then the store. Every answer is saved in classification_results with the model, prompt, route, contract and vocabulary versions; content_store_piece then writes the main tables.
  9. Where it shows. The review Queue, and Discover, which lists a piece once it holds a valid classification in the current format.

What each channel needs ​

ChannelCollected byEnough to classify (channel-inputs/8)
YouTubebatch_orchestrator.py (normalises, cuts frames and transcribes)a video or frames, and a title
Website pagelanding_ingest.pypage text of more than 200 characters
TikToktiktok_ingest.py, then video_after_collect.pya video and a caption or transcript
Instagraminstagram_ingest.py; its reels then go through video_after_collect.pya video or image, and a caption
Meta ad librarymeta_ad_ingest.py, then video_after_collect.pya video or image; ad text when the library gave one
LinkedIn ad librarylinkedin_ad_ingest.pya video or image
Xtwitter_x_ingest.pypost text; media when the post has it
An imageits collectorthe image and a caption of more than 20 characters

The source scheduler is off (since 8 June 2026), so collection runs when a collector is started (monitoring).

What is generated from the docs and what is written by hand ​

  • Generated from the registry: the compiled vocabulary (docs/atlas/_data/compiled-vocabulary.json, by scripts/vocabulary/compile_vocabulary.py), that is, which values the model may choose and their definitions.
  • Written by hand: which lists are asked (the contract docs/atlas/_data/contracts/piece-3.json), the route table and what each module asks (docs/atlas/_data/routes.json), the input rules (channel-inputs.json), and the prompt text (backend/services/classification_prompts.py).
  • Joe ruled on 25 November that the repo files become the one master and everything else is generated from them (the one master); that build is still to come.

See approved, offered and asked for how a value reaches the model.

Defined but not run ​

  • Moments (moment/1): never run; the last moment was saved on 13 July by the retired pipeline.
  • Campaign analysis (grouping/1): never run.
  • The next piece contract (piece/4): not written yet.
  • The image-in-grouping and pricing routes: in routes/6, never matched yet.

The brandtrackers model, decisions and technical evidence. Measurements show their observation dates.