Skip to content

fix: isolate Python example evaluation in Docker - #19

Merged
fitz2882 merged 1 commit into
mainfrom
codex/security-remediation-code
Sep 5, 2026
Merged

fix: isolate Python example evaluation in Docker#19
fitz2882 merged 1 commit into
mainfrom
codex/security-remediation-code

Conversation

@fitz2882

@fitz2882 fitz2882 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

The Python example now executes candidate pytest code only inside a restricted Docker container instead of a host subprocess. Require a pre-provisioned trusted image and preflight before model calls; use staged read-only inputs, no network, non-root execution, resource/output limits, and confirmed cleanup. Infrastructure failures abort both loops without a host fallback.

Validation: a fresh independent reviewer approved the final commit and reproduced all 14 synthetic container tests. The combined local suite passed 235 tests with six optional framework integrations skipped; CI is pending. The image was prepared offline from cached trusted Python and pytest packages. No model calls or research runs were performed. Docker/kernel trust and research comparability remain outside this proof.

@fitz2882
fitz2882 merged commit 8c3eec4 into main Sep 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant