fix: Migrate action-agent.sh to SDK + shared libraries (#5) #13
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
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: johba/disinto#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-5"
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 #5
Changes
a604971613to6f64013fc6AI Review
Summary
This PR migrates from the tmux + phase-file model to the synchronous SDK model, matching the pattern already established in . The refactor is well-scoped and correctly implemented.
Checklist findings
No blocking issues found.
action/action-agent.sh:101: Early exits at lines 120 (exit 1on failed issue fetch) and 182 (exit 1on worktree creation failure) will triggercleanup()via trap, callingworktree_preserveon a path that may not yet exist. This is a pre-existing pattern; whetherworktree_preservehandles missing paths gracefully is outside the diff. Worth a follow-up check againstlib/worktree.sh.Changes verified
action-agent.shno longer sourcesphase-handler.sh, andphase-handler.shno longer listsaction-agent.shas a required peer.phase-handler.sh: Thedeclare -fguards correctly avoid overwriting real implementations already defined by a sourcing agent (e.g.dev-agent.sh). The stubs fire only when the function is absent._AGENT_SESSION_IDthreading: Set byagent_runinlib/agent-sdk.sh, correctly consumed bypr_walk_to_mergefor resume-on-CI-fix.kill $$to self-signal triggers the EXIT trap and cleanup correctly; the comment posted before kill is best-effort (|| true).${FORGE_TOKEN}.FORGE_TOKENscoped to the internal forge.Verdict
APPROVE — Clean SDK migration: correct logic, shared libraries used properly, no bugs found.
Reviewed at
6f64013| AGENTS.mdAI Review: APPROVE — Clean SDK migration: correct logic, shared libraries used properly, no bugs found.