Skip to content

refactor(native): group analyst semantics workflows and contracts - #973

Merged
N0zoM1z0 merged 1 commit into
mainfrom
refactor/native-capability-owners
Oct 7, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
refactor/native-capability-owners

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Organize existing native analyst semantics, workflows and contracts for #740. Their flat layer roots obscured the distinction between reusable analyst meaning and native provider/host implementations.

Problem and expected behavior

Keep portable native facts and shared CLI/MCP workflows easy to locate while retaining exact producer interpretation, profile/Evidence identity, named contracts and platform authority. This is a mechanical capability increment before any further contract generalization.

Change and scope

  • Move 15 pure domain files to domain/native, nine workflow/test files to application/native and the named native contract to contracts/native.
  • Update all source and compiled catalog/verifier consumers. Keep native, Hopper/Ghidra/IDA implementations, shared dossier/official/enhanced contracts and host-verifier entrypoint locations at their existing owners.
  • Add two existing Swift-demangling regression suites (three cases) to the existing Apple CI job, covering the host-only proof gap affected by the contract move. No new runner/version/job. Document source/test ownership.

Contract and boundary impact

  • Semantic owner and earliest changed stage: internal module ownership/import resolution.
  • CLI and MCP/tool-catalog contract: unchanged names, ordering, schemas and output meaning.
  • Provider, bridge, target-format, or platform compatibility: unchanged code bodies and typed ports; no expanded support claim.
  • Evidence, artifact, provenance, or reconstruction contract: preserved identity, profiles, locations, derivation and unknowns.
  • Process execution, authorization, cleanup, or containment impact: unchanged; no new user options or permission fields.
  • Generated metadata, package, or installation impact: generated commitments byte-identical; 18 new compiled owners replace the old paths, seven source test outputs excluded.

Evidence and regression coverage

  • Exact AST/import/file-URL review confirms all 66 affected TS/MJS modules preserve implementation/assertions after mapping paths.
  • 274 focused cases passed across 23 selected suites, including native graph/call routes/API projection, actual SDK schemas and reordered bindings, CLI/MCP/provider selection and IDA contract conformance. Three real macOS Swift cases skipped locally and selected in Apple CI.
  • Remaining proof gaps: no fresh proprietary Hopper/IDA or interactive macOS UI run. The real native-value and NativeAOT verifier imports change mechanically; module resolution is checked, but no fresh full dependency-trace/NativeAOT claim is made.

For evidence-bearing changes:

  • 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

  • Five static gates and fresh docs/build checks passed; generated catalog and managed commitments unchanged.
  • All 554 test files discovered exactly once, including moved domain/service suites.
  • Compiled owners/old-output exclusion and native-value verifier module export resolution passed. YAML/selected test paths validated.
  • Actual existing Linux Ghidra 12.1.4/JDK: CLI plus six MCP operations, decompilation, file-byte oracle, caller-entry preservation and cleanup passed. Source-owned fixture was analyzed without execution. Two-CPU owned-family sampled peak RSS 1064628224 bytes; no surviving processes.
  • npm run verify:package: isolated installation, CLI/MCP analysis/Evidence, setup/backups/recovery/update and lifecycle passed; the frozen baseline catalog retains 133 tools/six prompts. No owned descendants remained; temporary tarball cleaned. Sampled MCP RSS 377606144 bytes, observed tools/list 2211.31 ms, without a comparative performance claim.
  • All 24 CI checks passed at head 4649625, including real Apple/Swift and both macOS native package/Inspector baselines, Linux architectures, Windows, source/coverage and actual JavaScript recovery. Real macOS executed all three demangling cases in two suites (31 NIB/plist/demangling cases total).

Compatibility, safety, and release

  • Breaking changes or migration steps: internal module/compiled paths migrated together; public npm entrypoints and caller contracts stable.
  • Real Hopper/Ghidra, browser, or OS coverage: real bounded Linux Ghidra as above; other real host/engine claims retain their matching lanes.
  • Package or release metadata impact: no dependencies/version changes; no generated commitment drift.
  • Security, privacy, process, or containment review: serial heavy lanes, two CPUs, one worker, one-GiB Node heap and bounded Ghidra supervision; no Windows disk writes, installations or GUI changes.

Review checklist

  • One capability increment and Conventional Commit title.
  • Tracking issue linked.
  • Existing assertions/producer boundaries and public CLI/MCP meaning preserved.
  • Owning docs, compiled consumers and host-specific CI selection updated.
  • Final diff checked for private paths, unrelated changes and unsupported claims.

@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-07T14:19:51.851731Z 4649625 PR opened
ℹ️ 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 ea4db4c into main Oct 7, 2026
24 checks passed
@N0zoM1z0
N0zoM1z0 deleted the refactor/native-capability-owners branch October 7, 2026 14:40
kaoru0822-kitauji added a commit that referenced this pull request Oct 7, 2026
Follow #973's native ownership: the call-observation schemas move to
src/domain/native/, and the contract now lives in src/contracts/native/.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kaoru0822-kitauji added a commit that referenced this pull request Oct 7, 2026
Follow #973's native ownership: the code-signing posture schemas move to
src/domain/native/ beside nativeInspection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
Follow morluto#973's native ownership: the call-observation schemas move to
src/domain/native/, and the contract now lives in src/contracts/native/.
@morluto morluto added enhancement New feature or request area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Iyanuoluwa007 pushed a commit to Iyanuoluwa007/rea that referenced this pull request Oct 21, 2026
Follow morluto#973's native ownership: the code-signing posture schemas move to
src/domain/native/ beside nativeInspection.
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 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants