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
@@ -0,0 +1,10 @@
{
"date": "2026-11-22",
"status": "approved",
"owner_response": "autorizo e continua a desenvolver de acorco com a directiva",
"proposal": "approval-search-pilot-proposal.json",
"environment": "http://127.0.0.1:8005",
"migration_sha256": "c3d421e61328add6e5dca9b17eea27059b61b09477d42d183796327ec7d981b0",
"manifest_sha256": "9bbca2dc15b40c05f268b118e4f16178a3120ae19329fdbe19403178e22cf251",
"scope": "Two initially empty JSON columns and the two deployment capabilities in the named proposal; preserve all exclusions"
}
@@ -0,0 +1,76 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"results": [
{
"role": "admin",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"financial_search": true,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts",
"invoices"
]
},
{
"role": "admin",
"path": "/administracao/parametrizacao",
"status": 200,
"additional_approval_capability": true,
"company_plan_created": false
},
{
"role": "procurement",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"financial_search": false,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts"
]
},
{
"role": "finance",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"financial_search": true,
"sources": [
"requests",
"orders",
"suppliers",
"equipment",
"stock",
"warehouses",
"receipts",
"invoices"
]
},
{
"role": "warehouse",
"path": "/compras/pesquisa?q=TEST",
"status": 200,
"financial_search": false,
"sources": [
"requests",
"equipment",
"stock",
"warehouses",
"receipts"
]
}
],
"business_commands": false,
"session_context_only": true,
"visual_review": false
}
@@ -0,0 +1,24 @@
{
"environment": "http://127.0.0.1:8005",
"schema_installed": true,
"capabilities_enabled": true,
"backup": "C:/laragon/data/sgf-tempo/backups/compras-approval-search-20261122-101408-853083/before.dump",
"backup_sha256": "29eb3fc34ff857a780ae1bfcea8fb4761df778f92344547306b1bb9a175e1bcd",
"settings_backup": "C:/laragon/data/sgf-tempo/backups/compras-approval-search-20261122-101408-853083/settings.before.json",
"restored_tables_checked": 115,
"previous_business_tables_preserved": 114,
"same_restore_role": true,
"foreign_keys_preserved": true,
"new_values_null": true,
"migration_delta": 1,
"assets_verified": 150,
"manifest_sha256": "9bbca2dc15b40c05f268b118e4f16178a3120ae19329fdbe19403178e22cf251",
"business_commands": false,
"grants_changed": false,
"other_settings_preserved": true,
"changed_settings": [
"SGC_REQUISITION_APPROVAL_LEVELS_ENABLED",
"SGC_PROCUREMENT_FINANCE_SEARCH_ENABLED"
],
"restore_database_removed": true
}
@@ -0,0 +1,38 @@
{
"date": "2026-11-22",
"status": "pending_specific_owner_authorization",
"environment": "http://127.0.0.1:8005",
"scope": "Install optional requisition approval capability and financial reference search in the existing SGC pilot only",
"migration": {
"file": "database/migrations/2026_11_22_000003_add_configured_requisition_levels.php",
"sha256": "c3d421e61328add6e5dca9b17eea27059b61b09477d42d183796327ec7d981b0",
"effects": ["Add tenants.requisition_approval_policy nullable JSON, initially NULL", "Add approval_steps.routing nullable JSON, initially NULL"]
},
"private_deployment_settings": {"SGC_REQUISITION_APPROVAL_LEVELS_ENABLED": true, "SGC_PROCUREMENT_FINANCE_SEARCH_ENABLED": true},
"functional_effects": [
"Administrators can configure up to five additional conditional approval levels, keeping the mandatory native base approvals and maximum eight total",
"One eligible member of an assigned company profile decides each level; the plan does not grant profile permissions",
"Submitted requests retain their frozen routing; existing requests without an additional-level plan keep their previous approvals",
"No company approval plan, threshold, assigned profile or user permission is created automatically",
"Administration and Finance can find supplier invoices by number within native order visibility, reference and state only"
],
"current_verified_assets_manifest": "9bbca2dc15b40c05f268b118e4f16178a3120ae19329fdbe19403178e22cf251",
"validation": {
"approval_sqlite_focused": {"tests": 12, "assertions": 119},
"approval_postgres_integration": {"tests": 68, "assertions": 1388, "isolated_database_removed": true},
"search_postgres": {"tests": 6, "assertions": 210, "isolated_database_removed": true},
"frontend": "Previously accepted 130-test suite plus 11 search/help and two order compatibility regressions for subsequent changes; do not sum overlapping counts",
"schema_upgrade": "Existing synthetic company/approval values unchanged and new fields NULL",
"rollback_guard": "Refuses removal when a saved company plan or frozen routing exists"
},
"mandatory_execution_safeguards": [
"Verify private settings, actual database and existing role, environment and source hashes before any write",
"Consistent private backup and same-role restore; compare all old rows and columns, foreign keys and configuration",
"Rehearse exact migration on the restored copy before applying it to the pilot",
"Apply only the named migration and verify new columns remain NULL",
"Preserve previous private settings and verify the exact two deployment flag changes; no secret values in logs",
"Check native HTTP availability without creating any business process or decision"
],
"recovery": "Before any new plan/routing, retain the previous settings and backup for reviewed recovery. After configured processes exist, preserve schema and compatible code; do not downgrade or overwrite subsequent data. Disabling a capability with configured processes fails closed, so plan recovery before disabling it.",
"excluded": ["Business submissions or approvals in pilot", "Company plan or threshold creation", "User/profile grants", "SGF modifications", "Shared inventory conversion activation", "Per-order limit activation", "MFA activation", "People formalization", "Enterprise acceptance"]
}
@@ -0,0 +1,29 @@
{
"date": "2026-11-22",
"status": "implemented_tested_and_subsequently_installed_by_specific_authorization_company_plan_not_created",
"authority": "rq01-source-authorization.json",
"scope": "Existing mandatory approvals plus up to five conditional profile levels, maximum eight total; one eligible approver per level",
"controls": ["Native purchasing engine remains the single transition and reservation authority", "Company profile permission is revalidated without automatic grants", "Department scope, owner exclusion and repeated actor exclusion", "Frozen routing and policy revision for submitted processes", "Operation key and process version prevent a stale decision from approving the next level", "Audit failure rolls back configuration and version", "Configured plans fail closed when the QA capability is unavailable"],
"validation": {
"sqlite_integration": {"tests": 65, "assertions": 1373, "log": "storage/logs/configured-levels-integration.txt"},
"postgres_integration": {"tests": 65, "assertions": 1373, "isolated_database_removed": true, "log": "storage/logs/configured-levels-postgres.txt"},
"focused_sqlite_with_rollback_regression": {"tests": 12, "assertions": 119},
"postgres_after_deployment_capability_and_schema_preservation_tests": {"tests": 68, "assertions": 1388, "isolated_database_removed": true},
"frontend": {"tests": 130, "files": 25, "log": "storage/logs/configured-levels-frontend.txt"},
"typescript": "passed",
"phpstan": "passed_zero_errors",
"scoped_pint": "passed",
"private_build": "storage/framework/testing/rq01-configured-levels-candidate-20261122",
"private_manifest_sha256": "0cf2e1898aba49f570328abf2070ad1c07385b491c0babcfbb3c69008f1c47fe"
},
"test_harness_correction": "Organization report test now releases its guarded disposable PostgreSQL fixture transaction so the actual report can open its required read-only snapshot; guarded schema cleanup follows. Report control unchanged.",
"operational_capability": "Explicit deployment flag disabled by default; enabled in named pilot by subsequent specific authorization",
"pilot_proposal": "approval-search-pilot-proposal.json",
"pilot_migrations_applied": true,
"pilot_configuration_changed": true,
"pilot_installation": "approval-search-pilot-installation.json",
"permissions_granted": false,
"business_operations_in_pilot": false,
"sgf_changed": false,
"pending": ["Company plan configuration by its competent administrators", "Remaining visual and mobile verification", "Other RQ-01 requirements and complete product acceptance"]
}
@@ -0,0 +1,27 @@
{
"environment": "http://127.0.0.1:8005",
"result": "passed",
"results": [
{
"role": "admin",
"report_status": 200,
"native_positions_available": true,
"csv_status": 200
},
{
"role": "procurement",
"report_status": 200,
"native_positions_available": false,
"csv_status": 403
},
{
"role": "finance",
"report_status": 200,
"native_positions_available": true,
"csv_status": 200
}
],
"business_commands": false,
"session_context_only": true,
"visual_review": false
}
+13
View File
@@ -0,0 +1,13 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "Read-only native payable position insights and CSV for existing financial viewers; no new grant, financial rule or command",
"authorization": "rq01-source-authorization.json",
"assets_verified": 150,
"previous_manifest_sha256": "4b4801f658ef0cbbc3f83311afbb610add0c7985916ba25c21af2a8b77cf683f",
"manifest_sha256": "aad78d2d79f03e3d95ca880875e331973bb2f2702288945852a818837a259057",
"previous_manifest_backup": "C:\\laragon\\www\\compras\\storage\\framework\\testing\\manifest-before-financial-review-20261122.json",
"schemas_changed": false,
"business_commands": false,
"capability_settings_changed": false,
"visual_review": false
}
+28
View File
@@ -0,0 +1,28 @@
{
"date": "2026-11-22",
"status": "implemented_tested_and_available_to_existing_financial_viewers_empty_coverage_visually_reviewed",
"visual_review": {"date": "2026-11-22", "browser": "Native Edge", "profile": "Existing synthetic Finance evaluation profile", "route": "http://127.0.0.1:8005/relatorios", "widths": [390, 1040], "observed": "Legible coverage, 0 of 1 recognised, 1 unrecognised, no fabricated zero balance, current-position CSV link and separate currency explanation", "business_writes": false, "scope_limit": "Observed current pilot empty-coverage state; positive balances remain covered by synthetic integration tests, not a visual acceptance of every financial state"},
"scope": "Current native payable positions for invoices linked to authorised filtered requests, all pages; separate current-position CSV",
"financial_authority": "Existing common Payables.positionForSource; host sums exact minor units only, separately by the currency returned by the engine",
"read_composition": "Native engine instance with readContext revalidation and commands rejected; report executes in its existing read-only repeatable-read PostgreSQL snapshot",
"coverage": "Recognised determined, unrecognised and indeterminate counts separate; missing or divergent positions excluded from totals without replacing them by zero",
"period": "Existing filters refer to request creation. Positions are current at report generation, not historical balances or a chosen expense recognition basis",
"fields": ["principal_minor", "confirmed_payments_minor", "allocated_payments_minor", "balance_minor"],
"privacy": "Existing financial role and native view grant required. No bank identifiers, evidence, private notes or sources exposed in totals/CSV",
"validation": {
"sqlite_focused": {"tests": 4, "assertions": 57, "log": "storage/logs/payable-insights-focused.txt"},
"postgres_final_focused": {"tests": 4, "assertions": 58, "isolated_database_removed": true, "log": "storage/logs/payable-insights-focused-pg.txt"},
"earlier_integration_before_csv_delta": {"tests": 22, "assertions": 497, "status": "passed_at_that_revision"},
"latest_broad_attempt": {"status": "timed_out_after_180_seconds_not_approved", "log": "storage/logs/payable-insights-pg.txt", "followup": "Final four changed cases isolated and passed in 7.517 seconds; no claim that the broad attempt passed"},
"frontend_final": {"tests": 137, "files": 28, "log": "storage/logs/payable-insights-frontend.txt"},
"typescript": "passed", "phpstan": "passed_zero_errors", "scoped_pint": "passed", "build": "passed",
"pilot_http": {"checks": 6, "proof": "payable-insights-pilot-http.json"},
"preview": "payable-insights-preview.json"
},
"synthetic_cases": ["Native principal and balance", "Confirmed historical partial payment counted once", "Pending payment does not reduce balance", "Divergent origin is indeterminate", "Other company and filtered-out requests excluded", "Read commands and revoked view grant rejected", "CSV denied to Procurement", "Exact display beyond JavaScript floating point precision"],
"new_schema_or_grants": false,
"pilot_business_operations": false,
"common_financial_package_modified": false,
"sgf_modified": false,
"enterprise_acceptance": false
}
+36
View File
@@ -0,0 +1,36 @@
{
"date": "2026-11-22",
"status": "ongoing_integral_product_review",
"environment": "http://127.0.0.1:8005",
"native_browser": "Existing Edge window 133142; existing SGC tab; other product tabs preserved",
"observations": [
"Browser host connector remains unavailable; native Windows observation and input work",
"Resetting page zoom to 100 percent resolves the apparent left clipping at 390 by 559; no CSS workaround applied",
"Bank details and navigation drawer fit the observed mobile viewport",
"Order list initially crashed while reading the absent original requisition reference",
"Existing synthetic order 1 has only supplier, company, development_only and budget_checked in its snapshot; original snapshot was not changed",
"After correction, list and order detail render in the same mobile viewport",
"Order 1 print preview: one readable page with explicit incomplete-original notice, preserved article and documented totals",
"Receipt 1 print preview: one readable page with original quantities, quality and documentary-reference section",
"Both print previews cancelled without physical printing or PDF export"
],
"correction": "Safe list references and explicit incomplete-original detail/print path. No reconstruction from mutable current records, no invented financial amounts or approvals, no data rewrite.",
"validation": {
"order_documents_sqlite": {"tests": 14, "assertions": 406, "log": "storage/logs/order-document-compatibility.txt"},
"order_documents_postgres": {"tests": 14, "assertions": 406, "isolated_database_removed": true, "log": "storage/logs/order-document-compatibility-pg.txt"},
"order_frontend": {"tests": 2},
"search_and_help_frontend": {"tests": 11},
"financial_search_postgres": {"tests": 6, "assertions": 210, "isolated_database_removed": true},
"search_and_order_focused_sqlite": {"tests": 7, "assertions": 237},
"pilot_http": {"checks": 6, "business_commands": false},
"typescript": "passed",
"phpstan": "passed_zero_errors",
"build": "passed",
"qa_assets": "product-review-preview.json"
},
"pilot_schema_or_grants_changed": false,
"pilot_business_operations": false,
"financial_search_activation": false,
"whole_product_visual_coverage": false,
"enterprise_acceptance": false
}
+13
View File
@@ -0,0 +1,13 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "QA presentation for complete product review, order compatibility correction and contextual financial-search guidance; no capability activation",
"authorization": "rq01-source-authorization.json",
"assets_verified": 150,
"previous_manifest_sha256": "ee6e7404da9960181980c10b68b3c84c92d3667c163355442036b3fc0f53ab93",
"manifest_sha256": "9bbca2dc15b40c05f268b118e4f16178a3120ae19329fdbe19403178e22cf251",
"previous_manifest_backup": "C:\\laragon\\www\\compras\\storage\\framework\\testing\\manifest-before-product-review-20261122.json",
"schemas_changed": false,
"business_commands": false,
"invoice_search_enabled": false,
"visual_review": false
}
@@ -0,0 +1,13 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "QA presentation of approved production destination increment",
"authorization": "rq01-source-authorization.json",
"assets_verified": 150,
"previous_manifest_sha256": "c2203372527050e083f6cc0aab47a1e08534015d692b3a8781a26ddf65109c23",
"manifest_sha256": "ee6e7404da9960181980c10b68b3c84c92d3667c163355442036b3fc0f53ab93",
"previous_manifest_backup": "C:\\laragon\\www\\compras\\storage\\framework\\testing\\manifest-before-rq01-production-20261122.json",
"schemas_changed": false,
"business_commands": false,
"invoice_search_enabled": false,
"visual_review": false
}
+28
View File
@@ -0,0 +1,28 @@
{
"date": "2026-11-22",
"status": "first_rq01_increment_implemented_and_available_in_qa_visual_acceptance_pending",
"source_authorization": "rq01-source-authorization.json",
"scope": [
"Production destination in the existing internal warehouse request",
"Optional production reference declared by the user, explicitly not verified against an external production system",
"Immutable request snapshot, delivery event metadata and existing single native stock operation link",
"Delivery print and CSV retain production context, including a literal reference of zero",
"Optional replenishment origin carries the same declared production reference into the native purchase request"
],
"validation": {
"sqlite_integrated": {"passed": 50, "assertions": 713, "log": "storage/logs/production-destination-integration.txt"},
"postgres_integrated": {"passed": 50, "assertions": 713, "isolated_database_removed": true, "log": "storage/logs/production-destination-pg.txt"},
"frontend_focused": {"passed": 14, "files": 4},
"one_eligible_approver_regression": {"passed": 1, "assertions": 9, "scope": "existing native level with two eligible approvers, not an eight-level configuration"},
"warehouse_exchange_regression": {"passed": 13, "assertions": 101, "database": "isolated SQLite", "scope": "Production is internal use in unchanged v1 wire contract; original detailed reference remains local"},
"typescript": "passed",
"phpstan": "passed: zero errors",
"scoped_frontend_format_lint": "passed",
"private_build": "passed: rq01-production-candidate-20261122"
},
"qa_preview": "production-destination-preview.json",
"pilot_post_preview_http": "draft-preparation-pilot-http.json",
"schemas_changed": false,
"pilot_business_commands": false,
"pending": ["Eight-level configurable approval routing", "Line account distributions and accounting integration through approved common mechanisms", "Company exception limits and deadlines", "External MRP or maintenance order integration", "Source document remaining requirements tracked in the existing matrix", "Full mobile, print preview and enterprise acceptance"]
}
@@ -0,0 +1,13 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "Correct false dirty state caused by restored technical identities; preserve protection of edited preparation",
"authorization": "rq01-source-authorization.json",
"assets_verified": 150,
"previous_manifest_sha256": "aad78d2d79f03e3d95ca880875e331973bb2f2702288945852a818837a259057",
"manifest_sha256": "c0beadc1302b0e211eaeb18603a4cf7dab863b9e81f5771ddba8bec92bc4568c",
"previous_manifest_backup": "C:\\laragon\\www\\compras\\storage\\framework\\testing\\manifest-before-history-clean-review-20261122.json",
"schemas_changed": false,
"business_commands": false,
"capability_settings_changed": false,
"visual_review": false
}
@@ -0,0 +1,13 @@
{
"environment": "http://127.0.0.1:8005",
"scope": "QA presentation of requisition preparation restored through native encrypted browser history; deployment settings preserved",
"authorization": "rq01-source-authorization.json",
"assets_verified": 150,
"previous_manifest_sha256": "9bbca2dc15b40c05f268b118e4f16178a3120ae19329fdbe19403178e22cf251",
"manifest_sha256": "4b4801f658ef0cbbc3f83311afbb610add0c7985916ba25c21af2a8b77cf683f",
"previous_manifest_backup": "C:\\laragon\\www\\compras\\storage\\framework\\testing\\manifest-before-history-review-20261122.json",
"schemas_changed": false,
"business_commands": false,
"capability_settings_changed": false,
"visual_review": false
}
+23
View File
@@ -0,0 +1,23 @@
{
"date": "2026-11-22",
"status": "implemented_tested_and_observed_in_existing_edge",
"scope": "Requisition preparation only; other forms retain their existing navigation protection",
"mechanism": "Native Inertia remembered form state, keyed by company, user, requisition and process version; encrypted history on create and edit pages",
"storage": "Browser history only; no localStorage, automatic submission or additional database record",
"cleared_form_regression": {"cause": "Restored operation UUID and visual row keys differ from freshly generated defaults", "fix": "Dirty comparison ignores only those technical identities; real fields and line order remain protected", "tests": "19 focused frontend tests passed, types and scoped lint passed without warnings", "native_verification": "Confirmed blank justification after reload of corrected assets, then Back returned directly to the prior receipt page without the false unsaved warning", "preview": "requisition-history-clean-preview.json"},
"validation": {
"frontend_focused": {"tests": 18, "files": 4},
"backend": {"tests": 8, "passed": 7, "skipped": 1, "assertions": 70, "log": "storage/logs/requisition-history.txt"},
"typescript": "passed", "phpstan": "passed_zero_errors", "private_build": "passed",
"preview": "requisition-history-preview.json"
},
"native_observation": {
"environment": "http://127.0.0.1:8005",
"window": 133142,
"viewport": "390x559 at 100 percent page scale",
"steps": ["Opened new requisition preparation in the observed SGC tab", "Entered synthetic justification only", "Used Back and accepted the native unsaved-changes warning for this test text", "Verified return to the previous receipt consultation", "Used Forward and observed the exact justification restored", "Removed the test text without saving"],
"result": "passed",
"business_submission": false,
"other_tabs_preserved": true
}
}
@@ -0,0 +1,21 @@
{
"date": "2026-11-22",
"status": "private_qa_artifact_prepared_not_published",
"path": "storage/framework/testing/budget-distribution-qa-ef60dd86bf71ec79",
"archive": "storage/framework/testing/budget-distribution-qa-ef60dd86bf71ec79.zip",
"archive_sha256": "40648297cc2dbf755ca68afb06a9ea68cbea42ff50293d37422fb19119062798",
"canonical_fingerprint": "ef60dd86bf71ec7932620db2e7df03a5359e7e45f4c6af882e898c080d26f070",
"files": {
"bootstrap.php": "09feb353274c100596a122aaa6251ab042a39ecdc517b23755154fb33b7987d7",
"src/BudgetContext.php": "200b23fa560cc967bf6c9ccc1387ee9fefd9933f965811f8a4a0ab5f74f12e04",
"src/BudgetFailure.php": "30ec4c7a5b45e5980ca517d167aa45e89f22a3429c76365fa1c1a94db5f4d8e0",
"src/BudgetControl.php": "3019358664e21f6ae75b589fec577f4fc16da1f3b2257eefc2840b143ce988c8",
"src/BudgetDistributionPlan.php": "ed42ce7c3ffb789c9b0deb39a880ddd8bb3e5c63d8a14d9871dba73fe8c00acd",
"src/BudgetDistributions.php": "7f963593b2d0b45f89261d90fff384805aa24df2132997f97477b6ca7082f21b",
"README.md": "24363f762ba5ba361377ff3807704bf6143c4180919bc1c45ac6cdd54eed3639"
},
"host_schema": "database/qa-migrations/2026_11_22_000004_create_budget_distributions.php",
"host_schema_sha256": "3617dd6dfecc0fb44aae5450d7fc5a26af90974eb0561aef4d1e86ef1af68dca",
"installed_financial_packages_changed": false,
"pilot_or_sgf_activation": false
}
@@ -0,0 +1,8 @@
{
"date": "2026-11-22",
"status": "approved_for_development_and_isolated_qa_only",
"owner_response": "Autorizar a extensão em QA",
"proposal": "rq01-distribution-contract-proposal.json",
"scope": "Common budget source extension and SGC host adaptation for explicit line/centre allocations, preserving the one financial authority and old single-centre contracts",
"excluded": ["Published financial artifacts", "Pilot or SGF installation/activation", "Real allocations, budgets, grants or data", "Payments and accounting postings"]
}
@@ -0,0 +1,27 @@
{
"date": "2026-11-22",
"status": "authorized_for_qa_implementation_in_progress_see_authorization_and_qa_proofs",
"requirement": "RQ-01 line account assignments and distributions; shared contract extension authorised specifically for development and isolated QA",
"evidence": {
"current_host": "app/Services/BudgetWorkflow.php",
"installed_artifact": "packages/budget-control/src/BudgetControl.php",
"common_source": "C:/laragon/www/sgf-tempo/packages/budget-control/src/BudgetControl.php",
"both_sha256_at_proposal_before_authorized_source_edits": "1349d1ab4ab58a83c9abbf43549ebe7e4ed77717ed5463a2defac748cf7b9a31",
"current_contract": "record(origin, centre, requiredKind, kind, amount, subtotal) and consume(origin, invoice, total, subtotal)",
"limitation": "All entries for a requisition are treated as one origin and use its first budget allocation; calling this contract repeatedly with different centres cannot implement a correct distribution"
},
"requested_scope": [
"Develop and test a versioned optional distribution contract at the common budget source and the SGC host adaptation, in isolated development/QA only",
"Keep all current single-centre commands and previously frozen processes compatible",
"Freeze explicit line/destination identity, version and authorised centre; do not infer external project, asset or production identities",
"Use explicit net and gross minor-unit allocations whose sums equal the authoritative native line/document totals; no presumed percentages, exchange rates or rounding adjustments",
"Revalidate allocations when the approved quotation or invoice basis changes; never silently rescale a prior estimate",
"Partial invoice allocations must be explicit, within the remaining frozen allocations, and reconcile to the native invoice totals",
"Reserve, award-adjust, commit, release and consume all assigned centres atomically through the one common budget authority, with idempotence and no duplicate effects",
"Preserve existing budget classification, tax basis, currency and eligibility rules; no silent exception for an insufficient or unauthorised allocation",
"Retain original documents, relations and audit history; test schema evolution and recovery only in guarded disposable QA databases"
],
"acceptance": ["Old single-centre regressions remain valid", "Exact allocation totals and partial consumption without lost cents", "One operation per original document/event; replay is harmless and changed replay rejected", "Any failed centre validation rolls back the whole distributed command", "Concurrent commands and cancellations cannot overspend or duplicate releases", "Tenant, department, authority, currency and source-version isolation", "No write to the other product database and no duplicate ledger or stock effect"],
"excluded": ["Editing or installing published financial artifacts", "Pilot or SGF runtime activation", "Production migration or data changes", "Real company allocations, budgets or grants", "Payments or accounting postings", "New self-approval or quotation exceptions"],
"recovery": "Prepare and verify compatibility and rollback guards in isolated QA. Existing installations continue using their unchanged pinned artifacts and current single-centre records. Deployment requires a later concrete authorisation."
}
@@ -0,0 +1,7 @@
{
"date": "2026-11-22",
"status": "approved_for_qa_only",
"owner_response": "Aprovar reafectação explícita por Finanças em QA",
"rule": "Finance confirms each partial invoice allocation in MZN. When the existing cumulative conversion requires moving cents between centres, commitment reallocation is explicit, versioned, within available funds, and preserves the previous allocation.",
"preserved": ["Frozen original currency, rate, source and date", "Existing native cumulative invoice conversion", "One common budget writer", "No automatic balancing values", "Existing invoice preparation and independent validation", "No real grants, operations or pilot/SGF activation"]
}
+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"
]
}
+35
View File
@@ -0,0 +1,35 @@
{
"date": "2026-11-22",
"status": "targeted_native_review_completed_in_disposable_qa",
"browser": "Native Edge, existing review tab; unrelated tabs preserved",
"environment": "Private loopback QA on 8006, guarded disposable PostgreSQL, distinct session cookie, synthetic fixtures only",
"candidate_manifest_sha256": "1edb9ab0aa62fcf4e9c9075ce6e405de5435dc8ea4799d1949535a96c718df4e",
"widths": [390, 1040],
"observed": [
"Requisition distribution fields remain legible and stack at 390 pixels",
"A one-cent mismatch was rejected with an actionable message and values preserved for correction",
"Corrected explicit parcels saved the draft at version 3 without reserving funds; native database and audit checked",
"Quote selection precedes allocation fields; choosing the native quote reveals the selected MZN reference and explicit parcels",
"Foreign commitment amendment is legible at both widths, with explicit values and mandatory reason",
"One synthetic Finance amendment created version 1 and one audit; original commitment, USD document and frozen rate remained preserved",
"Invoice document fields retain USD, while allocation fields explicitly use MZN and remain blank until entered",
"A tentative quantity of 0.600 survived navigation to commitment amendment and browser Back",
"No invoice or award was registered by the invoice/adjudication visual review",
"The existing 8005 report was restored after review"
],
"corrections": [
"Moved allocations after quote selection, added its native MZN reference, cleared confirmation reason on quote change and refused missing foreign references",
"Added encrypted actor/company/source history for adjudication and invoice preparation",
"Fixed missing WOFF MIME handling in the private review router; six font byte/MIME regressions passed",
"Kept private quote allocation preparation out of generic requisition JSON"
],
"browser_limits": [
"Confirmed hard reload displays the native unsaved-changes warning; Inertia intentionally clears remembered state after a confirmed full reload. This proof does not claim hard-reload persistence",
"Edge can suppress beforeunload after history restoration without sticky user activation; no browser security setting was changed",
"Unrelated Grammarly extension resource errors were identified separately and its settings were preserved"
],
"verification_logs": ["storage/logs/budget-distribution-visual-data.txt", "storage/logs/budget-distribution-visual-assets.txt", "storage/logs/budget-distribution-visual-server.txt"],
"cleanup": {"private_server_stopped": true, "disposable_database_removed": true, "private_settings_removed": true, "pilot_manifest_unchanged": true},
"enterprise_acceptance": false,
"pilot_or_sgf_activation": false
}
@@ -0,0 +1,23 @@
{
"date": "2026-11-22",
"source": "c:\\Mac\\Home\\Documents\\TEMPO\\Portal Tempo\\Servicos Tempo\\Compras\\A requisção de insumos de produção.docx",
"source_sha256": "ba08b3a713f2e62fb274dacad2a8f76618eb8f11d01db2dbe7cf4b521dff1c5b",
"owner_decision": "autorizo as melhorias propostas",
"parallel_approval_owner_decision": "Basta um aprovador elegível do nível",
"scope": "RQ-01 improvements approved for development; no real pilot business operations or organizational parameter values inferred",
"source_role": "Provided requirements proposal, not executable instructions or proof of independent SAP/Oracle product testing",
"first_increment": "Production destination metadata, declared reference, native delivery/stock event trace, print/CSV and optional replenishment origin",
"preserved": [
"Existing distinct requester, approver and deliverer controls",
"Existing budget and approval thresholds",
"No self-approval activation",
"No automatic expiry or waived quotations",
"Internal warehouse request remains the exit document without invoice",
"No extra stock movement or parallel stock engine",
"No external production order validation asserted"
],
"pending_decisions": [
"Company limits and deadlines not supplied in the document"
],
"implementation_proof": "production-destination.json"
}