Introduce a versioned cross-client API contract#323
Merged
Conversation
oratis
marked this pull request as ready for review
July 26, 2026 07:15
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
X-Lisa-API-Version: 1centrally to every/api/*,/chat, and/eventsresponse without changing existing v1 bodies/api/agents/sessionsserializer into a pure DTO builder and validate it plus Dispatch, Island, Error, and SSE fixtures against the schema.codexrelease baseline, iOS paths, project scale, and the new protocol boundaryCompatibility decision
This is an additive v1 governance layer, not a body-envelope migration. Existing web and native clients keep reading the same JSON. Missing headers are treated as legacy v1; same-major optional fields and unknown SSE event types are tolerated; breaking changes require a new major or versioned route.
Validation
npm run check:api-contractnpm run typechecknpm test(1483 pass, 1 environment skip, 0 fail)npm run buildnpm pack --dry-run --json(contract ships in the package)packaging/ios-companion/build.sh test(29 pass, 0 fail on iPhone 17 Pro Simulator)Stack
Depends on #322. Review commit
296be70only.