[PR #6976] [CLOSED] fix(apple): keep the nested Rosetta registers of translated crash reports #7488

Closed
opened 2026-11-01 21:48:11 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/6976
Author: @Adolanium
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: fix/ips-rosetta-thread-state


📝 Commits (5)

  • 1889ac1 fix(apple): keep the nested Rosetta registers of translated crash reports
  • c9e93bd test(apple): budget Rosetta registers before reading them
  • 1245d4e Merge remote-tracking branch 'upstream/main' into fix/ips-rosetta-thread-state
  • 07fa932 fix(apple): preserve nested Rosetta state and its shared register budget
  • 748d41a chore: incorporate the verified evaluation fixture correction

📊 Changes

6 files changed (+215 additions, -5 deletions)

View changed files

📝 docs/apple-ips.md (+6 -0)
📝 src/native/apple/AppleIpsJsonShape.ts (+7 -0)
📝 src/native/apple/AppleIpsParser.test.ts (+93 -4)
📝 src/native/apple/AppleIpsParser.ts (+14 -0)
📝 tests/acceptance/appleIpsCli.test.ts (+66 -1)
📝 tests/fixtures/binaryDiagnostics/appleIps.ts (+29 -0)

📄 Description

Summary

Fixes #6977. Apple crash reports from translated processes store Rosetta registers in a nested threadState.rosetta object. The shared parser now reports these as rosetta.<name> register rows and keeps their source paths. Valid reports retain complete coverage; malformed members produce partial coverage while preserving valid siblings.

Nested Rosetta and ordinary registers share the existing pre-parse resource budget, including mixed inputs at the exact limit. The output schema and target execution authority are unchanged.

Validation

  • Merged main ab720b421, preserving contributor history and incorporating the setup-test split that addresses the old static-check failure.
  • 57 parser, CLI, and stdio MCP tests passed. A shared fixture quotes register fields from a public ReportCrash report inside an authored report body; it covers complete output, malformed-member source paths, retained siblings, and register limits.
  • All 10 web-module script-index cases passed, including the 0x1 case that timed out in the old CI run.
  • Runtime build, check:fast, generated docs verification, and 9 README consistency tests passed with the pinned Node/npm toolchain.
  • The tests consume recorded data; they do not generate a fresh Rosetta crash. Current-head GitHub CI remains a separate gate.

Shared CI fixture correction: main ab720b421 retains the Notes trace’s partial static coverage. Its 12 known-answer/report-gate tests, fast checks, and docs verification passed. The feature-specific checks above remain applicable.

Author readiness

Human owner: @Adolanium

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/6976 **Author:** [@Adolanium](https://github.com/Adolanium) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/ips-rosetta-thread-state` --- ### 📝 Commits (5) - [`1889ac1`](https://github.com/morluto/rea/commit/1889ac15329dd2019c3ba7f7755ed727e589bd47) fix(apple): keep the nested Rosetta registers of translated crash reports - [`c9e93bd`](https://github.com/morluto/rea/commit/c9e93bd88a2c142e8d900bd0c0f6a32346241e5e) test(apple): budget Rosetta registers before reading them - [`1245d4e`](https://github.com/morluto/rea/commit/1245d4edef5a84d1e038ef11076adeea0b35c8d2) Merge remote-tracking branch 'upstream/main' into fix/ips-rosetta-thread-state - [`07fa932`](https://github.com/morluto/rea/commit/07fa932ee5e22dc93be5c502ef2ca9e303ae843f) fix(apple): preserve nested Rosetta state and its shared register budget - [`748d41a`](https://github.com/morluto/rea/commit/748d41a430e84bd9ff45ae1b811b6d632e794375) chore: incorporate the verified evaluation fixture correction ### 📊 Changes **6 files changed** (+215 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/apple-ips.md` (+6 -0) 📝 `src/native/apple/AppleIpsJsonShape.ts` (+7 -0) 📝 `src/native/apple/AppleIpsParser.test.ts` (+93 -4) 📝 `src/native/apple/AppleIpsParser.ts` (+14 -0) 📝 `tests/acceptance/appleIpsCli.test.ts` (+66 -1) 📝 `tests/fixtures/binaryDiagnostics/appleIps.ts` (+29 -0) </details> ### 📄 Description ## Summary Fixes #6977. Apple crash reports from translated processes store Rosetta registers in a nested `threadState.rosetta` object. The shared parser now reports these as `rosetta.<name>` register rows and keeps their source paths. Valid reports retain complete coverage; malformed members produce partial coverage while preserving valid siblings. Nested Rosetta and ordinary registers share the existing pre-parse resource budget, including mixed inputs at the exact limit. The output schema and target execution authority are unchanged. ## Validation - Merged main `ab720b421`, preserving contributor history and incorporating the setup-test split that addresses the old static-check failure. - 57 parser, CLI, and stdio MCP tests passed. A shared fixture quotes register fields from a [public ReportCrash report](https://github.com/Mortennn/Dozer/issues/189) inside an authored report body; it covers complete output, malformed-member source paths, retained siblings, and register limits. - All 10 web-module script-index cases passed, including the `0x1` case that timed out in the old CI run. - Runtime build, `check:fast`, generated docs verification, and 9 README consistency tests passed with the pinned Node/npm toolchain. - The tests consume recorded data; they do not generate a fresh Rosetta crash. Current-head GitHub CI remains a separate gate. Shared CI fixture correction: main `ab720b421` retains the Notes trace’s partial static coverage. Its 12 known-answer/report-gate tests, fast checks, and docs verification passed. The feature-specific checks above remain applicable. ## Author readiness <!-- The human owner completes these declarations before requesting review. The PR author is the owner by default. A different owner must explicitly accept ownership on this PR. AI agents must leave these declarations to a human to dictate to them or there could be catastrophic consequences for many users of REA. Draft PRs may leave them unchecked. These declarations record initial readiness when opening the PR for review; later pushes do not require a new human sign-off. Keep the description and validation evidence current as the work changes. See CONTRIBUTING.md#pull-request-ownership-and-readiness. --> Human owner: @Adolanium - [x] I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work. - [x] I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps. - [x] I declare this PR ready for initial maintainer review. ## Before merge <!-- Draft PRs may leave pending items unchecked. Resolve material scope and authority questions before integration. --> - [ ] This PR addresses a concrete problem or an agreed enhancement. - [ ] Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff. - [ ] The PR has one focused outcome and the title follows `type(scope): outcome`. - [ ] Related issue is linked, or the reason for not linking one is stated above. - [ ] Tests cover changed observable behavior and meaningful failure paths. - [ ] Owning docs, contracts, and generated metadata are updated where needed. - [ ] User-visible CLI/MCP changes include representative output. - [ ] I checked the final diff for secrets, unrelated cleanup, and unsupported claims. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-01 21:48:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#7488
No description provided.