Book a Systems Strategy SessionBook a session

Case study

We used no AI at all.

ATS infrastructure. Data engineering. Live.

Swipe the panel, or tap a position.

A cron script and a file for a queue.

It works until two writes land at once and the queue file corrupts. A worker dies mid-upload on shutdown, a portal changes its layout overnight, and a day of coverage is gone without anyone noticing.

This is what too little looks like.

The ingestion layer behind TenderPulse treats hostile portals as a design constraint: one engine for the portals that share a platform, a separate process and time budget for every source, and a queue that is a database rather than a file.

  • 1

    engine driving 37 portals, through configuration shims of well under a hundred lines each. A layout fix lands once and every one of them inherits it.

  • 0

    data lost since the queue rebuild. Measured across the run ledger, through restarts and portal failures.

Kept

  • The portals as they are: CAPTCHAs, expiring sessions, unannounced layout changes and archives of unpredictable size.
  • The common platform most of them share underneath their different skins.

Added

  • One canonical engine, with a thin configuration shim for each portal.
  • A process for every source, with a time budget, checkpoints and resumable state.
  • A SQLite write-ahead-log queue that drains on shutdown instead of dying mid-upload.
  • Protection against zip bombs in downloaded archives.

Refused

  • AI anywhere in ingestion. Categorization is keyword matching, and the AI lives downstream where the data is clean.
  • A forked scraper for every portal.
  • A queue kept in a file.
run ledgerfleet run 2026-11-18 02:00
source 14, shared enginecompleted, 38m of a 60m budget
discovered
612
deduplicated
588
new
41
queue drained, 41 documents stored, 0 lost
A specimen, redrawn at true size with invented data. Every run is ledgered: what was found, what was left once duplicates were removed, and what was new.

Where it honestly stands: operating daily. It got here by failing: the first queue lost uploads, workers died mid-upload on shutdown, and some archives turned out hostile in size. Each failure has its fix in the commit history.

A scraper forked for every portal, or an AI crawler where one engine will do.

Forked scrapers mean a layout fix has to land thirty-seven times, and the codebase rots. An AI crawler would pay a model, every day, to read portals that share one platform underneath.

This is what too much looks like.

Overview

Industrial-grade ingestion from hostile sources.

Government portals fight automation. CAPTCHAs guard the front door, sessions expire mid-scrape, layouts change without notice, and documents arrive as archives of unpredictable size and quality. The ingestion layer behind TenderPulse treats all of that as a design constraint rather than a surprise.

The result is the least glamorous system we run and the one we are proudest of: a scraping service that has been feeding the data layer on a daily schedule, surviving portal changes, connection drops, and its own restarts, without losing data.

Architecture

How it is put together.

Schedulercron, lockfile, run ledgerEngine Bsessions, CAPTCHAEngine Ccheckpoint, resumePostgres10 tables, normalized

Hover over a part, or move to it with the Tab key, for its engineering note.

TenderScraper, ingestion architecture.

TenderScraper, ingestion architecture. Its parts, from the top of the drawing down.

  • Scheduler
    Cron, lockfile, run ledger.
  • Orchestrator
    Process isolation, time budgets. Per-source processes with time budgets; termination escalates politely and every run is ledgered.
  • Shared engine
    37 portals via shims. One codebase drives dozens of portals through configuration shims of under a hundred lines.
  • Engine B
    Sessions, CAPTCHA.
  • Engine C
    Checkpoint, resume.
  • SQLite WAL queue
    Drain, not kill. Replaced a corruption-prone JSON file; workers drain the queue on shutdown instead of dying mid-upload.
  • Postgres
    10 tables, normalized.
  • GCS documents
    Streamed, zip-safe. Documents stream to Cloud Storage with defenses against hostile archive sizes.

Decisions

Three decisions that mattered.

One canonical engine, thin portal shims.
Most of the portals share a common platform underneath their different skins, so one scraping engine drives thirty-seven of them through configuration shims of well under a hundred lines each. A layout fix lands once and thirty-seven portals inherit it. The alternative, dozens of forked scrapers, is how ingestion codebases rot.
The queue is a database, not a file.
The upload queue began life as a JSON file and corrupted under concurrent writes. It is now a SQLite write-ahead-log job store feeding a worker pool, and shutdown drains the queue instead of killing it. No data has been lost since the rebuild, and that is a measured claim from the run ledger, not an aspiration.
Every scrape can die safely at any moment.
Each source runs in its own process with a time budget, checkpoints, and resumable state, under an orchestrator that escalates termination politely and records every run. Portals will fail; the design assumes it. What matters is that a failed run costs a retry, never a corrupted dataset.

AI layer

Where the AI is not.

There is no AI in this system, and that is the point worth making. Categorization is keyword matching, CAPTCHAs go to a commodity service, and everything else is deliberate systems engineering. The AI lives downstream in TenderPulse, where it has clean, normalized data to work with, because an intelligence layer is only as good as the ingestion underneath it.

Status

What broke, and what we changed.

The original JSON queue lost uploads under concurrency; the SQLite WAL rebuild eliminated that class of failure. Workers used to die mid-upload on shutdown; the drain protocol fixed it. Downloaded archives occasionally turned out to be hostile in size; the pipeline now defends against zip bombs. The commit history reads as a hardening timeline, and we treat that history as part of the proof.

Results

Results, and how they were measured.

  • 5,500+

    new tenders in one fleet run.Out of 18,270 discovered and deduplicated across 39 sources in that run's ledger, July 2026.

  • 0

    data lost since the queue rebuild.Measured across the run ledger, through restarts and portal failures.

  • 37

    portals on one canonical engine.Via configuration shims; two sources run dedicated engines.

More work

Along the measure.

Next step

Find out how much you need.

Thirty minutes with the studio. We map what you run on today and say what we would build, roughly what it takes, and whether we are the right fit.

Sometimes the answer is a platform. Sometimes it is a layer around what you have. Possibly nothing yet.

Book a Systems Strategy Session