Build a Paper Research Artifact Manifest
A paper result is only evidence if someone else can regenerate it. The companion post on immutable strategy versions covered why a pinned version matters. This post is the next step down: the exact manifest a collaborator needs to re-run your offline paper result and get the same numbers, or at least understand precisely why they cannot.
Treat the manifest as a plain file you write by hand and commit next to the result. JSON or TOML both work. The point is not the format. The point is that every input that moved the output is captured, and every input you could not capture is named as an unknown instead of being silently assumed.
Why a manifest and not just a logfile
A logfile tells you what happened once. A manifest tells you what to feed in to make it happen again. The difference matters because a paper result is a function of several models stacked together: the data you fed, the fill assumptions, the fee policy, and the valuation rule. Change any one and the P&L changes. If the manifest does not name all four, a collaborator reproducing your run is guessing at three of them.
To be clear on scope: this is a convention you maintain yourself. It is not a vendor export button. Write it, version it, and keep it honest.
The seven sections
A workable manifest has seven parts. Each answers a question a reproducer will otherwise have to guess.
- Strategy version: the exact package version and the strategy source identity (a content hash of the strategy file, plus the class name). Pin the SDK too. The public bangertrades package requires Python 3.11 or newer, so the interpreter floor is itself an input.
- Input data hashes: a cryptographic hash of every input file, not just its filename. Filenames lie; a SHA-256 does not. Record the market ticker you ran against, because a strategy pointed at a different market is a different experiment.
- Parameters: every tunable the strategy reads, with its value. Thresholds, lookback windows, size constants. If a parameter has a default, write the resolved value, not 'default'.
- Units: state the unit of every number. Prices, sizes, fees, and P&L all need explicit units so a reader never has to infer dollars versus contracts versus probability.
- Environment: OS, Python version, package versions, and any locale or timezone setting that affects parsing or day boundaries.
- Outputs: a hash of the result artifact plus the headline numbers you are claiming, each labeled by what kind of number it is.
- Unknowns: the inputs you could not pin. Missing quotes, assumed fills, rounding you did not control. Name them.
Units are where paper results quietly diverge
Prediction-market money is small-denomination and rounding-sensitive, which makes binary float a liability. Python's standard library has the right tool. The decimal module provides support for correctly rounded decimal floating-point arithmetic, and it offers a user-alterable precision that defaults to 28 places. Use it for anything you will later compare across machines.
One subtlety worth recording in the manifest: a Decimal built from a string is exact, whereas building one from a float carries the float's binary approximation along for the ride. So Decimal('0.1') is exactly one tenth, but Decimal(0.1) is not. If your pipeline ever constructs prices from floats, that is an input detail a reproducer needs to know, because it changes the low digits.
In the public Banger SDK, tick prices are already Decimal and bid or ask can be absent. That absence is itself a unit-and-availability fact: record whether a run hit missing quotes, because a strategy that fell back to a different price is not reproducing the same path.
Name your fill, fee, and valuation models
This is the section people skip, and it is the one that makes two honest researchers disagree. A paper fill is an assumption, not an observation. The public 0.1.7 forward-paper context, for example, can fill a non-crossing requested limit at that limit and logs that it did so as a resting-assumed fill. Its quantity cap is based on reported volume, not a reconstruction of full book depth or passive queue position. If your result depended on size getting filled, the manifest must say which fill model produced it.
Fees are the same story. The packaged standard Kalshi fee helper rounds up to a whole cent. The current official venue fee schedule describes finer rounding that also folds in position cost. Those are two different numbers. Record which one your run used, and do not convert a raw per-contract fee component into an effective percentage of stake unless you show the arithmetic. Note also that historical backtesting is a different model from forward paper, so a manifest should say which engine produced the artifact rather than implying they fill identically.
Distinguish the kinds of numbers you report
Under outputs, label every headline figure by what it actually is. Marked value, settlement claim, credited cash, and hypothetical executable proceeds are four different things, and collapsing them is how a paper number gets mistaken for a realized one. A mark is what the valuation model says a position is worth right now. Executable proceeds are what you might get if you could actually sell, which a no-order paper run never tested.
Keep the same discipline with binary payouts. Ordinary yes/no contracts resolve to a fixed amount, but do not assume every executable yes and no offer sums to a dollar, or that scalar and exceptional contracts behave like the simple case. If your valuation rule assumed one-dollar complementarity, that assumption is a manifest line, not a law.
A minimal manifest shape
The following is an illustrative, hand-written example with invented values to show structure and units. It is not a captured run and not a vendor output.
{
"strategy": {
"class": "SimpleFade",
"source_sha256": "<hash of strategy.py>",
"sdk": "bangertrades==<pinned>",
"python_min": "3.11"
},
"inputs": {
"market_ticker": "<exact current ticker>",
"data_files": [{"name": "ticks.parquet", "sha256": "<hash>"}]
},
"parameters": {
"fade_threshold": "0.92", // probability, Decimal-from-string
"size": "25" // USD notional
},
"models": {
"engine": "forward-paper | historical-backtest",
"fill": "resting-assumed at limit; volume-capped qty",
"fee": "packaged Kalshi helper (round up to cent)",
"valuation": "mark; note missing-quote fallbacks"
},
"environment": {"os": "<os>", "python": "<x.y.z>", "tz": "UTC"},
"outputs": {
"artifact_sha256": "<hash>",
"ending_mark_usd": "<value>", // marked value, not credited cash
"note": "no-order observer unless stated"
},
"unknowns": [
"ticks with absent bid/ask and any price fallback taken",
"queue position not modeled",
"exact venue fee rounding not reproduced"
]
}Fill the hashes by hand with your platform's SHA-256 tool and the pinned version with whatever you actually installed. The values shown are placeholders.
What a collaborator actually needs
Strip it to the bone and a reproducer needs four things from you: the exact strategy version and its hash, the hashed input data plus the precise market ticker, the full parameter set with units, and the named fill, fee, and valuation models. Everything else in the manifest exists to explain discrepancies when those four are not enough, which with live-data paper runs is often. If the data stream was not identical, say so; a forward-paper run against moving market data is not guaranteed to be bit-for-bit repeatable, and the manifest should admit that rather than promise it.
The honest version of a manifest ends with its unknowns section non-empty. That is a feature. A result that lists what it could not pin is more trustworthy than one that implies it pinned everything.
For the current SDK contract, interfaces, and CLI behavior, start at the Banger docs. If you want to try building and inspecting paper research artifacts yourself, you can explore the paper-only beta via sign-up. It runs against current market data without venue keys, and it will not promise you fills or returns.