diff --git a/docs/investmoz/simulations/l1-g6g-delivery-20261024.json b/docs/investmoz/simulations/l1-g6g-delivery-20261024.json new file mode 100644 index 00000000..4e32be75 --- /dev/null +++ b/docs/investmoz/simulations/l1-g6g-delivery-20261024.json @@ -0,0 +1,116 @@ +{ + "status": "ready_after_fresh_authenticated_preflight_and_verified_backup_restore", + "candidate": "ebf5e53c3ccb29279a4c8433182a5e74231f2dae", + "base_installed": "78c9f4a356d5eaf590d8d82168228a2f84b1f633", + "coverage_complete_branches": { + "AUD-SIM-L1-P056": [ + "authorized_investment_equipment" + ] + }, + "branch_count_complete": 1, + "treatment_count": 1, + "runtime_delta": [ + { + "path": "resources/js/lib/iva-import-exemptions.ts", + "sha256_LF": "1b4fda4e7e363e68f951eca14a415a93d08b06aaa49b41e639b44fc5c9cee488" + }, + { + "path": "resources/js/components/simulation-import-exemptions.tsx", + "sha256_LF": "c6f36defc756eac0bb21f17e7165bb84efbbbfd120ea3be83787ffe368b7f1b1" + } + ], + "counts_before": { + "delivered": 76, + "QA": 1, + "functional_pending": 55, + "documentary": 1, + "total": 133 + }, + "counts_current": { + "delivered": 76, + "QA": 1, + "functional_pending": 55, + "documentary": 1, + "total": 133 + }, + "counts_after_delivery": { + "delivered": 77, + "QA": 0, + "functional_pending": 55, + "documentary": 1, + "total": 133 + }, + "QA_proofs_reused": [ + "iva-l1-g6g-qa-20261024.json" + ], + "authorization": "Tempo explicitly deploy ebf5e53c through existing Git process,preserve concurrent changes and check installed delta only;retain explicit reference and scope of undertaking authorization", + "scope": "P056 only;authorized_investment_equipment;reference/scope retained;no automatic authorization/classification or extension to other goods/operations/periods", + "preservation": "76 prior closures and partial P084/P085 preserved;accepted QA proofs reused;fresh backup and real isolated restore before installation;installed delta only", + "partial_P084_P085": "Already available for preparation/conditional simulation only,benefits pending;no closure in this release", + "limits": "L1 open;P00105/06;beveragesL2/L3;import classification separate from serviceVAT/deduction/field11;Stats/AI deferred", + "authenticated_preflight": { + "installed": { + "status": "installed", + "commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633", + "release": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f", + "previous_release": "/var/www/investmoz-homologacao/releases/c1314cdf90c368b51489aaf04c2cdbe59cfb88e6-d4800fe2", + "database_migrations": 0, + "content_imports": 0 + }, + "current_link": "/var/www/investmoz-homologacao/releases/78c9f4a356d5eaf590d8d82168228a2f84b1f633-a865ec5f", + "release_revision": { + "commit": "78c9f4a356d5eaf590d8d82168228a2f84b1f633", + "branch": "main", + "built_at": "2026-10-24T18:47:27.964235+00:00", + "manifest_sha256": "a8c5303ce2443fefcf137681ead8f652e16963ae656612e80d1672da62e0a0a6" + }, + "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-g6g-delivery-20261024/backup", + "target": { + "database": "teste_investidor", + "port": 5432 + }, + "tables": 174, + "files_verified": 369, + "dump_sha256": "65ad784f31d74b6fd72b14ce3c0eed4a2c0fec8684a001f4b16a3a6df41a1553", + "files_sha256": "b9651ae1046ae678a4ee644fb9d2214d06786cf696f54514d181397cfba4c993", + "restore_verified": false + }, + "restore": { + "restore_verified": true, + "tables_verified": 174, + "container_network": "none", + "database": "l1_g6g_restore_20261024", + "port": 55441, + "source_dump_sha256": "65ad784f31d74b6fd72b14ce3c0eed4a2c0fec8684a001f4b16a3a6df41a1553", + "active_database_writes": 0 + } + } +} diff --git a/docs/investmoz/simulations/l1-g6g-readonly-rollback-20261024.patch b/docs/investmoz/simulations/l1-g6g-readonly-rollback-20261024.patch new file mode 100644 index 00000000..4a596d75 --- /dev/null +++ b/docs/investmoz/simulations/l1-g6g-readonly-rollback-20261024.patch @@ -0,0 +1,10 @@ +--- a/resources/js/lib/iva-import-exemptions.ts ++++ b/resources/js/lib/iva-import-exemptions.ts +@@ -102,6 +102,7 @@ + } + export function importExemptionCurrent(draft:Record,book:ImportExemptionBook):boolean {return !!book.result&&book.result.sourceKey===key(draft,book);} + export function recordImportExemptions(draft:Record,book:ImportExemptionBook):ImportExemptionBook { ++ if(book.rows.some(row=>row.treatment==='authorized_investment_equipment'))throw new Error('Novas classificações P056 temporariamente suspensas; dados, histórico, relatórios e restantes ramos preservados.'); + if(!book.rows.length||new Set(book.rows.map(r=>r.id)).size!==book.rows.length)throw new Error('Indique importações com identificadores distintos; versões anteriores conservadas.'); + const result:ImportExemptionCalculation={version:importExemptionVersion,revision:(book.result?.revision??0)+1,calculatedAt:new Date().toISOString(),opportunity:acquisitionScope(draft),location:JSON.stringify(draft.selection_labels??{}),sourceKey:key(draft,book),source:[...new Set(book.rows.map(row=>importRuleSource(row.treatment)))].join(' | '),inputs:structuredClone(book.rows),rows:book.rows.map(row=>evaluateImportExemption(row,draft.currency))}; + return {...book,result,history:[...(book.history??[]),...(book.result?[book.result]:[])]};