Fensalir/scripts/verify-boundaries.ps1

19 lines
645 B
PowerShell
Raw Normal View History

$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
$engineRoots = @(
(Join-Path $repoRoot "src\Aquarium.Engine"),
(Join-Path $repoRoot "src\Aquarium.Engine.Contracts")
)
$forbiddenEngineTerms = "grid|agent|body|epiphany"
$engineReferences = rg -n -i -- $forbiddenEngineTerms $engineRoots
if ($LASTEXITCODE -eq 0) {
2026-05-23 18:54:26 +01:00
throw "Fensalir engine and contracts must not contain Epiphany/client policy terms:`n$engineReferences"
}
elseif ($LASTEXITCODE -ne 1) {
2026-05-23 18:54:26 +01:00
throw "Boundary search for Fensalir engine terms failed."
}
2026-05-23 18:54:26 +01:00
Write-Host "Fensalir boundary checks passed."