Repository navigation
feat(wasm): add opt-in first-call summary delivery - #2193
Merged
Merged
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. |
34 tasks done
Base automatically changed from
feat/compatibility-first-analysis-20261012
to
main
October 12, 2026 13:17
Retain complete original WASM Evidence and return its exact typed summary on explicit MCP detail selection. Preserve omitted/complete requests, provider parameters, source IDs, existing CLI output and cleanup authority. Reuse retained views for selected exports without intentionally overflowing transport first. Add two digest-verified published VS Code Tree-sitter inputs, a shared interface question and a schema-discovered measurement path. Full static/docs checks and 54 focused assertions pass; repeated real-artifact/model performance remains to be measured. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Resolve SDK-generated JSON Schema references through the declared 2020-12 validator before selecting summary delivery. Archived live catalogs reject summary on the control runtime and accept it on the candidate. Earlier repeated runs did not select the new delivery path and are excluded from benefit claims. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Pin the reviewed control and candidate runtime fingerprints, all nine successful paired SDK fact/source-ID comparisons, complete call/error accounting, and delivery/time/CPU/memory observations. Preserve slower and variable outcomes, schema-detection false starts, static memory-high events and the distinction between bytes and model tokens. Detailed generated receipts stay outside Git; real-model verification is pending. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Record all ten selected-fact/source/profile checks, reported cached and uncached token usage, call/error accounting and descriptive answer times. Preserve increased VS Code latency and SQLite uncached input instead of claiming universal speedups. Regrade existing answers after the resource-counter correction and mark final resource conditions unverified without repeating analyzer/model runs. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Rebase onto latest main after #2122 merges. Seven relevant WASM MCP workflows and one fresh real-WABT SQLite SDK request pass, preserving selected facts and original source identity. Keep original cohort fingerprints and counter qualifications; do not repeat unrelated provider/model/package tests for this integration. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
N0zoM1z0
force-pushed
the
feat/wasm-summary-delivery-20261012
branch
from
October 12, 2026 13:30
bf64e90 to
030899a
Compare
3 tasks done
4 tasks
16 of 22 tasks
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
Let a WASM interface/count question request
inspect_wasm_artifact detail: summaryon its first MCP call. Keep omitted/complete requests and CLI output complete, retain the original Evidence, and read selected exports through the existing parent-linked views. Refs #2016.Prerequisite #2122 is merged at
58fb372071e56da9c5df0e37593ee3f0da6b64bc. This branch is rebased onto latest fetched main and targets main directly. This PR contains the bounded first-call delivery increment, not the whole analysis-efficiency roadmap.Problem and expected behavior
The existing SQLite/CSS workflow first completes analysis, hits the MCP response ceiling, then reads retained summary and export views. A fitting Tree-sitter runtime reply can still deliver 6.43 MB when the question needs counts and four exports. Explicit summary delivery should return those metadata first without changing provider inputs or original source identity.
Nine real paired SDK comparisons preserve selected facts and complete source IDs. For the published VS Code Tree-sitter runtime, summary plus exact exports returns 18,891 bytes versus 6,433,872 bytes (about 99.7% less). These are result JSON bytes, not model tokens.
Ten actual Codex CLI trials preserve the 12 requested producer facts, real source references and profile cleanup. Three SQLite pairs report median total input 96,832 → 79,264 and answer time 61.521 → 55.656 seconds; median uncached input increases. The two VS Code single pairs reduce total input but take longer. These observations support optional smaller delivery, not uniform speedup or a statistically established causal effect.
Change and scope
Contract and boundary impact
detail: complete|summary; omitted and explicit complete preserve original behavior. CLI stays complete. Complete catalog grows 3,369 JSON bytes (about 0.14%). Clients discover actual schemas, including SDK-generated references.Representative request:
{"name":"inspect_wasm_artifact","arguments":{"path":"/artifacts/module.wasm","detail":"summary"}}Use the returned
normalized_result.parent_evidence_idforinspect_analysis_viewwithview: {"kind":"wasm","facet":"exports","offset":0,"limit":4}. The complete source remains retained.Evidence and regression coverage
Executed: three alternating paired public-SDK trials per shipped module; three SQLite model pairs and one pair for each VS Code component, requested
gpt-5.6-terrahigh through Codex CLI 0.161.0. Requested alias does not prove resolved server-side model identity.Tests: exact SDK-converted 2020-12 schemas; old/default/complete requests; delivery stripped before production; same source identity; summary/export continuation without provider rerun; invalid WAT digest; fixed-server missing retention.
Proof gaps: small stochastic model sample, uncontrolled remote/cache latency and Linux-only WABT scope. This does not prove whole application/runtime behavior or other provider/OS domains.
Resource qualification: cohorts used last-sampled counters. Regrading all ten existing answers after feat(analysis): add opt-in retained inventory and WASM views #2122's counter-closeout correction preserves facts/IDs/cleanup but marks final resource conditions unverified. Active controls were one CPU, 4 GiB hard/3 GiB early-stop, no swap; observed model peaks 656–944 MiB. No absent-late-event or fully resource-qualified performance claim is made. Review-only corrections do not rerun unrelated model/provider/build tests.
Observed, derived and inferred claims remain distinguishable.
Artifact identity, source provenance and failed attempts remain preserved.
Unsupported, incomplete, unavailable and uncertain outcomes remain visible.
Validation performed
build:cached,check:fast,docs:check, 29 focused assertions across WASM MCP/service/schema files, andverify:wasm:packagepassed (42 actual WABT CLI/MCP cases after private-prefix installation).build:cached,check:fast, seven WASM MCP workflows passed again after carrying the substantive source-identity fixes.measure.mjs/compare.mjs: 9/9 paired fact/settings/source-ID comparisons pass; actualagent-trial.py/ factual review: 10/10 selected answers pass, with final resource conditions separately unverified.Complete pinned methods, failures, usage, timing and scope.
Compatibility, safety, and release
Review checklist