Blog
hedwigaihedwigaihedwigai

Supply chains · model checking

Can a simulated supply chain predict what a company owes its suppliers?

The contracts between companies are private. What a carmaker pays its battery supplier, and how fast, is in no filing. But the outline is public. A listed company files its cost of revenue and what it owes its suppliers every quarter. Customs records name many of the companies that ship to it.

We turn that outline into a small simulation of who orders from whom, ships, invoices and pays. Two model checkers then read the simulation: one finds the ways a rule can break, the other says how likely each is. This post shows the method and tests one thing it predicts against what companies later filed.

Try it yourself

What does a company owe its suppliers?

  • Pick a public company and a date, or type any ticker
  • Change how fast each step moves and see the graph checked again
  • Its predicted payables against every quarter it filed, with a confidence score

Checking is free. A drafted map needs a sign-in, and the first ones are free.

Map a supply chain
Continue in

The method

How is a supply chain written down and checked?

A map is a short YAML file. Its nodes are companies: the public one, its private suppliers, and a lender. Its edges say who sells to whom, and how many times a day, on average, an order moves from one step to the next: ordered, shipped, invoiced, paid. A credit line is an edge from the lender.

tier 2 aprivatetier 2 bprivatemain supplierprivatematerialsprivatepartsprivateTeslapublicbanklender
The default graph. Goods flow left to right and money right to left; the dashed line is a credit line.
name: Defaults
window_days: 90
steps: [ordered, shipped, invoiced, paid]
nodes:
  - {id: tesla, kind: public}
  - {id: main_supplier, kind: private}
  - {id: materials_supplier, kind: private}
  - {id: parts_supplier, kind: private}
  - {id: tier2_a, kind: private}
  - {id: tier2_b, kind: private}
  - {id: bank, kind: lender}
edges:
  - {from: main_supplier, to: tesla, rate_per_day: {ordered: 0.4, shipped: 0.07, invoiced: 0.33, paid: 0.0159}}
  - {from: materials_supplier, to: tesla, rate_per_day: {ordered: 0.2, shipped: 0.07, invoiced: 0.33, paid: 0.0159}}
  - {from: parts_supplier, to: tesla, rate_per_day: {ordered: 0.2, shipped: 0.07, invoiced: 0.33, paid: 0.0159}}
  - {from: tier2_a, to: main_supplier, rate_per_day: {ordered: 0.3, shipped: 0.05, invoiced: 0.33, paid: 0.028}}
  - {from: tier2_b, to: main_supplier, rate_per_day: {ordered: 0.3, shipped: 0.05, invoiced: 0.33, paid: 0.028}}
  - {from: bank, to: main_supplier, kind: credit_line, draw_per_day: 2.0, repay_per_day: 0.1}
invariants: [AnchorCap, FlowConservation]

From the one file we write two models. The first is a TLA+ module. TLC tries every order the steps can happen in and reports the shortest path to a broken rule, such as a supplier that owes more than it holds and is owed. The second is a continuous-time Markov chain in the PRISM language. Storm computes the chance each rule breaks within the window, and the long run of each company’s payables: how many orders it owes on average, and how many it pays a day.

A map drafted for Tesla with three suppliers and a lender reached 224 states, and both checkers finished in 1.5 seconds. A larger Tesla map reached 18,816 states in about 6 seconds. A map that would pass 200,000 states is refused before either checker runs.

A map can be drafted by a language model from the company’s 10-K figures and the suppliers named in customs records it already holds, or started from a default graph and edited by hand. Either way, every change is checked again.

The prediction

How does a simulation become a dollar figure?

By Little’s law. In the long run the public company owes some number of orders and pays some number a day, so an order waits their ratio in days to be paid. Times the cost of revenue a day, that is the dollars it owes its suppliers at any quarter end. The spread of orders owed gives an 80% band around it.

The default graph owes 2.62 orders and pays 0.0416 a day: about 63 days. That figure can be checked against every 10-Q and 10-K the company files later. The page scores it as one minus the mean absolute percentage error, so 1.000 is exact and 0.800 is off by a fifth on average.

The eval

How close does it come to what was filed?

