Skip to content

perf(artifacts): isolate offline session composition from deep providers - #15194

Merged
vincentkoc merged 2 commits into
morluto:mainfrom
ShuaixinHuang:perf/artifact-session-composition
Nov 30, 2026
Merged

vincentkoc merged 2 commits into
morluto:mainfrom
ShuaixinHuang:perf/artifact-session-composition

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refs #15080. A successful one-shot inspect-artifact on a ZIP loaded the deep-provider composition module even though the command uses an empty deep-provider registry. That module imports Hopper, Ghidra, IDA, and Kuna.

Move artifact-only session and path inspection composition to their own module. The CLI and the path-selected comparison bindings use that module. Deep, native, and artifact composition continue to share the same bundle-resource factory. The CLI registrar work in #15100 is separate.

Evidence and regression coverage

  • The compiled CLI ZIP regression observes binary-composition on base ba90eb225 and artifact-session on this change. The deep-provider positive control passed.
  • Compile, architecture guards, module boundaries, and commit hooks passed. Generated MCP catalogs matched byte for byte.
  • 107 of 108 focused tests passed, including ZIP startup, ZIP and directory CLI/MCP comparison, artifact inspection and extraction parity, bundle resources, and cleanup. The single decompile_all failure (failure.error parity) also reproduced in an isolated run on the unchanged base.
  • Synthetic local fixtures on Linux x64 with Node 24.22.3. No real deep-provider runs or end-to-end CI runner-minute measurements.

Completed ZIP inspection

One local ZIP containing hello.txt, compiled public CLI, five measured alternating pairs after one discarded pair per mode, with identical stdout and stderr for all 24 successful invocations. Cold disables the Node compile cache. Warm uses separately primed caches. CPU and RSS are from Linux wait4 for the CLI child, with no process-family or cross-platform claim.

Node compile cache Wall time CPU time Peak RSS
Disabled 1.524 → 1.504 s 2.018 → 1.978 s 240.3 → 232.8 MiB
Warm 1.470 → 1.246 s 1.969 → 1.716 s 281.6 → 259.3 MiB

The cold wall-time difference is small. These measurements characterize one small ZIP on this host.

Existing contracts, Evidence, target admission and cleanup are exercised through the same operations. Existing workflow reads files. This layout change adds no target interaction.

Author readiness

Human owner: @ShuaixinHuang

  • 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.

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 30, 2026 09:33
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T09:33:20.028499Z
We couldn’t complete this review. Comment @codex review to try again.
18557d2 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; the previous broken import is fixed.RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; the previous broken import is fixed.

Summary

Moves artifact-only session and path composition into artifactSession.ts, keeping offline artifact commands separate from deep-provider imports.

  • Artifact inspection uses its own composition path.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  CLI["Direct CLI analysis"] --> Artifact["artifactSession.ts"]
  Compare["CLI and MCP path comparisons"] --> Artifact
  Artifact --> Shared["bundleResources.ts"]
  Binary["binary.ts: deep and native sessions"] --> Shared
Loading

Reviews (2) · Last reviewed commit: "test(mcp): use the artifact session fact..." · Reviewed by Greptile

Comment thread src/composition/artifactSession.ts Resolved
@vincentkoc
vincentkoc merged commit aa01be1 into morluto:main Nov 30, 2026
45 checks passed
vincentkoc added a commit to WoWHellgarve-HolyDeeW/rea that referenced this pull request Nov 30, 2026
* commit '7f7d34ad7c30a5fe015b642118dd40e8e9ac093d': (167 commits)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  fix(nro): exclude ASET header bytes from asset ranges (morluto#15185)
  ...
vincentkoc added a commit to XiaoBinGan/rea that referenced this pull request Nov 30, 2026
* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (173 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
vincentkoc added a commit to ShuaixinHuang/rea that referenced this pull request Nov 30, 2026
* commit '4ca43e2cb20f0edd86cdbf315a9c99c7b9b87468': (34 commits)
  fix(paths): reject Windows console device names (morluto#14972)
  fix(artifacts): classify member presence from the absent side coverage (morluto#15200)
  fix(tar): account for retained pax owner names (morluto#15195)
  fix(conformance): validate paired fixture count expectations (morluto#14125)
  fix(nds): report unreachable file name directories (morluto#15192)
  refactor(firmware): share admitted-file decoder buffering (morluto#15198)
  fix(binary): carry the runtime refusal's repair instruction in remediation (morluto#14123)
  fix(agentenv): reject COM0 and LPT0 bundle names (morluto#14971)
  test(environment): share the loopback capture fixture (morluto#15196)
  perf(png): reconstruct scanlines with one filter dispatch (morluto#11818)
  feat(iso9660): stream files across separated extents (morluto#15190)
  perf(apple): build only the requested asset catalog page (morluto#14032)
  perf(artifacts): isolate offline session composition from deep providers (morluto#15194)
  perf(evidence): bound investigation closure worklist by depth (morluto#15193)
  perf(audit): avoid copying complete log lines (morluto#15184)
  test(mcp): share server result readers (morluto#15174)
  fix(android): declare Android mapping and JNI fixed allowances (morluto#15183)
  fix(artifacts): retain deep comparison source chains (morluto#15191)
  perf(evidence): bound link inspection frontier by records (morluto#15189)
  perf(evidence): retain snapshots across duplicate imports (morluto#15186)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants