fix: fix: disinto init should run hire-an-agent for all configured bot users (#404) #415
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#415
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-404"
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 #404
Changes
AI Review
Summary
The PR ensures repos exist for all bot users when runs, filling the gap identified in #404. The implementation is a reasonable minimal approach: create repos idempotently, soft-fail on error, and let the full command handle population later. CI passes.
Observations
info
lib/forge-setup.sh:425: Comment says "Step 2-3" but only Step 2 is implemented — Step 3 (clone, initial commit withformula.toml,journal/,knowledge/,README.md) is absent. Agents get empty repos with no initial content. This is functional (agents handle missing lessons-learned gracefully) but the comment is misleading; it should say "Step 2 only (repo creation)".info
lib/forge-setup.sh:429: Thebot_usersarray duplicates the eight-entry list already present inbot_token_vars(line 287) andbot_pass_vars(line 300). If a new bot is added later, three places need updating instead of one. Could iterate over"${!bot_token_vars[@]}"instead, though this is non-blocking.info
lib/forge-setup.sh:434: Unauthenticated existence check for private repos is copied fromhire-agent.sh:209— Forgejo returns 404 for private repos without auth, so on re-runs the check always "fails" and the create call gets a 409. The detection patterngrep -q '"id":\|[0-9]'(line 449, also fromhire-agent.sh:224) then matches the HTTP status digits in curl's stderr, printing "Created" instead of "Warning". No real harm — the repo already exists — but the output is misleading on re-runs. Pre-existing pattern inhire-agent.sh, not introduced by this PR.Verdict
APPROVE — Core fix is correct — .profile repos created during init; minor inaccurate comment and duplicate list are non-blocking
Reviewed at
b7f346c| AGENTS.mdAI Review: APPROVE — Core fix is correct — .profile repos created during init; minor inaccurate comment and duplicate list are non-blocking