We took 43 US manufacturers and retailers and two cutoff dates, 30 June 2023 and 30 June 2024. Each predictor saw only filings filed on or before the cutoff. Each was scored on the payables filed for every balance-sheet date in the two years after it: 649 in all.

We compared the default graph with two simple predictors. One carries the last 10-K’s days payable forward at the same cost of revenue; a map whose rates reproduce that figure predicts exactly this, by the same law. The other carries the last payables filed forward unchanged.

The default graph scored 0.665. The 10-K’s days payable scored 0.825 and the last filing 0.861. One graph for every company is not a good predictor of what a given company owes: it beat the last filing on 20 of the 86 company-cutoffs.

Mean confidence over 86 company-cutoffs, scored on the quarters filed after each cutoff (1.000 is exact)
The default graph0.665
Last 10-K's days payable0.825
Last payables filed0.861
43 companies, cutoffs 2023-06-30 and 2024-06-30, 649 quarters filed after a cutoff. Only the default graph gives a band.
PredictorMean confidenceMedianScoring 0.8 or moreInside the 80% band
The default graph0.6650.65230 of 8668.9%
Last 10-K's days payable, carried forward0.8250.88062 of 86
Last payables filed, carried forward0.8610.89571 of 86

Where it works

Which companies does the default graph fit?

The ones that pay at its pace. Companies in this set paid in a median of 60 days by their last 10-K, with half between 47 and 96. For the 40 company-cutoffs that paid in 45 to 80 days, the default graph scored 0.793, close to the 10-K’s 0.815. For Tesla at the 2024 cutoff it scored 0.941 over eight quarters, ahead of the last filing’s 0.915.

Outside that range it falls away: 0.473 for companies that pay in under 45 days, 0.610 for those that take over 80. A defense contractor paying in two weeks and a food company paying in four months need different graphs. That is the job of a drafted map.

