Skip to content

feat(devex): add the compliance service to the bruno api collection - #309

Merged
tiana-code merged 1 commit into
mainfrom
feat/E-09-compliance-bruno
Jun 19, 2026
Merged

feat(devex): add the compliance service to the bruno api collection#309
tiana-code merged 1 commit into
mainfrom
feat/E-09-compliance-bruno

Conversation

@tiana-code

Copy link
Copy Markdown
Owner

E-09 DevEx #303 (F-09.4 remainder) - add the compliance service to the Bruno API collection. The collection (from #237) covered ledger/payments/decision; compliance was built later and was the missing piece.

What

8 new api/collection/compliance/*.bru, mirroring the existing payments/ledger format (bearer from {{token}}, scopes documented per request):

  • Initiate KYC session (POST, Idempotency-Key, compliance:write), Get KYC session (GET, read)
  • Open case (POST, write), List cases (GET ?status=, read), Get case (GET, read), Claim / Resolve / Escalate case (POST, write)

Plus: environments/sandbox.bru gains complianceUrl (8083 placeholder), kycSessionId, caseId; README adds the compliance scopes row, the KYC-initiation idempotency note, and the compliance placeholder service.

Source-fidelity

Endpoints, methods and bodies verified against KycController/CaseController (CreateKycSessionRequest {subjectReference}, OpenCaseRequest {reference}); no invented fields. compliance/decision aren't in compose, so their URLs are documented standalone placeholders.

Gate chain

  • security-auditor (opus): PASS - no hardcoded tokens (all {{token}} from the empty env), gitleaks clean, clean-room clean, localhost placeholders only.
  • code-reviewer: CHANGES-REQUIRED, both findings declined with evidence - the "List cases duplicates ?status=" claim is disproven by the merged ledger/List accounts.bru which uses the identical url+params:query dual form (Bruno keeps them in sync, not additive); the "Open case no Idempotency-Key" is advisory and correctly mirrors the backend (case-open isn't idempotency-gated).
  • evaluator: PASS (0.93).
    Data-only collection (no code/CI); merge-gate is structural fidelity to the backend + the existing exemplar.

Closes #303

Extend the importable API collection with the KYC and case endpoints so
the compliance service is explorable alongside ledger, payments and
decision: initiate and read a KYC session, and open, list, read, claim,
resolve and escalate a case. Requests mirror the existing folders -
bearer from the environment, an Idempotency-Key on session initiation,
read and write scopes documented per request. The sandbox environment
gains a compliance base URL and the new resource id variables, and the
README is updated.

Closes #303
@tiana-code tiana-code added this to the v0.4.0 milestone Jun 19, 2026
@tiana-code
tiana-code merged commit c69e92f into main Jun 19, 2026
8 checks passed
@tiana-code
tiana-code deleted the feat/E-09-compliance-bruno branch June 19, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevEx: add the compliance service to the Bruno API collection

1 participant