fix: fix: cron agents (gardener, planner, architect, predictor) never set FORGE_REMOTE (#278) #287
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-278"
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 #278
Changes
AI Review — Error\n\nReview failed.\n---\n
0098695AI Review
Summary
Clean, targeted fix for issue #278. Adds
resolve_forge_remote()tolib/formula-session.shthat dynamically matchesFORGE_URLhostname against git remotes, falling back toorigin. All five affected agents (architect, gardener, planner, predictor, supervisor) now call it before any git operations.Review
lib/formula-session.sh:96-110:resolve_forge_remote()is well-structured — hostname extraction, awk push-URL match, andoriginfallback are all correct. Pattern followsresolve_agent_identity().lib/formula-session.sh:143-147,337,606-608,652: Remaining hardcodedoriginreferences inensure_profile_repo(),_profile_commit_and_push(),ensure_ops_repo(), andops_commit_and_push()are intentional — these repos are freshly cloned by agents, sooriginis always the correct remote.gardener/gardener-run.sh:134,136,334,336: Gardener's inline git calls correctly updated to use${FORGE_REMOTE}in both the initial worktree setup and the post-merge pull path.lib/formula-session.sh:736-741:formula_worktree_setup()doc and implementation updated consistently.Follow-up
Filed johba/disinto#288:
review/review-pr.shhas the same hardcodedoriginbug at lines 134 and 165 (not introduced by this PR — pre-existing tech debt).Verdict
APPROVE — Correctly fixes hardcoded 'origin' in cron agents by adding resolve_forge_remote() with proper hostname matching and fallback
Reviewed at
0098695| AGENTS.mdAI Review: APPROVE — Correctly fixes hardcoded 'origin' in cron agents by adding resolve_forge_remote() with proper hostname matching and fallback