Skip to content

add durable Unity test run contracts - #15

Draft
niqibiao wants to merge 3 commits into
codex/console-getfrom
codex/test-run-state
Draft

add durable Unity test run contracts#15
niqibiao wants to merge 3 commits into
codex/console-getfrom
codex/test-run-state

Conversation

@niqibiao

@niqibiao niqibiao commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a focused tests domain with core tests/run and tests/status contracts
  • validate mode, optional exact test names, array bounds, UTF-16 item length, runId, and wait range before HTTP dispatch
  • require the package's test_runs_v1 capability before claiming an invocation
  • mark tests/run direct-only so invalid batch requests fail locally without creating an outbox record or network request
  • add tests-only lifecycle guidance for recovering the same deterministic runId after a reload instead of starting a replacement run

Impact

A complex workflow can start one Unity Test run and use tests/status(waitSeconds=10) to wait for progress in fewer round trips. This reduces repeated polling output, token use, and context churn while preserving the same run identity across Unity reloads and uncertain acceptance responses.

Validation

  • focused batch and non-command capability preflight checks passed
  • offline tests-domain discovery returns exactly the two core contracts
  • live Unity 2022 registry and test_runs_v1 capability verified against companion package PR
  • live Edit Mode, Play Mode, long-poll, history, dirty-scene, replay, and uppercase runId workflows passed
  • local uncommitted suite: 50/51 passed; the only failure is PR Improve Unity command discovery and preflight #12's existing command-reference context-budget assertion, whose unrelated trim was deliberately removed from this PR
  • Python/JSON syntax and git diff --check passed
  • per scope, no test/eval/report files are included in this PR

Stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant