Skip to content

Add harness turn replay contracts#397

Merged
sethjuarez merged 23 commits into
mainfrom
sejuare-microsoft-turn-runner-orchestration
Jun 30, 2026
Merged

Add harness turn replay contracts#397
sethjuarez merged 23 commits into
mainfrom
sejuare-microsoft-turn-runner-orchestration

Conversation

@sethjuarez

Copy link
Copy Markdown
Member

Summary

  • add TypeSpec-owned replay verifier contracts and generated runtime/docs outputs
  • add shared golden replay vectors and cross-runtime reference turn runner replay checks
  • add small reference replay verifiers for TypeScript, Python, Go, Rust, and C#
  • fix C# journal records to emit canonical TypeSpec enum wire names
  • update Typra verification to include json-ast baseline inputs and run on Windows

Validation

  • schema/npm run verify:typra
  • TypeScript harness replay tests
  • Python harness replay tests
  • Go harness replay tests
  • Rust harness replay tests
  • C# harness replay tests

sethjuarez and others added 22 commits June 9, 2026 22:32
Expand the generated turn harness schema, align runtime event emission across supported runtimes, and add generated model coverage for the new event payloads.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Define session-level harness events, checkpoint and trajectory records, host tool and permission protocol shapes, and generated runtime models across TypeScript, C#, Python, Rust, and Go.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Clarify hook scope, distinguish permission event payloads from live decisions, and align session start schema versioning across generated runtimes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate Go model output with the published Typra 0.3.0 emitter.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document how to route the existing OpenAI provider through compatible endpoints such as Tuning Engines.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mirror the README example in the public OpenAI how-to docs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move Typra generated markers below YAML frontmatter so Astro content collections can parse the reference pages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate reference docs with frontmatter-safe generated markers from Typra 0.3.1.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Compose harness event, journal, checkpoint, permission, and host tool contracts into a deterministic single-turn runner for TypeScript and Python.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread runtime/go/prompty/model/harness_adapters.go Fixed
Comment thread runtime/python/prompty/tests/test_harness_adapters.py Fixed

def save(self, checkpoint: Checkpoint) -> Checkpoint:
"""Persist a session checkpoint and return the stored checkpoint"""
...

async def save_async(self, checkpoint: Checkpoint) -> Checkpoint:
"""Persist a session checkpoint and return the stored checkpoint (async variant)"""
...

def load(self, session_id: str, checkpoint_id: str) -> Checkpoint | None:
"""Load a checkpoint by session and checkpoint identifier"""
...
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

async def load_async(self, session_id: str, checkpoint_id: str) -> Checkpoint | None:
"""Load a checkpoint by session and checkpoint identifier (async variant)"""
...
@sethjuarez
sethjuarez merged commit 31f0d6a into main Jun 30, 2026
31 checks passed
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