Repository navigation
perf(runtime): reduce model-facing status and discovery cost - #695
Merged
Merged
Conversation
yyjeqhc
force-pushed
the
feat/model-call-economy
branch
from
September 26, 2026 12:09
7a093ff to
1b4c029
Compare
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
runtime_statussparse by default while preserving canonical/API full diagnostics and explicitcompact=falseopt-intools/listpresentation copies; canonical ToolSpecs and ToolRuntime validation remain unchangedlist_jobs,stop_job,run_detached_process,transfer_project_artifact) behind the existingtool_manifest+call_runtime_toolgatewaydocs/agent/model-call-economy-audit.mdReview fix
tool_manifest(tool_name="runtime_status")with MCP's actual omission behavior: its MCP presentation now reportscompactdefaulttrue, using the same projection helper astools/list, while the canonical/API schema still reports and executes the full defaultRuntime status fixture results
The previously observed deployed baseline was 36,811 / 12,220 / 3,522 B; this branch has not been deployed, so those are not presented as post-change production measurements.
MCP compact tools/list
Validation
cargo test -p webcodex-tool-contracts: 239 passedcargo test --lib -p webcodex: 2980 passed, 0 failed, 3 ignoredcargo check --all-targets --all-features -p webcodex -p webcodex-tool-contracts -p webcodex-runner-registry: passedtools/listserialized-size budget: passedcargo fmt --all -- --check: passedgit diff --check: passedExisting warning only:
ObservedRunnerRequest.loginis unused in the Code Mode test fixture.