← Back to Pull requests

[AAP-71569] Prefill workflow node prompts from the job template #3620

Closed
unknown closed this pull request without merging on Sep 25, 2026 15:59 UTC
View on GitHub
unknown unknown commented on Sep 21, 2026 22:09 UTC
Author

Summary

  • Fixes AAP-71569: editing a workflow node shows timeout 0, an empty limit, or forks 0 when prompt-on-launch was enabled after the node was added, and finishing the editor can save that wrong override.

  • A null node field means no override was stored. The node editor now prefills timeout, limit, forks, and the other scalar prompts from the job template launch defaults.

  • An explicit node value, including timeout 0, and an in-session edit still win over the template default.
  • Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • 3 Fields in a JT node with POL added after the node was added to a Workflow ob template:

    Before:
    <img width="1920" height="1012" alt="Screenshot From 2026-09-25 11-27-27" src="https://github.com/user-attachments/assets/48e486d7-b76d-4174-b835-d203d11a82b2" />

    After:
    <img width="1920" height="1012" alt="Screenshot From 2026-09-25 11-27-37" src="https://github.com/user-attachments/assets/09c29a84-36ca-43fc-a786-27cc7a24dd98" />

    Risk Analysis - REQUIRED

  • High — Broad platform impact (e.g., SWR config, shared framework components, authentication, routing, API wrappers, build/bundler config). Changes affect multiple workspaces or could cause widespread regressions.

  • Medium — Scoped but cross-cutting (e.g., shared utility functions, changes to multiple pages within one workspace, component library updates, test infrastructure). Limited blast radius but touches common code paths.

  • Low — Narrowly scoped (e.g., single page fix, styling tweak, documentation, test-only changes, copy/string updates). Minimal risk of unintended side effects.
  • Testing

    Ephemeral E2E Tests

    Once PR is ready and preliminary checks pass, trigger tests by posting a comment /run-playwright on this PR.

    Tests run against a fresh AAP instance (version based on branch).

    Manual Testing

    1. Create a job template with timeout 3000, a limit, and forks, and leave prompt-on-launch off for those fields.
    2. Add that job template as a node in a workflow job template and save.
    3. Edit the job template and enable prompt-on-launch for timeout, limit, and forks. Save.
    4. Edit the same workflow node. The prompt step should show 3000, the job template limit, and the job template forks.
    5. Finish the wizard and save the workflow. Reopen the node and confirm those values were kept, not reset to 0 or blank.
    6. Confirm a node that already has an explicit timeout of 0 still shows 0.

    Unit Tests

  • useGetInitialValues.test.ts — null node prompts inherit launch defaults; explicit node overrides and in-session edits still win.
  • Made with Cursor

    Diff: 346 lines (+259 / -87) across 4 files Reviewer: keithjgrant Review duration: 5390m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 346 lines diff across 4 files
    0.42
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3620"
    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: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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: 16.7% · Safe to merge
    16.7%