Implement G2A health exemptions in QA and reconcile L1 branch inventory

This commit is contained in:
2026-10-24 14:04:18 +02:00
parent 89ab288334
commit 675cf38f67
8 changed files with 363 additions and 8 deletions
@@ -4878,5 +4878,233 @@
"qa-recovered.png": "00a9deb00cbad607fc58fe2252ed96b385f7d2b3a1e9b749621a90faf096ffa6",
"qa-result.png": "350f12a8f2abd57c907eee2f93991e4ff06432afe3624dd08f089026f59edd2c"
}
},
"iva_l1_g2_health_qa_20261024": {
"status": "G2A_executable_demonstrated_QA;inventory_reconciled;L1_open;no_homologation_deployment",
"candidate": null,
"preserved_candidate": "5030116e",
"preserved_record": "89ab2883",
"reconciliation": {
"unit": "Existing matrix ID; functional branch is distinct from executable treatment, group and documentary dependency",
"original_total_IDs": 133,
"original_functional_branches": 132,
"documentary_dependency_IDs": [
"AUD-SIM-L1-P001"
],
"G1_accepted_QA_mapping": {
"AUD-SIM-L1-P017": "financial_stamp",
"AUD-SIM-L1-P018": "insurance_stamp",
"AUD-SIM-L1-P029": "public_waste",
"AUD-SIM-L1-P030": "public_funeral"
},
"after_G1": {
"QA_covered_functional": 4,
"pending_functional": 128,
"pending_documentary": 1,
"pending_IDs": 129
},
"G2A_new_QA_mapping": {
"AUD-SIM-L1-P003": "health_assistive",
"AUD-SIM-L1-P004": "human_materials",
"AUD-SIM-L1-P005": "patient_transport",
"AUD-SIM-L1-P006": "mosquito_nets",
"AUD-SIM-L1-P007": "medicines"
},
"current": {
"QA_covered_functional": 9,
"pending_functional": 123,
"pending_documentary": 1,
"pending_IDs": 124
},
"remaining_functional_IDs": [
"AUD-SIM-L1-P002",
"AUD-SIM-L1-P008",
"AUD-SIM-L1-P009",
"AUD-SIM-L1-P010",
"AUD-SIM-L1-P011",
"AUD-SIM-L1-P012",
"AUD-SIM-L1-P013",
"AUD-SIM-L1-P014",
"AUD-SIM-L1-P015",
"AUD-SIM-L1-P016",
"AUD-SIM-L1-P019",
"AUD-SIM-L1-P020",
"AUD-SIM-L1-P021",
"AUD-SIM-L1-P022",
"AUD-SIM-L1-P023",
"AUD-SIM-L1-P024",
"AUD-SIM-L1-P025",
"AUD-SIM-L1-P026",
"AUD-SIM-L1-P027",
"AUD-SIM-L1-P028",
"AUD-SIM-L1-P031",
"AUD-SIM-L1-P032",
"AUD-SIM-L1-P033",
"AUD-SIM-L1-P034",
"AUD-SIM-L1-P035",
"AUD-SIM-L1-P036",
"AUD-SIM-L1-P037",
"AUD-SIM-L1-P038",
"AUD-SIM-L1-P039",
"AUD-SIM-L1-P040",
"AUD-SIM-L1-P041",
"AUD-SIM-L1-P042",
"AUD-SIM-L1-P043",
"AUD-SIM-L1-P044",
"AUD-SIM-L1-P045",
"AUD-SIM-L1-P046",
"AUD-SIM-L1-P047",
"AUD-SIM-L1-P048",
"AUD-SIM-L1-P049",
"AUD-SIM-L1-P050",
"AUD-SIM-L1-P051",
"AUD-SIM-L1-P052",
"AUD-SIM-L1-P053",
"AUD-SIM-L1-P054",
"AUD-SIM-L1-P055",
"AUD-SIM-L1-P056",
"AUD-SIM-L1-P057",
"AUD-SIM-L1-P058",
"AUD-SIM-L1-P059",
"AUD-SIM-L1-P060",
"AUD-SIM-L1-P061",
"AUD-SIM-L1-P062",
"AUD-SIM-L1-P063",
"AUD-SIM-L1-P064",
"AUD-SIM-L1-P065",
"AUD-SIM-L1-P066",
"AUD-SIM-L1-P067",
"AUD-SIM-L1-P068",
"AUD-SIM-L1-P069",
"AUD-SIM-L1-P070",
"AUD-SIM-L1-P071",
"AUD-SIM-L1-P072",
"AUD-SIM-L1-P073",
"AUD-SIM-L1-P074",
"AUD-SIM-L1-P075",
"AUD-SIM-L1-P076",
"AUD-SIM-L1-P077",
"AUD-SIM-L1-P078",
"AUD-SIM-L1-P079",
"AUD-SIM-L1-P080",
"AUD-SIM-L1-P081",
"AUD-SIM-L1-P082",
"AUD-SIM-L1-P083",
"AUD-SIM-L1-P084",
"AUD-SIM-L1-P085",
"AUD-SIM-L1-P086",
"AUD-SIM-L1-P087",
"AUD-SIM-L1-P088",
"AUD-SIM-L1-P089",
"AUD-SIM-L1-P090",
"AUD-SIM-L1-P091",
"AUD-SIM-L1-P092",
"AUD-SIM-L1-P093",
"AUD-SIM-L1-P094",
"AUD-SIM-L1-P095",
"AUD-SIM-L1-P096",
"AUD-SIM-L1-P097",
"AUD-SIM-L1-P098",
"AUD-SIM-L1-P099",
"AUD-SIM-L1-P100",
"AUD-SIM-L1-P101",
"AUD-SIM-L1-P102",
"AUD-SIM-L1-P103",
"AUD-SIM-L1-P104",
"AUD-SIM-L1-P105",
"AUD-SIM-L1-P106",
"AUD-SIM-L1-P107",
"AUD-SIM-L1-P108",
"AUD-SIM-L1-P109",
"AUD-SIM-L1-P110",
"AUD-SIM-L1-P111",
"AUD-SIM-L1-P112",
"AUD-SIM-L1-P113",
"AUD-SIM-L1-P114",
"AUD-SIM-L1-P115",
"AUD-SIM-L1-P116",
"AUD-SIM-L1-P117",
"AUD-SIM-L1-P118",
"AUD-SIM-L1-P119",
"AUD-SIM-L1-P120",
"AUD-SIM-L1-P121",
"AUD-SIM-L1-P122",
"AUD-SIM-L1-P123",
"AUD-SIM-L1-P124",
"AUD-SIM-L1-P125",
"AUD-SIM-L1-P126",
"AUD-SIM-L1-P127",
"AUD-SIM-L1-P128",
"AUD-SIM-L1-P129",
"AUD-SIM-L1-P130",
"AUD-SIM-L1-P131",
"AUD-SIM-L1-P132",
"AUD-SIM-L1-P133"
],
"IDs_removed_merged_renumbered": [],
"G2": {
"total": 32,
"covered_G2A": 5,
"pending": 27
},
"grouping_reference": "iva_l1_grouped_increment_qa_20261024.grouping.groups; all133IDs retain existing group;G2A is a subincrement ofG2"
},
"source_scope": {
"applied": "CIVA2016 PDF9 p1426(267),9(1)(b-f);19(1),PDF15 p1426(273);2022PDF1 maintains b-f; rectification2017PDF1 affects6/14/annexes;2025art1/19(1),PDF12-13",
"2020_official_reference": "https://www.ufsa.gov.mz/query/Baixar_documento.php?nome=LEI+DO+SISTAFAE+-+LEI+14%2F2020+DE+23+DE+DEZEMBRO",
"2020_scope": "BR246 supplement PDF20 p2414(20),Lei16/2020art1 changes9(13),not9(1)(b-f); fullPDF read through web tool; direct Python download returnedHTTP403,no local original claimed",
"located_not_applied": [
"https://www.parlamento.mz/wp-content/uploads/2025/05/iva.pdf:8pages,no extractable text;not used as enacted law orG2A rule"
],
"P008_dependency": "Establishment integrated in NationalHealthService and exact eligible AnnexIII position,rectification2017/2022;no added autonomous approval/registration requirement;does not block9(1)(b-f)"
},
"reuse": "Existing motor,controls,original currency,opportunity,location,establishment,period,price representation,evidence,snapshotAPI andreport exporter;no new schema/form or fiscal rate",
"proofs": {
"new_frontend_tests": 2,
"new_API_tests": 1,
"API_assertions": 13,
"database": "simulator_fiscal_delta_20261021_test:55441",
"rollback": true,
"actual_UI": "Patienttransport authorization removed -> indeterminate,restored ->5rows100MZN/field07=500/IVA0;revision3,opportunity309/Manica/2026-02/MZN",
"UI_API_roundtrip_identical": true,
"other_opportunity_G1_snapshot_unchanged": true,
"new_report": "Actual HTML exporter from recovered snapshot,selected309 only;fiveoperations/value/context/source/version shown;noG1operation leaked",
"types": "passed",
"build": "passed",
"accepted_tests_repeated": false,
"accepted_fraction_Word_PDF_regenerated": false,
"accepted_artifact_hashes_unchanged": true,
"actual_UI_reload": "Revision3,opportunity309/Manica,2026-02,MZN and500MZN field07 preserved after reload;screenshotqa-result.png"
},
"limits": [
"Technicalscope2026/MZN;internaloperations only",
"No automatic deduction or finalVATdetermination/submissionAT",
"G2notfullyclosed;27branches remain",
"L1open;123functionalbranches+D06remain",
"G2Aspecific reportproofHTML;acceptedWord/PDFproofs reused withoutclaimingnewG2Aformatproof",
"Deploy coherent usable groups independently ofcompleteL1;no deployment inthispass"
],
"active_changes": false,
"schema_or_permission_changes": false,
"published_rule_activation": false,
"artifacts": {
"calculated.json": "0d8da2cdd8c12580e5d5ab19bb60d24b807ad57307ec52d5c31355494138ec97",
"ui-calculated.json": "59f87132fa0e0c096d8fbe46ee1766ccceed2d48c9c511dd8693c5f6b9e2d1de",
"recovered.json": "f03ba2de3fff4459cf38fe8c49d1de803021d65148f96fd616d25fe7c62fe390",
"frontend-tests.txt": "5638c293e800ece5b70ea826ece4fede69f92bbe347d6813dd12ae90f30f8e79",
"api-tests.txt": "2a03b8b8eba58bc64fa39886ff9c6a6a52bb520d5190538c7a40408e00fe468c",
"api-tests.xml": "31c14340cd9820395202854c383a8d2d0cfdc698cf808bf4183ced4bdabfccc5",
"health-model.json": "d67b045262c75b639d9a69dfcf48cf469155807aa4f2152beb4b68c41db11a4c",
"health-report.html": "7567d7b9ebf73ec862e8243c328ba93cee6e159ccf361afd3e8be67bfd1e5a10",
"types.txt": "5346ac8a6566c1c38cb0bbda6a029579df58cd78af78e2c4845d9c82b5d1d76c",
"build.txt": "432a1e08734e9fbd290fafa029a51290b050323505e5b4ce8daf1523a3dadb85",
"checks.json": "f366fb2d17bd44e91ee7642dd28e935d71f574652e62868f612a83de257eacea",
"qa-recovered.png": "ebc9c14c7a489e17ca59a272c1f2f0217dcaf22ac469480e32a41e636df0e1db",
"qa-result.png": "ca1013fc3d1579779e6db5f20061d34e8a6d8eeeaf47cf5c0f7967a89df6f95d"
},
"frozen_G1_fixture": {
"path": "tests/frontend/fixtures/iva-services.json",
"sha256": "8b215b97f4044d259a6f6d0075738591eccb4a1abd1b06cd4f819d5d83c430d2"
}
}
}