docs: Missão 3 Bloco B — read-only correlation analysis for emitted PIS/COFINS CST

New script (scripts/blocoB_pis_cofins_source.py) and evidence artifact
(docs/runs/BLOCOB_PIS_COFINS_SOURCE_V1.json): tests whether NCM, CODGRUPO, CFOP,
CSOSN or GRUPO_ICMS determine the CST_PIS_COFINS value emitted in NFCE_ITENS,
across all 5 installations. Read-only; no Firebird write path exists in this script.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
gti
2026-09-28 09:50:36 -03:00
co-authored by Claude Sonnet 5
parent e935ed61d5
commit 9fce13881e
2 changed files with 144 additions and 0 deletions
@@ -0,0 +1,63 @@
{
"GTI": {
"name": "GTI",
"items_total": 34946,
"items_cst_filled": 3336,
"determinism_NCM": {
"distinct_keys": 10,
"items_covered": 3336,
"items_with_single_cst_for_key": 3336,
"reproduction_rate_pct": 100.0
},
"determinism_CODGRUPO": {
"distinct_keys": 13,
"items_covered": 3336,
"items_with_single_cst_for_key": 3336,
"reproduction_rate_pct": 100.0
},
"determinism_CFOP": {
"distinct_keys": 2,
"items_covered": 3336,
"items_with_single_cst_for_key": 3336,
"reproduction_rate_pct": 100.0
},
"determinism_CSOSN": {
"distinct_keys": 2,
"items_covered": 3336,
"items_with_single_cst_for_key": 3336,
"reproduction_rate_pct": 100.0
},
"determinism_GRUPO_ICMS": {
"distinct_keys": 1,
"items_covered": 3336,
"items_with_single_cst_for_key": 3336,
"reproduction_rate_pct": 100.0
},
"aliquota_filled_but_cst_blank": 1332,
"cst_filled_but_aliquota_null": 0
},
"CONSTRUCAO": {
"name": "CONSTRUCAO",
"items_total": 28934,
"items_cst_filled": 0,
"conclusion": "NAO_APLICAVEL_SEM_DADOS_PARA_CORRELACIONAR"
},
"MMMODAS": {
"name": "MMMODAS",
"items_total": 26067,
"items_cst_filled": 0,
"conclusion": "NAO_APLICAVEL_SEM_DADOS_PARA_CORRELACIONAR"
},
"RINCAO": {
"name": "RINCAO",
"items_total": 224355,
"items_cst_filled": 0,
"conclusion": "NAO_APLICAVEL_SEM_DADOS_PARA_CORRELACIONAR"
},
"UNIAO": {
"name": "UNIAO",
"items_total": 121266,
"items_cst_filled": 0,
"conclusion": "NAO_APLICAVEL_SEM_DADOS_PARA_CORRELACIONAR"
}
}