{ "date": "2026-10-16", "status": "PROPOSED_MAP_BEFORE_IMPLEMENTATION", "active_authorization": false, "app_code_changed": false, "same_matrix": "docs/investmoz/v2/auditoria-portal/matriz-requisitos.csv", "masters_reused": { "sector_id": 1, "sector_slug": "agronegocio", "cluster_code": "CLU-01", "cluster_id": "2b37d84a-0b71-4b87-b577-6f550954c908" }, "proposed_catalog": { "code": "economic-activities-cae", "version_no": 1, "source_version": "eBAU exemplar identified by SHA256; normative edition unresolved", "existing_editorial_catalog_unchanged": true }, "source_sha256": "97ef683468032d3153d89a23f78b97500c755c429694ef78b30197ad2e928545", "activities": [ { "sheet_row": 39, "source_id": "1", "code": "A", "parent_source_id": null, "level": "1", "flag": "A", "label": "AGRICULTURA, PRODUÇÃO ANIMAL, CAÇA, FLORESTA E PESCA" }, { "sheet_row": 57, "source_id": "110", "code": "01", "parent_source_id": "1", "level": "2", "flag": "A", "label": "AGRICULTURA, PRODUÇÃO ANIMAL, CAÇA E ACTIVIDADES DOS SERVIÇOS RELACIONADOS" }, { "sheet_row": 124, "source_id": "200", "code": "011", "parent_source_id": "110", "level": "3", "flag": "A", "label": "CULTURAS TEMPORÁRIAS" }, { "sheet_row": 238, "source_id": "731", "code": "0112", "parent_source_id": "200", "level": "4", "flag": "A", "label": "CULTURA DE ARROZ" }, { "sheet_row": 1122, "source_id": "1049", "code": "01120", "parent_source_id": "731", "level": "5", "flag": "A", "label": "CULTURA DE ARROZ" } ], "chain_stages": [ { "code": "CLU01-INPUT", "stage": "input", "name": "Fornecimento agroindustrial", "nature": "editorial proposal for QA; not a real operator/capacity declaration" }, { "code": "CLU01-PRODUCTION", "stage": "production", "name": "Produção agrícola", "nature": "editorial proposal for QA; not a real operator/capacity declaration" }, { "code": "CLU01-PROCESSING", "stage": "processing", "name": "Transformação agroindustrial", "nature": "editorial proposal for QA; not a real operator/capacity declaration" }, { "code": "CLU01-LOGISTICS", "stage": "logistics", "name": "Logística agroindustrial", "nature": "editorial proposal for QA; not a real operator/capacity declaration" }, { "code": "CLU01-MARKET", "stage": "market", "name": "Comercialização agroindustrial", "nature": "editorial proposal for QA; not a real operator/capacity declaration" } ], "chain_links": [ { "from": "CLU01-INPUT", "to": "CLU01-PRODUCTION", "type": "supplies", "nature": "proposed editorial sequence" }, { "from": "CLU01-PRODUCTION", "to": "CLU01-PROCESSING", "type": "processes", "nature": "proposed editorial sequence" }, { "from": "CLU01-PROCESSING", "to": "CLU01-LOGISTICS", "type": "distributes", "nature": "proposed editorial sequence" }, { "from": "CLU01-LOGISTICS", "to": "CLU01-MARKET", "type": "distributes", "nature": "proposed editorial sequence" } ], "new_reference_records": 15, "additional_test_revisions_and_audit_events": "not counted as master/reference records; enumerate during future QA", "existing_master_updates": 0, "existing_classification_changes": 0, "new_uuid_allocation": "not yet executed; freeze per version/source key in implementation manifest", "decisions": [ "Use bounded eBAU exemplar in QA without claiming complete normative edition; discrepancy 600 versus 579 subclasses remains open", "Display division 01 as subsector and subclass 01120 as activity for this case; retain all five original levels", "Generic five-stage editorial chain in existing CLU-01, without real operators, capacities or flow assertions" ], "deferred": [ "Other 1355 economic codes", "Energy combined versus specific mapping", "Fintech cross-sector regulatory activity mapping", "Parks full operational record", "Duplicate consolidation", "Full Fintech regulation" ], "prospective_files": [ { "path": "database/migrations/2026_10_16_120000_extend_economic_reference_hierarchy.php", "planned_change": "new: non-unique sector index, nullable unassigned ancestor, economic metadata; preserve FKs and published immutability", "exists": false, "before_sha256": null, "after_sha256": null }, { "path": "database/data/economic-references-lot-01.json", "planned_change": "new: closed versioned manifest; UUIDs frozen at implementation, QA only", "exists": false, "before_sha256": null, "after_sha256": null }, { "path": "app/Services/EconomicReferenceCatalog.php", "planned_change": "new: shared hierarchy/source reader and QA-only preview/apply adapter", "exists": false, "before_sha256": null, "after_sha256": null }, { "path": "app/Services/OpportunityCanonicalContract.php", "planned_change": "replace: descendant hierarchy and legacy compatibility", "exists": true, "before_sha256": "78f7656b13a09830bd20e1cd4258e1f364e064851348fdbedcb745629f5c9591", "after_sha256": null }, { "path": "app/Services/OpportunityClassification.php", "planned_change": "replace: shared options with code, level and provenance distinction", "exists": true, "before_sha256": "fc924b187bbe1634a4723c4d11d1412228d7a90816189d2260b2e12f9d9a7cbe", "after_sha256": null }, { "path": "app/Http/Controllers/Api/V1/ReferenceCatalogController.php", "planned_change": "replace: explicit economic origin selection, unchanged legacy default", "exists": true, "before_sha256": "f5a2920d3f6b4c92fde9ca968039c2e6953abb96ff40f1ba6da78d99b02c4a70", "after_sha256": null }, { "path": "resources/js/components/opportunity-canonical-fields.tsx", "planned_change": "replace: recover and select division/activity with full path", "exists": true, "before_sha256": "542ee4d6bdbd259fc1c7a5a41757bb78279cc4210bbe75d2d377f894598cc83d", "after_sha256": null }, { "path": "resources/js/components/opportunity-classification.tsx", "planned_change": "replace: shared code/path presentation and filters", "exists": true, "before_sha256": "91a609af736dcaefac3e47ebab30156e8081f7ae5024f38066b8ef9dfdb3505b", "after_sha256": null } ], "runtime_sources": 6, "migration": 1, "manifest": 1, "QA_tools": [ "tools/economic-references-qa.php", "tools/economic-references-acceptance-qa.php" ], "build": "Future build required if UI changes are implemented; no build performed this stage", "estimate_hours": { "manifest": [ 2, 3 ], "schema_and_import_QA": [ 2, 3 ], "adapter_and_UI": [ 3, 4 ], "directed_proofs_and_rollback": [ 4, 6 ], "delivery_docs_receipt": [ 1, 2 ], "total": [ 12, 18 ] }, "positive_chain_case": "PENDING; planned in both canonical and existing-business consumers only in new isolated clone", "reference_QA_business": "172aa874-98fc-4bf6-b78f-d2e9a386d345 published/v12 remains untouched", "future_active_import_dependency": "An authenticated economic import/publication action is not installed; future active delivery requires its concrete procedure and separate authorization", "rollback_after_use": "Keep additive schema/data plus hierarchy adapter, canonical contract and compatible selector; demonstrate old-code edit with compatibility contract without deleting new references or history" }