Description
Provide an endpoint that evaluates risk policies on a proposed borrower input and returns an explainable decision (rules fired, score components) without persisting anything. Useful for internal tooling and support workflows.
Requirements and context
- Must be secure, tested, and documented.
- Must be admin-only unless explicitly approved for public use.
Suggested execution
git checkout -b feature/risk-policy-preview
Implement changes
- Add route + schema and wire into policy engine/risk service.
- Tests for rule explanations and stable codes.
- Update OpenAPI and docs.
Test and commit
Example commit message
feat(risk): risk policy preview endpoint with explainable output
Guidelines
Description
Provide an endpoint that evaluates risk policies on a proposed borrower input and returns an explainable decision (rules fired, score components) without persisting anything. Useful for internal tooling and support workflows.
Requirements and context
Suggested execution
Implement changes
Test and commit
npm testExample commit message
Guidelines