Skip to content

**Phase 4:** Generalize scanner/fixer pattern into reusable program abstraction. #1260

Closed
6 of 6 issues completed

Description

@rubambiza

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

  1. Program template spec -- a written guide defining the scanner/fixer pattern
  2. Shared shell library -- common functions extracted from link health scripts (digestible by agents + humans, shellchecked, edge-case tested)
  3. Dependency bump scanner + fixer -- second program proving the pattern works
  4. 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

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

  1. shellcheck passes on all scripts
  2. Refactored link health scripts produce identical --dry-run output
  3. Dep bump scanner correctly classifies PRs by severity tier and flags SLA breaches
  4. Dep bump fixer generates severity-appropriate responses
  5. Deploy to remote host and run one live cycle of each
  6. Discord delivery verified end-to-end
  7. Unified dashboard generates with data from both programs

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. changed the title [-]**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.[/+] on Apr 16, 2026
  2. rubambiza commented on Apr 16, 2026

    @rubambiza
    ContributorAuthor

    /claim

  3. self-assigned this
    on Apr 16, 2026
  4. rubambiza commented on Apr 16, 2026

    @rubambiza
    ContributorAuthor

    Thanks for claiming this issue! If you get stuck or need to step away, comment /unassign or ask a maintainer.

  5. rubambiza commented on May 4, 2026

    @rubambiza
    ContributorAuthor

    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.

  6. added
    in-progress
    epic:automation
    epic
    on May 11, 2026
  7. moved this from Backlog to Ready in Rossoctl Issue Prioritizationon May 11, 2026
  8. added this to the Release v0.6.1 milestone on May 11, 2026
  9. moved this from Ready to In progress in Rossoctl Issue Prioritizationon May 19, 2026
  10. moved this from In progress to Epics in Rossoctl Issue Prioritizationon May 21, 2026
  11. removed theissue type on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

epicepic:automationin-progress

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions