What to build
The PR primitive — the smallest version that supports both human-authored and (eventually) Agent-authored PRs.
- Web UI: from a Repository, a "New Pull Request" flow lets the user pick a source and destination branch, see the diff, and submit. PR detail page shows the diff, a top-level comment field, and a "Merge" button.
platform-api: POST /repos/:o/:n/pulls, GET /repos/:o/:n/pulls, GET /pulls/:id, POST /pulls/:id/comments, POST /pulls/:id/merge.
GitRepository.Diff and GitRepository.Merge extended to support PR diff and merge-commit creation.
- On merge: destination branch advances, PR transitions to
merged, a pr.merged event is published.
- On PR creation: a
pr.opened event is published. (Reviewer Agent in slice 10 consumes this.)
- Comments stored in
platform.pr_comments. Author is either a human user or, later, the Reviewer Agent (a special system actor).
Acceptance criteria
Blocked by
What to build
The PR primitive — the smallest version that supports both human-authored and (eventually) Agent-authored PRs.
platform-api:POST /repos/:o/:n/pulls,GET /repos/:o/:n/pulls,GET /pulls/:id,POST /pulls/:id/comments,POST /pulls/:id/merge.GitRepository.DiffandGitRepository.Mergeextended to support PR diff and merge-commit creation.merged, apr.mergedevent is published.pr.openedevent is published. (Reviewer Agent in slice 10 consumes this.)platform.pr_comments. Author is either a human user or, later, the Reviewer Agent (a special system actor).Acceptance criteria
main, see the diff, and merge it.git clonereflects the merged state onmain.pr.openedandpr.mergedevents are emitted to the EventBus and observable in logs.Blocked by