messenger, desk-channel, telegram, mesh-config take the channel benches' shapes from the operator-channel contract and its client (B5d; ADR 0634 §1, §6; issue 1966)

Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
2026-11-05 15:03:24 +01:00
parent f61760f738
commit 1d3ed6e78e
20 changed files with 266 additions and 257 deletions
@@ -37,7 +37,6 @@ import (
occ "git.novox.be/novox/mesh-contracts/operator-and-conversation/go/clients/operatorchannelclient"
oc "git.novox.be/novox/mesh-contracts/operator-and-conversation/go/seats/operatorchannel"
stdio "git.novox.be/novox/mesh-sdk/go"
ch "git.novox.be/novox/mesh-sdk/go/channel"
"git.novox.be/novox/mesh-sdk/go/outward"
)
@@ -428,7 +427,7 @@ func approverReady(bus AskBus) string {
}
channels := 0
for _, k := range kinds {
if k.Seat != ch.ChannelSeat {
if k.Seat != occ.ChannelSeat {
continue
}
channels++
@@ -13,7 +13,6 @@ import (
occ "git.novox.be/novox/mesh-contracts/operator-and-conversation/go/clients/operatorchannelclient"
oc "git.novox.be/novox/mesh-contracts/operator-and-conversation/go/seats/operatorchannel"
stdio "git.novox.be/novox/mesh-sdk/go"
ch "git.novox.be/novox/mesh-sdk/go/channel"
)
// standIn is the operator channel's router and a channel that proves who answered, in memory: it takes the asks
@@ -37,7 +36,7 @@ type standIn struct {
func newStandIn() *standIn {
return &standIn{asks: map[string]oc.Ask{}, records: map[string][]byte{}, kinds: []stdio.KindHeld{
{Seat: ch.ChannelSeat, Kind: "telegram", Module: "telegram", Node: "novox",
{Seat: occ.ChannelSeat, Kind: "telegram", Module: "telegram", Node: "novox",
Capabilities: []string{"choice", "exact-render", "verified-sender"}}}}
}
@@ -459,7 +458,7 @@ func TestAProposalIsJudgedAndRefusedBeforeTheOperatorIsAsked(t *testing.T) {
t.Fatalf("a refused proposal was asked: %v", r.subjects)
}
r.kinds = []stdio.KindHeld{{Seat: ch.ChannelSeat, Kind: "desktop", Capabilities: []string{"choice"}}}
r.kinds = []stdio.KindHeld{{Seat: occ.ChannelSeat, Kind: "desktop", Capabilities: []string{"choice"}}}
if _, err := c.Propose(Call{Action: "propose", Key: "font-size", Value: 13.0, Caller: "g", Why: "w"}); err == nil ||
!strings.Contains(err.Error(), "no channel that proves who answered") {
t.Errorf("no approving channel: %v", err)