Forge
powershell4405de34
1# Orion AEE local test-drive (ADR 0148)
2# Usage: pwsh -File scripts/aee/orion-test-drive.ps1 [-Ui] [-Filter name]
3
4param(
5 [switch]$Ui,
6 [string]$Filter = "Category=AgentEnvironment"
7)
8
9$ErrorActionPreference = "Stop"
10$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..\..")
11
12Write-Host "=== Orion AEE test-drive ===" -ForegroundColor Cyan
13Write-Host "Repo: $repoRoot"
14Write-Host ""
15
16Write-Host "[1/3] Automated stress (xUnit)..." -ForegroundColor Yellow
17Push-Location $repoRoot
18try {
19 dotnet test "CascadeIDE.Tests\CascadeIDE.Tests.csproj" --filter $Filter -v minimal
20 if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
21}
22finally {
23 Pop-Location
24}
25
26Write-Host ""
27Write-Host "[2/3] MLP notes (Orion vs current build)" -ForegroundColor Yellow
28Write-Host @"
29- Coalesce 1.5s applies to L2 build dedup inside one verify, not to stacking /agent verify.
30 Rapid verify SUPERCEDES predecessor (implicit cancel), not a queue of CancellationTokens.
31- Substrate: %LocalAppData%/CascadeIDE/agent-runs/{run_id}/substrate (wit.db + port.txt).
32 Parallel runs must get distinct DevPort values (automated test above).
33- Supervised host is in-proc (supervised-inproc) until separate MSBuild worker ships.
34 Host death => AgentEnvironmentTaskDied on DataBus; PFD strip listens via RefreshPfdBackgroundStatusBar.
35"@
36
37if ($Ui) {
38 Write-Host ""
39 Write-Host "[3/3] Manual UI checklist" -ForegroundColor Yellow
40 Write-Host @"
411. Open CascadeIDE.sln, open any .cs tab.
422. Run /agent verify standard — watch PFD strip (AEE verify …).
433. While running, edit .cs every ~500ms — expect stale epoch (DataBus); /agent status still works.
444. Spam /agent verify minimal — only one active; prior runs superseded.
455. /agent sandbox agent_ephemeral — check agent-runs folder under LocalAppData.
466. Cancel: /agent cancel — strip clears; chat trace on completion if show_in_chat=true.
47"@
48 Write-Host "Launch IDE: dotnet run --project CascadeIDE.csproj" -ForegroundColor DarkGray
49}
50else {
51 Write-Host ""
52 Write-Host "[3/3] Skipped UI (-Ui to print manual checklist)" -ForegroundColor DarkGray
53}
54
55Write-Host ""
56Write-Host "Done." -ForegroundColor Green
57
View only · write via MCP/CIDE