Expose the qualification-only recipe API surface - #62
Merged
Conversation
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
This PR completes the next documented Phase 2 slice: it exposes the durable fixed-function image recipe through an explicit qualification-only request surface and binds the coordinator to an injected worker-attempt factory.
What changed
POST /api/v1/execution/recipe/imagewith strict request/acceptance schemas.profile="qualification"lifecycle.fake.v1preview route isolated from recipe coordinators while allowing the shared status/task/cancel/SSE surface to serve qualified recipe jobs.build_recipe_coordinator_factory, which wires an already-qualified worker-attempt factory to the lifecycle-owned repository without creating a process, binding a broker, loading a provider, or falling back to host execution.CortexApi.startRecipeImageTransform().Safety and scope
Attachment staging remains a separate trusted boundary: this route consumes a pre-staged opaque artifact ID and does not accept file paths, uploads, commands, model/provider authority, or arbitrary code. The normal Cortex application remains default-off; no signing key, external review, or production trust material is introduced.
Verification
329 passed, 1 skipped22 passed40 passedgit diff --check: passedNext planned slice
Trusted attachment staging and binding the real signed/native broker worker into the injected attempt factory, with the same lifecycle gate and default-off behavior preserved.