Repository navigation
fix: fail closed on malformed runtime validation and review inputs - #11
Merged
BunsDev merged 9 commits intoSep 22, 2026
Conversation
5 tasks done
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.
What changed
Validate runtime decision inputs as plain data. Malformed validation rejects; a missing or malformed review envelope is unavailable; unusable individual answers degrade to proposal-only. Dense error arrays are copied from own data properties so custom iterators cannot hide failures and index getters are not invoked.
Ported from romgenie-following-repos#3.
Verdict impact
Malformed or contradictory validation produces reject, including arrays whose custom iterator previously hid errors. Malformed review envelopes produce unavailable; partial answer objects produce proposal_only. Canonical fixture verdicts are unchanged.
Review and verification
Reproduced and fixed an iterator-based validation bypass; added getter/iterator regression coverage. Reviewed the incremental code, tests, API boundaries, and documentation. No remaining actionable finding was identified within this PR's scope.
pnpm typecheckandpnpm testpassed locally on the current branch.pnpm check:secrets, pre-commit checks, and gitleaks over the complete final-stack history passed.Local toolchain: Node 24.18.0, pnpm 10.34.5. Reviewed head: 0b1df9e64858212c16455f0911d338cda56d9032. Hosted CI requires upstream maintainer approval for fork workflows; local validation is not a hosted CI pass. Ready for human review, not merged.
Stack
Depends on #10. Review this concern using the incremental diff. Next: #12.
These cross-fork PRs target upstream main because the publishing account cannot create upstream base branches. Later PRs therefore include prerequisite changes. Merge in order using the required squash policy, then rebase/retarget the remaining PRs as needed. This review update preserves published history through signed merges; no force-push was used.