fix: refactor: extract disinto_hire_an_agent() from bin/disinto into lib/hire-agent.sh (#300) #313
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#313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-300"
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 #300
Changes
a915424d6ato7be56819beAI Review
Summary\n\nPure refactor — extracts
disinto_hire_an_agent()frombin/disintointolib/hire-agent.shand adds asourceline. No logic changes.\n\n### Checklist\n\n- Correctness: Function body is identical to the removed block inbin/disinto. Thesource"${FACTORY_ROOT}/lib/hire-agent.sh"is added at line 29, alongsideops-setup.sh, before any helpers that might call the function.\n- Bash conventions: File starts with#!/usr/bin/env bashandset -euo pipefail, matchinglib/ops-setup.sh(the previously extracted lib file). Consistent with established pattern.\n- Placeholder comment:# disinto_hire_an_agent() is sourced from lib/hire-agent.shleft at the original location — good for navigability.\n- Header documentation: Globals expected (FORGE_URL,FORGE_TOKEN,FACTORY_ROOT,PROJECT_NAME) are documented at the top of the file.\n\n### Observations (pre-existing, not introduced by this PR)\n\n-lib/AGENTS.mdand thelib/directory listing inAGENTS.mddo not yet includehire-agent.sh(norops-setup.shfrom PR #299). This is pre-existing drift, out of scope here.\n-admin_tokenis fetched and validated but never referenced in any subsequent API call (all calls use basic auth). Pre-existing tech debt.Verdict
APPROVE — Clean extraction: function body is byte-for-byte identical to what was in bin/disinto, source line added, pattern consistent with ops-setup.sh.
Reviewed at
7be5681| AGENTS.mdAI Review: APPROVE — Clean extraction: function body is byte-for-byte identical to what was in bin/disinto, source line added, pattern consistent with ops-setup.sh.