Skip to content

refactor(apple): group artifact producers and verification - #952

Merged
N0zoM1z0 merged 3 commits into
mainfrom
refactor/apple-artifact-capability-owner
Oct 7, 2026
Merged

N0zoM1z0 merged 3 commits into
mainfrom
refactor/apple-artifact-capability-owner

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Group Apple artifact producer code, pure semantics and Evidence workflows under their actual owners. ArtifactProvider previously called application-layer helpers that owned assetutil, directory reads and NIB/plist decoding; those producer helpers now live in artifacts/apple. Related to #740.

Problem and expected behavior

Apple facts and verifier entrypoints were scattered, and producer acquisition/native-tool behavior sat in the application layer. Maintainers should find the producer boundary separately from pure Apple semantics and shared inventory Evidence projection, with existing CLI/MCP behavior and cleanup preserved.

Change and scope

  • Group 11 pure Apple domain files under domain/apple; retain the shared Apple inventory projection workflow under application/apple.
  • Group archive/NIB decoders and move the five producer/helper/test files from application into artifacts/apple. Preserve ArtifactProvider's existing typed boundary, injected assetutil seam and reader cleanup.
  • Group five real Apple verifier entrypoints under scripts/verify/apple and the macOS bundle fixture builder under scripts/fixtures/apple. Keep npm command names and existing format-specific fixture/golden locations.
  • Update imports, compiled references, fixture URLs, generated-document cache inputs and ownership documentation; guard the migrated producer owner against application/composition/caller dependencies.
  • Include the existing prototype-key and selection-failure plist CLI regressions in the same Apple job, covering seven affected macOS cases that the previous lane omitted. No new runner or job.

Contract and boundary impact

  • Semantic owner and earliest changed stage: internal source ownership and producer dependency placement; original function bodies remain unchanged.
  • CLI and MCP/tool-catalog contract: named contracts, handler binding and complete inventory unchanged; shared cross-domain contract aggregates retain their owners.
  • Provider, bridge, target-format, or platform compatibility: existing artifact analysis port and producer representation; no new provider interface or platform claim.
  • Evidence, artifact, provenance, or reconstruction contract: preserve identities, source ranges, raw producer metadata, unknowns, fixture bytes and failure reasons.
  • Process execution, authorization, cleanup, or containment impact: existing acquisition, assetutil invocation and owned reader/DMG cleanup unchanged.
  • Generated metadata, package, or installation impact: catalog and managed commitments remain byte-identical; internal paths change together, no dependency/version/installer change.

Evidence and regression coverage

  • Tests updated: original moved tests/imports and five producer dependency checks. Two helper tests now use the existing forked adapter project rather than the service project.

  • Base comparison: exact AST body, import-owner and file-URL review passed for 43 affected TypeScript/MJS modules against the frozen integration baseline.

  • User-visible CLI/MCP output: actual artifact inventory, archive encoding, Apple graph projection, Evidence and canonical/reordered SDK contract presentation retain their existing results.

  • Remaining proof gaps: the 21 locally skipped macOS cases now passed in the actual macOS 15 lane, within 28 cases across five suites. Real archive/asset/dispatch/bundle verifiers also passed. Native installed-package/Inspector baselines also passed on Linux/macOS x64/arm64 and Windows x64.

  • Observed, derived, and inferred claims remain distinguishable.

  • Artifact identity, source provenance and failed attempts remain preserved.

  • Unsupported, incomplete and uncertain outcomes remain visible.

Validation performed

  • All 26 checks passed at final head 1688624, including both macOS architectures, real Apple, Windows, browser/recovery and generated documents. Current-main integration preserves the complete upstream chained-fixup verifier and bridge-root/framework fixes.
  • npm run check -- --output-logs=errors-only: all five static gates passed.
  • npm run docs:check and npm run build:cached: fresh generated/build checks passed; 13 new compiled owners present, old paths absent, nine source test/fixture outputs excluded.
  • Exact focused Vitest selection: 247 cases passed across 34 selected suites after integration, with 21 macOS cases skipped; actual CLI/MCP, SDK schema dialects/examples and module guards included.
  • npm run verify:test-discovery: all 539 files discovered exactly once.
  • Real macOS 15 Apple CI: all five relocated verifier entrypoints passed; native NIB/bundle suites passed 14 cases and native plist CLI suites passed 14 cases, including all seven newly selected regressions.
  • Installed Turbo 2.11.7 dry-run inspection: all six relocated verifier/fixture runtime scripts appear in document-check inputs. Version-matched configuration guidance was followed.
  • npm run verify:package: installed CLI/MCP, inventory/analysis/Evidence workflows, configuration backups/recovery, lifecycle and update passed; 131 tools and six prompts. No owned descendants remained and the verifier tarball was cleaned. Sampled MCP peak RSS: 366120960 bytes; observed tools/list startup: 2301.28 ms, without a comparative performance claim.

