Skip to content

Define the supported 0.x protocol, host and public API contract #27

Closed

Description

@jimeh

Define the first supported 0.x connectrpc-ruby profile, using an explicit protocol/transport/host matrix and a documented compatibility policy. This is a support-contract decision, not authorization to publish packages or declare 1.0.

Versioning stance (2026-11-16)

All 0.x releases, including the published 0.1.0, are experimental. Once the library reaches a stable point, this contract is adopted on whichever 0.x version is current at that time. A 1.x major release comes later, after the contract has proven stable for some time. The remaining adoption gate is the open policy review below. The long-running lifecycle validation in #34 is complete (#99). The #26 audit is closed: every finding is resolved except L12, an accepted residual limitation listed below.

Native HTTP/2 covers all four Connect and gRPC RPC shapes. gRPC-Web server support is delivered in #37 within its documented format, host, shape and CORS limits. The first native Connect HTTP/1.1 streaming scope is also delivered: Falcon server #41 and explicit Async client #44. Portable adapter and ordinary-thread capabilities must remain explicit; these deliveries do not make every host or client streaming-capable.

Acceptance

  • Publish the supported RPC shapes, HTTP versions, codecs, compression, security modes, hosts and clients, with tested Ruby/OS/framework combinations and explicit exclusions.
  • Settle and deliver the initial Connect HTTP/1.1 server/client-streaming scope: Falcon server plus explicit reactor-owned Async client, protobuf/ProtoJSON, identity/gzip and TCP/TLS/mTLS; no H1 bidi, native gRPC over H1, implicit fallback or ordinary-thread facade.
  • Consolidate the portable Rack/Rails/NetHTTP/Testing behavior and the native/Web distinctions in the same support matrix. Ordinary-thread persistence and server streaming were delivered in Provide a persistent client path for ordinary threaded Ruby applications #29; client and bidi streaming from threads are Support client and bidi streaming from ordinary threads #71.
  • Map selected conformance inventories and independent interoperability evidence to each advertised capability; identify remaining material gaps without claiming exhaustive conformance from passing counts.
  • Review deliberate interoperability policies, including Connect terminal-tail timing, Falcon H1 early-response retirement and strict gRPC rich-status handling, before making long-term promises.
  • Define stable public APIs versus extension interfaces/private implementation, deprecation and migration policy, and versioning across the optional gems.

Documentation delivered

#46 merged as 805bb80 on 2026-11-08 after a source-fidelity review and a readability pass. The support guide records the agreed target 0.x contract, capability/evidence map, API/SPI boundaries, package-version and migration policy, and adoption gates. This completes the documentation deliverable; current artifacts remain experimental, and release qualification still gates adoption. No release or publication occurred.

Current evidence and settled direction

#44 merged as 1b4870e after exact-head CI and normal local root/Rack verification on Ruby 3.4.12 and 4.0.9. Its strict H1 client profiles execute 386 identity and 352 gzip cases per Ruby. #41 supplies the corresponding Falcon H1 server evidence. Existing guides, profiles and ledgers are inputs to this contract, not a substitute for it.

The gemspec lower bound is Ruby >= 3.4; that is not proof for every Ruby implementation, operating system or dependency version satisfying the declaration. Distinguish the tested profile from broader allowed compatibility.

The initial direction selected on 2026-11-07 is:

  • Publish a supported 0.x profile first, rather than target a shared 1.0 now. Publication itself remains separately authorized.
  • Start from the existing Linux/MRI CI matrix. Current qualification uses Ubuntu 24.04 on x86_64, MRI 3.4.12 and 4.0.9. Gem lockfiles are being dropped in build: test fresh dependency resolution and loosen Async/Falcon constraints #65, so CI resolves dependencies fresh within the gemspec ranges, with a 3-day cooldown. No macOS qualification is required for this first profile, and none is claimed.
  • Preserve the delivered protocol scope, opt-in integrations, timing/resource limits, no-replay behavior and separation of portable versus native execution.

Additional policy selected on 2026-11-07:

  • Patch releases preserve documented supported API/SPI contracts and wire defaults. Breaking changes belong in minor releases and require migration notes.
  • Support requires matching core and optional-gem versions. build: test fresh dependency resolution and loosen Async/Falcon constraints #65 loosens the Async and Falcon dependency ranges to match what fresh-resolution CI exercises; an installable version-skewed combination is not thereby qualified or supported.
  • The first supported Rails profile uses Rails 8.1. Keep the existing Rails 8.0 CI lane as compatibility evidence, outside that supported framework profile.

Use the existing surface inventory to define supported APIs, documented extension SPIs and internals. Generated-client migration requirements must be explicit when a minor release changes the contract. No fixed maintenance duration or deprecation interval has been promised. Do not silently convert every allowed gemspec version into a qualification claim.

Accepted residual limitations

These limitations are accepted and disclosed rather than fixed. The supported contract states them explicitly.

  • Resolve confirmed correctness and architecture audit findings #26 L12: Rack metadata names. Rack env normalization cannot preserve the distinction between underscore and hyphen request metadata names, so a portable Rack or Rails server cannot tell x_foo from x-foo. Native hosts (Async, Falcon native) are unaffected, and valid native metadata is not rejected. Disclosed in docs/support.md and the Rack README.

Planned deliverable

Produce one authoritative support/compatibility guide with the capability matrix and an evidence column for each advertised row. Link owning protocol/package guides, correct stale H1-client and gRPC-Web statements, and reconcile current documentation inventories. Use the RBS surface inventory to distinguish supported application APIs, deliberate extension SPIs and internal helpers.

The matrix must distinguish official native conformance profiles, independent Go peers, browser evidence and installed typed consumers. Rails browser/spec evidence is not a separate exact Rails conformance inventory. Binary gRPC-Web server-stream wire support does not imply incremental binary streaming in the official browser client. Scope the one-second terminal-tail policy to native Connect streaming clients; retain the separate Falcon H1 Connect and Web cleanup policies.

#26 mapped every audit finding to a fix or an explicit support decision (closed on 2026-11-16). Optional architecture refactors and additional platforms are separate work. This documentation deliverable requires link, task-name, lockfile/CI and API-inventory checks; it does not justify unrelated broad runtime reruns.

The outcome is a release-scope and compatibility contract, followed by scoped gap fixes where agreed. More codecs, every third-party server, HTTP/3, xDS and parity with every grpc-go option are not automatic requirements. Release automation was delivered in #36. Merging a release PR is the release decision and needs separate authorization.

Reference: Connect protocol, plus the repository's streaming, gRPC, gRPC-Web, conformance and RBS guides.


Written on behalf of jimeh by claude-opus-5-5 using Claude Code via T3 Code.

Activity

  1. changed the title [-]Define the stable protocol, host and public API support contract[/-] [+]Define the supported 0.x protocol, host and public API contract[/+] on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions