{ "schema_permissions_comparison": { "schema_sha256": "5045b3e51d2185377aa3d9ac7fa07a44fad3ec620cdfa83ffe31c8884ee1601d", "roles_grants_sha256": "1530c33cb016e67bfdc64891ddfce7f185b13b56b2cd87c012871a685e118109", "filesystem_permissions": { ".env": { "mode": 416, "uid": 1001, "gid": 33 }, "storage": { "mode": 1533, "uid": 1001, "gid": 33 }, "storage/app": { "mode": 1533, "uid": 1001, "gid": 33 }, "bootstrap/cache": { "mode": 1528, "uid": 1001, "gid": 33 } }, "comparison_identity": "postgres;catalogue read only;no passwords collected", "unchanged": true }, "status": "installed_grouped_ISPC_residual_delta_verified", "authorization": "Tempo: deliver grouped residual delta through Git with fresh backup/restore and delta verification; preserve habitual6af and L3; not full IRPS/ISPC completion.", "candidate_installed": "5c0cb25cea7826811c389b55a64bcdf5e43b937f", "previous_installed": "6af7092e83b9b3932712aa7a9f527393fcec4da8", "fresh_backup": { "stage": "/var/backups/investmoz-ispc-residual-delivery-20261025/backup", "created_at": "2026-10-25T16:20:55Z", "target": { "database": "teste_investidor", "port": 5432 }, "tables": 174, "files_verified": 369, "dump_sha256": "027d5dfdd06b317c9b480b1673b1b55b91cfb222f2720d039d62801733773cfe", "files_sha256": "1857e41142879c97b0166277546dc01880326dbe832e5520a871cfbf19796d41", "restore_verified": false }, "isolated_restore": { "restore_verified": true, "tables_verified": 174, "container_network": "none", "database": "ispc_residual_restore_20261025", "port": 55441, "source_dump_sha256": "027d5dfdd06b317c9b480b1673b1b55b91cfb222f2720d039d62801733773cfe", "active_database_writes": 0 }, "authenticated_preflight": { "free_bytes": 6490124288, "existing_pipeline_minimum_bytes": 5368709120, "space_guard_satisfied": true, "installed": { "status": "installed", "commit": "6af7092e83b9b3932712aa7a9f527393fcec4da8", "release": "/var/www/investmoz-homologacao/releases/6af7092e83b9b3932712aa7a9f527393fcec4da8-647c8e2e", "previous_release": "/var/www/investmoz-homologacao/releases/fa32a2b9e127da9c4d764dd99ef58ee43b770aa6-ad33eeab", "database_migrations": 0, "content_imports": 0 }, "current_link": "/var/www/investmoz-homologacao/releases/6af7092e83b9b3932712aa7a9f527393fcec4da8-647c8e2e", "release_revision": { "commit": "6af7092e83b9b3932712aa7a9f527393fcec4da8", "branch": "main", "built_at": "2026-10-25T15:29:39.962545+00:00", "manifest_sha256": "0761702f0aa0f54dd4e7dac14efadf290830c52a5762a97733d82f5332fb44a8" }, "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" }, "installed_protected_delta": { "installed": { "status": "installed", "commit": "5c0cb25cea7826811c389b55a64bcdf5e43b937f", "release": "/var/www/investmoz-homologacao/releases/5c0cb25cea7826811c389b55a64bcdf5e43b937f-32c4fd00", "previous_release": "/var/www/investmoz-homologacao/releases/6af7092e83b9b3932712aa7a9f527393fcec4da8-647c8e2e", "database_migrations": 0, "content_imports": 0 }, "runtime_files_verified": 7, "L3_unchanged_runtime_files_verified": 16, "documentary_files_verified": 21, "persistent_files_and_env_verified": 369, "tables_compared": 174, "changed_tables": { "cache": { "before": { "rows": 106, "checksum": "22eb03056dae006c1c92badee23e6109" }, "after": { "rows": 106, "checksum": "eec58e1179f9023ab578cd1401bca5de" } }, "sessions": { "before": { "rows": 9, "checksum": "cc0d72daaa3994d422a41cc7c84a5f60" }, "after": { "rows": 10, "checksum": "98394985102c0779844faa9d537a7b53" } } }, "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 }, "installed_public": { "status": "installed_delta_verified", "served_revision": { "commit": "5c0cb25cea7826811c389b55a64bcdf5e43b937f", "branch": "main", "built_at": "2026-10-25T16:24:27.707113+00:00", "manifest_sha256": "385a289f9ba26a632aa0164fbba3913cc8dc2fb891641881fc8d2dcda1951626" }, "manifest_hash_matches": true, "compiled_delta_markers": { "Calcular e guardar operações ocasionais": [ "assets/services-Cvwv29Mo.js" ], "Calcular e guardar parcela excedente": [ "assets/services-Cvwv29Mo.js" ], "Preparar e guardar campos B–Geral": [ "assets/services-Cvwv29Mo.js" ], "Descarregar preparação B–Geral": [ "assets/services-Cvwv29Mo.js" ], "Calcular e guardar apuramento trimestral ISPC": [ "assets/services-Cvwv29Mo.js" ], "Calcular e guardar restituição E": [ "assets/services-Cvwv29Mo.js" ], "Calcular e guardar acompanhamento D": [ "assets/services-Cvwv29Mo.js" ], "Calcular e guardar substituições C": [ "assets/services-Cvwv29Mo.js" ] }, "assets": [ { "file": "assets/services-Cvwv29Mo.js", "status": 200, "sha256": "aa51139b6509bd66927a578e88cd115f497f80f9ae6406d6fb84db7df858340c" }, { "file": "assets/project-dossier-BJrlh6zA.js", "status": 200, "sha256": "e800e5bd5bcbb18cb417db0796c9c3e85600fd65c79b9808577148c4805eb3dc" }, { "file": "assets/simulation-form-BqVD91Ek.js", "status": 200, "sha256": "85cbd533c5bc92af5a448db71da006d4346d2d0adb09dde825db0aa19ad5048c" }, { "file": "assets/project-dossier-document-kUHwyL01.js", "status": 200, "sha256": "575c47d1ad13193cabc84b43fe555551fba677fb617f57c0f7445dc2d0409f98" } ], "simulator_status": 200, "simulator_entry": "assets/app-DmFRsc4U.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" }, "operational_delta": { "status": "operational_delta_reconciled", "comparison_identity": "postgres before/after;isolated restored baseline;no RLS visibility inference", "cache": "queue:restart value/expiry and request-throttle counter/timer pair;no deleted cache rows", "sessions": "anonymous sessions created by exact delivery verification user-agent", "delta": { "cache": { "before_rows": 106, "after_rows": 106, "changes": [ { "key_sha256": "8d6ea77eb4b34d86d207362d583cfa8bf2880b907becd9b00398964482c6b4bd", "kind": "updated", "fields": [ "value", "expiration" ], "key_pattern": "investemoz-cache-{hash}", "is_queue_restart_key": false, "expiration_unchanged": false, "throttle_timer_pair": true }, { "key_sha256": "2f251473865d14b953236ab95b1521764754d76abd79b58ca7d38c96dfe2fab1", "kind": "updated", "fields": [ "value", "expiration" ], "key_pattern": "investemoz-cache-{hash}:timer", "is_queue_restart_key": false, "expiration_unchanged": false, "throttle_timer_pair": true }, { "key_sha256": "7f7dd83f47f5bf404d55e6e9f1367948721579970b195680645e356031a070ff", "kind": "updated", "fields": [ "value", "expiration" ], "key_pattern": "investemoz-cache-illuminate:queue:restart", "is_queue_restart_key": true, "expiration_unchanged": false, "throttle_timer_pair": false } ] }, "sessions": { "before_rows": 9, "after_rows": 12, "changes": [ { "key_sha256": "b7fa07a8ea67586994a66f15ffcc4d1a0df81fbe07dc8ade44bfdba20db30651", "kind": "added", "fields": [ "id", "ip_address", "user_agent", "payload", "last_activity" ], "anonymous_user": true, "delivery_user_agent": true }, { "key_sha256": "eb22f458a6354ff34d4e80ede2a4c9f3a81c4fa1be35f34fae1dc8d9f20dc294", "kind": "added", "fields": [ "id", "ip_address", "user_agent", "payload", "last_activity" ], "anonymous_user": true, "delivery_user_agent": true }, { "key_sha256": "4a0a44f3b0a78e66a5aac0587d8474f21e26cc91018361267b795afcbea203a2", "kind": "added", "fields": [ "id", "ip_address", "user_agent", "payload", "last_activity" ], "anonymous_user": true, "delivery_user_agent": true } ] } }, "business_tables_to_confirm_separately": 172, "active_data_writes_by_comparison": 0, "restore_network": "none" }, "pipeline_status": { "service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n", "installed": { "status": "installed", "commit": "5c0cb25cea7826811c389b55a64bcdf5e43b937f", "release": "/var/www/investmoz-homologacao/releases/5c0cb25cea7826811c389b55a64bcdf5e43b937f-32c4fd00", "previous_release": "/var/www/investmoz-homologacao/releases/6af7092e83b9b3932712aa7a9f527393fcec4da8-647c8e2e", "database_migrations": 0, "content_imports": 0 }, "latest_report": { "status": "installed", "commit": "5c0cb25cea7826811c389b55a64bcdf5e43b937f", "release": "/var/www/investmoz-homologacao/releases/5c0cb25cea7826811c389b55a64bcdf5e43b937f-32c4fd00", "previous_release": "/var/www/investmoz-homologacao/releases/6af7092e83b9b3932712aa7a9f527393fcec4da8-647c8e2e", "database_migrations": 0, "content_imports": 0, "requested_commits": [ "5c0cb25cea7826811c389b55a64bcdf5e43b937f" ], "finished_at": "2026-10-25T16:24:30.738299+00:00" }, "log_file": "1792945281843706519.log", "summaries": [ "OK (1 test, 3106 assertions)", "built in 29.13s", "OK (59 tests, 317 assertions)", "# tests 801", "# pass 801", "# fail 0" ], "log_bytes": 231911 }, "runtime_delta": [ { "path": "resources/js/lib/ispc-residuals.ts", "sha256_LF": "40d5751c06c7c155ab4b7a17ee2d1653da2fbbf075807fbb8561cdbe19820955" }, { "path": "resources/js/components/simulation-ispc-residuals.tsx", "sha256_LF": "a9219d6f41ccbd0ce45659d4f6aa0fa1c169a685840f5cb1e18daeca377d5e18" }, { "path": "resources/js/components/simulation-form.tsx", "sha256_LF": "07f7d0d73993ffc2924f1b9b2d21cbc53fb7c95aab959c0820fd7dbc35a1fffa" }, { "path": "resources/js/lib/project-dossier.ts", "sha256_LF": "beca4eebd3959afa520061f231de25d064723537bd98deb541712ab448eba369" }, { "path": "resources/js/lib/ispc-eligibility.ts", "sha256_LF": "44675c5efacdc1ae19505667611ba3b522d3043cebacc8754597c3a68ca89d25" }, { "path": "resources/js/components/simulation-ispc-quarter.tsx", "sha256_LF": "2c2555309b32d4261f14e7164f39314c9188129c2990357fc54090a2468dd2b4" }, { "path": "resources/js/components/simulation-ispc-withholding.tsx", "sha256_LF": "e0445d015b72859e48726959aa52686f79b1cf5c2ade29751efa83257068b878" } ], "accepted_QA_proofs_reused": { "preservation_before_tests": "outputs/ispc-residuals-20261025/preservation-before-tests.json", "new_frontend_distinct": 19, "frontend_proofs": [ "frontend-final.txt:14passed", "directed-final.txt:1additionalpass", "directed-retention-form.txt:1additionalpass", "directed-known-exclusions.txt:1additionalpass", "directed-dispensation-form.txt:1additionalpass", "directed-liberatory-history.txt:1additionalpass" ], "API": "1test/22assertionspassed;QAloopback55441/simulator_fiscal_delta_20261021_test;DatabaseTransactionsrollback;APP_BASE_PATHcandidateexplicit", "UI": "Vendedor376/adquirente375separados;3000/5000/20000/25000;guardar→recuperar→relatório;B–Geralpreparadodescarregado;visibilidadeapenasdascondiçõesafectadasverificada", "UI_proofs": [ "ui-own-report.txt", "ui-acquisition-report.txt", "ui-occasional-applicability.txt", "ui-regular-applicability.txt", "preparation.html" ], "types": "exit0;types-final.txt", "build": "exit0;build-final.txt", "habitual_re_evaluation": "not repeated;arithmetic engines unchanged;24000snapshotpreservedexactly;onlyconditionalvisibilitydeltaexamined" }, "manual_functional_tests_repeated": false, "pipeline_checks": "Mandatory existing Git pipeline checks only.", "available": [ "Operações ocasionais próprias no âmbito demonstrado, sem segunda prestação sobre retenção liberatória documentada.", "Parcela excedente no caso IRPS qualificado demonstrado; sem taxa automática para outros enquadramentos.", "Preparação/exportação B–Geral com documentos e histórico." ], "remaining_calculations": [ { "item": "Juros compensatórios", "state": "montante documentado pode ser conservado;fórmula ainda não implementada", "needed": "regra/taxa/base/período/dias efectivamente aplicáveis,no documento/instrução correspondente;sem zero ou taxa presumidos" }, { "item": "Outros enquadramentos da parcela excedente", "state": "sem fórmula genérica;casos diferentes do acto isolado qualificado não recebem taxa automática", "needed": "natureza,regime do fornecedor,opção aplicável,base e suporte concretos;encaminhar para o cálculo próprio quando for outro regime,não bloquear o caso positivo implementado" } ], "remaining_formal_correspondences_instructions": [ { "item": "Quadro2doB–Geral", "needed": "correspondência concreta do mês/ano a inscrever para o trimestre;comunicado fornece meses de pagamento,que não são copiados automaticamente para período" }, { "item": "Dispensa inferior500MZN noB–Geral", "needed": "Representação declarativa do imposto apurado com prestação dispensada10-A;sem preencher montanteapurado comozero porpresunção. O cálculo imposto/prestação jáestá implementado." }, { "item": "Entrega de retenções", "needed": "modelo/código/instrução próprios12(3)ISPCe57(2k)IRPS;B–Geraldeapoio nãoéapresentadocomocorrespondênciacompletadestasretenções" }, { "item": "Regulamentação2026/instruções de envio de facturas", "needed": "texto/exemplar/instrução concreta quando disponibilizado;comunicado transitório já implementado,não se mantém pesquisa genérica como aprovação adicional" }, { "item": "Submissão e pagamento", "needed": "actos externos e comprovativos reais;nenhuma operaçãoATfoiexecutadaemQA" } ], "external_to_portal": "Actos da AT: exportação não equivale a submissão, recepção, aceitação ou pagamento.", "ISPC_integrally_completed": false, "IRPS_integrally_completed": false, "schema_migrations": 0, "content_imports": 0, "preserved_L3_amounts_MZN": { "documentary": 16, "deduction_this_route": 0, "recognised": 12, "received": 7, "awaiting": 5 }, "residuals": "L3residuals in existing matrix;P001/P058 nonblocking;P084/P085 closed;statistics/AI deferred.", "proof_hashes": { "outputs/ispc-residual-delivery-20261025/backup.txt": "2c5838cda547495dee6ac3acc1971457b4d6a34399766c142e13501ac16fac61", "outputs/ispc-residual-delivery-20261025/installed-protected.txt": "95a376d4970744f3a0f02757870968f989d87b3549f6aa841676ddf38df4bddf", "outputs/ispc-residual-delivery-20261025/installed-public-delta.json": "f092efaeb3091d3fc345ab2979a5f3fa3ee8ed644d05175e45f393fb78910ac7", "outputs/ispc-residual-delivery-20261025/installed-public.txt": "88facda241ab71035c481c9cc2d4a21c0c2fe5eb4d703d88ffa8557c7602dcb3", "outputs/ispc-residual-delivery-20261025/integration.txt": "52d05eed26351310f897d3b647c605e6fdb0b7d6a570487ff6f7b8a3c11287ed", "outputs/ispc-residual-delivery-20261025/manifest-served.json": "385a289f9ba26a632aa0164fbba3913cc8dc2fb891641881fc8d2dcda1951626", "outputs/ispc-residual-delivery-20261025/operational-delta.txt": "7ba0c56bd9395003f7b384683ee106d00dfa500d98ce61e45d5057548e9451dc", "outputs/ispc-residual-delivery-20261025/preflight.txt": "f05ba4c7c5e636da470a6aeb63332d5a673807d2493213df98ef016acef0770d", "outputs/ispc-residual-delivery-20261025/preparation.json": "49e3ade28b69afddb94cf3076964c8bf61197ae201d4eecb9b1619962c9f8a2d", "outputs/ispc-residual-delivery-20261025/progress.txt": "db8b637be9106ed97abbca2ccef38729509a47f2ee006784e2f6f0a0a485bd87", "outputs/ispc-residual-delivery-20261025/restore.txt": "093b66c345788125f01f02aa93867812a3587107515b5592f7aa999cf3f437cc", "outputs/ispc-residual-delivery-20261025/schema-permissions-after.txt": "76b5a4d8af11e4898a205062766cfb7ab6ec0783200e77e60a1927aa1ca18597", "outputs/ispc-residual-delivery-20261025/schema-permissions-before.txt": "0ab7c964792acdd8917bce256c472e55e034b103500a58b49f020b5084823ed7", "outputs/ispc-residual-delivery-20261025/status-final.txt": "3f0db035a0d53507176ff8af6f9361c813fe0f64975c61f91ea48a6b53ab5ea5", "outputs/ispc-residual-delivery-20261025/status1.txt": "33f1595c6ab8b9f6e6231e2c54ae78c171dbb560e24dc305180061d8a04a5425", "outputs/ispc-residual-delivery-20261025/status2.txt": "7d9f4cb894d96915b622734a2b39f70df8ef0832337f92136e010f51a5abda6d", "outputs/ispc-residual-delivery-20261025/status3.txt": "8414250023b01144b3d2cdabe21e7ad35c89aee6883b938950b50f6642ba0203", "outputs/ispc-residual-delivery-20261025/status4.txt": "0d8002ce39bc890aade37606652c68c7b10bc05db3372da770aab879cce1742d", "outputs/ispc-residual-delivery-20261025/status5.txt": "0d8002ce39bc890aade37606652c68c7b10bc05db3372da770aab879cce1742d", "outputs/ispc-residual-delivery-20261025/status6.txt": "0d8002ce39bc890aade37606652c68c7b10bc05db3372da770aab879cce1742d", "outputs/ispc-residual-delivery-20261025/status7.txt": "3f0db035a0d53507176ff8af6f9361c813fe0f64975c61f91ea48a6b53ab5ea5" } }