Compose generator should detect duplicate service names at generate-time #850
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#850
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When the compose generator emits the same service name twice — e.g. both the legacy
ENABLE_LLAMA_AGENT=1branch and a matching[agents.llama]TOML block produce anagents-llama:key — the failure is deferred all the way todocker composeYAML parsing:By then, the user has already paid the cost of: pre-build binary downloads, generator run, Caddyfile regeneration. The only hint about what went wrong is a line number in a generated file. Root cause (dual activation) is not surfaced.
Fix
Add a generate-time guard to
lib/generators.sh:"agents-llama" emitted twice — from ENABLE_LLAMA_AGENT=1 and from [agents.llama] in projects/disinto.toml; remove one).Even after #846 resolves (one canonical activation path), this guard remains valuable as a safety net against future regressions or user misconfiguration (e.g. two TOML blocks with same
forge_user).Acceptance
disinto upwith a known duplicate activation produces a clear generator-time error naming both conflicting sources.docker composeis invoked.Related: #846.
Blocked — issue #850
ci_exhausted2026-04-16T13:55:33Z