Repository navigation
refactor(application): read the host from HostPlatform in the remaining application modules - #11124
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
morluto
force-pushed
the
refactor/host-platform-client-config
branch
from
November 15, 2026 12:55
fdbba49 to
6bf7c55
Compare
morluto
force-pushed
the
refactor/host-platform-application-rest
branch
from
November 15, 2026 12:56
e447c85 to
d1edca4
Compare
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryThis PR moves the remaining application host reads to
Reviews (1) · Last reviewed commit: "refactor(application): read the host fro..." · Reviewed by Greptile |
19 tasks
morluto
force-pushed
the
refactor/host-platform-application-rest
branch
from
November 15, 2026 13:06
d1edca4 to
8ac7bc0
Compare
morluto
changed the base branch from
refactor/host-platform-client-config
to
main
November 15, 2026 13:31
…ng application modules Scenario planning and plan Evidence take a required platform. Host file operations (target resolution, output trees, Windows spelling lookup, executable checks, native snapshot admission), the Linux distribution read and the process CLI adapter read HOST_PLATFORM explicitly. ByteEntropyService takes an optional platform seam, so its Windows casing test injects win32 instead of stubbing process.platform. src/application no longer reads process.platform or process.arch.
morluto
force-pushed
the
refactor/host-platform-application-rest
branch
from
November 15, 2026 13:52
8ac7bc0 to
f8c59f5
Compare
This was referenced Nov 15, 2026
Merged
Merged
Merged
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
HostPlatform migration (W8), src/application slice 3: the remaining application modules stop reading
process.platform/process.arch. After this, src/application has no ambient host reads. Stacked on #11120.Problem and expected behavior
Fourteen reads remained in src/application (BinaryTargetResolver, LinuxHopper, desktop, environment, binary, binaryDiagnostics, javascript, process, reverse). Two were defaults on pure helpers (
prepareProcessScenarioPlan,createProcessScenarioPlanEvidence), so a caller could silently fall back to the host; the rest are host file or process operations that should name the host explicitly.ByteEntropyService.test.tsstubbedprocess.platformto exercise its Windows casing branch.Change and scope
platform:prepareProcessScenarioPlan(scenario, environment, platform, signal?)(itsenvironmentdefault is dropped too, so no defaulted parameter precedes the platform) andcreateProcessScenarioPlanEvidence(scenario, platform). Every caller already passed both.HOST_PLATFORM: target resolution's Windows source path and host architecture default (BinaryTargetResolver), the Linux distribution read (LinuxHopper),SafeOutputTreeroots (desktop builds and solves, desktop output tree, environment bundle write), Windows native snapshot admission (AnalysisSnapshotCache), the Electron executable check, the process-ownership recovery fallback (ReverseEngineeringService) and the process CLI adapter (ProcessCli).ByteEntropyServicetakes an optionalplatformconstructor seam (defaultHOST_PLATFORM.platform); its Windows casing test injects"win32"instead ofvi.spyOn(process, "platform", "get").process.platform/ -2process.archreads; -1 test stub (ByteEntropyService.test.ts) intest-host-platform-stub(refactor(android): take the host in JADX configuration, doctor and workspace roots #11086).src/server/registerSessionTools.ts(passesprocess.platformto the scenario planner; moves with src/server).Contract and boundary impact
src/platform/HostPlatform.HOST_PLATFORM).docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
ByteEntropyService.test.ts(reads an admitted file even when Windows casing lookup is unavailable) injects the platform.Validation performed
npx tsc --noEmit -p .— passed.node scripts/verify/architecture-guards.mjs --shrink-baselines— passed; baselines lowered.npm run test:focused --LinuxHopper, LinuxHopperPublisher, AnalysisSnapshotCache, ByteEntropyService, DesktopBuildComputers.cleanup, DesktopBuildSolves, DesktopOutputTree, environmentBundleWrite, ElectronActiveObservationService, ProcessScenarioPreparation andtests/boundary/process/ProcessEvidence.test.ts— 11 files, 206 passed, 1 skipped;src/ghidra/GhidraDolProfile.test.tsandsrc/application/binary/LazyAnalysisProvider.test.ts(target resolution) — 17 passed.check:fast) — passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.