Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
morluto
added a commit
to XiaoBinGan/rea
that referenced
this pull request
Oct 12, 2026
Fold the complementary implementation from morluto#2256 into the earlier morluto#2248 proposal, retaining the original contribution history. Co-authored-by: Thang Luu <[email protected]>
Owner
|
Thanks @thangldw. Your producer-boundary normalization, shared recognized-key contract, budget accounting and CLI/MCP coverage are folded into the earlier active PR #2248 with coauthor credit (head 5198b8b), preserving the original contributor commit. Spec review also fixed non-resource field matches. All 49 focused tests plus full source/docs checks pass. Closing this duplicate so review continues on the original #2176 contribution. |
morluto
added a commit
that referenced
this pull request
Oct 12, 2026
* fix(apple): join recognized keys from NIBArchive field maps inspect-asset-catalog returned no resource-key matches for a decoded NIBArchive resource whose recognized image key is present in the archive. The NIBArchive projection groups an object's decoded fields under the node's nibValues attribute beside the class, label and ID it derives from the same archive, while the AppKit keyed-archive parser flattens the same fields onto the node. The catalog join read only the top level, so a recognized NSImageName on a decoded resource produced no row, and the empty-catalog limitation still claimed resource keys were reported as unmatched. Read an archive object's fields from both shapes, and give the namespace one owner by exporting NIB_VALUES_ATTRIBUTE from the projection that writes it. The recognized-field set stays in the catalog analysis, which owns that contract. Verified with 5 focused catalog tests, check:fast and verify:test-discovery on macOS arm64, and through the public CLI against the reported NIBArchive fixture. The keyed-archive control keeps its existing row, and a NIBArchive with only an unrecognized title still produces none. The ibtool-dependent native hierarchy lane requires full Xcode and was unavailable here. * fix(apple): normalize resource keys at the NIBArchive producer Fold the complementary implementation from #2256 into the earlier #2248 proposal, retaining the original contribution history. Co-authored-by: Thang Luu <[email protected]> * fix(apple): restrict catalog joins to parsed resource nodes --------- Co-authored-by: 吴佳浩 <[email protected]> Co-authored-by: morluto <[email protected]> Co-authored-by: Thang Luu <[email protected]>
2 tasks done
XiaoBinGan
pushed a commit
to XiaoBinGan/rea
that referenced
this pull request
Nov 2, 2026
Fold the complementary implementation from morluto#2256 into the earlier morluto#2248 proposal, retaining the original contribution history. Co-authored-by: Thang Luu <[email protected]>
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
Fixes #2176.
Asset catalog inspection dropped recognized resource keys from decoded NIBArchive objects. Normalize those keys at the NIBArchive producer so CLI and MCP retain the resource-key join, including its source node, archive path and digest.
Problem and expected behavior
A rooted NIBArchive containing an NSImage with
NSImageName: "Toolbar"was decoded correctly, butinspect-asset-catalogreturnedresource_key_matches: []. With no catalog, the result must instead contain an unmatchedNSImageName/Toolbarrow with no renditions. One matching rendition is matched; multiple matching renditions are ambiguous and retained.Change and scope
Share the existing recognized-field allowlist and nonempty scalar predicate in the domain layer. The NIBArchive producer exposes those fields directly while preserving the original
nibValuesrepresentation and charging added property/string occurrences to the decode budget. The catalog consumer continues to inspect direct fields; it does not reinterpret a keyed archive's authored nested dictionary namednibValues.Related open PRs discovered during the final update: #2248 and #2249 also address #2176. This implementation normalizes only the disjoint recognized scalar allowlist at the actual NIBArchive producer, rather than identifying format by the presence of an authored
nibValuesdictionary. The public keyed nested-dictionary negative control covers the resulting distinction; original nested data is retained.Contract and boundary impact
Expected effects:
Evidence and regression coverage
Added compiled CLI/real stdio MCP regression using the exact inert NIBArchive fixture from fix(apple): asset catalog inspection omits recognized NIBArchive resource keys #2176, with recognized alias, unrecognized title, keyed direct-field and keyed nested-dictionary controls. Assert exact source node/path/hash and adapter parity.
Original regression failed on main
59be866because the expected unmatched row was absent. The keyed nested-dictionary control also failed against the initial consumer-only repair; producer normalization resolves that false interpretation.Supplied assetutil metadata integration controls cover matched and ambiguous joins. Scalar-type, empty-value and arbitrary nested-field controls remain conservative.
Independent subagent review found the nested keyed-dictionary risk; after repair, independent re-review reported no actionable findings.
Remaining proof gaps: new resource-key fixtures are synthetic inert format bytes. Supplied metadata does not establish validity of a real Assets.car or native assetutil behavior for this fixture.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
Node 24.18.0 / npm 11.16.0, macOS arm64, updated onto main
d96550fwithout conflicts:npm run check: passed typecheck, lint, formatting, knip, metadata, module boundaries and architecture guards.npm run docs:check: passed generated-document checks and README consistency tests.npm run verify:test-discovery: all 947 test files discovered exactly once.git diff --check: passed.Compatibility, safety, and release
Before merge
type(scope): outcome.