Skip to content

minor: add conformance and async lifecycle support#13

Merged
manavanandani merged 9 commits into
mainfrom
codex/conformance-suite-v1
Jul 1, 2026
Merged

minor: add conformance and async lifecycle support#13
manavanandani merged 9 commits into
mainfrom
codex/conformance-suite-v1

Conversation

@manavanandani

@manavanandani manavanandani commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • enforce structured validation for initialize, step, and reset responses
  • align runtime models, SDK results, JSON Schemas, and protocol validation
  • preserve evaluator-visible logs and validate JSON-RPC response identifiers
  • support asynchronous lifecycle hooks across stdio and Streamable HTTP
  • add configurable RPC timeouts with contextual failure diagnostics
  • expand automated coverage across Python 3.9 through 3.13

Why

The schemas, SDK, runtime, and conformance command previously accepted different protocol states. Async-first agent frameworks also required lifecycle hooks that could be awaited safely without breaking synchronous agents. This change establishes one enforceable, backward-compatible contract across both supported transports.

Developer impact

ecp conformance now validates method-specific contracts and supports machine-readable reports. Invalid manifests, statuses, tool calls, response identifiers, and result payloads fail with actionable diagnostics. Async @on_step and @on_reset hooks are awaited on a persistent event loop, while existing synchronous hooks remain supported.

Validation

  • SDK and runtime test suites passed
  • stdio and Streamable HTTP integrations passed
  • flagship customer-support evaluation passed 8/8 checks
  • GitHub Actions passed on Python 3.9, 3.10, 3.11, 3.12, and 3.13
  • package builds, documentation build, and v0.4.0 publication completed successfully

Migration

No migration is required for valid existing agents. Malformed payloads that previously passed through are now rejected with diagnostics.

@manavanandani manavanandani changed the title [codex] Add ECP conformance contract enforcement Add ECP conformance contract enforcement Jun 21, 2026
…te-v1

# Conflicts:
#	runtime/python/src/ecp_runtime/cli.py
…support

# Conflicts:
#	runtime/python/src/ecp_runtime/cli.py
@manavanandani manavanandani changed the title Add ECP conformance contract enforcement minor: add conformance and async lifecycle support Jul 1, 2026
…ifecycle-support

minor: add async agent lifecycle support
@manavanandani manavanandani marked this pull request as ready for review July 1, 2026 17:48
@manavanandani manavanandani merged commit 34881ea into main Jul 1, 2026
11 checks passed
@manavanandani manavanandani deleted the codex/conformance-suite-v1 branch July 2, 2026 06:28
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