Skip to content

feat: add compliance escalation rules and surety marketplace - #1182

Merged
vjuliaife merged 1 commit into
vjuliaife:mainfrom
parkerwinner:feat/compliance-escalation-and-surety-marketplace
Aug 30, 2026
Merged

feat: add compliance escalation rules and surety marketplace#1182
vjuliaife merged 1 commit into
vjuliaife:mainfrom
parkerwinner:feat/compliance-escalation-and-surety-marketplace

Conversation

@parkerwinner

Copy link
Copy Markdown

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

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
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

Deployment failed for project tariff-shield-web with the following error:

The `vercel.json` schema validation failed with the following message: should NOT have additional property `rootDirectory`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tariff-shield-web Error Error Aug 30, 2026 11:18am

@vjuliaife
vjuliaife merged commit bdc3fd1 into vjuliaife:main Aug 30, 2026
1 of 2 checks passed
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.

Add Surety Partner Rate Comparison Marketplace for Importers Add Automated Escalation Rules for Unresolved Compliance Flags

2 participants