platform-vs-ledger
Skill0 starsChanged 3 months agoMITView on GitHub
Reconcile platform-reported conversions against the payment processor, CRM or operational record, and decide which number to act on. Use before any budget reallocation, when reported conversions and money received disagree, or when validating a new CAPI deploy.
In this repository5 other files it gives its agents.
- dedup-verificationSkill
- event-taxonomySkill
- match-qualitySkill
- tracking-change-controlSkill
- value-integritySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Write the reconciliation as a fixed query with a fixed filter and run it on a schedule.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Platform versus ledger
Ad platforms grade their own homework. Every measurement decision that matters eventually comes down to comparing what the platform claims against a record it does not control.
Pick the counter-source deliberately
The payment processor, the CRM, or the operational record the business actually runs on. State which one you chose and why. A comparison against a second ad-platform-fed dashboard is not a reconciliation.
Match the windows before you match the numbers
This is where most reconciliations fail, and the failure looks like a data problem when it is an arithmetic one.
Platform reporting defaults to a multi-day click window. A payment ledger is same-day. Comparing a multi-day-click figure against one day of payments will never agree, and the disagreement carries no information.
Two valid comparisons:
- One-day-click against the same calendar day, or
- A multi-day total against the same multi-day total
Pick one, write it down, and use the same one every time. Switching windows between reviews is how a stable account acquires an imaginary trend.
Exclude what advertising cannot claim
Filter the ledger to transactions the customer completed unassisted before you compare. Sales closed by a human are not self-serve, and most platforms correctly decline to claim them. Skip this and you will discover a gap that is your own sales team.
Other exclusions worth making explicit: renewals on an existing mandate, manual and offline payments, internal test transactions.
Counts before values
Reconcile counts first. They are usually close. If counts agree and revenue does
not, the problem is the value parameter and value-integrity is the next step.
Trying to reconcile revenue while counts are still unexplained mixes two
independent failures into one number.
Tolerance, as a convention
These bands are a working convention, not arithmetic. Tune them to your own volume and attribution setup.
| Gap | Reading |
| Under 10% | Normal. Attribution windows and late restatement explain it |
| 10-25% | Investigate before reallocating budget |
| Over 25% | One of the two is wrong. Find out which before anyone moves money |
Refuse to draw a conclusion below roughly 30 conversions in the window.
Direction tells you where to look
Platform higher than ledger — duplication between browser and server, an event that fires more broadly than the sale, view-through conversions included in the figure, or a test environment reporting into production.
Platform lower than ledger — server events failing or rate-limited, consent loss, browser-level blocking, a click identifier lost before checkout, or genuine conversions the ad never touched.
The second case is the one people misread as "tracking is fine, it is under- reporting in our favour." An undercount still starves optimisation.
Make it repeatable
Write the reconciliation as a fixed query with a fixed filter and run it on a schedule. Most of the value is in noticing the day it changes, which a one-off comparison cannot do.
Also remember that yesterday is provisional. Attribution restates for days, so a single fresh day is never evidence on its own.
Output
A table of platform versus ledger for the same window and definition, per channel and per event. The gap and its direction. A verdict per line against the bands above. Then one sentence: is this account safe to reallocate budget on.
What this does not cover
Incrementality. A reconciled conversion is a real conversion that the platform claimed, not proof the ad caused it. That is a holdout test, not a reconciliation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

