- Enrich drift findings evidence_jsonb for diff UX (summary.kind, refs, fidelity, provenance) - Add baseline policy version resolver and contract asserts - Remove legacy drift generator + DriftLanding surfaces - Add one-time cleanup migration for legacy drift findings - Scope baseline capture/landing warnings to latest inventory sync - Canonicalize compliance scheduledActionsForRule drift signal
23 lines
486 B
PHP
23 lines
486 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Baselines;
|
|
|
|
use RuntimeException;
|
|
|
|
final class BaselineFullContentRolloutGate
|
|
{
|
|
public function enabled(): bool
|
|
{
|
|
return (bool) config('tenantpilot.baselines.full_content_capture.enabled', false);
|
|
}
|
|
|
|
public function assertEnabled(): void
|
|
{
|
|
if (! $this->enabled()) {
|
|
throw new RuntimeException('Baseline full-content capture is disabled by rollout configuration.');
|
|
}
|
|
}
|
|
}
|