Skip to content
Corex

ResetGate

Corex\Cli\Reset\ResetGate · class · CLI layer

The pure decision that makes the destructive reset fail-closed: a soft reset is always permitted, but a full (DB-wipe) reset is permitted ONLY when the operator passed the typed safeguard (ResetRequest::confirmed). The command consults this before ever reaching the executor’s wipe (spec 025 FR-005, FR-009). Network activation and multisite database scope separately require an explicit network request.

permitsScope(ResetRequest $request, bool $multisite, bool $networkActiveAddon): bool

Section titled “permitsScope(ResetRequest $request, bool $multisite, bool $networkActiveAddon): bool”

Network activation and a multisite database wipe both exceed the default current-site boundary, so either requires the operator’s explicit flag.