Repository navigation
Conversation
Import the official Telegram Desktop schema for Layer 231 (commit 91ed9dbf2004, blob 01e31d5, sha256 0921a7bba8be) through the versioned manifest workflow. The canonical profile moves from 230 to 231; profiles 225-230 remain generated. The Layer 231 delta against Layer 230 is mechanical: urlAuthResultRequest and messages.acceptUrlAuth gain new constructor CRCs and inputTonConnectOauthSession is added. The policy audit retained 243 decisions, reported no stale keys and found no new obligations, so policy.json is unchanged. Locked generator budgets are re-counted for the added profile: projected families 687->689, rewrite variants 2101->2107, unavailable variants 783->789, body obligation variants 212->224, field-projection obligations 181->205, new-only obligations 783->789 and the sparse typed codec wire budget 1500->1520 (observed 1501). The profile catalog assertion covers 225-231. Downstream telesrv builds, vets and passes internal/rpc and internal/mtprotoedge against this tree through a temporary go.work.
The real-schema lock still described the 225-230 window. Layer 231 adds two signature changes to the union (urlAuthResultRequest, messages.acceptUrlAuth), so the union count moves 56->58 and the Layer 225 baseline 48->50.
SandyTAP
added a commit
to SandyTAP/gramsrv
that referenced
this pull request
Oct 20, 2026
Server-side Layer 231 support: the URL-auth handler refuses a request that carries a Layer 231 TON Connect OAuth session, and internal/rpc/layer231_test.go pins the new facts (Layer 231 resolves and is canonical, an unknown future layer is rejected, the urlAuthResultRequest constructor stays profile-exact). This branch intentionally does not touch go.mod: the dependency must stay on the upstream module path, so it can only be landed once upstream publishes the tag that carries Layer 231 (PR iamxvbaba/td#3). Until then it does not compile against the currently published release.
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.
Import the official Telegram Desktop schema for Layer 231 and regenerate the exact profiles.
Source
dev, commit91ed9dbf2004ed5531a94ecc4fe5751e008dc8ed("Update API scheme to layer 231.", 2026-10-17), reachable from fetched upstream/dev.01e31d552dd496e592f262989c8452f7a3ce411a, SHA-2560921a7bba8be9ad7e615d1d4f8e068126a421e3cba18f499a16765f1ab6129bf, both locked inmanifest.json.tgand the sparse exact-profile sidecar are regenerated from the semantic IR, never copied from an upstream generator.Layer 231 delta against Layer 230
The delta is mechanical:
urlAuthResultRequestCRC#3cd623ec→#bdca6167request_wallet:flags.8?true,tc_session_id:flags.9?long,tc_client_id:flags.10?string.messages.acceptUrlAuthCRC#67a3f0de→#18dd4e92tonconnect_session:flags.5?InputTonConnectOauthSession.inputTonConnectOauthSession#629f66cemessages.acceptUrlAuthresult.No field was removed, no constructor was renamed, no historical profile gained or lost a family. The policy audit reports retained=243, stale=0, new=0, so
policy.jsonis unchanged and no reviewed decision is weakened.Locked generator budgets
Re-counted for the added profile: projected families 687→689, rewrite variants 2101→2107, unavailable variants 783→789, body obligation variants 212→224, field-projection obligations 181→205, new-only obligations 783→789, sparse typed codec wire budget 1500→1520 (observed 1501). The profile catalog assertion now covers 225–231.
Verification
go generate .is deterministic: a second run produces no churn.go test ./gen ./cmd/gotdgen ./tg ./tlprofilepasses.telesrvbuilds, vets and passesinternal/rpcandinternal/mtprotoedgeagainst this tree through a temporarygo.work(nogo.modreplace).Review record:
_schema/layers/LAYER231_REVIEW.md.