From e62b7dfdc25f7c12425e89cea26f7ccf67b7d177 Mon Sep 17 00:00:00 2001 From: nala Date: Sat, 24 Oct 2026 22:13:42 +0200 Subject: [PATCH] docs(iva): prepare G7B delivery after verified backup and isolated restore --- .../simulations/l1-g7b-delivery-20261024.json | 126 ++++++++++++++++++ .../l1-g7b-readonly-rollback-20261024.patch | 10 ++ 2 files changed, 136 insertions(+) create mode 100644 docs/investmoz/simulations/l1-g7b-delivery-20261024.json create mode 100644 docs/investmoz/simulations/l1-g7b-readonly-rollback-20261024.patch diff --git a/docs/investmoz/simulations/l1-g7b-delivery-20261024.json b/docs/investmoz/simulations/l1-g7b-delivery-20261024.json new file mode 100644 index 00000000..e655a3cd --- /dev/null +++ b/docs/investmoz/simulations/l1-g7b-delivery-20261024.json @@ -0,0 +1,126 @@ +{ + "status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore", + "candidate": "9bd2e062f427155a9877abc14876183ff4b7d9e0", + "base_installed": "4193056bdd69b48cf61c25a9a7404af4f0957f3c", + "coverage_complete_branches": { + "AUD-SIM-L1-P091": [ + "commission_sale_transfer", + "commission_purchase_transfer" + ] + }, + "branch_count_complete": 1, + "treatment_count": 2, + "runtime_delta": [ + { + "path": "resources/js/lib/iva-commission-base.ts", + "sha256_LF": "3be1331f4da40e6292fa7f5dcfba28355af6d931a7d24f44eb081c6f16c8efb2" + }, + { + "path": "resources/js/components/simulation-commission-base.tsx", + "sha256_LF": "5bfbb95d2dd22106d7d416fd3af0f7ae0778f22ae9d23da15ba9dd45882cfc94" + }, + { + "path": "resources/js/components/simulation-monthly-iva.tsx", + "sha256_LF": "16c95f5eaf5d5a308c93b30523292e52ccafed9d4e7f897f8559459116fbf4ae" + }, + { + "path": "resources/js/lib/project-dossier.ts", + "sha256_LF": "945a9e2a4a9aa6a26f7108f95d4fd237c0551dbf884cec41bcaa3eba592acc4a" + } + ], + "counts_before": { + "delivered": 79, + "QA": 1, + "functional_pending": 52, + "documentary": 1, + "total": 133 + }, + "counts_current": { + "delivered": 79, + "QA": 1, + "functional_pending": 52, + "documentary": 1, + "total": 133 + }, + "counts_after_delivery": { + "delivered": 80, + "QA": 0, + "functional_pending": 52, + "documentary": 1, + "total": 133 + }, + "QA_proofs_reused": [ + "iva-l1-g7b-qa-20261024.json" + ], + "authorization": "Tempo explicitly deploy9bd2e062 through existingGit,preserve concurrentchanges and check installeddelta only;two treatments sameP091branch,base remains separate fromVAT", + "scope": "P091only,commission_sale_transfer/commission_purchase_transfer;saleprice-minuscommission/purchaseprice-pluscommission,principal/agent/contract/price/commission/compositionreferences in immutable result.inputs/report;vat/rate alwaysnull,no incidence/tax/deduction/field11/ModeloAtotals inferred", + "preservation": "79priorclosures and partialP084/P085 preserved;acceptedQA reused;freshbackup/realisolatedrestore beforeinstallation;installeddelta only;P060decision/list/plan/scope andproportionalresults,P056authorization,P050serviceVAT preserved", + "partial_P084_P085": "Already available for preparation/conditional simulation only,benefits pending;no closure in this release", + "limits": "L1open;P00105/06;beveragesL2/L3;Statistics/AIdeferred;L1closuredoesnotrequireL2/L3/alltaxes", + "containment": "l1-g7b-readonly-rollback-20261024.patch,checked only,not applied;blocks newP091calculations only,preserves readers/history andotherbranches", + "authenticated_preflight": { + "installed": { + "status": "installed", + "commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c", + "release": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39", + "previous_release": "/var/www/investmoz-homologacao/releases/eb9294ef42c2cfc97eb8c2553d545e3bff7c0add-08cf86ab", + "database_migrations": 0, + "content_imports": 0 + }, + "current_link": "/var/www/investmoz-homologacao/releases/4193056bdd69b48cf61c25a9a7404af4f0957f3c-c2452b39", + "release_revision": { + "commit": "4193056bdd69b48cf61c25a9a7404af4f0957f3c", + "branch": "main", + "built_at": "2026-10-24T19:52:03.661019+00:00", + "manifest_sha256": "7c9c5a728ad2afa1157a4a74a013dce1538a915f080d74790052655030582884" + }, + "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-g7b-delivery-20261024/backup", + "target": { + "database": "teste_investidor", + "port": 5432 + }, + "tables": 174, + "files_verified": 369, + "dump_sha256": "14910f7a6372948985ca3e0d6deddca5e079e015c7554cdb46d4a150c4b0a204", + "files_sha256": "09e56a62d74f60773bb9da0da520ddafa790f39489a2f8335ebb9d949ae0445a", + "restore_verified": false + }, + "restore": { + "restore_verified": true, + "tables_verified": 174, + "container_network": "none", + "database": "l1_g7b_restore_20261024", + "port": 55441, + "source_dump_sha256": "14910f7a6372948985ca3e0d6deddca5e079e015c7554cdb46d4a150c4b0a204", + "active_database_writes": 0 + } + } +} diff --git a/docs/investmoz/simulations/l1-g7b-readonly-rollback-20261024.patch b/docs/investmoz/simulations/l1-g7b-readonly-rollback-20261024.patch new file mode 100644 index 00000000..93516d99 --- /dev/null +++ b/docs/investmoz/simulations/l1-g7b-readonly-rollback-20261024.patch @@ -0,0 +1,10 @@ +--- a/resources/js/lib/iva-commission-base.ts ++++ b/resources/js/lib/iva-commission-base.ts +@@ -51,6 +51,7 @@ + function key(draft:Record,book:CommissionBaseBook):string{return JSON.stringify({version:commissionBaseVersion,scope:acquisitionScope(draft),location:draft.selection_labels??{},currency:draft.currency,rows:book.rows});} + export function commissionBaseCurrent(draft:Record,book:CommissionBaseBook):boolean{return!!book.result&&book.result.sourceKey===key(draft,book);} + export function recordCommissionBases(draft:Record,book:CommissionBaseBook):CommissionBaseBook{ ++ throw new Error('Novas bases P091 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:CommissionBaseCalculation={version:commissionBaseVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:commissionBaseSource,inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateCommissionBase(row,draft.currency))}; + const next={...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};saveCommissionBaseBook(draft,next);return next;