Files
skills/skills/kvb-ci-observe/SKILL.md
Kevin Veen-BirkenbachandClaude Opus 5.5 f0d5eafcac feat(ci): kvb-ci-track keeps one fingerprinted list of CI failures until each is acked
New skill kvb-ci-track: track.py add/poll/wait/ack/known follows workflow runs, PR checks, code-scanning and secret alerts and issues, clusters each failing job by its failing line (ci_failures.failing, now split from signature without a change in behaviour), fingerprints every cluster, and prints only clusters nobody acked yet. A failing line that matches a hotfix register signature carries that hotfix as a hint. kvb-ci-observe and kvb-ci-triage poll through it instead of re-reading every log; kvb-ci-artifacts names failing().

Untrusted text never reaches the terminal raw: printable() drops every character str.isprintable() refuses (escape sequences, zero-width characters), a tab or other whitespace control becoming a space. masked() runs it before hiding URL credentials, assigned secrets and 24-character tokens, and report() cleans every cell, so a log line, title or job name cannot send a terminal sequence, forge a tab-separated cell or dodge an ack with an invisible character.

Tests: tests/test_ci_track.py, including test_control_and_zero_width_characters_never_reach_a_cell. Written, not run: the full suite runs once on master after all bundles (operator order). Both new expectations checked inline; ci_failures.signature() proven identical on every path, the empty-log sentinel included.

Security: MEDUSA over the staged tree on master: 100, 8 files covered, 0 findings. 6 low findings accepted as false positives after a skeptic review and the operator's accept on 2026-11-22: MP-SCAN-1781 at track.py 516, 557, 571, 572 and MP-SCAN-1878 at 557, 571, all on the word 'ack' in the CLI's own subcommand and messages.

🎯 Fix: 90 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:09:28 +00:00

3.4 KiB

name, description
name description
kvb-ci-observe Watch a CI run, pipeline, build or log, triaging and fixing new failures. Trigger when asked to keep monitoring.

Keep a target under watch and act only when it degrades: the loop watches, triage responds. Never re-investigate a failure already resolved this session, and never poll work the harness will notify you about.

Before you start: fix the target

The operator names one concrete target: a CI run id or url, a pipeline, a branch's checks, a build, or a log file. Restate it in one line and record the current failure set (known or already fixed this session) as the baseline. Every observation is diffed against it; a stale baseline re-triages solved failures.

The loop

A GitHub Actions run, a pull request's checks, scanning alerts and issues run on the kvb-ci-track skill: track.py add the target, then track.py wait as a background task; its end is the wake-up and its lines are the new clusters, already diffed against what any agent saw or acked. Any other target (another CI system, a build, a log file) runs on /loop in dynamic mode (no fixed interval unless the operator gave one): after each observation, schedule the next wake-up and pass this skill's prompt back unchanged.

  1. Poll the target: the lines wait printed; elsewhere its job list, check conclusions or log tail. Enumerate failures as the kvb-ci-triage skill's step 1 does: failure, cancelled, timed-out; a downstream aggregate that fails only because an upstream did is not its own failure.
  2. Diff against the baseline. A failure is new only if it is neither in the baseline nor triaged this session; track.py keeps that baseline for its targets. Nothing new: log one short line ("still green" / "N known failures, no change") and wait again.
  3. Triage each new failure with the kvb-ci-triage skill on the new set only; it applies kvb-think-dialectic per failing job to a ~99% root cause and a real fix. Never mask (no retry-until-pass, disabled check or soft skip). A new failure and its verdict go to peers by radio, never with a wake: ${CLAUDE_SKILL_DIR}/../kvb-org-radio/scripts/radio.py post "<target>: <job> <failing line> -> <verdict>". Fold each newly fixed failure into the baseline: track.py ack <fingerprint> --verdict '<verdict>'.
  4. Wait again by what you wait on: an active run that changes every few minutes gets an interval matched to its cadence, a quiet or long-running target a long one (1200s+). Stop once the target reaches a terminal state (wait exit 20, a pipeline finished) AND every failure it produced has a verified fix.

Rules

  • The loop is a fallback timer, not a busy-wait: for tracked work the harness reports (a background task, a spawned agent, track.py wait), wait for that notification; reserve the timed wake-up for state neither the harness nor track.py can see (another CI system, a deploy queue).
  • Executed evidence beats reasoning: read the failing log line and the artifact, not the job title.
  • One baseline, updated in place: dedup every observation against all failures seen so far, or a flaky-then-fixed failure reappears every cycle and the watch never converges.
  • Report only on change: a new failure and its triage verdict, or a terminal "target is green, watch closed". Silence between changes is correct.
  • Never invent results for a run still in progress; report what the poll returned.