You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Render gate: replace the perf wall-clock assertion with a deterministic op-count check #1471
The render-gate perf test (render-gate.test.ts) asserts classification stays under a wall-clock budget (best-of-5 min). Because it's timing-based, it flakes on loaded CI runners — the whole-ring/seed-cap render measured 125–142ms against a 75ms local ceiling. It's currently mitigated (not fixed) with a CI-aware bound (process.env.CI ? 800 : 250 ms), which keeps a tight local steady-state signal while letting CI assert only a catastrophic-regression ceiling.
Replace the wall-clock assertion with a deterministic op-count check — count the work the classifier actually does (cells scanned / ring bytes rendered / viewport size) and assert on that, so the test measures algorithmic cost rather than machine speed.
Why
A wall-clock budget is inherently non-deterministic: it either flakes under load or is loosened until it no longer catches the regression it exists for. The gate's real cost guarantee is "O(viewport), not O(ring size)" — an op-count assertion pins that invariant directly and can't flake on a busy runner.
Notes
The CI-aware bound stays as-is until this lands; it's a mitigation, not the intended end state.
The relevant cost property post round-2 is the persistent bounded SessionScreen mirror (classify is O(viewport)), plus the per-ringToken verdict memo + cost-aware backstop backoff — an op-count check should exercise the mirror path, not the retired whole-ring path.
Activity
mohidmakhdoomi commentedon Aug 17, 2026
On it! Working on a fix now.
Fix #1471: replace the render-gate perf wall-clock bound with a deter…
[Bugfix #1471] Address CMAP: make the negative control earn its claims
chore(porch): bugfix-1471 pr gate-approved; protocol complete
Merge pull request #1487 from cluesmith/builder/bugfix-1471