Skip to content

Comments

feat: Implement Dynamic Supply Chain Risk & Predictive Insurance #1590

Merged
omroy07 merged 1 commit intoomroy07:mainfrom
SatyamPandey-07:feature/dynamic-insurance-1557
Feb 20, 2026
Merged

feat: Implement Dynamic Supply Chain Risk & Predictive Insurance #1590
omroy07 merged 1 commit intoomroy07:mainfrom
SatyamPandey-07:feature/dynamic-insurance-1557

Conversation

@SatyamPandey-07
Copy link
Contributor

closes #1557
Key Features Implemented:

Real-Time Risk Orchestration (
RiskAdjustmentService
):
Implemented an "Actuarial Flux" engine that correlates live
WeatherData
and
SupplyBatch
telemetry with insurance premiums.
Recursive Sustainability Check: The system looks back at
SoilTest
history and
IrrigationZone
performance to grant "Sustainability Premium Discounts" (up to 25%) for healthy farming practices.
Dynamic Premium & Policy Lifecycle:
Created
DynamicPremiumLog
and
RiskFactorSnapshot
models to track how premiums evolve over time.
Policy Suspension: Implemented a "Dual-Lock" state where policies are automatically suspended if logistics telemetry (e.g., temperature anomalies during transit) indicates the produce is at high risk, protecting insurers from avoidable losses.
Weather-Driven Triggers:
Added
RiskTrigger
thresholds to the
Weather
module. When extreme conditions (heat/rainfall) are detected, the
WeatherService
automatically notifies the risk engine to recalculate premiums for affected farms in real-time.
Forensic Financial Auditing:
Enhanced
AuditLog
with is_financial and financial_impact fields to ensure every automated premium adjustment is strictly logged for financial compliance and transparency.
Predictive API & Background Orchestration:
Exposed /api/v1/insurance/policies//risk-visibility and /premium-audit endpoints for farmers and insurers to see the "why" behind premium changes.
Added a 6-hourly Celery task (tasks.insurance_risk_recalc) for systemic risk recalculation across all active policies.

@vercel
Copy link

vercel bot commented Feb 20, 2026

@SatyamPandey-07 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@omroy07 omroy07 merged commit 80bf3f1 into omroy07:main Feb 20, 2026
2 of 6 checks passed
@github-actions
Copy link

🎉 Congrats @SatyamPandey-07 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamic Supply Chain Risk & Predictive Insurance Adjuster

2 participants