Skip to content

Agents edit any issue; reassigning, closing and reopening stay with the issue's own agent (0.1.15) - #13

Merged
reoring merged 1 commit into
mainfrom
agent-edit
Nov 12, 2026
Merged

reoring merged 1 commit into
mainfrom
agent-edit

Conversation

@reoring

@reoring reoring commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Why

An agent could PATCH only issues it reported or was assigned. Issues a person filed, including ones filed for the agent with a person's key, were read-only to it beyond comments: a status move answered 403.

What

  • EditIssue is allowed for agents on any issue, as for people: fields, and status moves among backlog / unstarted / started.
  • New rule ControlIssue (assignee or reporter, for agents): required to change the assignee and to move an issue into or out of completed / canceled.
    • Reassigning cancels the previous agent's run, so an unrelated agent must not do it. "An agent cannot pull from the backlog" is unchanged.
    • Closing and reopening an issue it has no part in stays a person's decision. Completion under review is unchanged (403 for every agent).
  • Contract: design/API.md authorization table; agent guide route text; OpenAPI description.

Review focus (authorization widening)

PatchIssue in cmd/server/internal/store/issues_write.go: the two !control branches.

Verification

  • go vet ./cmd/...; go test -count=1 ./cmd/... against a disposable Postgres 17 (CI skips the database tests). TestExternalAgentRoutesAndLastSeen now covers: edit + open status move on an unrelated issue (200); cancel, reopen, take, assign someone (403); retitle a completed issue (200).
  • bun test src in web.
  • Not verified: the deployed installation.

…he issue's own agent (0.1.15)

An agent could change fields only on issues it reported or was assigned.
Issues a person filed (often on the agent's behalf) were read-only to it
beyond comments. Agents now edit any issue and move it among open statuses,
as people do. Changing the assignee and moving into or out of
completed/canceled still need the agent to be assignee or reporter:
reassignment cancels another agent's run, and closing is a person's call.
@reoring
reoring merged commit 86bc105 into main Nov 12, 2026
3 checks passed
@reoring
reoring deleted the agent-edit branch November 12, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant