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

This commit is contained in:
2026-11-29 16:56:53 +02:00
parent 30bfb1a773
commit a935499d64
22 changed files with 1134 additions and 31 deletions
@@ -0,0 +1,10 @@
{
"date": "2026-11-29",
"state": "approved",
"decision": "autorizo",
"scope": "existing_pilot_approval_deadline_task",
"proposal": "approval-deadlines-task-proposal.json",
"proposal_sha256": "4f8042c162fa0913e24177568737b84462087cfe427fe133ff8cd17f251f7428",
"new_policy_or_grants": false,
"production_service": false
}
@@ -0,0 +1,16 @@
{
"date": "2026-11-29",
"scope_unchanged": true,
"cause": "Windows native XML validation rejected UTF-8 declaration in the task registration transport: cannot switch encoding",
"correction": "UTF-16 file with matching declaration and BOM; canonical XML content identical; console XML declarations normalized for parsing",
"original_proposal_sha256": "4f8042c162fa0913e24177568737b84462087cfe427fe133ff8cd17f251f7428",
"original_installer_sha256": "2f00059fcaad89a15eb00fc573ca2a5cd680f596352c0ef0375a9193e9904f18",
"corrected_installer_sha256": "566354a3a8da5879a65d584f18de689a2bb221cd411c507aa07f7f6e08c9c52c",
"xml_transport_sha256": "3bd4c7af5b16ce22c674513e7cb515a968856a2a12b88a42b0e400540d25425d",
"original_helper_unchanged": true,
"native_validate_only_passed_before_registration": true,
"manual_registration_used_identical_canonical_xml_utf16": true,
"regression_tests": 3,
"regression_assertions": 11,
"original_approved_proposal_preserved": true
}
@@ -0,0 +1,55 @@
{
"date": "2026-11-29T14:46:14.7722397Z",
"state": "passed",
"authorization": "approval-deadlines-task-authorization.json",
"task_name": "Compras-Pilot-Approval-Deadlines",
"current_user_only": true,
"credentials_stored": false,
"run_level": "Limited",
"logon_type": "Interactive",
"poll_interval": "PT1M",
"overlap": "IgnoreNew",
"time_limit": "PT1M",
"initial_pass_observed_utc": "2026-11-29T14:43:26+00:00",
"initial_exit_code": 0,
"periodic_last_run_utc": "2026-11-29T14:45:25.0000000Z",
"periodic_exit_code": 0,
"next_run_utc": "2026-11-29T14:46:24.0000000Z",
"missed_runs": 0,
"task_state": "Ready",
"private_definition": "C:/laragon/data/compras/tasks/approval-deadlines-20261129-144124-912e4309b351/installed.private.xml",
"xml_encoding_fix": "approval-deadlines-task-encoding-fix.json",
"new_policy_or_grants": false,
"powershell_execution_policy_changed": false,
"windows_restart_performed": false,
"windows_logon_trigger_execution_not_claimed": true,
"installed_action_and_logon_trigger_verified": true,
"private_installed_xml_sha256": "e0bd3334d4b9da2480ef79d921010d60b746d48bbdb733b0f916c7dd8ef1c4a6",
"latest_worker_status": {
"started_at": "2026-11-29T14:46:26+00:00",
"result": "passed",
"scope": "Compras pilot 8005 approval deadlines",
"finished_at": "2026-11-29T14:46:26+00:00",
"exit_code": 0
},
"overlap_contending_process_exited_without_processing_or_changing_status": true,
"protected_business_tables_preserved": 149,
"old_audit_history_preserved": true,
"eligible_pending_requests": 0,
"real_expiry_effect_not_exercised_in_pilot_without_configured_requests": true,
"data_checked_at": "2026-11-29T14:47:12+00:00",
"task_installed_or_started": true,
"task_process_repeated_automatically": true,
"synthetic_standalone_deadline_regression": {
"command": "node scripts/requisition-ledger-qa-check.mjs --standalone-business-only",
"tests": 11,
"assertions": 246,
"result": "passed",
"reminder_repetition_without_duplicate": true,
"same_request_returned_and_reservation_released": true,
"approved_stage_preserved": true,
"resubmission_new_approvals_and_revised_reservation": true,
"temporary_database_and_role_removed": true,
"pilot_data_unchanged_by_regression": true
}
}
@@ -0,0 +1,22 @@
{
"date": "2026-11-29T14:20:41+00:00",
"state": "preview",
"task_name": "Compras-Pilot-Approval-Deadlines",
"current_user_only": true,
"credentials_stored": false,
"run_level": "Limited",
"poll_interval": "PT1M",
"overlap": "IgnoreNew",
"time_limit": "PT1M",
"private_definition": "C:/laragon/data/compras/tasks/approval-deadlines-20261129-142041-c5ec560518b9/task.private.xml",
"xml_sha256": "aa59ea1784c1c3fbdd14f6324e96bfc81e8ee961eba602f4e908adaaba4dff6c",
"pilot_ready": true,
"eligible_requests": 0,
"native_command": "sgc:approval-deadlines-tick",
"task_installed_or_started": false,
"powershell_execution_policy_changed": false,
"unauthorized_passage_refused_before_boot_or_lock": true,
"native_registration_not_yet_verified": true,
"initial_powershell_script_execution_refused": true,
"alternative": "Native schtasks XML through PHP; no PowerShell policy change"
}
@@ -0,0 +1,55 @@
{
"date": "2026-11-29",
"state": "prepared_not_authorized_or_executed",
"scope": "existing_pilot_approval_deadline_task",
"target": "http://127.0.0.1:8005",
"installation_id": "0602a856-0413-480f-9ef3-1a1f3238bb90",
"task_name": "Compras-Pilot-Approval-Deadlines",
"task_path": "\\",
"php_executable": "C:/Users/macbook/.config/investmoz/php-8.5.11/php.exe",
"working_directory": "C:/laragon/www/compras",
"action_script": "scripts/approval-deadlines-evaluation.php",
"action_arguments": "--once",
"technical_poll_interval": "PT1M",
"logon_type": "Interactive",
"run_level": "Limited",
"execution_time_limit": "PT1M",
"multiple_instances": "IgnoreNew",
"business_command": "sgc:approval-deadlines-tick",
"new_business_policy_or_grants": false,
"new_migrations": false,
"source_settings_changes": false,
"task_installed_or_started": false,
"application_complete": false,
"file_sha256": {
"scripts/approval-deadlines-evaluation.php": "a0aca6a8101b992007efda0920a2cc0336ff84f2a17b3150387605cd35ffca38",
"scripts/install-approval-deadlines-task.php": "2f00059fcaad89a15eb00fc573ca2a5cd680f596352c0ef0375a9193e9904f18"
},
"installer": "scripts/install-approval-deadlines-task.php",
"registration_tool": "Windows schtasks.exe; XML, no replacement flag",
"decision": "Autorizar criar a tarefa Windows limitada ao piloto existente, executar uma passagem inicial e manter a verificação periódica dos prazos de aprovação já configurados.",
"source_of_required_authorization": "A activação anterior exclui novas operações empresariais e não inclui criação de tarefas Windows. Esta tarefa poderá produzir os avisos e devoluções já definidos pela empresa. AGENTS.md secções 3 e 6.",
"business_effects": [
"Usar somente o comando nativo e as políticas congeladas nos ciclos pendentes: lembretes, escalamento para destinatários configurados e expiração com devolução ao requisitante e libertação da reserva correspondente.",
"Não aprovar, adjudicar, pagar ou alterar parâmetros, intervenientes, competências ou prazos por inferência.",
"A pré-conferência encontrou zero pedidos pendentes com política de expiração configurada; nenhuma operação foi executada."
],
"session_limit": "Executa com a sessão Windows deste utilizador iniciada, incluindo sessão bloqueada; retoma no logon. Não constitui serviço de produção independente da sessão.",
"procedure": [
"Conferir hashes dos dois scripts, identidade do piloto, recibo do runtime e pré-conferência só leitura.",
"Registar apenas Compras-Pilot-Approval-Deadlines com XML nativo, utilizador actual e privilégios limitados; nunca substituir tarefa existente ou alterar a política PowerShell.",
"Iniciar uma passagem autorizada, conferir resultado e passagem periódica; preservar diagnósticos privados sem credenciais ou dados de negócio.",
"Conferir não sobreposição, recuperação após nova passagem e manutenção das políticas/grants existentes; não reiniciar o Windows para este ensaio."
],
"recovery": "Desactivar apenas a nova tarefa exacta, preservando definição e histórico, se a verificação falhar. Não reverter decisões empresariais já concluídas nem apagar dados; não terminar outras tarefas ou o daemon de reposição existente.",
"excluded": [
"Tarefa/serviço de produção, execução com Windows sem sessão iniciada, novas credenciais ou privilégios elevados",
"Alterar políticas empresariais, parâmetros, utilizadores, acessos ou MFA",
"Activar SGF, fiscalidade, bancos, JUE ou processos de Pessoas",
"Reiniciar Windows, substituir tarefas existentes ou modificar a política de execução PowerShell"
],
"references": [
"https://learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-schema",
"https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-create"
]
}
+75 -10
View File
@@ -1,6 +1,6 @@
{
"date": "2026-11-29",
"state": "pilot_schema_and_runtime_installed_new_capabilities_not_activated",
"state": "pilot_24_capabilities_activated_and_shared_frontend_published_pending_operational_acceptance",
"authorization": "compras-operational-candidate-authorization.json",
"artifact": {
"root": "storage/framework/testing/compras-standalone-80483320a54af6f1",
@@ -275,11 +275,11 @@
"owned_tools_tab_closed_original_dashboard_preserved": true
},
"standalone_business_latest": {
"tests": 10,
"assertions": 218,
"tests": 11,
"assertions": 246,
"result": "passed",
"runtime_manifest": "80483320a54af6f123498e43c1435a20922455f65860be88bd259e90efcbc0b7",
"includes_applied_journal_trial_balance_and_account_ledger_print_context": true,
"native_scheduled_reminder_expiry_resubmission_case": true,
"owned_database_role_removed": true
},
"private_pilot_restored_copy": {
@@ -317,22 +317,87 @@
"capabilities_started": 24,
"frontend_files_verified": 185,
"active_changes": false,
"activation_authorized": false
"activation_authorized": true
},
"pilot_activation": {
"authorization": "compras-standalone-pilot-activation-authorization.json",
"proof": "compras-standalone-pilot-activation.json",
"postcheck": "compras-standalone-pilot-activation-check.json",
"capabilities": 24,
"assets": 185,
"all_150_tables_preserved_at_activation": true,
"unrelated_settings_and_public_env_preserved": true,
"new_grants_or_users": false,
"business_commands": false
},
"activated_pilot_profiles": {
"proof": "compras-standalone-pilot-profiles.json",
"checks": 52,
"profiles": 4,
"sql_write_guard_regression_cases": 3,
"tables_preserved": 150,
"actual_mode": "In-process GETs with existing actors and array sessions; SQL writes rejected before execution. Native query locks preserved. Not a network login or a new access grant."
},
"published_assets_http": {
"proof": "compras-standalone-published-assets.json",
"pilot_asset_responses_and_hashes": 185,
"public_html_uses_new_entry": true,
"public_anonymous_identity_and_hidden_private_finance_navigation": true
},
"activated_pilot_native": {
"proof": "compras-standalone-pilot-native-review.json",
"desktop_and_390x526_100_percent": true,
"unchanged_tables": 149,
"old_audit_history_preserved": true,
"only_new_audit_actions": [
"evaluation.entered",
"work_context.selected"
],
"no_new_users_grants_or_business_operations": true,
"owned_pilot_dashboard_left_open": true,
"original_public_people_tab_preserved": true
},
"approval_deadline_task_preparation": {
"proposal": "approval-deadlines-task-proposal.json",
"preflight": "approval-deadlines-task-preflight.json",
"status": "authorized_installed_and_verified",
"database_read_only_check": "passed",
"eligible_pending_requests": 0,
"unauthorized_passage_refused_before_boot": true,
"windows_script_policy_unchanged": true,
"native_task_registration_not_yet_verified": true
},
"approval_deadline_task": {
"authorization": "approval-deadlines-task-authorization.json",
"installation": "approval-deadlines-task-installation.json",
"encoding_correction": "approval-deadlines-task-encoding-fix.json",
"initial_and_automatic_passages_exit_code": 0,
"real_overlap_guard_check": "passed_without_duplicate_processing_or_status_change",
"limited_interactive_current_user_only": true,
"minute_poll_and_60_second_limit": true,
"protected_tables_preserved": 149,
"old_audit_history_preserved": true,
"eligible_requests_in_pilot": 0,
"new_policy_or_grants": false,
"windows_restart_or_logon_execution_not_claimed": true
}
},
"remaining": [
"Remaining native visual/print journeys and whole application acceptance; final C2 decision and conservation already verified",
"New capability activation in the pilot requires its own concrete authorization; schema/runtime installation is now authorized, executed and verified",
"Production publication/installation not authorized"
"Business configuration and operational acceptance remain with the company; no persons, rights, chart accounts, periods, rules, order origin or urgent thresholds were invented during activation",
"Remaining visual/print and recurrent-operation acceptance retain their documented scope; a limited interactive Windows task for approval deadlines is now installed; other recurrent-operation scopes remain separate",
"Production runtime, business activation and separately excluded SGF/MFA/G3/fiscal/banking/JUE/People formalisation actions remain outside this authorization"
],
"frozen_manifests_preserved": [
"182e10ceec556e120ecb14b57d17f0132ce0b555041cb054cdf9d17bcc1d51df",
"fe1dec59a6d619670e887fd2f972a6de176b858a90f03cf43a017c681606816a"
],
"pilot_or_production_installation": true,
"pilot_or_production_activation": false,
"pilot_or_production_activation": true,
"sgf_operational_changes": false,
"application_complete": false,
"pilot_installation": true,
"production_installation": false
"production_installation": false,
"pilot_activation": true,
"production_runtime_activation": false,
"shared_frontend_publication": true
}
@@ -0,0 +1,12 @@
{
"date": "2026-11-29T14:05:50+00:00",
"state": "passed",
"database_enforced_read_only": true,
"all_24_capabilities_start_with_pinned_installed_packages": true,
"source_instance_preserved": true,
"frontend_assets_verified": 185,
"active_settings_changed": false,
"mode": "installed_configuration_read_only_postcheck",
"assets_published": true,
"new_grants_or_business_commands": false
}
@@ -0,0 +1,34 @@
{
"date": "2026-11-29T14:11:51+00:00",
"state": "passed",
"target": "http:\/\/127.0.0.1:8005",
"runtime_manifest": "80483320a54af6f123498e43c1435a20922455f65860be88bd259e90efcbc0b7",
"frontend_manifest": "8653c147ab863447b523ddc03111265e3e6510bdddc31341777d6a3bdc46ce5b",
"observed": [
"Existing owner entered without any new user or grant",
"Financial configuration and its specific help entry loaded",
"Purchases context selected in the session",
"Visible Purchases menu opened production and maintenance orders; existing company mode remained undefined",
"Warehouse and assets menu opened own project\/capital register; no records created",
"Finance menu did not expose common payment\/ledger workspaces without explicit rights",
"390x526 at 100 percent: capital register header and links readable; form anchor landed below the fixed header"
],
"all_other_tables_preserved": 149,
"previous_audit_history_preserved": true,
"technical_audit_delta": [
{
"action": "evaluation.entered",
"count": 1
},
{
"action": "work_context.selected",
"count": 1
}
],
"new_users_or_grants": false,
"new_business_configuration_or_operations": false,
"owned_devtools_closed": true,
"pilot_dashboard_left_open": true,
"original_public_people_tab_preserved": true,
"whole_application_acceptance": false
}
@@ -0,0 +1,440 @@
{
"date": "2026-11-29T14:03:27+00:00",
"state": "passed",
"mode": "in_process_gets_existing_actors_array_sessions",
"sql_writes_refused_before_execution": true,
"write_guard_regression_cases": 3,
"all_tables_preserved": 150,
"new_grants_or_users": false,
"business_commands": false,
"results": [
{
"role": "admin",
"path": "\/dashboard",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/requisicoes",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/projectos-imobilizado",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/ordens-operacionais",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/administracao\/financeiro",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/administracao\/prazos-aprovacao",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/administracao\/revisao-urgencias",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/requisicoes\/urgencias\/revisoes",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/conflitos",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "admin",
"path": "\/auditoria\/privada",
"status": 403,
"finance_navigation": null
},
{
"role": "admin",
"path": "\/supplier-payments",
"status": 403,
"finance_navigation": null
},
{
"role": "admin",
"path": "\/general-ledger\/cycle",
"status": 403,
"finance_navigation": null
},
{
"role": "admin",
"path": "\/compras\/pesquisa",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": true
}
},
{
"role": "procurement",
"path": "\/dashboard",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "procurement",
"path": "\/requisicoes",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "procurement",
"path": "\/projectos-imobilizado",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "procurement",
"path": "\/ordens-operacionais",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "procurement",
"path": "\/administracao\/financeiro",
"status": 403,
"finance_navigation": null
},
{
"role": "procurement",
"path": "\/administracao\/prazos-aprovacao",
"status": 403,
"finance_navigation": null
},
{
"role": "procurement",
"path": "\/administracao\/revisao-urgencias",
"status": 403,
"finance_navigation": null
},
{
"role": "procurement",
"path": "\/requisicoes\/urgencias\/revisoes",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "procurement",
"path": "\/conflitos",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "procurement",
"path": "\/auditoria\/privada",
"status": 403,
"finance_navigation": null
},
{
"role": "procurement",
"path": "\/supplier-payments",
"status": 403,
"finance_navigation": null
},
{
"role": "procurement",
"path": "\/general-ledger\/cycle",
"status": 403,
"finance_navigation": null
},
{
"role": "procurement",
"path": "\/compras\/pesquisa",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "finance",
"path": "\/dashboard",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "finance",
"path": "\/requisicoes",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "finance",
"path": "\/projectos-imobilizado",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "finance",
"path": "\/ordens-operacionais",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "finance",
"path": "\/administracao\/financeiro",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/administracao\/prazos-aprovacao",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/administracao\/revisao-urgencias",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/requisicoes\/urgencias\/revisoes",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/conflitos",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "finance",
"path": "\/auditoria\/privada",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/supplier-payments",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/general-ledger\/cycle",
"status": 403,
"finance_navigation": null
},
{
"role": "finance",
"path": "\/compras\/pesquisa",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "warehouse",
"path": "\/dashboard",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "warehouse",
"path": "\/requisicoes",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "warehouse",
"path": "\/projectos-imobilizado",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "warehouse",
"path": "\/ordens-operacionais",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "warehouse",
"path": "\/administracao\/financeiro",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/administracao\/prazos-aprovacao",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/administracao\/revisao-urgencias",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/requisicoes\/urgencias\/revisoes",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/conflitos",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
},
{
"role": "warehouse",
"path": "\/auditoria\/privada",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/supplier-payments",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/general-ledger\/cycle",
"status": 403,
"finance_navigation": null
},
{
"role": "warehouse",
"path": "\/compras\/pesquisa",
"status": 200,
"finance_navigation": {
"payments": false,
"ledger": false,
"configuration": false
}
}
]
}
@@ -0,0 +1,9 @@
{
"date": "2026-11-29T14:04:21.749Z",
"state": "passed",
"pilot_asset_responses_and_hashes": 185,
"public_domain_html_delivers_new_entry": true,
"public_anonymous_identity_preserved": true,
"private_finance_navigation_not_exposed_publicly": true,
"new_grants_or_business_operations": false
}