← Back to Pull requests

Support request-gated membership tables #50

Closed
unknown closed this pull request without merging on Oct 07, 2026 16:39 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 13:24 UTC
Author

Membership tables with unconditional PUBLIC reads can require a request capability through restrictive policies. Refusing those tables as row-dependent prevents callers from using their membership grants. Each membership grant needs its own read gates and tuple sources, while an independent owner grant remains independent.

PostgreSQL and OpenFGA parity coverage checks both SQL and per-row tuple loading, including membership sources and correlations that share a parent. This builds on membership translation, restrictive barriers and declared caller sets. Row-dependent and role-scoped membership policies remain guarded.

The separate two-hop membership branch needs integration before the branches can be combined.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Membership tables with unconditional PUBLIC reads could not require request-specific capabilities through restrictive policies. The translator treated those gates as row-dependent and rejected the membership path, even when the gate depended only on declared session attributes.

The fix preserves each membership source as a distinct relation and applies supported request gates to that source’s membership access. This keeps gates and tuple loading aligned across membership sources while leaving row-dependent and role-scoped policies guarded. The change also replaces source-name-dependent dump comparisons with semantic model and tuple comparisons, so equivalent generated models can differ in relation names.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 233 lines (+174 / -59) across 2 files Reviewer: LucaCappelletti94 Review duration: 195m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 233 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.326
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #50"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.1% (MEDIUM) · Higher = larger blast radius
37.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.6% · Safe to merge
14.6%