Skip to content

Release v2.8.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 04:43
63a869f

An operator can now grant and withdraw an audience for one named system, identified by its client id and described by its kind, so an application system such as an MCP client or an API caller gets its own audiences besides the ones every system holds. Existing grants keep their meaning. Part of Cratis/Direct#2870.

Added

  • AudienceLevel.NamedSystem and the SystemClientId and SystemKind (None, Mcp, Api, Other) types, so a decision can name one system without changing what the System level means (#135)
  • GrantAudience and WithdrawAudience take an optional ClientId and Kind; a named-system decision must name both and no tenant or user, and a withdrawal removes that system's grant only
  • SystemsDeclared and SystemDeclaration: a product reports the systems that call it, through IKnownSystems, and the operator reads them as the ProductSystems query, so an operator can list systems with their client id and kind
  • IGuestList.ForNamedSystem and ForSystemCaller, and GuestListAudienceSource.GetGrants(subject, clientId): a request made by a named system gets the audiences of every system plus its own, never another system's and never a person's

Changed

  • AudienceGranted, AudienceWithdrawn and AudienceDecisionReceived are generation 2 and carry ClientId (and Kind on the decisions). Generation 1 is kept and migrated, so an event published or stored before reads as the product-wide System holder
  • ProductGuestList, HeldAudience and UndeclaredAudienceGrant carry ClientId and Kind
  • Update products before granting an audience to a named system: a product that has not been updated ignores those decisions and never widens them to every system