fix: fix: hire-an-agent formula lookup fails for agents with run- prefix formulas (#213) #218
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
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#218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-213"
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 #213
Changes
AI Review
Summary
The fix adds a fallback lookup from
${role}.tomltorun-${role}.tomlwhen the first path does not exist. This correctly handles agents whose formulas use therun-prefix convention (e.g.run-gardener.toml,run-architect.toml).Assessment
--formulais not explicitly provided, and the existing validation at line 2614 still catches the case where neither file exists."${formula_path}","${FACTORY_ROOT}/formulas/run-${role}.toml").${role}.tomlformulas (e.g.dev,review-pr) continue to work as before.Minor nit (not blocking)
bin/disinto:2615: When neither${role}.tomlnorrun-${role}.tomlexists, the error message only reports therun-${role}path. A message likeformula not found: tried ${role}.toml and run-${role}.tomlwould 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.mdAI Review: APPROVE — Correct minimal fix: fallback to run-${role}.toml when ${role}.toml is absent