Risk score methodology

This methodology page documents the deterministic score used on TSIC leaf pages. The score is calculated during the build and never by a live prompt or client-side model. ## Formula - `score = round((factors_passed / factors_total_excluding_na) * 10)` - `n/a` factors are excluded from the denominator. - If every factor is n/a, the block is hidden. ## Method version - `1.0` - Calculated on: `2026-05-05` ## Seven factors - **Verified official source**: Checks whether the code is present in the official NSO TSIC workbook used in this build. Current workbook SHA-256: 8af4ddb63f5e. - **International crosswalk**: Checks whether the code links to the official UNSD ISIC Rev.4 ↔ ISIC Rev.3.1 correspondence tables and keeps the published class-level mapping in the imported JSON. - **Previous-edition migration**: Checks whether the code has a predecessor in the DBD TSIC 2544 ↔ TSIC 2552 mapping book extracted from the official PDF. - **Complete hierarchy**: Checks that all parent hierarchy levels exist in the imported TSIC tree. - **Size or threshold documented**: Checks whether a code-specific threshold dataset was mapped to the code. - **Trade or export match**: Checks whether the code has at least one linked customs or HS mapping in the imported data. - **Legacy crosswalk**: Checks whether the code has a legacy national mapping in the DBD TSIC 2544 ↔ TSIC 2552 book, separate from the migration factor label. ## Source documents - [NSO TSIC workbook](https://gdcatalognhic.nha.co.th/dataset/0210_12_0004/resource/21be726c-d427-4c46-8996-362c7ce9c95f) `8af4ddb63f5e` - [UNSD ISIC Rev.4 -> Rev.3.1](https://unstats.un.org/unsd/classifications/Econ/tables/ISIC/ISIC4_ISIC31/ISIC4_ISIC31.txt) `4d163e67242c` - [UNSD ISIC Rev.3.1 -> Rev.4](https://unstats.un.org/unsd/classifications/Econ/tables/ISIC/ISIC31_ISIC4/ISIC31_ISIC4.txt) `5edbf40aa5e7` - [DBD TSIC 2544 -> 2552 mapping book](https://tsic.dbd.go.th/assets/book_business_man.pdf) `c2caaefc7a4b` ## Current implementation note - This Thailand build uses only imported official files that already exist in the project. Missing files become n/a, not fail. - The score is not a legal opinion or a regulator rating. It is a transparency layer over the imported data coverage.