feat: add compliance escalation rules and surety marketplace - #1182
Merged
vjuliaife merged 1 commit intoAug 30, 2026
Merged
Conversation
Closes vjuliaife#1034 Closes vjuliaife#1036 Issue vjuliaife#1034: Automated Escalation Rules for Unresolved Compliance Flags - Added compliance_escalation_rules table to configure age thresholds - Added compliance_escalation_history for audit trail - Implemented automated job that runs every 15 minutes - Job checks unresolved flags against active rules - Escalated flags are reassigned with increased priority - Notifications sent to escalation targets - REST API endpoints for CRUD operations on escalation rules - GET /compliance/escalation-rules - list rules - POST /compliance/escalation-rules - create rule - PUT /compliance/escalation-rules/:id - update rule - DELETE /compliance/escalation-rules/:id - delete rule - GET /compliance/escalation-history/:flagId - view history Issue vjuliaife#1036: Surety Partner Rate Comparison Marketplace - Added surety_marketplace_partners table with rate terms - Marketplace lists participating surety partners - Importers can filter/compare by collateral ratio, coverage type, state - Partner selection routes into existing register_importer flow - Admin endpoints for managing partner listings - GET /surety-marketplace - browse partners (public) - GET /surety-marketplace/:id - partner details - POST /surety-marketplace/admin - create/update listing - GET /surety-marketplace/admin/my-listing - view own listing - PUT /surety-marketplace/admin/publish - toggle publish status - Clear disclaimers that rates are informational, not binding quotes Technical Implementation: - Database migration 009 adds all required tables and indexes - startComplianceEscalation() job integrated into main server - Routes registered in apps/api/src/index.ts - Documentation added in docs/compliance-escalation-and-marketplace.md - Priority escalation logic: low→medium→high→critical - Marketplace integrates with existing license verification system
|
Deployment failed for project tariff-shield-web with the following error: Learn More: https://vercel.com/docs/concepts/projects/project-configuration |
|
@parkerwinner Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 #1034 Closes #1036
Issue #1034: Automated Escalation Rules for Unresolved Compliance Flags
Added compliance_escalation_rules table to configure age thresholds
Added compliance_escalation_history for audit trail
Implemented automated job that runs every 15 minutes
Job checks unresolved flags against active rules
Escalated flags are reassigned with increased priority
Notifications sent to escalation targets
REST API endpoints for CRUD operations on escalation rules
GET /compliance/escalation-rules - list rules
POST /compliance/escalation-rules - create rule
PUT /compliance/escalation-rules/:id - update rule
DELETE /compliance/escalation-rules/:id - delete rule
GET /compliance/escalation-history/:flagId - view history
Issue #1036: Surety Partner Rate Comparison Marketplace
Added surety_marketplace_partners table with rate terms
Marketplace lists participating surety partners
Importers can filter/compare by collateral ratio, coverage type, state
Partner selection routes into existing register_importer flow
Admin endpoints for managing partner listings
GET /surety-marketplace - browse partners (public)
GET /surety-marketplace/:id - partner details
POST /surety-marketplace/admin - create/update listing
GET /surety-marketplace/admin/my-listing - view own listing
PUT /surety-marketplace/admin/publish - toggle publish status
Clear disclaimers that rates are informational, not binding quotes
Technical Implementation:
Database migration 009 adds all required tables and indexes
startComplianceEscalation() job integrated into main server
Routes registered in apps/api/src/index.ts
Documentation added in docs/compliance-escalation-and-marketplace.md
Priority escalation logic: low→medium→high→critical
Marketplace integrates with existing license verification system