Each of the 86 company-cutoffs: days payable in its last 10-K (across) and confidence over the quarters filed after (up)
The default graphLast payables filed
0.000.250.500.751.00020406080100120140days payable in the last 10-Kthe default graph pays in 63 daysLMT 2023: last filing 0.829LMT 2024: last filing 0.820CSCO 2023: last filing 0.827CSCO 2024: last filing 0.849ITW 2024: last filing 0.938ITW 2023: last filing 0.950COST 2024: last filing 0.910GD 2023: last filing 0.962GD 2024: last filing 0.921COST 2023: last filing 0.881HD 2024: last filing 0.922MU 2024: last filing 0.669NVDA 2023: last filing 0.347AMAT 2024: last filing 0.818HD 2023: last filing 0.911EMR 2023: last filing 0.943WMT 2023: last filing 0.932WMT 2024: last filing 0.920QCOM 2024: last filing 0.872MU 2023: last filing 0.767AMAT 2023: last filing 0.940NKE 2023: last filing 0.876NKE 2024: last filing 0.694DG 2024: last filing 0.863NOC 2023: last filing 0.885NOC 2024: last filing 0.938TXN 2023: last filing 0.740TXN 2024: last filing 0.717DG 2023: last filing 0.961BBY 2024: last filing 0.848MMM 2024: last filing 0.786LOW 2024: last filing 0.856PH 2023: last filing 0.935TGT 2024: last filing 0.906BBY 2023: last filing 0.872BA 2023: last filing 0.886PH 2024: last filing 0.918NVDA 2024: last filing 0.393LOW 2023: last filing 0.833HSY 2023: last filing 0.862TGT 2023: last filing 0.930EMR 2024: last filing 0.927CMI 2024: last filing 0.911MMM 2023: last filing 0.886AMD 2024: last filing 0.483BA 2024: last filing 0.921HSY 2024: last filing 0.715TSLA 2024: last filing 0.915CAT 2024: last filing 0.900AMD 2023: last filing 0.772CMI 2023: last filing 0.912CL 2023: last filing 0.940WHR 2023: last filing 0.984GM 2023: last filing 0.954GM 2024: last filing 0.912QCOM 2023: last filing 0.610CL 2024: last filing 0.871CAT 2023: last filing 0.845ROK 2024: last filing 0.905ROK 2023: last filing 0.831WHR 2024: last filing 0.957DELL 2023: last filing 0.808TSLA 2023: last filing 0.845KHC 2024: last filing 0.968INTC 2024: last filing 0.816KHC 2023: last filing 0.910PEP 2023: last filing 0.949INTC 2023: last filing 0.828HON 2023: last filing 0.972KMB 2024: last filing 0.939KMB 2023: last filing 0.929PEP 2024: last filing 0.968DELL 2024: last filing 0.777AAPL 2023: last filing 0.794AAPL 2024: last filing 0.746KO 2023: last filing 0.960HON 2024: last filing 0.838KO 2024: last filing 0.984HPQ 2023: last filing 0.893GIS 2024: last filing 0.951GIS 2023: last filing 0.906HPQ 2024: last filing 0.847PG 2024: last filing 0.901PG 2023: last filing 0.945MDLZ 2024: last filing 0.888MDLZ 2023: last filing 0.896LMT 2023: 13 days payable, default graph 0.000LMT 2024: 14 days payable, default graph 0.000CSCO 2023: 19 days payable, default graph 0.619CSCO 2024: 19 days payable, default graph 0.766ITW 2024: 23 days payable, default graph 0.000ITW 2023: 23 days payable, default graph 0.000COST 2024: 30 days payable, default graph 0.224GD 2023: 32 days payable, default graph 0.637GD 2024: 32 days payable, default graph 0.596COST 2023: 33 days payable, default graph 0.204HD 2024: 36 days payable, default graph 0.663MU 2024: 37 days payable, default graph 0.873NVDA 2023: 37 days payable, default graph 0.599AMAT 2024: 38 days payable, default graph 0.632HD 2023: 40 days payable, default graph 0.534EMR 2023: 41 days payable, default graph 0.460WMT 2023: 42 days payable, default graph 0.628WMT 2024: 42 days payable, default graph 0.615QCOM 2024: 44 days payable, default graph 0.930MU 2023: 46 days payable, default graph 0.641AMAT 2023: 46 days payable, default graph 0.451NKE 2023: 47 days payable, default graph 0.667NKE 2024: 47 days payable, default graph 0.580DG 2024: 49 days payable, default graph 0.844NOC 2023: 49 days payable, default graph 0.879NOC 2024: 49 days payable, default graph 0.780TXN 2023: 50 days payable, default graph 0.573TXN 2024: 50 days payable, default graph 0.597DG 2023: 50 days payable, default graph 0.801BBY 2024: 50 days payable, default graph 0.843MMM 2024: 55 days payable, default graph 0.854LOW 2024: 55 days payable, default graph 0.931PH 2023: 56 days payable, default graph 0.976TGT 2024: 57 days payable, default graph 0.925BBY 2023: 57 days payable, default graph 0.773BA 2023: 59 days payable, default graph 0.938PH 2024: 59 days payable, default graph 0.915NVDA 2024: 59 days payable, default graph 0.415LOW 2023: 59 days payable, default graph 0.890HSY 2023: 60 days payable, default graph 0.871TGT 2023: 60 days payable, default graph 0.877EMR 2024: 60 days payable, default graph 0.948CMI 2024: 60 days payable, default graph 0.916MMM 2023: 60 days payable, default graph 0.838AMD 2024: 61 days payable, default graph 0.718BA 2024: 62 days payable, default graph 0.921HSY 2024: 64 days payable, default graph 0.803TSLA 2024: 67 days payable, default graph 0.941CAT 2024: 67 days payable, default graph 0.858AMD 2023: 70 days payable, default graph 0.813CMI 2023: 73 days payable, default graph 0.863CL 2023: 73 days payable, default graph 0.805WHR 2023: 74 days payable, default graph 0.825GM 2023: 74 days payable, default graph 0.611GM 2024: 74 days payable, default graph 0.640QCOM 2023: 74 days payable, default graph 0.630CL 2024: 76 days payable, default graph 0.744CAT 2023: 77 days payable, default graph 0.919ROK 2024: 79 days payable, default graph 0.893ROK 2023: 81 days payable, default graph 0.895WHR 2024: 81 days payable, default graph 0.808DELL 2023: 85 days payable, default graph 0.623TSLA 2023: 92 days payable, default graph 0.758KHC 2024: 95 days payable, default graph 0.699INTC 2024: 96 days payable, default graph 0.566KHC 2023: 96 days payable, default graph 0.718PEP 2023: 97 days payable, default graph 0.618INTC 2023: 97 days payable, default graph 0.639HON 2023: 97 days payable, default graph 0.630KMB 2024: 100 days payable, default graph 0.686KMB 2023: 100 days payable, default graph 0.680PEP 2024: 101 days payable, default graph 0.636DELL 2024: 104 days payable, default graph 0.439AAPL 2023: 105 days payable, default graph 0.712AAPL 2024: 107 days payable, default graph 0.601KO 2023: 108 days payable, default graph 0.561HON 2024: 109 days payable, default graph 0.632KO 2024: 110 days payable, default graph 0.574HPQ 2023: 110 days payable, default graph 0.586GIS 2024: 113 days payable, default graph 0.582GIS 2023: 113 days payable, default graph 0.609HPQ 2024: 121 days payable, default graph 0.429PG 2024: 125 days payable, default graph 0.485PG 2023: 129 days payable, default graph 0.499MDLZ 2024: 136 days payable, default graph 0.395MDLZ 2023: 137 days payable, default graph 0.399
Mean confidence by how fast the company paid in its last 10-K before the cutoff

