analyzing-experiment-precompute-canary

analyzing-experiment-precompute-canary is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 120 tokens per session (3,550 once invoked), scanned A, original, MIT.

A read-only investigation workflow for checking whether precomputed experiment results match direct event data in two production regions. It uses Prometheus health metrics and Loki logs; these are systems for metrics and structured log search.

In plain words
What is it for?
Use it to inspect the experiment precompute canary, compare repeated precomputed runs with a direct events scan, investigate unhealthy metrics, classify supported divergences, and produce an actionable report.
Why use it?
It shows whether results are stable or incorrect and provides evidence about count or value differences without changing production. This helps separate a real data-consistency problem from a healthy canary.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to inspect the experiment precompute canary, compare repeated precomputed runs with a direct events scan, investigate unhealthy metrics, classify supported divergences, and produce an actionable report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/analyzing-experiment-precompute-canary
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.

Any agent
npx skills add PostHog/posthog-foss --skill analyzing-experiment-precompute-canary
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyzing-experiment-precompute-canary

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/analyzing-experiment-precompute-canary/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/analyzing-experiment-precompute-canary)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/analyzing-experiment-precompute-canary"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/analyzing-experiment-precompute-canary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyzing-experiment-precompute-canary

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/analyzing-experiment-precompute-canary"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/analyzing-experiment-precompute-canary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00120 $0.03550
Opus 5.5 $0.00048 $0.01420
Sonnet 5.5 $0.00024 $0.00710
Haiku 4.5 $0.00012 $0.00355

Measured 14d ago against content hash b9a3c46e28c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyzing-experiment-precompute-canary 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 14d 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.

.agents/skills/analyzing-experiment-precompute-canary/SKILL.md · 230 lines

How it starts

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

Analyzing the experiment precompute canary

Job to be done

Tell the user, with evidence, whether experiment precomputed results are consistent in production — in both prod-US and prod-EU — and when they aren't, hand them an actionable report: which metric diverged, by how much, which divergence class it is, and the next step. Classify only what the data supports (stability vs correctness; for correctness, whether counts or only values diverged) — do not assert a ClickHouse-level mechanism as fact. Read-only investigation; never mutate anything.

Background: what the canary is and why this matters

Experiment results are served from precomputed ClickHouse cache tables. A class of multi-node read-your-writes bugs (one fixed in PR #62854: a precomputed read not seeing its own writes; also cache content drifting from the events table) is only observable in production. The canary guards against it: a daily Temporal workflow (experiment-precompute-canary) samples experiment metrics on precompute-enabled teams and runs each metric three times — twice forced through the precomputed path (runs a, b), once forced through a direct events scan (run c) — then compares:

  • Stability (a vs b): two precomputed reads seconds apart must agree. Funnels strict (0.1%); mean/ratio sums get the loose tolerance because they join live event values; their exposure counts stay strict. Retention resolves both of its numbers from metric events, so both get the loose tolerance.
  • Correctness (b vs c): the precomputed read must agree with the events table (loose 2%). Since PR #87880 (2026-08-25), sum deviations also need to clear an absolute per-variant floor (MIN_CORRECTNESS_SUM_DELTA = 100, raw metric units) — sub-floor gaps are excluded from the reported deviation and the gauges entirely, so sparse metrics (tens of conversions on millions of exposures) no longer page on a handful of events' worth of expected live-vs-frozen drift. Exposure counts are never floored.

Read the full file on GitHub · 230 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. 14d ago Changed · +37 lines · -75 tokens per session b9a3c46e28c9
  2. 3mo ago First seen · 193 lines · 195 tokens per session scan A 918b8a4c3bbc

Subscribe to this mod's changes

analyzing-experiment-precompute-canary is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 120 tokens to every session and 3,550 once invoked, about $0.0005 per session on Opus 5.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-09-05.

Related

analyzing-experiment-precompute-canary compared with skills from other repositories

analyzing-experiment-precompute-canary next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyzing-experiment-precompute-canaryPostHog/posthog-fossSkill736todayMITA120Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill343todayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6k2d agoApache-2.0A45Claude Code, Codex
loop-engineeringhuytieu/COG-second-brainSkill1.6ktodayMITA63Claude Code