Skip to content

test: consume conformance API contract fixture#22

Merged
rlippmann merged 2 commits into
mainfrom
codex/conformance
May 11, 2026
Merged

test: consume conformance API contract fixture#22
rlippmann merged 2 commits into
mainfrom
codex/conformance

Conversation

@rlippmann
Copy link
Copy Markdown
Owner

Summary

  • sync conformance fixtures from Python source including tests/fixtures/conformance/api/public-api-v1.json
  • add TS consumer test for the API contract fixture
  • verify required top-level exports and engine members via explicit Python-to-TS mapping
  • add transcript type aliases and exports (TranscriptMessage, Transcript, ApplyResult) to satisfy contract parity

Why

Python now publishes a conformance API contract fixture; consuming it in TS makes API surface parity explicit and regression-tested.

Scope checklist

  • Diff is minimal and scoped to the requested behavior
  • Python/spec parity is preserved (or mismatch is explicitly documented)
  • Fixture semantics are respected (exact string vs non-empty null rule)
  • No unrelated refactors
  • Relevant tests were run

Notes

  • Validation run: npm test
  • Validation run: FIXTURES_SOURCE=/Users/rlippmann/Source/context-compiler/tests/fixtures/conformance npm run fixtures:check
  • Preprocessor API contract fixture is not consumed in TS tests in this PR.

@rlippmann rlippmann merged commit fc9cf6f into main May 11, 2026
1 check passed
@rlippmann rlippmann deleted the codex/conformance branch May 11, 2026 06:14
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