## Summary - add baseline compare evidence gap detail modeling and a dedicated Livewire table surface - extend baseline compare landing and operation run detail surfaces to expose evidence gap details and stats - add spec artifacts for feature 162 and expand feature coverage with focused Filament and baseline tests ## Notes - branch: `162-baseline-gap-details` - commit: `a92dd812` - working tree was clean after push ## Validation - tests were not run in this step Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #192
2.4 KiB
2.4 KiB
Quickstart: Enterprise Evidence Gap Details for Baseline Compare
Prerequisites
- Start the local stack.
vendor/bin/sail up -d
- Ensure the app is clean enough to run focused tests.
Focused Verification
Run the minimum regression pack for the feature:
vendor/bin/sail artisan test --compact tests/Feature/Baselines/BaselineCompareAmbiguousMatchGapTest.php tests/Feature/Baselines/BaselineCompareResumeTokenTest.php tests/Feature/Filament/OperationRunEnterpriseDetailPageTest.php
Format touched files before shipping implementation updates:
vendor/bin/sail bin pint --dirty --format agent
Manual Verification Flow
- Trigger or locate a completed
baseline_comparerun with evidence gaps. - Open the canonical run detail page at
/admin/operations/{run}. - Confirm the page shows outcome/trust guidance before diagnostics.
- Confirm the
Evidence gap detailssection is visible when subject-level details exist. - Use
Search gap detailsto filter by:- reason text such as
ambiguous - policy type such as
deviceConfiguration - subject key fragment such as part of a display name or GUID
- reason text such as
- Confirm raw JSON evidence remains available in the separate
Baseline compare evidencesection.
Legacy-Run Verification
- Open an older baseline compare run that contains
evidence_gaps.countbut noevidence_gaps.subjects. - Confirm the UI distinguishes missing recorded detail from the absence of gaps.
- Confirm the page still renders successfully and does not imply a healthy compare result.
Tenant-Safety Verification
- Verify an entitled user can inspect the same run through canonical monitoring.
- Verify a non-member cannot discover tenant-owned detail through canonical or tenant-scoped surfaces.
- Verify member-but-underprivileged behavior remains enforced by existing authorization rules.
Render-Safety Verification
- Bind the fail-hard graph client in the affected UI tests.
- Verify the canonical run detail renders evidence-gap detail without invoking
GraphClientInterface. - Verify the tenant landing evidence-gap state renders without invoking
GraphClientInterface.
Deployment Notes
- No new database migration is required.
- No new Filament assets are registered, so this feature does not add a new
filament:assetsdeployment requirement. - Filament remains on Livewire v4-compatible patterns and requires no panel provider changes.