Repository navigation
chore: automate safe repository triage - #1261
Conversation
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 7:25 AM ET / 11:25 UTC. ClawSweeper reviewWhat this changesThe PR adds a daily GitHub triage report and a manually dispatched cleanup path that can remove an expired active-ownership label after fresh checks. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep open for maintainer authorization and current-head authority-chain proof. This fresh collaborator PR adds a narrowly scoped label-removal capability, but its supplied evidence is mocked rather than a real GitHub Actions final-effect run. Priority: P2 Review scores
Verification
How this fits togetherThe repository workflow reads open issues and pull requests from GitHub to produce triage artifacts. A separate manually selected path rechecks ownership activity and may remove one operational status label. flowchart TD
A[Open issues and pull requests] --> B[Repository triage workflow]
B --> C[Read-only report collection]
C --> D[Markdown and JSON artifacts]
B --> E{Manual cleanup selected?}
E -->|Yes| F[Fresh ownership checks]
F --> G[Remove expired active-ownership label]
Decision needed
Why: The code introduces an authority-bearing GitHub token path that can mutate issue and pull-request labels; source review cannot establish its real endpoint behavior or the repository’s desired operational policy. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the read-only reporting design and land cleanup only after a redacted current-head Actions run proves both an eligible removal and rejection of a protected or recently active item before mutation. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction. The relevant outstanding check is a controlled current-head GitHub Actions execution of the new label-removal authority path. Is this the best way to solve the issue? Unclear. The read-only report plus narrowly allowlisted manual cleanup is a maintainable shape, but real final-effect proof and maintainer authorization are still required for the write path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6b23db113918. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 05c0be01-cea5-4583-a975-a8f81048a3e2
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 05c0be01-cea5-4583-a975-a8f81048a3e2
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 05c0be01-cea5-4583-a975-a8f81048a3e2
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 05c0be01-cea5-4583-a975-a8f81048a3e2
What Problem This Solves
Recurring repository triage requires manually correlating PR mergeability, base freshness, checks, proof state, authorship, ownership, routing lanes, and linked issue ownership. Active landing labels can also outlive real maintainer activity without a narrowly guarded cleanup path.
Why This Change Was Made
Adds a deterministic daily report workflow and checked-in Node report engine. Scheduled runs are read-only. An explicit manual operation can remove only
status: 🚢 actively landingafter a fresh API re-check and a documented seven-day inactivity window. It never merges or closes items.User Impact
Maintainers receive Markdown and JSON triage artifacts that classify docs-only, dependency, bot/repo-assist, platform, release/package, and stale/no-repro lanes. Issues with a current explicit open-PR reference are routed to that PR to discourage duplicate fixes. Legal null GraphQL connections and isolated API failures produce partial-data warnings instead of aborting the whole report.
Evidence
Sample output and the full permissions model are documented in
docs/REPOSITORY_TRIAGE.md.Change Type
Scope
winnodeValidation
node --test .github/scripts/repository-triage.test.cjs: 14 passed./scripts/validate-docs.ps1: 47 Markdown files passed./build.ps1: passeddotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 3,819 passed, 32 skippeddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --blame-hang-timeout 3m: blocked on the current host. The pre-existingBrowserProxyEndpointScopingTests.Diagnostics_NoOverride_TunnelWithoutBrowserProxyForward_DoesNotProbeTunnelLocalPlusTwohung after 2,275 passing tests, and the isolated testhost was stopped by the bounded hang timeout.PYTHONUTF8=1 python .agents/skills/autoreview/scripts/autoreview --mode local --parallel-tests "node --test .github/scripts/repository-triage.test.cjs": clean, no accepted or actionable findings on the final contracted-negation patch.Real Behavior Proof
eb45070fa1de1932e11984e11d66ab283605ae8anode --test .github/scripts/repository-triage.test.cjsyesonly for GitHubBEHIND, with lazy status refreshed once and unresolved state reportedunknown. Issue ownership ignores quoted, indented, inline-code, fenced-code, and negated linkage text. Report-only is the default; cleanup is manual, default-branch-pinned, exact-label-only, idempotent, and audited even when a later cleanup step fails.Security Impact
Yes, explain the risk and mitigation: The scheduled report job has onlycontents,checks,issues,pull-requests, andstatusesread access. A separate manually gated cleanup job addsissues: writeandpull-requests: writeonly because GitHub labels use those resources. Cleanup checks out the default branch with persisted credentials disabled and reruns deterministic tests before mutation. The implementation exposes no merge, close, comment, branch-update, or label-add operation and removes only the exact active-ownership label after a fresh item and timeline re-check. Bot, app, external, or unidentified activity cannot incorrectly qualify as trusted maintainer activity. The output directory exists before collection, top-level failures emit minimal durable artifacts, and uploads warn rather than masking an earlier root error. It does not execute pull request code.Compatibility and Migration
Review Conversations