G findings: the runner's first views write their unanswered finding through one held writer over its own connection

bus.Conn gains its one JetStream accessor; firstview keeps the runner's own consumer and its four followers and writes and clears each follower's first-view-unanswered finding with the contract's Finding.

Builds: design 47 G A-27, A-28, A-16, A-29
This commit is contained in:
2026-11-11 22:23:44 +01:00
parent 1176df0cd2
commit 4bfae38a73
6 changed files with 143 additions and 59 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ func publishExpecting(c *Conn, subject string, body []byte, expect uint64) (uint
func lastOn(c *Conn, stream, subject string) ([]byte, uint64, error) {
ctx, cancel := context.WithTimeout(context.Background(), StateTimeout)
defer cancel()
js, err := c.jetStream()
js, err := c.JetStream()
if err != nil {
return nil, 0, err
}
@@ -149,7 +149,7 @@ type busState struct {
}
func (s *busState) kv(ctx context.Context) (jetstream.KeyValue, error) {
js, err := s.c.jetStream()
js, err := s.c.JetStream()
if err != nil {
return nil, err
}