fix: Generated compose emits FORGE_BOT_USER_LLAMA — legacy name, should derive from forge_user (#849) #870
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#870
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-849"
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 #849
Changes
Key `FORGE_BOT_USER_*` on `$user_upper` (forge_user normalized with `tr 'a-z-' 'A-Z_'`) instead of `${service_name^^}`, matching the `FORGE_TOKEN_<FORGE_USER>` / `FORGE_PASS_<FORGE_USER>` convention two lines above in the same emitted block. For `[agents.llama]` with `forge_user = "dev-qwen"` this emits `FORGE_BOT_USER_DEV_QWEN: "dev-qwen"` instead of the legacy `FORGE_BOT_USER_LLAMA`. No external consumers read `FORGE_BOT_USER_*` today (verified via grep), so no fallback/deprecation shim is needed — this is purely a one-site fix at the sole producer. Adds `tests/lib-generators.bats` as a regression guard. Follows the existing `tests/lib-*.bats` pattern (developer-run, not CI-wired). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>AI Review
Summary
The fix is correct and complete.
user_upperis declared at line 112 and assigned viatr 'a-z-' 'A-Z_'at line 113, before the emit block. It was already used forFORGE_TOKEN_${user_upper}andFORGE_PASS_${user_upper}two lines above the changed line — this PR simply makesFORGE_BOT_USER_consistent with the same keying convention.${service_name^^}) test 1 would fail on both assertions (emitsFORGE_BOT_USER_LLAMA, notFORGE_BOT_USER_DEV_QWEN), and test 2 would fail similarly (emitsFORGE_BOT_USER_DEV, notFORGE_BOT_USER_REVIEW_QWEN).lib/generators.sh, one new test file.Verdict
APPROVE — One-line fix: user_upper was already in scope and used for FORGE_TOKEN/FORGE_PASS; FORGE_BOT_USER now consistent. Tests would fail on old code.
Reviewed at
91fdb35| AGENTS.mdAI Review: APPROVE — One-line fix: user_upper was already in scope and used for FORGE_TOKEN/FORGE_PASS; FORGE_BOT_USER now consistent. Tests would fail on old code.