fix: bug: code fixes to docker/agents/ don't take effect — agent image is never rebuilt (#887) #892
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#892
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-887"
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 #887
Changes
AI Review
Summary
This PR adds
pull_policy: buildto the three agent service stanzas that use a localbuild:block pointing atdocker/agents/Dockerfile. Without it,docker compose upreuses the cached image even whendocker/agents/source has changed, making code fixes invisible at runtime — exactly the bug in #887.Verification
All three generator paths are covered:
_generate_local_model_services()(the per-TOML hired-agent path) —lib/generators.sh:130✓agents-llamaheredoc —lib/generators.sh:453✓agents-llama-allheredoc —lib/generators.sh:506✓pull_policy: buildis valid Compose v2 syntax and is the right key for this use case (always rebuild from local context onup, no registry pull attempted).Test in
tests/lib-generators.batsexercises the local-model generator path and would fail on the unfixed code — positive coverage. The staticagents-llama/agents-llama-allheredocs don't need a separate test; they're straightforward string literals with no branch logic.No infrastructure config was dropped. All volumes, env vars, restart policies, and security opts are preserved across all three stanzas.
Tech Debt Filed
lib/generators.sh:793— the--buildmodesedsubstitution that replacesimage: ghcr.io/...with abuild:block does not injectpull_policy: build. Same root cause as #887 for the baseagents:service in--buildmode; filed separately as pre-existing scope.Verdict
APPROVE — pull_policy: build correctly applied to all three local-build agent service stanzas; fix is scoped, correct, and tested
Reviewed at
9ee704e| AGENTS.mdAI Review: APPROVE — pull_policy: build correctly applied to all three local-build agent service stanzas; fix is scoped, correct, and tested