Files
compras/docs/proofs/requisition-expiry-qa.json
T
nala 1ddabbbdcc
tests / ci (push) Waiting to run
commit compras3 2811
2026-11-28 18:16:04 +02:00

432 lines
20 KiB
JSON

{
"urgent_stock_quotation_delta_20261128": {
"owner_decisions": "Urgent quotation condition after reaching minimum stock; minimum configurable according to item nature and use. No numeric minimum quotation count was supplied: company configuration is explicit and optional.",
"source_check": "Re-read the urgent paragraph in the approved RQ-01 Word: possibility of dispensing with the second quotation; budget verification, account assignment and an independent approver remain. No additional monetary cap was invented from that paragraph.",
"implementation": "Optional lower urgent_minimum_proposals in native versioned company comparison policy, frozen only for newly created requests. UrgentQuotationBasis privately records the applicable approved item/warehouse minimum policy, use context, native free/usable stock at the threshold event, original line, actor, date and current cycle. All lines need matching evidence; otherwise ordinary quotation counts remain. Changed line/cycle/policy does not reuse evidence. Native comparison fingerprint and normal/partial/consolidated order snapshots preserve the selected evidence. Stock evidence is a historical threshold event, not an automatic stock movement, expiry or business approval.",
"authority": "Current native quotation preparation authority to record; current native process/quotation readers may consult the projected evidence without gaining recording rights. Revocation, hidden requests and closed awards remain guarded. QA-only and disabled by default.",
"verification": {
"postgres": {
"tests": 6,
"assertions": 139,
"passed": true,
"normal_and_partial_issue": true,
"independent_evaluators": 2,
"eligible_suppliers": 1,
"ordinary_minimum": 3,
"explicit_urgent_minimum": 1,
"synthetic_normal_order_mzn": 100,
"synthetic_partial_order_mzn": 40,
"database_removed": "compras_receipts_test_61471f295692"
},
"sqlite": {
"tests": 6,
"passed": 5,
"skipped": 1,
"assertions": 122,
"skip_reason": "Published legacy budget runtime lacks partial-order capability; actual partial issuance passed with the pinned private composition on PostgreSQL."
},
"frontend": {
"tests": 46,
"files": 4,
"passed": true
},
"typescript": "passed",
"phpstan_errors": 0,
"frontend_format_lint": "9 files passed",
"pint": "passed",
"private_build": "storage/framework/testing/sgc-urgent-stock-qa-20261128",
"manifest_sha256": "b712f509fb0ff1179fc9d007abbef0a3c2d5f97f575b558cbc49f47d06dc9894",
"manifest_entries": 182,
"missing_assets_or_imports": 0,
"native_readonly_http": {
"checks": 234,
"prior_same_asset_run_checks": 233,
"fortify_sessions": 3,
"verified_page_assets": 19,
"unchanged_tables_in_read_window": 137,
"operational_order_and_urgent_stock_pages": true,
"requester_refusals": true,
"metadata_order_register_refused": true,
"business_commands_sent": 0,
"owned_database_and_role_removed": true,
"browser_visual_acceptance": false,
"log": "storage/logs/operational-urgent-http-final-20261128.log"
},
"operational_access_regression": {
"sqlite_tests": 1,
"sqlite_assertions": 24,
"postgres_tests": 1,
"postgres_assertions": 24,
"passed": true,
"database_removed": "compras_receipts_test_26a90e083ce1",
"correction": "Own new register originally accepted any nonempty permission list. Explicit register authority now excludes metadata-only actors. Authorised process readers receive only linked order origins, never unrelated register rows. PHPStan passed again without suppressions."
},
"own_test_corrections": "Used the actual receiptPayload helper and the existing native 404 for a warehouse actor without process visibility; an authorised Finance reader separately proved 403 for recording and read-only evidence access. Added the omitted explicit normal/partial dataset. No application access was relaxed to satisfy those assertions."
},
"limits": "Pilot/SGF, real accounts/grants and operational deployment untouched. New HTTP run is read-only and does not replace the separate native financial command journey or physical browser/print acceptance. Metadata audit scope unchanged; private export scope remains a separate owner choice."
},
"date": "2026-11-27",
"status": "implemented_in_isolated_qa_integration_and_acceptance_in_progress",
"authorization": "requisition-expiry-contract-authorization.json",
"behaviour_verified": [
"Same requisition returned to requester draft; prior approved decisions and item amounts preserved",
"Old cycle reservation released by the existing financial writer; revised submission reserves independently",
"Current-cycle eager approval relation and immutable history remain distinct",
"Ordinary, distributed and import-estimate reservations retain separate cycle identities",
"Company-defined elapsed-minute policy frozen on submission; later policy changes do not rewrite it",
"Native HTTP expiry and due-action checks replay without duplicate effects",
"Reminder receipts are unique per current step and recipient",
"Escalation alert recipients require currently valid configured membership and native visibility; no approval grant",
"Partial native orders commit forty then sixty in both first and second cycles",
"Old installed financial runtime refuses balances with status 503 after a new cycle"
],
"verification": {
"focused_postgresql": {
"tests": 9,
"assertions": 173,
"passed": true,
"includes_current_cycle_approval_duration": true
},
"submission_budget_regression": {
"tests": 40,
"assertions": 723,
"passed": true,
"note": "Before the added seventh escalation test; not additive with focused tests"
},
"import_regression": {
"tests": 24,
"assertions": 189,
"passed": true
},
"order_regression": {
"tests": 8,
"assertions": 268,
"passed": true
},
"partial_order_two_cycles": {
"tests": 2,
"assertions": 60,
"passed": true,
"note": "Covered by order regression"
},
"frontend": {
"expiry_and_help_tests": 10,
"all_tests": 202,
"passed": true
},
"concurrency": {
"same_operation": {
"statuses": [
200,
200
],
"blocked_writers": 2
},
"different_operations": {
"statuses": [
200,
409
],
"blocked_writers": 2
},
"late_decision": {
"statuses": [
200,
409
],
"blocked_writers": 2
},
"each_scenario": {
"returns": 1,
"reserve_minor": 0,
"late_approvals": 0
},
"old_runtime": {
"status": 503,
"before_balance_or_effects": true
},
"disposable_database_removed": true
},
"scheduled_execution": {
"without_session": true,
"scope_closed": true,
"repeat_without_effects": true,
"explicit_automatic_audit": true,
"unrelated_operations_denied": 3
},
"recovery": {
"pre_extension_tables_equal": 115,
"post_extension_tables_equal": 116,
"native_replay_without_effects": true,
"reserved_minor_restored": 12000,
"source_and_restore_databases_removed": true
},
"private_build": {
"path": "storage/framework/testing/sgc-expiry-qa-20261127",
"manifest_sha256": "5cdbb3bdd27379ba55a32c676ebf791fd90c0a3e89f5c384fea3ea7b98084cd7",
"passed": true
},
"portable_artifact": {
"proof": "requisition-expiry-artifact.json",
"independent_financial_load_tests": 8,
"assertions": 122,
"passed": true
},
"native_visual_review": "Not performed: Computer Use reported that the user stopped it with physical Escape; no further UI actions taken",
"phpstan": "passed including scheduled host execution",
"typescript": "passed",
"pint": "passed on edited host files and new common cycle trait; common modified PHP files passed syntax checks",
"oversized_regression_attempt": "No result claimed: exceeded 180 seconds; replaced with independently isolated focused groups"
},
"remaining": [
"Native administrator/requester visual review",
"Final shared-source checks and final delta review",
"Remaining application requirements in the existing matrix"
],
"operational_installation": false,
"pilot_migration_or_activation": false,
"sgf_operational_changes": false,
"real_data_or_permission_changes": false,
"historical_document_presentation_delta_20261127": {
"scope": "Existing expiry history now presents the actual frozen original header, minimal item fields, monetary totals, routing amount, applied tax basis/limits and routing revision, plus each preserved decision's role/name, actor ID, date and reason. Pending tasks are explicitly described as pending at return time; they are not approvals of the new cycle. Missing historical fields remain unknown and are not rebuilt from current company settings. The API projects only the required original item/rule fields.",
"native_acceptance": [
"Actual normal expiry preserves the approved first stage and original 100 MZN document while the same request is resubmitted for 120 MZN with new approvals and reserve",
"After changing the future company first limit from 50 to 90 MZN, history still returns the submitted 50 MZN limit, original actor and original reason",
"A native imported estimate expires and history distinguishes 100 MZN goods from the actual frozen 110 MZN routing basis",
"Historical consultation leaves tracked budget/cycle/stock/audit and source rows unchanged",
"Rendered history escapes original comments, separates pending stages, preserves a real zero and does not fabricate unknown amounts or rules"
],
"verification": {
"postgresql_full_cycle_regression": {
"tests": 15,
"assertions": 510,
"passed": true
},
"postgresql_final_normal_and_import_history_delta": {
"tests": 4,
"assertions": 309,
"passed": true
},
"frontend_history_and_help": {
"files": 2,
"tests": 14,
"passed": true
},
"uncomposed_sqlite_native_cases": {
"skipped": 3,
"note": "The default installed kernel lacks the separately authorised optional cycle contract; no SQLite native pass is claimed."
},
"types": "passed",
"phpstan": "passed_zero_errors",
"pint": "passed",
"scoped_format_lint": "passed",
"counts_overlap_do_not_sum": true
},
"private_review": {
"path": "storage/framework/testing/sgc-cycle-history-qa-20261127",
"manifest_sha256": "4391164020a6f71296c0fbedbdad402525855715d610bae59d2dc888da9e0d33",
"build_passed": true,
"native_fixture_only_passed": true,
"actual_frozen_decision_original100_current120_verified": true,
"previous_urgent_and_search_examples_retained": true,
"http_server_started": false,
"database_role_cluster_and_private_root_removed": true,
"visual_acceptance": false
},
"own_corrections": "The historical item projection initially treated untyped snapshot data as a collection without validating its shape. It now narrows arrays explicitly and reports unavailable items instead of inventing values. The readonly regression uses the actual budget_requisition_cycles table, not an inferred table name. No source financial values were compensated or altered.",
"requirements_scope_reconciliation": {
"workflow_source": "C:/Mac/Home/Documents/TEMPO/Portal Tempo/Servicos Tempo/Compras/workflow.docx",
"sha256": "4bffdd7ac0f5775be1415545a5ce98befa190bd8ece06cdfca46c79e19921c3b",
"paragraphs_extracted": [
46,
74
],
"criterion": "Audit without editing by the application; authorised consultation of the document/rules used in decisions and exports within the same access scope. The owner already approved indefinite preservation without automatic deletion on 22 November. A historical matrix row must not turn unspecified absolute SQL-administrator protection or a new retention period into an additional approval gate. This reconciliation does not certify a full private-payload audit export."
},
"boundaries": "Readonly projection/presentation over existing frozen records, not a new financial writer, authority or cycle contract. Synthetic amounts and timing only; no real fiscal rate or organisational parameter certified. Pilot/common installed artifacts/operational SGF unchanged; physical browser and operational acceptance remain pending."
},
"decided_filter_delta": {
"behavior": "Historical decisions remain in decided-by-me while active approval steps remain scoped to the current cycle; existing visibility retained",
"tests": 9,
"assertions": 209,
"passed": true,
"database_removed": true
},
"urgency_timing_delta": {
"behavior": "Optional company-defined shorter urgent expiry/reminder/escalation values; no default minutes. Priority and policy are frozen per submission. Existing configured alerts require explicit shorter values; recipients retain current membership/visibility checks and receive no approval grant.",
"compatibility": "Legacy policy input shape and replay hashes remain unchanged when optional urgent fields are absent. Quotation counts, budgets, account assignment and approval authority are unchanged.",
"postgresql_focused": {
"tests": 11,
"assertions": 234,
"passed": true,
"database_removed": true
},
"frontend_directed": {
"files": 3,
"tests": 12,
"passed": true
},
"frontend_full": {
"files": 53,
"tests": 213,
"passed": true
},
"receipt_protocol": {
"tests": 14,
"assertions": 61,
"passed": true
},
"recovery": {
"urgent_frozen_seconds": 300,
"pre_extension_tables": 115,
"post_extension_tables": 116,
"all_columns_rows_equal": true,
"native_replays_without_effects": true,
"reserve_minor": 12000,
"source_and_restore_removed": true
},
"concurrency": {
"same_operation": [
200,
200
],
"different_operations": [
200,
409
],
"late_decision": [
200,
409
],
"blocked_writers_each": 2,
"returns_each": 1,
"late_approvals": 0,
"final_reserve_minor": 0,
"old_runtime_rejected_before_balance": true,
"scheduled_no_session_scope_and_replay_verified": true
},
"checks": {
"types": "passed",
"phpstan": "passed",
"scoped_format_lint": "passed",
"pint": "passed"
},
"private_build": {
"path": "storage/framework/testing/sgc-urgent-deadlines-qa-20261127",
"manifest_sha256": "50d40994756640758dab5aa59377f4b1f0302ab6ecdef166bc2fb8e13ae829e5",
"passed": true
},
"remaining": [
"Native visual/mobile/print acceptance",
"Other existing application requirements and separately authorised operational composition"
]
},
"posterior_urgent_review_delta": {
"decision": "urgent-review-trigger-decision.json",
"behavior": "Posterior documentary review per concluded cycle, available after native approval, rejection or expiry. Expired urgent source remains separate from a revised/resubmitted normal request. No additional approval or financial writer.",
"authority": "Only explicitly designated company profiles, with current Procurement function, valid non-maintenance membership and native request visibility; Admin alone and undesignated Procurement cannot review. Versioned administrative designation adds no grants.",
"source": "Actual native final decision/audit or preserved expiry packet. Missing/incomplete origin remains visible as indeterminate; accepted request outcomes are not changed.",
"versions": "Operation replay, stale source/version conflicts, append-only corrections and audit verification. Older notes and original amounts remain preserved.",
"native_postgresql_focused": {
"tests": 4,
"assertions": 168,
"passed": true,
"database_removed": true,
"includes_native_read_only_task_http": true,
"includes_resubmission_of_expired_parent": true
},
"earlier_integrated_cycle_family": {
"tests": 14,
"assertions": 356,
"passed": true,
"note": "Precedes the later focused corrections and incomplete-origin regression; counts overlap."
},
"frontend_directed": {
"files": 2,
"tests": 11,
"passed": true
},
"frontend_full": {
"files": 54,
"tests": 216,
"passed": true
},
"checks": {
"types": "passed",
"phpstan": "passed",
"scoped_format_lint": "passed",
"pint": "passed"
},
"private_build": {
"path": "storage/framework/testing/sgc-urgent-reviews-qa-20261127",
"manifest_sha256": "6ef4eb60be770e81224ce14aee67c926aa391f18e9b7aa7c36ffff1f13963d3e",
"passed": true
},
"native_preview": {
"real_common_ledger_schema": true,
"actual_native_seed_and_fortify_login_page_http_200": true,
"own_cluster_database_role_sessions_key_and_assets": true,
"synthetic_fixed_clock": true,
"visual_completed": false,
"blocker": "Native Edge window remained minimized on both observed getApp attempts; documented launch did not restore it. Browser access host unavailable. No private tab was opened.",
"private_server_cluster_database_role_root_removed": true
},
"boundaries": {
"default_enabled": false,
"host_migration_added": false,
"common_financial_source_changed": false,
"financial_sources_unchanged_by_review": true,
"pilot_or_sgf_operational_changes": false
},
"remaining": [
"Native visual/mobile/print review",
"Other application requirements; urgent quotation-count value-limit timing awaits owner decision",
"Separately authorised operational composition/activation"
]
},
"integrated_cycle_composition_delta_20261128": {
"status": "verified_in_owned_synthetic_qa",
"command": "node scripts/requisition-ledger-qa-check.mjs --integrated-cycles-only --integrated-schema",
"tests": 15,
"assertions": 525,
"passed": true,
"log": "storage/logs/integrated-cycles-20261128.log",
"scope": "Existing full cycle suite with actual common ledger and all five optional schemas: ordinary/distributed/landed reservation cycles, immutable history, rejection and resubmission, urgency, posterior review, reminders and escalation. Twelve optional tables verified for every case.",
"database_role_cluster_private_root_removed": true,
"product_rules_changed": false,
"operational_changes": false,
"limits": "Does not certify all order-parts writers or browser/operational acceptance."
},
"historical_decision_timezone_delta_20261128": {
"cause": "ApprovalStep has no datetime cast; preserved decided_at is a naive SQL timestamp. Browser interpreted it as local while submission and return timestamps had an explicit UTC offset. Native review showed a two-hour discrepancy.",
"change": "Read DTO adds the configured application timezone only to naive SQL decision timestamps; original rows and frozen snapshots remain unchanged. Already qualified timestamps and absent decisions are preserved.",
"postgresql": {
"command": "node scripts/requisition-ledger-qa-check.mjs --expiry-history-only --integrated-schema --frozen-runtime",
"tests": 3,
"passed": 3,
"assertions": 300,
"database_and_role_removed": true
},
"static": {
"phpstan_errors": 0,
"pint": "passed",
"node_syntax": "passed"
},
"native_review": {
"desktop": true,
"mobile_viewport": {
"width": 390,
"height": 526
},
"original_submission_and_approval_both_displayed": "28/11/2026, 17:41:48",
"return_displayed": "28/11/2026, 18:12:48",
"historical_total_mzn": 100,
"new_submission_total_mzn": 120,
"historical_rules_and_items_expanded": true,
"current_document_return_link_verified": true,
"financial_or_decision_writes": false
},
"scope": "Isolated synthetic QA only; no change to deadlines, decisions, financial effects, original timestamps or operational data."
}
}