Jorge Polo
← _work

Case study · Bizétika · 2026

seven agents and an adversary

A business diagnostic for a small company, from its URL, built on public sources that can be checked, for about fifty cents. How we built it, what it cost, where it broke, and why we froze it with the product working.

00Summary

Problem

A serious business diagnostic is expensive and opaque for a small company. We wanted one built from public sources, with every figure traceable, that an owner could read on a phone.

What I built

A pipeline of seven LLM agents and deterministic code: research, analysis, an adversarial audit that sends work back to the analyst, an editorial pass, and a renderer with no LLM in it. Every figure in the report carries a marker: verified, declared or estimated.

Outcome

36 runs as an internal service between May and June 2026, about $0.50 per complete report and about ten minutes per run. In July we froze it with the product working, because the demand we found was for consulting.

01The brief

Bizétika started as a product: give a small company an honest diagnostic of where it stands, built only from what can be checked in public sources. The owner would read it on a phone, sent over WhatsApp, so the format was vertical from the start.

The constraints shaped everything else:

  • Cost. Cents per report, not euros. The first target, all on Sonnet, was $0.15–0.25.
  • Sources. Three independent families of public sources, a curated list of 93 domains, and a registry match only when the tax ID matched exactly.
  • Abuse. Generation never went on the public web. A public form would have been a direct way for anyone to burn our model and search budget.
  • Language. Neutral Spanish for Spain and Uruguay.

02Architecture decisions

It started on 22 April 2026 as a Claude skill, one prompt per agent. Within a week it was clear that wasn't enough: the telemetry the skill reported about itself wasn't reliable, a run couldn't be resumed, nothing ran in parallel, and the model was running its own quality checks. It became a Python orchestrator, and from there each decision moved a piece of work to whoever could do it best.

Cheap models to research, Sonnet where there's judgment. The four research agents (context, mercantile, digital, sectoral) ran on DeepSeek V3. The analyst, the adversary and the editorial pass ran on Sonnet in every tier. In the skill era the analyst and the adversary ran on Opus, so the check wouldn't be weaker than what it checked; moving both to Sonnet was the biggest cost cut.

Grounding before upgrades. The digital agent was inventing online shops and follower counts. A bigger model wasn't the fix. Python now reads the company's own site first and overwrites what it can measure, and the model only interprets.

Identity in code. Businesses with the same name were the most serious failure: in a sweep of 21 companies, 3 reports described the wrong one. An anchor in code fixes the tax ID, legal name and address from the company's own site before any model runs, and a person confirms the identity before the expensive part. On the same 21 companies, the regression gave 0 errors (14 pass, 7 flagged for review).

Markdown in, structure from code. The analyst first returned JSON for a catalogue of components, and it had ten systemic problems: raw JSON leaking into the report, the thesis repeated three times, counts that didn't match what was rendered. The analyst now writes Markdown with typed blocks, and Python parses it into a validated structure. A spike removed six of the ten problems at the root, and a visual review of 48 reports confirmed the switch.

Rendering without a model. The last LLM writer was replaced by a template: rendering went from 15–40 seconds to about 40 milliseconds, and ten renders of the same input give the same file. Removing the slide-deck writer saved $0.17 per run.

COMPANY URL LLM agent Code Person ANCHOR Tax ID, legal name and address, fixed from the company's own site before any model runs IDENTITY CHECK A person confirms the identity before the expensive part CONTEXT Country, business type, financial profile and commercial model RESEARCH MERCANTILE DIGITAL SECTORAL Three independent source families. Digital and sectoral run in parallel, after mercantile ANALYST Writes the report in Markdown with typed blocks RULES A schema and ten cross-field rules ADVERSARY LEDGER Audits the framing, the report against its own data and every claim against the sources, then writes an instruction for the analyst, for up to two rounds. Its issues go into a ledger kept in code EDITORIAL PASS Removes AI-writing patterns from the prose RENDERER A fixed template, no model: the same input gives the same file GATES Four checks before delivery: ready, or flagged for review DIAGNOSTIC REPORT _Each decision moved a piece of work to whoever could do it best

03The quality system

Two layers check every report before it can be delivered.

Rules in code. A validator checks the structure against a schema and ten cross-field rules: an estimate can't be narrated as fact, a conflict has to move to the limitations section, a source can't match the patterns of an invented one, word budgets hold.

An adversary that sends work back. A second model audits the framing, the report against its own data, and every claim against the sources. It doesn't score: it writes an instruction for the analyst, for up to two rounds. Its issues go into a ledger kept in Python, with stable IDs, so in the second round it checks what it raised instead of auditing from scratch.

