fix: allow authorised fiscal maintenance by the same responsible person
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -588,5 +588,156 @@
|
||||
"user_local_file_review": false,
|
||||
"procedure": "Existing manual: Procedimento unico das tres operacoes - agora executavel apos decisao",
|
||||
"proofs_private": true
|
||||
},
|
||||
"homologation_authorised_rollout_20261021": {
|
||||
"authorisation": "Tempo authorised implementation of candidate 226fd308 and the three operations in the current conversation",
|
||||
"recorded_utc": "2026-10-21T10:08:57.106309+00:00",
|
||||
"candidate": "226fd308dd45d2805ef4678b20ca4398d7fef6c6",
|
||||
"previous_main": "13f68f1bd8676d5ed418876a562af259e3887ba8",
|
||||
"integration": "fast-forward and push origin/main",
|
||||
"integration_completed": true,
|
||||
"deployment_verified": {
|
||||
"commit": "226fd308dd45d2805ef4678b20ca4398d7fef6c6",
|
||||
"branch": "main",
|
||||
"built_at": "2026-10-21T10:07:12.300278+00:00",
|
||||
"manifest_sha256": "d524c957dc95e92fcb6eb0d802b9df845743466bd51e398a485bd5ba3d7e3d8f"
|
||||
},
|
||||
"consumer_availability_verified": {
|
||||
"data": {
|
||||
"enabled": false,
|
||||
"coverage_start": "2026-01-01",
|
||||
"coverage_end": "2026-12-31",
|
||||
"message": "O cálculo de IVA geral sobre base líquida está indisponível para novas execuções. Os históricos mantêm-se acessíveis."
|
||||
}
|
||||
},
|
||||
"intended_real_rule": {
|
||||
"rule_code": "IVA-GERAL-BASE-LIQUIDA",
|
||||
"rule_version": 1,
|
||||
"documentary_sheet": "v1.2",
|
||||
"source_sha256": "ea1b0dc6f5cf6e595f6d9a19e7042f398999e0087caef1785f6e8fac571b5f53",
|
||||
"destination_id": null
|
||||
},
|
||||
"rule_publication_completed": false,
|
||||
"consumer_activation_completed": false,
|
||||
"qa_fixture_imported": false,
|
||||
"data_writes_executed": false,
|
||||
"remaining_dependency": "SSH authentication resolved and backup/restoration confirmed. Unsupported four-person fiscal control corrected and verified in QA following explicit Tempo instruction. Corrective code/schema not applied to homologation; real rule publication and consumer activation remain unexecuted.",
|
||||
"accepted_tests_repeated": false,
|
||||
"credentials_recorded": false,
|
||||
"juridical_validation_attributed_to_user": false,
|
||||
"prior_dependency_preserved": "Previous destination SSH session closed; noninteractive authentication failed; user asked to reopen the existing authenticated deployment session. Read-only preflight prepared, not submitted. Backup/restoration and existing application actors must be checked before destination fiscal data writes."
|
||||
},
|
||||
"fiscal_maintenance_actor_correction_20261021": {
|
||||
"status": "QA control correction completed; not integrated or applied to homologation",
|
||||
"authority": "Explicit Tempo instruction: no four distinct persons required for fiscal parameter maintenance; reuse existing authorised administration",
|
||||
"origin": {
|
||||
"commit": "e65cb269",
|
||||
"date": "2026-10-06",
|
||||
"classification": "implementation choice; no express applicable Tempo approval identified",
|
||||
"files": [
|
||||
"app/Services/SimulationTaxRuleGovernance.php",
|
||||
"database/migrations/2026_10_03_170000_create_simulation_tax_rule_governance.php",
|
||||
"docs/investmoz/simulator-evolution-progress.md"
|
||||
]
|
||||
},
|
||||
"designated_destination_responsible": "nala@tempo.co.mz",
|
||||
"existing_account_read_only": {
|
||||
"id": 15,
|
||||
"verified": true,
|
||||
"mfa_enrolled": true,
|
||||
"existing_superuser_profile": true,
|
||||
"no_account_or_profile_created": true
|
||||
},
|
||||
"reuses": [
|
||||
"existing verified administration",
|
||||
"MFA and existing scoped profiles",
|
||||
"rule states versions sources and immutable events"
|
||||
],
|
||||
"removed": "Mandatory distinct actor identities in fiscal maintenance only",
|
||||
"fiscal_official_source_curation": {
|
||||
"endpoint": "POST /api/v2/investment/admin/tax-rule-sources",
|
||||
"same_authorised_person": true,
|
||||
"required": [
|
||||
"official_origin",
|
||||
"citation",
|
||||
"sha256"
|
||||
],
|
||||
"legal_opinion": false,
|
||||
"independent_review": false,
|
||||
"other_source_workflows_unchanged": true,
|
||||
"general_validation_status": "pending",
|
||||
"not_automatically_usable_in_other_workflows": true,
|
||||
"source_eligibility_only": "Existing fiscal governance, resolver and published-rule SELECT policy recognise explicit fiscal acceptance and matching hash/version; formula/evaluator unchanged"
|
||||
},
|
||||
"schema_delta": {
|
||||
"migration": "2026_10_21_130000_correct_fiscal_maintenance_actor_constraints.php",
|
||||
"qa_guard": true,
|
||||
"active_application": false,
|
||||
"unrelated_constraints_unchanged": true,
|
||||
"reversal_preserves_dependent_records": true,
|
||||
"original_source_independent_validation_check_preserved": true
|
||||
},
|
||||
"tests": {
|
||||
"database": "simulator_fiscal_checks_20261021_test",
|
||||
"tests": 6,
|
||||
"assertions": 86,
|
||||
"result": "passed",
|
||||
"transactions_rolled_back": true,
|
||||
"calculator_tests_repeated": false,
|
||||
"simulation_execution_count_preserved": true,
|
||||
"exporter_tests_repeated": false,
|
||||
"non_superuser_published_rule_visibility": true
|
||||
},
|
||||
"destination_backup_restore": {
|
||||
"utc": "2026-10-21T10:18:00.737890+00:00",
|
||||
"source_database": "teste_investidor",
|
||||
"served_commit": "226fd308dd45d2805ef4678b20ca4398d7fef6c6",
|
||||
"backup_directory": "/var/backups/investmoz/iva-rollout-20261021_101750",
|
||||
"dump_sha256": "4e972c028fbe70c347c518ba86fe7e293093b7c81278ac4d64a077bf3e5325b7",
|
||||
"dump_bytes": 4584693,
|
||||
"environment_backup_sha256": "537eff52f0f28b83ccc56bf9a9b85c2d8fca1da2f678c30b929b46c67c09491b",
|
||||
"environment_path": "/var/www/html/teste-investidor.tempo.co.mz/.env",
|
||||
"restore_database": "iva_rollout_20261021_101750_test",
|
||||
"restore_database_public_connect": false,
|
||||
"restore_equal": true,
|
||||
"table_count": 171,
|
||||
"method": "Exported repeatable-read snapshot, custom pg_dump, isolated restore, all public table counts and canonical row hashes compared",
|
||||
"active_data_writes": false,
|
||||
"qa_fixture_imported": false
|
||||
},
|
||||
"served_revision_unchanged": "226fd308dd45d2805ef4678b20ca4398d7fef6c6",
|
||||
"consumer_enabled": false,
|
||||
"real_rule_published": false,
|
||||
"synthetic_destination_actors_created": false,
|
||||
"user_juridical_validation": false,
|
||||
"user_local_file_review": false,
|
||||
"persistent_qa_schema_proof": {
|
||||
"qa_database": "simulator_fiscal_delta_20261021_test",
|
||||
"preserved_tables": {
|
||||
"simulation_tax_rule_versions": {
|
||||
"rows": 2,
|
||||
"hash": "5ec81670fd48a9ae4393552b06a37cfb"
|
||||
},
|
||||
"simulation_tax_rule_events": {
|
||||
"rows": 7,
|
||||
"hash": "0bd8ab5a124751729c7ff90e7e799086"
|
||||
},
|
||||
"simulation_results": {
|
||||
"rows": 11,
|
||||
"hash": "09cdaa0c5acdbc7e17739c98d9b3ba4e"
|
||||
},
|
||||
"simulation_reports": {
|
||||
"rows": 11,
|
||||
"hash": "127ee229e4baca978d3ad8c699b59f19"
|
||||
},
|
||||
"investment_legal_sources": {
|
||||
"rows": 8,
|
||||
"hash": "473d504fc4e9a03d795fde4be16deb70"
|
||||
}
|
||||
},
|
||||
"same_rows_and_hashes": true,
|
||||
"fiscal_acceptance_column": true,
|
||||
"active_database_changed": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user