← Back to Pull requests

fix(native): Return stored row lineage values for projected columns #28745

Merged
Joe-Abraham merged 7 files (768 lines) on Nov 04, 2026 17:40 UTC
View on GitHub
Joe-Abraham Joe-Abraham commented on Oct 30, 2026 02:44 UTC
Author

Description

On native workers, a query that reads _row_id or _last_updated_sequence_number without filtering on it returned inherited values. For example:

SELECT id, "_row_id" FROM t

returned first_row_id plus the row's position, even for rows that store their own _row_id. Compaction and row-preserving UPDATE or MERGE write such rows. The same query with a filter on _row_id returned the stored values.

The reader returns stored values only for lineage columns in the table handle's data columns. The Iceberg connector added them there only when a predicate used them. PrestoToVeloxConnector::toVeloxTableHandle now has an overload that receives the scan's column assignments. The Iceberg connector uses it to add projected lineage columns to the data columns, with their field IDs. Projected columns stay out of the filter columns.

The Velox side of the fix, which applies row lineage filters after inherited values are filled in, is facebookincubator/velox#18435. The pinned Velox commit already includes it.

Motivation and Context

On native workers, a query that projected a row lineage column returned different values from the same query filtered on that column.

Impact

No public API or configuration changes.

Test Plan

The shared row lineage tests in TestIcebergRowLineageBase now take pushdown_filter_enabled as a parameter. TestIcebergV3RowLineage in presto-native-tests runs them on native workers with pushdown on and off. It compares each query with the same query on Java workers, which run with pushdown off.

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.

  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.

  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.

  • If release notes are required, they follow the release notes guidelines.

  • Adequate tests were added if applicable.

  • CI passed.

  • If adding new dependencies, verified they have an OpenSSF Scorecard score of 5.0 or higher (or obtained explicit TSC approval for lower scores).
  • Release Notes

    == RELEASE NOTES ==
    
    Prestissimo (Native Execution) Changes
    * Fix Iceberg ``_row_id`` and ``_last_updated_sequence_number`` returning inherited instead of stored values when the query does not filter on them.
    

    Summary by Sourcery

    Return stored Iceberg row-lineage values consistently for native projections and predicates.

    Bug Fixes:

  • Ensure native Iceberg queries return stored _row_id and _last_updated_sequence_number values when lineage columns are projected without predicates.
  • Enhancements:

  • Pass scan column assignments through native table-handle conversion so projected lineage columns are included as data columns while remaining separate from filter columns.
  • Tests:

  • Expand Iceberg row-lineage coverage across filter pushdown settings, including projected versus filtered values, inherited and stored lineage, combined predicates, and V2-to-V3 upgrades.

  • Add native connector tests verifying projected lineage columns and their Iceberg field IDs are represented correctly in table handles.
  • Diff: 768 lines (+665 / -103) across 7 files Reviewer: aditi-pandit Review duration: 8095m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.52) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 768 lines diff across 7 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    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.398
    Real PR Conversation Timeline
    13 items
    sourcery-ai[bot] sourcery-ai[bot] commented on Oct 30, 2026 02:44 UTC
    Bot

    <!-- Generated by sourcery-ai[bot]: start review_guide -->

    Reviewer's Guide

    Fixes native Iceberg row-lineage projections by carrying assignment-only metadata columns into Velox data-column metadata with correct field IDs, allowing stored values to be read consistently with filtered queries; the PR also broadens shared native/Java coverage and removes metadata predicates before equality-delete statistics planning.

    Sequence diagram for native Iceberg row-lineage projection handling

    sequenceDiagram
        participant Scan as TableScanNode
        participant Plan as VeloxQueryPlanConverter
        participant Connector as IcebergPrestoToVeloxConnector
        participant Reader as VeloxIcebergReader
    
        Scan->>Plan: toVeloxQueryPlan()
        Plan->>Connector: toVeloxTableHandle(tableHandle, assignments, exprConverter, typeParser)
        Connector->>Connector: toIcebergColumnHandle(column)
        Connector->>Reader: Build finalDataColumns with lineage field IDs
        Reader-->>Scan: Return stored _row_id or _last_updated_sequence_number values
    

    File-Level Changes

    | Change | Details | Files |
    | ------ | ------- | ----- |
    | Pass projected scan assignments into native connector table-handle conversion and preserve requested Iceberg row-lineage columns as data columns. | <ul><li>Added an assignment-aware table-handle conversion overload with a default fallback for other connectors.</li><li>Collected row-lineage handles from both predicates and scan assignments, deduplicating columns while keeping projected-only lineage columns out of filter columns.</li><li>Populated lineage data-column field IDs so Velox can read stored physical values instead of synthesizing inherited values.</li></ul> | presto-native-execution/presto_cpp/main/connectors/PrestoToVeloxConnector.h<br/>presto-native-execution/presto_cpp/main/connectors/IcebergPrestoToVeloxConnector.h<br/>presto-native-execution/presto_cpp/main/connectors/IcebergPrestoToVeloxConnector.cpp<br/>presto-native-execution/presto_cpp/main/types/PrestoToVeloxQueryPlan.cpp |
    | Add focused native connector conversion coverage for projected and filtered row-lineage columns. | <ul><li>Verify projected _row_id and _last_updated_sequence_number columns receive Iceberg field IDs without becoming filter columns.</li><li>Verify a lineage column present in both predicate and projection is represented once and remains a filter column.</li></ul> | presto-native-execution/presto_cpp/main/types/tests/PrestoToVeloxConnectorTest.cpp |
    | Expand shared Iceberg row-lineage tests to validate stored values, inherited values, predicate behavior, deletes, statistics, and split pruning across workers. | <ul><li>Moved Java row-lineage predicate and compaction tests into the shared base and parameterized them for filter pushdown.</li><li>Added projection-versus-filter consistency coverage for stored lineage values, plus stored/inherited _row_id predicates and mixed regular-column predicates.</li><li>Added equality-delete and statistics-planning coverage, while retaining V2, compaction, split-pruning, and disjoint-range scenarios.</li><li>Refactored test helpers to run with explicit sessions, compare native results with the Java engine, and create physical Iceberg files containing lineage values.</li></ul> | presto-iceberg/src/test/java/com/facebook/presto/iceberg/TestIcebergRowLineage.java<br/>presto-iceberg/src/test/java/com/facebook/presto/iceberg/TestIcebergRowLineageBase.java<br/>presto-native-tests/src/test/java/com/facebook/presto/nativetests/iceberg/TestIcebergV3RowLineage.java |
    | Prevent metadata-column predicates from reaching Iceberg equality-delete file expression binding. | <ul><li>Strip metadata-column constraints before requesting equality delete files, avoiding Iceberg expression binder failures for lineage predicates.</li></ul> | presto-iceberg/src/main/java/com/facebook/presto/iceberg/TableStatisticsMaker.java |

    Possibly linked issues

  • #unknown: Links to the issue: the PR fixes its native projection-versus-filter inconsistency by passing projected lineage columns to the data scan.

  • #unknown: The PR implements native reading of the issue’s lineage columns, ensuring projections return stored values as well as filtered scans.

  • #27197: The PR fixes native reading of projected _row_id and _last_updated_sequence_number, directly implementing and correcting row lineage read support tracked by the issue.
  • ---

    <details>
    <summary>Tips and commands</summary>

    Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.

  • Continue discussions: Reply directly to Sourcery's review comments.

  • Generate a GitHub issue from a review comment: Ask Sourcery to create an

  • issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull

  • request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in

  • the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull

  • request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the

  • pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull

  • request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

    Customizing Your Experience

    Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request

  • summary, the reviewer's guide, and others.
  • Change the review language.

  • Add, remove or edit custom review instructions.

  • Adjust other review settings.
  • Getting Help

  • [Contact our support team](mailto:support@sourcery.ai) for questions or feedback.

  • Visit our documentation for detailed guides and information.

  • Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
  • </details>

    <!-- Generated by sourcery-ai[bot]: end review_guide -->

    sourcery-ai[bot] sourcery-ai[bot] commented on code on Oct 30, 2026 02:46 UTC
    Code Review
    presto-native-execution/presto_cpp/main/connectors/IcebergPrestoToVeloxConnector.cpp:1
    @@ -235,10 +239,9 @@ std::unique_ptr<velox::connector::ConnectorTableHandle> toIcebergTableHandle(
         // exist physically in the written files (e.g. after MERGE/UPDATE). Add any
         // requested lineage columns to finalDataColumns so the reader can match
         // them with the Parquet schema.
    -    for (const auto& handle : columnHandles) {
    -      if (kRowLineageColumnNames.count(handle->name()) &&
    -          std::find(names.begin(), names.end(), handle->name()) ==
    -              names.end()) {
    +    for (const auto& handle : lineageColumnHandles) {

    🟠 High · Lineage-only projections miss stored values

    When a query projects only _row_id or _last_updated_sequence_number and the layout has no regular data columns, the lineage-column loop is skipped, leaving finalDataColumns unset, so the reader cannot load stored lineage fields and returns synthesized values instead.

    Build finalDataColumns when either regular data columns or requested lineage columns are present.

    <details>
    <summary>Prompt for AI agents</summary>

    ~~~markdown
    In presto-native-execution/presto_cpp/main/connectors/IcebergPrestoToVeloxConnector.cpp at line 242:

    Lineage-only projections miss stored values

    When a query projects only _row_id or _last_updated_sequence_number and the layout has no regular data columns, the lineage-column loop is skipped, leaving finalDataColumns unset, so the reader cannot load stored lineage fields and returns synthesized values instead.

    Build finalDataColumns when either regular data columns or requested lineage columns are present.
    ~~~

    </details>

    sourcery-ai[bot] sourcery-ai[bot] commented on Oct 30, 2026 02:46 UTC
    Reviewer

    Hey - I've found 1 issue

    <details>
    <summary>Prompt for AI Agents</summary>

    ~~~markdown
    Please address the comments from this code review:

    Individual Comments

    Comment 1


    <location path="presto-native-execution/presto_cpp/main/connectors/IcebergPrestoToVeloxConnector.cpp" line_range="242" />
    <code_context>
  • if (kRowLineageColumnNames.count(handle->name()) &&

  • std::find(names.begin(), names.end(), handle->name()) ==

  • names.end()) {

  • + for (const auto& handle : lineageColumnHandles) {
    + if (std::find(names.begin(), names.end(), handle->name()) ==
    + names.end()) {
    </code_context>
    <issue_to_address>
    Lineage-only projections miss stored values

    When a query projects only _row_id or _last_updated_sequence_number and the layout has no regular data columns, the lineage-column loop is skipped, leaving finalDataColumns unset, so the reader cannot load stored lineage fields and returns synthesized values instead.

    Build finalDataColumns when either regular data columns or requested lineage columns are present.
    </issue_to_address>
    ~~~

    </details>

    ***

    <details>
    <summary>Sourcery is free for open source - if you like our reviews please consider sharing them ✨</summary>

  • X

  • Mastodon

  • LinkedIn

  • Facebook
  • </details>

    sourcery-ai[bot] sourcery-ai[bot] commented on Oct 30, 2026 07:50 UTC
    Bot

    Sorry @Joe-Abraham, you've used your own review budget of 250,000 diff characters for the last 7 days.

    You can request another review in 6 days and 19 hours by commenting @sourcery-ai review. Upgrade to get a review now.

    aditi-pandit aditi-pandit commented on code on Oct 30, 2026 16:27 UTC
    Code Review
    presto-native-execution/presto_cpp/main/connectors/PrestoToVeloxConnector.h:1
    @@ -75,6 +75,21 @@ class PrestoToVeloxConnector {
         return toVeloxTableHandle(tableHandle, exprConverter, typeParser);
       }
     
    +  /// Overload for TableScanNode conversion that passes the scan's column

    This comment isn't needed.

    aditi-pandit aditi-pandit commented on code on Nov 03, 2026 18:33 UTC
    Code Review
    presto-iceberg/src/test/java/com/facebook/presto/iceberg/TestIcebergRowLineageBase.java:1
    @@ -286,4 +469,146 @@ private Map<String, String> getProperties()
         {
             return ImmutableMap.of("warehouse", getCatalogDirectory().toURI().toString());
         }
    +
    +    /**
    +     * Only {@code id} is selected, so {@code column} is read for the filter alone.
    +     */
    +    private void assertIdsForPredicate(Session session, String tableName, String column, String predicate, List<Integer> expectedIds)
    +    {
    +        assertIdsForQuery(session, "SELECT id FROM " + tableName + " WHERE \"" + column + "\" " + predicate, expectedIds);
    +    }
    +
    +    /**
    +     * Compares {@code sql} under {@code session} with the expected engine, then checks the ids
    +     * against {@code expectedIds}. That catches errors both engines share, such as coordinator
    +     * split pruning.
    +     */
    +    private void assertIdsForQuery(Session session, String sql, List<Integer> expectedIds)
    +    {
    +        assertMatchesExpectedEngine(session, sql);
    +        assertEquals(sortedIdsOf(computeActual(session, sql)), ImmutableList.sortedCopyOf(expectedIds), "rows for \"" + sql + "\"");
    +    }
    +
    +    private List<long[]> readIdAndSequenceNumber(Session session, String tableName)
    +    {
    +        return readIdAndLongColumn(session, tableName, "_last_updated_sequence_number");
    +    }
    +
    +    private List<long[]> readIdAndRowId(Session session, String tableName)
    +    {
    +        return readIdAndLongColumn(session, tableName, "_row_id");
    +    }
    +
    +    private List<long[]> readIdAndLongColumn(Session session, String tableName, String column)
    +    {
    +        String sql = "SELECT id, \"" + column + "\" FROM " + tableName;
    +        assertMatchesExpectedEngine(session, sql);
    +        List<long[]> rows = new ArrayList<>();
    +        for (MaterializedRow row : computeActual(session, sql).getMaterializedRows()) {
    +            rows.add(new long[] {(Integer) row.getField(0), (Long) row.getField(1)});
    +        }
    +        return rows;
    +    }
    +
    +    private static List<Integer> sortedIdsOf(MaterializedResult result)
    +    {
    +        List<Integer> ids = new ArrayList<>();
    +        for (MaterializedRow row : result.getMaterializedRows()) {
    +            ids.add((Integer) row.getField(0));
    +        }
    +        ids.sort(Integer::compare);
    +        return ids;
    +    }
    +
    +    private static Map<Integer, long[]> rowIdAndSequenceNumberById(MaterializedResult result)
    +    {
    +        Map<Integer, long[]> byId = new HashMap<>();
    +        for (MaterializedRow row : result.getMaterializedRows()) {
    +            int id = (Integer) row.getField(0);
    +            Long rowId = (Long) row.getField(1);
    +            Long seqNum = (Long) row.getField(2);
    +            assertNotNull(rowId, "_row_id should not be null for id=" + id);
    +            assertNotNull(seqNum, "_last_updated_sequence_number should not be null for id=" + id);
    +            byId.put(id, new long[] {rowId, seqNum});
    +        }
    +        return byId;
    +    }
    +
    +    private static long valueForId(List<long[]> rows, int id)
    +    {
    +        for (long[] row : rows) {
    +            if (row[0] == id) {
    +                return row[1];
    +            }
    +        }
    +        throw new AssertionError("id not found: " + id);
    +    }
    +
    +    private void appendOneRow(Table table, int id, String value)
    +            throws Exception
    +    {
    +        writeRecords(table, GenericRecord.create(table.schema()).copy("id", id, "value", value));
    +        table.refresh();
    +    }
    +
    +    private static void writeRecordsWithSchema(Table table, Schema writeSchema, Record... records)
    +            throws Exception
    +    {
    +        table.newAppend().appendFile(writeFile(table, writeSchema, records)).commit();
    +    }
    +
    +    /**
    +     * Appends id 2, then simulates a row-preserving external copy-on-write UPDATE of it: the file
    +     * holding id 2 is replaced by one that explicitly carries {@code _row_id} /
    +     * {@code _last_updated_sequence_number} values that override the positional and file-level
    +     * fallbacks.
    +     */
    +    private static void writeOverriddenLineageRow(Table table)

    Can you take the hard-coded values"2", "two" as parameters to this function ?

    aditi-pandit aditi-pandit commented on code on Nov 03, 2026 18:35 UTC
    Code Review
    presto-iceberg/src/test/java/com/facebook/presto/iceberg/TestIcebergRowLineageBase.java:1
    @@ -286,4 +469,146 @@ private Map<String, String> getProperties()
         {
             return ImmutableMap.of("warehouse", getCatalogDirectory().toURI().toString());
         }
    +
    +    /**
    +     * Only {@code id} is selected, so {@code column} is read for the filter alone.
    +     */
    +    private void assertIdsForPredicate(Session session, String tableName, String column, String predicate, List<Integer> expectedIds)
    +    {
    +        assertIdsForQuery(session, "SELECT id FROM " + tableName + " WHERE \"" + column + "\" " + predicate, expectedIds);
    +    }
    +
    +    /**
    +     * Compares {@code sql} under {@code session} with the expected engine, then checks the ids
    +     * against {@code expectedIds}. That catches errors both engines share, such as coordinator
    +     * split pruning.
    +     */
    +    private void assertIdsForQuery(Session session, String sql, List<Integer> expectedIds)
    +    {
    +        assertMatchesExpectedEngine(session, sql);
    +        assertEquals(sortedIdsOf(computeActual(session, sql)), ImmutableList.sortedCopyOf(expectedIds), "rows for \"" + sql + "\"");
    +    }
    +
    +    private List<long[]> readIdAndSequenceNumber(Session session, String tableName)
    +    {
    +        return readIdAndLongColumn(session, tableName, "_last_updated_sequence_number");
    +    }
    +
    +    private List<long[]> readIdAndRowId(Session session, String tableName)
    +    {
    +        return readIdAndLongColumn(session, tableName, "_row_id");
    +    }
    +
    +    private List<long[]> readIdAndLongColumn(Session session, String tableName, String column)
    +    {
    +        String sql = "SELECT id, \"" + column + "\" FROM " + tableName;
    +        assertMatchesExpectedEngine(session, sql);
    +        List<long[]> rows = new ArrayList<>();
    +        for (MaterializedRow row : computeActual(session, sql).getMaterializedRows()) {
    +            rows.add(new long[] {(Integer) row.getField(0), (Long) row.getField(1)});
    +        }
    +        return rows;
    +    }
    +
    +    private static List<Integer> sortedIdsOf(MaterializedResult result)
    +    {
    +        List<Integer> ids = new ArrayList<>();
    +        for (MaterializedRow row : result.getMaterializedRows()) {
    +            ids.add((Integer) row.getField(0));
    +        }
    +        ids.sort(Integer::compare);
    +        return ids;
    +    }
    +
    +    private static Map<Integer, long[]> rowIdAndSequenceNumberById(MaterializedResult result)
    +    {
    +        Map<Integer, long[]> byId = new HashMap<>();
    +        for (MaterializedRow row : result.getMaterializedRows()) {
    +            int id = (Integer) row.getField(0);
    +            Long rowId = (Long) row.getField(1);
    +            Long seqNum = (Long) row.getField(2);
    +            assertNotNull(rowId, "_row_id should not be null for id=" + id);
    +            assertNotNull(seqNum, "_last_updated_sequence_number should not be null for id=" + id);
    +            byId.put(id, new long[] {rowId, seqNum});
    +        }
    +        return byId;
    +    }
    +
    +    private static long valueForId(List<long[]> rows, int id)
    +    {
    +        for (long[] row : rows) {
    +            if (row[0] == id) {
    +                return row[1];
    +            }
    +        }
    +        throw new AssertionError("id not found: " + id);
    +    }
    +
    +    private void appendOneRow(Table table, int id, String value)

    All these functions have rows with 2 columns: id and value. So they are not generic. Please can you change the names and add a comment reflecting that.

    Can you search if we have any generic function in the code base for this ?

    aditi-pandit aditi-pandit commented on code on Nov 03, 2026 18:36 UTC
    Code Review
    presto-iceberg/src/test/java/com/facebook/presto/iceberg/TestIcebergRowLineageBase.java:1
    @@ -286,4 +469,146 @@ private Map<String, String> getProperties()
         {
             return ImmutableMap.of("warehouse", getCatalogDirectory().toURI().toString());
         }
    +
    +    /**
    +     * Only {@code id} is selected, so {@code column} is read for the filter alone.
    +     */
    +    private void assertIdsForPredicate(Session session, String tableName, String column, String predicate, List<Integer> expectedIds)
    +    {
    +        assertIdsForQuery(session, "SELECT id FROM " + tableName + " WHERE \"" + column + "\" " + predicate, expectedIds);
    +    }
    +
    +    /**
    +     * Compares {@code sql} under {@code session} with the expected engine, then checks the ids
    +     * against {@code expectedIds}. That catches errors both engines share, such as coordinator
    +     * split pruning.
    +     */
    +    private void assertIdsForQuery(Session session, String sql, List<Integer> expectedIds)
    +    {
    +        assertMatchesExpectedEngine(session, sql);
    +        assertEquals(sortedIdsOf(computeActual(session, sql)), ImmutableList.sortedCopyOf(expectedIds), "rows for \"" + sql + "\"");

    sortedIds can be a local function.

    aditi-pandit aditi-pandit commented on Nov 03, 2026 18:49 UTC
    Reviewer

    Thanks @Joe-Abraham. Have bunch of cleanup comments for your test code.

    Joe-Abraham Joe-Abraham commented on Nov 04, 2026 13:33 UTC
    Author

    Thanks @aditi-pandit, I have addressed your feedback, can you please have a relook?

    aditi-pandit aditi-pandit commented on code on Nov 04, 2026 17:39 UTC
    Code Review
    presto-native-execution/presto_cpp/main/connectors/IcebergPrestoToVeloxConnector.cpp:1
    @@ -235,10 +239,9 @@ std::unique_ptr<velox::connector::ConnectorTableHandle> toIcebergTableHandle(
         // exist physically in the written files (e.g. after MERGE/UPDATE). Add any
         // requested lineage columns to finalDataColumns so the reader can match
         // them with the Parquet schema.
    -    for (const auto& handle : columnHandles) {
    -      if (kRowLineageColumnNames.count(handle->name()) &&
    -          std::find(names.begin(), names.end(), handle->name()) ==
    -              names.end()) {
    +    for (const auto& handle : lineageColumnHandles) {

    Sourcery's one finding (lineage-only projections with no regular data columns) doesn't apply. dataColumns is the table's schema columns, not the projection, so it is non-empty for any real table. Sourcery's summary also mentions a TableStatisticsMaker change that is not in the final file list, so that part is stale.

    aditi-pandit aditi-pandit approved these changes on Nov 04, 2026 17:39 UTC
    Approved Reviewer

    Thanks @Joe-Abraham

    Reviewers
    Assignees
    Joe-Abraham Joe-Abraham
    Labels
    risk: low confidence: 90.6% 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: 51.5% (MEDIUM) · Higher = larger blast radius
    51.5%
    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: 90.6% · Lower = rushed or shallow review
    90.6%
    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: 4.8% · Safe to merge
    4.8%