Repository navigation
feat(compliance): add deterministic audit report builder - #203
Open
woahwhattheheck wants to merge 18 commits into
Open
woahwhattheheck wants to merge 18 commits into
woahwhattheheck wants to merge 18 commits into
Conversation
6 tasks
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.
Closes #40
Summary
buildComplianceAuditReport(...)andclient.compliance.buildAuditReport(...)pass|warn|fail|unknownprotocol|sdk|operatorinstead of emitting impossible source valuesBoundaries
The builder performs no RPC calls and does not discover or independently verify evidence. It summarizes caller-supplied protocol observations only. A report is not a legal, financial, regulatory, KYC, AML, or transfer-eligibility determination.
Overall status precedence is
fail > unknown > warn > pass. Non-unknownfindings require known evidence references. Findings/evidence are normalized into stable order so the same logical input produces deterministic report structure.Current carrier
fa9d7c0d904029f574a63134d9f326abd657a17169fff2c7e8c6fe801428fc1bb71d064c5c94949cAcceptance criteria traceability
src/compliance-audit.ts,src/compliance.tsComplianceAuditInputErrorstable codesdocs/compliance-audit-report.mdtests/compliance-audit.test.tsFocused evidence and limits
Current provider readback confirms the source guard accepts only
protocol,sdk, oroperator, raises stableINVALID_EVIDENCE_SOURCEfor other runtime values, and retainsINVALID_STATUSfor unsupported runtime statuses. The focused regression suppliesexternal-registryas an untyped source and requires the stable rejection.Exact current blobs:
src/compliance-audit.ts:4ae06d3a6aaae8f56026a0796d147a508022c912tests/compliance-audit.test.ts:369f103c809e6926c7c4b5a6bf128f06cf5ca6b3docs/compliance-audit-report.md:a615eeeb6fea20967a8df269a5769b9821298334No broad local suite, build, hosted-CI-green result, bounty award, invoice, or payout is claimed by this metadata closeout.
Compensation request
Claimant and payee: @woahwhattheheck. This completed contribution is submitted through the issue's GrantFox route. Please confirm assignment/acceptance, the applicable payable amount, payout method, and timing. No award, invoice, or payment is claimed received.