feat(embed): add /embed OpenAPI contract + Spectral CI gate - #12
Merged
Conversation
mattj-monad
requested review from
Credgate,
alastaird-monad,
andrewc-monad,
brenth-monad,
mon-aneesh and
saikapuluru99
as code owners
July 30, 2026 17:02
mattj-monad
force-pushed
the
feature/pro-400
branch
from
July 30, 2026 17:11
5b94e4e to
95224b4
Compare
andrewc-monad
left a comment
Collaborator
There was a problem hiding this comment.
Excited to see the rest of this!
The 9-route /embed contract (packages/embed/openapi) is the shared artifact every router and the browser client conform to. Adds a Spectral lint job to CI so the spec is validated on every change. The workspace scaffold is already on main; this is the contract layer (PRO-400) of the staged rollout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ASKA2VrufrNLGGrcFjY7n
mattj-monad
force-pushed
the
feature/pro-400
branch
from
July 30, 2026 22:50
95224b4 to
19f3cfb
Compare
Contributor
Author
|
Force-pushed a review fix. |
andrewc-monad
approved these changes
Jul 31, 2026
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.
Bottom layer of the Monad Embed SDK staged rollout (PRO-400).
What this adds
packages/embed/openapi/**— the 9-route/embedOpenAPI contract (embed.openapi.yaml), its README, and the Spectral ruleset. This is the shared artifact every backend router and the browser client conform to.The workspace scaffold (
package.json,pnpm-workspace.yaml,tsconfig.base.json,eslint.config.js, CI) is already onmain, so this PR is scoped to just the contract + its lint gate.Verification
spectral linton the spec → no errors.prettier --checkon the new files → clean.Stack
Layer 1 of 6, merged bottom-up. Next:
@monad-inc/embedbrowser client (PRO-401), then TS router + conformance suite (PRO-402) → Go (PRO-403) → Python (PRO-404) → docs + CI hardening (PRO-405).🤖 Generated with Claude Code
https://claude.ai/code/session_011ASKA2VrufrNLGGrcFjY7n