Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3846be8fc6 | ||
|
|
b898955603 | ||
|
|
7b54efb0fc | ||
|
|
7a58fa2435 | ||
|
|
0f0d2e566f |
@@ -8203,5 +8203,532 @@
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
},
|
||||
"iva_l1_g4a_direct_operations_code_qa_visual_pending_20261024": {
|
||||
"status": "code_API_verified_visual_pending_not_installed",
|
||||
"candidate": "0f0d2e566f0d00185588a4c1eef5e3cb83bb1618",
|
||||
"group": "G4A within G4",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P074": "export_railway_cfm",
|
||||
"AUD-SIM-L1-P075": "export_international_passengers",
|
||||
"AUD-SIM-L1-P076": "export_work_on_movables",
|
||||
"AUD-SIM-L1-P077": "export_gold_bom",
|
||||
"AUD-SIM-L1-P079": "export_packaging"
|
||||
},
|
||||
"branch_count": 5,
|
||||
"remaining_G4_branches": 14,
|
||||
"source": "CIVA republicado Lei13/2016,13(1)(o/p/q/r/t),PDF12/p1426(270);19(1)(b)(i),PDF15/p1426(273);Lei22/2022 art1,PDF3/p2252(27),mantém19(1)(b)(i);Lei10/2025 art1,PDF12–13/p2180(12)–(13),sem alteração13 e mantém19(1)(b)(i)",
|
||||
"source_visual_pages_checked": [
|
||||
12,
|
||||
15
|
||||
],
|
||||
"scope": "2026/MZN/05;cinco alíneas autónomas;sem cálculo de dedução,abastecimentos,reciprocidade ou importações",
|
||||
"new_fields": [],
|
||||
"reuse": "Oportunidade/localização,moeda,vendas,representação do preço,período,estabelecimento e fundamento;motor/checklists/snapshot/API/relatórios existentes",
|
||||
"conditions": "Cada alínea tem factos próprios;residência estrangeira/nacionalidade/sector não bastam. Evidência ou pressuposto expresso da projecção;sem certificação automática. Ausência de condição/fundamento/montante→indeterminado,sem zero.",
|
||||
"tests": {
|
||||
"new_frontend": 3,
|
||||
"API_QA_tests": 1,
|
||||
"API_assertions": 36,
|
||||
"guarded_database": "simulator_fiscal_delta_20261021_test:55441",
|
||||
"transaction_rollback": true,
|
||||
"types": "passed",
|
||||
"production_build": "passed",
|
||||
"QA_page_build": "passed",
|
||||
"synthetic_QA_storage": "passed;temporary directory,not portal API",
|
||||
"preserved_frozen_books": 14,
|
||||
"previous_books_current_and_unchanged_no_recalculation": true,
|
||||
"UI_visual": false,
|
||||
"report_visual": false,
|
||||
"Word_PDF_fraction_proofs": "accepted proofs reused;renderers/representation unchanged;no new pagination claim"
|
||||
},
|
||||
"example": {
|
||||
"context": "opportunity:323",
|
||||
"location": "Manica",
|
||||
"currency": "MZN",
|
||||
"period": "2026-11",
|
||||
"rows": 5,
|
||||
"05": "500.00",
|
||||
"VAT": "0.00",
|
||||
"price_basis": "net/included both covered"
|
||||
},
|
||||
"regulatory_followup": {
|
||||
"source": "https://portaldogoverno.gov.mz/governo-introduz-alteracoes-nos-regulamentos-fiscais-para-reforcar-eficiencia-tributaria/",
|
||||
"date": "2026-09-30",
|
||||
"kind": "Official announcement of approval,not decree text or proof of publication/effects",
|
||||
"mentioned_regulation_articles": [
|
||||
3,
|
||||
7,
|
||||
8,
|
||||
15,
|
||||
"16-A",
|
||||
18,
|
||||
21,
|
||||
23,
|
||||
28,
|
||||
36,
|
||||
37
|
||||
],
|
||||
"status": "Inventoried for documentary comparison;no concrete amendment to these five statutory classifications demonstrated by the announcement;no automatic rule activation or generic block",
|
||||
"limits": "This increment does not certify formal documentary procedures or assert that all future regulatory provisions were checked"
|
||||
},
|
||||
"visual_pending": {
|
||||
"url": "http://127.0.0.1:18639/g4a.html",
|
||||
"scope": [
|
||||
"select treatment and review its specific conditions",
|
||||
"missing/restored condition and calculation",
|
||||
"save/recover/report consistency of actual UI passage"
|
||||
],
|
||||
"provenance": "No new Tempo observation or Codex browser observation claimed;known saved browser-tool permission not retried/circumvented;manual Tempo route available",
|
||||
"G2L_G3_visual_evidence": "preserved;not reused as G4A visual proof"
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 43,
|
||||
"demonstrated_QA": 0,
|
||||
"functional_open": 89,
|
||||
"of_which_G4A_code_API_verified_visual_pending": 5,
|
||||
"not_implemented": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation": "6eefe4b3/82e010c4",
|
||||
"homologation_unchanged": true,
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"artifacts": {
|
||||
"calculated.json": "682862018358f7264a4c8097712dcfe1481f124a0e4c401a8d41cbbd80f64103",
|
||||
"recovered.json": "b5938d1af0e28074ef5c0854053825ee3e68eff6ac5be62f783feb6dd1650ffa",
|
||||
"api-tests.xml": "2fca79672487f487d0dd8a0c5fc471dda796982f20b84ea8f1a706a1cdad8cd2",
|
||||
"types.txt": "82962651e47f564de653ad2883f8fd34e7dae4b4468e4ac459cb3331962a3879",
|
||||
"build.txt": "06e72c446930be40c0d8707511d2b9903dc3b5dc4408234ac814c98a3a419b8a",
|
||||
"qa-build.txt": "29da1441411c0e3ebc675d8b3eac8032fa60a2a306233c2c036502fae84ffab3",
|
||||
"g4a-model.json": "b4ae564024e0b008c4bccf673990b6104fa4c54a89975698f70944b98e06031f",
|
||||
"g4a-report.html": "3dbb967a0b5be9f5108e4a7fd43590e0f07597df3b0fc3a02e244ca2b55a3b84",
|
||||
"qa.tsx": "e7aa2e0e56b1a8d27296e3890c067880efe5a970587c62caf3858da10bd9e951",
|
||||
"qa-plugin.mjs": "7b4481cae4feab10cfacff0e87dc950fbb221136def9e9f9ec2345f64bf15974"
|
||||
}
|
||||
},
|
||||
"iva_l1_g4a_visual_completion_20261024": {
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "0f0d2e56",
|
||||
"branches": [
|
||||
"P074",
|
||||
"P075",
|
||||
"P076",
|
||||
"P077",
|
||||
"P079"
|
||||
],
|
||||
"visual_evidence": {
|
||||
"method": "Verificação manual pela Tempo",
|
||||
"statement": "verificado",
|
||||
"scope": "Resposta à instrução dirigida G4A:tratamento/condições,condição retirada/reposta,guardar/recuperar/relatório. Sem inventar resultados individuais adicionais.",
|
||||
"Codex_browser_observation": false,
|
||||
"saved_at": "2026-10-24T15:14:13.549Z",
|
||||
"saved_file_sha256": "68a07c512c80db782c813afbd3d183fbccb9d03da314a24d9cda9c179746b854",
|
||||
"saved_state": "323/Manica/2026-11/MZN,5operações;última operação alterada depreço semIVA paracomIVAincluído após cálculo. Resultado500,00 éhistórico,correctamente nãoactual;edição conservada,sem recálculo automático.",
|
||||
"technical_record": "iva_l1_g4a_direct_operations_code_qa_visual_pending_20261024",
|
||||
"accepted_tests_repeated": false,
|
||||
"user_file_overwritten": false
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 43,
|
||||
"QA": 5,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation": "6eefe4b3/82e010c4",
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred"
|
||||
},
|
||||
"iva_l1_g4a_delivery_preparation_20261024": {
|
||||
"status": "ready_backup_restore_verified_not_installed",
|
||||
"candidate": "7b54efb0fca9aae0adf174169711cd1f452fe1fb",
|
||||
"base_remote_main": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"coverage": {
|
||||
"group": "G4A",
|
||||
"branches": {
|
||||
"P074": "export_railway_cfm",
|
||||
"P075": "export_international_passengers",
|
||||
"P076": "export_work_on_movables",
|
||||
"P077": "export_gold_bom",
|
||||
"P079": "export_packaging"
|
||||
},
|
||||
"scope": "2026/MZN/05;statutory conditions and explicit evidence/projection assumptions;no automatic input deduction/ATsubmission"
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 43,
|
||||
"QA": 5,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA": "0f0d2e56/7a58fa24;manual Tempo visual confirmation7b54efb0;3frontend+API1/36+types/build;14frozenbooks unchanged;accepted proofs reused",
|
||||
"visual_provenance": "Manual Tempo;no Codex browser observation;last saved price-basis edit preserved,prior result historical;no automatic recalculation.",
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-export-operations.ts",
|
||||
"sha256_LF": "3e9927aa637db678a558beb80bf7a326afd6b010e7ab5117aacd7e82a2c52600"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "e3ae2cbecd823fc03cd019cfe721cb20ba03ed51c7d0ec2680b55570b0bc7f10"
|
||||
}
|
||||
],
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"release_revision": {
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:02:46.947668+00:00",
|
||||
"manifest_sha256": "15837af27545a8691647459c00bec56b22d2e624ae9e20033d598d330d686d61"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"files_sha256": "e32d2ad5d5fc9a8a65d4010ec9d658f71d120409b5eaf31e0f2de4d4c9d5405f",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permissions/newserver fiscal rule",
|
||||
"rollback": {
|
||||
"patch": "docs/investmoz/simulations/l1-g3-readonly-rollback-20261024.patch",
|
||||
"checked": true,
|
||||
"applied": false,
|
||||
"preserves": "catalogue/readers/history/reports;prior release and fresh backup retained"
|
||||
},
|
||||
"regulatory_followup": "Official announcement30/09/2026 inventoried separately;not treated as published decree or rule activation;documentary comparison remains specific future work",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06only",
|
||||
"statistics_AI": "deferred"
|
||||
},
|
||||
"iva_l1_g4a_homologation_20261024": {
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "7b54efb0fca9aae0adf174169711cd1f452fe1fb",
|
||||
"base_remote_main": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"coverage": {
|
||||
"group": "G4A",
|
||||
"branches": {
|
||||
"P074": "export_railway_cfm",
|
||||
"P075": "export_international_passengers",
|
||||
"P076": "export_work_on_movables",
|
||||
"P077": "export_gold_bom",
|
||||
"P079": "export_packaging"
|
||||
},
|
||||
"scope": "2026/MZN/05;statutory conditions and explicit evidence/projection assumptions;no automatic input deduction/ATsubmission"
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 43,
|
||||
"QA": 5,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA": "0f0d2e56/7a58fa24;manual Tempo visual confirmation7b54efb0;3frontend+API1/36+types/build;14frozenbooks unchanged;accepted proofs reused",
|
||||
"visual_provenance": "Manual Tempo;no Codex browser observation;last saved price-basis edit preserved,prior result historical;no automatic recalculation.",
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-export-operations.ts",
|
||||
"sha256_LF": "3e9927aa637db678a558beb80bf7a326afd6b010e7ab5117aacd7e82a2c52600"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "e3ae2cbecd823fc03cd019cfe721cb20ba03ed51c7d0ec2680b55570b0bc7f10"
|
||||
}
|
||||
],
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"release_revision": {
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:02:46.947668+00:00",
|
||||
"manifest_sha256": "15837af27545a8691647459c00bec56b22d2e624ae9e20033d598d330d686d61"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"files_sha256": "e32d2ad5d5fc9a8a65d4010ec9d658f71d120409b5eaf31e0f2de4d4c9d5405f",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permissions/newserver fiscal rule",
|
||||
"rollback": {
|
||||
"patch": "docs/investmoz/simulations/l1-g3-readonly-rollback-20261024.patch",
|
||||
"checked": true,
|
||||
"applied": false,
|
||||
"preserves": "catalogue/readers/history/reports;prior release and fresh backup retained"
|
||||
},
|
||||
"regulatory_followup": "Official announcement30/09/2026 inventoried separately;not treated as published decree or rule activation;documentary comparison remains specific future work",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06only",
|
||||
"statistics_AI": "deferred",
|
||||
"served_commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"counts_current": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "e2ee1520f58e0600f3f2ae64dee97baa"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "9f7ac1ea1ff1adf7db54e32f15d8a4f8"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 20,
|
||||
"checksum": "28b47ffbc97aa8265bdf40d6658deaa0"
|
||||
},
|
||||
"after": {
|
||||
"rows": 21,
|
||||
"checksum": "b08ed52e696c3a91c4e1b889efad552a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"export-direct-operations/1": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_railway_cfm": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_international_passengers": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_work_on_movables": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_gold_bom": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_packaging": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-eQvgi8ww.js",
|
||||
"status": 200,
|
||||
"sha256": "1d94e9315eab7d2e2e00c29bf9ae3bef1eadc86faaff73c163daea40709576c0"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-BeYOfJX9.js",
|
||||
"status": 200,
|
||||
"sha256": "1f68d9c7de6aff36a051177bf11744a75411560cfe5e8af2d18e52bb4d226d70"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-Rt7qSc3z.js",
|
||||
"status": 200,
|
||||
"sha256": "3ad22a0458da55242ff4d3e88cc22461e5ec6c0f0aadd452936d50a999558a68"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-BEf0yjMF.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"b898955603eb7698ab10f4c4ab4115bffd80b7b2"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:21:02.478696+00:00"
|
||||
},
|
||||
"log_file": "1792855174037587994.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.42s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 278",
|
||||
"# pass 278",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 109100
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "7b54efb0fca9aae0adf174169711cd1f452fe1fb",
|
||||
"base_remote_main": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"coverage": {
|
||||
"group": "G4A",
|
||||
"branches": {
|
||||
"P074": "export_railway_cfm",
|
||||
"P075": "export_international_passengers",
|
||||
"P076": "export_work_on_movables",
|
||||
"P077": "export_gold_bom",
|
||||
"P079": "export_packaging"
|
||||
},
|
||||
"scope": "2026/MZN/05;statutory conditions and explicit evidence/projection assumptions;no automatic input deduction/ATsubmission"
|
||||
},
|
||||
"counts_before": {
|
||||
"delivered": 43,
|
||||
"QA": 5,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"QA": "0f0d2e56/7a58fa24;manual Tempo visual confirmation7b54efb0;3frontend+API1/36+types/build;14frozenbooks unchanged;accepted proofs reused",
|
||||
"visual_provenance": "Manual Tempo;no Codex browser observation;last saved price-basis edit preserved,prior result historical;no automatic recalculation.",
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-export-operations.ts",
|
||||
"sha256_LF": "3e9927aa637db678a558beb80bf7a326afd6b010e7ab5117aacd7e82a2c52600"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "e3ae2cbecd823fc03cd019cfe721cb20ba03ed51c7d0ec2680b55570b0bc7f10"
|
||||
}
|
||||
],
|
||||
"authenticated_preflight": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/ccdecbd8d74596e729f03381d3b37ca22ce5800e-0967d766",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"release_revision": {
|
||||
"commit": "6eefe4b3322461b9a23166e2cd1235e3881765f4",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:02:46.947668+00:00",
|
||||
"manifest_sha256": "15837af27545a8691647459c00bec56b22d2e624ae9e20033d598d330d686d61"
|
||||
},
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"configuration_keys": [
|
||||
"repository",
|
||||
"branch",
|
||||
"target_url",
|
||||
"legacy_root",
|
||||
"state_root",
|
||||
"release_root",
|
||||
"current_link",
|
||||
"shared_assets",
|
||||
"php",
|
||||
"schema_contract",
|
||||
"ci_environment",
|
||||
"postgis_image",
|
||||
"test_database",
|
||||
"qa_port",
|
||||
"retention",
|
||||
"webhook_secret_file"
|
||||
],
|
||||
"safe_paths": {
|
||||
"repository": "nala/Investidor-V2",
|
||||
"release_root": "/var/www/investmoz-homologacao/releases",
|
||||
"postgis_image": "postgis/postgis@sha256:01a6a70e41e6c4467c8f55f6063555ed72db2d6662cd0d571040d42eadaeb6f6"
|
||||
},
|
||||
"pipeline_sha256": "adec1c17654f3a8658b83b134f1e75f95391b235738552721906c3236e388604"
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup": {
|
||||
"stage": "/var/backups/investmoz-l1-g4a-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"files_sha256": "e32d2ad5d5fc9a8a65d4010ec9d658f71d120409b5eaf31e0f2de4d4c9d5405f",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4a_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "a8ada17d7faf38a81ef324064ba3f64d4a65e6040a3381b81cd2109d8d7664b9",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permissions/newserver fiscal rule",
|
||||
"rollback": {
|
||||
"patch": "docs/investmoz/simulations/l1-g3-readonly-rollback-20261024.patch",
|
||||
"checked": true,
|
||||
"applied": false,
|
||||
"preserves": "catalogue/readers/history/reports;prior release and fresh backup retained"
|
||||
},
|
||||
"regulatory_followup": "Official announcement30/09/2026 inventoried separately;not treated as published decree or rule activation;documentary comparison remains specific future work",
|
||||
"L1_complete": false,
|
||||
"P001": "05/06only",
|
||||
"statistics_AI": "deferred",
|
||||
"served_commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"counts_current": {
|
||||
"delivered": 48,
|
||||
"QA": 0,
|
||||
"functional_pending": 84,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"runtime_files_verified": 2,
|
||||
"persistent_files_and_env_verified": 369,
|
||||
"tables_compared": 174,
|
||||
"changed_tables": {
|
||||
"cache": {
|
||||
"before": {
|
||||
"rows": 105,
|
||||
"checksum": "e2ee1520f58e0600f3f2ae64dee97baa"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "9f7ac1ea1ff1adf7db54e32f15d8a4f8"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 20,
|
||||
"checksum": "28b47ffbc97aa8265bdf40d6658deaa0"
|
||||
},
|
||||
"after": {
|
||||
"rows": 21,
|
||||
"checksum": "b08ed52e696c3a91c4e1b889efad552a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preserved_counts": {
|
||||
"published_fiches": 29,
|
||||
"relations": 28,
|
||||
"geometries": 408
|
||||
},
|
||||
"migration_count": 0,
|
||||
"content_imports": 0,
|
||||
"comparison_role": "postgres_before_and_after;sameexportedsnapshotbaseline;noapplicationRLSvisibilityinference",
|
||||
"writes_by_verification": 0
|
||||
},
|
||||
"public": {
|
||||
"status": "installed_delta_verified",
|
||||
"served_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"export-direct-operations/1": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_railway_cfm": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_international_passengers": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_work_on_movables": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_gold_bom": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
],
|
||||
"export_packaging": [
|
||||
"assets/project-dossier-Rt7qSc3z.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/services-eQvgi8ww.js",
|
||||
"status": 200,
|
||||
"sha256": "1d94e9315eab7d2e2e00c29bf9ae3bef1eadc86faaff73c163daea40709576c0"
|
||||
},
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-BeYOfJX9.js",
|
||||
"status": 200,
|
||||
"sha256": "1f68d9c7de6aff36a051177bf11744a75411560cfe5e8af2d18e52bb4d226d70"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-Rt7qSc3z.js",
|
||||
"status": 200,
|
||||
"sha256": "3ad22a0458da55242ff4d3e88cc22461e5ec6c0f0aadd452936d50a999558a68"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-BEf0yjMF.js",
|
||||
"existing_fiscal_availability": {
|
||||
"data": {
|
||||
"enabled": true,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "IVA geral sobre base líquida disponível; enquadramento declarado."
|
||||
}
|
||||
},
|
||||
"synthetic_private_writes": 0,
|
||||
"method": "Read-only installedrevision/manifest/newcompiledcatalogueandreaders/simulatorentry;acceptedQAproofsreused"
|
||||
},
|
||||
"installer": {
|
||||
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/6eefe4b3322461b9a23166e2cd1235e3881765f4-e17c49ea",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"b898955603eb7698ab10f4c4ab4115bffd80b7b2"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:21:02.478696+00:00"
|
||||
},
|
||||
"log_file": "1792855174037587994.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.42s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 278",
|
||||
"# pass 278",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 109100
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,40 @@
|
||||
# Rastreabilidade, utilização e formação
|
||||
|
||||
## 24/10/2026 — G4A entregue na homologação b8989556
|
||||
|
||||
P074/CFM, P075/passageiros internacionais, P076/trabalhos em bens móveis para reexpedição, P077/ouro não trabalhado para Banco deMoçambique eP079/embalagens para exportação:cinco ramos disponibilizados peloGit existente,fast-forward sobre6eefe4b3,após main/destino frescos ebackup/restauro real isolado.174tabelas/369ficheiros/configuração preservados;29fichas,28relações e408geometrias intactas. Diferenças operacionais apenas cache/sessões registadas,comparadas por identidadePostgreSQL equivalente. Zero migrações/importações,alterações de permissões ou execuções privadas sintéticas noactivo.43fechos anteriores,release anterior ebackup conservados.
|
||||
|
||||
Revisão servida,manifesto/hash,assets,dois ficheiros funcionais e simuladorHTTP200 conferidos;controlos normais doinstalador passaram;provasQA aceites reutilizadas. Prova visual:manualTempo7b54efb0,sem observação de navegador peloCodex. Última edição sintética conservada,com resultado anterior histórico;nenhum recálculo automático ou sobrescrita. Contenção compatível conferida,não aplicada,conserva catálogo/leitores/histórico/relatórios.
|
||||
|
||||
[Manifesto/recibo](../simulations/l1-g4a-delivery-20261024.json),registo `iva_l1_g4a_homologation_20261024`. **48entregues+84funcionaispendentes+P001=133;QApendenteentrega0.** G4:5entregues/14porimplementar. Comunicado regulamentar30/09/2026 mantém inventário/cotejo próprio,não é diploma activado. P001só05/06;L1aberto;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
## 24/10/2026 — G4A: conferência visual pela Tempo; QA concluída
|
||||
|
||||
A Tempo respondeu «verificado» à passagem dirigidaG4A:tratamento/condições,retirada/reposição decondição ecálculo,guardar→recuperar→relatório. Registado comoverificação manual pelaTempo,sem observação donavegador peloCodex ou resultados individuais inventados. Provas técnicas3frontend/APIQA1teste36asserções/tipos/build/14livros preservados reutilizadas,sem repetição.
|
||||
|
||||
Ficheiro real guardado17:14:13 locais,323/Manica/2026-11/MZN,5operações. Última linha alterada desemIVA paraIVAincluído após ocálculo guardado:resultado05=500,00é **histórico,nãoactual**,assinalado pelachave deactualidade;osdados editados ficaram conservados,semrecálculo automático. Aconferência não sobrescreveu ogravadopelaTempo nemapresenta esse resultadohistórico comoactual. Alteração nãoépor sisó falha:as duas representações foramtestadas tecnicamente eahistória éconservada.
|
||||
|
||||
**G4A/P074–P077/P079 concluídoQA**,candidata `0f0d2e56`,registo `iva_l1_g4a_visual_completion_20261024`. Saldo **43entregues+5QA+84funcionaispendentes+P001=133**. Homologação permanece `6eefe4b3/82e010c4`;nenhum destes5ramos entregueainda. Próximopasso:preparaçãoGit,main/destino ebackup/restauro frescos,delta instalado apenas. P001só05/06;L1aberto;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
## 24/10/2026 — G4A executável em QA; conferência visual pendente
|
||||
|
||||
Candidata `0f0d2e566f0d00185588a4c1eef5e3cb83bb1618`:P074/CFM comcompanhias ferroviárias estrangeiras,P075/transporte internacional depassageiros,P076/trabalhos embens móveis parareexpedição,P077/ouro não trabalhado paraBanco deMoçambique,P079/taras eembalagens demercadorias aexportar. Cinco dos19ramosG4;14continuam porimplementar. Os43ramos entregues são preservados,homologação `6eefe4b3/82e010c4` inalterada.
|
||||
|
||||
Fonte conferida visualmente:CIVA republicadoLei13/2016,13(1)(o/p/q/r/t),PDF12/p1426(270);19(1)(b)(i),PDF15/p1426(273). Conjugadas Lei22/2022art1/PDF3/p2252(27) eLei10/2025art1/PDF12–13/p2180(12)–(13),que mantêm aenumeração19(1)(b)(i),sem alteração13 nestes diplomas. Âmbito2026/MZN,campo05,sem dedução automática deaquisições ou submissãoAT.
|
||||
|
||||
Condições poroperação:o exigeCFM como prestador/transmitente ecompanhia ferroviária estrangeira noquadro daexploração daferrovia/equipamento;p exigepercurso depassageiros proveniente doou comdestino aoestrangeiro,não nacionalidade;q exigebens adquiridos/importados paratrabalhos noterritório nacional,reexpedição deseguida eexpedidor/interveniente elegível;r exigeouro embarra/outra forma não trabalhada eBanco deMoçambique comoadquirente;t exigetaras/embalagens como invólucro demercadorias aexportar eafectação identificada. Reutilizados dados comuns econtrolo existente decondições/fundamento;nenhum campo económico novo. Desconhecido/condição/fundamento/valor em falta→indeterminado,semzero. O fundamento pode serpressuposto expresso deprojecção,sem certificar umaoperação real.
|
||||
|
||||
3testesfrontend novos;APIprivadaQA1teste/36asserções comguarda `simulator_fiscal_delta_20261021_test:55441` etransacção revertida;tipos,buildprodução epáginaQA passaram.14livros anteriores integrais eactuais semrecálculo;nenhuma ronda dos43ramos aceites repetida. Exemplo323/Manica/MZN/2026-11,cinco operações100cada,05=500,00/IVA0,00;preço líquido/incluído,condições retiradas/repostas,histórico,snapshot→API→recuperação→modelo/HTML conferidos. Exportadores inalterados;provasWord/PDF/fracções aceites reutilizadas,sem nova afirmação depaginação.
|
||||
|
||||
**Falta somente aconferência visual dirigida donovo delta**:escolha/condições específicas,informação em falta egravação/recuperação/relatório dapassagem real. Página namesma origem `http://127.0.0.1:18639/g4a.html`,comficheiro sintético separado deG2L/G3 econtrolos explícitos. Apermissão guardada daferramenta nãofoi contornada nemnovamente ensaiada;nenhuma prova visualG4A atribuída àTempo ouaoCodex porantecipação.
|
||||
|
||||
Inventariado comunicado oficial doGoverno30/09/2026 sobreaprovação dealterações aoRegulamentoIVA:https://portaldogoverno.gov.mz/governo-introduz-alteracoes-nos-regulamentos-fiscais-para-reforcar-eficiencia-tributaria/. Comunicado nãoé textododecreto nemcomprova publicação/entradaemvigor. Cotejo documental do diploma pendente;nenhuma alteração concreta aestascinco classificações estatutárias demonstrada pelanotícia,sem activarregra ou criar bloqueio genérico. Esteincremento nãocertifica procedimentos formais documentais nemdeclara cotejado todooregulamento futuro.
|
||||
|
||||
**Saldo43entregues+89funcionaisabertos+P001=133**;dos89,5G4A implementados/code/API aprovados comvisualpendente e84porimplementar. Nãocontados comodemonstradosQA antesdaprova. P001só05/06;L1aberto;Estatísticas/IAadiadas. Registo `iva_l1_g4a_direct_operations_code_qa_visual_pending_20261024`;artefactos `outputs/iva-l1-g4-export-20261024/`.
|
||||
|
||||
|
||||
## 24/10/2026 — G3 entregue na homologação6eefe4b3
|
||||
|
||||
Sete ramosP038–P043/P045,cessação2026/MZN econtinuidade expressa,peloGit existente:fast-forward sobreccdecbd8,após destino/main frescos ebackup/restauro real isolado.174tabelas/369ficheiros/configuração preservados;29fichas,28relações e408geometrias intactas. ComparaçãoPostgreSQL equivalente,com diferenças operacionais apenas cache/sessões registadas. Zero migrações/importações,alterações de permissões ou ensaios sintéticos noactivo.36fechos anteriores mantidos;release anterior ebackup guardados.
|
||||
|
||||
@@ -607,3 +607,4 @@ C:\laragon\www\portal-investidor\docs\investmoz\v2\auditoria-portal\legado-sitem
|
||||
\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~$gmentar processos v1.docx,162,dd30703646feabe737708b9072861ce24e7ebd953e25847edcb23143383d5ae2,.docx,Inventariado integralmente no mesmo diretório antes da seleção; conteúdo não promovido a implementação. Not a valid DOCX ZIP; inventoried without discarding.,Origem acessível; divulgação não inferida.,Nenhum cálculo ativado.,Documento de programação; não estender aceitação oficial. Original/histórico preservados.,Nome/hash do exemplar; versão substantiva não inferida.,Original indisponível,\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~$gmentar processos v1.docx,,Não aplicável/sem bytes disponíveis,"Ficheiro temporário Word indisponível; referência histórica preservada, não omitir do inventário."
|
||||
\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~WRL2698.tmp,20868,fb8a11801469536438e9e85cacc3468d33253d22e94bb366f249d109ba9ab827,.tmp,Inventariado integralmente no mesmo diretório antes da seleção; conteúdo não promovido a implementação. ,Origem acessível; divulgação não inferida.,Nenhum cálculo ativado.,Documento de programação; não estender aceitação oficial. Original/histórico preservados.,Nome/hash do exemplar; versão substantiva não inferida.,Original indisponível,\\mac\home\Documents\TEMPO\Portal Tempo\Servicos Tempo\Relatorios\novos\~WRL2698.tmp,,Não aplicável/sem bytes disponíveis,"Ficheiro temporário Word indisponível; referência histórica preservada, não omitir do inventário."
|
||||
https://archive.gazettes.africa/archive/mz/2025/mz-government-gazette-series-i-supplement-dated-2025-05-21-no-95.pdf,329070,e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358,original oficial PDF,"BR95,I Série,Suplemento,21/05/2025;Lei3/2025 arts.1/2 eAnexoII;2páginas conferidas",Exemplar privado disponível para consulta;sem publicação automática,"Aplicado emG3cessação2026/P038–P043,emcódigoQA;semprorrogação presumida,benefíciohistórico ou activaçãoemservidor.",Origem oficial identificada;9(13) com termo31/12/2025;sem prorrogação presumida,Lei3/2025 de21/05/2025,Conferido em24/10/2026,C:\laragon\www\portal-investidor\docs\investmoz\simulations\source-archive\BR-95-I-Suplemento-2025-05-21.pdf,e0e682e2c027c3cd9c1d46a73a3f48bc5f6bdbf05667fd97314d7a3f6a456358,Original preservado porbytes/hash,G3 candidatoac948bd8b7ff34d661dd4cb7cbe88221093dfd83:termo31/12/2025 executável no percurso2026;P038–P043 comcode/APIaprovados evisualpendente. Original/proveniência/publicação preservados;zero importação/publicação embaseactiva. Histórico: Aquisição documental apenas;zero importação/publicação em base activa. Fonte aceite conforme decisãoTempo08/10;P038–P043 permanecem funcionais pendentes.
|
||||
https://portaldogoverno.gov.mz/governo-introduz-alteracoes-nos-regulamentos-fiscais-para-reforcar-eficiencia-tributaria/,,,"Notícia oficial online,sem original porbytes preservado",Governo30/09/2026:aprovação dealterações regulamentaresIVA/IRPC/IRPS,Consulta online livre;sem importação/publicação peloportal,Não usada paraactivar cálculo;inventariada paracotejo dodiploma,"Comunicado não substitui decreto,publicação ou períodoaplicável","RegulamentoCIVA/Decreto7/2008:artigos mencionados3,7,8,15,16-A,18,21,23,28,36,37",Consultado24/10/2026,URLonline;semficheirooriginallocal,,Proveniência oficial dapágina;semafirmar vigência dodiploma,Cotejar publicação/texto/período eafectarapenas regrasdependentes;sem bloqueio genéricoG4A
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1,29 @@
|
||||
import type { OperationTreatment } from './iva-operations.ts';
|
||||
|
||||
const source = 'CIVA republicado pela Lei13/2016, BR156/10.º suplemento, art.13(1)(o/p/q/r/t), PDF12/p.1426(270); art.19(1)(b)(i), PDF15/p.1426(273). Lei22/2022 art.1, PDF3/p.2252(27), mantém19(1)(b)(i); Lei10/2025 art.1, PDF12–13/p.2180(12)–(13), não altera13 e mantém19(1)(b)(i). Âmbito técnico2026/MZN; classificação de vendas, sem dedução automática de compras ou declaraçãoAT.';
|
||||
const scope = 'Operação abrangida pelo CIVA em Moçambique, com territorialidade identificada; não inferida apenas da residência do cliente ou do sector';
|
||||
const make = (id:string,label:string,letter:string,conditions:string[]):OperationTreatment => ({id,label,field:'05',rate:0,article:`CIVA arts.13(1)(${letter}),19(1)(b)(i)`,source,logicVersion:'export-direct-operations/1',conditions:[scope,...conditions]});
|
||||
|
||||
export const directExportTreatments:OperationTreatment[] = [
|
||||
make('export_railway_cfm','Operação ferroviária dos CFM com companhia estrangeira','o',[
|
||||
'Transmissão de bens ou prestação de serviços efectuada pelos Caminhos de Ferro de Moçambique a companhia ferroviária estrangeira identificada; não basta ser qualquer operador ferroviário',
|
||||
'Operação no quadro da exploração de ferrovias ou dos seus equipamentos, com ligação identificada; não isenção de qualquer venda a companhia estrangeira',
|
||||
]),
|
||||
make('export_international_passengers','Transporte de passageiros proveniente do ou com destino ao estrangeiro','p',[
|
||||
'Serviço identificado como transporte de passageiros; não transporte de mercadorias nem serviço autónomo de alojamento ou agência',
|
||||
'Percurso proveniente do estrangeiro ou com destino ao estrangeiro, com origem e destino identificados no documento ou pressuposto; nacionalidade do passageiro não comprova o percurso',
|
||||
]),
|
||||
make('export_work_on_movables','Trabalhos em bens móveis para reexpedição ao estrangeiro','q',[
|
||||
'Prestação de serviços que consiste em trabalhos sobre bens móveis identificados, adquiridos ou importados para esses trabalhos em território nacional',
|
||||
'Os bens trabalhados são expedidos ou transportados de seguida para o estrangeiro, com correspondência entre entrada, trabalhos e saída identificada',
|
||||
'Expedição efectuada pelo prestador, pelo destinatário não estabelecido no território nacional ou por terceiro em nome e por conta de qualquer deles; interveniente e relação identificados',
|
||||
]),
|
||||
make('export_gold_bom','Ouro não trabalhado transmitido ao Banco de Moçambique','r',[
|
||||
'Bem identificado como ouro em barra ou noutra forma não trabalhada; não jóia nem artigo de ouro trabalhado',
|
||||
'Adquirente identificado como Banco de Moçambique; não qualquer banco ou comprador estrangeiro',
|
||||
]),
|
||||
make('export_packaging','Taras e embalagens para mercadorias a exportar','t',[
|
||||
'Transmissão de taras ou embalagens identificadas que servem de invólucro de mercadorias; não serviço autónomo de transporte ou armazenagem',
|
||||
'Mercadorias a exportar identificadas e afectação das taras/embalagens a essas mercadorias documentada ou expressamente pressuposta; não inferida só da actividade exportadora do comprador',
|
||||
]),
|
||||
];
|
||||
@@ -4,6 +4,7 @@ import { pharmaAnnexEntry, pharmaAnnexReference, pharmaAnnexSource, pharmaAnnexV
|
||||
import { annexIEntry, annexIReference, annexISource, annexIVersion } from './iva-annex-i.ts';
|
||||
import { productionOptionCheck, productionOptionVersion, type ProductionTaxOption } from './iva-production-option.ts';
|
||||
import { temporaryBenefits, temporaryBenefit, temporaryBenefitNotice, temporaryBenefitVersion } from './iva-temporary-benefits.ts';
|
||||
import { directExportTreatments } from './iva-export-operations.ts';
|
||||
import { monthlySalesFromDraft, readMonthlyIvaSettings } from './monthly-iva.ts';
|
||||
import { addFractions, decimalFraction, fraction, fractionLabel, fractionPresentation, type FiscalFraction } from './fiscal-rational.ts';
|
||||
|
||||
@@ -58,6 +59,7 @@ const listedGoodsTreatments:OperationTreatment[] = [
|
||||
['insecticides','Insecticidas','Bem transmitido identificado como insecticida; não qualquer produto químico'],
|
||||
].map(([id,label,condition])=>({id:`listed_${id}`,label:`Lista legal — ${label}`,field:'05',rate:0,article:'CIVA arts.9(10),19(1)(b)(v), redacção Lei22/2022',source:'Lei22/2022 art.1, PDF2, p.2252(26),9(10); CIVA republicado Lei13/2016, PDF15, p.1426(273),19(1)(b)(v). Âmbito técnico2026/MZN',conditions:[internalOperation,'Transmissão do próprio bem enumerado, identificado; não um serviço autónomo nem extensão por sector, marca ou destino',condition]}));
|
||||
export const operationTreatments:OperationTreatment[] = [
|
||||
...directExportTreatments,
|
||||
...temporaryBenefits.map(item=>({id:item.id,label:`Benefício terminado31/12/2025 — ${item.label}`,field:null,rate:null,article:`CIVA art.${item.article}`,source:`${item.source} CIVA republicado Lei13/2016,9(14),PDF10/p.1426(268),apenas para9(13)(b/f). Âmbito:cessação nas operações internas2026/MZN;sem cálculo histórico.`,conditions:[],logicVersion:temporaryBenefitVersion})),
|
||||
{id:'annexI_goods',label:'Equipamento, sementes e outros bens do Anexo I — artigo9(12)(h)',field:'07',rate:0,logicVersion:annexIVersion,article:'CIVA arts.9(12)(h),19(1); Lei22/2022 art.3(1)',source:`CIVA republicado Lei13/2016, PDF10, p.1426(268),9(12)(h), e PDF15, p.1426(273),19(1); rectificação BR89/2017, PDF1, p.569; ${annexISource}. Âmbito técnico2026/MZN`,conditions:[internalOperation,'O bem transmitido corresponde ao código e à designação da posição escolhida no Anexo I; não basta a actividade agrícola, a marca ou uma indicação genérica de equipamento','Qualificadores expressos na posição conferidos e fundamentados, incluindo natureza, destino, certificação, peso, capacidade ou potência quando exigidos nessa linha; não acrescentar condições a linhas que não as exigem']},
|
||||
{id:'pharma_manufacturing_inputs',label:'Bens do Anexo III para fabrico de medicamentos — estabelecimento integrado no SNS',field:'07',rate:0,logicVersion:pharmaAnnexVersion,article:'CIVA arts.9(1)(g),19(1); Lei22/2022 art.3(1)',source:`CIVA republicado Lei13/2016, PDF9, p.1426(267),9(1)(g), e PDF15, p.1426(273),19(1); rectificação BR89/2017, PDF1, p.569; ${pharmaAnnexSource}. Âmbito técnico2026/MZN`,conditions:[internalOperation,'Transmissão efectuada pelo próprio estabelecimento público ou privado identificado, integrado no Serviço Nacional de Saúde; não basta que o adquirente ou destino seja um hospital','Bens a utilizar como matérias-primas, produtos intermédios ou componentes para o fabrico de medicamentos, com utilização/fundamento identificados; não mera venda de produto acabado ou utilização genérica','Bem corresponde cumulativamente ao código e à designação da linha seleccionada no Anexo III; confirmar as especificações aplicáveis sem corrigir ou completar a pauta por suposição']},
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class IvaExportDirectDraftTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_direct_export_rules_recover_with_the_selected_opportunity_and_previous_books(): void
|
||||
{
|
||||
$target = DB::selectOne('select current_database() as name,inet_server_port() as port');
|
||||
$this->assertSame('simulator_fiscal_delta_20261021_test', $target->name);
|
||||
$this->assertSame(55441, (int) $target->port);
|
||||
config(['investor-path.enabled' => true, 'suitecrm.enabled' => false]);
|
||||
$this->actingAs(User::factory()->create(['email_verified_at' => now()]));
|
||||
$draft = json_decode(file_get_contents(base_path('outputs/iva-l1-g4-export-20261024/calculated.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
$id = $this->postJson('/api/v1/simulation-drafts', ['personal_snapshot' => [], 'economic_snapshot' => $draft], ['Idempotency-Key' => (string) Str::uuid()])->assertCreated()->json('data.id');
|
||||
$recovered = $this->getJson('/api/v1/simulation-drafts/'.$id)->assertOk()->json('data.economic_snapshot');
|
||||
$this->assertSame($draft['modelo_a_snapshot'], $recovered['modelo_a_snapshot']);
|
||||
$this->assertSame('opportunity:323', $recovered['context_opportunity']);
|
||||
$this->assertSame('Manica', $recovered['selection_labels']['province_id']);
|
||||
$store = json_decode($recovered['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$book = $store['salesOperations']['opportunity:323'];
|
||||
$this->assertSame('opportunity:323', $book['result']['opportunity']);
|
||||
$this->assertSame('MZN', $book['result']['currency']);
|
||||
$this->assertSame('2026-11', $book['result']['periods'][0]['period']);
|
||||
$this->assertSame('500.00', $book['result']['periods'][0]['fields']['05']);
|
||||
$this->assertCount(5, $book['rows']);
|
||||
foreach ($book['result']['rows'] as $row) {
|
||||
$this->assertSame('05', $row['field']);
|
||||
$this->assertSame('0.00', $row['vat']);
|
||||
}
|
||||
$frozen = json_decode(file_get_contents(base_path('tests/frontend/fixtures/iva-g3-inputs.json')), true, flags: JSON_THROW_ON_ERROR);
|
||||
foreach (json_decode($frozen['modelo_a_snapshot'], true, flags: JSON_THROW_ON_ERROR)['salesOperations'] as $context => $original) {
|
||||
$this->assertSame($original, $store['salesOperations'][$context]);
|
||||
}
|
||||
file_put_contents(base_path('outputs/iva-l1-g4-export-20261024/recovered.json'), json_encode($recovered, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,33 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import { directExportTreatments } from '../../resources/js/lib/iva-export-operations.ts';
|
||||
import { newSalesOperation, evaluateSalesOperation, recordSales, saveSalesBook, salesBook, salesCurrent } from '../../resources/js/lib/iva-operations.ts';
|
||||
import { createProjectDossierReport } from '../../resources/js/lib/project-dossier-report.ts';
|
||||
const frozen=JSON.parse(fs.readFileSync(new URL('./fixtures/iva-g3-inputs.json',import.meta.url),'utf8'));
|
||||
function row(rule,index=0){return {...newSalesOperation(`g4a-${index}`,'2026-11','MZN'),description:`SYNTHETIC QA — ${rule.label}`,establishment:'SYNTHETIC QA estabelecimento',amount:'100',basis:index%2?'included':'net',treatment:rule.id,confirmed:rule.conditions.map((_,i)=>i),evidence:'SYNTHETIC QA — intervenientes,origem/destino e ligação descritos como pressupostos da projecção; não certificação documental'};}
|
||||
function fixture(){const draft={...structuredClone(frozen),context_opportunity:'opportunity:323',project_title:'SYNTHETIC QA — G4A / Exportações directas'};const book=recordSales(draft,{currency:'MZN',rows:directExportTreatments.map(row),periods:[{period:'2026-11',complete:true}]});draft.modelo_a_snapshot=saveSalesBook(draft,book);return {draft,book};}
|
||||
test('five autonomous article13 rules classify field05 only after their own facts and evidence are determined',()=>{
|
||||
assert.equal(directExportTreatments.length,5);
|
||||
for(const rule of directExportTreatments){const input=row(rule),result=evaluateSalesOperation(input,'MZN');assert.equal(result.field,'05');assert.equal(result.net,'100.00');assert.equal(result.vat,'0.00');assert.equal(result.gross,'100.00');assert.match(result.source,/13\(1\)/);
|
||||
for(const missing of input.confirmed){const r=evaluateSalesOperation({...input,confirmed:input.confirmed.filter(i=>i!==missing)},'MZN');assert.equal(r.status,'indeterminate');assert.equal(r.vat,null);}
|
||||
for(const patch of [{amount:''},{basis:''},{evidence:''},{description:''},{establishment:''},{sourceCurrency:'USD'},{period:'2025-11'}])assert.equal(evaluateSalesOperation({...input,...patch},'MZN').vat,null);
|
||||
assert.equal(evaluateSalesOperation({...input,amount:'0'},'MZN').net,'0.00');
|
||||
}
|
||||
assert.match(directExportTreatments[0].conditions[1],/Caminhos de Ferro de Moçambique/);
|
||||
assert.match(directExportTreatments[1].conditions[2],/nacionalidade/);
|
||||
assert.match(directExportTreatments[2].conditions[3],/não estabelecido/);
|
||||
assert.match(directExportTreatments[3].conditions[2],/Banco de Moçambique/);
|
||||
assert.match(directExportTreatments[4].conditions[2],/afectação/);
|
||||
});
|
||||
test('missing evidence leaves period indeterminate and recalculation preserves the previous result',()=>{
|
||||
const {draft,book}=fixture();const next=recordSales(draft,{...book,rows:book.rows.map((r,i)=>i===2?{...r,evidence:''}:r)});assert.equal(next.result.periods[0].fields['05'],null);assert.deepEqual(next.history.at(-1),book.result);
|
||||
assert.equal(book.result.periods[0].fields['05'],'500.00');assert.equal(book.result.periods[0].fields['01'],'0.00');
|
||||
});
|
||||
test('snapshot/report retain context and sources while all14 delivered books stay byte-equivalent and current',()=>{
|
||||
const {draft,book}=fixture();assert.equal(salesCurrent(draft,book),true);assert.deepEqual(salesBook(JSON.parse(JSON.stringify(draft))),JSON.parse(JSON.stringify(book)));
|
||||
const before=JSON.parse(frozen.modelo_a_snapshot).salesOperations,after=JSON.parse(draft.modelo_a_snapshot).salesOperations;assert.equal(Object.keys(before).length,14);
|
||||
for(const [context,original]of Object.entries(before)){assert.deepEqual(after[context],original);assert.equal(salesCurrent({...draft,context_opportunity:context},after[context]),true);}
|
||||
const model=createProjectDossierReport(draft,{selectedSections:new Set(['finance']),version:'QA G4A'});for(const value of ['500.00','opportunity:323','Manica','2026-11','MZN','13(1)(o)','13(1)(p)','13(1)(q)','13(1)(r)','13(1)(t)'])assert.ok(JSON.stringify(model).includes(value),value);
|
||||
if(process.env.IVA_G4A_CALCULATED)fs.writeFileSync(process.env.IVA_G4A_CALCULATED,JSON.stringify(draft));
|
||||
});
|
||||
Reference in New Issue
Block a user