TenantAtlas/app/Services
ahmido 5bcb4f6ab8 feat: harden queued execution legitimacy (#179)
## Summary
- add a canonical queued execution legitimacy contract for actor-bound and system-authority operation runs
- enforce legitimacy before queued jobs transition runs to running across provider, inventory, restore, bulk, sync, and scheduled backup flows
- surface blocked execution outcomes consistently in Monitoring, notifications, audit data, and the tenantless operation viewer
- add Spec 149 artifacts and focused Pest coverage for legitimacy decisions, middleware ordering, blocked presentation, retry behavior, and cross-family adoption

## Testing
- vendor/bin/sail artisan test --compact tests/Unit/Operations/QueuedExecutionLegitimacyGateTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/QueuedExecutionMiddlewareOrderingTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Verification/ProviderExecutionReauthorizationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/RunInventorySyncExecutionReauthorizationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/ExecuteRestoreRunExecutionReauthorizationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/SystemRunBlockedExecutionNotificationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/BulkOperationExecutionReauthorizationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/QueuedExecutionRetryReauthorizationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/QueuedExecutionContractMatrixTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/OperationRunBlockedExecutionPresentationTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/QueuedExecutionAuditTrailTest.php
- vendor/bin/sail artisan test --compact tests/Feature/Operations/TenantlessOperationRunViewerTest.php
- vendor/bin/sail bin pint --dirty --format agent

## Manual validation
- validated queued provider execution blocking for tenant operability drift in the integrated browser on /admin/operations and /admin/operations/{run}
- validated 404 vs 403 route behavior for non-membership vs in-scope capability denial
- validated initiator-null blocked system-run behavior without creating a user terminal notification

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #179
2026-03-17 21:52:40 +00:00
..
Alerts feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
Audit feat: implement tenant lifecycle operability semantics (#172) 2026-03-15 09:08:36 +00:00
Auth feat: managed tenant onboarding draft identity and resume semantics (#167) 2026-03-13 23:45:23 +00:00
BackupScheduling Spec 092: Legacy Purge (runs/routes/UI/test shims) (#110) 2026-02-14 18:43:56 +00:00
Baselines feat: standardize enterprise detail pages (#162) 2026-03-10 23:06:26 +00:00
Directory feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
Drift feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
EntraAdminRoles feat(112): LIST $expand parity + Entra principal names (#136) 2026-02-25 23:54:20 +00:00
Findings feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
Graph feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
Hardening feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
Intune feat: complete admin canonical tenant rollout (#165) 2026-03-13 08:09:20 +00:00
Inventory feat: add Intune RBAC baseline compare support (#156) 2026-03-09 18:49:20 +00:00
Onboarding feat: harden canonical run viewer and onboarding draft state (#173) 2026-03-15 18:32:04 +00:00
Operations feat: harden queued execution legitimacy (#179) 2026-03-17 21:52:40 +00:00
PermissionPosture feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
Providers feat: harden queued execution legitimacy (#179) 2026-03-17 21:52:40 +00:00
Runbooks feat(113): Platform Ops Runbooks — UX Polish (Filament-native, system theme, live scope) (#137) 2026-02-27 01:11:25 +00:00
Settings feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
System Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
SystemConsole feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
Tenants feat: central tenant operability policy (#177) 2026-03-17 11:48:55 +00:00
Verification feat: harden queued execution legitimacy (#179) 2026-03-17 21:52:40 +00:00
AdapterRunReconciler.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
AssignmentBackupService.php feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
AssignmentRestoreService.php Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +00:00
OperationRunService.php feat: harden queued execution legitimacy (#179) 2026-03-17 21:52:40 +00:00
ReviewPackService.php feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00