Repository navigation
security(cleanroom): verify every vector and sign Room B evaluation evidence - #12
Merged
Merged
Conversation
… a passing report
…ignatures independently
…worker-signed reports
…nd signed evidence
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.
Security finding
The previous scaffold imported
implementation.mjsinto the trusted Node test process before registering test vectors. A malicious implementation containingprocess.exit(0)could terminate the runner with exit code zero without executing any approved vector. The v1 Docker evaluator used exit status alone and could report a false positive.Implementation
compat.test.mjsthat never imports independent implementation code into its own process. Each approved vector is evaluated in a short-lived, bounded subprocess, with strict primitive JSON result checking, timeout and minimal environment.rudevolution.cleanroom.sandbox-report/v2with executed/passed vector counts, SHA256 policy and harness digests, plus existing approval, implementation, runtime image and log digests.process.exit(0).Validation
Local Node smoke:
npm run test:cleanroomyields 26 passing, 1 intentional Docker skip, zero failures. The dedicated GitHub Actions Docker job sets the pinned image and must pass (no skip). Other Node/Rust/dashboard checks remain unchanged.Breaking change
Existing Room B scaffolds are intentionally rejected because their test harness predates the security fix. Re-scaffold from the original approved artifact and copy only independently authored
implementation.mjsinto the new room. Previously issued v1 evaluation reports are not reclassified as trustworthy v2 reports.Boundaries
This is not legal clearance, independent authorship proof, host attestation or general semantic equivalence. An implementation can hardcode approved public vectors. The container shares a kernel with its isolated host; production still requires separate Room A/B identities, data, model state, evidence custody and held-out behavior tests.
Acceptance
Rollback
Keep the v2 execution gate even if optional worker signing is disabled. Do not revert to pre-v2 direct code import or exit-status-only success.
Node 24 portability correction
An earlier CI attempt revealed that Node 24 can emit a human-readable test reporter rather than TAP by default. The negative regression assertions initially expected TAP text. The generated Docker runner and nested regression subprocesses now explicitly request
--test-reporter=tap; the evaluator still requires complete counters, not merely exit code zero. The earlier Docker integration succeeded; fresh Node 22, Node 24 and Docker CI are required on the updated head.