You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b0a3945
Browse filesBrowse the repository at this point in the historyBrowse files
If `uvx --from pr-search-cli pr-search ...` fails because `uvx` or the `pr-search` launcher is not available, ask the user to make that command work before continuing.
82
+
83
+
If `prtags auth status` shows that the user is not logged in, ask the user to run:
84
+
85
+
```bash
86
+
prtags auth login
87
+
```
88
+
89
+
Resume only after the missing tool or login state has been fixed.
90
+
91
+
## Read-Path Default
92
+
93
+
For read-only GitHub operations in this workflow, use `ghr` as the default CLI.
94
+
Treat it as a drop-in replacement for the `gh` read operations you would normally use for PRs, issues, comments, reviews, and duplicate-search evidence.
95
+
96
+
Only fall back to `gh` when `ghr` is failing for a concrete reason, such as:
97
+
98
+
- the mirrored object is not present yet
99
+
- the mirror data is clearly stale or incomplete for the decision you need to make
100
+
- the `ghr` command errors, times out, or does not expose the specific read you need
101
+
102
+
When you fall back to `gh`, note that you did so and why.
103
+
104
+
If `ghr` is missing a fresh PR or issue but `gh` can read it, you may use `gh` for the read-side judgment.
105
+
If a later `prtags` target-level write fails because the same object is still missing from `ghreplica`, stop and report that the mirror has not caught up yet instead of forcing the write.
106
+
74
107
## Goal
75
108
76
109
For each target PR or issue:
@@ -86,10 +119,13 @@ For each target PR or issue:
86
119
Use the tools with these boundaries:
87
120
88
121
-`ghreplica` is the raw evidence source
122
+
- use `ghr` first for normal GitHub read operations in this workflow
89
123
- use it for title/body/comment search, related PRs, overlapping files, overlapping ranges, and current PR or issue status
124
+
- resort to `gh` only when `ghr` cannot provide the needed read cleanly
90
125
-`pr-search-cli` is candidate generation and ranking
91
126
- use it to suggest likely duplicate PRs or issue-cluster context
92
127
- do not treat it as final truth
128
+
- do not create or expand a duplicate group only because `pr-search-cli` put multiple PRs in the same issue or duplicate cluster
93
129
-`prtags` is the maintainer curation layer
94
130
- use it to create or reuse one duplicate group
95
131
- use it to save the duplicate status, confidence, rationale, and group summary
@@ -146,6 +182,7 @@ Examples:
146
182
## Evidence Checklist
147
183
148
184
Before declaring a duplicate, gather evidence from at least two categories.
185
+
Same-issue or same-cluster output from `pr-search-cli` counts only as candidate generation, not as one of the required proof categories by itself.
149
186
150
187
For PRs:
151
188
@@ -168,6 +205,7 @@ If you only have wording similarity, that is not enough.
168
205
## Step 1: Read The Target
169
206
170
207
Start by reading the target itself.
208
+
Use `ghr` first for this step even if you would normally reach for `gh`.
171
209
172
210
For a PR:
173
211
@@ -197,6 +235,7 @@ Record:
197
235
## Step 2: Search Broadly With ghreplica
198
236
199
237
Use `ghreplica` first because it is the most direct evidence source.
238
+
Do not switch to `gh` for ordinary reads unless `ghr` is missing data or failing.
200
239
201
240
### PR duplicate search
202
241
@@ -253,6 +292,9 @@ Interpretation:
253
292
-`issues for-pr` shows which issue clusters the PR appears to belong to
254
293
-`issues duplicate-prs` is useful for spotting already-known duplicate PR patterns
255
294
295
+
Treat every `pr-search-cli` result as a hint to investigate, not as enough evidence to create or widen a duplicate group.
296
+
Multiple PRs can share the same issue or issue cluster while still taking meaningfully different fix paths.
297
+
256
298
For an issue:
257
299
258
300
- use `ghreplica` first to find candidate PRs or issue wording
@@ -302,6 +344,9 @@ Reuse an existing group when:
302
344
- it already contains clearly related members
303
345
- adding the target would keep the group coherent
304
346
347
+
Do not widen an existing group just because `pr-search-cli` placed several PRs under the same issue or duplicate cluster.
348
+
Confirm that the actual implementation path and maintainer intent still match before adding the new member.
349
+
305
350
Create a new group only when no existing group clearly fits.
306
351
307
352
Create the group with a problem-based title and an intent-based description:
@@ -378,6 +423,9 @@ prtags annotation group set <group-id> \
378
423
379
424
When the evidence is incomplete, set `duplicate_status=candidate` and lower the confidence.
380
425
426
+
If a per-PR or per-issue annotation write fails because `prtags` cannot resolve the target through `ghreplica`, do not force a fallback write path.
427
+
Keep the group state you were able to write, report that the mirror is still missing the target object, and defer the target-level annotation until `ghreplica` catches up.
428
+
381
429
## Step 8: Let prtags Sync The Group Comment
382
430
383
431
Do not tell the agent to create a GitHub comment directly.
0 commit comments