From dfce3360b20440c4a46fc8c902c43da6891a01d9 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 27 Oct 2026 02:45:35 +1100 Subject: [PATCH] test(orgs): hold the agent-assignment contract the Agents tab reads --- internal/infrastructure/staterpc/orgs_client.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/infrastructure/staterpc/orgs_client.go b/internal/infrastructure/staterpc/orgs_client.go index dfd405157..c86b37600 100644 --- a/internal/infrastructure/staterpc/orgs_client.go +++ b/internal/infrastructure/staterpc/orgs_client.go @@ -8,8 +8,13 @@ import ( "github.com/samcharles93/archie-core/internal/domain/org" ) -// The Client serves the dashboard's org surface over the contract. -var _ org.API = (*Client)(nil) +// The Client serves the dashboard's org surface over the contract. The +// assignment list is a separate contract from the org API, and it is the one +// the Agents tab reads: proving it here keeps that page from answering 503. +var ( + _ org.API = (*Client)(nil) + _ org.AgentAssignments = (*Client)(nil) +) func (c *Client) CreateOrg(ctx context.Context, value org.Org, owner identity.IdentityID) (org.Org, error) { r, err := c.org.CreateOrg(ctx, &pb.CreateOrgRequest{Id: string(value.ID), Name: value.Name, OwnerIdentityId: string(owner)})