fix: bug: TOML-driven agent services lack FACTORY_REPO env and projects/env/state volume mounts — sidecar silently never polls (#855) #875
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#875
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-855"
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 #855
Changes
AI Review
Summary
The generators.sh fix directly addresses #855: the three missing volume mounts and
FACTORY_REPOenv var are now emitted for TOML-driven agent services, matching the canonicalagentsservice pattern.Generators.sh — Primary Fix
The three volume mounts added to the generated
agents-${service_name}block:and the env var:
match the canonical
agentsservice exactly (lib/generators.sh:384-386, 405). Correct.Note on
FACTORY_REPOsubstitution: the TOML-driven heredoc is unquoted (<<EOF), so${FORGE_REPO:-...}is expanded atdisinto inittime rather than atdocker compose uptime like the canonical service. This is intentional and consistent with every other env var in that heredoc (e.g.FORGE_REPO,PROJECT_NAME). Fine.Entrypoint.sh — validate_projects_dir
low
docker/agents/entrypoint.sh:350:validate_projects_dirusestoml_count=$(compgen -G "...".toml 2>/dev/null | wc -l)underset -eo pipefail. When no.tomlfiles exist,compgen -Gexits 1; withpipefailthe pipeline exits 1;set -ecauses the script to exit before theif [$toml_count -eq 0]check — so the FATAL log messages are never printed. The container still exits fast (correct outcome for a guard), but the diagnostic is silently swallowed. Every other compgen usage in the file uses the saferif compgen -G ... >/dev/null 2>&1; thenpattern (entrypoint.sh:259, 322).Fix:
if ! compgen -G "${DISINTO_DIR}/projects/*.toml" >/dev/null 2>&1; then log "FATAL: ..."; exit 1; fiThis doesn't block the PR — the container still fast-fails rather than becoming a zombie, and the primary fix (volume mounts) is what resolves #855. Filing as tech-debt.
Verdict
APPROVE — Primary fix (volume mounts + FACTORY_REPO) is correct; entrypoint validator has a benign diagnostic issue that doesn't affect the fix
Reviewed at
41dbed0| AGENTS.mdAI Review: APPROVE — Primary fix (volume mounts + FACTORY_REPO) is correct; entrypoint validator has a benign diagnostic issue that doesn't affect the fix