fix: agent identity resolution copy-pasted 5 times — use resolve_agent_identity() #280
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#280
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The AGENT_IDENTITY resolution pattern is copy-pasted into each *-run.sh file:
Each copy uses a slightly different token variable but the pattern is identical: curl the /api/v1/user endpoint with the agent's token and extract the login.
Meanwhile, formula-session.sh:61 already has a reusable resolve_agent_identity() function that none of them call.
Fix
Replace all 5 copy-pasted blocks with a call to resolve_agent_identity(). The function already exists and handles the token lookup correctly.
Affected files
Acceptance criteria
Blocked — issue #280
no_push2026-04-06T09:54:06ZDiagnostic output