← Back to Pull requests

feat: migrate dataset file reads and download links to gRPC #1244

Open
unknown opened this pull request with 196 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 28, 2026 20:07 UTC
Author

What and why

Move dataset-file lookup, batch refresh, listing, search, ingestion-job file listing, and download links from Catalog Conjure endpoints to the generated DatasetFileService gRPC API. DatasetFile and VideoDatasetFile now convert protobuf responses directly, preserving optional metadata, ingestion phases, in-place refresh, video specialization, and the documented whole-second search bounds. Origin download links follow all pages, including when a signed URL is renewed. Experimental file copying uses the new storage handle representation and shared download-link path.

File deletion and video timing updates remain on their existing services. Dataset CRUD is outside this PR.

Validation

  • just verify: 1,870 passed, 23 skipped; formatting, mypy, and Ruff passed.

  • After removing a redundant download callback, 37 focused file-conversion and migration tests passed and just check passed.

  • Regression coverage includes absent versus zero timestamps and metadata, nanosecond bounds, copied tag maps, unknown ingestion phases, video refresh identity and zero aggregates, origin URL pagination, lazy success-only listing, and search pagination/truncation/empty tags.

  • Static structural review found no actionable findings. No live-service integration tests were run.
  • Review notes

    Stacked on the generated-bindings upgrade #1242 (codex/api-bindings-0.1509.0). Public signatures and documented defaults are unchanged; migrated RPC failures use the existing SDK gRPC translation, and dataset-file lookup retains its FileNotFoundError wrapping.

    Diff: 196 lines (+147 / -49) across 2 files Reviewer: claude[bot] Review duration: 2m
    All Vouch review confidence checks passed
    Residual risk 0.41 = Change Risk (0.59) × (1 − Review Confidence (0.30)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 196 lines diff across 2 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 52% · Reviewer familiarity: 35%
    30%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.316
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #1244"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 30.2% reviewed sensitive_module
    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: 59.2% (MEDIUM) · Higher = larger blast radius
    59.2%
    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: 30.2% · Lower = rushed or shallow review
    30.2%
    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: 41.3% · Moderate risk
    41.3%