One run shows how it worked. The report marked "no online booking" and "no LinkedIn" as verified. In the first round the adversary objected: not finding a signal doesn't prove it's absent, so the marker should be "declared". In the second round, checking its own earlier issue through the ledger, it corrected itself: "declared" means the business says so, and the right marker was "unverified".

It didn't always work. Two days after we went live, an audit of the code found that the adversary's verdict had no effect: the loop was converging on the first round no matter what it said. We rewired it the same week.

Two pages of an anonymised Bizétika diagnostic report: the cover and the digital-footprint section.
Two pages of a diagnostic report (May 2026), anonymised: the cover, and the digital-footprint section, where each figure is marked as verified or estimated.

04What it cost and where it broke

Every model call logged its model, tokens, cost and round, and every run its latency per step. The dashboard showed a timeline per agent, the adversary's log and the result of each check.

From the backup of the production data (23 May – 22 June 2026):

  • 36 runs on 15 companies: 22 complete, 1 stopped midway, 13 from one incident (below).
  • About $0.50 per complete report: median $0.51, range $0.23–0.85 (22 runs).
  • About ten minutes per run: median 10.2 minutes of model time (15 runs).
  • Where the money went: the analyst took 68.5% of the spend, the adversary 13.9%, the editorial pass 13.4%, and the four research agents 4.2% together.
  • A deliberate increase. On 7 June the adversary moved from DeepSeek to Sonnet, because it was the step that protected credibility. The median complete run went from $0.35 (16 runs) to $0.72 (6 runs).

The incident. On 5 June the same report was launched 13 times in 30 minutes, because the dashboard looked frozen while a run was in progress. It cost $4.44 instead of about $0.36. Three changes came out of it: one run per company at a time, a status file per company, and a live view of the run.

Bizétika observability dashboard: one run, with model, tokens, cost and latency per agent and round, and the adversary log.
Observability dashboard, one run (June 2026): model, tokens, cost and latency for each agent and round, and the adversary's verdict on each claim.
SHARE OF SPEND BY STEP · 22 COMPLETE RUNS Analyst 68.5% Adversary 13.9% Editorial pass 13.4% Research four agents 4.2% 0 100%
Share of spend by step, 22 complete runs.

05How I built it

I didn't write the code by hand. I wrote briefs with Claude (Opus), each with its context, numbered tasks, what not to touch and how to verify the result. Claude Code implemented them on separate branches, and I reviewed and merged every change.

Between 8 May and 22 June that meant 63 briefs, 83 merged pull requests, and a test suite that grew from 83 to 968 tests. Before a change of format or model, real cases were replayed through the new path: 13 real dossiers against the new schema, and the identity regression on 21 companies.

06Why we froze it

By June the MVP was complete: online behind a login, identity confirmation, the audit loop with its ledger. It was never public: we sent reports by hand, and both of us had full-time jobs.

On 27 July we froze it with the product working. The demand we had found was for consulting, not for diagnostics, and the company moved there. On 1 August we took the infrastructure down and revoked every key. In September we also ruled out building a custom product per client: it would reopen the infrastructure cost we had just removed.

07What didn't work

  • No scored evaluation. We had tests, replays and regressions, but no golden set to score the quality of the analysis. Quality was judged by reading reports.
  • The loop didn't always close. In 6 of the last 15 runs the analyst and the adversary didn't converge in two rounds, and the report was flagged for review instead of delivered.
  • Checks nobody acted on. The layout check failed in 6 of 13 runs without anyone fixing it.
  • Cost from a price table. Cost was calculated from our own price table, not from what the gateway billed, and caching wasn't measured.
  • A step that doesn't scale. The human identity confirmation was right for quality and would be a bottleneck at volume.

08My role

AreaWhat I did
ProductThe brief, the constraints, the report format, the decision to freeze
ArchitectureThe split into agents and code steps, the model per step, the Markdown-to-structure contract
PromptsAll agent prompts, including the adversary and the evidence markers
QualityThe validator rules, the adversary loop and its ledger, the identity anchor and confirmation
ObservabilityWhat to log, and the dashboard
ImplementationBriefs with Claude (Opus), implementation by Claude Code, review and merge by me
FedericoOperations and the commercial side; the freeze was a decision of both

building an AI product? Let’s talk

Message me on LinkedIn

Jorge Polo · Bizétika diagnostic pipeline · 2026 · → Bizétika (the company)