commit melhorias compras4
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-22 16:28:03 +02:00
parent efd97e265b
commit 36dcfdf00c
118 changed files with 6042 additions and 92 deletions
+141
View File
@@ -0,0 +1,141 @@
{
"date": "2026-11-22",
"status": "implemented_and_verified_in_isolated_qa_unpublished",
"authorizations": [
"rq01-distribution-contract-authorization.json",
"rq01-distribution-fx-decision.json"
],
"implementation": [
"Canonical common source only: optional exact line allocations, reservation, award, commitment, partial consumption and explicit versioned amendment",
"Original native totals, currency and rate preserved; no automatic residual compensation",
"Single common writer and balances; legacy and distributed effects cannot coexist for an origin",
"Explicit Finance-only amendment action, previous version, reason, available funds and consumed floors",
"SGC draft preparation, native adjudication and issuance, immutable invoice preparation and independent validation",
"Encrypted preparation and amendment pages, company/actor/source/version history keys, journey help, explicit MZN inputs"
],
"verification": {
"sqlite_distribution_and_invoice_regression": {
"passed": 38,
"assertions": 223,
"log": "storage/logs/budget-distribution-invoice-tests.txt"
},
"sqlite_native_adjudication_approval_issue": {
"passed": 1,
"assertions": 24,
"log": "storage/logs/budget-distribution-native-award-tests.txt"
},
"postgres_core_budget_invoice": {
"passed": 77,
"assertions": 355,
"isolated_database_removed": true,
"log": "storage/logs/budget-distribution-core-invoice-final-pg.txt"
},
"postgres_focused_adjudication": {
"passed": 6,
"assertions": 131,
"isolated_database_removed": true,
"log": "storage/logs/budget-distribution-award-pg.txt"
},
"frontend_fields_history_help": {
"passed": 16,
"files": 5,
"log": "storage/logs/budget-distribution-ui-tests.txt"
},
"standalone_artifact": {
"passed": 17,
"assertions": 147,
"log": "storage/logs/budget-distribution-artifact-tests.txt",
"proof": "rq01-distribution-artifact.json"
},
"schema_and_runtime_default_artifact": {
"passed": 4,
"assertions": 22,
"log": "storage/logs/budget-distribution-schema-default.txt"
},
"versioned_schema_postgres": {
"passed": 19,
"assertions": 157,
"isolated_database_removed": true,
"log": "storage/logs/budget-distribution-schema-pg.txt"
},
"readiness_delta": {
"passed": 2,
"assertions": 5,
"log": "storage/logs/budget-distribution-readiness-tests.txt"
},
"privacy_and_preparation_delta": {
"passed": 2,
"assertions": 31,
"log": "storage/logs/budget-distribution-privacy-preview-tests.txt"
},
"native_visual": "rq01-distribution-visual.json",
"types": "passed",
"host_phpstan": "passed_zero_errors",
"pinned_runtime": "18_files_sha256_passed_unchanged",
"source_php84_syntax": "Three changed common PHP files passed through the documented SGF wrapper; BudgetDistributions.php rechecked after the consumption preview change.",
"concurrency": {
"real_postgres_lock_contention": true,
"same_operation_statuses": [
200,
200
],
"conflicting_version_statuses": [
200,
409
],
"one_amendment_version_and_audit": true,
"isolated_database_removed": true,
"log": "storage/logs/budget-distribution-concurrency-pg.txt"
},
"process_visibility_delta": {
"sqlite_passed": 1,
"assertions": 19,
"log": "storage/logs/budget-distribution-process-delta.txt"
},
"recovery": {
"previous_tables_preserved": 114,
"optional_tables": 4,
"existing_balances_preserved": true,
"post_extension_restore_all_tables_equal": true,
"recovered_operation_replay_no_effects": true,
"pre_extension_schema_data_balance_restored": true,
"both_isolated_databases_removed": true,
"before_dump_sha256": "df442285a054692a07baf68460d7e915544f98b4bd81dbdcc3ce8aed5bce6e5f",
"after_dump_sha256": "3b5fd1966645d0f0524a5691c2c862618e8942cff914cdfb572e68175df5d341",
"log": "storage/logs/budget-distribution-schema-recovery-pg.txt"
},
"private_build": {
"status": "passed",
"path": "storage/framework/testing/sgc-distribution-integrated-qa-20261122",
"manifest_sha256": "1edb9ab0aa62fcf4e9c9075ce6e405de5435dc8ea4799d1949535a96c718df4e",
"published": false
},
"broad_postgres_attempt": "Timed out after 180 seconds; not approved. Subsequently split into the two focused groups above without increasing timeout.",
"legacy_runtime_recovery_guard": {
"passed": 41,
"assertions": 134,
"log": "storage/logs/budget-distribution-legacy-guard-final.txt",
"partial_schema_and_orphan_effects_refused": true
}
},
"own_corrections": [
"Synthetic balance scenario now persists a real synthetic requisition rather than an invalid foreign key",
"Invoice distribution is prepared before insertion; existing invoice immutability remains enforced",
"Frozen document equality compares two database reads, preserving values without relying on in-memory attribute insertion order",
"Reference-line cent reallocation is explicit and versioned, preserves native header totals and never erases consumed amounts",
"The common consumption validator now runs before immutable invoice insertion as well as at independent validation",
"Generic requisition JSON hides quote allocation preparation; authorised stage projections expose it explicitly",
"All four optional tables are required before enabling the host workflow",
"An incompatible runtime refuses any partial optional schema or remaining optional effects, including loss of the source table; regression tests passed."
],
"pending": [
"Concrete operational installation/activation proposal and specific authorisation",
"Remaining SGC requirements and enterprise acceptance"
],
"limits": [
"No pinned financial package edits",
"No pilot or SGF activation",
"No real data, grants, payments or accounting operations",
"No claim of complete SGC delivery"
]
}