-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Description
Context
Retrospective from Codex on review/iteration workflow while finishing merged PR #398 ("Add Glutaric Aciduria (GA1) disorder entry").
I (Codex) needed several rounds of back-and-forth with reviewer comments before converging. The core problem was not only content quality, but process: triage, closure tracking, and schema-aware reviewer response discipline.
What Went Wrong (from Codex perspective)
- I did not build a complete unresolved-comment checklist up front and execute in one closure pass.
- I made a "validation-passing" fix (ellipsis snippets) that created reviewer friction and then had to be undone.
- I missed a slot/ontology mismatch (
GO:0004361MF term placed underbiological_processes) until reviewer feedback. - I missed canonical term-label casing consistency (
GO:0009063preferred term case mismatch) until review caught it. - I treated reviewer feedback as incremental edits rather than a structured response workflow with explicit "resolved/not resolved" state.
Proposal A: Strengthen .claude/skills/dismech-pr-review/SKILL.md
Add a mandatory review-response workflow section with concrete steps:
- Collect & Classify All Reviewer Items First
- Pull all unresolved comments from the target PR.
- Group by severity: Critical, Medium, Minor.
- Group by type: schema/ontology, evidence snippet, modeling, wording.
- Create a Resolution Table Before Editing
- Columns:
comment_id,severity,request,planned_action,accept/pushback,status. - Require explicit rationale for any pushback.
- Hard Guards (do not skip)
- Verify GO namespace placement (MF/BP/CC) against the schema slot semantics.
- Verify
preferred_termexactly matches canonical ontology label (including case). - For URL-based evidence: ensure snippet matches cached source text exactly (including markup tokens when relevant).
- Avoid introducing
...snippet edits unless explicitly justified; prefer exact source substrings.
- Validation Gate Before Commit
just validate <file>just validate-terms <file>just validate-references <file>- Include a short pass/fail summary in response to reviewer.
- Reviewer-Reply Template
For each critical comment:
CommentAction takenFile:lineValidation resultIf not accepted: rationale
Proposal B: Add New Skill: respond-to-reviewer
Create a dedicated skill focused on end-to-end reviewer comment closure.
Goal
Turn reviewer comments into a deterministic execution pipeline with explicit closure evidence.
Trigger
Use when user asks to:
- address PR comments/reviews,
- check unresolved comments,
- respond to Claude/Copilot reviewer feedback,
- determine if review concerns are fully addressed.
Workflow
- Fetch comments + unresolved threads.
- Build machine-readable checklist (severity, owner, acceptance decision).
- Apply edits in priority order.
- Run validation/test gates.
- Generate structured reply draft per comment with file/line refs.
- Re-check unresolved comments after push.
Required Outputs
review_response.mdartifact (or terminal summary) containing:- unresolved count before/after,
- per-comment disposition,
- validation commands + outcomes,
- explicit remaining risks/open questions.
Exit Criteria
- No unresolved critical comments, or
- explicit, documented pushback for remaining comments,
- validation gates pass for touched files.
Why this matters
This would reduce churn, reduce reviewer fatigue, and improve first-pass closure rate on curation-heavy PRs like #398.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request