Feature/add a unified wrangles py cli for saved extract ai models and recipe execution - #1185
Draft
mborodii-prog wants to merge 6 commits into
Conversation
This was referenced Sep 15, 2026
mborodii-prog
marked this pull request as draft
September 16, 2026 14:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a unified CLI for managing saved Extract-AI definitions and running recipes that use them, without writing custom Python or HTTP wrappers.
Builds on the shared authoring contract delivered by #1184 for #1182.
Related to #1183.
Changes
wrangles model validate/create/update/inspect/export/verify.wrangles recipe runwhile preservingwrangles.recipecompatibility.--timeoutparsing.train.extractsignatures or HTTP response return values.false,0, andnull.Example usage
Run from the repository root after installing the checkout in editable mode:
Model commands use existing Wrangles credentials through
WRANGLES_USERandWRANGLES_PASSWORD. Extraction additionally requiresOPENAI_API_KEY.1. Validate and create a saved Extract-AI model
--verifyimplies waiting. Successful creation reportsverification: passedandreadiness: ready.2. Inspect, export, and verify
Standalone verification currently expects the complete saved definition, including server-added settings. Export provides that complete document.
3. Update the same model while preserving settings
This replaces the schema table and preserves existing settings.
Successful readback reports
verification: passed. Update readiness remainsunconfirmedbecause the API does not establish a submission-to-version link.4. Run extraction using the saved model
The recipe uses the saved definition through:
Input and output destinations are explicitly defined in the example recipe. The legacy
wrangles.recipeentry point remains supported.Verification and failure behavior
--json; diagnostics go to stderr.Validation
create --verifyandupdate --verifypassed on the same disposable model.Énergie.Scope and cleanup
This change does not add remote recipe execution, model deletion, permission management, or a new credential store. Excel UI automation and general extraction accuracy evaluation remain outside scope.
Disposable test models require manual cleanup using their recorded IDs. Reverting the code does not remove models already created through the API.