Control plane & automated PowerShell gate validation for clean public exports
Ensures zero direct history leaks between private production and sanitized public targets.
Hecton8 — read-only input
Test-H8PublicationGate.ps1
Hecton8-PublicSDK · Hecton8-ContribSandbox · private slices
Generate export-gate validation commands for release profiles.
Strict controls for release export safety and credential protection.
Clone the control plane and run the full local self-test (requires local production tree for isolation checks).
git clone https://github.com/marko1olo/Hecton8_PublicationArchitecture.git cd Hecton8_PublicationArchitecture powershell -ExecutionPolicy Bypass -File .\tools\Invoke-H8PublicationSelfTest.ps1
# Test-H8PublicationGate.ps1 - Automated sanitization gate validator
param (
[Parameter(Mandatory=$true)][string]$Root,
[Parameter(Mandatory=$true)][string]$DenyProfile,
[string]$ReportPath
)
$denyRules = Get-Content $DenyProfile | Where-Object { $_ -and -not $_.StartsWith('#') }
$violations = @()
Get-ChildItem -Path $Root -Recurse | ForEach-Object {
foreach ($rule in $denyRules) {
if ($_.FullName -match $rule) {
$violations += $_.FullName
}
}
}
if ($violations.Count -gt 0) {
Write-Error "Gate Refused: Found $($violations.Count) sensitive files."
} else {
Write-Host "Gate PASS: Clean export validated." -ForegroundColor Green
}
Start here before any public export. Production source is never made public as-is.