Repository navigation
refactor(apple-ips): report crash-report format failures through ParseFailure - #10665
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryApple
Reviews (1) · Last reviewed commit: "refactor(apple-ips): report crash-report..." · Reviewed by Greptile |
12 tasks
Base automatically changed from
refactor/rust-auditable-parse-failure
to
main
November 14, 2026 20:28
morluto
force-pushed
the
refactor/apple-ips-parse-failure
branch
from
November 14, 2026 20:35
95c151e to
8f8cc36
Compare
11 tasks
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
The Apple
.ipscrash-report parser now reports format failures through the shared ParseFailure algebra (formatapple-ips).AppleIpsFormatFailureand its provider translation are deleted.parseFailureAnalysisErrorgains an optional argument naming the input that selected the artifact. AppleIps passespathorjoin_path, and every other caller keeps the defaultpath. Theparser-format-failure-classbaseline drops by one.#10652 (which added the
parser-format-failure-classguard) is merged; this branch is rebased onmain. It is a sibling of #10664 (pyc), and the two each remove a different line from the same baseline. Part of plan W7 (parser kernel).Problem and expected behavior
AppleIpsFormatFailure{malformed|unsupported}restated the ParseFailure algebra under its own class.AppleIpsProvidertranslated it by hand because the shared mapper always namedpath, while AppleIps reports against the active input field (pathorjoin_path).Expected: the parser throws
ParseFailureError, and the provider callsparseFailureAnalysisError(OPERATION, activePath, cause, field).Change and scope
src/domain/parseFailureAnalysisError.ts: an optionalfieldargument, default"path". This is additive, so existing callers are unchanged.src/native/apple/AppleIps.errors.ts: deletesAppleIpsFormatFailureand addsAPPLE_IPS_FORMAT.AppleIpsResourceFailurestays, because its recovery names caller budgets.AppleIpsParser.tsandAppleIpsJsonShape.tsthrowmalformedInputandunsupportedInput, and the JSON-shape catch rethrowsParseFailureError.AppleIpsProvider.tsuses the shared mapper.Not included: moving the resource failure onto a ParseFailure
limit. Source reading shows that the join path (resolveAppleIpsJoin) returnsunreadablerather than throwing a format failure, so today only thepathparse reaches this mapping. The field is still passed through so the mapping is correct if that changes.Contract and boundary impact
Semantic owner and earliest changed stage: the parser produces the failure, and
parseFailureAnalysisErroris the one translation.Contribution scope fit and linked maintainer decision: not applicable. This is an internal refactor, and the coordinator decided to extend the mapper with a field argument.
CLI and MCP/tool-catalog contract: unchanged. The categories, the issue field and the
Selected artifact <path>:message match the previous AppleIps mapping.Provider, bridge, target-format, or platform compatibility: none.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details: not applicable.
Generated metadata, package, or installation impact: none.
Read existing files or captured data.
Evidence and regression coverage
src/domain/parseFailureAnalysisError.test.ts:names the input that selected the malformed artifactasserts thejoin_pathissue path.src/native/apple/AppleIpsParser.test.ts: expectsParseFailureError, and the stackshot test assertsfailure.kind: "unsupported"andfailure.format: "apple-ips".Validation performed
npm run test:focused -- src/domain/parseFailureAnalysisError.test.ts src/application/binaryDiagnostics/AppleIpsService.test.ts src/native/apple/AppleIpsParser.test.ts src/native/apple/AppleIpsProvider.test.ts tests/acceptance/appleIpsArmJoinCli.test.ts tests/acceptance/appleIpsCli.test.ts tests/acceptance/appleIpsUnlistedKeys.test.ts tests/boundary/filesystem/appleIps.test.ts tests/boundary/mcp/appleIpsMcp.test.ts tests/process-global/artifactReadFailurePrecedence.test.ts: 10 files, 129 tests passed.node scripts/verify/architecture-guards.mjs --shrink-baselines: passed and lowered the baseline.npm run check:fast: typecheck and lint passed.Compatibility, safety, and release
AppleIpsFormatFailurewas internal.Author readiness
Human owner:
Before merge
type(scope): outcome.