| name | compliance-management |
| description | When the user wants to manage regulatory compliance, ensure supply chain adherence to standards, or navigate trade regulations. Also use when the user mentions "regulatory compliance," "trade compliance," "customs," "import/export regulations," "certification management," "audit management," "REACH," "RoHS," "conflict minerals," "country of origin," or "trade restrictions." For sustainability compliance, see sustainable-sourcing. For quality standards, see quality-management. |
Compliance Management
You are an expert in supply chain compliance and regulatory management. Your goal is to help organizations navigate complex regulatory requirements, ensure adherence to standards, manage certifications, and mitigate compliance risks across global supply chains.
Initial Assessment
Before implementing compliance management, understand:
-
Regulatory Landscape
- What industries and products are in scope?
- Geographic regions of operation?
- Key regulatory frameworks applicable?
- Recent compliance issues or violations?
-
Compliance Maturity
- Current compliance processes and systems?
- Dedicated compliance resources?
- Supplier compliance requirements?
- Audit and monitoring frequency?
-
Risk Exposure
- Penalties for non-compliance?
- Business disruption risks?
- Reputational impact?
- Customer requirements and audits?
-
Supply Chain Complexity
- Number of suppliers and countries?
- Product complexity and BOM depth?
- Regulatory classification of products?
- Import/export volumes?
Regulatory Compliance Framework
Key Regulatory Areas
1. Trade Compliance
- Import/export regulations
- Customs classification (HS codes)
- Country of origin determination
- Free Trade Agreements (FTA)
- Trade sanctions and embargoes
- Export controls (EAR, ITAR)
2. Product Safety & Restrictions
- REACH (EU chemicals)
- RoHS (Restriction of Hazardous Substances)
- Prop 65 (California)
- TSCA (US chemical substances)
- FDA (food, drugs, medical devices)
- CPSC (Consumer Product Safety)
3. Environmental Compliance
- WEEE (Waste Electrical Equipment)
- Packaging regulations
- Carbon reporting requirements
- Waste management regulations
- Environmental permits
4. Social & Ethical Compliance
- Conflict minerals (3TG: tin, tantalum, tungsten, gold)
- Forced labor (Uyghur Forced Labor Prevention Act)
- Child labor prohibitions
- Modern Slavery Acts (UK, Australia)
- Fair Labor Standards
- Human rights due diligence
5. Data & Privacy
- GDPR (EU data protection)
- CCPA (California privacy)
- Data localization requirements
- Cross-border data transfers
6. Industry-Specific
- Pharmaceutical (GMP, GDP)
- Automotive (IATF 16949)
- Aerospace (AS9100)
- Food safety (FSMA, HACCP)
- Medical devices (ISO 13485, FDA QSR)
Compliance Management System
Regulatory Database & Tracking
import pandas as pd
import numpy as np
from datetime import datetime, timedelta
class ComplianceManager:
"""Comprehensive compliance management system"""
def __init__(self):
self.regulations = {}
self.products = {}
self.suppliers = {}
self.certifications = []
self.compliance_violations = []
def add_regulation(self, reg_id, regulation_name, region, category,
effective_date, review_frequency_days=365):
"""
Add regulation to track
category: 'trade', 'product_safety', 'environmental', 'social', 'data'
"""
self.regulations[reg_id] = {
'regulation_name': regulation_name,
'region': region,
'category': category,
'effective_date': effective_date,
'review_frequency_days': review_frequency_days,
'last_review_date': None,
'next_review_date': None,
'compliance_status': 'Pending Review'
}
def add_product(self, product_id, product_name, hs_code, materials,
target_markets, applicable_regulations):
"""
Add product and its compliance requirements
materials: list of material components
applicable_regulations: list of regulation IDs that apply
"""
.products[product_id] = {
: product_name,
: hs_code,
: materials,
: target_markets,
: applicable_regulations,
: {},
: [],
: []
}
reg_id applicable_regulations:
.products[product_id][][reg_id] =
():
product_id .products:
product = .products[product_id]
compliance_assessment = {
: product_id,
: product[],
: ,
: [],
: [],
: []
}
reg_id product[]:
reg_id .regulations:
regulation = .regulations[reg_id]
gap_found =
regulation[] == :
._check_restricted_substances(product):
gap_found =
compliance_assessment[].append({
: regulation[],
: ,
:
})
compliance_assessment[].append({
: ,
: ,
:
})
regulation[] == :
product[]:
gap_found =
compliance_assessment[].append({
: regulation[],
: ,
:
})
compliance_assessment[].append({
: ,
: ,
:
})
status = gap_found
product[][reg_id] = status
compliance_assessment[].append({
: reg_id,
: regulation[],
: status
})
gap_found:
compliance_assessment[] =
compliance_assessment
():
restricted_materials = [, , , ]
material product[]:
material.lower() restricted_materials:
():
.suppliers[supplier_id] = {
: supplier_name,
: country,
: certifications,
: audit_date,
: ._calculate_next_audit(audit_date),
: ,
: ,
: []
}
():
last_audit_date:
(last_audit_date, ):
last_audit_date = datetime.strptime(last_audit_date, )
last_audit_date + timedelta(days=frequency_days)
():
.certifications.append({
: entity_id,
: entity_type,
: cert_name,
: cert_number,
: issue_date,
: expiry_date,
: status,
: ._calculate_days_to_expiry(expiry_date)
})
():
(expiry_date, ):
expiry_date = datetime.strptime(expiry_date, )
today = datetime.now()
days = (expiry_date - today).days
days
():
expiring = []
cert .certifications:
cert[] <= days_threshold cert[] >= :
urgency = cert[] <= cert[] <=
expiring.append({
: cert[],
: cert[],
: cert[],
: cert[],
: cert[],
: urgency
})
expiring.sort(key= x: x[])
pd.DataFrame(expiring) expiring pd.DataFrame()
():
total_products = (.products)
compliant_products = (
p .products.values()
(status == status p[].values())
)
total_suppliers = (.suppliers)
total_certs = (.certifications)
active_certs = ( c .certifications c[] == )
expiring_soon = ( c .certifications <= c[] <= )
expired = ( c .certifications c[] < )
{
: {
: total_products,
: compliant_products,
: (compliant_products / total_products * , ) total_products >
},
: {
: total_suppliers
},
: {
: total_certs,
: active_certs,
: expiring_soon,
: expired
},
: {
: (.compliance_violations)
}
}
compliance_mgr = ComplianceManager()
compliance_mgr.add_regulation(
,
,
region=,
category=,
effective_date=
)
compliance_mgr.add_regulation(
,
,
region=,
category=,
effective_date=
)
compliance_mgr.add_regulation(
,
,
region=,
category=,
effective_date=
)
compliance_mgr.add_product(
,
,
hs_code=,
materials=[, , ],
target_markets=[, , ],
applicable_regulations=[, ]
)
compliance_mgr.add_product(
,
,
hs_code=,
materials=[, , ],
target_markets=[],
applicable_regulations=[]
)
assessment1 = compliance_mgr.assess_product_compliance()
()
()
()
assessment2 = compliance_mgr.assess_product_compliance()
()
()
assessment2[]:
()
gap assessment2[]:
()
compliance_mgr.add_supplier(
,
,
country=,
certifications=[, ],
audit_date=
)
compliance_mgr.track_certification(
,
,
,
,
issue_date=,
expiry_date=,
status=
)
compliance_mgr.track_certification(
,
,
,
,
issue_date=,
expiry_date=,
status=
)
compliance_mgr.track_certification(
,
,
,
,
issue_date=,
expiry_date=,
status=
)
expiring = compliance_mgr.get_expiring_certifications(days_threshold=)
()
expiring.empty:
(expiring[[, , , ]])
:
()
dashboard = compliance_mgr.generate_compliance_dashboard()
()
()
()
Trade Compliance
HS Code Classification
class TradeComplianceManager:
"""Manage trade compliance including HS codes, duties, and regulations"""
def __init__(self):
self.hs_code_database = self._load_hs_codes()
self.duty_rates = {}
self.fta_eligibility = {}
def _load_hs_codes(self):
"""Load HS code database (simplified)"""
return {
'8543.70': {'description': 'Other electrical machines with individual functions',
'typical_duty_us': 0.028},
'8537.10': {'description': 'Control panels with voltage ≤1000V',
'typical_duty_us': 0.026},
'8471.30': {'description': 'Portable computers',
'typical_duty_us': 0.000},
}
def classify_product(self, product_description, material_composition,
intended_use, suggested_hs_code=None):
"""
Assist with HS code classification
Returns classification with confidence level
"""
classification = {
'product_description': product_description,
'suggested_hs_code': suggested_hs_code,
: ,
: [],
:
}
suggested_hs_code:
suggested_hs_code[:] .hs_code_database:
classification[] =
classification[].append(
)
:
classification[] =
classification[] =
classification[].append(
)
(material_composition) > :
classification[] =
classification[].append(
)
classification
():
insurance_cost :
insurance_cost = product_cost *
customs_value = product_cost + shipping_cost + insurance_cost
hs_prefix = hs_code[:]
duty_rate = .hs_code_database.get(hs_prefix, {}).get(, )
duty_amount = customs_value * duty_rate
mpf = customs_value *
mpf = (, (mpf, ))
hmf = customs_value * dest_country ==
total_landed_cost = customs_value + duty_amount + mpf + hmf
{
: (product_cost, ),
: (shipping_cost, ),
: (insurance_cost, ),
: (customs_value, ),
: (duty_rate * , ),
: (duty_amount, ),
: (mpf, ),
: (hmf, ),
: (total_landed_cost, ),
: (total_landed_cost / product_cost * , )
}
():
fta_agreements = {
(, ): ,
(, ): ,
(, ): ,
(, ): ,
(, ): ,
(, ): ,
}
agreement = fta_agreements.get((origin_country, dest_country))
agreement:
eligible =
{
: eligible,
: agreement,
: eligible ,
: [, ],
:
}
:
{
: ,
: ,
:
}
():
denied_parties_sample = [, , ]
is_denied = party_name denied_parties_sample
screening_result = {
: party_name,
: country,
: is_denied ,
: [, , ],
: datetime.now().strftime(),
: is_denied
}
is_denied:
screening_result[] =
screening_result[] =
screening_result
trade_mgr = TradeComplianceManager()
classification = trade_mgr.classify_product(
product_description=,
material_composition=[, , ],
intended_use=,
suggested_hs_code=
)
()
()
()
()
landed_cost = trade_mgr.calculate_landed_cost(
product_cost=,
hs_code=,
origin_country=,
dest_country=,
shipping_cost=,
insurance_cost=
)
()
()
()
()
()
()
fta = trade_mgr.check_fta_eligibility(
hs_code=,
origin_country=,
dest_country=
)
()
()
()
screening = trade_mgr.screen_denied_parties(, )
()
()
()
Tools & Libraries
Python Libraries
Compliance Management:
pandas: Data management
numpy: Numerical computations
sqlalchemy: Database connections
Document Management:
PyPDF2: PDF processing
python-docx: Word document handling
openpyxl: Excel file handling
Data Validation:
cerberus: Schema validation
pydantic: Data validation
jsonschema: JSON validation
Automation:
schedule: Scheduled tasks
APScheduler: Advanced scheduling
celery: Distributed task queue
Commercial Software
Compliance Management:
- SAP GTS (Global Trade Services): Trade compliance
- Amber Road (E2open): Global trade management
- Descartes: Customs and compliance
- BluJay Solutions: Trade compliance
- Integration Point: Trade compliance automation
Product Compliance:
- Assent Compliance: Supply chain compliance
- Coupa Supplier Compliance: Supplier management
- EcoVadis: Sustainability ratings
- Sphera: Product stewardship
Regulatory Intelligence:
- UL Compliance: Regulatory database
- Enhesa: Global regulatory intelligence
- Intertek Inlight: Compliance intelligence
- Verisk 3E: Environmental compliance
Document Management:
- Ivalua: Supplier compliance documents
- TraceLink: Serialization and compliance
- MasterControl: Document control systems
Common Challenges & Solutions
Challenge: Keeping Up with Regulatory Changes
Problem:
- Regulations constantly evolving
- Multiple jurisdictions
- Resource constraints
Solutions:
- Subscribe to regulatory intelligence services
- Automated alerts for regulation changes
- Industry associations and working groups
- Dedicated compliance team or specialist
- Annual compliance calendar
- Regulatory change impact assessments
Challenge: Supplier Compliance Verification
Problem:
- Suppliers lack compliance knowledge
- Inconsistent documentation
- Difficult to verify claims
Solutions:
- Supplier compliance training programs
- Standardized compliance questionnaires
- Third-party audits and certifications
- Blockchain for supply chain traceability
- Contractual compliance requirements
- Risk-based supplier segmentation
Challenge: Complex Product Compliance
Problem:
- Products contain hundreds of components
- Multi-tier supply chain visibility
- Conflicting requirements across markets
Solutions:
- Bill of Materials (BOM) management system
- Material declaration databases (IMDS, BOMcheck)
- Product lifecycle management (PLM) integration
- Design for compliance from start
- Restricted substance lists (RSL)
- Market-specific product variants
Challenge: Documentation Management
Problem:
- Volume of compliance documents
- Expiring certifications
- Audit trail requirements
Solutions:
- Document management system (DMS)
- Automated expiration alerts
- Digital document workflows
- Version control and audit logs
- Centralized compliance repository
- Automated reminders for renewals
Challenge: Trade Compliance Complexity
Problem:
- Tariff classification disputes
- Rules of origin determination
- Denied party screening
- Export control requirements
Solutions:
- Automated classification tools
- Binding ruling requests for critical products
- Real-time denied party screening
- Export license management system
- FTA qualification analysis
- Trade compliance audits
Challenge: Demonstrating Compliance to Customers
Problem:
- Customer audits and questionnaires
- Different requirements per customer
- Proving due diligence
Solutions:
- Centralized compliance portal for customers
- Standard compliance certificates
- Third-party certifications and audits
- Transparency and documentation
- Compliance dashboard with real-time data
- Proactive compliance reporting
Output Format
Compliance Report
Executive Summary:
- Overall compliance status
- Critical gaps and violations
- Regulatory changes impacting business
- Required actions and timeline
Regulatory Compliance Status:
| Regulation | Region | Category | Status | Last Review | Next Review | Gaps |
|---|
| RoHS | EU | Product Safety | Compliant | 2025-11-15 | 2026-11-15 | None |
| REACH | EU | Chemicals | Partial | 2025-10-01 | 2026-04-01 | 2 SVHCs |
| ITAR | US | Export Control | Compliant | 2025-09-20 | 2026-09-20 | None |
| Conflict Minerals | Global | Social | In Progress | 2025-12-01 | 2026-12-01 | Pending supplier declarations |
Product Compliance:
| Product | Markets | Regulations | Status | Certifications | Gaps |
|---|
| Widget A | EU, US | RoHS, FCC | Compliant | CE, FCC | None |
| Widget B | EU | RoHS, REACH | Non-Compliant | CE (expired) | Lead content, expired cert |
| Controller X | US, CN | FCC, CCC | Partial | FCC | CCC pending |
Supplier Compliance:
| Supplier | Country | Certifications | Last Audit | Next Audit | Score | Status |
|---|
| Supplier A | China | ISO9001, ISO14001 | 2025-06-15 | 2026-06-15 | 85/100 | ✓ Compliant |
| Supplier B | Vietnam | ISO9001 | 2024-08-20 | 2025-08-20 | 72/100 | ⚠ Audit due soon |
| Supplier C | Mexico | None | Never | TBD | N/A | ✗ Audit required |
Certification Tracker:
| Entity | Certification | Number | Issue Date | Expiry Date | Days to Expiry | Action Required |
|---|
| Product A | CE Mark | CE-2024-001 | 2024-01-10 | 2026-03-15 | 445 | None |
| Supplier X | ISO 9001 | ISO-12345 | 2022-06-15 | 2025-06-15 | 142 | Renewal in progress |
| Facility 1 | EPA Permit | EPA-XYZ-001 | 2023-01-01 | 2026-01-01 | 342 | None |
Action Items:
| Priority | Action | Owner | Due Date | Status |
|---|
| Critical | Renew ISO 9001 for Supplier X | Procurement | 2025-05-01 | In Progress |
| High | Complete conflict minerals survey | Supply Chain | 2026-01-31 | Not Started |
| High | Reformulate Product B to remove lead | R&D | 2026-03-31 | Planning |
| Medium | Conduct audit of Supplier C | Quality | 2026-02-28 | Scheduled |
Questions to Ask
If you need more context:
- What products and services are in scope?
- What markets/regions do you operate in?
- What regulatory frameworks apply to your industry?
- Have there been recent compliance issues or violations?
- What certifications are required for your products/suppliers?
- How many suppliers and countries in your supply chain?
- What import/export volumes and countries involved?
- Are there customer-specific compliance requirements?
- What compliance management systems are in place?
- What's the compliance team structure and resources?
Related Skills
- supplier-risk-management: For assessing compliance risks in suppliers
- quality-management: For quality standards and certifications
- sustainable-sourcing: For environmental and social compliance
- carbon-footprint-tracking: For carbon reporting compliance
- contract-management: For compliance terms in contracts
- procurement-optimization: For incorporating compliance in sourcing
- supplier-selection: For compliance criteria in supplier evaluation
- track-and-trace: For supply chain transparency and traceability