feat(core): Phase W Stage 0 — [cell-swept] diagnostic (swept vs static cell, no behavior change)

Add ProbeSweptEnabled (ACDREAM_PROBE_SWEPT=1) to PhysicsDiagnostics mirroring
ProbeCellEnabled. Emits one [cell-swept] line per ResolveWithTransition call —
sp.CurCellId and sp.CheckCellId (the transition's swept cells) alongside the
incoming cellId so a doorway capture shows whether the swept cell is stable
where ResolveCellId strobes. No ResolveCellId call in the probe — avoids the
CellGraph.CurrCell side effect. No behavior change.

TDD: ProbeSweptEnabled_DefaultsToFalse RED→GREEN in PhysicsDiagnosticsTests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-06-02 14:08:00 +02:00
parent 50b168bc1e
commit 851cecc757
3 changed files with 35 additions and 0 deletions

View file

@ -143,6 +143,17 @@ public class PhysicsDiagnosticsTests
}
}
// -----------------------------------------------------------------------
// ProbeSweptEnabled — Phase W Stage 0 (2026-06-02): [cell-swept] diagnostic.
// -----------------------------------------------------------------------
[Fact]
public void ProbeSweptEnabled_DefaultsToFalse()
{
PhysicsDiagnostics.ProbeSweptEnabled = false;
Assert.False(PhysicsDiagnostics.ProbeSweptEnabled);
}
// -----------------------------------------------------------------------
// ProbeDumpGfxObjs — parallel of ProbeDumpCells (A6.P3 #98, evening v2).
// -----------------------------------------------------------------------