TenantAtlas/apps/platform/tests/Feature/Findings
ahmido 421261a517
Some checks failed
Main Confidence / confidence (push) Failing after 48s
feat: implement finding outcome taxonomy (#267)
## Summary
- implement the finding outcome taxonomy end-to-end with canonical resolve, close, reopen, and verification semantics
- align finding UI, filters, audit metadata, review summaries, and export/read-model consumers to the shared outcome semantics
- add focused Pest coverage and complete the spec artifacts for feature 231

## Details
- manual resolve is limited to the canonical `remediated` outcome
- close and reopen flows now use bounded canonical reasons
- trusted system clear and reopen distinguish verified-clear from verification-failed and recurrence paths
- duplicate lifecycle backfill now closes findings canonically as `duplicate`
- accepted-risk recording now uses the canonical `accepted_risk` reason
- finding detail and list surfaces now expose terminal outcome and verification summaries
- review, snapshot, and review-pack consumers now propagate the same outcome buckets

## Filament / Platform Contract
- Livewire v4.0+ compatibility remains intact
- provider registration is unchanged and remains in `bootstrap/providers.php`
- no new globally searchable resource was introduced; `FindingResource` still has a View page and `TenantReviewResource` remains globally searchable false
- lifecycle mutations still run through confirmed Filament actions with capability enforcement
- no new asset family was added; the existing `filament:assets` deploy step is unchanged

## Verification
- `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Findings/FindingWorkflowServiceTest.php tests/Feature/Findings/FindingRecurrenceTest.php tests/Feature/Findings/FindingsListFiltersTest.php tests/Feature/Filament/FindingResolvedReferencePresentationTest.php tests/Feature/Findings/FindingOutcomeSummaryReportingTest.php tests/Feature/Findings/FindingRiskGovernanceProjectionTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Findings tests/Feature/Filament/FindingResolvedReferencePresentationTest.php tests/Feature/Models/FindingResolvedTest.php tests/Unit/Findings/FindingWorkflowServiceTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/TenantReview/TenantReviewExplanationSurfaceTest.php tests/Feature/TenantReview/TenantReviewRegisterTest.php tests/Feature/ReviewPack/TenantReviewDerivedReviewPackTest.php`
- browser smoke: `/admin/findings/my-work` -> finding detail resolve flow -> queue regression check passed

## Notes
- this commit also includes the existing `.github/agents/copilot-instructions.md` workspace change that was already present in the worktree when all changes were committed

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #267
2026-04-23 07:29:05 +00:00
..
Concerns Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
DriftStaleAutoResolveTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingAdminTenantParityTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingAssignmentAuditSemanticsTest.php feat(219): Finding ownership semantics + LEAN-001 constitution + backup_set unification (#256) 2026-04-20 17:54:33 +00:00
FindingAuditBackstopTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingAuditLogTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingAutomationWorkflowTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingBackfillTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingBulkActionsTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingExceptionAuthorizationTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingExceptionPolicyTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingExceptionRegisterTest.php Spec 206: implement test suite governance foundation (#239) 2026-04-16 13:58:50 +00:00
FindingExceptionRenewalTest.php feat: implement heavy governance cost recovery (#242) 2026-04-17 13:17:13 +00:00
FindingExceptionRevocationTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingExceptionWorkflowTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingOutcomeSummaryReportingTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingRbacTest.php Spec 197: standardize shared detail family contracts (#237) 2026-04-15 09:51:42 +00:00
FindingRecurrenceTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingRelatedNavigationTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingRiskGovernanceProjectionTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingsAssignmentHygieneClassificationTest.php feat: add findings hygiene report and control catalog layering (#264) 2026-04-22 12:26:18 +00:00
FindingsAssignmentHygieneOverviewSignalTest.php feat: add findings hygiene report and control catalog layering (#264) 2026-04-22 12:26:18 +00:00
FindingsAssignmentHygieneReportTest.php feat: add findings hygiene report and control catalog layering (#264) 2026-04-22 12:26:18 +00:00
FindingsClaimHandoffTest.php feat: add findings intake queue and stabilize follow-up regressions (#260) 2026-04-21 22:54:08 +00:00
FindingsIntakeQueueTest.php feat: add findings intake queue and stabilize follow-up regressions (#260) 2026-04-21 22:54:08 +00:00
FindingsListDefaultsTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingsListEnterpriseUxTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingsListFiltersTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingsNotificationEventTest.php feat: converge findings notification presentation (#265) 2026-04-22 20:26:18 +00:00
FindingsNotificationRoutingTest.php feat: converge findings notification presentation (#265) 2026-04-22 20:26:18 +00:00
FindingWorkflowConcurrencyTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingWorkflowGuardTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingWorkflowRowActionsTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingWorkflowServiceTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
FindingWorkflowUiEnforcementTest.php Spec 182: relocate Laravel platform to apps/platform (#213) 2026-04-08 08:40:47 +00:00
FindingWorkflowViewActionsTest.php feat: implement finding outcome taxonomy (#267) 2026-04-23 07:29:05 +00:00
MyWorkInboxTest.php feat: add findings operator inbox (#258) 2026-04-21 09:19:54 +00:00