From df7cb7fa47f50ae23f52c1bdf7e48e38489cffef Mon Sep 17 00:00:00 2001 From: nala Date: Sat, 24 Oct 2026 22:26:45 +0200 Subject: [PATCH] docs(iva): prepare G7C delivery after verified backup and isolated restore --- .../simulations/l1-g7c-delivery-20261024.json | 127 ++++++++++++++++++ .../l1-g7c-readonly-rollback-20261024.patch | 10 ++ 2 files changed, 137 insertions(+) create mode 100644 docs/investmoz/simulations/l1-g7c-delivery-20261024.json create mode 100644 docs/investmoz/simulations/l1-g7c-readonly-rollback-20261024.patch diff --git a/docs/investmoz/simulations/l1-g7c-delivery-20261024.json b/docs/investmoz/simulations/l1-g7c-delivery-20261024.json new file mode 100644 index 00000000..69fd1b23 --- /dev/null +++ b/docs/investmoz/simulations/l1-g7c-delivery-20261024.json @@ -0,0 +1,127 @@ +{ + "status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore", + "candidate": "287f2f8321038dc72ff8f0746526df0761a871d6", + "base_installed": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177", + "coverage_complete_branches": { + "AUD-SIM-L1-P094": [ + "act_sale_amount", + "act_normal_value" + ] + }, + "branch_count_complete": 1, + "treatment_count": 2, + "runtime_delta": [ + { + "path": "resources/js/lib/iva-act-sale-base.ts", + "sha256_LF": "ed555c826427a0964995144c59d4e801bfeebce5219a63a612f31bb977788d00" + }, + { + "path": "resources/js/components/simulation-act-sale-base.tsx", + "sha256_LF": "384e17aa18ed5ed9a8c6c47773577e87f211c2bccb3acbe3943269a08de1485a" + }, + { + "path": "resources/js/components/simulation-monthly-iva.tsx", + "sha256_LF": "3b2a24fde6db625c350f7366ec789b5aa7e86aa08645409203b5e96d02dc1ff3" + }, + { + "path": "resources/js/lib/project-dossier.ts", + "sha256_LF": "852ceaf59b95d92ff57d3b711dc2bc13eb4b547e7d9f1516eb543ece83247c09" + } + ], + "counts_before": { + "delivered": 80, + "QA": 1, + "functional_pending": 51, + "documentary": 1, + "total": 133 + }, + "counts_current": { + "delivered": 80, + "QA": 1, + "functional_pending": 51, + "documentary": 1, + "total": 133 + }, + "counts_after_delivery": { + "delivered": 81, + "QA": 0, + "functional_pending": 51, + "documentary": 1, + "total": 133 + }, + "QA_proofs_reused": [ + "iva-l1-g7c-qa-20261024.json" + ], + "authorization": "Tempo explicitly deploy287f2f83 through existingGit,preserve concurrentchanges and check installeddelta only;two treatments sameP094branch", + "scope": "2026/MZN,P094baseonly;normal value supplied with identified basis/scope,not appraised automatically. No incidence,rate,VAT,deduction/field11/ModeloAtotals or substitution of special auctioncommission15g. Unknown values remain indeterminate,explicit zero distinguished.", + "meaning": "Goods transferred as result of auction,judicial/administrative sale,conciliation or settlement;value at which auction/sale effected or,where applicable,normal value. Five act kinds are contexts,not five branches. No automatic lower value or normal-value fallback.", + "preservation": "80priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only", + "partial_P084_P085": "Preparation/conditional simulation only,benefits pending;no closure", + "limits": "P084/P085partial,pending;P00105/06;L1open;beveragesL2/L3;Statistics/AIdeferred", + "containment": "l1-g7c-readonly-rollback-20261024.patch,checked only,not applied;blocks newP094calculations only,preserves readers/history/otherbranches", + "authenticated_preflight": { + "installed": { + "status": "installed", + "commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177", + "release": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222", + "previous_release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39", + "database_migrations": 0, + "content_imports": 0 + }, + "current_link": "/var/www/investmoz-homologacao/releases/e62b7dfdc25f7c12425e89cea26f7ccf67b7d177-c1e20222", + "release_revision": { + "commit": "e62b7dfdc25f7c12425e89cea26f7ccf67b7d177", + "branch": "main", + "built_at": "2026-10-24T20:15:27.726611+00:00", + "manifest_sha256": "dccf1e8a2fabf42a877cac166b5821548af5a6e6cfbf2c8578afebb70468c531" + }, + "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-g7c-delivery-20261024/backup", + "target": { + "database": "teste_investidor", + "port": 5432 + }, + "tables": 174, + "files_verified": 369, + "dump_sha256": "15851ca2ed235382c8acb325b154470e191d95c10d5c2dac8fa9be287132d024", + "files_sha256": "af9076b5993550acd8aa55ac85a1112822f6db26f744247cfcc76d6f03ee7925", + "restore_verified": false + }, + "restore": { + "restore_verified": true, + "tables_verified": 174, + "container_network": "none", + "database": "l1_g7c_restore_20261024", + "port": 55441, + "source_dump_sha256": "15851ca2ed235382c8acb325b154470e191d95c10d5c2dac8fa9be287132d024", + "active_database_writes": 0 + } + } +} diff --git a/docs/investmoz/simulations/l1-g7c-readonly-rollback-20261024.patch b/docs/investmoz/simulations/l1-g7c-readonly-rollback-20261024.patch new file mode 100644 index 00000000..7f6fd691 --- /dev/null +++ b/docs/investmoz/simulations/l1-g7c-readonly-rollback-20261024.patch @@ -0,0 +1,10 @@ +--- a/resources/js/lib/iva-act-sale-base.ts ++++ b/resources/js/lib/iva-act-sale-base.ts +@@ -47,6 +47,7 @@ + function key(draft:Record,book:ActSaleBook):string{return JSON.stringify({version:actSaleBaseVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});} + export function actSaleCurrent(draft:Record,book:ActSaleBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);} + export function recordActSaleBases(draft:Record,book:ActSaleBook):ActSaleBook{ ++ throw new Error('Novas bases P094 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.'); + if(!book.rows.length||new Set(book.rows.map(row=>row.id)).size!==book.rows.length)throw new Error('Indique operações com identificadores distintos;originais conservados.'); + const result:ActSaleCalculation={version:actSaleBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:actSaleBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateActSale(row,draft.currency))}; + const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveActSaleBook(draft,next);return next;