Metadata-Version: 2.4
Name: vintagecheck
Version: 0.1.0
Summary: Point-in-time audits for backtests with explicit release lineage
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/Phasetensor/VintageCheck
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# VintageCheck

Audit the vintage used by a backtest against the release history available at each decision. Supply one release table and one decision table with the columns in examples/. Each decision identifies the vintage it actually used by series, period and used_available_at. Values alone cannot identify a vintage. Supply a complete history for the period being audited and explicit UTC offsets.

From the project root, run:

    python3 -m vintagecheck examples/releases.csv examples/decisions.csv --threshold 1.5
    python3 -m unittest discover -s tests -v

Python API: audit(releases, decisions, threshold) in vintagecheck accepts iterables of mappings. The rule buys when value > threshold. Times equal to the decision time are eligible. Use the actual feed availability time if ingestion latency matters. The report distinguishes future, current and older_available releases and gives the earliest future use as a one-based decision record number. Missing historical observations produce null signals.

The offline example uses annualized US real GDP growth for 2024 Q1 from the BEA [advance estimate](https://www.bea.gov/news/2024/gross-domestic-product-first-quarter-2024-advance-estimate) and [second estimate](https://www.bea.gov/news/2024/gross-domestic-product-first-quarter-2024-second-estimate-and-corporate-profits). Both releases were issued at 08:30 EDT. Decisions and threshold are synthetic. On May 1 the available 1.6% triggered a buy while the later 1.3% did not. On May 31 the second estimate was available.
