Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
117f2a70a8 | ||
|
|
a153d0782f | ||
|
|
0b0e002d15 | ||
|
|
b641887274 | ||
|
|
f946364baa | ||
|
|
3846be8fc6 | ||
|
|
b898955603 | ||
|
|
7b54efb0fc |
@@ -8308,5 +8308,952 @@
|
||||
"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
|
||||
}
|
||||
},
|
||||
"iva_l1_g4b_international_assets_code_qa_visual_pending_20261024": {
|
||||
"status": "code_API_verified_visual_pending_not_installed",
|
||||
"candidate": "f946364baa8c2c29334879f60f0c64564ba9a78b",
|
||||
"group": "G4B within G4",
|
||||
"branches": {
|
||||
"AUD-SIM-L1-P065": [
|
||||
"international_ship_operations"
|
||||
],
|
||||
"AUD-SIM-L1-P066": [
|
||||
"international_aircraft_operations"
|
||||
],
|
||||
"AUD-SIM-L1-P068": [
|
||||
"international_ship_direct_services",
|
||||
"international_aircraft_direct_services"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 4,
|
||||
"remaining_G4_unimplemented": 11,
|
||||
"source": "CIVA Lei13/2016,13(1)(c/d/f/g/i),PDF12/p1426(270),19(1)(b)(i),PDF15/p1426(273);Lei22/2022art1/PDF3p2252(27),Lei10/2025art1/PDF12–13p2180(12)–(13),sem alteração13 e mantém19(1)(b)(i)",
|
||||
"scope": "2026/MZN/05;operações sobreembarcação/avião elegíveis e serviços para necessidades directas;sem classificação de abastecimentos ou cálculo de dedução",
|
||||
"conditions": {
|
||||
"ship": "Embarcação identificada afecta às actividades13(1)(c/d):alto mar com passageiros remunerados ou actividade comercial/industrial/pesca;ou salvamento,assistência marítima,pesca costeira",
|
||||
"aircraft": "Avião utilizado por companhia principalmente dedicada aotráfego internacional,não umvoo isolado",
|
||||
"operations": "Listas f/g conservam diferenças;aluguer deobjectos deembarcação consta f;aluguer autónomo deobjectos doavião não é adicionado a g",
|
||||
"direct_services": "Ligação concreta às necessidades directas do meio elegível ourespectiva carga;serviço distinto dos já mencionados f/g",
|
||||
"beverages": "Regra13(2) aplicável c/d/e/h não é estendida a f/g/i;abastecimentos continuam nos ramos próprios"
|
||||
},
|
||||
"new_fields": [],
|
||||
"reuse": "Oportunidade/localização,moeda,valor,preço,período,estabelecimento,descrição,fundamento/checklists/snapshot/API/relatório existentes;sem validação inventada de matrícula,licença ou autoridade",
|
||||
"tests": {
|
||||
"frontend_new": 3,
|
||||
"API_tests": 1,
|
||||
"API_assertions": 35,
|
||||
"guarded_QA_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,no network",
|
||||
"previous_frozen_books": 15,
|
||||
"books_unchanged_and_current_no_recalculation": true,
|
||||
"UI_visual": false,
|
||||
"report_visual": false,
|
||||
"Word_PDF": "accepted renderer/fraction proofs reused;no new pagination claim"
|
||||
},
|
||||
"example": {
|
||||
"opportunity": "opportunity:324",
|
||||
"location": "Manica",
|
||||
"currency": "MZN",
|
||||
"period": "2026-12",
|
||||
"rows": 4,
|
||||
"05": "400.00",
|
||||
"VAT": "0.00",
|
||||
"basis": "net and included",
|
||||
"missing_condition": "period totals indeterminate;previous result retained in history"
|
||||
},
|
||||
"visual_pending": {
|
||||
"url": "http://127.0.0.1:18639/g4b.html",
|
||||
"remaining": [
|
||||
"Treatment selection and asset/direct-need conditions",
|
||||
"Missing/restored condition and calculation",
|
||||
"Actual UI save/recover/report correspondence"
|
||||
],
|
||||
"tool": "User reported Edge corrections;new Edge extension connected,origin18639 still denied by saved/managed permission before network egress;no workaround",
|
||||
"manual_Tempo": "Existing authorized route;no G4B observation reported or inferred from G4A"
|
||||
},
|
||||
"regulatory_followup": "Official announcement30/09/2026 remains inventoried,not a published decree;no new formal-documentary-procedure certification or rule activation claimed",
|
||||
"counts": {
|
||||
"delivered": 48,
|
||||
"demonstrated_QA": 0,
|
||||
"functional_open": 84,
|
||||
"of_which_G4B_code_API_verified_visual_pending": 3,
|
||||
"not_implemented": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation": "b8989556/3846be8f",
|
||||
"homologation_unchanged": true,
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"artifacts": {
|
||||
"calculated.json": "6bfbea7f3473c2db5d9ea55e2abac37a26fa54dbaeaf7259a8f193de41f37a67",
|
||||
"recovered.json": "7c535550bc168527ab61e0bb87ee05ab73895ffc4a496024095beb5bf4eed3dd",
|
||||
"api-tests.xml": "2f0fb6881af95053360440c1b3b214b55adcc9bde7cbcfff11acaa66865f7f96",
|
||||
"types.txt": "82962651e47f564de653ad2883f8fd34e7dae4b4468e4ac459cb3331962a3879",
|
||||
"build.txt": "ad32ef9137c95eb20a20162738278049434eb3240fa95bcb286b9c36759b7a75",
|
||||
"qa-build.txt": "7a29c0f4d22a33da759f2197fc38e392b0589cca60c616a880d3a8a8615bea60",
|
||||
"g4b-model.json": "a1e6927ecb8027a1a757339b208255b02f84d82ca9e380655015909f64e74ff5",
|
||||
"g4b-report.html": "2cfbe3d25cb8d6097ae1684fa1026541405e337593dd21a3803331ac989b1aa7",
|
||||
"qa.tsx": "f327e334eb97371798fe9e3e0c48ac054536c13a66df1e1feb21edc9abb9c265",
|
||||
"qa-plugin.mjs": "142d33202e7048dba5378015032d11b5b3bd274b077b49dd70aed72e37588e2e"
|
||||
},
|
||||
"G4A_later_QA_save_preserved": {
|
||||
"savedAt": "2026-10-24T15:28:06.022Z",
|
||||
"sha256": "454de52d7a7f03d4b7604670c35fb23c30834a577939b6c7a5f84dd2837b85dc",
|
||||
"prior_accepted_hash": "68a07c512c80db782c813afbd3d183fbccb9d03da314a24d9cda9c179746b854",
|
||||
"observation": "Later save17:28:06 contains4rows and historical500result;not overwritten,not assumed current,not a reopened accepted case"
|
||||
}
|
||||
},
|
||||
"iva_l1_g4b_visual_completion_20261024": {
|
||||
"status": "demonstrated_QA_not_installed",
|
||||
"candidate": "f946364b",
|
||||
"branches": [
|
||||
"P065",
|
||||
"P066",
|
||||
"P068"
|
||||
],
|
||||
"treatments": 4,
|
||||
"visual_evidence": {
|
||||
"method": "Verificação manual pela Tempo",
|
||||
"statement": "prova visual efectuada",
|
||||
"scope": "Confirmação da prova visual dirigida G4B;sem acrescentar resultados individuais não comunicados",
|
||||
"Codex_browser_observation": false,
|
||||
"saved_at": "2026-10-24T15:29:52.114Z",
|
||||
"saved_file_sha256": "a8ccb62a585310aef19baf0c0ac655b37e55edbd837e925e6216efa59bf99dcb",
|
||||
"saved_state": "324/Manica/2026-12/MZN;4operações;resultado actual,campo05=400,00/IVA0,00",
|
||||
"technical_record": "iva_l1_g4b_international_assets_code_qa_visual_pending_20261024",
|
||||
"technical_checks_reused": "3frontend;APIQA1/35;tipos/build;15livros anteriores preservados",
|
||||
"accepted_tests_repeated": false,
|
||||
"user_file_overwritten": false
|
||||
},
|
||||
"counts": {
|
||||
"delivered": 48,
|
||||
"QA": 3,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"homologation": "b8989556/3846be8f",
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred"
|
||||
},
|
||||
"iva_l1_g4b_delivery_preparation_20261024": {
|
||||
"status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore",
|
||||
"candidate": "f946364b",
|
||||
"QA_record": "0b0e002d",
|
||||
"Git_preparation_head": "0b0e002d1573c3da838a8a4ea296c7a9094acef6",
|
||||
"fresh_remote_main": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"ancestry": "ancestor;normal nonforce push only after authenticated preflight and fresh backup/restore",
|
||||
"coverage": {
|
||||
"group": "G4B",
|
||||
"branches": {
|
||||
"P065": [
|
||||
"international_ship_operations"
|
||||
],
|
||||
"P066": [
|
||||
"international_aircraft_operations"
|
||||
],
|
||||
"P068": [
|
||||
"international_ship_direct_services",
|
||||
"international_aircraft_direct_services"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 4,
|
||||
"scope": "2026/MZN/05;eligible vessel/aircraft operations and direct needs services;no supplies/input deduction/ATsubmission"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-international-assets.ts",
|
||||
"sha256_LF": "fa99cf40622d8a6aaea4e3078d6c9e41d26a4a2bda5898f5bd114aa4221eaa1c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "795e07a1a9b81372c3124b037d6df9626501aafcd7224290bbac2b8ec44f6d9b"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 48,
|
||||
"QA": 3,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "3frontend/APIQA1/35/types/build;15previousbooks unchanged;manual Tempo visual0b0e002d;accepted proofs reused,no new browser verification required",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on current candidate,not applied;preserves catalogue/readers/history/reports;retain prior release and verified new backup",
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permission changes/server fiscal activation",
|
||||
"authenticated_destination": "Fresh read confirmed b8989556;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore,no active restore performed",
|
||||
"served_revision_and_delta": "pending installation",
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"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
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"release_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"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-g4b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"files_sha256": "37d5efc4d7b4db3f2bb34bd69ddb8377c26e15fb35f1d95eb512e4ae7aa14962",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"iva_l1_g4b_homologation_20261024": {
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "f946364b",
|
||||
"QA_record": "0b0e002d",
|
||||
"Git_preparation_head": "0b0e002d1573c3da838a8a4ea296c7a9094acef6",
|
||||
"fresh_remote_main": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"ancestry": "ancestor;normal nonforce push only after authenticated preflight and fresh backup/restore",
|
||||
"coverage": {
|
||||
"group": "G4B",
|
||||
"branches": {
|
||||
"P065": [
|
||||
"international_ship_operations"
|
||||
],
|
||||
"P066": [
|
||||
"international_aircraft_operations"
|
||||
],
|
||||
"P068": [
|
||||
"international_ship_direct_services",
|
||||
"international_aircraft_direct_services"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 4,
|
||||
"scope": "2026/MZN/05;eligible vessel/aircraft operations and direct needs services;no supplies/input deduction/ATsubmission"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-international-assets.ts",
|
||||
"sha256_LF": "fa99cf40622d8a6aaea4e3078d6c9e41d26a4a2bda5898f5bd114aa4221eaa1c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "795e07a1a9b81372c3124b037d6df9626501aafcd7224290bbac2b8ec44f6d9b"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "3frontend/APIQA1/35/types/build;15previousbooks unchanged;manual Tempo visual0b0e002d;accepted proofs reused,no new browser verification required",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on current candidate,not applied;preserves catalogue/readers/history/reports;retain prior release and verified new backup",
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permission changes/server fiscal activation",
|
||||
"authenticated_destination": "Fresh read confirmed b8989556;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore,no active restore performed",
|
||||
"served_revision_and_delta": "verified",
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"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
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"release_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"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-g4b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"files_sha256": "37d5efc4d7b4db3f2bb34bd69ddb8377c26e15fb35f1d95eb512e4ae7aa14962",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"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": "1d9a40d14abc8a507b9f21c53214cab3"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "4ac1b3b4c92159a6c6d5b2001b33c281"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 23,
|
||||
"checksum": "3416544d03e316d171c3c5b4ef17f76d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 24,
|
||||
"checksum": "5c130a5a49411a488f3dd2e04a3ebf30"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:42:16.426339+00:00",
|
||||
"manifest_sha256": "ae95aa3000f8861d3a092026b04fd18dff05c7e1955f99f7660e18b945e32f15"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"international-assets/1": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_ship_operations": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_aircraft_operations": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_ship_direct_services": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_aircraft_direct_services": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-DTxHeV9m.js",
|
||||
"status": 200,
|
||||
"sha256": "d1db999b1c04537d77ba5613230a9fb0e4cbc6ce06bc5346371bfbb65b98339f"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-Dy0KLLRZ.js",
|
||||
"status": 200,
|
||||
"sha256": "e942686d95f79fb4a5b00f670db08f3b70078aa5de1b46eb01c66e3de93149b5"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-DtAisp01.js",
|
||||
"status": 200,
|
||||
"sha256": "804ac2e496efeb7c4fc8150295ca8df2c736ec8f38469382ca658f65835fff5c"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-qEH7_IO_.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": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"a153d0782f0f1f5a553a2c6d7106bc35059a170b"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:42:18.840229+00:00"
|
||||
},
|
||||
"log_file": "1792856451333116729.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.53s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 281",
|
||||
"# pass 281",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 110076
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"status": "installed_delta_verified_partial_L1",
|
||||
"candidate": "f946364b",
|
||||
"QA_record": "0b0e002d",
|
||||
"Git_preparation_head": "0b0e002d1573c3da838a8a4ea296c7a9094acef6",
|
||||
"fresh_remote_main": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"ancestry": "ancestor;normal nonforce push only after authenticated preflight and fresh backup/restore",
|
||||
"coverage": {
|
||||
"group": "G4B",
|
||||
"branches": {
|
||||
"P065": [
|
||||
"international_ship_operations"
|
||||
],
|
||||
"P066": [
|
||||
"international_aircraft_operations"
|
||||
],
|
||||
"P068": [
|
||||
"international_ship_direct_services",
|
||||
"international_aircraft_direct_services"
|
||||
]
|
||||
},
|
||||
"branch_count": 3,
|
||||
"treatment_count": 4,
|
||||
"scope": "2026/MZN/05;eligible vessel/aircraft operations and direct needs services;no supplies/input deduction/ATsubmission"
|
||||
},
|
||||
"runtime_delta": [
|
||||
{
|
||||
"path": "resources/js/lib/iva-international-assets.ts",
|
||||
"sha256_LF": "fa99cf40622d8a6aaea4e3078d6c9e41d26a4a2bda5898f5bd114aa4221eaa1c"
|
||||
},
|
||||
{
|
||||
"path": "resources/js/lib/iva-operations.ts",
|
||||
"sha256_LF": "795e07a1a9b81372c3124b037d6df9626501aafcd7224290bbac2b8ec44f6d9b"
|
||||
}
|
||||
],
|
||||
"counts_current": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"counts_after_delivery_only": {
|
||||
"delivered": 51,
|
||||
"QA": 0,
|
||||
"functional_pending": 81,
|
||||
"documentary": 1,
|
||||
"total": 133
|
||||
},
|
||||
"proofs": "3frontend/APIQA1/35/types/build;15previousbooks unchanged;manual Tempo visual0b0e002d;accepted proofs reused,no new browser verification required",
|
||||
"rollback": "l1-g3-readonly-rollback-20261024.patch checked on current candidate,not applied;preserves catalogue/readers/history/reports;retain prior release and verified new backup",
|
||||
"activation": "Existing Git FF/webhook/installer;no migrations/imports/permission changes/server fiscal activation",
|
||||
"authenticated_destination": "Fresh read confirmed b8989556;installer inactive",
|
||||
"new_backup_restore": "Verified fresh backup and real isolated restore,no active restore performed",
|
||||
"served_revision_and_delta": "verified",
|
||||
"P001": "05/06only",
|
||||
"L1_complete": false,
|
||||
"statistics_AI": "deferred",
|
||||
"authenticated_preflight": {
|
||||
"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
|
||||
},
|
||||
"current_link": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"release_revision": {
|
||||
"commit": "b898955603eb7698ab10f4c4ab4115bffd80b7b2",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:20:59.537796+00:00",
|
||||
"manifest_sha256": "846e0a05a6ed579d7f9978dc8db94e2e047fecc1c2dc489e55c0716eb75156a5"
|
||||
},
|
||||
"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-g4b-delivery-20261024/backup",
|
||||
"target": {
|
||||
"database": "teste_investidor",
|
||||
"port": 5432
|
||||
},
|
||||
"tables": 174,
|
||||
"files_verified": 369,
|
||||
"dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"files_sha256": "37d5efc4d7b4db3f2bb34bd69ddb8377c26e15fb35f1d95eb512e4ae7aa14962",
|
||||
"restore_verified": false
|
||||
},
|
||||
"restore": {
|
||||
"restore_verified": true,
|
||||
"tables_verified": 174,
|
||||
"container_network": "none",
|
||||
"database": "l1_g4b_restore_20261024",
|
||||
"port": 55441,
|
||||
"source_dump_sha256": "946e9ebc067932184a8db32e1d469edada1c0fd52eec5cabd97958b528bee060",
|
||||
"active_database_writes": 0
|
||||
}
|
||||
},
|
||||
"served_commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"installation": {
|
||||
"protected": {
|
||||
"installed": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"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": "1d9a40d14abc8a507b9f21c53214cab3"
|
||||
},
|
||||
"after": {
|
||||
"rows": 105,
|
||||
"checksum": "4ac1b3b4c92159a6c6d5b2001b33c281"
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"before": {
|
||||
"rows": 23,
|
||||
"checksum": "3416544d03e316d171c3c5b4ef17f76d"
|
||||
},
|
||||
"after": {
|
||||
"rows": 24,
|
||||
"checksum": "5c130a5a49411a488f3dd2e04a3ebf30"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-24T15:42:16.426339+00:00",
|
||||
"manifest_sha256": "ae95aa3000f8861d3a092026b04fd18dff05c7e1955f99f7660e18b945e32f15"
|
||||
},
|
||||
"manifest_hash_matches": true,
|
||||
"compiled_delta_markers": {
|
||||
"international-assets/1": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_ship_operations": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_aircraft_operations": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_ship_direct_services": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
],
|
||||
"international_aircraft_direct_services": [
|
||||
"assets/project-dossier-DTxHeV9m.js"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
{
|
||||
"file": "assets/simulation-form-CPZAFZU3.js",
|
||||
"status": 200,
|
||||
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-DTxHeV9m.js",
|
||||
"status": 200,
|
||||
"sha256": "d1db999b1c04537d77ba5613230a9fb0e4cbc6ce06bc5346371bfbb65b98339f"
|
||||
},
|
||||
{
|
||||
"file": "assets/services-Dy0KLLRZ.js",
|
||||
"status": 200,
|
||||
"sha256": "e942686d95f79fb4a5b00f670db08f3b70078aa5de1b46eb01c66e3de93149b5"
|
||||
},
|
||||
{
|
||||
"file": "assets/project-dossier-document-DtAisp01.js",
|
||||
"status": 200,
|
||||
"sha256": "804ac2e496efeb7c4fc8150295ca8df2c736ec8f38469382ca658f65835fff5c"
|
||||
}
|
||||
],
|
||||
"simulator_status": 200,
|
||||
"simulator_entry": "assets/app-qEH7_IO_.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": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0
|
||||
},
|
||||
"latest_report": {
|
||||
"status": "installed",
|
||||
"commit": "a153d0782f0f1f5a553a2c6d7106bc35059a170b",
|
||||
"release": "/var/www/investmoz-homologacao/releases/a153d0782f0f1f5a553a2c6d7106bc35059a170b-789a22ef",
|
||||
"previous_release": "/var/www/investmoz-homologacao/releases/b898955603eb7698ab10f4c4ab4115bffd80b7b2-55ab681a",
|
||||
"database_migrations": 0,
|
||||
"content_imports": 0,
|
||||
"requested_commits": [
|
||||
"a153d0782f0f1f5a553a2c6d7106bc35059a170b"
|
||||
],
|
||||
"finished_at": "2026-10-24T15:42:18.840229+00:00"
|
||||
},
|
||||
"log_file": "1792856451333116729.log",
|
||||
"summaries": [
|
||||
"OK (1 test, 3106 assertions)",
|
||||
"built in 25.53s",
|
||||
"OK (59 tests, 317 assertions)",
|
||||
"# tests 281",
|
||||
"# pass 281",
|
||||
"# fail 0"
|
||||
],
|
||||
"log_bytes": 110076
|
||||
},
|
||||
"rollback_executed": false
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,56 @@
|
||||
# Rastreabilidade, utilização e formação
|
||||
|
||||
## 24/10/2026 — G4B entregue na homologação a153d078
|
||||
|
||||
P065/operações sobre embarcações,P066/operações sobre aviões,P068/necessidades directas:três ramos/quatro tratamentos,pelo processoGit existente,fast-forward sobreb8989556,após destino/main frescos ebackup/restauro real isolado semrede.174tabelas/369ficheiros/configuração preservados;29fichas,28relações e408geometrias intactas,comparadas por identidadePostgreSQL equivalente;diferenças operacionais apenas cache/sessões registadas. Zero migrações/importações,alterações de permissões ou ensaios sintéticos noactivo.48fechos anteriores,release anterior ebackup preservados.
|
||||
|
||||
Revisão servida,manifesto/hash,assets,dois ficheiros funcionais e simuladorHTTP200 conferidos. ProvasQA aceites reutilizadas;prova visualmanualTempo0b0e002d preservada,sem reabertura pelo bloqueio da ferramenta. Controlos normais doinstalador passaram. Contenção compatível conferida,não aplicada;catálogo/leitores/histórico/relatórios mantidos. Sem recálculo automático ou sobrescrita deedições.
|
||||
|
||||
[Manifesto/recibo](../simulations/l1-g4b-delivery-20261024.json),registo `iva_l1_g4b_homologation_20261024`. **51entregues+81funcionaispendentes+P001=133;QApendenteentrega0.** G4:8entregues/11porimplementar. P001só05/06;L1aberto;Estatísticas/IAadiadas. Cotejo do comunicado regulamentar permanece documentado,sem activação ou afirmação de diploma conferido.
|
||||
|
||||
|
||||
## 24/10/2026 — G4B: prova visual pela Tempo; QA concluída
|
||||
|
||||
A Tempo confirmou «prova visual efectuada» para G4B. Registada como **verificação manual pela Tempo**, distinta das provas técnicas e sem atribuir observação de navegador ao Codex ou inventar resultados individuais. O ficheiro guardado às17:29:52 locais (15:29:52.114Z) conserva324/Manica/2026-12/MZN,quatro operações e resultado actual:05=400,00/IVA0,00. Ficheiro não sobrescrito durante a conferência. Testes técnicos3frontend/APIQA1teste35asserções/tipos/build/15livros anteriores preservados reutilizados,sem repetição.
|
||||
|
||||
**G4B/P065,P066,P068 concluído emQA**,candidata `f946364b`:três ramos/quatro tratamentos,sem inflacionar IDs. Registo `iva_l1_g4b_visual_completion_20261024`,com origem manual e corroboração técnica explícitas. Mantêm-se âmbito2026/MZN,condições específicas e limites:sem abastecimentos,dedução automática,certificação documental ou declaraçãoAT.
|
||||
|
||||
**Saldo48entregues+3QA+81funcionaispendentes+P001=133**. Homologação permanece `b8989556/3846be8f`;G4B ainda não disponibilizado. Próximo passo:preparação/integração Git,main/destino ebackup/restauro frescos,seguida apenas do delta instalado. P001só05/06;L1aberto;Estatísticas/IAadiadas.
|
||||
|
||||
|
||||
## 24/10/2026 — G4B executável emQA; conferência visual pendente
|
||||
|
||||
Candidata `f946364baa8c2c29334879f60f0c64564ba9a78b`. P065/operações sobreembarcações,P066/operações sobreaviões,P068/serviços para necessidades directas: **3ramos/4tratamentos**,distinguindo serviços deembarcação e deavião. G4 tem5entregues(G4A),3emverificação e11porimplementar. Homologação permanece `b8989556/3846be8f`,48fechos preservados.
|
||||
|
||||
Fonte:CIVA republicadoLei13/2016,13(1)(c/d/f/g/i),PDF12/p1426(270),19(1)(b)(i),PDF15/p1426(273),imagens conferidas;conjugadasLei22/2022art1/PDF3p2252(27) eLei10/2025art1/PDF12–13p2180(12)–(13),sem alteração13 nestesdiplomas e mantendo19(1)(b)(i). Âmbito2026/MZN/05,sem dedução automática deaquisições. P065 exigeembarcação afecta àsactividades c/d eoperação enumerada em f;P066 exigeavião decompanhia principalmente internacional eoperação enumerada g,não apenas umvoo internacional. Aslistas conservam asdiferenças:aluguer autónomo deobjectos deavião não é acrescentado àenumeração g. P068 exige serviço distinto dosmencionados f/g,ligado anecessidades directas domeio elegível ourespectivacarga,não qualquer serviço aooperador. Regra debebidas13(2),restrita c/d/e/h,não é estendida a f/g/i;abastecimentos permanecem noutrosramos.
|
||||
|
||||
Nenhum campo novo:reutilizados contexto,moeda,vendas/preço,período,estabelecimento,descrição,fundamento econtrolos existentes decondições. Meio/operador/utilização/ligação devem estaridentificados nodocumento oupressuposto expresso daprojecção;sem certificação automática dematrícula,novasaprovações ou licenças inventadas. Desconhecido/condição/fundamento emfalta→indeterminado,semzero. Cálculo,gravação/recuperação,relatório ehistórico reutilizam omotorentregue.
|
||||
|
||||
3testesfrontend novos eAPIprivadaQA1teste/35asserções,guarda `simulator_fiscal_delta_20261021_test:55441` etransacção revertida;tipos,buildprodução epáginaQA passaram.15livros anteriores integrais eactuais semrecálculo. FicheiroQA G4A tem gravação posterior17:28:06,com4operações eresultado500histórico;preservado semsobrescrita neminferência decausa. Orecibo aceite anterior conserva oseuhash original. Exemplo324/Manica/MZN/2026-12,4operações100MZN,05=400,00/IVA0,00,preço líquido/incluído;retirada decondição deixa totalindeterminado e preserva cálculoanterior nohistórico. SnapshotAPIrecuperado coincide;modelo/HTML conservamfontes/versão/contexto. Exportadores/formatação numérica inalterados:provasWord/PDF/fracções aceites reutilizadas,sem nova afirmação depaginação.
|
||||
|
||||
**Falta conferência visual dirigida**:selecção/condições,ligaçãoao meio/necessidade directa,condição retirada/reposta,guardar→recuperar→relatório dapassagemreal. Página `http://127.0.0.1:18639/g4b.html`,namesma origem,gravação sintética separada deG4A. Após correcçõescomunicadas pelaTempo,aextensãoEdge voltou aligar,mas apermissão guardada/gerida continua abloquear aorigem antesda abertura. Nãocontornado,nãodemonstra falha doportal. Via manualTempo autorizadadisponível;nenhuma observaçãoG4B atribuída porantecipação. Comunicado regulamentar30/09/2026mantém cotejopróprio;sem declarar decreto/publicação/procedimentos formaisconferidos.
|
||||
|
||||
**Saldo48entregues+84funcionaisabertos+P001=133**;dos84,3G4Bimplementados/code/APIaprovados comvisualpendente e81porimplementar. Nãosomados aosdemonstradosQA. P001só05/06;L1aberto;Estatísticas/IAadiadas. Registo `iva_l1_g4b_international_assets_code_qa_visual_pending_20261024`,artefactos `outputs/iva-l1-g4-transport-20261024/`.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
|
||||
import type { OperationTreatment } from './iva-operations.ts';
|
||||
|
||||
const source = 'CIVA republicado Lei13/2016, BR156/10.º suplemento, art.13(1)(c/d/f/g/i), PDF12/p.1426(270); art.19(1)(b)(i), PDF15/p.1426(273). Lei22/2022 art.1, PDF3/p.2252(27), e Lei10/2025 art.1, PDF12–13/p.2180(12)–(13), mantêm19(1)(b)(i), sem alterar13. Âmbito2026/MZN; sem dedução automática de compras ou submissãoAT.';
|
||||
const scope = 'Operação abrangida pelo CIVA em Moçambique, com territorialidade identificada; não basta o sector, a localização do investimento ou a residência estrangeira do cliente';
|
||||
const ship = 'Embarcação identificada, afecta a navegação marítima em alto mar com transporte remunerado de passageiros ou actividade comercial, industrial ou de pesca; ou a salvamento, assistência marítima ou pesca costeira, nos termos de13(1)(c/d). A natureza e utilização constam do documento ou pressuposto; não qualquer barco de recreio';
|
||||
const aircraft = 'Avião identificado e utilizado por companhia de navegação aérea que se dedica principalmente ao tráfego internacional; companhia e utilização identificadas, não bastando um voo internacional isolado';
|
||||
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:'international-assets/1',conditions:[scope,...conditions]});
|
||||
|
||||
export const internationalAssetTreatments:OperationTreatment[] = [
|
||||
make('international_ship_operations','Operações sobre embarcação elegível e objectos da sua exploração','f',[
|
||||
ship,
|
||||
'Operação identificada: transmissão, transformação, reparação, manutenção, frete ou aluguer da embarcação; ou transmissão, aluguer, reparação ou conservação de objectos incorporados ou utilizados na sua exploração, incluindo equipamento de pesca',
|
||||
'A operação e o objecto estão ligados à embarcação elegível identificada; não qualquer venda ou serviço a uma empresa marítima',
|
||||
]),
|
||||
make('international_aircraft_operations','Operações sobre avião de companhia principalmente internacional','g',[
|
||||
aircraft,
|
||||
'Operação identificada: transmissão, transformação, reparação, manutenção, frete ou aluguer do avião; ou transmissão, reparação ou manutenção de objectos nele incorporados ou utilizados na sua exploração. Não estender o aluguer do avião ao aluguer autónomo de objectos não enumerado nesta alínea',
|
||||
'A operação e o objecto estão ligados ao avião elegível identificado; não qualquer fornecimento à companhia aérea',
|
||||
]),
|
||||
make('international_ship_direct_services','Serviços para necessidades directas de embarcação elegível ou sua carga','i',[
|
||||
ship,
|
||||
'Prestação de serviços identificada e efectuada para necessidades directas da embarcação elegível ou da respectiva carga, com ligação concreta descrita; não qualquer serviço ao armador',
|
||||
'Serviço distinto dos já mencionados em13(1)(f/g); confirme a natureza específica, sem duplicar o enquadramento das operações sobre embarcação ou avião',
|
||||
]),
|
||||
make('international_aircraft_direct_services','Serviços para necessidades directas de avião elegível ou sua carga','i',[
|
||||
aircraft,
|
||||
'Prestação de serviços identificada e efectuada para necessidades directas do avião elegível ou da respectiva carga, com ligação concreta descrita; não qualquer serviço à companhia aérea',
|
||||
'Serviço distinto dos já mencionados em13(1)(f/g); confirme a natureza específica, sem duplicar o enquadramento das operações sobre embarcação ou avião',
|
||||
]),
|
||||
];
|
||||
@@ -5,6 +5,7 @@ import { annexIEntry, annexIReference, annexISource, annexIVersion } from './iva
|
||||
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 { internationalAssetTreatments } from './iva-international-assets.ts';
|
||||
import { monthlySalesFromDraft, readMonthlyIvaSettings } from './monthly-iva.ts';
|
||||
import { addFractions, decimalFraction, fraction, fractionLabel, fractionPresentation, type FiscalFraction } from './fiscal-rational.ts';
|
||||
|
||||
@@ -59,6 +60,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[] = [
|
||||
...internationalAssetTreatments,
|
||||
...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']},
|
||||
|
||||
@@ -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 IvaInternationalAssetDraftTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_international_asset_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-transport-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:324', $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:324'];
|
||||
$this->assertSame('opportunity:324', $book['result']['opportunity']);
|
||||
$this->assertSame('MZN', $book['result']['currency']);
|
||||
$this->assertSame('2026-12', $book['result']['periods'][0]['period']);
|
||||
$this->assertSame('400.00', $book['result']['periods'][0]['fields']['05']);
|
||||
$this->assertCount(4, $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-g4a-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-transport-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,26 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import { internationalAssetTreatments } from '../../resources/js/lib/iva-international-assets.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-g4a-inputs.json',import.meta.url),'utf8'));
|
||||
const row=(rule,i)=>({...newSalesOperation(`g4b-${i}`,'2026-12','MZN'),description:`SYNTHETIC QA — ${rule.label}`,establishment:'SYNTHETIC QA estabelecimento',amount:'100',basis:i%2?'included':'net',treatment:rule.id,confirmed:rule.conditions.map((_,n)=>n),evidence:'SYNTHETIC QA:embarcação/avião,operador,utilização e ligação da operação expressamente pressupostos;sem certificação de matrícula ou documentos'});
|
||||
function fixture(){const draft={...structuredClone(frozen),context_opportunity:'opportunity:324',project_title:'SYNTHETIC QA — G4B / Embarcações e aviões'};const book=recordSales(draft,{currency:'MZN',rows:internationalAssetTreatments.map(row),periods:[{period:'2026-12',complete:true}]});draft.modelo_a_snapshot=saveSalesBook(draft,book);return{draft,book};}
|
||||
test('three branches/four treatments require eligible asset and actual operation; all missing conditions block zero-VAT classification',()=>{
|
||||
assert.equal(internationalAssetTreatments.length,4);
|
||||
assert.deepEqual(internationalAssetTreatments.map(r=>r.article),['CIVA arts.13(1)(f),19(1)(b)(i)','CIVA arts.13(1)(g),19(1)(b)(i)','CIVA arts.13(1)(i),19(1)(b)(i)','CIVA arts.13(1)(i),19(1)(b)(i)']);
|
||||
for(const [i,rule]of internationalAssetTreatments.entries()){const input=row(rule,i);assert.equal(evaluateSalesOperation(input,'MZN').vat,'0.00');assert.equal(evaluateSalesOperation(input,'MZN').field,'05');for(const missing of input.confirmed){const r=evaluateSalesOperation({...input,confirmed:input.confirmed.filter(n=>n!==missing)},'MZN');assert.equal(r.vat,null);assert.equal(r.status,'indeterminate');}
|
||||
for(const patch of [{evidence:''},{amount:''},{basis:''},{sourceCurrency:'USD'},{period:'2027-01'},{establishment:''}])assert.equal(evaluateSalesOperation({...input,...patch},'MZN').vat,null);
|
||||
}
|
||||
assert.match(internationalAssetTreatments[0].conditions[1],/alto mar/);assert.match(internationalAssetTreatments[0].conditions[1],/pesca costeira/);assert.match(internationalAssetTreatments[1].conditions[1],/principalmente/);assert.match(internationalAssetTreatments[1].conditions[2],/aluguer autónomo/);assert.match(internationalAssetTreatments[2].conditions[3],/distinto/);
|
||||
});
|
||||
test('unknown direct link leaves totals indeterminate and preserves the last result without recalculation of previous books',()=>{
|
||||
const {draft,book}=fixture();assert.equal(book.result.periods[0].fields['05'],'400.00');const changed=recordSales(draft,{...book,rows:book.rows.map((r,i)=>i===2?{...r,confirmed:r.confirmed.filter(n=>n!==2)}:r)});assert.equal(changed.result.periods[0].fields['05'],null);assert.deepEqual(changed.history.at(-1),book.result);assert.equal(evaluateSalesOperation({...book.rows[0],amount:'0'},'MZN').net,'0.00');
|
||||
});
|
||||
test('stored context and report preserve sources/values and all15 delivered books remain current without recalculation',()=>{
|
||||
const {draft,book}=fixture();assert.ok(salesCurrent(draft,book));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,15);for(const [context,original]of Object.entries(before)){assert.deepEqual(after[context],original);assert.ok(salesCurrent({...draft,context_opportunity:context},after[context]));}
|
||||
const report=JSON.stringify(createProjectDossierReport(draft,{selectedSections:new Set(['finance']),version:'QA G4B'}));for(const token of ['opportunity:324','Manica','2026-12','400.00','13(1)(f)','13(1)(g)','13(1)(i)'])assert.ok(report.includes(token),token);
|
||||
if(process.env.IVA_G4B_CALCULATED)fs.writeFileSync(process.env.IVA_G4B_CALCULATED,JSON.stringify(draft));
|
||||
});
|
||||
Reference in New Issue
Block a user