From 242762b2fbd741e015035ce42979e74256792953 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 24 Jul 2026 12:09:38 +1000 Subject: [PATCH] =?UTF-8?q?refactor:=20archie:*=20=E2=86=92=20agent:*=20la?= =?UTF-8?q?bels,=20remove=20stale=20archie=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.docker.toml | 11 +++++------ docker-compose.yml | 1 + internal/config/config.go | 18 +++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/config.docker.toml b/config.docker.toml index db088e141..b2daec9a0 100644 --- a/config.docker.toml +++ b/config.docker.toml @@ -5,7 +5,6 @@ work_dir = "/var/lib/archie/work" db_path = "/var/lib/archie/archie.db" poll_interval = "60s" -label = "archie" bot_user = "archie" diff_cap_lines = 0 @@ -19,11 +18,11 @@ trigger = "assignee" ack_reaction = "eyes" [dispatch.labels] -queued = "archie:queued" -working = "archie:working" -waiting = "archie:waiting" -pr = "archie:pr" -parked = "archie:parked" +queued = "agent:queued" +working = "agent:working" +waiting = "agent:waiting" +pr = "agent:pr" +parked = "agent:parked" [agent] mode = "nats" diff --git a/docker-compose.yml b/docker-compose.yml index f59d26d75..d6e6f3ffb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,6 +49,7 @@ services: dockerfile: Dockerfile image: git.catlow.cloud/sam/archie-agent:latest command: ["true"] + entrypoint: [""] restart: "no" volumes: diff --git a/internal/config/config.go b/internal/config/config.go index 104b69e0a..e5f60c2b2 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -203,15 +203,15 @@ type Dispatch struct { Labels map[string]string `toml:"labels" json:"labels"` } -// dispatchLabelDefaults is the fallback label set, reproducing the -// legacy archie:* constants that were previously in internal/forge. +// dispatchLabelDefaults is the fallback label set used when the user +// hasn't configured explicit [dispatch.labels] entries. var dispatchLabelDefaults = map[string]string{ - "queued": "archie:queued", - "working": "archie:working", - "waiting": "archie:waiting", - "pr": "archie:pr", - "parked": "archie:parked", - "dead": "archie:dead", + "queued": "agent:queued", + "working": "agent:working", + "waiting": "agent:waiting", + "pr": "agent:pr", + "parked": "agent:parked", + "dead": "agent:dead", } // StateLabel returns the configured label for a state name. Falls back @@ -401,7 +401,7 @@ func Load(path string) (Config, error) { cfg.PollInterval = Duration(60 * time.Second) } if cfg.Label == "" { - cfg.Label = "archie" + cfg.Label = "" } if cfg.DiffCapLines == 0 { cfg.DiffCapLines = 400