Pays in under 45 days (19 company-cutoffs; the default graph’s band held 75%)

The default graph0.473
Last 10-K's days payable0.746
Last payables filed0.854

Pays in 45 to 80 days (40 company-cutoffs; the default graph’s band held 88%)

The default graph0.793
Last 10-K's days payable0.815
Last payables filed0.844

Pays in over 80 days (27 company-cutoffs; the default graph’s band held 32%)

The default graph0.610
Last 10-K's days payable0.896
Last payables filed0.891

Calibration

Is the 80% band honest?

Not yet. The band held 447 of the 649 filed quarters, 68.9% where it should hold 80%. Among companies paying in 45 to 80 days it held 88%, so it is too wide there. Among those taking over 80 days it held 32%. The band says how much the simulation’s own payables vary, not how wrong its pace can be, so a wrong pace puts most quarters outside it.

What this does not show

What is left to measure?

A drafted map is given the company’s own days payable and asked for rates that reproduce it. So its payables prediction can at best match the 10-K line, and scoring it there checks that the model copied its input, not that the simulation knows anything more.

Instead every map drafted on the try page is kept and scored as its company files, beside the same two predictors. A map counts only once a quarter is filed after its date, and only if it was drawn from filings public by that date.

Live: the maps people have drafted

Every map drafted on the try page is scored here once its company files a quarter after the map's date.

The open question is the one payables cannot answer: when a map says a rule is likely to break, do its company’s suppliers in fact come under strain in the quarters after? That needs an outcome defined before it is measured, and it is the next eval.

Try it yourself

What does a company owe its suppliers?

  • Pick a public company and a date, or type any ticker
  • Change how fast each step moves and see the graph checked again
  • Its predicted payables against every quarter it filed, with a confidence score

Checking is free. A drafted map needs a sign-in, and the first ones are free.

Map a supply chain
Continue in

The same checkers on six small businesses: where does a business break when two things happen at once?

  • All figures were measured on 24 November 2026 from SEC XBRL company facts.
  • The 43 companies: AAPL, AMAT, AMD, BA, BBY, CAT, CL, CMI, COST, CSCO, DELL, DG, EMR, GD, GIS, GM, HD, HON, HPQ, HSY, INTC, ITW, KHC, KMB, KO, LMT, LOW, MDLZ, MMM, MU, NKE, NOC, NVDA, PEP, PG, PH, QCOM, ROK, TGT, TSLA, TXN, WHR and WMT. Five more we tried (DE, F, GE, KR, PCAR) were left out because their filings did not give an annual cost of revenue and payables under the names we read.
  • Payables are AccountsPayableCurrent, else AccountsPayableTradeCurrent. Cost of revenue is the last 10-K’s annual figure filed on or before the cutoff. A restated quarter is scored at its latest filed value.
  • Confidence is max(0, 1 − MAPE) per company-cutoff, averaged over company-cutoffs.

More head-to-head evals

