Add revenue usage reconciliation#103
Open
Arthurescc wants to merge 2 commits into
Open
Conversation
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.
Issue
Closes #20
@algora-pbc /claim #20
Summary
Adds a focused revenue usage reconciliation module for issue #20. This is distinct from the existing billing/ledger/entitlement submissions: it validates whether subscription quotas, top-ups, compute usage, invoice totals, and analytics licensing exports reconcile cleanly before a billing cycle is closed.
Demo
revenue-usage-reconciliation/docs/demo.gifrevenue-usage-reconciliation/docs/demo-transcript.mdcd revenue-usage-reconciliation && npm run demoThe CLI demo shows one clean lab account, one undercharged institution, one unsafe analytics export, high-risk account reporting, and a stable audit hash.
Acceptance criteria mapping
Detailed mapping:
revenue-usage-reconciliation/docs/issue-20-requirement-map.mdVerification
Local results:
npm run checkpassednpm testpassed: 7 revenue reconciliation testsnpm run demoproducedneeds-revenue-ops-review, anomaly count 2, and audit hash0a6048212d3a7a4bfd089d785abb47846b2181a37845d43dae3cb20ee45db8cbgit diff --check origin/main...HEADpassedAI-Assisted Disclosure
This contribution was produced with AI assistance and manually reviewed/verified before submission.