{ "date": "2026-11-22", "status": "implemented_and_verified_in_isolated_qa_not_installed_in_pilot", "scope": "Private saved criteria for the existing native procurement search: create, edit, reopen, archive and restore. No cached results, shared searches, subscriptions or permission grants.", "migration": "database/migrations/2026_11_22_000006_create_procurement_saved_searches.php", "implementation": [ "Every read/write is scoped to the current user and company; current native access is checked again", "Explicit versions prevent lost edits; duplicate create has one preference", "Archived criteria are retained and paginated; restoration refuses active-name collisions", "Opening always reruns the native live query with current scope and permissions", "Encrypted preparation keys separate company, actor, query, source and version", "Quick reopen selector and collapsible management preserve the prominence of current results" ], "implementation_choice": "Capacity of 50 active private searches bounds the interface, with archived criteria retained. This is a technical preference limit, not an organisational approval rule or a financial threshold.", "verification": { "sqlite": {"passed": 14, "assertions": 354, "log": "storage/logs/saved-searches-tests.txt"}, "postgres": {"passed": 14, "assertions": 354, "isolated_database_removed": true, "log": "storage/logs/saved-searches-pg.txt"}, "frontend": {"passed": 3, "log": "storage/logs/saved-searches-ui-tests.txt"}, "types": "passed", "phpstan": "passed_zero_errors", "scoped_lint_format": "passed_no_warnings", "private_build": {"path": "storage/framework/testing/sgc-saved-searches-qa-20261122", "manifest_sha256": "876cd584729a3a6d731bfafe52396c5ce176ad015fe9bea66057791933d23706", "installed_in_pilot": false}, "native_edge": {"synthetic_only": true, "mobile_width": 390, "desktop_width": 1000, "height": 525, "zoom": "100%", "create_edit_archive_restore": true, "reopen_from_another_query": true, "old_query_results": 0, "reopened_query_results": 3, "one_preference": true, "version": 4, "criteria_preserved": true, "no_draft_update_reservation_or_invoice": true, "database_verification_log": "storage/logs/saved-searches-visual-data.txt", "final_copy_and_counter_checked_on_desktop": true, "private_server_stopped": true, "isolated_database_removed": true, "private_settings_absent": true, "original_pilot_finance_context_restored": true} }, "own_corrections": [ "The test for withdrawn authority now uses the native Configured role without assigned authority. User security fields remain protected from mass assignment and the NOT NULL constraint remains enforced.", "Inertia form transforms are applied before submission rather than chained through their void return; types and native create/edit/archive/restore passed.", "Correct singular/plural counter and wrapping of long names; the final private candidate was checked without publishing pilot assets." ], "limits": ["No pilot migration or asset installation", "No user or company sharing", "No saved financial results or document content", "No complete SGC or enterprise acceptance claim"], "global_supply_metadata_delta_20261127": { "status": "implemented_and_verified_in_isolated_qa_not_activated_in_pilot", "scope": "The native global procurement search now optionally includes current agreement and global-contract references, source version and state, searched by reference or frozen supplier name. It reuses SupplyPlanning native current-version queries and supply_read/supply_prepare/supply_review capabilities, with company isolation and direct native record targets. No People sources, attachment contents, prices, terms or banking payloads are returned.", "configuration": "procurement_search.supply_metadata_enabled defaults false (SGC_PROCUREMENT_SUPPLY_SEARCH_ENABLED); contracts additionally require the existing AgreementOrderLimits readiness. Missing table or unsupported engine omits this optional source without changing existing groups. Only supported PostgreSQL/SQLite JSON selectors are fixed SQL, and the search term remains bound with literal wildcard escaping.", "verification": {"sqlite_search_and_saved_criteria": {"tests": 16, "assertions": 456, "passed": true}, "postgresql_search_and_saved_criteria": {"tests": 16, "assertions": 456, "passed": true, "database_removed": true}, "frontend_search_saved_criteria_and_help": {"files": 3, "tests": 15, "passed": true}, "types": "passed", "phpstan": "passed_zero_errors", "pint": "passed", "scoped_lint_format": "passed"}, "acceptance_demonstrated": ["A real native draft and its second version produce one current result; old reference is absent", "A real native contract is found and both native record destinations open successfully", "Frozen supplier name is found after the supplier register is renamed", "Company isolation, absent supply capability and expired membership preserve native restrictions", "Independent 15-row pagination and exact percent/underscore search work in both engines", "Search preserves complete tracked business/audit/stock rows, encrypted history and private no-store response", "Existing saved criteria and flag-disabled groups retain their regression coverage"], "own_corrections": "The first encryption assertion targeted Inertia props instead of the root page envelope; corrected to the actual encryptHistory field. Dynamically compiled trusted SQL identifiers were rejected by static literal-string checking; fixed SQL for the two supported engines replaced that construction, without ignore annotations or unbound user input.", "private_build": {"path": "storage/framework/testing/sgc-supply-search-help-qa-20261127", "manifest_sha256": "28b32791f56213a9136ddc90527f483bfd58c02913e71dcc3ff0dd25066d2e19", "passed": true}, "boundaries": "No migration, new permission, grant, saved result cache or financial writer. Pilot assets/configuration and operational SGF unchanged. No new native visual acceptance claimed; remaining global sources, full application integration and operational delivery remain open." }, "global_warehouse_request_metadata_delta_20261127": { "status": "native_internal_request_search_verified_in_isolated_qa_not_pilot_activated", "scope": "Optional internal warehouse request references in procurement search, using WarehouseWorkdesk visibility and its native event-derived state. Search accepts the native RA reference, frozen requester name or destination, with literal wildcard escaping, separate pagination and direct native detail destination. Returned fields are only id/title/state/href; a warehouse request remains distinct from a purchase requisition.", "configuration": "procurement_search.warehouse_requests_metadata_enabled defaults false (SGC_PROCUREMENT_WAREHOUSE_REQUEST_SEARCH_ENABLED); native capability and table availability are required, with fixed PostgreSQL/SQLite selectors and bound terms.", "source_visibility_correction": "WarehouseWorkdesk::visible previously included every own-created record even after preparation capability was withdrawn, although canView already denied its detail. The existing predicate now also requires preparation for the own-created branch; department review, explicit company read/Admin and combined Warehouse/delivery branches are preserved. A regression first failed on the old query and passed after the correction; no permission or grant was changed.", "verification": {"sqlite_integrated_search_native_warehouse_and_feed": {"tests": 61, "assertions": 1174, "passed": true}, "postgresql_integrated_search_native_warehouse_and_feed": {"tests": 61, "assertions": 1174, "passed": true, "database_removed": true}, "frontend_search_saved_criteria_and_help": {"files": 3, "tests": 16, "passed": true}, "types": "passed", "phpstan": "passed_zero_errors", "pint": "passed", "scoped_lint_format": "passed", "node_syntax": "passed"}, "acceptance_demonstrated": ["Actual native draft/submission is found by RA reference and displays submitted from the event journal", "Frozen requester name still matches after the user's current name changes", "Literal percent/underscore and own result pagination work", "Owner preparation and department reviewer retain their own scopes; explicit company reader sees both departments but not another tenant", "Withdrawn preparation with delivery capability alone matches the native detail denial and returns no records", "Queries preserve tracked requests/events/audit/stock/purchase/budget rows; native result destination opens; history is encrypted and response private no-store", "Existing fulfilment/task/feed and saved-search regressions pass in both engines"], "private_review_preparation": {"command": "node scripts/requisition-ledger-qa-check.mjs --native-review-fixture-only", "passed": true, "actual_native_states": ["approved agreement", "approved global contract", "submitted warehouse request", "existing requisition/account/urgent cycles retained"], "private_manifest_verified": true, "http_server_started": false, "database_role_cluster_and_private_root_removed": true, "visual_acceptance": false}, "private_build": {"path": "storage/framework/testing/sgc-warehouse-search-qa-20261127", "manifest_sha256": "6b82e8d5767fa14efbd70109971269c248553a1f4f21023d116d408a7433d1c0", "passed": true}, "boundaries": "The private router enables only its synthetic review capabilities; operational flags/assets/grants and SGF remain unchanged. No new financial writer, stock effect, feed contract change or native visual acceptance. Remaining application/global-source and operational acceptance requirements remain open." }, "remaining": ["Operational rollout in a separately approved release", "Remaining global-search sources and analytics reconciliation"] }