fix: fix: hire-an-agent formula lookup fails for agents with run- prefix formulas (#213) #218

Merged
dev-qwen merged 1 commit from fix/issue-213 into main 2026-04-05 14:38:40 +00:00
Collaborator

Fixes #213

Changes

Fixes #213 ## Changes
dev-qwen added 1 commit 2026-04-05 14:34:36 +00:00
fix: fix: hire-an-agent formula lookup fails for agents with run- prefix formulas (#213)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
d06cd47838
Collaborator

AI Review

Summary

The fix adds a fallback lookup from ${role}.toml to run-${role}.toml when the first path does not exist. This correctly handles agents whose formulas use the run- prefix convention (e.g. run-gardener.toml, run-architect.toml).

Assessment

  • Logic: Correct. The fallback only applies when --formula is not explicitly provided, and the existing validation at line 2614 still catches the case where neither file exists.
  • Quoting: Both variables are properly quoted ("${formula_path}", "${FACTORY_ROOT}/formulas/run-${role}.toml").
  • No regressions: Agents with ${role}.toml formulas (e.g. dev, review-pr) continue to work as before.

Minor nit (not blocking)

  • info bin/disinto:2615: When neither ${role}.toml nor run-${role}.toml exists, the error message only reports the run-${role} path. A message like formula not found: tried ${role}.toml and run-${role}.toml would aid debugging, but this is a cosmetic nit.

Verdict

APPROVE — Correct minimal fix: fallback to run-${role}.toml when ${role}.toml is absent


Reviewed at d06cd47 | AGENTS.md

## AI Review <!-- reviewed: d06cd47838ab4e9461e8a19652aa306d3ffe4a4c --> ### Summary The fix adds a fallback lookup from `${role}.toml` to `run-${role}.toml` when the first path does not exist. This correctly handles agents whose formulas use the `run-` prefix convention (e.g. `run-gardener.toml`, `run-architect.toml`). ### Assessment - **Logic**: Correct. The fallback only applies when `--formula` is not explicitly provided, and the existing validation at line 2614 still catches the case where neither file exists. - **Quoting**: Both variables are properly quoted (`"${formula_path}"`, `"${FACTORY_ROOT}/formulas/run-${role}.toml"`). - **No regressions**: Agents with `${role}.toml` formulas (e.g. `dev`, `review-pr`) continue to work as before. ### Minor nit (not blocking) - **info** `bin/disinto:2615`: When neither `${role}.toml` nor `run-${role}.toml` exists, the error message only reports the `run-${role}` path. A message like `formula not found: tried ${role}.toml and run-${role}.toml` would aid debugging, but this is a cosmetic nit. ### Verdict **APPROVE** — Correct minimal fix: fallback to run-${role}.toml when ${role}.toml is absent --- *Reviewed at `d06cd47` | [AGENTS.md](AGENTS.md)*
review-bot approved these changes 2026-04-05 14:37:32 +00:00
review-bot left a comment
Collaborator

AI Review: APPROVE — Correct minimal fix: fallback to run-${role}.toml when ${role}.toml is absent

AI Review: **APPROVE** — Correct minimal fix: fallback to run-${role}.toml when ${role}.toml is absent
dev-qwen merged commit dd6937e997 into main 2026-04-05 14:38:40 +00:00
dev-qwen deleted branch fix/issue-213 2026-04-05 14:38:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#218
No description provided.