From b3a9884dff2ab07e941ea30048a93f60884c0920 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 8 Jun 2026 12:56:44 +0200 Subject: [PATCH] =?UTF-8?q?diag(render):=20launch-flap-churn.ps1=20?= =?UTF-8?q?=E2=80=94=20Phase=201=20portal-churn=20pin=20capture=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- launch-flap-churn.ps1 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 launch-flap-churn.ps1 diff --git a/launch-flap-churn.ps1 b/launch-flap-churn.ps1 new file mode 100644 index 00000000..e979cbbd --- /dev/null +++ b/launch-flap-churn.ps1 @@ -0,0 +1,23 @@ +$env:ACDREAM_DAT_DIR = "$env:USERPROFILE\Documents\Asheron's Call" +$env:ACDREAM_LIVE = "1" +$env:ACDREAM_TEST_HOST = "127.0.0.1" +$env:ACDREAM_TEST_PORT = "9000" +$env:ACDREAM_TEST_USER = "testaccount" +$env:ACDREAM_TEST_PASS = "testpassword" + +# Phase 1 portal-flood bounded-propagation PIN (2026-06-08). +# Goal: on the doorway flap frames, show whether PortalVisibilityBuilder.Build's churn is +# driven by redundant reciprocal back-contributions staying NON-EMPTY (the hypothesis). +# +# 1. [pv-input] : per indoor-Build frame — outRoot + flood count + eye/player/yaw. The +# flood-flip frames (e.g. 8<->3) are the flap; correlate with churn below. +# 2. [portal-churn]: per Build call — cells, reEnqueues, rePoppedCells, maxPop=0x:, +# then per reciprocal call: recip[0x pre->post]. A back-contribution +# that stays pre>0 AND post>0 on a cell that already contributed is the pin. +# FLAP probe is intentionally OFF (its per-portal [flap] dump would drown the log). +Remove-Item Env:\ACDREAM_PROBE_FLAP -ErrorAction SilentlyContinue +$env:ACDREAM_PROBE_PVINPUT = "1" +$env:ACDREAM_PROBE_PORTAL_CHURN = "1" + +dotnet run --project src\AcDream.App\AcDream.App.csproj --no-build -c Debug 2>&1 | + Tee-Object -FilePath "flap-churn.log"