Add storage overage billing guard#321
Open
xiejesses wants to merge 1 commit into
Open
Conversation
8e981f2 to
b73aa2a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@algora-pbc /claim #20
Reviewer Path
storage-overage-billing-guard/requirements-map.mdfor issue coverage and scope boundaries.storage-overage-billing-guard/index.jsandstorage-overage-billing-guard/test.jsfor quota, charge, hold, and retention-conflict logic.storage-overage-billing-guard/reports/storage-overage-report.md,storage-overage-billing-guard/reports/summary.svg, andstorage-overage-billing-guard/reports/demo.mp4for the finance-review demo.Summary
Sponsor Outcome
The sponsor gets a narrow revenue-control slice for a concrete leakage path: storage usage is reconciled before invoice release. Clean overage becomes invoice-ready, questionable storage is held for ops review with explicit reasons, and protected data is separated from purge candidates.
Scope Boundaries
This is not another generic billing ledger, seat or renewal true-up, metering ledger, payment webhook validator, payment failover module, dispute guard, SLA credit calculator, royalty settlement, revenue forecast, FX reconciliation, procurement control, invoice acceptance gate, sanctions/export-control gate, consortium pricing gate, trial/promotion abuse guard, plan-proration module, or AI compute idempotency meter.
This slice focuses specifically on storage quota reconciliation and retention evidence before storage-related revenue reaches the invoice.
Validation
cd storage-overage-billing-guard && npm run checkcd storage-overage-billing-guard && npm testcd storage-overage-billing-guard && npm run demoffprobe -v error -show_entries format=duration,size -show_entries stream=codec_name,width,height -of default=noprint_wrappers=1 storage-overage-billing-guard/reports/demo.mp4git diff --checkDemo Artifacts
storage-overage-billing-guard/reports/demo.mp4- H.264, 960x540, 6 secondsstorage-overage-billing-guard/reports/summary.svgstorage-overage-billing-guard/reports/storage-overage-packet.jsonstorage-overage-billing-guard/reports/storage-overage-report.mdAI-assisted with OpenAI Codex; reviewed and locally verified before submission.