Files
Investidor-V2/outputs/investmoz-legado-importador-delta-QA-20261015/MAPA-TRES-FICHEIROS.json
T
nala 6a76aac80f
tests / ci (push) Canceled after 0s
versao compilada 1
2026-10-16 09:17:28 +02:00

165 lines
9.3 KiB
JSON

{
"status": "QA correction ready; pending Tempo extension to third active source file. Prior pilot authorization preserved.",
"source_operations": [
{
"path": "app/Services/LegacyContent.php",
"QA_before_sha256": "46ec449d103b551001d6e6f4e5c5f3029b9c7863956162d174bbba7de74baadd",
"candidate_sha256": "e736335e5da52c8259812c21b86030cb6e70146a8326ce834387f5a922a3057f",
"active_before_sha256": "46ec449d103b551001d6e6f4e5c5f3029b9c7863956162d174bbba7de74baadd",
"active_matches_QA_before": true,
"operation": "replace only after later authorization and fresh destination comparison",
"rollback": "restore exact predeployment copy of this file; preserve B and all other sources"
},
{
"path": "config/portal.php",
"QA_before_sha256": "6f79a0dfce5c8ccdc1acd7e6550a6aab647138f8829ffbb07a53c61404cb6b7b",
"candidate_sha256": "ce50dca880179554af458ca94418357a799cd032c8f54572aaac1b5bc2a4135a",
"active_before_sha256": "6f79a0dfce5c8ccdc1acd7e6550a6aab647138f8829ffbb07a53c61404cb6b7b",
"active_matches_QA_before": true,
"operation": "replace only after later authorization and fresh destination comparison",
"rollback": "restore exact predeployment copy of this file; preserve B and all other sources"
},
{
"path": "app/Console/Commands/ImportDocumentBatch.php",
"active_before_sha256": "da7fdee00458ea6ce64e5f24e1fc26d034c8b753e314897a00c864cf096bf20a",
"candidate_sha256": "6ed2fbb9a27e7ab25e5d9bc94bbf051aa7ed86978564cad61befa9342edaefed",
"operation": "Named pilot option; exact manifest and two hashes only; effective account permission; fresh backup validation for active apply",
"rollback": "Restore exact predeployment ImportDocumentBatch.php together with other two source before-files; retain originals, resources, audits and history."
}
],
"flag": {
"name": "PORTAL_LEGACY_CONTENT_ENABLED",
"default": false,
"new_behavior": "Explicit flag allows reader outside testing; existing QA fallback retained unchanged",
"does_not_change": [
"publicResources rights/publication/scan/hash controls",
"authentication and ownership for save/context",
"INVESTOR_PATH_ENABLED",
"COUNTRY02",
"migrations",
"B sources except separately proposed reader/config changes"
],
"rollback": "Set only this flag false to withdraw editorial reader; no data deletion; keep investor path enabled as accepted B."
},
"sector": [
{
"id": 1,
"name": "Agronegócio",
"slug": "agronegocio",
"is_active": true
}
],
"territory": {
"type": "article mentions, not verified record associations",
"labels": [
"Pemba–Lichinga",
"Nacala",
"Vale do Zambeze",
"Beira",
"Limpopo",
"Maputo"
],
"links": [
"/carteira?kind=corridor",
"/zonas"
],
"no_automatic_geometry_or_project_link": true
},
"support": {
"destination_latest_published": {
"id": "ca747aa0-a278-4ba4-9db1-0efc01a7d802",
"code": "project-preparation",
"version": 5,
"status": "published",
"title": "Preparar e submeter dossier de investimento"
},
"existing_pilot_QA_latest": {
"id": "766f99c0-0944-4b4d-b247-ff7f2b57f7ac",
"code": "project-preparation",
"version": 3,
"status": "published",
"title": "Preparar e submeter dossier de investimento"
},
"difference": "QA v3 and destination v5 have semantically identical published definitions, verified read-only in COMPARACAO-SERVICO.json. IDs differ; resolve latest published version locally by code, never copy QA UUID.",
"existing_selection": "InvestorPath selects latest published version per code; support creation uses existing dossier context.",
"route": "Existing dossier support control; no new service publication required if v5 is applicable.",
"definition_comparison": "identical"
},
"deployment_sequence": [
"Tempo decides only extension to third source file; prior pilot/article/image authorization preserved. No active delivery until that extension.",
"Read current destination: validate two before hashes; article/image presence and hash/identity; published support by code/version; current flags and config cache. Stop on unrecognized divergence.",
"Fresh backup/restore of database, files, flags and private originals near execution; record preexisting resource/publication state for rollback.",
"Keep editorial flag false. Maintenance only for three source replacements and any config rebuild; preserve B build and flags; leave maintenance before authenticated UI.",
"Private import: existing preview with original manifest; reuse exact existing resources; only apply absent entries, with actual responsible actor. No QA DB import or synthetic users.",
"Scan: existing ScanDocumentForMalware jobs; confirm clean same-byte hash per document. Pending/unavailable/infected prevents publication only of affected file; never manufacture clean status.",
"Authenticated metadata: source/version, public classification and rights per file, with current metadata_version. QA-only authorization text is not active disclosure authorization.",
"Authenticated publication of image and article separately in management/portal-services, using resolved destination IDs; resources become publicly readable here.",
"Enable only PORTAL_LEGACY_CONTENT_ENABLED after both resources eligible; rebuild config only if required by destination state; do not change QA-only flag in production or B flags.",
"Operational checks only: gate/version/hash, anonymous article/image response, existing support resolution and health. No repeated dossier creation/review/12 criteria. Close execution receipt with actual actor, IDs, versions and hashes."
],
"authenticated_publication": {
"route": "POST /management/portal-services/resources/{id}",
"controller": "PortalServicesController::moderate",
"metadata_route": "PUT /management/portal-services/resources/{id}",
"guards": "Existing manage authorization, version/management validation, source, rights, public classification and clean scan."
},
"rollback_sequence": [
"Disable only editorial flag immediately; B investor path stays enabled.",
"If disclosure must cease, separately withdraw only publications made by this delivery using authenticated resource action; flag OFF alone leaves library publication intact. Restore recorded preexisting resource states, never withdraw unrelated publications.",
"If code rollback required, maintenance for restoring exactly three before-files/config; leave maintenance before UI work. Prior build untouched.",
"Retain imported private originals, audit/revisions, dossier references and support drafts. Do not delete data, drop columns, restore whole database over subsequent changes or import QA."
],
"migrations_required": [],
"active_changes": 0,
"remaining_estimate_hours": {
"fresh_baseline_backup_restore": {
"min": 0.5,
"max": 1
},
"two_file_delivery_flag_off": {
"min": 0.25,
"max": 0.5
},
"private_import_scan_metadata": {
"min": 0.5,
"max": 1
},
"authenticated_publication_enable_receipt": {
"min": 0.25,
"max": 0.5
}
},
"QA_accepted_evidence": {
"file": "RESULTADO-PERCURSO-INSTALADO-QA.json",
"sha256": "39011dcc3dd5253ea368e84a5d48c6db3d4cf293f2f1f8006135f44e5c3b4947",
"retest_required": false
},
"only_two_public_resources": true,
"compiled_build_change_required": false,
"disclosure_timing": "Library resource becomes publicly accessible at authenticated publication, before editorial flag; authorization must cover both. Flag OFF alone does not revoke /documentos access.",
"publication_order": [
"image",
"article"
],
"import_command_preview": "php artisan documents:import-batch legacy-agronegocio/manifest.json --pilot-agronegocio --actor=<existing responsible ID>",
"import_command_apply": "php artisan documents:import-batch legacy-agronegocio/manifest.json --pilot-agronegocio --apply --actor=<existing responsible ID> --backup-proof=<private fresh verified backup receipt>",
"import_checks": {
"manifest_relative_path": "legacy-agronegocio/manifest.json",
"manifest_sha256": "0b720b0a6f7539de1d3eca9e32f89a6b9038848dc0b97ad21ace605154d9ddd8",
"record_count": 2,
"effective_account": "Existing integer ID, verified email and current manage-portal gate; CLI attribution is not a browser login or MFA session",
"target": "isolated testing *_test:55441, or non-testing investemoz:5432 on loopback with no DB_URL",
"active_backup": "restore and files verified, correct destination and QA restore identity, <=24h old, dump/file hashes match existing files",
"conflicts": "Wrong bytes/identity/library link rejected for whole preflight before first import",
"publication": "Unchanged authenticated library actions; import always private unpublished and scan queued."
},
"omitted_dependency": "Original procedure specified existing importer without checking its QA-only apply guard or confirming the active mechanism mentioned by that guard.",
"QA_delta_evidence": {
"path": "PROVA-IMPORTADOR-QA.json",
"sha256": "7c9a9a0bec6fbea10077f86a0087dac3d54e579944ac62d4e41093de5ed320ad",
"checks": 39,
"active_writes": 0,
"functional_path_repeated": false
}
}