docs(iva): record G2G G2H homologation delivery and preserved balance

This commit is contained in:
2026-10-24 15:15:49 +02:00
parent d4eae917ee
commit 7696af6814
4 changed files with 513 additions and 9 deletions
@@ -6182,5 +6182,269 @@
"report-qa.png": "58dc4e267145def3b2700807922598cc70448c01c756cf808d9e3399fbfdd83a",
"ui-calculated.json": "778b127532976cf6d3b8c672f05dd2a8973ef79afa3ae26f37832b34a9012367"
}
},
"iva_l1_g2gh_homologation_20261024": {
"status": "installed_delta_verified",
"served_commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"previous_main": "9a56d982423d0c244850f8638290a1ce8a968619",
"groups": [
"G2G",
"G2H"
],
"new_branches": [
"P010",
"P026",
"P027",
"P031",
"P032"
],
"new_treatments": 24,
"counts": {
"delivered": 29,
"QA": 0,
"functional_pending": 103,
"documentary": 1,
"total": 133
},
"backup": {
"stage": "/var/backups/investmoz-l1-g2gh-delivery-20261024/backup",
"target": {
"database": "teste_investidor",
"port": 5432
},
"tables": 174,
"files_verified": 369,
"dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
"files_sha256": "57bcb40faf4cb5e14b0aa13eb8b274f222e51bc3cd5fd17e07d70e87165e2b94",
"restore_verified": false
},
"restore": {
"restore_verified": true,
"tables_verified": 174,
"container_network": "none",
"database": "l1_g2gh_restore_20261024",
"port": 55441,
"source_dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
"active_database_writes": 0
},
"installer": {
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
"installed": {
"status": "installed",
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
"database_migrations": 0,
"content_imports": 0
},
"latest_report": {
"status": "installed",
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
"database_migrations": 0,
"content_imports": 0,
"requested_commits": [
"d4eae917ee9c9d37f0339905a96c1e35480f324e"
],
"finished_at": "2026-10-24T13:15:14.273272+00:00"
},
"log_file": "1792847626452821855.log",
"summaries": [
"OK (1 test, 3106 assertions)",
"built in 26.20s",
"OK (59 tests, 317 assertions)",
"# tests 259",
"# pass 259",
"# fail 0"
],
"log_bytes": 103542
},
"preservation": {
"installed": {
"status": "installed",
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
"database_migrations": 0,
"content_imports": 0
},
"runtime_files_verified": 1,
"persistent_files_and_env_verified": 369,
"tables_compared": 174,
"changed_tables": {
"cache": {
"before": {
"rows": 105,
"checksum": "316356979dc340fc5f141679bdee5c0d"
},
"after": {
"rows": 105,
"checksum": "39b6357efbe3142e8d0e55b5fac6a935"
}
},
"sessions": {
"before": {
"rows": 11,
"checksum": "787de58f2b0436566c2ad27161a8a759"
},
"after": {
"rows": 14,
"checksum": "ba1aa4ceaf894c62a66a4186ae4e9ddc"
}
}
},
"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_delta": {
"status": "installed_delta_verified",
"served_revision": {
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"branch": "main",
"built_at": "2026-10-24T13:15:11.725340+00:00",
"manifest_sha256": "4018026aac013855f2c9baf9258ed96e1b1bf808d996e8fa8eec9458ea6b35c7"
},
"manifest_hash_matches": true,
"compiled_delta_markers": {
"public_security": [
"assets/project-dossier-PaHmg6s9.js"
],
"official_military_supplies": [
"assets/project-dossier-PaHmg6s9.js"
],
"sisa_subject_operation": [
"assets/project-dossier-PaHmg6s9.js"
],
"exempt_activity_asset_sale": [
"assets/project-dossier-PaHmg6s9.js"
],
"no_deduction_right_asset_sale": [
"assets/project-dossier-PaHmg6s9.js"
],
"excluded_deduction_asset_sale": [
"assets/project-dossier-PaHmg6s9.js"
],
"maize": [
"assets/project-dossier-PaHmg6s9.js"
],
"maize_flour": [
"assets/project-dossier-PaHmg6s9.js"
],
"rice": [
"assets/services-CVvFKfag.js",
"assets/project-dossier-PaHmg6s9.js"
],
"bread": [
"assets/project-dossier-PaHmg6s9.js"
],
"iodised_salt": [
"assets/project-dossier-PaHmg6s9.js"
],
"infant_powdered_milk": [
"assets/project-dossier-PaHmg6s9.js"
],
"wheat": [
"assets/project-dossier-PaHmg6s9.js"
],
"wheat_flour": [
"assets/project-dossier-PaHmg6s9.js"
],
"fresh_chilled_tomato": [
"assets/project-dossier-PaHmg6s9.js"
],
"potato": [
"assets/project-dossier-PaHmg6s9.js"
],
"onion": [
"assets/project-dossier-PaHmg6s9.js"
],
"frozen_horse_mackerel": [
"assets/project-dossier-PaHmg6s9.js"
],
"lighting_kerosene": [
"assets/project-dossier-PaHmg6s9.js"
],
"domestic_lpg": [
"assets/project-dossier-PaHmg6s9.js"
],
"jet_fuel": [
"assets/project-dossier-PaHmg6s9.js"
],
"eligible_bicycles": [
"assets/project-dossier-PaHmg6s9.js"
],
"condoms": [
"assets/project-dossier-PaHmg6s9.js"
],
"insecticides": [
"assets/project-dossier-PaHmg6s9.js"
],
"listed_": [
"assets/project-dossier-PaHmg6s9.js"
],
"iva-operations-l1/2": [
"assets/project-dossier-PaHmg6s9.js"
]
},
"assets": [
{
"file": "assets/services-CVvFKfag.js",
"status": 200,
"sha256": "3ce2515eb4d53e8c2da3f10fdca2bfea208d801616813e6dcd18331b7d25c048"
},
{
"file": "assets/simulation-form-CPZAFZU3.js",
"status": 200,
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
},
{
"file": "assets/project-dossier-PaHmg6s9.js",
"status": 200,
"sha256": "9fce800b1b9805b436a1d3801f8a596ad8c879604ac193d2af6cfb546d15c7e8"
},
{
"file": "assets/project-dossier-document-CNebL8r6.js",
"status": 200,
"sha256": "242eebf5c9d9dac52eb0b53009013705058cfd62aeb0c576e4cdb6cad7619c5f"
}
],
"simulator_status": 200,
"simulator_entry": "assets/app-gy0vGuME.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"
},
"accepted_QA_reused": true,
"manual_accepted_tests_repeated": false,
"private_synthetic_active_writes": 0,
"access_changes": false,
"P001_blocks_independent": false,
"L1_complete": false,
"statistics_AI": "deferred",
"artifacts": {
"preflight.txt": "cfde5fa41c3efc90f0012939b794ad71ed42a90a8db68567f46ca2ae201b9b5d",
"backup.txt": "608d71a59c59a26d81b566325aaa20922baafb0576ce8bb0f0d6c202562bc4e5",
"restore.txt": "029a3ef7f7c2abf63d35c9fd3a6cba9c0b6791c52e6a82cd029577f2a205b6e1",
"git-before.json": "dec9a7c9787e0600fec5106c466bc20638c160eba5408a1297a0bfb84f1a9708",
"install-status-final.txt": "2c55e27e1f7091a1fd51834791b299ee755b3d80c1f27a9435c894699ca21b15",
"installed-protected.txt": "888b100dfa6d7e3120384a41715cb4547048b697af4157a4534a7611dad67863",
"installed-public-delta.json": "69250defa1f92d6a2c6e034d99650b967c22b15b35f18ca64e00fefa56a36913",
"manifest-served.json": "4018026aac013855f2c9baf9258ed96e1b1bf808d996e8fa8eec9458ea6b35c7"
}
}
}
@@ -1,5 +1,5 @@
{
"status": "ready_for_authorized_Git_delivery",
"status": "installed_delta_verified_partial_L1",
"candidate": "b297058d11aee206530492a65f86e3d58eb5ba15",
"base_remote_main": "9a56d982423d0c244850f8638290a1ce8a968619",
"fresh_fetch": "main9a56d982;ancestor;no concurrent advance detected",
@@ -136,8 +136,236 @@
"active_database_writes": 0
}
},
"installed_delta": "pending",
"installed_delta": "verified",
"L1_complete": false,
"statistics_AI": "deferred",
"rollback_compatibility": "gitapplycheckpassed;notapplied;keepcatalogueandreaders;previousreleaseandverifiedbackupavailable"
"rollback_compatibility": "gitapplycheckpassed;notapplied;keepcatalogueandreaders;previousreleaseandverifiedbackupavailable",
"served_commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"installation": {
"backup": {
"stage": "/var/backups/investmoz-l1-g2gh-delivery-20261024/backup",
"target": {
"database": "teste_investidor",
"port": 5432
},
"tables": 174,
"files_verified": 369,
"dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
"files_sha256": "57bcb40faf4cb5e14b0aa13eb8b274f222e51bc3cd5fd17e07d70e87165e2b94",
"restore_verified": false
},
"restore": {
"restore_verified": true,
"tables_verified": 174,
"container_network": "none",
"database": "l1_g2gh_restore_20261024",
"port": 55441,
"source_dump_sha256": "ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40",
"active_database_writes": 0
},
"installer": {
"service": "ExecMainStatus=0\nActiveState=inactive\nSubState=dead\n",
"installed": {
"status": "installed",
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
"database_migrations": 0,
"content_imports": 0
},
"latest_report": {
"status": "installed",
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
"database_migrations": 0,
"content_imports": 0,
"requested_commits": [
"d4eae917ee9c9d37f0339905a96c1e35480f324e"
],
"finished_at": "2026-10-24T13:15:14.273272+00:00"
},
"log_file": "1792847626452821855.log",
"summaries": [
"OK (1 test, 3106 assertions)",
"built in 26.20s",
"OK (59 tests, 317 assertions)",
"# tests 259",
"# pass 259",
"# fail 0"
],
"log_bytes": 103542
},
"protected_preservation": {
"installed": {
"status": "installed",
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"release": "/var/www/investmoz-homologacao/releases/d4eae917ee9c9d37f0339905a96c1e35480f324e-afcda0da",
"previous_release": "/var/www/investmoz-homologacao/releases/9a56d982423d0c244850f8638290a1ce8a968619-19d0ea6c",
"database_migrations": 0,
"content_imports": 0
},
"runtime_files_verified": 1,
"persistent_files_and_env_verified": 369,
"tables_compared": 174,
"changed_tables": {
"cache": {
"before": {
"rows": 105,
"checksum": "316356979dc340fc5f141679bdee5c0d"
},
"after": {
"rows": 105,
"checksum": "39b6357efbe3142e8d0e55b5fac6a935"
}
},
"sessions": {
"before": {
"rows": 11,
"checksum": "787de58f2b0436566c2ad27161a8a759"
},
"after": {
"rows": 14,
"checksum": "ba1aa4ceaf894c62a66a4186ae4e9ddc"
}
}
},
"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_delta": {
"status": "installed_delta_verified",
"served_revision": {
"commit": "d4eae917ee9c9d37f0339905a96c1e35480f324e",
"branch": "main",
"built_at": "2026-10-24T13:15:11.725340+00:00",
"manifest_sha256": "4018026aac013855f2c9baf9258ed96e1b1bf808d996e8fa8eec9458ea6b35c7"
},
"manifest_hash_matches": true,
"compiled_delta_markers": {
"public_security": [
"assets/project-dossier-PaHmg6s9.js"
],
"official_military_supplies": [
"assets/project-dossier-PaHmg6s9.js"
],
"sisa_subject_operation": [
"assets/project-dossier-PaHmg6s9.js"
],
"exempt_activity_asset_sale": [
"assets/project-dossier-PaHmg6s9.js"
],
"no_deduction_right_asset_sale": [
"assets/project-dossier-PaHmg6s9.js"
],
"excluded_deduction_asset_sale": [
"assets/project-dossier-PaHmg6s9.js"
],
"maize": [
"assets/project-dossier-PaHmg6s9.js"
],
"maize_flour": [
"assets/project-dossier-PaHmg6s9.js"
],
"rice": [
"assets/services-CVvFKfag.js",
"assets/project-dossier-PaHmg6s9.js"
],
"bread": [
"assets/project-dossier-PaHmg6s9.js"
],
"iodised_salt": [
"assets/project-dossier-PaHmg6s9.js"
],
"infant_powdered_milk": [
"assets/project-dossier-PaHmg6s9.js"
],
"wheat": [
"assets/project-dossier-PaHmg6s9.js"
],
"wheat_flour": [
"assets/project-dossier-PaHmg6s9.js"
],
"fresh_chilled_tomato": [
"assets/project-dossier-PaHmg6s9.js"
],
"potato": [
"assets/project-dossier-PaHmg6s9.js"
],
"onion": [
"assets/project-dossier-PaHmg6s9.js"
],
"frozen_horse_mackerel": [
"assets/project-dossier-PaHmg6s9.js"
],
"lighting_kerosene": [
"assets/project-dossier-PaHmg6s9.js"
],
"domestic_lpg": [
"assets/project-dossier-PaHmg6s9.js"
],
"jet_fuel": [
"assets/project-dossier-PaHmg6s9.js"
],
"eligible_bicycles": [
"assets/project-dossier-PaHmg6s9.js"
],
"condoms": [
"assets/project-dossier-PaHmg6s9.js"
],
"insecticides": [
"assets/project-dossier-PaHmg6s9.js"
],
"listed_": [
"assets/project-dossier-PaHmg6s9.js"
],
"iva-operations-l1/2": [
"assets/project-dossier-PaHmg6s9.js"
]
},
"assets": [
{
"file": "assets/services-CVvFKfag.js",
"status": 200,
"sha256": "3ce2515eb4d53e8c2da3f10fdca2bfea208d801616813e6dcd18331b7d25c048"
},
{
"file": "assets/simulation-form-CPZAFZU3.js",
"status": 200,
"sha256": "c6bcf64e60a5eeac0cafe3dc055dc5544162f21942ee08b34d51bc6d52947567"
},
{
"file": "assets/project-dossier-PaHmg6s9.js",
"status": 200,
"sha256": "9fce800b1b9805b436a1d3801f8a596ad8c879604ac193d2af6cfb546d15c7e8"
},
{
"file": "assets/project-dossier-document-CNebL8r6.js",
"status": 200,
"sha256": "242eebf5c9d9dac52eb0b53009013705058cfd62aeb0c576e4cdb6cad7619c5f"
}
],
"simulator_status": 200,
"simulator_entry": "assets/app-gy0vGuME.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"
},
"Git": "freshfetch;branchpush;mainfastforward;noforce;existingwebhook",
"rollback_executed": false
}
}
@@ -1,5 +1,17 @@
# Rastreabilidade, utilização e formação
## 24/10/2026 — G2G/G2H entregues na homologação d4eae917
**Cinco ramos entregues:**P010(segurança por entidade pública),P027(fornecimentos oficiais elegíveis),P031(operações sujeitas aSISA),P032(alienação com três fundamentos) eP026(produtos enumerados9(10)). São24tratamentos(G2G6/G2H18),não24IDs. Revisão efectivamente servidad4eae917,integrada por fast-forward9a56d982→d4eae917apósconsulta fresca do remoto e destino SSH autenticado,semforce. Provas G2G9dbfdd67/2440cb44 eG2H48146089/b297058d reutilizadas;os24anteriores mantêm os fechos. ProcessoGit/webhook/instalador existente;zero migrações/importações/alterações de acesso ou cálculo de outro imposto.
Conferência apenas do delta instalado:revisão/manifesto/hash,catálogo novo nos assets,entrada do simuladorHTTP200,hash do único ficheiro funcional. Controlos automáticos normais do instalador passaram;semnova ronda manual aceita nem execuções privadas sintéticas no activo. Fonte9(10)enumera18opções;direito19(1)(b)(v)conservado sem dedução automática de compras. P032mantémtrêsfundamentos,histórico/fundamentoobrigatórios. SISA nãofoicalculada.
Backup/restauro real isolado descritos abaixo:174tabelas,369ficheiros/configuração. Leitura posterior com a mesma identidade/contextoPostgreSQL confirma dados de negócio/regras/resultados preservados,diferenças operacionais documentadas no recibo.29fichas,28relações,408geometrias e369ficheiros/configuração preservados. Release9a56d982e backup mantidos;patch de contenção compatível,nãoaplicado,conserva catálogo/leitores/snapshots/relatórios;nenhumareversãoexecutada.
**Saldo:**133IDs=29entregues+103funcionaispendentes+P001documental;nenhumramoQAaguardaentreganesteconjunto.Motor63tratamentoscondicionados+2opçõesindeterminadas.G2total32=25entregues+7pendentes. P00105/06permaneceisolado;05/07nãoaresolve.L1aberto;estatísticas/IAadiadas. Manifesto[l1-g2gh-delivery-20261024.json](../simulations/l1-g2gh-delivery-20261024.json);recibo acrescentado no registo integrado sem alterar objectos anteriores. Evidência privada `outputs/l1-g2gh-delivery-20261024/`.
## 24/10/2026 — G2G/G2H preparados para entrega conjunta
Cinco ramos P010/P026/P027/P031/P032,24tratamentos(G2G6/G2H18),sem aumentar IDs por opção. Consulta fresca de main e destino autenticado:9a56d982,ancestralidade confirmada,sem avanço concorrente detectado,instalador inactivo. Backup novo `/var/backups/investmoz-l1-g2gh-delivery-20261024/backup`:174tabelas,369ficheiros/configuração;dump SHA256 `ffe24d9e324cc1ad2354e8feec088e072db437eb54d1f5b6dfd3830865940b40`. Restauro real isolado `l1_g2gh_restore_20261024:55441`,rede desactivada,174contagens/checksums correspondentes,container próprio removido,zero escrita de teste no activo.
File diff suppressed because one or more lines are too long