Released: TBD
Compare: v0.12.0-alpha.20…v0.12.0-alpha.21
A cluster-delivery release. Spec #112 (PR #368) replaces the delivery data
model and the router’s hot path: one deliveries collection acknowledged by
a derived acknowledgement JTI, a DeliveryQueue that owns each stream’s
pending references, an immutable RoutingTable read outside the router
lock, a LeaseManager that answers “do I still own this stream” from memory
instead of fencing every ack, and leases for poll transmitters and SSTP
acceptors so a request that lands on a non-owner is served by the owner
through one peer Claim. The two-node benchmark that drove it now reports
the verified properties and polls both nodes (#366, #367). Alongside it,
spec #114 makes the issuer’s newest key decide the SET algorithm with ES256
as the default key type, the peer plane is exported as a pkg/ surface for
enterprise to mount (#373), and specs planning#26 and planning#135 turn
make build-publish into the family’s image-publishing contract.
This alpha has several behaviour changes operators and clients must act on:
pendingEvents and deliveredEvents are migrated into deliveries at
startup and then dropped (#359, #361). The migration runs once; API
stream starts and deliveries access are held until it completes, and when
the store is down at boot it runs in the background once the store is
back. There is no reverse path: do not run an older alpha against a store
this release has started on.I2SIG_LEASE_SAFETY_MARGIN
(default 5s, capped at half the lease duration) sets how early a node
stops acknowledging as owner. A takeover can duplicate a send but never
lose one.POST /poll/{id} and POST /sstp/{id}; a
non-owner forwards the request’s acknowledgements and its ask for events
to the owner over POST /_cluster/claim, which uses the existing wake-up
authentication. I2SIG_CLUSTER_CLAIM_INFLIGHT (default 256) caps waiting
claims per owner. I2SIG_POLL_DEFAULT_TIMEOUT / I2SIG_POLL_MAX_TIMEOUT
must now be set uniformly across nodes (ADR 0014 amendment).alg
(spec #114, #370). POST /key/{issuer} without ?alg= mints the type
I2SIG_KEY_ALG names (ES256 unless set; RS256 or ML-DSA-65; any
other value stops the server at startup). A stream with no signing_alg
signs with the issuer’s newest active key of any type, so creating a key
switches those streams to it. The auth-token key stays RSA. An issuer
holding only its legacy RSA key signs exactly as before, and the RSA key
stays in the JWKS so earlier SETs still verify. Pin signing_alg on a
stream whose receiver cannot follow.build.sh is gone; Make is the only build and publish entry point
(#383, #386, specs planning#26 and planning#135). The publish target is
make build-publish; build-docker-multiarch is gone with no alias.
Without PUSH=1 it only validates. PUSH=1 REGISTRY=<host>
NAMESPACE=<ns> TAG=<tag> pushes :<TAG> and :latest and all three
are required (exit 2 otherwise); it never tags vX.Y. The OCI
revision label is now the full commit SHA and the image version
comes from TAG, not version.txt.The default durability contract is unchanged: every acknowledged SET is
majority-journaled before the ack (ADR 0038). Acks run at w:1 on the
deliveries state flip; a rolled-back flip redelivers and the receiver
drops the duplicate by JTI (ADR 0043, 0044 amendments).
deliveries collection (#359). One reference document per
(sid, jti) with ackJti, state: pending|delivered, createdAt,
ackDate and expireAt; never the body. An ack is one conditional
updateMany on the stream’s references whose ackJti matches, plus the
inserts of any outbound copies into events; on Mongo 8.0+ both go in
one client-level bulkWrite. Indexes are built on every start
(deliveries_indexes.go).expireAt is written at acknowledgement from the
stream’s retention policy and a TTL index reaps the reference; a bounded
sweep purges an event body only when no delivery document in either
state still references it.MigrateLegacyDeliveries copies
pendingEvents / deliveredEvents into deliveries in batches of 1000
and drops the old collections. Stream-update resets are queued and SSTP
exchanges refused until delivery has started; the pre-migration poll
refusal logs at DEBUG.reads_under_lock_total, reads_before_ack_total, design value 0) is
always on.OutboundSet; a SET with no stored row, or whose
row read fails, derives no ack JTI. A wake whose lists differ in length
is treated as a reload; pair loops are refused after dialer shutdown and
every stuck loop is logged. releaseStreamLease bounds its wait on the
renewal loop.poll-transmitter:<streamId> and sstp-server:<txSid> leases
(30 s / 10 s heartbeat) are taken on first use by a node whose router
serves claims; a node that does not serve claims routes to the owner by
wake-up. The owner applies the request’s acks in its one write, claims up
to maxEvents references and returns them; the receiving node signs and
sends. NotOwner or a failed call forgets the cached owner and resolves
once more; a second failure answers empty with the acks unapplied so the
client resends. The reaper now purges deleted streams’ poll-transmitter
and sstp-server lease rows; a stream removed by reconcile releases
every lease it holds. One LeaseKind type replaces the per-kind
Resource wrappers. The SSTP acceptor’s long-poll wait now ends when the
client aborts.Wake and Claim behind
one seam, with HTTP and in-process transports; package test hooks replaced
by AppOption and RouterDeps.Clock; the test-only parity suite moved to
internal packages.docs/Cluster.md, docs/SSTP.md and
CONTEXT.md describe ackJti, claims and ServesClaims.goSignals_router_queue_time_seconds (enqueue to first hand-out) and
goSignals_router_ack_time_seconds (hand-out to acknowledgement),
histograms labelled by tfr only. ADR 0047: latency histograms carry no
stream_id.goSignals_router_stream_backlog_depth and
goSignals_router_stream_backlog_oldest_age_seconds, per-stream gauges
reported only by the lease owner, so a cluster-wide sum counts each stream
once and a stream with no series has no owner.goSignals_router_peer_claims_total{mode,result} and
goSignals_router_peer_claim_budget_exhausted_total; GetPendingForStreamBeyond
on the DAO op histogram. PromQL and alert examples in docs/Metrics.md.signing_alg; a pinned signing_alg selects the newest key of that type
(#370). I2SIG_KEY_ALG (default ES256) sets the type of a key minted
without ?alg=, including the default issuer’s startup key. Key summaries
report alg, oldest-first (KeyState.alg), and every minting
POST /key/{name} answers with a Key-Id header. ADR 0041 amended.goSignals create key saves the returned kid to <file>.kid beside the
PEM, and generate event and goSignalsBench sign with the created key’s
type and that kid (#371). Doc examples that need RSA now pass
--alg=RS256.Key-Id constant from the #372
review; the Mongo TestF1_IssuerKeys looks the default ES256 key up by
type (PR #375).pkg/goSignalsServer.PeerSurface (PR #374), sibling to AdminSurface,
exposes the always-on peer routes (bootstrap, event delivery, verify,
JWKS, poll) bound to the gateway’s handlers so an external module can
serve the peer plane with only pkg/ imports. /, /health,
/.well-known/*, /sstp/{id}, /_cluster/* and the OAuth endpoints stay
with the embedder. Peer adapter misuse panics; nil checks run at boot.PeerSurfaceConfig.Auth is required and wins over
KeyService.GetAuthIssuer(); surfaces bind their issuer into
service-layer minting through services.WithAuthIssuer, and a key change
leaves an explicit surface Auth alone (#376, PR #378).NewPeerSurface refuses a router built without ServesClaims, which
would answer every poll empty (#377). Review follow-ups fold the key
guard and delegate ServesClaims (PR #381).goSetSstp.ProblemServerSuspended (…/server-suspended), classed
retryable: the admin has suspended the server pending revocation, the
dialer keeps its redial cadence and is refused the same way until the
suspension is lifted. Registered beside ProblemBindingRevoked in the
pkg verdict table.maxEvents of 0 is acknowledgement-only, detected on the
wire request rather than the stored poll configuration (#369).goSignalsBench reports the verified properties (ack writes per batch,
reads under lock, reads before ack, peer claims served), adds
--gs1b-internal second-node receiver legs and --poll-targets one|both
to poll the lease owner and a non-owner at once, labels the
OldestBeyond query cost, and finishes the glossary (#366). Both poll
receiver ids are logged under both. goSignals1b is in the server
certificate SAN (#367).docs/perf/throughput-baseline-alpha20.md (#367): every leg drained
5000/5000; POLL 2343–2492 ev/s single-target, 2042–2130 ev/s with both
nodes polled (33–36 peer claims served, p50 about 145 ms, roughly a
quarter of the single-target latency) and 2012–2458 ev/s with the owner
pinned to the non-polled node (51–52 claims); zero reads under lock or
before ack, one ack write per batch, in every run. Spec #112 re-run at
0ef80a4 is within the 10% noise band of the control.PollRequest codecs moved to json/v2 streaming hooks
(MarshalJSONTo / UnmarshalJSONFrom) sharing one goSet.JSONOptionsV1
option set, recovering the +24–69% decode and encode regressions the
sub-second toe and maxEvents: 0 legacy hooks had introduced under
go1.27; decode is at parity with #279 within noise, encode keeps
+8.9% on SetJsonBytes from the value-receiver copy. Wire bytes are
pinned by test (PR #382). Per-change delta rows for every slice are in
docs/perf/go127-baseline.md.make build-publish conforms to the S1 delegation contract of specs
planning#26 and planning#135 (#383, PR #384; #386, PR #387). It replaces
build-docker-multiarch, with no alias. Validate-only without
PUSH=1; PUSH accepts a single-word 1 or yes; REGISTRY,
NAMESPACE and TAG are required under push with the verbatim
build-publish: <VAR> is required when PUSH=1 message. One buildx
invocation pushes REGISTRY/NAMESPACE/i2gosignals:<TAG> and :latest,
writes buildx metadata to bin/build-meta-i2gosignals.json and sets a
full-SHA VCS_REF. make test-publish-contract (in make qa) pins the
two-tag surface, asserts build-docker stays local (it builds for the host
arch and never pushes) and asserts the old target name is gone. The
Makefile and README publish examples name Docker Hub
(docker.io/independentid). build.sh is removed.go.mod, CI and Dockerfile-dev (#356, PR #357, PR #385).
Security bumps: go-jose 4.1.6, mongo-driver 2.9.2, x/crypto 0.58.0,
x/net 0.61.0, grpc 1.83.2 (CVE-2026-84445). Measured flat: identical
allocs on all 38 benchmarks, sec/op inside noise.cgr.dev/chainguard/bash digest refreshed to the
2026-10-20 image.pkg/goSignals (the go:embed
swagger-ui bundle, its duplicate api/swagger.yaml, the golang:1.10
codegen Dockerfile and swagger-codegen scaffolding) is deleted and the
/swagger/ mount is removed from both internal/server and
pkg/goSsfServer. Nothing used it; the binaries lose ~11 MB of static
JS. Dockerfile.multistage (golang:1.19, unreferenced since 2023, listed
as a known stale pin in the alpha.19 notes) is also removed.golang.org/x/crypto openpgp, module level, no tagged fix) — it flags
every x/crypto version; no symbol in this repo calls it.