Qualify trusted artifact security boundary - #55
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 closes the Phase 2 artifact-security review gate for Cortex’s trusted copy-in and output-publication boundary.
What changed
artifact-boundary-review.v1qualification probe with a fixed 12-case corpus and strict fail-closed exit behavior.text/plainclassification instead of leaking a parser exception.Why
The existing boundary already enforced owner-scoped grants, stable snapshots, exact claims, quarantine, and atomic publication, but the release gate lacked a repeatable security corpus and had two fail-closed gaps: active UTF-16 markup was classified as inert binary, and JSON numeric edge cases could escape as raw
ValueError/infinite floats.Validation
python tools/execution_spikes/artifact_security_review.py --json --strict— 12/12 passed, 0 blocked, 0 failed; corpus digesta748cc9f0a514c8d.python -m pytest -q— 272 passed, 1 skipped, 1 warning.python -m compileall -q main.py backend tools testspassed.git diff --checkpassed.Release-gate state
This closes artifact-security qualification only. Provider enablement remains blocked on resource/watchdog accounting, external security review, and production lifecycle health. No provider or arbitrary code execution is enabled by this PR.
Maintainer edits are enabled so the branch can be updated during review.