fix(package): address outstanding parser review findings - #517
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Parser output can execute shell commands, while hosted and cross-version Zsh validation remains pending.
Pull request overview
Fixes JSON manifest parsing edge cases and strengthens merge-review safeguards.
Changes:
- Selects objects using structurally parsed, decoded member names.
- Preserves surrogate and malformed Unicode escapes with regression coverage.
- Requires complete review inspection and SHA-bound, non-bypassing promotion merges.
File summaries
| File | Description |
|---|---|
lib/zsh/install.zsh |
Corrects key detection and surrogate handling. |
tests/package-manifest-parsing.zsh |
Adds parser regressions for both production callers. |
AGENTS.md |
Defines repository merge-review requirements. |
.github/PULL_REQUEST_TEMPLATE/promotion.md |
Aligns promotion checks and merge command. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Problem and change
Addresses the outstanding review findings in #514. Key-like text inside a quoted JSON value could select the wrong object, and surrogate escapes were decoded despite the documented preservation contract.
_fromcallers.Refs #513
Refs #514
Validation
Instruction impact
Agent handoff
The follow-up targets next and is ready for code-owner review. Do not resolve #514's threads solely because this PR exists: review the fix and record its disposition first. No merge or auto-merge is requested.