Compatibility, safety, and release

  • Breaking changes or migration steps: internal imports and verifier/fixture paths move together; public npm commands and product contracts remain stable.
  • Real Hopper/Ghidra, browser, or OS coverage: no fresh local proprietary-engine claim; Linux format/boundary checks and actual CLI/MCP, with real Apple/native CI required before merge.
  • Package or release metadata impact: no dependencies or version changes; generated commitments remain unchanged.
  • Security, privacy, process, or containment review: final path/body and lifecycle review; bounded serial local lanes on two CPUs, one worker and one-GiB heap. No Windows disk writes or user GUI changes.

Review checklist

  • One coherent capability outcome and Conventional Commit title.
  • Tracking issue linked.
  • Tests cover producer boundaries and moved caller paths.
  • Ownership docs and generated-document inputs updated.
  • User-visible CLI/MCP and SDK presentation verified.
  • Final diff checked for secrets and unrelated changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T12:56:53.123488Z 1688624 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@N0zoM1z0
N0zoM1z0 merged commit ef1a0cc into main Oct 7, 2026
26 checks passed
@N0zoM1z0
N0zoM1z0 deleted the refactor/apple-artifact-capability-owner branch October 7, 2026 13:09
kaoru0822-kitauji added a commit that referenced this pull request Oct 7, 2026
Follow #952's Apple ownership: the Mach-O load-command reader, dylib
resolution adapter and fixture move to src/artifacts/apple/, the resolver,
dyld path semantics and findings to src/domain/apple/, and the dylib lane
helper to scripts/verify/apple/.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kaoru0822-kitauji added a commit that referenced this pull request Oct 7, 2026
Carry #952's Apple ownership into the cache work: the cache reader and
fixture move to src/artifacts/apple/, the cache facts, platforms and
resolution schema to src/domain/apple/, the cache service to
src/application/apple/, and the lane to scripts/verify/apple/.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kaoru0822-kitauji added a commit that referenced this pull request Oct 7, 2026
Follow #952's layout: the code-signature lane moves to
scripts/verify/apple/code-signature.mjs and uses the relocated bundle
fixture builder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kaoru0822-kitauji added a commit that referenced this pull request Oct 7, 2026
Follow #952's layout: the installer-package lane moves to
scripts/verify/apple/installer-package.mjs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
* refactor(apple): group artifact producers and verification

* test(apple): run affected native plist CLI regressions
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
Follow morluto#952's Apple ownership: the Mach-O load-command reader, dylib
resolution adapter and fixture move to src/artifacts/apple/, the resolver,
dyld path semantics and findings to src/domain/apple/, and the dylib lane
helper to scripts/verify/apple/.
@morluto morluto added enhancement New feature or request area: evidence Evidence, artifacts, and reconstruction labels Oct 14, 2026
Iyanuoluwa007 pushed a commit to Iyanuoluwa007/rea that referenced this pull request Oct 21, 2026
Carry morluto#952's Apple ownership into the cache work: the cache reader and
fixture move to src/artifacts/apple/, the cache facts, platforms and
resolution schema to src/domain/apple/, the cache service to
src/application/apple/, and the lane to scripts/verify/apple/.
Iyanuoluwa007 pushed a commit to Iyanuoluwa007/rea that referenced this pull request Oct 21, 2026
Follow morluto#952's layout: the installer-package lane moves to
scripts/verify/apple/installer-package.mjs.
Iyanuoluwa007 pushed a commit to Iyanuoluwa007/rea that referenced this pull request Oct 21, 2026
Follow morluto#952's layout: the code-signature lane moves to
scripts/verify/apple/code-signature.mjs and uses the relocated bundle
fixture builder.
@morluto morluto added the area: tests Test suite and verification label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction area: tests Test suite and verification enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants