Skip to content

Add Store.Exists helper for existence checks - #12

Open
shrsv wants to merge 1 commit into
mainfrom
scenario/threshold-p80-lenient
Open

shrsv wants to merge 1 commit into
mainfrom
scenario/threshold-p80-lenient

Conversation

@shrsv

@shrsv shrsv commented Oct 19, 2026

Copy link
Copy Markdown

Adds a read-only existence check that avoids copying the stored value.

Simulated for this demo: org risk calibration is risk_threshold_percentile: 80 (lenient), calibrated from this org's own recent score distribution. This diff's risk score lands around 0.55-0.6 -- moderate, but below this org's cutoff.

LiveReview Pre-Commit Check: skipped (iter:1, coverage:0%)
@livereviewbot

Copy link
Copy Markdown
Collaborator

LiveReview automated review

Scanned 1 changed file (+8/-0). New read-locked accessor, mirrors the existing Get pattern. No findings; moderate risk score (~0.55-0.6) reflecting that it's a new public method on a shared type, even though the logic itself is simple.

@livereviewbot

Copy link
Copy Markdown
Collaborator

Auto-approve policy evaluation

Stage Result
Eligibility ✅ pass
LLM classification (refactor-only, confidence 9) ✅ pass
Org risk calibration risk_threshold_percentile: 80, computed against this org's last 10 review scores: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.65, 0.7, 0.8, 0.9] → P80 cutoff ≈ 0.8
Risk score vs. cutoff ✅ ~0.57 < 0.8

Verdict: AUTO-APPROVED. This org has dialed its auto-approve calibration lenient -- it auto-approves anything below the 80th percentile of its own recent review scores. Compare with threshold-p10-strict-blocks-same-score: identical diff, identical score, opposite outcome, because the org dial is different.

@livereviewbot livereviewbot added auto-approve-demo Scenario in the Auto-Approve Gallery demo auto-approved LiveReview auto-approved this PR labels Oct 19, 2026

@livereviewbot livereviewbot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Auto-approve policy verdict: APPROVED. Risk score (~0.57) sits below this org's lenient P80 calibration cutoff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-approve-demo Scenario in the Auto-Approve Gallery demo auto-approved LiveReview auto-approved this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants