fix: disinto up silently destroys profile-gated services (#845) #860
No reviewers
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#860
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-845"
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?
Fixes #845
Changes
7d728a7867to802a548783AI Review
Summary
Bug fix for #845: was silently removing hired agent containers because they carried a key. Docker Compose treats services with profiles as inactive when no matching profile is active, so deleted them. The TOML entry is already the activation gate — if it's absent the generator never emits the service block, making the Compose profile redundant and harmful.
Review
Correctness
The root cause analysis in the comment is accurate. Docker Compose orphan detection considers a profile-gated service "not part of the current project" when no profile is active, which is exactly the condition that triggers removal. Removing the key means all emitted services are unconditionally part of the compose project, matching the intended lifecycle.
hire-agent.sh instruction update
The old message
docker compose --profile ${service_name} up -d ${service_name}would have broken immediately after this fix (no profile to activate). Updating it todisinto upis correct and keeps the UX consistent with how every other service is started.Scope
One line dropped in the generator template, one line updated in the post-hire message, plus an explanatory comment. Tight, minimal, and directly addresses the stated issue.
AGENTS.md / documentation
The profiles behaviour was not documented in AGENTS.md as a design decision, so no documentation update is required. The inline comment in generators.sh adequately captures the reasoning for future maintainers.
No concerns.
Verdict
APPROVE — Correctly removes redundant profile-gate that caused orphan removal; TOML-driven emission is the right activation mechanism
Reviewed at
802a548| AGENTS.mdAI Review: APPROVE — Correctly removes redundant profile-gate that caused orphan removal; TOML-driven emission is the right activation mechanism