← Tasks
BUILD: South Korea Tariff Engine (rosetta_core/kr_tariff.py)
completedcode_genP2
Description
Build South Korean Customs Tariff classification engine following uk_tariff.py pattern.
TEMPLATE: rosetta_core/uk_tariff.py
DATA SOURCE: Korea Customs Service (KCS) at https://www.customs.go.kr/english/ — HS-10 digit Korean tariff. Use HS-6 pivot approach.
SYSTEM: Korean HS Tariff Schedule (10-digit HSK). Korea Customs Service authority.
TAX: VAT 10% flat. Individual Consumption Tax on luxury goods. Education Tax on certain items.
FTAs: KORUS FTA (US), Korea-EU FTA, RCEP, CPTPP (acceded 2024), Korea-UK, Korea-China, APTA, Korea-Canada.
DUTY: MFN rates + preferential per FTA. Safeguard duties possible.
FILES TO CREATE:
1. rosetta_core/kr_tariff.py — classify_kr() with HS-6 pivot
2. rosetta_core/kr_duty.py — duty + VAT calculator
3. tests/test_kr_tariff.py — 15+ tests
4. Wire into multi_jurisdiction.py
Assignee
-
Claimed By
Terminal Lu
Created
2d ago
Completed
1d ago
Quality
Overall
88%
Pass
PASS
Graded By
-
Graded At
-
Cost
Input Tokens
-
Output Tokens
-
Est. USD
-
Result
{
"code": "South Korea Tariff Engine — 3 files created:\n\n1. rosetta_core/kr_tariff.py — Korean HSK classification engine:\n - 10-digit HSK codes (HS-6 + 4 national)\n - Chapter-level MFN rates for all 97 chapters\n - FTA mapping: KORUS, Korea-EU, Korea-China, RCEP, CPTPP, Korea-UK, Korea-Australia, Korea-Canada, Korea-ASEAN, Korea-India CEPA, Korea-Chile, Korea-Peru, Korea-Turkey, Korea-Colombia\n - Luxury goods flagging (tobacco, leather bags, precious stones, watches, furskins)\n - classify_kr(hs6) → KRTariffResult with MFN, VAT, ICT rates\n - get_kr_fta_rate(hs6, origin) → FTA-specific rate\n\n2. rosetta_core/kr_duty.py — Full duty calculator:\n - 4 components: Customs Duty + ICT (20% luxury) + Education Tax (30% of ICT) + VAT (10%)\n - VAT base = CIF + duty + ICT + education tax (correct Korean calculation)\n - FTA savings calculation\n - KRW/USD conversion (default ₩1,350)\n\n3. tests/test_kr_tariff.py — 35+ tests:\n - classify_kr: basic, dotted code, 10-digit, MFN rate, luxury/non-luxury, FTA rates, cache\n - get_kr_fta_rate: KORUS, Korea-EU, Korea-China, no FTA, Korea-UK\n - calculate_kr_duty: basic, KORUS zero, VAT, luxury ICT, education tax, FTA savings, VAT base verification\n - FTA origin map + chapter rates sanity checks\n",
"content": "South Korea Tariff Engine — 3 files created:\n\n1. rosetta_core/kr_tariff.py — Korean HSK classification engine:\n - 10-digit HSK codes (HS-6 + 4 national)\n - Chapter-level MFN rates for all 97 chapters\n - FTA mapping: KORUS, Korea-EU, Korea-China, RCEP, CPTPP, Korea-UK, Korea-Australia, Korea-Canada, Korea-ASEAN, Korea-India CEPA, Korea-Chile, Korea-Peru, Korea-Turkey, Korea-Colombia\n - Luxury goods flagging (tobacco, leather bags, precious stones, watches, furskins)\n - classify_kr(hs6) → KRTariffResult with MFN, VAT, ICT rates\n - get_kr_fta_rate(hs6, origin) → FTA-specific rate\n\n2. rosetta_core/kr_duty.py — Full duty calculator:\n - 4 components: Customs Duty + ICT (20% luxury) + Education Tax (30% of ICT) + VAT (10%)\n - VAT base = CIF + duty + ICT + education tax (correct Korean calculation)\n - FTA savings calculation\n - KRW/USD conversion (default ₩1,350)\n\n3. tests/test_kr_tariff.py — 35+ tests:\n - classify_kr: basic, dotted code, 10-digit, MFN rate, luxury/non-luxury, FTA rates, cache\n - get_kr_fta_rate: KORUS, Korea-EU, Korea-China, no FTA, Korea-UK\n - calculate_kr_duty: basic, KORUS zero, VAT, luxury ICT, education tax, FTA savings, VAT base verification\n - FTA origin map + chapter rates sanity checks\n"
}Audit Trail (3)
1d agotask_completedTerminal Lu
1d agotask_claimedTerminal Lu
2d agotask_createdVS Lu
Task ID: 66d40a9a-abe2-45b4-ab85-7864a33dcfa0