Add safe local compute and image transforms - #65
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 delivers the final local execution product slices without turning Cortex into an IDE or arbitrary-code runner.
Safety and behavior
The scratch tool accepts only a small fixed expression language. It exposes no shell, filesystem, network, package-install, subprocess, or arbitrary Python capability. Image changes use fixed typed recipes and byte-derived inputs rather than user paths or model-generated code. Ordinary chat remains usable if execution is unavailable or disabled.
The local worker is a practical process boundary, not a claim of OS-level sandboxing or arbitrary-code isolation. That distinction is documented in the delivery plan.
Validation
python -m pytest -q— 345 passed, 1 skippednpm.cmd run lint --prefix frontend— passednpm.cmd run typecheck --prefix frontend— passednpm.cmd test --prefix frontend -- --run— 43 passednpm.cmd run build --prefix frontend— passedgit diff --check— passedRelease note
The source-checkout scope is complete. Before distributing a Windows binary, run the existing package smoke check and a short manual verification of the two local profiles; this is a release check, not another product roadmap stage.