Skip to content

Quarter Proofs 0.3.2

Choose a tag to compare

@github-actions github-actions released this 05 Dec 02:05
· 9 commits to main since this release
0753c13

Quarter Proofs 0.3.2, the first release from its own repository: did every Stripe payout reach the bank, what makes up each payout, and did your app process every webhook. Answers cite the lines in both files.

The first release from this repository, and the first with gross to net and webhooks.

  • Split out of the quarter monorepo into its own repository,
    with history. Quarter Proofs is the payout, gross-to-net and webhooks checks (python/quarter/proofs.py,
    the nickel jobs, and money.py / bizdays.py). No behaviour change in the split.
  • quarter proofs gross-to-net RECON.csv [PAYOUTS.csv] [BANK.csv] proves a payout gross to net: it reads a
    processor's itemized payout reconciliation report and, per payout, sorts its rows into charges, refunds, disputes,
    fees and other, adds them up, and answers whether they tie to the Payouts report's amount (ties, off with the
    rows' lines named, or not proved when there are no rows). Rows whose payout the report does not hold are listed
    apart, never dropped. Amounts stay in minor units with the currency's own exponent; a negative payout is a debit;
    no customer name, email or description reaches an output. Writes answers.csv, answers.json and a hash-chained
    receipts.jsonl. Also a Quarter Flows step (use = "gross_to_net") with a payout_off check. Exit 0, 1 or 2.
  • quarter proofs webhooks EVENTS LOG checks the processed-event log against the processor's event export:
    one answer per event (processed, pending, missed, at_risk, duplicate, out_of_order, unknown,
    not_proved), each citing the lines it rests on, with hash-chained receipts. It reads both files through
    quarter-ingest (reader kinds stripe-events and events-log), never over the network, and never writes an
    event's payload. Exit 0 when every event is processed or pending, 1 when any needs a look, 2 on a bad input or a
    --as-of before the files end.

Run it

Needs Python 3.9 or newer (standard library only) and quarter-ingest 0.3.2 (brew install quarterso/tap/quarter-ingest, or from quarterso/ingest). Unpack the archive, then:

QUARTER_INGEST_BIN="$(command -v quarter-ingest)" sh examples/run-all.sh
python3 -I python/bin/quarter-proofs payouts PAYOUTS.csv BANK.csv --out DIR

Verify the download

sha256sum -c SHA256SUMS
gh attestation verify quarter-proofs-v0.3.2.tar.gz --repo quarterso/proofs

Releases before 0.3.2 came from quarterso/quarter.