Skip to content

Commit b0a3945

Browse files
authored
Merge branch 'openclaw:main' into fix/issue-69605
2 parents e2121cb + fb70d3a commit b0a3945

258 files changed

Lines changed: 10442 additions & 1337 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/tag-duplicate-prs-issues/SKILL.md‎

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,49 @@ prtags auth status
6161

6262
The expected outcome is that `prtags` stores the logged-in maintainer identity locally and uses that account for authenticated writes.
6363

64-
### Verify the tools before triage
64+
## Missing-Setup Rule
6565

66-
Before using this skill, make sure all three tools are available:
66+
Do not require an up-front preflight before starting the workflow.
67+
Proceed with the normal steps until you actually need a tool or account state.
68+
69+
As soon as you discover that a required CLI is missing or `prtags` is not logged in, stop immediately.
70+
Do not continue in a partial mode after that point.
71+
72+
If `ghr` is missing, ask the user to run the `ghreplica` install command.
73+
74+
If `prtags` is missing, ask the user to run both CLI install commands:
6775

6876
```bash
69-
ghr repo view openclaw/openclaw
70-
prtags auth status
71-
uvx --from pr-search-cli pr-search status
77+
curl -fsSL https://raw.githubusercontent.com/dutifuldev/ghreplica/main/scripts/install-ghr.sh | bash -s -- --bin-dir "$HOME/.local/bin"
78+
curl -fsSL https://raw.githubusercontent.com/dutifuldev/prtags/main/scripts/install-prtags.sh | bash -s -- --bin-dir "$HOME/.local/bin"
7279
```
7380

81+
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+
74107
## Goal
75108

76109
For each target PR or issue:
@@ -86,10 +119,13 @@ For each target PR or issue:
86119
Use the tools with these boundaries:
87120

88121
- `ghreplica` is the raw evidence source
122+
- use `ghr` first for normal GitHub read operations in this workflow
89123
- 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
90125
- `pr-search-cli` is candidate generation and ranking
91126
- use it to suggest likely duplicate PRs or issue-cluster context
92127
- 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
93129
- `prtags` is the maintainer curation layer
94130
- use it to create or reuse one duplicate group
95131
- use it to save the duplicate status, confidence, rationale, and group summary
@@ -146,6 +182,7 @@ Examples:
146182
## Evidence Checklist
147183

148184
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.
149186

150187
For PRs:
151188

@@ -168,6 +205,7 @@ If you only have wording similarity, that is not enough.
168205
## Step 1: Read The Target
169206

170207
Start by reading the target itself.
208+
Use `ghr` first for this step even if you would normally reach for `gh`.
171209

172210
For a PR:
173211

@@ -197,6 +235,7 @@ Record:
197235
## Step 2: Search Broadly With ghreplica
198236

199237
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.
200239

201240
### PR duplicate search
202241

@@ -253,6 +292,9 @@ Interpretation:
253292
- `issues for-pr` shows which issue clusters the PR appears to belong to
254293
- `issues duplicate-prs` is useful for spotting already-known duplicate PR patterns
255294

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+
256298
For an issue:
257299

258300
- use `ghreplica` first to find candidate PRs or issue wording
@@ -302,6 +344,9 @@ Reuse an existing group when:
302344
- it already contains clearly related members
303345
- adding the target would keep the group coherent
304346

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+
305350
Create a new group only when no existing group clearly fits.
306351

307352
Create the group with a problem-based title and an intent-based description:
@@ -378,6 +423,9 @@ prtags annotation group set <group-id> \
378423

379424
When the evidence is incomplete, set `duplicate_status=candidate` and lower the confidence.
380425

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+
381429
## Step 8: Let prtags Sync The Group Comment
382430

383431
Do not tell the agent to create a GitHub comment directly.

‎.github/labeler.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@
241241
- changed-files:
242242
- any-glob-to-any-file:
243243
- "extensions/open-prose/**"
244+
"extensions: tokenjuice":
245+
- changed-files:
246+
- any-glob-to-any-file:
247+
- "extensions/tokenjuice/**"
244248
"extensions: webhooks":
245249
- changed-files:
246250
- any-glob-to-any-file:

‎.github/workflows/auto-response.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
permissions:
2323
issues: write
2424
pull-requests: write
25-
runs-on: blacksmith-16vcpu-ubuntu-2404
25+
runs-on: ubuntu-24.04
2626
steps:
2727
- uses: actions/create-github-app-token@v3
2828
id: app-token

0 commit comments

Comments
 (0)