Skip to content

코어: preflight 스냅샷과 UTF-8 휴리스틱 통합 - #59

Merged
HuitaePark merged 1 commit into
mainfrom
feat/merge-preflight-estimators
Aug 10, 2026
Merged

코어: preflight 스냅샷과 UTF-8 휴리스틱 통합#59
HuitaePark merged 1 commit into
mainfrom
feat/merge-preflight-estimators

Conversation

@HuitaePark

Copy link
Copy Markdown
Member

변경 내용

  • PR #57의 preflight 비용 상한 계산과 PR #58의 UTF-8 byte 휴리스틱 estimator를 main 기준으로 통합했습니다.
  • 비용 계산기가 mutable registry를 다시 조회하지 않고, 문맥에 담긴 불변 PricingSnapshot을 사용하도록 수정했습니다.
  • 계산 결과 Bounded에도 실제 사용한 PricingSnapshot을 보존해 예약·정산 계층에 전달할 수 있게 했습니다.
  • 계산 불가능한 극단적 BigDecimal 정밀도는 typed unavailable 결과로 반환합니다.
  • AGENTS.md와 Javadoc에 UTF-8 휴리스틱의 TEXT_ONLY/BPE 안전성 가정을 명시했습니다.

검증

  • ./gradlew --no-daemon test
  • ./gradlew --no-daemon check
  • ./gradlew --no-daemon :token-pilot-core:javadoc

Refs #31
Refs #45

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 42 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: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1365dff0-95cf-435b-930f-eff930e25dad

📥 Commits

Reviewing files that changed from the base of the PR and between 908fc44 and 5e055e3.

📒 Files selected for processing (11)
  • AGENTS.md
  • build.gradle
  • token-pilot-core/src/main/java/io/tokenpilot/core/PreflightCostEstimator.java
  • token-pilot-core/src/main/java/io/tokenpilot/core/domain/PreflightCostResult.java
  • token-pilot-core/src/main/java/io/tokenpilot/core/domain/PreflightCostUnavailableReason.java
  • token-pilot-core/src/main/java/io/tokenpilot/core/domain/PreflightPricingContext.java
  • token-pilot-core/src/main/java/io/tokenpilot/core/internal/DefaultPreflightCostEstimator.java
  • token-pilot-core/src/main/java/io/tokenpilot/core/internal/HeuristicTokenEstimator.java
  • token-pilot-core/src/main/java/io/tokenpilot/core/internal/LedgerComponents.java
  • token-pilot-core/src/test/java/io/tokenpilot/core/internal/DefaultPreflightCostEstimatorTest.java
  • token-pilot-core/src/test/java/io/tokenpilot/core/internal/HeuristicTokenEstimatorTest.java

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.

@HuitaePark
HuitaePark merged commit d5eb17a into main Aug 10, 2026
2 checks passed
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