← Back to Pull requests

Return editable submission examples in algorithm details #23

Closed
unknown closed this pull request without merging on Nov 26, 2026 08:08 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 09:21 UTC
Author

Algorithm discovery lists parameters, but callers still have to assemble a complete training request by hand. GET /api/v1/algorithms/{name} now includes an editable example_request that can be copied into POST or saved as job.json.

  • Provide examples for the four merged submission profiles: SFT, OSFT, LoRA SFT, and LoRA GRPO. Include OSFT's required arguments and GRPO's CPU-head/GPU-worker layout with PVC output.

  • Check example parameters against the configured runtime and existing submission validators. Use runtime examples/defaults/choices for additional required arguments; omit the body with a note when no compatible example is available.

  • Define the response field using CreateJobRequest, regenerate the FastAPI model, and document extracting/customizing the request. Storage paths are editable placeholders; discovery does not create resources.

  • Add HTTP tests that copy each returned body unchanged into POST and verify it reaches storage lookup, plus live E2E coverage that preserves the discovered parameters and resources.
  • Validation: 1,188 unit tests passed; Ruff lint/format and mypy passed; OpenAPI models regenerated with Podman; all 78 discovery E2E cases collect. Live cluster E2E was not run because this branch has not been deployed.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Algorithm details now include an editable example training-job request when one can be generated for the configured runtime and execution profile.
    Examples include customizable job settings, storage locations, and resources; unavailable or incompatible examples are omitted.
    Documentation
    * Updated the discovery guide with instructions for editing and submitting examples, profile-specific limitations, and verification steps.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 243 lines (+182 / -61) across 3 files Reviewer: efazal Review duration: 4246m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 243 lines diff across 3 files
    0.39
    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%
    60%
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #23"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.3% · Safe to merge
    15.3%