Repository navigation
fix: avoid stalled maintainer author activity lookups - #130724
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
0389750 to
775b047
Compare
|
Preparation complete for 775b0478d575800246acca96f5a7d5e3e7c73100; this PR is not merged. CI run 33043732256 completed successfully, including the required The initial CI attempt found unchecked array access in the test fixture. Required entries are now asserted before use; the production helper, deadlines, and behavioral assertions are unchanged. After repair, The PR body retains the bounded live timings, offline pre-fix reproduction, and deliberately stopped broad-local-check limitation. No raw activity data or transcripts were uploaded. Final maintainer review has approved this exact head. The completed ClawSweeper review reports no actionable patch or security findings. Its remaining verification items are satisfied by the completed exact-head CI run above and the maintainer-verified bounded GitHub API/live helper proof recorded in the PR body; the reviewer’s DNS limitation does not replace that evidence. The automated “persistent cache schema” marker does not correspond to an OpenClaw schema change: this helper uses the existing GitHub CLI |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 1:57 AM ET / 05:57 UTC. ClawSweeper reviewWhat this changesThe PR replaces paginated GitHub activity scans with bounded search and contribution aggregates, then updates the maintainer guidance and regression fixtures. Merge readinessKeep open. This is an active maintainer-authored fix to current-main helper behavior, with no superseding main-branch implementation or discrete patch defect found. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe maintainer-review skill uses a shell helper to resolve an opener’s GitHub profile and summarize repository and GitHub activity. The helper’s output feeds review and triage context for maintainers. flowchart LR
A[Review or triage workflow] --> B[Activity helper]
B --> C[Profile lookup]
B --> D[Repository search totals]
B --> E[Contribution aggregate]
C --> F[Activity summary]
D --> F
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceTests +218, Docs 0, Other -35. Total +183 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one owner-bound helper that emits identity first and uses validated bounded aggregates, while preserving its explicit incomplete-data and interval disclosures. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main runs the paginated activity calls before profile output, and the branch adds a fixture that blocks activity after confirming the profile is already emitted. Is this the best way to solve the issue? Yes. Moving the profile emission ahead of activity and replacing row scans with response aggregates fixes the owning helper; retaining pagination with a timeout would not bound request volume or guarantee prompt identity output. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 42ce03e72e34. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* fix: avoid stalled maintainer author activity lookups * test: validate required author activity fixture entries
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.
What Problem This Solves
Resolves a problem where maintainer author-activity lookups could remain silent for several minutes for prolific GitHub accounts. The helper downloaded every matching issue/PR and commit for the requested window before showing even the person's profile, consuming quota merely to count records.
This is a maintainer-tooling fix, separate from any people-card or frontend work. Ownership was checked: OpenClaw owns this skill; it is not a generated copy from
openclaw/agent-skills.Why This Change Was Made
Print canonical profile identity before activity requests, and replace the two paginated scans with three single-page search aggregates using
total_countandincomplete_results. The optional global lane remains one contribution-graph aggregate, giving a fixed maximum of five helper-levelghcalls per resolved login regardless of activity volume.Keep ordinary PATH
ghdispatch and use its existing--cache 1hsupport. A bounded live probe confirmed that the fleet cache delegates author/date-filtered searches; native GitHub CLI caching covers both those REST reads and GraphQL without adding a custom cache. Local archive freshness did not establish complete annual coverage, so archive rows are not presented as complete totals. The shared plain-gh helper is unchanged because its mutation-oriented callers have a different responsibility.User Impact
Maintainers see identity promptly and get fast, repeatable activity summaries. Missing profiles, failed or malformed responses, and incomplete searches are labeled rather than becoming misleading zero counts. Later logins still run, and unavailable/incomplete requested data produces a nonzero exit.
The helper prints separate repo/global intervals covering completed UTC days. Repo commits are default-branch search results filtered by committer date; longer requested repo windows retain an explicitly labeled 12-month cap for the global contribution API. Search indexing and the one-hour cache may lag, and contribution totals follow token visibility rather than claiming to be public-only or proving inactivity.
No frontend, runtime product, configuration, dependency, or storage-schema changes. AI-assisted implementation and review.
Evidence
--global steipeteflow: profile at 0.841s, full result at 8.494s; cached repeat completed in 1.450s with profile at 0.396s. A proof wrapper enforced a five-call budget and refused pagination; both runs exited 0.node scripts/run-vitest.mjs test/scripts/github-activity-helper.test.ts test/scripts/plain-gh.test.ts test/scripts/gh-read.test.ts— 47/47 passed. The new CLI fixture was simplified to Bash/jq after a loaded-host Node-startup timeout; the existing 5000ms deadline and assertions were not relaxed.bash -n .agents/skills/openclaw-pr-maintainer/scripts/github-activity.sh— passed.shellcheck .agents/skills/openclaw-pr-maintainer/scripts/github-activity.sh— passed.node_modules/.bin/oxfmt --check .agents/skills/openclaw-pr-maintainer/SKILL.md test/scripts/github-activity-helper.test.ts— passed.check-test-types. The fixture now asserts required entries before use; no production behavior, timeout, or behavioral assertion was changed. The root test typecheck (node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-root.tsbuildinfo) and the same 47-test group pass after repair.git diff --check— passed. The.claude/skillssymlink resolves to the same canonical.agents/skillsfiles; no mirror sync is required.Production tooling: +98/-133 (net -35). Tests/test support: +280/-62 (net +218). Skill guidance: +7/-7.