Skip to content

experiments: detect culled promotions by absence from /tracks, not its disabled field - #80

Merged
reflog merged 2 commits into
mainfrom
reflog/culled-presence-check
Aug 7, 2026
Merged

experiments: detect culled promotions by absence from /tracks, not its disabled field#80
reflog merged 2 commits into
mainfrom
reflog/culled-presence-check

Conversation

@reflog

@reflog reflog commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

Fixes #79's culled badge/hide, which never fired (reported live: track 1672 / exp-80 disabled yet its card rendered unbadged).

Why it never fired

The backend's /dashboard/tracks handler uses GetTracksWithVPSPool, which filters disabled = false — disabled tracks are absent from the response, and its disabled field is therefore always false. #79 checked for an explicit disabled === true, which can never match.

Fix

The liveness signal is presence: every live bandit track is in the list, so a promoted track missing from it is culled/disabled.

  • Verified against prod: all 25 live promoted tracks have VPS pools (listed); all 15 culled ones are absent; zero possible misflags (live promoted ∧ pool=0 count is 0 — promotion always sets a pool).
  • The original-side badge is removed: a control can be a live legacy pool-0 track this endpoint also omits, so absence proves nothing for originals.
  • Fail-open guards kept: fetch failure or an empty tracks list (fleet-wide zero live tracks is never true — endpoint hiccup) renders everything unbadged and unhidden.

npm run build clean; no new lint issues.

…s disabled field

The culled badge/hide shipped in #79 never fired: the backend's
GetTracksWithVPSPool filters disabled tracks out entirely, so the /tracks
response's disabled field is always false and an explicit-flag check can never
match. The liveness signal is PRESENCE — every live bandit track is listed, so
a promoted track missing from the list is culled/disabled (promoted tracks
always run a VPS pool while alive; verified against prod: 25 live all listed,
15 dead all absent, zero possible misflags). Originals lose their badge:
a control can be a live legacy pool-0 track this endpoint also omits, so
absence proves nothing for them. An empty tracks list fails open.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploying lantern-dashboard with  Cloudflare Pages  Cloudflare Pages

Latest commit: 52c6878
Status: ✅  Deploy successful!
Preview URL: https://0327b066.lantern-dashboard.pages.dev
Branch Preview URL: https://reflog-culled-presence-check.lantern-dashboard.pages.dev

View logs

Copilot AI lite review requested due to automatic review settings August 7, 2026 15:51
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@reflog, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 35 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c81f51ad-1afe-4e71-99e7-6f3ec2803fae

📥 Commits

Reviewing files that changed from the base of the PR and between b4bf328 and 52c6878.

📒 Files selected for processing (1)
  • src/components/ExperimentsOverview.tsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes culled-promotion detection in the Experiments overview by switching from an impossible disabled === true check (because culled/disabled tracks are omitted from /tracks) to using absence from /tracks as the liveness signal for promoted tracks, while keeping fail-open behavior on fetch failures/empty responses.

Changes:

  • Replace promoted-track “disabled” detection with “missing from /tracks” detection via a Set of live track names.
  • Remove original/control “disabled” badging and only badge promoted tracks as culled.
  • Preserve fail-open guards so endpoint failures don’t hide/badge cards incorrectly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/ExperimentsOverview.tsx Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@reflog
reflog merged commit f160c6e into main Aug 7, 2026
3 checks passed
@reflog
reflog deleted the reflog/culled-presence-check branch August 7, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants