oficina / docs Public

Live push 1b follow-ups: since is a plain seq; no Member stream without a lease open

On branch fix/live-push-1b-followups

Two follow-ups to live push slice 1b (main 5a43342, #175), each with a test that failed without it. Base is main. Not deployed; DOCS_LIVE_PUSH stays off.

  1. since is a plain seq; only Last-Event-ID carries a tag (46d046b, stream.go). - Before: the stream split <seq>.<tag> on whichever source it read, so ?since=<seq>.<tag> still put the row's digest in the query string, where access logs keep it. - Now only Last-Event-ID (a header, the one EventSource sends back from a frame's id) is split. since is a plain seq, as parseSince reads it, and since=5.x is a 400. - Test: TestPushSinceIsAPlainSeq, which returned 200 before and 400 now.
  2. A team stream with no lease ends if its standing reads Member (9efa933, team_stream.go check). - Before: "never Member without a lease" rested on Access.Remaining latching Unknown when it read 0. The tests' leaseRemaining stand-in doesn't latch, and a future roster might not either. - Now a stream with no deadline whose standing reads Member ends, and its reconnect is decided afresh with a lease. - Test: TestTeamStreamWithoutALeaseEndsIfItsStandingIsMember. It builds a guard with no deadline over alice's real Member access, resolved through her session exactly as the guard resolves it, so an actor mismatch can't make it pass. It went on before; it ends now.

Locally: the two tests, then the push, team, stream, late-answer and log-epoch tests once (-p 4, 55 s). The full suite runs on hub CI. Each commit builds on its own.