Repository navigation
Description
Context
The Link Health agent (epic #1178) proved a scanner/fixer pattern for automated org-wide maintenance: a cheap scanner runs frequently to detect problems and create GitHub issues; an expensive fixer runs less often to resolve them via PRs and comments. The pattern is intentionally generic (design doc Section 11), but the shared infrastructure is currently baked into the link health scripts.
This epic extracts the reusable pattern and validates it by building a second program: a Dependency Bump Scanner that monitors open Dependabot PRs across the kagenti org, classifies them by severity, and ensures patching SLAs are met.
Deliverables
- Program template spec -- a written guide defining the scanner/fixer pattern
- Shared shell library -- common functions extracted from link health scripts (digestible by agents + humans, shellchecked, edge-case tested)
- Dependency bump scanner + fixer -- second program proving the pattern works
- Unified Automation Health Dashboard -- executive-facing view combining all programs
The patching speed dilemma
Dependency updates carry two opposing risks:
- Too slow: unpatched CVEs get exploited (the problem we're solving)
- Too fast: malicious or broken updates get auto-merged (event-stream 2018, ua-parser-js 2021, colors/faker 2022)
Industry guidance (NIST, CISA BOD 22-01, DORA, PCI-DSS) converges on severity-tiered SLAs:
| Severity | Patch SLA | Rationale |
|---|---|---|
| Critical (CVSS 9.0+) | 3 days | Actively exploited or trivially exploitable |
| High (CVSS 7.0-8.9) | 7 days | Significant risk, may have exploit code |
| Medium (CVSS 4.0-6.9) | 30 days | Limited attack surface or complexity |
| Routine (no CVE) | 14 days | Maintenance hygiene, two Dependabot cycles |
| Major version bump | 30 days | Breaking changes require migration work |
What exists today
- Dependabot configured on
kagenti/kagenti(Python, npm, Go, Docker, GitHub Actions -- weekly, grouped minor/patch) - 5 ecosystems across ~15 repos: Python (7 repos), Go (4), Node.js (4), Rust (1), Docker (multiple)
- No Renovate. No dependency-related custom workflows beyond Dependabot
Stories
- Story 0: Create private repo for automation scripts
- Story 1: Write OpenClaw program template spec
- Story 2: Extract shared shell library (program-lib.sh)
- Story 3: Implement dependency bump scanner script
- Story 4: Implement dependency bump fixer script
- Story 5: Build unified Automation Health Dashboard
- Story 6: Deploy dep bump program: standing order, skill, cron
Order of work
Story 0 (private repo) first, then Stories 1-2 (template + library), then 3-4 (dep bump scripts), then 5 (dashboard), then 6 (deploy + cron). Story 2 validates by refactoring link health scripts. Stories 3-4 validate the template is actually reusable. Story 5 ties it together for executive visibility.
Verification
shellcheckpasses on all scripts- Refactored link health scripts produce identical
--dry-runoutput - Dep bump scanner correctly classifies PRs by severity tier and flags SLA breaches
- Dep bump fixer generates severity-appropriate responses
- Deploy to remote host and run one live cycle of each
- Discord delivery verified end-to-end
- Unified dashboard generates with data from both programs
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]**Phase 4:** Generalize scanner/fixer pattern into reusable program abstraction. Add dependency bump program using same architecture.[/-][+]**Phase 4:** Generalize scanner/fixer pattern into reusable program abstraction.[/+]rubambiza commentedon Apr 16, 2026
/claim
rubambiza commentedon Apr 16, 2026
Thanks for claiming this issue! If you get stuck or need to step away, comment
/unassignor ask a maintainer.rubambiza commentedon May 4, 2026
Spun off from epic #1178 (Link Health Agent). The link health scanner/fixer is now fully deployed (Phases 1-3). This story is about generalizing the pattern into a reusable abstraction for other automation programs. Can be tracked as its own epic.