This page is the index of claims. Each row states something the system does, names what makes it true, and points to the page with the code and the tests. The second table maps the lines of my CV onto those pages.
What the system does today
| Result | What makes it true | Where it is shown |
|---|---|---|
| A paid service was live within three months of incorporation | the company was incorporated in May 2026 and subscriptions with credit payments started in August 2026 | Overview, Credits and payments |
| A run is recorded before it is accepted | the run batch is inserted as queued, with a lease, before the charge | Run state machine |
| A run with some failed cells is kept as partial | terminal status is computed from stored attempts; 30 failed cells of 300 keep 270 results and refund the 30 in proportion | Run state machine |
| A process killed mid-run costs the customer nothing | 30-second heartbeat, 300-second lease, a reaper every 60 seconds that claims and refunds | Leases and the reaper |
| The reaper never closes a live run | its claim matches only an expired lease, and is one conditional update | Leases and the reaper |
| A scheduled run measures once per slot, even across a reload | a claim key under a unique partial index | Exactly once |
| A run is settled once and a refund leaves one ledger row | a settlement claim, a marker on the balance and a unique partial index on the ledger | Exactly once, Credits and payments |
| A recent tracking result is reused instead of bought again | stored answers up to 14 days old are reused by the audit and that part of the charge is refunded | Exactly once |
| A balance cannot go below zero under concurrent charges | one conditional update on both credit buckets, verified with concurrent tests on a real MongoDB | Credits and payments |
| A client cannot make a renewal skip its charge | server-owned order-id prefixes, refused with 400 before capture | Credits and payments |
| An unknown charge result is never charged again blindly | 5xx and network errors trigger a lookup at the provider before any retry | Credits and payments |
| Customer agents read the same data as the dashboard | MCP tools call the REST routes in-process | MCP server |
| A read-only key cannot write | the scope check runs before a request is built; keys expire and die when their owner is demoted | MCP server |
| A provider failure is not reported as 0% | failed cells are excluded from the denominator, refunded, and an engine with no valid answer shows a dash | Provider adapters |
| A change is called supported only when the data separates it from chance | repeats folded to one vote per unit, Wilson 95% intervals, an ordered rule | Scoring and significance |
| A model change at one engine does not read as a visibility change | versioned comparison keys, per engine | Scoring and significance |
The numbers in this table are design constants and rules, read from the code. I do not publish customer counts, revenue or the customers’ own visibility figures here.
CV lines and where they are shown
| CV line, TRAIL Search | Page |
|---|---|
| One request fans out into hundreds of cells, one per prompt, engine, market and repeat, each a paid call, then scored, rolled up and charged against workspace credits | Run state machine, Architecture |
| Execution state: a run is a state machine persisted in MongoDB, so 30 failed cells of 300 is a partial run, not a lost one | Run state machine |
| Owner-stamped leases, heartbeats and a reaper recover a process killed mid-run and refund its charge; every transition is a compare-and-set | Leases and the reaper, Data model |
| Exactly once: scheduled runs collapse to one under a unique claim key even when a reload overlaps two processes; settlement claims once; a 14-day result reuse refunds once | Exactly once |
| Failures found in records and in review: an adapter that never returned a result, a re-sync that erased computed audit results, a significance rule that counted repeats as independent samples | Incidents entries 5, 2 and 6 |
| Permissions and billing: workspace tenancy, owner-only billing | Data model, tenancy and roles |
| An MCP server with read-only and read-write keys that expire and are refused before the route | MCP server |
| Server-owned order-id namespaces so a client cannot pre-empt a renewal | Credits and payments |
| Long-running jobs as persisted state machines: queued, running, completed, partial, failed, interrupted | Run state machine |
| MongoDB: compound, unique, partial and TTL indexes; conditional updates as compare-and-set; revision-locked writes | Data model |
| Versioned scoring keys so a changed model reads as a condition change | Scoring and significance |
| External providers behind adapters with a common result shape, retries and a one-step fallback; measurement failure counted apart from true negatives | Provider adapters |
How to check any of this
The repository is private, so the evidence on these pages is of three kinds.
- Names. Every function, field, index, constant and test named here exists under that name. In an interview I can open the file and show it.
- Excerpts. Code blocks are taken from the source, shortened, with comments translated.
- The live product. The service runs at app.traillabs.ai. Its MCP endpoint is public, and the MCP page gives a one-line
curlthat returns the 401 and the JSON-RPC error code described there.
Related reading
Notes I wrote while building the measurement side, on the blog:
- The same search engine, and the least overlap: source gaps between engines, read as someone who builds the measuring tool (Korean)
- Between 99.4% and 3.32%: what a visibility-tool builder took from the discovery-gap paper (Korean)
- The model knows but cannot say it: observe whether it searched instead of asking (Korean)
