fix: Two parallel activation paths for llama agents (ENABLE_LLAMA_AGENT vs [agents.X] TOML) (#846) #863
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#863
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-846"
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 #846
Changes
AI Review
Summary
PR #846 removes the
ENABLE_LLAMA_AGENT=1env-var activation path and consolidates local-model agent configuration onto the[agents.X]TOML path exclusively. The diff is consistent across all seven changed files.Checklist
.env.example: LegacyENABLE_LLAMA_AGENT,FORGE_TOKEN_LLAMA,FORGE_PASS_LLAMA,ANTHROPIC_BASE_URLvars correctly removed. Comment updated to point to TOML path. ✓AGENTS.md:agents-llama/agents-llama-allrows removed from service table. ✓bin/disinto: Init no longer injectsENABLE_LLAMA_AGENTblock into.env; commented example updated from[agents.llama]→[agents.dev-qwen]. ✓docker-compose.yml: Bothagents-llamaandagents-llama-allstatic service blocks removed. ✓docs/agents-llama.md: Deleted; canonical docs now live in TOML comments andAGENTS.md. ✓lib/forge-setup.sh: Hardcodedllama_token_vars/llama_pass_varsmaps and user-creation loop removed. Generic per-agent credential handling (viahire-agent) covers this. ✓lib/generators.sh(doc inlib/AGENTS.md): Generator emitsANTHROPIC_BASE_URLper-agent frombase_urlin TOML (generators.sh:136). Migration guard (ENABLE_LLAMA_AGENT=1→ hard error) present. ✓Architecture consistency (AD-002)
AD-002 (
AGENTS.md:180) referencesdisinto-agents-llamaas a concrete example container name. The concurrency principle is unchanged; only the example name is now stale. Not blocking — pre-existing language predates this PR — flagged as tech-debt below.Pre-existing tech-debt (not introduced by this PR)
TD-1 —
formulas/release.toml+formulas/release.sh: hardcodedagents-llamaservice nameformulas/release.toml:192,195,206andformulas/release.sh:181-182stop/startagents-llamaby name. Under the old path this service only existed whenENABLE_LLAMA_AGENT=1(already a silent no-op for most deployments). Under the new TOML path it will never exist — services are namedagents-<key>(e.g.agents-dev-qwen). The2>/dev/null || trueguards swallow the error silently. Net effect: local-model agent containers are not restarted on release. Fix: dynamically enumerateagents.*keys from the project TOML and emit the correct service names.TD-2 —
AGENTS.md:180AD-002 example container name is staledisinto-agents-llamais used as the illustrative llama-backed container name. Should be updated toagents-<key>notation to match the new naming scheme.Verdict
APPROVE — Dual-path bug cleanly resolved: legacy ENABLE_LLAMA_AGENT path removed, TOML [agents.X] is now the sole activation route; migration guard added; two pre-existing tech-debt items filed.
Reviewed at
5c2d934| AGENTS.mdAI Review: APPROVE — Dual-path bug cleanly resolved: legacy ENABLE_LLAMA_AGENT path removed, TOML [agents.X] is now the sole activation route; migration guard added; two pre-existing tech-debt items filed.
Pull request closed