← Back to Pull requests

Follow rls2fga main #192

Closed
unknown closed this pull request without merging on Oct 09, 2026 12:51 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 04:19 UTC
Author

subql's lockfile still held rls2fga at 357b14e, and main had moved on with two changes subql has to follow. Condition names are now a clamped ConditionName type, and each membership source now states its own relation instead of every membership table pooling onto one member, which rls2fga treats as a defect because a membership granted through one table silently carried privileges meant for another.

The type change is mechanical. A condition read back from an OpenFGA store whose name is not a valid condition name is read as no context, the same as a context value that is not a string, since this policy could not have written it. Tests that spelled member now ask the translation for the relation a table's rows feed.

The separate relations mean no translated schema gives subql two producers on one region any more, yet grouping is still what keeps a reconcile from deleting facts another producer states if a translation ever does. testing::relation_pool::RelationPool restates one source's relation as another's across the shapes and the enumerating SQL, and the OpenFGA end-to-end tests rewrite the generated model the same way, so the grouping tests keep their shared region and still run against a real server.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
The locked rls2fga revision must follow changes in its main branch because membership sources now use distinct relations, and invalid OpenFGA condition names must not become valid context. Using ConditionName makes condition handling match the updated API.

Tests need to model multiple membership sources that share a relation. Relation pooling lets fixtures apply that mapping consistently across translated relations, enumerating SQL, and generated OpenFGA models.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 232 lines (+174 / -58) across 2 files Reviewer: LucaCappelletti94 Review duration: 511m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 232 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%
56%
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 #192"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 56.8% 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: 56.8% · Lower = rushed or shallow review
56.8%
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: 16% · Safe to merge
16%