-
Notifications
You must be signed in to change notification settings - Fork 144
Docs for vMCP composite workflows #2593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2593 +/- ##
=======================================
Coverage 55.84% 55.84%
=======================================
Files 312 312
Lines 29541 29541
=======================================
Hits 16498 16498
Misses 11601 11601
Partials 1442 1442 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jhrozek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation Review Findings
I've reviewed the composite workflow documentation against the actual CRD implementation and found critical issues where the examples don't match the code. These issues will cause workflows to fail or behave incorrectly if users copy-paste the examples.
Critical Issues Summary
- Parameter structure - Using incorrect JSON Schema format (2 files)
- Step type value - Using
toolinstead oftool_call(41 occurrences) - Field naming - Using
depends_oninstead ofdependsOn- THIS WILL CAUSE SILENT FAILURE (42 occurrences) - Error action values - Using
continue_on_errorinstead ofcontinue(5 occurrences) - Error field names - Wrong field names and non-existent
retry_delayfield (8 occurrences) - Retry backoff formula - Claims 2^n but code uses 1.5^n (3 occurrences)
- Broken file links - Wrong relative paths (2 occurrences)
Questions for Author
- CLI workflow command: What was intended? (doesn't exist)
- Max steps validation: Add CRD validation or keep runtime-only?
- Max retry validation: Add webhook validation or keep runtime capping?
- Template features: Document additional features?
- API endpoint: Clarify programmatic vs HTTP access?
All findings verified against:
cmd/thv-operator/api/v1alpha1/virtualmcpcompositetooldefinition_types.gocmd/thv-operator/api/v1alpha1/virtualmcpserver_types.gopkg/vmcp/composer/workflow_engine.gopkg/vmcp/composer/dag_executor.go
Adds docs for #2592
a03b1cd to
4647eba
Compare
|
@claude use this repo's |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
jhrozek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Approved - All Issues Resolved
All review comments have been addressed! Here's the final status:
Issues Fixed
- ✅ Parameter structure - Correct flat map format in both files
- ✅ Step type - Documentation was correct (), CRD was fixed in commit 107ea07
- ✅ Field naming - All 42 occurrences changed to (camelCase)
- ✅ Error action values - All changed from to
- ✅ Error field names - Changed to , removed non-existent
- ✅ Backoff formula - Corrected to 1.5x multiplier with ±50% randomization
- ✅ File links - Fixed to use correct relative paths (
../kind/)
My Correction
I initially flagged type: tool as wrong, but I was mistaken. The documentation was correct - the CRD had the wrong enum value (tool_call) which was fixed in commit 107ea07 to match the actual runtime code (StepTypeTool = "tool").
Questions for Future Consideration
The review raised some questions about validation strategy and documentation that can be addressed in future work if desired:
- Max retry/steps validation at CRD vs runtime
- Documenting additional template features
- Clarifying API access types
Great work on the thorough fixes! The documentation now accurately reflects the implementation. 🎉
Adds docs for #2592