← Back to Pull requests

Feat: Support holes in polygons via a5-rs API #2

Closed
felixpalmer closed this pull request without merging on Jun 24, 2026 04:17 UTC
View on GitHub
felixpalmer felixpalmer commented on Jun 12, 2026 11:00 UTC
Author

Draft of supporting holes in polygons via the new API in a5-rs. Needs to wait for 0.9.0 release

Diff: 289 lines (+53 / -236) across 7 files Reviewer: rustyconover Review duration: 16876m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.46) × (1 − Review Confidence (0.82)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 289 lines diff across 7 files
0.46
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 3 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
82%
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.339
Real PR Conversation Timeline
5 items
rustyconover rustyconover approved these changes on Jun 12, 2026 14:40 UTC
Approved Reviewer

Looks good to me! let me know when the new crate is ready and we'll ship it. I love having less code here!

felixpalmer felixpalmer commented on Jun 17, 2026 22:11 UTC
Author

@rustyconover 0.9.0 is out & I've updated the PR to work with it. Note the removal of the spherical API functions, these were only ever meant to be internal to A5, let me know if there is some reason they should be included in the DuckDB API. If you're happy, go ahead and merge&release :)

rustyconover rustyconover commented on Jun 17, 2026 22:50 UTC
Contributor

I'll take over from here and get it building and released. Thanks!

rustyconover rustyconover commented on Jun 24, 2026 04:17 UTC
Contributor

Landed on the v1.5 branch as commit 8c08dab (the active release line, which carries the DuckDB v1.5 upgrade that main doesn't). The feature commits were integrated there: a5 crate bumped to 0.9.0, a5_polygon_to_cells now takes flattened rings with holes excluded by the a5 crate, and the deprecated a5_cell_to_spherical/a5_spherical_to_cell functions were removed. Build passes and all tests are green. Closing this PR since it targeted main.

Reviewers
Assignees
felixpalmer felixpalmer
Labels
risk: low confidence: 82.1% 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: 45.7% (MEDIUM) · Higher = larger blast radius
45.7%
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: 82.1% · Lower = rushed or shallow review
82.1%
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: 8.2% · Safe to merge
8.2%
Repository