Skip to content

[Core] Honor optional framework-native input routes - #129

Merged
jiangxt2 merged 1 commit into
masterfrom
framework-native-optional-input-routes
Oct 15, 2026
Merged

jiangxt2 merged 1 commit into
masterfrom
framework-native-optional-input-routes

Conversation

@jiangxt2

Copy link
Copy Markdown
Owner

Description

Allow train-only Framework Native requests to omit an input declared with FrameworkNativeInputRoute(required=False), such as validation. Required routes must still have input bindings, and every Dataset supplied to the trainer must still have a declared route, binding, and prepared input view.

Add regression coverage for optional omission and unbound inputs, and verify that supplied optional roles are counted once. There are no public API, serialization, or dependency changes.

Related issues

Related to #121 and tributo-algorithms#7.

Additional information

  • Framework Native runtime unit tests: 25 passed.
  • uv run --locked --no-sync python scripts/pr-precheck.py: passed, including the Python 3.12/3.13 CI unit matrix and documentation gates.
  • Docker/Ray cluster integration tests were not run; the fix changes role validation before Dataset counting.

Allow omitted optional input routes without bindings while retaining required
route and supplied Dataset checks. Cover optional omission, unbound inputs,
and single counting of supplied optional roles.

Signed-off-by: jiangxt2 <jiangxt2@vip.qq.com>
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; optional omission is allowed without weakening checks on supplied inputs.

Summary

Framework Native requests can now omit an optional input route without providing a binding.

  • Framework Native training can leave optional input routes out.

No actionable issues found. Tests were inspected but not run during this review.

Reviews (1) · Last reviewed commit: "[Core] Honor optional framework-native i..." · Reviewed by Greptile

@jiangxt2
jiangxt2 merged commit 8ff2811 into master Oct 15, 2026
14 checks passed
@jiangxt2
jiangxt2 deleted the framework-native-optional-input-routes branch October 15, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant