Skip to content

feat(scoring): persist PostgreSQL version-pinned request identity - #56

Merged
seonghobae merged 2 commits into
mainfrom
feat/scoring-request-persistence-20260813
Aug 13, 2026
Merged

feat(scoring): persist PostgreSQL version-pinned request identity#56
seonghobae merged 2 commits into
mainfrom
feat/scoring-request-persistence-20260813

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Why

ROADMAP Continuous rank 1 is the unfinished participant journey. Open persist PRs occupy snapshots (#55), events (#53), results (#51), and session bind (#47). Version-pinned ScoringRequest identity still exists only in memory, so a completed snapshot cannot be dispatched after process restart.

What

  • migrations/0011_scoring_request.sql for immutable scoring_request
  • src/postgres_scoring_request.rs persists a domain ScoringRequest under READ COMMITTED
  • Exact replay, fail-closed rebinding of session, snapshot, spec, instrument, scoring version, calibration, norm, or schema
  • TRACEABILITY/CHANGELOG updated. Live fast-mlsirm execution and HTTP remain Target.

Does not overlap #55 (response snapshots), #51 (result snapshots), or #43 (digest validation). Does not recreate fast-mlsirm kernels.

Test plan

  • TEST_DATABASE_URL persistence + error-contract tests
  • cargo clippy --all-targets -- -D warnings
  • cargo llvm-cov lines 3642/3642; nightly --branch 562/562
  • Exact-head required Checks after open

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 4 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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 92b9e491-a54b-4640-96fd-b9035fd550da

📥 Commits

Reviewing files that changed from the base of the PR and between ed6da43 and cfc742c.

📒 Files selected for processing (7)
  • CHANGELOG.md
  • docs/TRACEABILITY.md
  • migrations/0011_scoring_request.sql
  • src/lib.rs
  • src/postgres_scoring_request.rs
  • tests/postgres_scoring_request_error_contract.rs
  • tests/postgres_scoring_request_persistence.rs

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.

@seonghobae
seonghobae force-pushed the feat/scoring-request-persistence-20260813 branch 2 times, most recently from d871ed2 to fa65609 Compare August 13, 2026 17:11
ScoringRequest existed only in memory. Persist the dispatch identity
under READ COMMITTED so exact replay is idempotent and rebinding
snapshot or measurement-version evidence fails closed. Kernels stay
in fast-mlsirm.
@seonghobae
seonghobae force-pushed the feat/scoring-request-persistence-20260813 branch from fa65609 to 2fb6706 Compare August 13, 2026 19:54
Fold landed consent-ownership authorization into Implemented and keep
**Active PR** #56 as the named scoring-request persistence slice, not protected-main truth.
@seonghobae
seonghobae merged commit 438b8b1 into main Aug 13, 2026
30 checks passed
seonghobae added a commit that referenced this pull request Aug 13, 2026
Retarget TRACEABILITY to protected main 24d4678, treat landed #47/#56/#59 as Implemented, and keep exclusive outbox delivery-lease work as Active PR #60.
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