feat(compliance): add the aml copilot and automated suspension ports - #282
Merged
Conversation
Define two interface-only, clean-room plug-in ports. AmlCopilot is an out-of-tree LLM assistant whose response is advisory guidance for a human reviewer, never authoritative, and the port carries no business prompt. AutomatedSuspensionPort suspends a subject on a caller-decided signal, encoding no rule for what that signal is; a replayed signal maps to a first-class already-suspended outcome so the port is idempotent. Both take opaque references and generic context, with no implementation, Spring, or PII. Closes #269
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.
E-04 Compliance #269 - two interface-only clean-room plug-in ports.
What
application/copilot):assist(CopilotRequest): CopilotResponse- an out-of-tree LLM assistant for AML case work. The contract is generative/non-deterministic and the response is advisory guidance for a human reviewer, never authoritative; the port encodes no business prompt.AmlCopilotExceptionfor technical failures.application/suspension):requestSuspension(SuspensionRequest): SuspensionResult(method name avoids the Kotlinsuspendkeyword) - suspends a subject on a caller-decided signal; the port encodes no rule for what the signal is (§5.1). Sealed resultSuspended/AlreadySuspended(idempotent replay, first-class) /Rejected(business refusal);AutomatedSuspensionExceptionfor technical failures.KycSession.MAX_SUBJECT_REFERENCE_LENGTH), generic context/reason, no PII. Reflection contract tests for both ports + all result variants + request guards.Clean-room (§5.2/§5.3)
No real LLM prompts/templates, AML rules/thresholds, provider names, or PII. Distinct from RuleSynthesizer (#174, decision-engine) - that synthesizes DSL; this assists a reviewer.
Gate chain
All local gates green; interface-only (no impl/Spring/LLM), application/** so domain jacoco gate unaffected.
Closes #269