TenantAtlas/apps/platform/tests/Feature/Guards
ahmido 5248654691 feat: retire tenant panel runtime dead code (#359)
## Summary
- retire remaining legacy tenant-panel runtime assumptions in the Filament admin runtime and route resolution paths
- centralize canonical admin environment context handling for shared surfaces instead of relying on deprecated `tenant` panel behavior
- harden guard coverage so legacy `/admin/t` and `/admin/tenants` route families cannot regress
- update scoped navigation, drillthrough, reference-link, and global-search tests to use the admin panel environment runtime
- add the Spec 304 package under `specs/304-tenant-panel-dead-code-retirement/` and document the rollout in the product ledger

## Test Coverage Updated
- `AdminSharedSurfacePanelParityTest`
- `NoActiveTenantResourceRoutesTest`
- `NoLegacyTenantPanelRuntimeTest`
- `AdminTenantResolverGuardTest`
- `PolicyVersionResolvedReferenceLinksTest`
- `EntraGroupGlobalSearchScopeTest`
- `OperationsDashboardDrillthroughTest`

## Runtime Notes
- remains compliant with Filament v5 on Livewire v4
- no provider registration changes; provider registration location remains `apps/platform/bootstrap/providers.php`
- no new globally searchable resource was introduced; existing scoped search assertions were updated only
- no destructive actions were added or changed
- no asset registration changes; deploy posture for `cd apps/platform && php artisan filament:assets` is unchanged

## Validation
- updated tests and docs/spec artifacts were committed in this branch
- tests were not re-run in this turn

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #359
2026-05-14 23:57:36 +00:00
..
ActionSurfaceContractTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
ActionSurfaceValidatorTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
AdminTenantResolverGuardTest.php feat: retire tenant panel runtime dead code (#359) 2026-05-14 23:57:36 +00:00
AdminWorkspaceRoutesGuardTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
ArtifactSourceProviderTruthGuardTest.php feat: implement provider-neutral artifact source taxonomy (#343) 2026-05-08 23:47:31 +00:00
BrowserLaneIsolationTest.php feat(spec-288): add no-legacy quality gates (#347) 2026-05-10 21:24:14 +00:00
CiConfidenceWorkflowContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
CiFastFeedbackWorkflowContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
CiHeavyBrowserWorkflowContractTest.php feat(spec-288): add no-legacy quality gates (#347) 2026-05-10 21:24:14 +00:00
CiLaneFailureClassificationContractTest.php feat(spec-288): add no-legacy quality gates (#347) 2026-05-10 21:24:14 +00:00
ConfidenceLaneContractTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
DerivedStateConsumerAdoptionGuardTest.php Spec 185: workspace recovery posture visibility (#216) 2026-04-09 12:57:19 +00:00
EnvironmentCopyNeutralizationGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
FastFeedbackLaneContractTest.php Spec 210: implement CI test matrix budget enforcement (#243) 2026-04-17 18:04:35 +00:00
FastFeedbackLaneExclusionTest.php Spec 208: finalize heavy suite segmentation (#241) 2026-04-17 09:53:55 +00:00
FilamentTableRiskExceptionsGuardTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FilamentTableStandardsGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
FixtureCostProfilesGuardTest.php Spec 207: implement shared test fixture slimming (#240) 2026-04-16 17:29:25 +00:00
FixtureLaneImpactBudgetTest.php feat: implement heavy governance cost recovery (#242) 2026-04-17 13:17:13 +00:00
HeavyGovernanceLaneContractTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
LivewireTrustedStateGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
ManagedEnvironmentCanonicalRouteContractTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
NoActiveTenantResourceRoutesTest.php feat: retire tenant panel runtime dead code (#359) 2026-05-14 23:57:36 +00:00
NoAdHocFilamentAuthPatternsTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
NoAdHocRetryInBulkWorkersTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoAdHocStatusBadgesTest.php feat: add workspace baseline compare matrix (#221) 2026-04-11 10:20:25 +00:00
NoAdHocTenantLifecycleChecksSpec143Test.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
NoBroadSecretRedactionPatternsTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoDiagnosticWarningBadgesTest.php feat: add workspace baseline compare matrix (#221) 2026-04-11 10:20:25 +00:00
NoDirectAiProviderBypassTest.php Merge 248-private-ai-policy-foundation into dev (#288) 2026-04-27 21:18:37 +00:00
NoForbiddenTagBadgeColorsTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoLegacyBulkOperationsTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoLegacyProviderConnectionStateFallbackTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
NoLegacyRunBackfillTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoLegacyRunsTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
NoLegacyTenantGraphOptionsTest.php feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
NoLegacyTenantPanelRuntimeTest.php feat: retire tenant panel runtime dead code (#359) 2026-05-14 23:57:36 +00:00
NoLegacyTenantProviderFallbackTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
NoPlatformCredentialFallbackTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
NoTenantCredentialRuntimeReadsSpec081Test.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
OperationLifecycleOpsUxGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
OperationRunLinkContractGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
ProfileLaneContractTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
ProviderBoundaryPlatformCoreGuardTest.php feat: harden provider boundaries (#273) 2026-04-24 21:05:37 +00:00
ProviderConnectionMicrosoftScopeLeakGuardTest.php feat: normalize provider connection scope contracts (#339) 2026-05-07 19:28:42 +00:00
ProviderConnectionNeutralityGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
ProviderDispatchGateCoverageTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
SharedDetailFamilyContractGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Spec116OneEngineGuardTest.php Refactor: remove compare job legacy drift path (#235) 2026-04-14 21:54:37 +00:00
Spec118NoLegacyBaselineDriftGuardTest.php Refactor: remove compare job legacy drift path (#235) 2026-04-14 21:54:37 +00:00
Spec120NoBroadAuditRedactionFallbacksTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
Spec120NoGraphContractSecretMetadataTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
Spec192RecordPageHeaderDisciplineGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Spec193MonitoringSurfaceHierarchyGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Spec194GovernanceActionSemanticsGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Spec195ResidualActionSurfaceClosureGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Spec288NoLegacyRouteAndHelperGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Spec288ProviderCoreAndRoleAuthorityGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
TenantOwnedQueryGuardTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
TestLaneArtifactsContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneCommandContractTest.php Spec 295: full suite CI lane baseline (#350) 2026-05-11 11:14:56 +00:00
TestLaneHistoryHydrationContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneHotspotTrendContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneManifestTest.php feat(spec-288): add no-legacy quality gates (#347) 2026-05-10 21:24:14 +00:00
TestLaneRecalibrationEvidenceContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneRecalibrationPolicyTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneTrendClassificationTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneTrendContractSchemaTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneTrendLogicalContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestLaneTrendSummaryContractTest.php feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
TestTaxonomyPlacementGuardTest.php refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00