Repository navigation
Join a schema's protocol to a Java interface, and measure the service.tn split - #31
Merged
Merged
Conversation
TsonServiceProtocol.join reads a schema's !service.protocol entry and bind's DataProtocol for an interface, and refuses any disagreement at startup: an exchange without a method or a method without an exchange, a request or response present on one side only, a type the two sides disagree on, and a declared error missing or extra on either side. A shape it cannot judge is refused rather than passed. Landed moves to an unexported internal package, since both the protocol and the http packages use it, and is kept out of the generated Javadoc. tson-service gains its own tests on a protocol-only fixture, and names io.ltr8:tson-atom directly for the atom check. Two library gaps the join works around are pinned in UpstreamGapsTest and entered in UPSTREAM.md: a union read from a sealed hierarchy is not reported closed, and the atom family a bind-mode read uses is not one public call. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SchemaSplitProbeTest measures a cut-down pair of schemas, the http one importing the protocol one, and proposal/schema-split.md reports it: both resolve, a description in one document or two reads, a second projection layer sits beside the http one, and one bind context binds both layers. The http schema may add its entries to the protocol schema's service map, since a nested schema map is open, or take a root of its own. service.tn and the notes no longer say the layer reserves the name service alone: it is reserved only against a root that is no schema map. UPSTREAM.md gains the collision whose diagnostic names neither schema, and the two-schema data document entry cites the probe's pin of the same throw. BACKLOG.md follows both this and the join. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
The join
TsonServiceProtocol.join(tson, schemaId, protocol, type), inio.ltr8.tson.service.protocol, joins a schema's!service.protocolentry to a Java interface read through bind'sDataBindContext.getProtocol, and refuses anydisagreement at startup with an
IllegalArgumentException:the check a record's field gets, a choice by membership in a closed union;
A shape it cannot judge (a tuple, a namespace type, an open union and the like) is refused rather than passed. It does
not check a record's fields, facets, or bridge conversion; its Javadoc and
design/invoke.mdsay so.With it:
Landedmoves to an unexportedio.ltr8.tson.service.internal, kept out of the generated Javadoc.tson-servicehas its own tests, on a protocol-only fixture.tson-servicenamesio.ltr8:tson-atomdirectly. This PR is the first run of the published-artifacts build withthat coordinate.
Not built: dispatch from a call document, the rpc wire form, a protocol document written from an interface, the proxy.
The schema-split probe
proposal/schema-split.md, measured bySchemaSplitProbeTest, reports thatservice.tncan be split into a protocolschema and an http schema importing it. The http schema may add its entries to the open
servicemap, with no rename,or take a root of its own. The probe measures a cut-down pair of schemas written in the test, not
service.tnitself.No schema is split in this PR.
service.tn's@docand the notes no longer claim the layer reserves the nameservicealone, since a nested schemamap is open.
problem.tnanddeployment.tnmake the same claim and are unchanged here.Upstream
Three new low-priority
UPSTREAM.mdentries, each pinned:Verification
./gradlew build javadoc --rerun-tasksis green locally against the sibling'smain, and both doc checks pass.🤖 Generated with Claude Code