Conversation
✅ Protected Paths ModifiedThis PR modifies 4 protected file(s) that control agent behavior, CI pipelines, or validation logic. These changes require human review before merging. CI workflows (.github/workflows/)
Auto-update system (crux/auto-update/)
The
|
…e env vars, standardize API keys Three fixes for groundskeeper operational issues: 1. Health-check duplicate issue creation: Stagger wellness workflow cron schedules (+5min, +10min), use stable issue title without timestamp, add title-based fallback search and post-creation dedup guard. 2. Auto-update missing env vars: Pass LONGTERMWIKI_SERVER_URL and scoped API keys to the CI pipeline step (was only in "Build data layer" step). Also switch paranoid review to use parseJsonFromLlm for better JSON recovery from truncated LLM responses. 3. API key consistency: Migrate session-sweep and groundskeeper wiki-server client from WIKI_SERVER_API_KEY to LONGTERMWIKI_PROJECT_KEY with LONGTERMWIKI_SERVER_API_KEY fallback, matching snapshot-retention pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
06485ea to
78c84c5
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe PR updates API key configuration strategy with a fallback mechanism, adjusts GitHub workflow scheduling, adds an audit entry, refactors JSON parsing in CI orchestration using a centralized utility, and enhances wellness report issue handling with deduplication logic to prevent concurrent duplicates. Changes
Sequence Diagram(s)sequenceDiagram
participant WR as Wellness Report<br/>(Create Path)
participant GH as GitHub API
participant Dedup as Dedup Handler
WR->>GH: Create new wellness issue<br/>(stable title)
GH-->>WR: Issue created
WR->>Dedup: Call deduplicateWellnessIssues()
Dedup->>GH: Wait briefly, list open<br/>wellness issues
GH-->>Dedup: Return wellness issues
alt Duplicates found
Dedup->>GH: Post closing comment<br/>on duplicates
GH-->>Dedup: Comment posted
Dedup->>GH: Close duplicate issues
GH-->>Dedup: Issues closed
else No duplicates
Dedup-->>WR: Return (no-op)
end
Dedup-->>WR: Deduplication complete
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
crux/health/wellness-report.ts
Outdated
| await new Promise((r) => setTimeout(r, 2000)); | ||
|
|
||
| const openIssues = await githubApi<GitHubIssue[]>( | ||
| `/repos/${REPO}/issues?labels=wellness&state=open&per_page=10`, |
There was a problem hiding this comment.
Can we not use a github lib or something? At least put this line elsewhere, seems brittle.
crux/health/wellness-report.ts
Outdated
|
|
||
| for (const issue of sorted.slice(1)) { | ||
| try { | ||
| await githubApi(`/repos/${REPO}/issues/${issue.number}/comments`, { |
|
🤖 PR Patrol ran for 191s (40 max turns, model: sonnet). Issues detected: ci-failure, missing-issue-ref Result:
These are ad-hoc operational fixes without pre-filed issues. Per the guardrails: no matching issue exists, so this is fine to skip. SummaryNo code changes needed. Both detected issues are unactionable:
|
Addresses PR #1813 review feedback from OAGr: raw GitHub REST API URL strings in wellness-report.ts are brittle. Added typed helper functions (listIssuesByLabel, createIssueComment, closeIssue, createIssue, ensureLabel) to crux/lib/github.ts and refactored wellness-report.ts to use them instead of constructing URLs manually. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🤖 PR Patrol ran for 499s (40 max turns, model: sonnet). Issues detected: ci-failure, missing-issue-ref Result: Missing Issue Reference — Fixed: Added Action needed from a human: Add the |
Summary
Three fixes for groundskeeper operational issues causing repeated failures and noise:
LONGTERMWIKI_SERVER_URLand scoped API keys to the CI pipeline step (was only in "Build data layer"). Switch paranoid review toparseJsonFromLlmfor better JSON recoveryWIKI_SERVER_API_KEYtoLONGTERMWIKI_PROJECT_KEYwithLONGTERMWIKI_SERVER_API_KEYfallbackTest plan
/review-pr— fixed unused param and per-iteration error handlingCloses #1819
🤖 Generated with Claude Code