← Back to Pull requests

[DOC] Update v2 extension templates for forecaster API #2484

Open
unknown opened this pull request with 198 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 27, 2026 13:25 UTC
Author

Reference Issues/PRs

Refs #2474. Stacked on #2434.

What does this implement/fix? Explain your changes.

Updates the extension templates to match the v2 forecaster API:

  • Replaces the model-package template with a BaseForecaster template.

  • Updates model linkage and adds support for data-derived metadata.

  • Uses BaseTimeSeriesDataModule hooks and inherits its constructor to preserve configuration when attaching data.

  • Updates dataset signatures and documents the metric prediction-tensor contract.

  • Updates the extension README.
  • This covers only the extension-template subtask of #2474.

    What should a reviewer concentrate their feedback on?

    Whether the templates correctly demonstrate the model, forecaster, and datamodule interfaces introduced in #2434.

    The template changes are contained in commit 8aad6a2. The broader diff against v2-dev includes changes inherited from #2434.

    Did you add any tests for the change?

    No new automated tests were added.

    The following checks passed for the changed templates:

  • Ruff lint and formatting.

  • Python compilation.

  • Staged diff whitespace checks.
  • The runtime configuration-cloning check was blocked during package import by ModuleNotFoundError: No module named 'sklearn', so runtime behavior remains unverified.

    Any other comments?

    This PR depends on #2434 and should merge after it.

    The model and data-processing methods remain intentional fill-in placeholders.

    PR checklist

  • The PR title starts with [DOC].

  • Added/modified tests.

  • Used the full pre-commit hook suite.
  • Diff: 198 lines (+148 / -50) across 2 files Reviewer: phoeenniixx Review duration: 6069m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 198 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.317
    Real PR Conversation Timeline
    1 comments
    "Review active on #2484"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 36.1% (MEDIUM) · Higher = larger blast radius
    36.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.2% · Safe to merge
    19.2%