Improve Unity command discovery and preflight - #12
Draft
niqibiao wants to merge 1 commit into
Draft
Conversation
niqibiao
force-pushed
the
codex/command-routing-optimization
branch
from
July 24, 2026 15:50
025b2e0 to
c169627
Compare
niqibiao
force-pushed
the
codex/command-routing-optimization
branch
from
July 24, 2026 16:18
c169627 to
3d9b337
Compare
This was referenced Jul 24, 2026
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
args/argsJsontransport precedenceWhy
The previous flow exposed the full command registry and deferred malformed or ambiguous requests to Unity. That increased routing ambiguity and allowed avoidable no-ops or partial mutations. The new committed contracts make the default discovery surface smaller and reject invalid arguments, selectors, mutation sentinels, session requirements, and unsafe ranges before HTTP dispatch.
Self-comparison effect
On the local 89-case offline routing proxy, strict micro accuracy improved from 71.9% to 100% (+28.1 percentage points). The improvement came from route, payload, and exposure-policy accuracy; activation classification remained 20/20 before and after, so this PR does not claim an activation-recall lift. A guarded run launched through
UnityStart.cmdalso completed 12/12 live Unity tasks with independent read-back and cleanup.The local test files, comparison reports, and first-round research artifacts are intentionally not included in this PR.
Checks
git diff --check