Skip to content

fix(session): allow claiming open draft PRs#437

Open
nic-kahuna wants to merge 1 commit into
aoagents:mainfrom
nic-kahuna:fix/claim-open-draft-pr
Open

fix(session): allow claiming open draft PRs#437
nic-kahuna wants to merge 1 commit into
aoagents:mainfrom
nic-kahuna:fix/claim-open-draft-pr

Conversation

@nic-kahuna

Copy link
Copy Markdown

Summary

  • allow a worker session to claim an open draft pull request
  • preserve the observed draft fact on the claimed pull-request record
  • keep merged and closed pull requests unclaimable

Draft is an integration-readiness state, not a terminal ownership state. Rejecting drafts prevented AO from durably attaching the worker that was still implementing or repairing the pull request.

Verification

  • go test ./internal/service/session
  • go build ./...
  • go test -race ./...

Fixes #436.

Draft is an integration-readiness state, not a terminal ownership state. Preserve the draft fact while allowing the claim; merged and closed PRs remain rejected.\n\nFixes aoagents#436.
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.

claim-pr rejects open draft pull requests as PR_NOT_OPEN

1 participant