From e474ec1e7a2acb9b8b2219873c63ea3a97826b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Tailland?= Date: Mon, 31 Aug 2026 15:04:25 +0200 Subject: [PATCH] Follow the supply agent's rename Its Keycloak client and audience scope changed name; the peer entry and the environment variables that point at it move with them. Co-Authored-By: Claude Opus 5 --- README.md | 2 +- k8s/configmap.yaml | 2 +- k8s/deployment.yaml | 2 +- src/assistant_agent/specialists.py | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5429762..9a1f867 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ for that reason; in the cluster the names resolve instantly. ## Deployment ``` -gitea.sttlab.eu/stt/classic-models-agent-assistant:v0.2.1 +gitea.sttlab.eu/stt/classic-models-agent-assistant:v0.3.0 ``` `k8s/` is what runs, `dev/` is the Flux plumbing. Two manual applies close the diff --git a/k8s/configmap.yaml b/k8s/configmap.yaml index 7684b93..e821164 100644 --- a/k8s/configmap.yaml +++ b/k8s/configmap.yaml @@ -29,4 +29,4 @@ data: # specialists.py. Set here so the rename took effect without rebuilding an # image; the defaults in the code carry the same values for the next build. ASSISTANT_URL_CATALOGUE: http://catalog-agent.agents.svc.cluster.local:8080/ - ASSISTANT_URL_APPROVISIONNEMENT: http://supply-agent.agents.svc.cluster.local:8080/ + ASSISTANT_URL_SUPPLY: http://supply-agent.agents.svc.cluster.local:8080/ diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 2d1a72d..e3540a8 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -28,7 +28,7 @@ spec: # gitea's own registry: the image sits beside the source it was built # from and inherits the repo's public visibility, so the pull needs no # credentials at all. - image: gitea.sttlab.eu/stt/classic-models-agent-assistant:v0.2.1 + image: gitea.sttlab.eu/stt/classic-models-agent-assistant:v0.3.0 ports: - name: http containerPort: 8080 diff --git a/src/assistant_agent/specialists.py b/src/assistant_agent/specialists.py index 3f53656..ea3bc9a 100644 --- a/src/assistant_agent/specialists.py +++ b/src/assistant_agent/specialists.py @@ -50,10 +50,10 @@ CATALOGUE = Specialist( ) -APPROVISIONNEMENT = Specialist( - name="approvisionnement", +SUPPLY = Specialist( + name="supply", url="http://supply-agent.agents.svc.cluster.local:8080/", - audience_scope="classic-models-agent-approvisionnement-audience", + audience_scope="classic-models-agent-supply-audience", serves="supply: whether a reference can be promised, from stock on hand", decides=( "whether a product can be promised to a customer, and why not when it cannot", @@ -69,7 +69,7 @@ APPROVISIONNEMENT = Specialist( #: Note what these two have in common from here: nothing. One is PydanticAI over #: MCP, the other n8n behind an adapter. The orchestrator cannot tell, and that #: is the point of the protocol. -SPECIALISTS: tuple[Specialist, ...] = (CATALOGUE, APPROVISIONNEMENT) +SPECIALISTS: tuple[Specialist, ...] = (CATALOGUE, SUPPLY) def by_name(name: str) -> Specialist | None: