python-canary-fix

An investigation workflow for failures in the Python canary cron job in the OpenInference repository. A canary job is an automated check that tests whether current code still works in a test environment.

In plain words
What is it for?
Use it to investigate Python canary or cron failures, diagnose latest-version test failures, propose fixes for instrumentation packages, and prepare a pull-request title and summary when run by the automated job.
Why use it?
It helps identify why scheduled Python instrumentation checks fail and prepares a focused fix for each affected package. It keeps separate package problems separate so each change can be reviewed or reverted independently.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/arize-ai/openinference/python-canary-fix
Any agent
npx skills add Arize-ai/openinference --skill python-canary-fix
Clone the repo
git clone --depth 1 https://github.com/Arize-ai/openinference

Made for: Claude Code, Codex.

Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.02447
Opus 5 $0.00026 $0.01223
Sonnet 5 $0.00011 $0.00489
Haiku 4.5 $0.00005 $0.00245

Measured 2d ago against content hash c26d0a84b16d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-canary-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/python-canary-fix/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Canary Fix

Investigate failures in the Python canary cron (python-cron.yaml) workflow and propose a fix for Python instrumentation packages.

When to Use

  • User mentions Python canary cron failures
  • A scheduled trigger reports canary failures
  • User asks to investigate *-latest test environment failures
  • Invoked automatically by the auto-fix job in python-cron.yaml

Workflow

Each failing package is investigated and fixed independently, with its own branch and its own PR. Do not bundle fixes for multiple packages together, even when they share an apparent root cause — keep PRs scoped to a single instrumentor so they can be reviewed, reverted, and released independently.

When invoked by the scheduled auto-fix job, the workflow already runs one job per failing package and creates the branch before Claude starts. In that mode, follow the prompt's package scope, do not commit, push, or open a PR, and instead write:

  • .scratch/pr-title.txt: a one-line conventional-commit PR title.
  • .scratch/pr-body.md: a concise PR body with root cause, fix, and commands run.

The workflow will commit, push, and open the PR after Claude exits. It does not re-validate your fix in-workflow — the opened PR's own CI runs this package's -latest envs and is the gate (branch protection blocks merging until CI is green), so still aim to make the failing env pass, but an imperfect fix becomes a red PR for a human to finish rather than being discarded. The workflow also skips invoking you entirely when an open auto-fix PR for the package already exists, so you do not need to guard against that case. For manual use outside CI, continue to open one PR per package yourself.

In CI auto-fix mode, the workflow downloads the failed tox logs before Claude starts. Always read .scratch/failure-logs/*.log first and use the first traceback or assertion from those local logs as the primary signal. Do not call gh run view --log or gh run view --log-failed for the same in-progress run unless the local logs are missing or clearly incomplete.

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 78 lines · 53 tokens per session scan A c26d0a84b16d

Subscribe to this mod's changes

python-canary-fix is a skill published in the GitHub repository Arize-ai/openinference (1,186 stars, last pushed 2d ago), licensed Apache-2.0. It adds 53 tokens to every session and 2,447 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

trulens-instrumentation

Instrument LLM apps with TruLens OTEL-based tracing - from setup to debugging and optimization.

truera/trulens · 25 tokens

frontmcp-observability

Use when adding tracing, structured logging, metrics, or monitoring to a FrontMCP server. Covers zero-config OpenTelemetry distributed tracing across all flows; the this.telemetry API for custom spans, events, and attributes in tools, plugins, agents, and skills; structured JSON logging with trace correlation and…

agentfront/frontmcp · 177 tokens

opentelemetry-net-instrumentation

Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.

Aaronontheweb/dotnet-skills · 56 tokens

golang-observability-opentelemetry

Instrumenting Go applications with OpenTelemetry for distributed tracing, Prometheus for metrics, and structured logging with slog.

bobmatnyc/claude-mpm-skills · 31 tokens

debugging-with-wide-events

Use when investigating production behavior by querying wide events (a slow route, an error spike, a suspicious deploy, "why is this happening for account X"). Covers the data model, the symptom-to-query workflow, and standing queries worth running.

adammiribyan/wide_events · 54 tokens

setting-up-wide-events-store

Use when a human asks to set up, deploy, or finish deploying the bundled Wide Events DuckDB store (the Kamal accessory that receives production telemetry). Covers the store generator, DNS, kamal setup, and post-deploy verification end to end.

adammiribyan/wide_events · 58 tokens