Harden error handling, dependencies, and MCP boundaries - #28
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
phase: "error"events actionable even when normalized error details are absent, including recent-window burst detection.fast-uri3.1.4 and@hono/node-server2.0.12) without changing parent SDK versions.Why
This closes three reliability gaps found during repository triage: silent no-op recovery for underspecified error events, known vulnerable transitive dependencies, and unvalidated/unbounded MCP tool inputs.
Affected packages
@ark/sanitize@ark/classifyValidation
pnpm install --frozen-lockfilepnpm check(97/97 tests; typecheck, lint, schema validation, package/MCP builds)pnpm audit --prod --json(0 vulnerabilities)pnpm audit --json(0 vulnerabilities)Residual boundary
The sanitizer budgets gate known
content/messagesbefore transforms and cap normalized output, but they are not a raw JSON-RPC byte limit and do not recursively budget opaque provider-specific fields. That transport/deep-object boundary remains explicitly documented.