Files
oh-my-pi/python/robomp/src/prompts/todo_phases.toml
T
can1357 b503f7d86b feat(robomp): added incoming PR review feature with classify and submit
- Added `review_pr` task that checks out PR head in a detached worktree, classifies rank/type/area, and posts a batched GitHub review as `event=COMMENT`.
- Added four new host tools: `fetch_pr`, `classify_pr`, `pr_review_comment`, and `submit_pr_review`; review tools self-gate on `review_mode`, push/open-PR tools refuse when `review_mode` is set.
- Added sqlite staging table `pr_review_comments` with `stage_review_comment`, `list_staged_review_comments`, and `clear_staged_review_comments` DAOs.
- Routed `pull_request.opened/reopened/ready_for_review` to `review_pr` and extended `pull_request.closed` cleanup to any tracked PR regardless of author.
2026-06-02 08:23:09 +02:00

50 lines
1.0 KiB
TOML

[[triage_issue]]
name = "Classify"
tasks = [
"Read the issue body + every prior comment",
"Call classify_issue with primary type + labels",
]
[[triage_issue]]
name = "Respond"
tasks = [
"Branch on the classification (see system prompt)",
"Bug: repro_record, fix, open PR. Else: one gh_post_comment, stop.",
]
[[review_pr]]
name = "Orient"
tasks = [
"Call fetch_pr and read the changed files",
"Compare the PR head against its base",
]
[[review_pr]]
name = "Classify"
tasks = [
"Call classify_pr with rank, type, and areas",
]
[[review_pr]]
name = "Review"
tasks = [
"Stage inline findings with pr_review_comment",
"Call submit_pr_review once with the summary",
]
[[handle_comment]]
name = "Follow up"
tasks = [
"Read the new comment in full",
"Decide the action it demands",
"Apply the change, then gh_post_comment reply",
]
[[handle_review]]
name = "Review response"
tasks = [
"Read the review comment in full",
"Address the requested change in the worktree",
"gh_push_branch, then gh_post_comment reply",
]