Repository navigation
Conversation
Contributor
[Medium impact] The reviewed changes appear safe to merge, with no actionable defects found. SummarySeparates
No actionable correctness or security issues were found. Tests were not rerun. Supersession could not be confirmed because GitHub access required credentials. Acknowledged scope: @Sonai124 explicitly defers per-operation service composition and first MCP call startup to #15080. Loading the shared Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
Loader["CLI loader"] --> Registrar["Inspection registrar"]
Registrar --> Contract["Canonical inspection contract"]
Registrar --> Runner["Existing session-target runner"]
Catalog["MCP artifact catalog"] --> Contract
Runner --> Runtime["Shared DirectAnalysis runtime"]
Other["Other artifact commands"] --> Broad["Existing artifact registrar"]
Reviews (1) · Last reviewed commit: "perf(cli): isolate inspect-artifact regi..." · Reviewed by Greptile |
This was referenced Nov 30, 2026
This branch has not been deployed
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
Refs #15080. Give
inspect-artifactits own lazy CLI registrar. Previously, starting an inspection registered the rest of the artifact command group and evaluated its contracts, including artifact comparison.Change and scope
The CLI registrar and the MCP catalog use the same canonical inspection contract, including the input and Evidence output schemas. Inspection and extraction share their existing target and option declarations. The full registry keeps the original command order.
The command uses the existing artifact analysis, Evidence delivery, and cleanup paths. Successful inspection still loads the shared
DirectAnalysisruntime. Per-operation service composition and first MCP call startup remain open in #15080. The adjacent #14759 concerns AnalysisView imports in the comparison runtime.Evidence and regression coverage
The compiled import test checks that
inspect-artifact --schemaloads the canonical inspection contract without loading the broader artifact registrar, comparison command, or output-schema group. Extraction provides the positive control. The generated MCP catalog and recorded catalog digests matched the base byte for byte. Root help and inspection help, schema, and--llmsmatched as well.Startup measurements
Compiled base
4dafa3a58eand candidate, Node 24.22.1, Ubuntu 24.04 x64 under WSL2, 12 logical CPUs. Each row is the median of five alternating A/B process pairs. Cold disables the Node compile cache. Warm primes a separate cache for each build and workload. Linux cgroup v2 accounts for process-family CPU and peak memory, including charged file cache.inspect-artifact --schemainspect-artifact --schemaThe separate cold import trace counted 307 → 159 CLI chunks for schema discovery and malformed-limit refusal. A successful ZIP inspection loaded 439 → 440 chunks and 11.84 → 11.69 MB of compiled modules. Its V8 profile still showed shared runtime initialization in
DirectAnalysis.All 80 pairs matched CLI stdout, stderr, and exit status or MCP JSON-RPC response bytes, as applicable. MCP diagnostic logs matched after excluding per-call timestamps and elapsed time.
CLI controls, repeat measurements, and MCP phases
--version--versionThe full matrix used a shared dependency tree reached by a symlink from the candidate. A repeat gave both builds the same directory layout with hard-linked dependency files. Cold ZIP inspection measured 2004 → 1904 ms wall, 2625 → 2444 ms CPU, and 267.9 → 218.6 MiB peak. Cold JavaScript measured 1594 → 1638 ms wall (+2.7%) and 1926 → 1956 ms CPU. Individual pairs varied in both directions. The baseline compared with itself measured 1611 → 1640 ms wall. These samples leave the cold JavaScript difference inconclusive.
The full profile lists 274 tools. Hot-cold initially lists five tools. It discovered the target tool in 9–10 ms and refreshed the list in 2–3 ms before the first analysis request. Total wall time includes stdio shutdown.
Validation performed
npm run compilepassed on base and candidate.npm run typecheck,npm run lint, andnpm run verify:architecture-guardspassed on the candidate.Author readiness
Human owner: @Sonai124