Repository navigation
feat(artifacts): triage desktop installation directories - #5207
Conversation
Codex Review SummaryThis 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. |
[Medium impact] The PR appears safe to merge; no new blocking issue was found. SummaryAdds shared static inspection of desktop installation directories through CLI and MCP.
The merge bases differ, so this review used the full PR diff as the change scope. No new actionable issue was found. Tests were not run during this review. GitHub access required authentication, so whether another PR supersedes this one could not be confirmed. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[CLI or MCP] --> B[Shared desktop service]
B --> C[Bounded directory and header reads]
C --> D[Complete Evidence]
D --> E[Runtime candidates and next operations]
D --> F[Summary and selected pages]
D --> G[Explicit CLI report export]
Reviews (10) · Last reviewed commit: "fix(artifacts): admit desktop facts befo..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e06e483408
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 73309be87c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4c31961b84
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77d36a80f8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 361585e610
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 79759304d1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 26a0e48696
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
…ansition-view Resolve conflicts with main's desktop-application view (morluto#5207) by keeping both view kinds in the inspect_analysis_view tool description and the inspect-analysis-view CLI command description. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Fixes #4399. Add
inspect_desktop_application/inspect-desktop-applicationto triage a desktop installation directory before choosing individual binaries or archives.One shared application service provides typed file/header facts, runtime candidates, component markers and concrete next operations. MCP defaults to a compact retained summary;
inspect_analysis_viewprovides batched IDs, filters, exact fields and pages. Complete Evidence remains accessible. CLI compact output requires an explicit Evidence file.Electron probes now select the exact ASAR with
open_binarybeforeinspect_artifact, so following a directory result works with no selected target or a different active archive. The producer supplies the selection operation; the unused desktopinspect_artifactprobe alternative is removed.Partial summaries now include
probe_issuescounts and two bounded file/reason previews. File views accepthas_issueswith the existing ID/path selectors, fields and paging, preserving complete reasons and parent Evidence. Counts reuse the path-index pass; preview formatting does not re-read targets or change source facts.Snapshot digests now compose admitted root, entry and omission identities plus retained read ranges. Caller ceilings, interpretations and cleanup diagnostics remain in Evidence without changing identical source identity. Different retained source observations still change the digest.
Fact capacity admission counts JSON representation bytes without serializing target strings first. It reuses the existing escape/Unicode counter; complete accepted names and prior header facts survive, while refused facts retain an explicit partial-capacity reason.
Contract and effects
DirectoryArtifactReaderadmission/cleanup owner. Physical root identity namespaces stable rows; preserve caller paths, identities, read-range digests, omissions, provenance and unknowns. Snapshot identity covers examined metadata/ranges; unread bytes and atomicity are not claimed.Expected effects:
Executed validation
Head
91631fe0f, including main10f1994feand merged CI repairs #5224 / #5249.has_issues: false, source partial coverage and parent links. Unicode previews stay bounded without splitting surrogate pairs; complete caller-provided reasons and empty ID selections remain preserved. Both input and output schemas validate after SDK conversion.dotnet+unity-mono, 649 entries / 603 probes / 1,050,489 bytes read. Real FAT64 IL2CPP application coverage is unavailable.open_binaryprobe → compact ASAR inspection → retainedpackage.jsonpage. Independent ASAR SHA-256e774918ef645a0d95dedb334a5cc92d202f500130ebd3f8be173e0702d274477, correct parent links, 21,441 nodes / 22,959 occurrences / 22,958 edges, complete coverage, zero integrity contradictions and no retry. A later fresh run hit the SDK's 60-second request timeout during ASAR inspection; its failure is retained. Two matched baseline/current pairs subsequently completed with identical archive facts and no retries. The timeout cause remains unestablished.Final
91631fe0fcompiled CLI repeats also pass: MarkText low/high limits preserve the same 134 files/ranges/digest and distinct Evidence parameters; macOS Daggerfall preserves all 649 file IDs, facts/ranges, complete coverage, 603 probes / 1,050,489 bytes and both families.Downloaded applications were statically inspected and never executed. Native Windows/macOS desktop filesystem behavior, live target runtime behavior and real Unreal/GameMaker/IL2CPP installations remain unverified locally. Earlier extended controls and official Daggerfall Linux/macOS and Godot scans at
0c8ba3070are historical evidence, not additional current test totals.Completed-task costs
Heavy local work is serialized on two CPUs, with a 3 GiB V8 cap and an 8 GiB sampled process-family guard:
MarkText uses a fresh MCP process with Node compile caching disabled; OS caches and host load are uncontrolled. Discovery takes 5.87 s; calls take 14.11 / 0.49 / 36.41 / 3.74 s. The retained page reuses immutable Evidence; directory scans remain live. The whole command includes an independent streaming oracle hash. RSS uses 20 ms sampling and can double-count shared pages or miss brief/reparented children. The four-call task and paired measurements precede the snapshot-only hash correction; they measure the diagnostic-summary change. Two matched baseline/current pairs use the same target, pinned toolchain, two-CPU/heap limits and fresh SDK processes. Before: 42.51 / 52.45 s wall, 46.81 / 45.69 s CPU, 1,343 / 1,238 MiB RSS. After: 41.25 / 56.11 s wall, 46.41 / 43.57 s CPU, 1,266 / 1,172 MiB RSS. Both versions return identical archive digest, counts, complete coverage and zero contradictions. These samples do not establish a consistent latency change. No speedup is claimed; the separate 60-second timeout remains an unsuccessful observation.
Tokenx estimates, not model usage: selected tool declarations plus all four request/SDK responses total 19,960 tokens. Including discovery gives 236,725 with every input declaration, or 989,788 with the entire catalog wire response. The catalog alone is 3,211,351 bytes / 981,743 estimated tokens, including output schemas; all input declarations estimate 228,680. Compared with the successful pre-diagnostic workflow at
77d36a80f, the completed input-declaration/request/response task adds 89 estimated tokens; full catalog wire accounting adds 701. These totals include shared catalog discovery.Capacity-fix A/B uses
527a1244aand91631fe0fon the same synthetic directory: twelve valid managed PEs, each with a 600,000-control-character AssemblyRef, 36 entries / 12 probes / 7,210,800 bytes. All four CLI tasks return identical complete normalized reports, explicit partial-capacity reasons and no invented Unity witness. Before: 2.15 / 2.48 s wall, 2.34 / 2.49 s CPU, 388 / 395 MiB RSS. After: 2.62 / 2.76 s wall, 3.11 / 3.16 s CPU, 316 / 344 MiB RSS. Each CLI request plus full response estimates 9,360 tokens (33,097 response bytes), with no discovery or retry. These samples show lower peak memory with extra CPU on this extreme input; no speedup is claimed. Each uses a fresh process, compile cache disabled and the same resource limits; OS caches/host load are uncontrolled, and there is no live directory-result cache. The baseline cached build separately took 0.96 s; build/dependency installation and agent orchestration/model usage are outside these CLI task measurements.Historical Daggerfall measurements at
0c8ba3070compare complete SDK responses (304,279 estimated tokens) with compact summary (3,133) and selected page (2,766). Those are payload estimates, not measured model usage or latency savings; catalog and extra-call costs also apply. Small targets need not benefit from summary overhead.Public static artifact provenance
be3c476ae92972f42448757719266ad82c04868eb7b6f3a3c90fcfcf1490849a:dotnet+unity-mono, 642 entries / 129 probes / 1,223,208 bytes read.1edc4dd594b61686e187b84d99e295074670f07e3d308c29caa3378b6368bf56: both families; all 649 file IDs preserved after the layout correction.ff0b907fb84d066316b27b3b54f2ad9f9f6b4e67c06c4d9aea739ef3be80d9d3, checked against official SHA256SUMS.989666e8c4619bc4022903cfb58fd29d88b881a136452952a3df06b8cf99ad70: a pack-header candidate.Author readiness
Human owner: @gensokyo-dev
At the owner's explicit direction, the agent performed and supplies the diff/evidence review and declarations below. The owner authorized ready PRs and merging without a separate personal final-diff review; no personal human diff review is claimed.
Before merge
type(scope): outcome.