Repository navigation
Remove unused vulnerable SDK validator from Codex bundle (T47) - #209
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 14, 2026 02:17
This was referenced Oct 14, 2026
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.
Closes #94
Sage task T47
Sage no longer ships the SDK's unused AJV provider and embedded vulnerable fast-uri copy. The pinned SDK build replaces its Node shim, retains Node stdio, and explicitly refuses default JSON Schema validation. Sage's current tools use Zod and do not request elicitation; valid and invalid Zod tool calls keep their behavior.
This removes the affected code rather than upgrading an embedded package. Changing the root pin alone was insufficient. The build now checks the actual dependency graph and embedded source markers. A negative control bundles the original SDK without the override and confirms that the check rejects it even after the root fast-uri pin is removed. Unused dependency pins and license notices are removed together.
The restriction does not prevent every elicitation request: a form request can precede response validation, and URL elicitation does not use this validator. The boundary is documented in
packages/sage-codex/runtime/sdk-shims.md. Automatic Sage remains disabled for its separate activation gates. Claude PR #140's test-command change is untouched; this PR changes dependency lines inpackage.json.Validation on
6bab7aed0e89817c9f42f7919e61456f00ba3c57:npm run build: passed; generated bundle, documents, shim, and license removals committed.npm run check: all checks pass.npm audit --json: 0 reported vulnerabilities. npm audit alone cannot inspect prebundled dependencies; the separate graph check covers the known embedded provider.0f9df78: tests 2, pass 0, fail 2. One fails behaviorally because main accepts the form response; the other fails because the build guard is absent. Both SDK test processes now close and await exit in finally, including failing assertions.npm test -- --test-concurrency=1: tests 1179, pass 1179, fail 0, cancelled 0, skipped 0.Fake process tools are first on PATH for every repository test. No real-model pilot, installed automatic runtime, or native hook outage behavior was verified here. The dependency check is offline for the pinned SDK, not a universal advisory database.