feat(site-runtime): ScriptRun rows carry exception detail; per-run log line cap + closing row (D3/D7)

This commit is contained in:
Joseph Doherty
2026-09-09 12:23:01 -04:00
parent 964bb9b2d7
commit 750c542c2f
5 changed files with 223 additions and 6 deletions
@@ -147,6 +147,18 @@ public class SiteRuntimeOptionsValidatorTests
Assert.Equal(30, new SiteRuntimeOptions().TraceArmWindowSeconds);
}
/// <summary>A zero cap would drop every log line AND the closing row that reports the drops.</summary>
[Fact]
public void ZeroMaxLogLinesPerRun_IsRejected()
{
// Flow Debugger step logs (design 2026-09-09 D7): the per-run cap must be positive.
var result = Validate(new SiteRuntimeOptions { MaxLogLinesPerRun = 0 });
Assert.True(result.Failed);
Assert.Contains("MaxLogLinesPerRun", result.FailureMessage);
Assert.Equal(200, new SiteRuntimeOptions().MaxLogLinesPerRun);
}
[Fact]
public void ZeroMaxConcurrentRunsPerScript_IsRejected()
{