Skip to content

fix(prism): stop advertising observed tokens as recipe budget - #83

Merged
echobt merged 1 commit into
mainfrom
fix/prism-recipe-truth
Aug 7, 2026
Merged

fix(prism): stop advertising observed tokens as recipe budget#83
echobt merged 1 commit into
mainfrom
fix/prism-recipe-truth

Conversation

@echobt

@echobt echobt commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • GET /v1/site/arenas/prism/window was publishing tokenBudget as the max observed telemetry x (~2.6B from leader run 404b3d00), which the site labeled as an egalitarian single-pass window.
  • Recipe 1.2.0 does not publish a fixed token quota — caps are wall-clock / steps / params + pinned shard. tokenBudget is now 0; chart series still carry observed-token x for plotting.
  • Miner-facing docs clarify train_rows: 2048 (baseline cut ≈2M GPT-2 tokens) vs full-shard streaming under the 6h cap.

Audit notes (no scoring change)

  • Prod still runs recipe 1.2.0 / pin_hex=cba5280… (not prism-better 1.3+/v3).
  • Harness METRICS_JSON.tokens_seen still echoes TRAIN_ROWS (2048) — flagged as follow-up (changes recipe pin).

Test plan

  • cargo test -p site-data -p site-api --lib prism_window
  • After deploy: GET /v1/site/arenas/prism/windowtokenBudget: 0, series still plot
  • Confirm design gallery paths untouched

Site window tokenBudget was the max telemetry x (~2.6B from a leader
run), which the frontend labeled as an egalitarian single-pass window.
Recipe 1.2 publishes train_rows/time/step caps, not a fixed token quota.
Document train_rows vs full-shard streaming for miners.
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 16 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: 758a51fa-6931-4277-a13b-d78c4ff2fbed

📥 Commits

Reviewing files that changed from the base of the PR and between 6e159e2 and 5b98a59.

📒 Files selected for processing (6)
  • crates/site-api/src/handlers.rs
  • crates/site-data/src/map.rs
  • crates/site-types/src/types.rs
  • docs/PRISM_RECIPE.md
  • docs/SITE_API.md
  • docs/external-miner/prism.md

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.

@echobt
echobt merged commit 0a18283 into main Aug 7, 2026
3 checks passed
@echobt
echobt deleted the fix/prism-recipe-truth branch August 7, 2026 14:16
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.

1 participant