Does Physical Agent aim its tool calls at the object?Physical Agent writes a robot tool call on 400 of 400 frames, but moving the object 16 cm leaves its targets where they were.
MeasurePhysical AgentQwen3.5-4B
LIBERO frames answered with a tool call400 / 40018 / 400
Target movement per cm of object movement (median)0.02 cm—
Read the comparison
Particle-1, DeepSeek V4.1 Flash and GLM-5.3-Flash in Claude Code with hedwigai workbooksParticle-1, DeepSeek V4.1 Flash and GLM-5.3-Flash, 180 runs graded blind, rows right: 91.2%, 89.4% and 90.8%, intervals overlapping.
MeasureParticle-1DeepSeek V4.1 FlashGLM-5.3-Flash
Rows right, blind91.2%89.4%90.8%
Median seconds per run375315144
Read the comparison
GLM-5.3 against DeepSeek V4.1 Flash on 75 questionsTwo models answer the same 75 questions; one is always right, the other 14× cheaper.
MeasureGLM-5.3DeepSeek V4.1 Flash
Right, of 757571
Seconds a question, median3.91.8
Read the comparison
How we made a long-running AI agent for knowledge work 4× fasterOne cited knowledge work task through 13 experiments: 937 s to 233 s, with the model held constant.
MeasureFirst runBest since
Landscape, seconds937233
Memo, seconds759602
Read the report
Ten models plan a change to a spreadsheet: which do it in under a minute, traced call by callTen models drive one agent harness through the same spreadsheet request; six write the plan, timed and traced call by call.
MeasureQwen3 235BGLM-5.2Gemini 3.8 FlashClaude Opus 5
Seconds to the plan, median27485794
Plans written, of three runs2333
Read the comparison
SubQ, jev, Perplexity's Decider and Bespoke's Nimble on biotech diligence memos: finding the sentences a column is aboutFour decision models judge every sentence of ten biotech diligence memos for five columns, scored against sentences a person marked.
MeasureSubQjevDeciderNimble
Found, mean of five columns at section length64%65%66%68%
Mechanism of action, found at section length57%51%61%54%
Read the comparison
Leads with a reason to write: hedwigai ask, Apollo and treg on one brief40 leads each, every one checked: the right person, an inbox that accepts, and a dated reason to write.
MeasureaskApollotreg
Usable leads13 of 407 of 406 of 28
Cost per usable lead$0.037$0.27$0.23
Read the comparison
Self-hosted decisions for ask: Perplexity's open Decider in place of jev on 92 company questionsThe decisions inside hedwigai ask made by Perplexity's open Decider on two NVIDIA RTX 3090s, against jev.
Measureask with jevask with Decider
Questions right, of 928989
Wrong answers12
Read the comparison
Clinical decisions: jev and ask on System One, PubMedQA, SciFact and a 370-decision setEdgeEvals' System One board, PubMedQA, SciFact, and a clinical set built to System One's rules.
Measurejevask
Our 370 clinical decisions, right94.6%93.0%
PubMedQA, right (best EdgeEvals scored: 62.2%)77.0%74.4%
Read the comparison
Executive lookup for US-listed companies: Claude Opus 5.5 and ask on 95 questionsWho runs a public company, and how to email them: a frontier model from memory against hedwigai ask.
MeasureaskClaude Opus 5.5
Questions right, of 955963
Small companies right, of 20139
Read the comparison
Rental comps: floor-plan rents and amenities on 14 listings, five assistants comparedRent per floor plan and amenities for US rentals: hedwigai realestate-us against Claude, GPT, Gemini and Perplexity with web search.
Measurerealestate-usBest of four assistants
Floor-plan rents right, of 262623
Amenities claimed the listing doesn't state12129
Read the comparison
Company screening from SEC filings: jev, Vela 2.0 and ask on 92 yes/no questionsYes-or-no questions about public companies, answered by two decision models alone and by hedwigai ask.
Measureaskjev
Right, of the questions answered98%79%
Wrong answers, of 92219
Read the comparison
Defect localization in industrial images: four frontier models and a trained localizerFour frontier models asked to put a box around what they just described.
MeasureTrained localiserBest of four frontier models
Mean overlap with the defect (IoU, 0 to 1)0.4210.109
Read the comparison