Skip to content

fix: recover serialized native NIB view hierarchy - #782

Closed
rudycelekli wants to merge 2 commits into
morluto:mainfrom
rudycelekli:fix/rea-nib-view-hierarchy-20261006
Closed

rudycelekli wants to merge 2 commits into
morluto:mainfrom
rudycelekli:fix/rea-nib-view-hierarchy-20261006

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

Recover explicitly serialized NSSuperview and native NSWindowTemplate.NSWindowView relationships from compiled AppKit NIBs. The previous owner-root traversal omitted the actual view tree while reporting complete hierarchy coverage.

The bounded iterative projection preserves recognized legacy roots and merges shared object IDs once. Missing, unsupported, cyclic, conflicting and bounded links make hierarchy coverage partial and hierarchy_complete false; no parentage is inferred.

Verification

Signed DCO production head bfeaf5a694adf9010e603a586fd4d484c059313f is based on upstream 69be514c67c8b2eb8b450355a9782d9237748fda. Fresh all 22 open PR file inventories show no overlap; all 20 authored open PR feedback/threads/checks were freshly audited without actionable source feedback or conflicts.

  • Actual xcrun ibtool compiles ordinary, deep and window AppKit XIB fixtures. Before, the built public CLI omits all 5/41 native view links in ordinary/deep fixtures while claiming complete hierarchy.
  • Six native regression cases fail against original production source. Final focused run passes 32 tests across five files, including actual producer ordinary/deep/window cases, a native hierarchy beyond the depth bound, both view/window object-budget controls, and explicitly synthetic missing-parent/cycle/conflict/unsupported/retained-limit/record-bound/merge controls.
  • The actual built CLI and separate real SDK stdio MCP sessions recover all 5/41/6 encoded links for ordinary/deep/window fixtures and return identical results.
  • Required matching npm run verify:interface-builder passes with actual native ibtool and cc through the artifact provider.
  • npm run check: all five tasks pass, 125 existing lint warnings and zero errors. check:fast passes two cached tasks; SSH signature, DCO and diff checks pass.

The source XIB and compiler output establish the producer contract; ibtool --hierarchy cannot inspect these compiled NIBs and is not claimed as a positive oracle. The decoder still exposes only recognized serialized objects/relationships, with existing unknown-field limitations. Native proof is macOS AppKit only; no UI instantiation, target execution, model inference, Windows or deep-engine claim. No full check:pr or hosted-CI-green claim.

Latest upstream 4bfd8038be0a60c43a452bec15e23799a0b040c0 adds semantic/reference/prompt fixes and conformance documentation, with no changes to these files, their NIB graph/decoder callers, dependencies or policy. The fresh advance receipt is empty for those paths.

AI-assisted implementation and independent source review. Fixes #781. Refs #480 (compiled hierarchy only).

macOS CI regression coverage

Signed DCO maintenance head ed0fc101d27b394b7cccfc12e98629912b179817 adds an explicit focused step to the existing apple-artifacts job (macos-14), before the existing metadata/Interface Builder verifier:

npm run test:focused -- src/application/NibNativeHierarchy.test.ts

That exact local command passes all six actual native cases (ordinary/deep/window hierarchy, depth bound and both object-budget controls). Required check passes five tasks and check:fast passes two tasks. The new head's hosted checks are pending; the prior green production run is not proof that this new step has executed on GitHub. The separate plist-selection CI step in #773 is after the existing verifier, keeping the insertions independent. This is maintenance of the same fix, with no new PR or bug count.

Hosted macOS update: the new native regression step has completed successfully and the job log reports all six native NIB cases passed: https://github.com/morluto/rea/actions/runs/37514259153/job/112443092386. This verifies the updated step itself; remaining hosted contexts are audited separately.

@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated!

@morluto morluto closed this Oct 7, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiled AppKit NIB hierarchies omit serialized view parent links

2 participants