[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CATKFSX2QRE9TR5JTQ5KY4":3,"skill-same:01M6CATKFSX2QRE9TR5JTQ5KY4":179},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":60,"linkOnly":61,"markdownContent":62,"markdownBody":63,"frontMatter":64,"refName":90,"commitSha":91,"skillDirectory":92,"forksCount":93,"repositoryHtmlUrl":94,"repositoryHomepageUrl":13,"ownerHtmlUrl":95,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":96,"install":97,"resources":110},"01M6CATKFSX2QRE9TR5JTQ5KY4","verify-telemetry-alert","自动化告警验证核查","Verify an automated alert (BQ coverage watcher, MCP Agent Mail, GH Actions billing, infra watcher) or in-house scheduled cron (Daily Bug Hunt, doc-audit, stability-report) before acking it. Cross-checks the alert's named mechanism against live state and the actual code path, then reframes the alert's framing if it misleads. Triggers: an automated cron\u002Fwatchdog posts a warning\u002Ferror with a named mechanism (table\u002Fflag\u002FRPC\u002Fdataset\u002Fagent\u002Fsubcommand), alert uses cumulative phrasing, alert names a Cloud Run replica \u002F per-process flag \u002F module-level state as suspect. Also fires for **post-merge fix verification** — Step 1b catches the failure mode where the merge landed on origin\u002Fmain but the Cloud Run service was not redeployed (PR #8418 worked example in references\u002Fpost-merge-deployment-coverage-2026-07-20.md). For in-house crons claiming suspiciously clean results, see references\u002Fin-house-cron-silent-failure-2026-07-15.md.","在确认（ack）之前，先验证自动化告警（BQ 覆盖率监控、MCP Agent Mail、GH Actions 计费、基础设施监控）或内部定时 cron 任务（Daily Bug Hunt、doc-audit、stability-report）。将告警点名的机制与实时状态及实际代码路径交叉核验，若告警的措辞具有误导性则重新框定其表述。触发条件：自动化 cron／看门狗发布带有具名机制（表／标志／RPC／数据集／agent／子命令）的警告／错误信息；告警使用累积性措辞；告警将某个 Cloud Run 副本／进程级标志／模块级状态指认为可疑对象。也适用于**合并后修复验证**——Step 1b 用于捕捉这样的失败模式：合并已落地到 origin\u002Fmain，但 Cloud Run 服务未重新部署（PR #8418 实例见 references\u002Fpost-merge-deployment-coverage-2026-07-20.md）。对于声称结果异常干净的内部 cron，参见 references\u002Fin-house-cron-silent-failure-2026-07-15.md。","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX",null,"01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD3B3T8FK02S5JVCZA1M","运维监控与告警","SCENARIO","使用场景",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],"telemetry","verify telemetry alert","verify","alert","gh pr","parse","api rate","reframing","mode","posts","re","remote","app","project","clean","bug","fix","MCP","projects","Budget","iam","ci","actions","run","create","rag","repos","hello","slack","image","2026-11-10 10:12:30",false,"---\nname: verify-telemetry-alert\ndescription: \"Verify an automated alert (BQ coverage watcher, MCP Agent Mail, GH Actions billing, infra watcher) or in-house scheduled cron (Daily Bug Hunt, doc-audit, stability-report) before acking it. Cross-checks the alert's named mechanism against live state and the actual code path, then reframes the alert's framing if it misleads. Triggers: an automated cron\u002Fwatchdog posts a warning\u002Ferror with a named mechanism (table\u002Fflag\u002FRPC\u002Fdataset\u002Fagent\u002Fsubcommand), alert uses cumulative phrasing, alert names a Cloud Run replica \u002F per-process flag \u002F module-level state as suspect. Also fires for **post-merge fix verification** — Step 1b catches the failure mode where the merge landed on origin\u002Fmain but the Cloud Run service was not redeployed (PR #8418 worked example in references\u002Fpost-merge-deployment-coverage-2026-07-20.md). For in-house crons claiming suspiciously clean results, see references\u002Fin-house-cron-silent-failure-2026-07-15.md.\"\nversion: 1.5.0\nmetadata:\n  hermes:\n    tags: [telemetry, alerts, verification, ack, incident-response, bigquery, observability, in-house-cron, post-merge-verification]\n    related_skills: [systematic-debugging, incident-proposal-current-evidence-gate, proof-before-claim, mcp-mail-ack, module-global-flag-race]\nhistory:\n  - \"1.5.0 (2026-07-20): Added Step 1b (deployment-coverage verification) and Step 1c (5-column co-NULL signature diagnostic). For any post-merge fix verification on a Cloud Run service, the merge SHA landing on origin\u002Fmain does NOT mean the running image has the fix. Recipe: cross-check `gcloud run revisions list --service=\u003Cstable-service>` last-deployed timestamp against the merge timestamp; if the service's last deploy predates the merge, the fix is in code but not in the running binary. Verified live 2026-07-20 against PR #8418 (`fix\u002Fbq-is-test-null-cache-replay`, merged 2026-07-19T00:54:46Z): `mvp-site-app-stable` last deployed 2026-07-18 21:05 UTC (3h 49m BEFORE the merge) on image `gcr.io\u002Fworldarchitecture-ai\u002Fmvp-site-app:stable-65dd85b`. 4 post-merge is_test NULL bursts (07-19 19:00, 20:00, 21:00, 07-20 04:00) involving the production agent roster confirmed the bug was still reproducing because the fix never reached prod. The 5-column co-NULL signature (`is_test IS NULL AND cached_tokens IS NULL AND thoughts_tokens IS NULL AND tool_use_tokens IS NULL AND rag_mode IS NULL`) distinguishes the schema-gate bug class from a generic insert-pipeline failure — the schema-gate columns are NULL together because the process's column-name cache was empty. Reference file `references\u002Fpost-merge-deployment-coverage-2026-07-20.md` ships the full worked example including per-hour cohort breakdown and gcloud + bq query recipes.\"\n  - \"1.4.0 (2026-07-19): Added Pitfall P0 (Step 1 prerequisite) — the `bq` CLI on this Mac is broken because `$HOME\u002Fprojects_other\u002Fhermes-agent\u002Futils.py` shadows the gcloud SDK's `utils` module on Python's import path; fix is `env -i PATH=… PYTHONPATH=… PYTHONNOUSERSITE=1 bq query …` (paths vary per gcloud SDK install — `find \u002Fopt\u002Fhomebrew\u002FCaskroom\u002Fgoogle-cloud-sdk -name bq_libs -type d` to locate). Added Pitfall P1 (Step 1 alternative) — when `gh pr view --json` returns `GraphQL: API rate limit already exceeded`, fall back to REST `gh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fpulls\u002F\u003CN>` (different bucket, usually still has budget). Pitfall P2 (Step 2 prerequisite) — when BQ REST via urllib from a sandbox returns 403 on `bigquery.jobs.create`, the sandbox's ADC lacks the IAM role; route the BQ probe through `env -i bq` on the user's authenticated gcloud session instead. Verified live 2026-07-19 against the `is_test IS NULL` alert in Slack C0BCVG4F560\u002F1784219487.851579 — these three pitfalls cost ~10 minutes of failed probes before the workaround landed.\"\n  - \"1.3.0 (2026-07-17): Added generic anti-pattern #7 — 'Don't trust prior-session reports about remote-system behavior; re-test before claiming it's a blocker.' Verified case: 2026-07-17 cloud-build drive (Slack C09GRLXF9GR). I inherited a prior session's framing that 'git secret guard rejected the push' and reported cloud-build as broken without re-running the hand-off. The user replied 'whats the secret guard? Lets make it do a hello world program' — a 5-min hello-world proved the box actually works on clean repos and the prior blocker was project-specific (tracked secrets in main history), not box-side. Generalizes: any prior-session claim about remote\u002F3rd-party behavior (cloud-build, CI, MCP servers, launchd jobs, cron pipelines) must be re-verified in the current session before being reported as a blocker. The hello-world validation recipe lives at `~\u002F.hermes\u002Fskills\u002Fdevops\u002Fsuperpowers-cloud-build\u002Freferences\u002Fhello-world-validation-2026-07-17.md` — same principle for cloud-build specifically.\"\n  - \"1.2.0 (2026-07-15): Added references\u002Fin-house-cron-silent-failure-2026-07-15.md — sister-case worked example for the same 4-step protocol applied to in-house scheduled scripts (Daily Bug Hunt cron, jleechanorg\u002Fjleechanclaw#782). Captures the 'fail-closed sentinel covers the wrong failure mode' pattern: preflight-vs-output-parse counter asymmetry that produces false-negative 'clean sweep' reports. Tagged in-house-cron in hermes.tags. References section pointer added.\"\n  - \"1.1.0 (2026-07-15): Step 3a.1 added — when operator replies 'make followup' after Step 3a staleness reframing, capture the 3-grep wording-gaps checklist (file-path, threshold label, remediation) plus the test-import-via-Path.home() work-around needed to validate the patches. References\u002Fbq-coverage-wording-followup-2026-07-15.md ships the verified PR #781 worked example.\"\n  - \"1.0.0 (2026-07-15): Step 0 delivery-check + Step 3a staleness reframing added; 4 references captured (one per BQ coverage reframe, one for the staleness-reframe, references\u002Fmcp-mail-bq-coverage-2026-07-13.md retained for historical evidence).\"\n---\n\n# Verify Telemetry Alert Before Ack\n\n## Why this skill exists\n\nAutomated alert systems (BQ coverage watchers, MCP Agent Mail cron jobs, billing anomaly detectors, quota monitors) post warning\u002Ferror messages that demand acknowledgement. The naive path — read the alert, ack with the headline framing — has three recurring failure modes:\n\n1. **Accepting misframed claims.** Cumulative-window alerts often phrase drift as if it is live (\"8 consecutive days\") when the underlying reality is a different window (a cold-start accumulation, a deployment boundary, a sample of n rows that all came from one replica).\n2. **Skipping alert→code cross-check.** Alerts cite named mechanisms (table names, module-level flags, RPC names, schema columns). Those names can be wrong, drift from current code, or refer to a state object rather than the entity the alert implies.\n3. **Silent delivery failure.** Alert lands in a channel\u002Fthread the Hermes Slack bot is not a member of (or has lost membership for). `mcp__slack__conversations_replies` returns `not_in_channel`; the ack step is silently skipped; the user only finds out minutes-to-hours later via a question like *\"why didn't you respond to this?\"*. This must be detected and either routed around (user-relay, alternate channel) or fixed at the membership layer.\n\nThe fix is a 4-step protocol: (0) delivery check, (1) verify live numbers reproduce, (2) cross-check named mechanism against actual code, (3) reframe if needed. Run before acking *any* automated alert with operational consequences.\n\n## When to invoke\n\n- MCP Agent Mail, Slack channel watchers, BQ coverage alerts, GH Actions billing alerts, GCP quota alerts, or any automated system posts an alert with a named mechanism (table name, function name, flag, RPC, dataset).\n- An alert claims \"X consecutive days\" or \"X hours sustained\" — reframe risk.\n- An alert names a Cloud Run replica, K8s pod, or per-process state object as the suspect.\n- An alert suggests a fix that names a code path you have not read.\n- An alert arrives in a channel\u002Fthread where the bot's reply path may not work (post-deploy membership reset, cross-workspace message, internal-only channel) — run Step 0 first.\n\n## The 4-step protocol\n\n### Step 0: Delivery check (NEW 2026-07-15 — silently failing ack is worse than no ack)\n\nBefore any verification work, confirm you can actually reply to the source thread. Bot accounts are scoped to a workspace and lose channel membership silently.\n\n```bash\n# Test that the channel is reachable for replies\nmcp__slack__conversations_replies(channel_id=\u003Cchan>, thread_ts=\u003Calert_ts>, limit=1)\n# If this returns \"not_in_channel\" or \"channel_not_found\":\n#   1. Try the parent channel — the alert might be in a child under a parent\n#   2. Try `chat.postMessage` with the human user token (`SLACK_USER_TOKEN`) — Path B per SOUL.md `slack-cross-workspace-fallback-xoxp`. Reply will appear under the human's identity; say so in body if confusion risk.\n#   3. If still blocked: log the ack with delivery=MISSING to ~\u002F.hermes\u002Fmemory\u002Fmcp-mail-ack-log.md (see `mcp-mail-ack` SOUL COMMIT) AND mention the membership gap to the user in the next reply so it becomes a tracked fix, not a silent miss.\n```\n\nSymptom of the bug this catches: the user finally notices and asks *\"why didn't you respond to this message?\"* — by then the operational claim has been silent for the entire alert window.\n\n### Step 1: Verify live numbers reproduce\n\nBefore acking any alert with quantitative claims, re-run the queries or commands the alert implies. Live evidence beats alert prose.\n\n```bash\n# Example (BQ coverage alert):\nbq query --use_legacy_sql=false --format=pretty '\nSELECT\n  COUNTIF(\u003Calert_predicate>) AS claimed_n,\n  COUNT(*) AS total\nFROM `\u003Cdataset>.\u003Ctable>`\nWHERE \u003Calert_window>'\n```\n\nMatch every headline number the alert posts. If the alert says \"8,834 of 9,835 rows have is_test IS NULL\", reproduce both numbers exactly. If any number diverges, say so in the ack — the alert's framing might be stale or wrong.\n\n### Step 1b: Verify deployment coverage (NEW 2026-07-20 — for post-merge fix verification)\n\nWhen the verification is a post-merge fix check (\"did PR #N actually fix the bug?\"), reproducing the alert numbers is **necessary but not sufficient**. The bug might still reproduce because the fix is in the code on origin\u002Fmain but the running image is stale. Recipe:\n\n```bash\n# 1. Confirm the PR is merged (cheap, fast):\ngh pr view \u003CN> --repo \u003COWNER>\u002F\u003CREPO> --json state,mergedAt,headRefOid\n# Expected: state=MERGED, mergedAt=\u003CISO timestamp>, headRefOid=\u003CSHA>\n\n# 2. Find the Cloud Run service that actually receives prod traffic. For\n#    $GITHUB_REPOSITORY the pattern is:\n#      mvp-site-app-stable      ← stable, receives all prod traffic\n#      mvp-site-app-preview     ← preview channel, traffic = 0 in prod\n#      mvp-site-app-{s1..s10}   ← staging shards, NOT prod\n#    Verify which service has 100% latestRevision traffic:\ngcloud run services list --project=\u003CPROJECT> --region=us-central1 \\\n  --format='table(SERVICE,LAST DEPLOYED BY,LAST DEPLOYED AT)'\n\n# 3. Pull the deploy timestamps of the stable service's revisions:\ngcloud run revisions list --service=\u003Cstable-service> --region=us-central1 \\\n  --project=\u003CPROJECT> --limit=5\n# Look at the ACTIVE revision's \"DEPLOYED\" column.\n\n# 4. Cross-check: is the stable service's last deploy AFTER the merge?\n#    If the service's last deploy timestamp is BEFORE mergedAt, the fix\n#    never reached prod. The running image still has the bug.\nif [[ \"$(gcloud run revisions list --service=\u003Cstable> --region=us-central1 \\\n  --project=\u003CPROJECT> --limit=1 --format='value(metadata.creationTimestamp)')\" \\\n  \u003C \"$mergedAt\" ]]; then\n  echo \"BUG STILL REPRODUCING — fix in code, not in running binary\"\nfi\n\n# 5. Optional sanity: confirm the current image tag matches the merge SHA.\ngcloud run services describe \u003Cstable-service> --region=us-central1 \\\n  --project=\u003CPROJECT> --format='yaml(spec.template.spec.containers[0].image)'\n# If the image digest ends in `:\u003Cmerge-sha-prefix>` or has a recent build\n# date, the fix is live. Otherwise the image is stale.\n```\n\n**Why this is its own step.** The naive post-merge verification is \"BQ numbers show the bug, but the fix code passed all unit tests, so the deploy didn't propagate.\" The unit tests, the CI green check, the `gh pr view MERGED` — none of these prove the running binary has the fix. They prove origin\u002Fmain has the fix. A Cloud Run service is re-deployed only when someone triggers a release (manual `gcloud run deploy`, a release branch push to a workflow that watches it, or an automated promotion). The merge → deploy gap can be hours to weeks.\n\n**Verified case 2026-07-20, PR #8418:** merge at 2026-07-19T00:54:46Z; `mvp-site-app-stable` last deployed 2026-07-18 21:05 UTC (3h 49m **before** the merge); 4 post-merge is_test NULL bursts (07-19 19:00\u002F20:00\u002F21:00, 07-20 04:00) involving the production agent roster confirmed the old bug still reproducing because the new code never reached the running image. The full worked example is at `references\u002Fpost-merge-deployment-coverage-2026-07-20.md`.\n\n**What to do when Step 1b fails:** do NOT mark the PR's bead resolved. Post the verdict with `? STILL BROKEN — fix in code, not in prod` and a concrete remediation (trigger a redeploy to `\u003Cstable-service>` from the merge SHA, or open a fresh `rev-\u003Cdeploy-bead>` and dispatch). The watcher alert will re-fire at the next tick — that's the right behavior, since the bug IS still happening.\n\n### Step 1c: Schema-gate co-NULL signature (NEW 2026-07-20 — distinguishes schema-cache bug class)\n\nWhen the alert (or the live data) shows `is_test IS NULL` rows, a generic count of NULL rows can't tell you whether the root cause is a `module-global-flag-race` (PR #8418's pattern) or a different insert-pipeline failure. The diagnostic signature that distinguishes the schema-cache bug class:\n\n```sql\nSELECT\n  COUNTIF(is_test IS NULL) AS n_is_test_null,\n  COUNTIF(\n    is_test IS NULL\n    AND cached_tokens IS NULL\n    AND thoughts_tokens IS NULL\n    AND tool_use_tokens IS NULL\n    AND rag_mode IS NULL\n  ) AS co_null_5col,\n  ROUND(100.0 * COUNTIF(\n    is_test IS NULL\n    AND cached_tokens IS NULL\n    AND thoughts_tokens IS NULL\n    AND tool_use_tokens IS NULL\n    AND rag_mode IS NULL\n  ) \u002F GREATEST(1, COUNTIF(is_test IS NULL)), 2) AS co_null_pct\nFROM `\u003CPROJECT>.\u003Cdataset>.\u003Ctable>`\nWHERE \u003Calert_window>\n  AND \u003Calert_model_filter>\n```\n\n**Interpretation:**\n- `co_null_pct ≈ 100%` — every `is_test NULL` row also lacks all four other schema-gated columns. The producer process's column-name cache was empty (or the gate was bypassed entirely). This is the `_payloads_schema_migrated` \u002F per-process cache bug class. Fix is in the writer code.\n- `co_null_pct \u003C 50%` — `is_test` is being independently dropped or not set on rows that DO populate other gated columns. This is a different bug (maybe a request-path code branch that bypasses the `is_test` assignment but still hits the cache). Don't conflate it with the schema-cache bug — the fix will be different.\n- `co_null_pct = 0%` — `is_test` is NULL but every other gated column is populated. This is a separate field-level bug (maybe a feature flag disabling `is_test` only).\n\n**Why this matters:** the watcher alert firing on `is_test IS NULL` (threshold N=10, streak ≥3) was the SAME alert as the original PR #8418 fix. If after the merge the `co_null_pct` drops to 0%, the fix worked but a different bug is now visible. If `co_null_pct` stays at 100%, the fix didn't take (Step 1b territory — image not deployed). If `co_null_pct` is somewhere in between, the fix partially took and a sibling bug is exposed.\n\n**Verified case 2026-07-20, PR #8418:** post-merge, the 161 is_test NULL rows in last 24h had `co_null_pct = 100.0%` — every NULL row also lacked the 4 sibling schema-gated columns, confirming the SAME bug class was reproducing, not a new one. The `co_null_pct` is the test that proves \"this is the same bug as before\" vs. \"this is a new regression.\"\n\n### Step 1d: Per-hour cohort decomposition (NEW 2026-07-20 — for fix-vs-stale-image disambiguation)\n\nAfter Steps 1b and 1c, decompose the 24h or 48h window by hour and label each hour as pre-merge \u002F post-merge:\n\n```sql\nSELECT\n  FORMAT_TIMESTAMP('%Y-%m-%d %H:00', ingested_at) AS hour,\n  COUNTIF(is_test IS NULL) AS n_is_test_null,\n  COUNT(*) AS n_total,\n  ARRAY_AGG(DISTINCT agent IGNORE NULLS LIMIT 5) AS top_agents\nFROM `\u003CPROJECT>.\u003Cdataset>.\u003Ctable>`\nWHERE ingested_at > TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR)\n  AND \u003Calert_model_filter>\n  AND is_test IS NULL\nGROUP BY hour ORDER BY hour DESC\n```\n\n**Interpretation matrix:**\n\n| Pre-merge hours | Post-merge hours | Diagnosis |\n|---|---|---|\n| n_null high | n_null = 0 | ✅ FIX HELD. The deploy reached prod AND the code works. |\n| n_null high | n_null high | ? STILL BROKEN. Likely Step 1b (image not redeployed). Confirm with `gcloud run revisions list`. |\n| n_null = 0 | n_null high | ? REGRESSION. The fix introduced a new bug. Compare agent roster to pre-merge — different agents means a new code path is failing. |\n| n_null low | n_null low | ✅ FIX HELD + low traffic. Bug was minor and is now contained. |\n\n**Verified case 2026-07-20, PR #8418:** the per-hour cohort clearly showed pre-merge hours (07-19 13:00, 19:00, 20:00, 21:00, 07-20 04:00) had 23-46 NULL rows from the production agent roster (CharacterCreationAgent, StoryModeAgent, GodModeAgent, FactionManagementAgent, etc.), while most other hours had 0 NULL rows. The bursts were concentrated in pre-merge hours with a few post-merge spikes — classic Step 1b image-not-deployed pattern (the fix hadn't reached prod yet, but the running prod was still on the pre-fix image, so it produced the same bursts as before).\n\n**Why averaging doesn't work:** a 24h aggregate of `is_test IS NULL = 161\u002F1623 = 9.92%` looks \"almost fine\" if you don't compare to the pre-merge baseline. The per-hour decomposition reveals that the pre-merge and post-merge hours have IDENTICAL burst patterns, which is the smoking gun for \"fix not deployed.\"\n\n**BQ reference targets for the recurring `llm_payloads` watcher (verified 2026-07-15):**\n\n| Field | Stale alert guess | Actual value | Check |\n|---|---|---|---|\n| Project ID | `worldarchitect-ai` (note the `-ai` not `-ai.ai`) | `worldarchitecture-ai` | `gcloud config get-value project` |\n| Dataset | `firestore_export` | `llm_forensics` | `bq ls --project_id=... \u003Cdataset>` |\n| Timestamp column | `ts` | `ingested_at` | `bq show \u003Cdataset>.\u003Ctable>` |\n| Gemini filter | `model LIKE 'gemini%'` | `LOWER(IFNULL(agent,'')) LIKE '%gemini%' OR LOWER(IFNULL(model,'')) LIKE '%gemini%'` | `bq query 'SELECT DISTINCT model FROM ... LIMIT 5'` |\n\nAccount selection (must be a service account or human with `BigQuery Data Viewer`): `gcloud auth list` will show whether the active account is the right identity for the dataset; some watchers write to one project and read from another.\n\nAlways write the SQL to a temp file (`\u002Ftmp\u002Falert_verify.sql`) and pipe via `\u003C`, not shell-quoted `-e`: a stray `%` in `LIKE '%gemini%'` breaks a single-quoted heredoc on shells with format-string expansion.\n\n### Step 2: Cross-check the named mechanism against actual code\n\nAlerts cite named mechanisms. Treat those names as **leads**, not facts. Verify them in the actual code path.\n\nCommon pattern (verified 2026-07-13 against MCP Agent Mail BQ coverage alert):\n\n- Alert says: *\"Likely lazy schema-migration failure on a Cloud Run replica — see `bq_logging._payloads_schema_migrated` flag.\"*\n- The name `_payloads_schema_migrated` is a **Python module-level bool** in `$PROJECT_ROOT\u002Fbq_logging.py`, NOT a table. Reading the code revealed it gates `row[\"is_test\"] = test_flag` until a per-process PATCH migration flips the flag — meaning every Cloud Run replica carries its own copy, and any replica whose lazy migration hasn't yet run (cold start, transient 5xx, or 60s backoff retry window) inserts rows without `is_test`.\n\nRecipe to cross-check:\n\n```bash\n# 1. Find the file the alert names (replace with the alert's named path):\nrg -n \"_payloads_schema_migrated\" \u002Fpath\u002Fto\u002Fcode\n\n# 2. Read the insert path that uses it:\nsed -n '700,750p' \u002Fpath\u002Fto\u002Fbq_logging.py\n\n# 3. Confirm what the flag is (module-level bool? env var? config?):\nrg -n \"^_payloads_schema_migrated\\s*=\" \u002Fpath\u002Fto\u002Fcode\n```\n\nIf the named mechanism does not match code reality (different table name, different flag scope, different gating logic), the alert's diagnosis is wrong even if the numbers are right.\n\n### Step 3a: Alert-staleness check (NEW 2026-07-15 — operator asks \"is the wording clearer yet?\")\n\nBefore reframing the alert's *content*, check whether the alert *body* the user is looking at is still live. Two common patterns:\n\n**Pattern A — pre-merge alert text in user's hand, post-merge code already deployed.** Operator opens an old Slack message and asks \"what does this alert even do \u002F is the wording clearer\". The current deployed alert script has already been updated; the alert they're holding is a fossil.\n\nRecipe to prove staleness:\n```bash\n# 1. Identify the alert's timestamp (usually inside the body, e.g. \"2026-07-06 16:30:23 UTC\").\n# 2. Find the deployed script.\nlaunchctl print gui\u002F$(id -u) 2>\u002Fdev\u002Fnull | grep -i \"\u003Cwatcher-name>\"       # macOS launchd path\n# or: grep -rn \"\u003Cwatcher-name>\" ~\u002F.hermes\u002Fcron\u002F ~\u002F.hermes\u002Flaunchd\u002F\n\n# 3. Read the SHA of origin\u002Fmain for that script.\ngh api \"repos\u002F\u003COWNER>\u002F\u003CREPO>\u002Fcommits?path=\u003Cscript>&per_page=5\" --jq '.[] | \"\\(.sha[0:7]) \\(.commit.message | split(\"\\n\")[0])\"'\n\n# 4. Diff the deployed file (often a mirror under ~\u002F.hermes\u002Fscripts\u002F) against the post-merge version.\ngh api \"repos\u002F\u003COWNER>\u002F\u003CREPO>\u002Fcontents\u002F\u003Cscript>?ref=\u003Cpost_merge_sha>\" \\\n  -H \"Accept: application\u002Fvnd.github.raw\" > \u002Ftmp\u002Fpost_merge.py\nwc -l ~\u002F.hermes\u002Fscripts\u002F\u003Cscript> \u002Ftmp\u002Fpost_merge.py\ndiff -q ~\u002F.hermes\u002Fscripts\u002F\u003Cscript> \u002Ftmp\u002Fpost_merge.py\n\n# 5. Show the operator the latest log entry — that's the text they'll actually see going forward.\ntail -50 ~\u002F.hermes\u002Flogs\u002F\u003Cwatcher>.error.log | grep -A2 \"\u003Cmode-tag>\"\n```\n\n**Pattern B — wording drift after a partial cherry-pick or backport.** A commit landed on `main` for the watcher but the deployed launchd copy is older. Same recipe; the `diff` will show what's not yet on the deployed machine.\n\nOutput shape for a staleness reframing:\n1. Alert body timestamp (from the user's message, e.g. `2026-07-06 16:30:23 UTC`).\n2. Latest commit SHA on `origin\u002Fmain` for the watcher script (e.g. `99cb779`).\n3. Merge date of the last wording change (e.g. `2026-07-15 20:58:26Z`).\n4. Diff: deployed file vs post-merge (line counts + key wording lines).\n5. Latest live log entry — the text the operator will actually see on the next cron tick.\n\nDo NOT just say \"the wording is clearer now\" without showing the new text. Operator asked about wording specifically; show BOTH legacy and post-merge lines side-by-side.\n\n### Step 3a.1: Follow-up wording patch recipe (NEW 2026-07-15 — operator says \"make followup\" after Step 3a)\n\nAfter proving staleness and showing what PR #774 (or whichever prior PR) already fixed, the operator often replies *\"make followup\"* — they want a tighter version of the wording, not just an explanation. The 3-grep fix-up pattern:\n\n**1. Identify the 3 wording gaps that survived the prior PR.** Concretely, check:\n   - **File-path gap** — does the alert name the flag but not the file? Add the file path and 1-line context.\n   - **Threshold gap** — does the summary line show a counter without labeling whether it's tripped? Use `(TRIPS alert ≥ N)` when at\u002Fabove threshold, `(alert threshold: N)` otherwise.\n   - **Remediation gap** — does the alert name the suspected mechanism but not say what to do? Add explicit remediation: `Remediation: redeploy to force cold-start + migration on all replicas; or run scripts\u002Fbackfill_bq_is_test_null.py to backfill the historical NULL rows.`\n\n**2. Make a clean branch from `origin\u002Fmain` via worktree (NEVER from the user's dirty worktree — see `always-pr-never-local-edit` §\"Cross-repo pre-flight\").**\n```bash\ngit -C \u003Crepo> worktree add -b fix\u002F\u003Cwatcher>-\u003Cwording-summary> \u002Ftmp\u002F\u003Crepo>-\u003Ctopic> origin\u002Fmain\n# NB: this assumes fresh auth — see Step 0 in the worktree auth pattern below.\n```\n\n**3. Make the patches inline.** Apply each wording change as a single targeted edit; keep the diff to \u003C50 lines so the PR is reviewable in one pass.\n\n**4. Add unit tests covering the new wording.** Even for a pure-wording change, add 2–4 tests asserting the new substring is present (e.g. `assert \"Remediation:\" in msg`). These prevent future wording regressions in CI.\n\n**5. Pitfall — test files import via `Path.home()`.** Some test files (notably `scripts\u002Ftests\u002Ftest_bq_coverage_watcher.py`) do `importlib.util.spec_from_file_location(\"...\", Path.home() \u002F \".hermes\" \u002F \"scripts\" \u002F \"\u003Cwatcher>.py\")` rather than importing the worktree copy. Without the work-around, your tests run against `~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py` (the deployed copy), not your patched file, and all \"new wording\" tests fail.\n\nWork-around recipe (run before `pytest`):\n```bash\n# Save the deployed copy for restore after testing\ncp ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py.bak-$(date +%s)\n# Copy the patched worktree version into the import-target path\ncp \u002Ftmp\u002F\u003Crepo>-\u003Ctopic>\u002Fscripts\u002F\u003Cwatcher>.py ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py\n# Now run pytest from anywhere — tests pick up the patched file\npython3 -m pytest \u002Ftmp\u002F\u003Crepo>-\u003Ctopic>\u002Fscripts\u002Ftests\u002Ftest_\u003Cwatcher>.py -v\n# ALWAYS restore before commit, otherwise the local deploy drifts from main\nmv ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py.bak-$(date +%s) ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py\n```\n\n**6. Push + open the PR.** Verify the SHA lands on `origin\u002F\u003Cbranch>` (the local `git rev-parse` is authoritative — `gh pr view --json headRefOid` lags by ~30s).\n\n**7. In the reply, present BOTH before-and-after text.** Operator asked about wording; show the legacy lines vs the new lines side-by-side. Don't just say \"I added remediation hints\".\n\nVerified case 2026-07-15, jleechanorg\u002Fjleechanclaw#781: alert body from 2026-07-06 16:30 UTC; PR #774 merged 2026-07-15 20:58 UTC; 3 wording gaps remained (file-path, threshold label, remediation hint); 4 new tests added; 11\u002F11 passing. Follow-up PR opened at [jleechanorg\u002Fjleechanclaw#781](https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechanclaw\u002Fpull\u002F781).\n\n### Step 3b: Reframe if the alert's framing misleads\n\nAlerts often reframe raw data into a more alarming shape. Verify whether the framing matches reality.\n\nConcrete reframe pattern (BQ coverage alert, 2026-07-13):\n\n- Alert framing: *\"`is_test IS NULL` rows have been flowing for 8 consecutive days — migration may be stuck on a replica.\"*\n- Reality check: per-day breakdown showed `is_test` was 0% on 8\u002F9\u002F10 July, started appearing 11 July (53 rows), ramped 12 July (304), 13 July (644). The 8,834 NULL rows are the *cumulative cold-start window of any replica whose lazy migration hasn't flipped*, not 8 days of active drift.\n- Reframe: *\"The cumulative NULL count is the cold-start window across N replicas, not 8 days of drift. Migration landed on at least one replica on 2026-07-11.\"*\n\nHeuristic: when an alert says \"X consecutive days\" or \"X hours sustained\", break the window into per-period buckets and ask: is this cumulative or live? A cumulative count of a per-row state column will always grow monotonically even after the underlying issue is fixed on a subset of writers.\n\n## Output template for the ack\n\nAfter verifying, ack in this shape:\n\n1. **Verified:** which alert numbers reproduced exactly.\n2. **Reframing:** if the alert's framing misleads, state the corrected picture.\n3. **Root cause:** name the actual mechanism (with file:line citations), not the alert's named mechanism if it differs.\n4. **Fix recipe:** concrete next steps (file paths, line numbers, test names).\n5. **Open question:** what still needs human input (e.g., \"open the PR now, or patch the alert threshold first?\"). End with ONE concrete blocking question if needed, never a multi-option menu.\n\nAlways include `? Memories used:` at the end per the always-on guardrail.\n\n## Tooling prerequisites for Step 1 (NEW 2026-07-19 — `bq` \u002F `gh` failures that block live probing)\n\nBefore running Step 1's live probe against BigQuery or GitHub, sanity-check the toolchain. These are silent failures on this Mac that look like \"the alert is wrong\" or \"the API is down\" but are actually local environment issues.\n\n### P0: `bq` CLI broken on this Mac — `env -i PYTHONPATH=` workaround\n\nSymptom: `bq query ...` fails with:\n\n```\nTraceback (most recent call last):\n  File \"\u002Fopt\u002Fhomebrew\u002Fshare\u002Fgoogle-cloud-sdk\u002Fplatform\u002Fbq\u002Fbq.py\", line 42, in \u003Cmodule>\n    import credential_loader\n  File \"...\u002Fcredential_loader.py\", line 26, in \u003Cmodule>\n    import wrapped_credentials\n  File \"...\u002Fwrapped_credentials.py\", line 24, in \u003Cmodule>\n    from utils import bq_error\nImportError: cannot import name 'bq_error' from 'utils' ($HOME\u002Fprojects_other\u002Fhermes-agent\u002Futils.py)\n```\n\nRoot cause: `$HOME\u002Fprojects_other\u002Fhermes-agent\u002Futils.py` shadows the gcloud SDK's `utils` module on Python's import path (the cwd or `PYTHONPATH` includes `projects_other\u002Fhermes-agent\u002F`). The fix is to run `bq` in a clean environment with explicit `PYTHONPATH` pointing only at the gcloud SDK's library dirs:\n\n```bash\nenv -i \\\n  PATH=\u002Fopt\u002Fhomebrew\u002Fbin:\u002Fusr\u002Fbin:\u002Fbin \\\n  HOME=$HOME \\\n  PYTHONPATH=\u002Fusr\u002Flocal\u002FCaskroom\u002Fgoogle-cloud-sdk\u002Flatest\u002Fgoogle-cloud-sdk\u002Flib\u002Fthird_party:\\\n\u002Fusr\u002Flocal\u002FCaskroom\u002Fgoogle-cloud-sdk\u002Flatest\u002Fgoogle-cloud-sdk\u002Flib:\\\n\u002Fopt\u002Fhomebrew\u002FCaskroom\u002Fgoogle-cloud-sdk\u002Flatest\u002Fgoogle-cloud-sdk\u002Fplatform\u002Fbq_libs \\\n  PYTHONNOUSERSITE=1 \\\n  bq query --project_id=\u003CPROJECT> --use_legacy_sql=false --format=json \\\n  \u003C\u003C'SQL'\nSELECT ... FROM `\u003Cproject>.\u003Cdataset>.\u003Ctable>` ...\nSQL\n```\n\nPath locations may vary per gcloud SDK install — `find \u002Fopt\u002Fhomebrew\u002FCaskroom\u002Fgoogle-cloud-sdk -name bq_libs -type d` to locate. Alternative when only one path is shadowed: `unset PYTHONPATH && cd \u002Ftmp && bq query ...` (must be a cwd outside `projects_other\u002Fhermes-agent\u002F`). DO NOT try to \"fix\" the shadowing by editing `hermes-agent\u002Futils.py` — that's a sibling repo and a separate fix.\n\n### P1: `gh pr view --json` returns `GraphQL: API rate limit already exceeded` — fall back to REST\n\nSymptom: `gh pr view \u003CN> --repo ... --json state,mergedAt,...` returns empty body + stderr `GraphQL: API rate limit already exceeded for user ID 13840161.` The GraphQL bucket (`graphql.remaining: 0\u002F5000`) is exhausted while the Core REST bucket (`core.remaining: 3000+\u002F5000`) still has budget.\n\nFix — use the REST endpoint (different bucket):\n\n```bash\ngh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fpulls\u002F\u003CN> \\\n  --jq '{number, state, merged: .merged, merge_commit_sha,\n         head_sha: .head.sha, head_ref: .head.ref, additions, deletions, changed_files, title}'\n```\n\nPR head SHA (`head_sha`) ≠ squash commit SHA (`merge_commit_sha`) — `gh pr view` reports the head; `git log origin\u002Fmain` reports the squash. Both are correct; pick the right one for your follow-up command. Verify bucket state with `gh api rate_limit --jq '.resources | {core: .core, graphql: .graphql}'`. The `reset` field is epoch seconds — `date -r \u003Creset>` for the wait time.\n\n### P2: BQ REST via urllib returns 403 from a sandbox — wrong ADC\n\nSymptom: `gcloud auth application-default print-access-token` then `POST https:\u002F\u002Fbigquery.googleapis.com\u002Fbigquery\u002Fv2\u002Fprojects\u002F\u003CPROJECT>\u002Fqueries` returns HTTP 403. The sandbox's ADC lacks `bigquery.jobs.create` on `\u003CPROJECT>`.\n\nFix — don't try to fix the ADC; route through the user's authenticated `bq` CLI session instead (Pitfall P0's `env -i` wrapper). The `bq` CLI uses the user's own gcloud credentials, not the sandbox's ADC, and it has the IAM by default. The only loss is that you can't run BQ queries from `execute_code`'s Python sandbox — call out to `terminal()` with the `env -i` wrapper instead.\n\nDiagnostic signature that this is the issue, not a real BQ outage: 403 with `\"required scope: https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fbigquery\"` or `\"PERMISSION_DENIED: ...does not have bigquery.jobs.create permission\"`, AND `gcloud auth list` shows the wrong active identity.\n\n## Anti-patterns\n\n- **Acking without verifying.** *\"Saw the alert, looking into it.\"* is a non-ack. Either verify and reply with evidence, or say so explicitly: *\"Not run yet — running the BQ queries now.\"*\n- **Treating alert-named mechanisms as facts.** If the alert names `bq_logging._payloads_schema_migrated` and your codebase has no such name, say so.\n- **Framing fixes around the alert's framing.** If the alert says \"stuck on a replica, not a transient blip\", verify — it might BE a transient blip that the cumulative window exaggerates.\n- **Treating an old alert body as live.** When an operator asks *\"is the wording clearer now?\"* they may be holding a 9-day-old alert text while the deployed script already shipped the fix. Prove staleness via SHA diff before answering; show BOTH legacy and post-merge wording side-by-side.\n- **Asking the user to choose between fix variants before applying the safe subset.** Per `no-pick-one-menus`: apply the safe subset, then list what was queued for review.\n- **Trusting prior-session reports about remote-system behavior without re-testing.** (NEW 2026-07-17) The same fossilization trap as \"treating an old alert body as live\", but generalized: any time a previous agent session left a claim about how a remote system behaves (\"cloud-build push was rejected by the secret guard\", \"the MCP server hangs on this endpoint\", \"this cron silently dies\"), that claim is a fossil until re-verified. Verified case 2026-07-17 (Slack C09GRLXF9GR): I inherited a prior session's framing that \"git secret guard rejected the push\" and reported cloud-build as broken for `$GITHUB_REPOSITORY` without re-running the hand-off. User replied *\"whats the secret guard? Lets make it do a hello world program\"* — a 5-min hello-world on a clean test repo proved the box actually works and the prior blocker was project-specific (tracked secrets in main history), not box-side. **Rule:** before reporting a remote-system behavior as a blocker in the current session, re-run the relevant probe (hand-off \u002F endpoint hit \u002F cron invocation) on a known-good input. The hello-world validation pattern in `superpowers-cloud-build\u002Freferences\u002Fhello-world-validation-2026-07-17.md` is the canonical template — same structure applies to any \"prior session said X is broken\" investigation: build isolated test, verify the X-is-broken claim on the test, then re-evaluate.\n\n## Pair-with skills\n\n- `systematic-debugging` — Phase 1 discipline (read errors, build tight loop, gather evidence) applies directly when verifying an alert with code cross-check.\n- SOUL.md `proof-before-claim` and `incident-proposal-current-evidence-gate` — same discipline applied at higher stakes.\n- `mcp-mail-ack` COMMIT — log every ack to `memory\u002Fmcp-mail-ack-log.md` with `(ts, summary, ack-ts)`.\n- SOUL.md `slack-cross-workspace-fallback-xoxp` — Path B when the bot token lacks scope for the alert channel.\n\n## References\n\n- `references\u002Fmcp-mail-bq-coverage-2026-07-13.md` — worked example from the original incident, including the per-day reframe.\n- `references\u002Fmcp-mail-bq-coverage-2026-07-15.md` — worked example showing: (a) Step 0 delivery-miss into channel `C0BCVG4F560`, (b) Step 1 reference-target corrections for the recurring `llm_payloads` watcher (project\u002Fdataset\u002Fcolumn\u002Ffilter), (c) the cumulative-vs-live reframe at 93.86% populated coverage.\n- `references\u002Fbq-coverage-alert-staleness-2026-07-15.md` — Step 3a in action: operator asked \"is the wording clearer\" 9 days after PR #774 merged; recipe for proving staleness via timestamp-in-body + SHA diff + live log entry. Includes the 5-step diagnosis protocol and a `not_in_channel` pitfall.\n- `references\u002Fin-house-cron-silent-failure-2026-07-15.md` — sister case where the \"alert\" comes from an in-house scheduled script (Daily Bug Hunt cron, `jleechanorg\u002Fjleechanclaw#782`), not a third-party telemetry alert. Same 4-step protocol applies, but the diagnostic recipe differs: read per-agent err files, verify the named subcommand exists on this install, then trace the script's preflight-vs-output-parse failure-counter asymmetry. Captures the \"fail-closed sentinel covers the wrong failure mode\" pattern that produces false-negative \"clean sweep\" reports.\n- `references\u002Fpost-merge-deployment-coverage-2026-07-20.md` — worked example for Steps 1b\u002F1c\u002F1d. PR #8418 (`fix\u002Fbq-is-test-null-cache-replay`) merged at 2026-07-19T00:54:46Z, but `mvp-site-app-stable` was last deployed 2026-07-18 21:05 UTC (3h 49m BEFORE the merge). Captures the full verification: BQ numbers, gcloud revisions list, 5-column co-NULL signature (100.0%), per-hour cohort decomposition showing 4 post-merge bursts matching pre-merge pattern, and the Slack verdict posted to C0BCVG4F560\u002F1784219487.851579. Cross-cuts Step 1b (deploy-coverage check), Step 1c (schema-gate signature), and Step 1d (per-hour cohort).\n\n## Verification checklist (run before posting ack)\n\n- [ ] **Step 0:** Channel\u002Fthread reachable for reply (bot is a member; if not, logged MISSING-delivery + flagged to user)\n- [ ] Alert's headline numbers reproduced exactly via live query\u002Fcommand\n- [ ] Alert's named mechanism (table\u002Fflag\u002Ffunction) found in actual code and read\n- [ ] BQ reference targets checked against live `bq show` \u002F `bq ls` (project, dataset, timestamp column, model filter)\n- [ ] **Step 3a:** Alert body timestamp identified; if operator is asking about wording clarity, proved staleness via SHA diff and showed BOTH legacy + post-merge text\n- [ ] Per-period breakdown checked when alert uses cumulative phrasing\n- [ ] Root cause stated with file:line citations\n- [ ] Fix recipe is concrete (file paths, line numbers, test names)\n- [ ] Open question is ONE concrete blocking question, not a multi-option menu\n- [ ] `? Memories used:` line included\n- [ ] Ack logged to `memory\u002Fmcp-mail-ack-log.md` if MCP Agent Mail\n- [ ] **If blocker came from a prior-session transcript:** re-tested the claimed behavior in the current session on a known-good input (hello-world \u002F sandbox invocation) before reporting it as a blocker in the reply. The prior session's framing may be a fossil.","# Verify Telemetry Alert Before Ack\n\n## Why this skill exists\n\nAutomated alert systems (BQ coverage watchers, MCP Agent Mail cron jobs, billing anomaly detectors, quota monitors) post warning\u002Ferror messages that demand acknowledgement. The naive path — read the alert, ack with the headline framing — has three recurring failure modes:\n\n1. **Accepting misframed claims.** Cumulative-window alerts often phrase drift as if it is live (\"8 consecutive days\") when the underlying reality is a different window (a cold-start accumulation, a deployment boundary, a sample of n rows that all came from one replica).\n2. **Skipping alert→code cross-check.** Alerts cite named mechanisms (table names, module-level flags, RPC names, schema columns). Those names can be wrong, drift from current code, or refer to a state object rather than the entity the alert implies.\n3. **Silent delivery failure.** Alert lands in a channel\u002Fthread the Hermes Slack bot is not a member of (or has lost membership for). `mcp__slack__conversations_replies` returns `not_in_channel`; the ack step is silently skipped; the user only finds out minutes-to-hours later via a question like *\"why didn't you respond to this?\"*. This must be detected and either routed around (user-relay, alternate channel) or fixed at the membership layer.\n\nThe fix is a 4-step protocol: (0) delivery check, (1) verify live numbers reproduce, (2) cross-check named mechanism against actual code, (3) reframe if needed. Run before acking *any* automated alert with operational consequences.\n\n## When to invoke\n\n- MCP Agent Mail, Slack channel watchers, BQ coverage alerts, GH Actions billing alerts, GCP quota alerts, or any automated system posts an alert with a named mechanism (table name, function name, flag, RPC, dataset).\n- An alert claims \"X consecutive days\" or \"X hours sustained\" — reframe risk.\n- An alert names a Cloud Run replica, K8s pod, or per-process state object as the suspect.\n- An alert suggests a fix that names a code path you have not read.\n- An alert arrives in a channel\u002Fthread where the bot's reply path may not work (post-deploy membership reset, cross-workspace message, internal-only channel) — run Step 0 first.\n\n## The 4-step protocol\n\n### Step 0: Delivery check (NEW 2026-07-15 — silently failing ack is worse than no ack)\n\nBefore any verification work, confirm you can actually reply to the source thread. Bot accounts are scoped to a workspace and lose channel membership silently.\n\n```bash\n# Test that the channel is reachable for replies\nmcp__slack__conversations_replies(channel_id=\u003Cchan>, thread_ts=\u003Calert_ts>, limit=1)\n# If this returns \"not_in_channel\" or \"channel_not_found\":\n#   1. Try the parent channel — the alert might be in a child under a parent\n#   2. Try `chat.postMessage` with the human user token (`SLACK_USER_TOKEN`) — Path B per SOUL.md `slack-cross-workspace-fallback-xoxp`. Reply will appear under the human's identity; say so in body if confusion risk.\n#   3. If still blocked: log the ack with delivery=MISSING to ~\u002F.hermes\u002Fmemory\u002Fmcp-mail-ack-log.md (see `mcp-mail-ack` SOUL COMMIT) AND mention the membership gap to the user in the next reply so it becomes a tracked fix, not a silent miss.\n```\n\nSymptom of the bug this catches: the user finally notices and asks *\"why didn't you respond to this message?\"* — by then the operational claim has been silent for the entire alert window.\n\n### Step 1: Verify live numbers reproduce\n\nBefore acking any alert with quantitative claims, re-run the queries or commands the alert implies. Live evidence beats alert prose.\n\n```bash\n# Example (BQ coverage alert):\nbq query --use_legacy_sql=false --format=pretty '\nSELECT\n  COUNTIF(\u003Calert_predicate>) AS claimed_n,\n  COUNT(*) AS total\nFROM `\u003Cdataset>.\u003Ctable>`\nWHERE \u003Calert_window>'\n```\n\nMatch every headline number the alert posts. If the alert says \"8,834 of 9,835 rows have is_test IS NULL\", reproduce both numbers exactly. If any number diverges, say so in the ack — the alert's framing might be stale or wrong.\n\n### Step 1b: Verify deployment coverage (NEW 2026-07-20 — for post-merge fix verification)\n\nWhen the verification is a post-merge fix check (\"did PR #N actually fix the bug?\"), reproducing the alert numbers is **necessary but not sufficient**. The bug might still reproduce because the fix is in the code on origin\u002Fmain but the running image is stale. Recipe:\n\n```bash\n# 1. Confirm the PR is merged (cheap, fast):\ngh pr view \u003CN> --repo \u003COWNER>\u002F\u003CREPO> --json state,mergedAt,headRefOid\n# Expected: state=MERGED, mergedAt=\u003CISO timestamp>, headRefOid=\u003CSHA>\n\n# 2. Find the Cloud Run service that actually receives prod traffic. For\n#    $GITHUB_REPOSITORY the pattern is:\n#      mvp-site-app-stable      ← stable, receives all prod traffic\n#      mvp-site-app-preview     ← preview channel, traffic = 0 in prod\n#      mvp-site-app-{s1..s10}   ← staging shards, NOT prod\n#    Verify which service has 100% latestRevision traffic:\ngcloud run services list --project=\u003CPROJECT> --region=us-central1 \\\n  --format='table(SERVICE,LAST DEPLOYED BY,LAST DEPLOYED AT)'\n\n# 3. Pull the deploy timestamps of the stable service's revisions:\ngcloud run revisions list --service=\u003Cstable-service> --region=us-central1 \\\n  --project=\u003CPROJECT> --limit=5\n# Look at the ACTIVE revision's \"DEPLOYED\" column.\n\n# 4. Cross-check: is the stable service's last deploy AFTER the merge?\n#    If the service's last deploy timestamp is BEFORE mergedAt, the fix\n#    never reached prod. The running image still has the bug.\nif [[ \"$(gcloud run revisions list --service=\u003Cstable> --region=us-central1 \\\n  --project=\u003CPROJECT> --limit=1 --format='value(metadata.creationTimestamp)')\" \\\n  \u003C \"$mergedAt\" ]]; then\n  echo \"BUG STILL REPRODUCING — fix in code, not in running binary\"\nfi\n\n# 5. Optional sanity: confirm the current image tag matches the merge SHA.\ngcloud run services describe \u003Cstable-service> --region=us-central1 \\\n  --project=\u003CPROJECT> --format='yaml(spec.template.spec.containers[0].image)'\n# If the image digest ends in `:\u003Cmerge-sha-prefix>` or has a recent build\n# date, the fix is live. Otherwise the image is stale.\n```\n\n**Why this is its own step.** The naive post-merge verification is \"BQ numbers show the bug, but the fix code passed all unit tests, so the deploy didn't propagate.\" The unit tests, the CI green check, the `gh pr view MERGED` — none of these prove the running binary has the fix. They prove origin\u002Fmain has the fix. A Cloud Run service is re-deployed only when someone triggers a release (manual `gcloud run deploy`, a release branch push to a workflow that watches it, or an automated promotion). The merge → deploy gap can be hours to weeks.\n\n**Verified case 2026-07-20, PR #8418:** merge at 2026-07-19T00:54:46Z; `mvp-site-app-stable` last deployed 2026-07-18 21:05 UTC (3h 49m **before** the merge); 4 post-merge is_test NULL bursts (07-19 19:00\u002F20:00\u002F21:00, 07-20 04:00) involving the production agent roster confirmed the old bug still reproducing because the new code never reached the running image. The full worked example is at `references\u002Fpost-merge-deployment-coverage-2026-07-20.md`.\n\n**What to do when Step 1b fails:** do NOT mark the PR's bead resolved. Post the verdict with `? STILL BROKEN — fix in code, not in prod` and a concrete remediation (trigger a redeploy to `\u003Cstable-service>` from the merge SHA, or open a fresh `rev-\u003Cdeploy-bead>` and dispatch). The watcher alert will re-fire at the next tick — that's the right behavior, since the bug IS still happening.\n\n### Step 1c: Schema-gate co-NULL signature (NEW 2026-07-20 — distinguishes schema-cache bug class)\n\nWhen the alert (or the live data) shows `is_test IS NULL` rows, a generic count of NULL rows can't tell you whether the root cause is a `module-global-flag-race` (PR #8418's pattern) or a different insert-pipeline failure. The diagnostic signature that distinguishes the schema-cache bug class:\n\n```sql\nSELECT\n  COUNTIF(is_test IS NULL) AS n_is_test_null,\n  COUNTIF(\n    is_test IS NULL\n    AND cached_tokens IS NULL\n    AND thoughts_tokens IS NULL\n    AND tool_use_tokens IS NULL\n    AND rag_mode IS NULL\n  ) AS co_null_5col,\n  ROUND(100.0 * COUNTIF(\n    is_test IS NULL\n    AND cached_tokens IS NULL\n    AND thoughts_tokens IS NULL\n    AND tool_use_tokens IS NULL\n    AND rag_mode IS NULL\n  ) \u002F GREATEST(1, COUNTIF(is_test IS NULL)), 2) AS co_null_pct\nFROM `\u003CPROJECT>.\u003Cdataset>.\u003Ctable>`\nWHERE \u003Calert_window>\n  AND \u003Calert_model_filter>\n```\n\n**Interpretation:**\n- `co_null_pct ≈ 100%` — every `is_test NULL` row also lacks all four other schema-gated columns. The producer process's column-name cache was empty (or the gate was bypassed entirely). This is the `_payloads_schema_migrated` \u002F per-process cache bug class. Fix is in the writer code.\n- `co_null_pct \u003C 50%` — `is_test` is being independently dropped or not set on rows that DO populate other gated columns. This is a different bug (maybe a request-path code branch that bypasses the `is_test` assignment but still hits the cache). Don't conflate it with the schema-cache bug — the fix will be different.\n- `co_null_pct = 0%` — `is_test` is NULL but every other gated column is populated. This is a separate field-level bug (maybe a feature flag disabling `is_test` only).\n\n**Why this matters:** the watcher alert firing on `is_test IS NULL` (threshold N=10, streak ≥3) was the SAME alert as the original PR #8418 fix. If after the merge the `co_null_pct` drops to 0%, the fix worked but a different bug is now visible. If `co_null_pct` stays at 100%, the fix didn't take (Step 1b territory — image not deployed). If `co_null_pct` is somewhere in between, the fix partially took and a sibling bug is exposed.\n\n**Verified case 2026-07-20, PR #8418:** post-merge, the 161 is_test NULL rows in last 24h had `co_null_pct = 100.0%` — every NULL row also lacked the 4 sibling schema-gated columns, confirming the SAME bug class was reproducing, not a new one. The `co_null_pct` is the test that proves \"this is the same bug as before\" vs. \"this is a new regression.\"\n\n### Step 1d: Per-hour cohort decomposition (NEW 2026-07-20 — for fix-vs-stale-image disambiguation)\n\nAfter Steps 1b and 1c, decompose the 24h or 48h window by hour and label each hour as pre-merge \u002F post-merge:\n\n```sql\nSELECT\n  FORMAT_TIMESTAMP('%Y-%m-%d %H:00', ingested_at) AS hour,\n  COUNTIF(is_test IS NULL) AS n_is_test_null,\n  COUNT(*) AS n_total,\n  ARRAY_AGG(DISTINCT agent IGNORE NULLS LIMIT 5) AS top_agents\nFROM `\u003CPROJECT>.\u003Cdataset>.\u003Ctable>`\nWHERE ingested_at > TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR)\n  AND \u003Calert_model_filter>\n  AND is_test IS NULL\nGROUP BY hour ORDER BY hour DESC\n```\n\n**Interpretation matrix:**\n\n| Pre-merge hours | Post-merge hours | Diagnosis |\n|---|---|---|\n| n_null high | n_null = 0 | ✅ FIX HELD. The deploy reached prod AND the code works. |\n| n_null high | n_null high | ? STILL BROKEN. Likely Step 1b (image not redeployed). Confirm with `gcloud run revisions list`. |\n| n_null = 0 | n_null high | ? REGRESSION. The fix introduced a new bug. Compare agent roster to pre-merge — different agents means a new code path is failing. |\n| n_null low | n_null low | ✅ FIX HELD + low traffic. Bug was minor and is now contained. |\n\n**Verified case 2026-07-20, PR #8418:** the per-hour cohort clearly showed pre-merge hours (07-19 13:00, 19:00, 20:00, 21:00, 07-20 04:00) had 23-46 NULL rows from the production agent roster (CharacterCreationAgent, StoryModeAgent, GodModeAgent, FactionManagementAgent, etc.), while most other hours had 0 NULL rows. The bursts were concentrated in pre-merge hours with a few post-merge spikes — classic Step 1b image-not-deployed pattern (the fix hadn't reached prod yet, but the running prod was still on the pre-fix image, so it produced the same bursts as before).\n\n**Why averaging doesn't work:** a 24h aggregate of `is_test IS NULL = 161\u002F1623 = 9.92%` looks \"almost fine\" if you don't compare to the pre-merge baseline. The per-hour decomposition reveals that the pre-merge and post-merge hours have IDENTICAL burst patterns, which is the smoking gun for \"fix not deployed.\"\n\n**BQ reference targets for the recurring `llm_payloads` watcher (verified 2026-07-15):**\n\n| Field | Stale alert guess | Actual value | Check |\n|---|---|---|---|\n| Project ID | `worldarchitect-ai` (note the `-ai` not `-ai.ai`) | `worldarchitecture-ai` | `gcloud config get-value project` |\n| Dataset | `firestore_export` | `llm_forensics` | `bq ls --project_id=... \u003Cdataset>` |\n| Timestamp column | `ts` | `ingested_at` | `bq show \u003Cdataset>.\u003Ctable>` |\n| Gemini filter | `model LIKE 'gemini%'` | `LOWER(IFNULL(agent,'')) LIKE '%gemini%' OR LOWER(IFNULL(model,'')) LIKE '%gemini%'` | `bq query 'SELECT DISTINCT model FROM ... LIMIT 5'` |\n\nAccount selection (must be a service account or human with `BigQuery Data Viewer`): `gcloud auth list` will show whether the active account is the right identity for the dataset; some watchers write to one project and read from another.\n\nAlways write the SQL to a temp file (`\u002Ftmp\u002Falert_verify.sql`) and pipe via `\u003C`, not shell-quoted `-e`: a stray `%` in `LIKE '%gemini%'` breaks a single-quoted heredoc on shells with format-string expansion.\n\n### Step 2: Cross-check the named mechanism against actual code\n\nAlerts cite named mechanisms. Treat those names as **leads**, not facts. Verify them in the actual code path.\n\nCommon pattern (verified 2026-07-13 against MCP Agent Mail BQ coverage alert):\n\n- Alert says: *\"Likely lazy schema-migration failure on a Cloud Run replica — see `bq_logging._payloads_schema_migrated` flag.\"*\n- The name `_payloads_schema_migrated` is a **Python module-level bool** in `$PROJECT_ROOT\u002Fbq_logging.py`, NOT a table. Reading the code revealed it gates `row[\"is_test\"] = test_flag` until a per-process PATCH migration flips the flag — meaning every Cloud Run replica carries its own copy, and any replica whose lazy migration hasn't yet run (cold start, transient 5xx, or 60s backoff retry window) inserts rows without `is_test`.\n\nRecipe to cross-check:\n\n```bash\n# 1. Find the file the alert names (replace with the alert's named path):\nrg -n \"_payloads_schema_migrated\" \u002Fpath\u002Fto\u002Fcode\n\n# 2. Read the insert path that uses it:\nsed -n '700,750p' \u002Fpath\u002Fto\u002Fbq_logging.py\n\n# 3. Confirm what the flag is (module-level bool? env var? config?):\nrg -n \"^_payloads_schema_migrated\\s*=\" \u002Fpath\u002Fto\u002Fcode\n```\n\nIf the named mechanism does not match code reality (different table name, different flag scope, different gating logic), the alert's diagnosis is wrong even if the numbers are right.\n\n### Step 3a: Alert-staleness check (NEW 2026-07-15 — operator asks \"is the wording clearer yet?\")\n\nBefore reframing the alert's *content*, check whether the alert *body* the user is looking at is still live. Two common patterns:\n\n**Pattern A — pre-merge alert text in user's hand, post-merge code already deployed.** Operator opens an old Slack message and asks \"what does this alert even do \u002F is the wording clearer\". The current deployed alert script has already been updated; the alert they're holding is a fossil.\n\nRecipe to prove staleness:\n```bash\n# 1. Identify the alert's timestamp (usually inside the body, e.g. \"2026-07-06 16:30:23 UTC\").\n# 2. Find the deployed script.\nlaunchctl print gui\u002F$(id -u) 2>\u002Fdev\u002Fnull | grep -i \"\u003Cwatcher-name>\"       # macOS launchd path\n# or: grep -rn \"\u003Cwatcher-name>\" ~\u002F.hermes\u002Fcron\u002F ~\u002F.hermes\u002Flaunchd\u002F\n\n# 3. Read the SHA of origin\u002Fmain for that script.\ngh api \"repos\u002F\u003COWNER>\u002F\u003CREPO>\u002Fcommits?path=\u003Cscript>&per_page=5\" --jq '.[] | \"\\(.sha[0:7]) \\(.commit.message | split(\"\\n\")[0])\"'\n\n# 4. Diff the deployed file (often a mirror under ~\u002F.hermes\u002Fscripts\u002F) against the post-merge version.\ngh api \"repos\u002F\u003COWNER>\u002F\u003CREPO>\u002Fcontents\u002F\u003Cscript>?ref=\u003Cpost_merge_sha>\" \\\n  -H \"Accept: application\u002Fvnd.github.raw\" > \u002Ftmp\u002Fpost_merge.py\nwc -l ~\u002F.hermes\u002Fscripts\u002F\u003Cscript> \u002Ftmp\u002Fpost_merge.py\ndiff -q ~\u002F.hermes\u002Fscripts\u002F\u003Cscript> \u002Ftmp\u002Fpost_merge.py\n\n# 5. Show the operator the latest log entry — that's the text they'll actually see going forward.\ntail -50 ~\u002F.hermes\u002Flogs\u002F\u003Cwatcher>.error.log | grep -A2 \"\u003Cmode-tag>\"\n```\n\n**Pattern B — wording drift after a partial cherry-pick or backport.** A commit landed on `main` for the watcher but the deployed launchd copy is older. Same recipe; the `diff` will show what's not yet on the deployed machine.\n\nOutput shape for a staleness reframing:\n1. Alert body timestamp (from the user's message, e.g. `2026-07-06 16:30:23 UTC`).\n2. Latest commit SHA on `origin\u002Fmain` for the watcher script (e.g. `99cb779`).\n3. Merge date of the last wording change (e.g. `2026-07-15 20:58:26Z`).\n4. Diff: deployed file vs post-merge (line counts + key wording lines).\n5. Latest live log entry — the text the operator will actually see on the next cron tick.\n\nDo NOT just say \"the wording is clearer now\" without showing the new text. Operator asked about wording specifically; show BOTH legacy and post-merge lines side-by-side.\n\n### Step 3a.1: Follow-up wording patch recipe (NEW 2026-07-15 — operator says \"make followup\" after Step 3a)\n\nAfter proving staleness and showing what PR #774 (or whichever prior PR) already fixed, the operator often replies *\"make followup\"* — they want a tighter version of the wording, not just an explanation. The 3-grep fix-up pattern:\n\n**1. Identify the 3 wording gaps that survived the prior PR.** Concretely, check:\n   - **File-path gap** — does the alert name the flag but not the file? Add the file path and 1-line context.\n   - **Threshold gap** — does the summary line show a counter without labeling whether it's tripped? Use `(TRIPS alert ≥ N)` when at\u002Fabove threshold, `(alert threshold: N)` otherwise.\n   - **Remediation gap** — does the alert name the suspected mechanism but not say what to do? Add explicit remediation: `Remediation: redeploy to force cold-start + migration on all replicas; or run scripts\u002Fbackfill_bq_is_test_null.py to backfill the historical NULL rows.`\n\n**2. Make a clean branch from `origin\u002Fmain` via worktree (NEVER from the user's dirty worktree — see `always-pr-never-local-edit` §\"Cross-repo pre-flight\").**\n```bash\ngit -C \u003Crepo> worktree add -b fix\u002F\u003Cwatcher>-\u003Cwording-summary> \u002Ftmp\u002F\u003Crepo>-\u003Ctopic> origin\u002Fmain\n# NB: this assumes fresh auth — see Step 0 in the worktree auth pattern below.\n```\n\n**3. Make the patches inline.** Apply each wording change as a single targeted edit; keep the diff to \u003C50 lines so the PR is reviewable in one pass.\n\n**4. Add unit tests covering the new wording.** Even for a pure-wording change, add 2–4 tests asserting the new substring is present (e.g. `assert \"Remediation:\" in msg`). These prevent future wording regressions in CI.\n\n**5. Pitfall — test files import via `Path.home()`.** Some test files (notably `scripts\u002Ftests\u002Ftest_bq_coverage_watcher.py`) do `importlib.util.spec_from_file_location(\"...\", Path.home() \u002F \".hermes\" \u002F \"scripts\" \u002F \"\u003Cwatcher>.py\")` rather than importing the worktree copy. Without the work-around, your tests run against `~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py` (the deployed copy), not your patched file, and all \"new wording\" tests fail.\n\nWork-around recipe (run before `pytest`):\n```bash\n# Save the deployed copy for restore after testing\ncp ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py.bak-$(date +%s)\n# Copy the patched worktree version into the import-target path\ncp \u002Ftmp\u002F\u003Crepo>-\u003Ctopic>\u002Fscripts\u002F\u003Cwatcher>.py ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py\n# Now run pytest from anywhere — tests pick up the patched file\npython3 -m pytest \u002Ftmp\u002F\u003Crepo>-\u003Ctopic>\u002Fscripts\u002Ftests\u002Ftest_\u003Cwatcher>.py -v\n# ALWAYS restore before commit, otherwise the local deploy drifts from main\nmv ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py.bak-$(date +%s) ~\u002F.hermes\u002Fscripts\u002F\u003Cwatcher>.py\n```\n\n**6. Push + open the PR.** Verify the SHA lands on `origin\u002F\u003Cbranch>` (the local `git rev-parse` is authoritative — `gh pr view --json headRefOid` lags by ~30s).\n\n**7. In the reply, present BOTH before-and-after text.** Operator asked about wording; show the legacy lines vs the new lines side-by-side. Don't just say \"I added remediation hints\".\n\nVerified case 2026-07-15, jleechanorg\u002Fjleechanclaw#781: alert body from 2026-07-06 16:30 UTC; PR #774 merged 2026-07-15 20:58 UTC; 3 wording gaps remained (file-path, threshold label, remediation hint); 4 new tests added; 11\u002F11 passing. Follow-up PR opened at [jleechanorg\u002Fjleechanclaw#781](https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechanclaw\u002Fpull\u002F781).\n\n### Step 3b: Reframe if the alert's framing misleads\n\nAlerts often reframe raw data into a more alarming shape. Verify whether the framing matches reality.\n\nConcrete reframe pattern (BQ coverage alert, 2026-07-13):\n\n- Alert framing: *\"`is_test IS NULL` rows have been flowing for 8 consecutive days — migration may be stuck on a replica.\"*\n- Reality check: per-day breakdown showed `is_test` was 0% on 8\u002F9\u002F10 July, started appearing 11 July (53 rows), ramped 12 July (304), 13 July (644). The 8,834 NULL rows are the *cumulative cold-start window of any replica whose lazy migration hasn't flipped*, not 8 days of active drift.\n- Reframe: *\"The cumulative NULL count is the cold-start window across N replicas, not 8 days of drift. Migration landed on at least one replica on 2026-07-11.\"*\n\nHeuristic: when an alert says \"X consecutive days\" or \"X hours sustained\", break the window into per-period buckets and ask: is this cumulative or live? A cumulative count of a per-row state column will always grow monotonically even after the underlying issue is fixed on a subset of writers.\n\n## Output template for the ack\n\nAfter verifying, ack in this shape:\n\n1. **Verified:** which alert numbers reproduced exactly.\n2. **Reframing:** if the alert's framing misleads, state the corrected picture.\n3. **Root cause:** name the actual mechanism (with file:line citations), not the alert's named mechanism if it differs.\n4. **Fix recipe:** concrete next steps (file paths, line numbers, test names).\n5. **Open question:** what still needs human input (e.g., \"open the PR now, or patch the alert threshold first?\"). End with ONE concrete blocking question if needed, never a multi-option menu.\n\nAlways include `? Memories used:` at the end per the always-on guardrail.\n\n## Tooling prerequisites for Step 1 (NEW 2026-07-19 — `bq` \u002F `gh` failures that block live probing)\n\nBefore running Step 1's live probe against BigQuery or GitHub, sanity-check the toolchain. These are silent failures on this Mac that look like \"the alert is wrong\" or \"the API is down\" but are actually local environment issues.\n\n### P0: `bq` CLI broken on this Mac — `env -i PYTHONPATH=` workaround\n\nSymptom: `bq query ...` fails with:\n\n```\nTraceback (most recent call last):\n  File \"\u002Fopt\u002Fhomebrew\u002Fshare\u002Fgoogle-cloud-sdk\u002Fplatform\u002Fbq\u002Fbq.py\", line 42, in \u003Cmodule>\n    import credential_loader\n  File \"...\u002Fcredential_loader.py\", line 26, in \u003Cmodule>\n    import wrapped_credentials\n  File \"...\u002Fwrapped_credentials.py\", line 24, in \u003Cmodule>\n    from utils import bq_error\nImportError: cannot import name 'bq_error' from 'utils' ($HOME\u002Fprojects_other\u002Fhermes-agent\u002Futils.py)\n```\n\nRoot cause: `$HOME\u002Fprojects_other\u002Fhermes-agent\u002Futils.py` shadows the gcloud SDK's `utils` module on Python's import path (the cwd or `PYTHONPATH` includes `projects_other\u002Fhermes-agent\u002F`). The fix is to run `bq` in a clean environment with explicit `PYTHONPATH` pointing only at the gcloud SDK's library dirs:\n\n```bash\nenv -i \\\n  PATH=\u002Fopt\u002Fhomebrew\u002Fbin:\u002Fusr\u002Fbin:\u002Fbin \\\n  HOME=$HOME \\\n  PYTHONPATH=\u002Fusr\u002Flocal\u002FCaskroom\u002Fgoogle-cloud-sdk\u002Flatest\u002Fgoogle-cloud-sdk\u002Flib\u002Fthird_party:\\\n\u002Fusr\u002Flocal\u002FCaskroom\u002Fgoogle-cloud-sdk\u002Flatest\u002Fgoogle-cloud-sdk\u002Flib:\\\n\u002Fopt\u002Fhomebrew\u002FCaskroom\u002Fgoogle-cloud-sdk\u002Flatest\u002Fgoogle-cloud-sdk\u002Fplatform\u002Fbq_libs \\\n  PYTHONNOUSERSITE=1 \\\n  bq query --project_id=\u003CPROJECT> --use_legacy_sql=false --format=json \\\n  \u003C\u003C'SQL'\nSELECT ... FROM `\u003Cproject>.\u003Cdataset>.\u003Ctable>` ...\nSQL\n```\n\nPath locations may vary per gcloud SDK install — `find \u002Fopt\u002Fhomebrew\u002FCaskroom\u002Fgoogle-cloud-sdk -name bq_libs -type d` to locate. Alternative when only one path is shadowed: `unset PYTHONPATH && cd \u002Ftmp && bq query ...` (must be a cwd outside `projects_other\u002Fhermes-agent\u002F`). DO NOT try to \"fix\" the shadowing by editing `hermes-agent\u002Futils.py` — that's a sibling repo and a separate fix.\n\n### P1: `gh pr view --json` returns `GraphQL: API rate limit already exceeded` — fall back to REST\n\nSymptom: `gh pr view \u003CN> --repo ... --json state,mergedAt,...` returns empty body + stderr `GraphQL: API rate limit already exceeded for user ID 13840161.` The GraphQL bucket (`graphql.remaining: 0\u002F5000`) is exhausted while the Core REST bucket (`core.remaining: 3000+\u002F5000`) still has budget.\n\nFix — use the REST endpoint (different bucket):\n\n```bash\ngh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fpulls\u002F\u003CN> \\\n  --jq '{number, state, merged: .merged, merge_commit_sha,\n         head_sha: .head.sha, head_ref: .head.ref, additions, deletions, changed_files, title}'\n```\n\nPR head SHA (`head_sha`) ≠ squash commit SHA (`merge_commit_sha`) — `gh pr view` reports the head; `git log origin\u002Fmain` reports the squash. Both are correct; pick the right one for your follow-up command. Verify bucket state with `gh api rate_limit --jq '.resources | {core: .core, graphql: .graphql}'`. The `reset` field is epoch seconds — `date -r \u003Creset>` for the wait time.\n\n### P2: BQ REST via urllib returns 403 from a sandbox — wrong ADC\n\nSymptom: `gcloud auth application-default print-access-token` then `POST https:\u002F\u002Fbigquery.googleapis.com\u002Fbigquery\u002Fv2\u002Fprojects\u002F\u003CPROJECT>\u002Fqueries` returns HTTP 403. The sandbox's ADC lacks `bigquery.jobs.create` on `\u003CPROJECT>`.\n\nFix — don't try to fix the ADC; route through the user's authenticated `bq` CLI session instead (Pitfall P0's `env -i` wrapper). The `bq` CLI uses the user's own gcloud credentials, not the sandbox's ADC, and it has the IAM by default. The only loss is that you can't run BQ queries from `execute_code`'s Python sandbox — call out to `terminal()` with the `env -i` wrapper instead.\n\nDiagnostic signature that this is the issue, not a real BQ outage: 403 with `\"required scope: https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fbigquery\"` or `\"PERMISSION_DENIED: ...does not have bigquery.jobs.create permission\"`, AND `gcloud auth list` shows the wrong active identity.\n\n## Anti-patterns\n\n- **Acking without verifying.** *\"Saw the alert, looking into it.\"* is a non-ack. Either verify and reply with evidence, or say so explicitly: *\"Not run yet — running the BQ queries now.\"*\n- **Treating alert-named mechanisms as facts.** If the alert names `bq_logging._payloads_schema_migrated` and your codebase has no such name, say so.\n- **Framing fixes around the alert's framing.** If the alert says \"stuck on a replica, not a transient blip\", verify — it might BE a transient blip that the cumulative window exaggerates.\n- **Treating an old alert body as live.** When an operator asks *\"is the wording clearer now?\"* they may be holding a 9-day-old alert text while the deployed script already shipped the fix. Prove staleness via SHA diff before answering; show BOTH legacy and post-merge wording side-by-side.\n- **Asking the user to choose between fix variants before applying the safe subset.** Per `no-pick-one-menus`: apply the safe subset, then list what was queued for review.\n- **Trusting prior-session reports about remote-system behavior without re-testing.** (NEW 2026-07-17) The same fossilization trap as \"treating an old alert body as live\", but generalized: any time a previous agent session left a claim about how a remote system behaves (\"cloud-build push was rejected by the secret guard\", \"the MCP server hangs on this endpoint\", \"this cron silently dies\"), that claim is a fossil until re-verified. Verified case 2026-07-17 (Slack C09GRLXF9GR): I inherited a prior session's framing that \"git secret guard rejected the push\" and reported cloud-build as broken for `$GITHUB_REPOSITORY` without re-running the hand-off. User replied *\"whats the secret guard? Lets make it do a hello world program\"* — a 5-min hello-world on a clean test repo proved the box actually works and the prior blocker was project-specific (tracked secrets in main history), not box-side. **Rule:** before reporting a remote-system behavior as a blocker in the current session, re-run the relevant probe (hand-off \u002F endpoint hit \u002F cron invocation) on a known-good input. The hello-world validation pattern in `superpowers-cloud-build\u002Freferences\u002Fhello-world-validation-2026-07-17.md` is the canonical template — same structure applies to any \"prior session said X is broken\" investigation: build isolated test, verify the X-is-broken claim on the test, then re-evaluate.\n\n## Pair-with skills\n\n- `systematic-debugging` — Phase 1 discipline (read errors, build tight loop, gather evidence) applies directly when verifying an alert with code cross-check.\n- SOUL.md `proof-before-claim` and `incident-proposal-current-evidence-gate` — same discipline applied at higher stakes.\n- `mcp-mail-ack` COMMIT — log every ack to `memory\u002Fmcp-mail-ack-log.md` with `(ts, summary, ack-ts)`.\n- SOUL.md `slack-cross-workspace-fallback-xoxp` — Path B when the bot token lacks scope for the alert channel.\n\n## References\n\n- `references\u002Fmcp-mail-bq-coverage-2026-07-13.md` — worked example from the original incident, including the per-day reframe.\n- `references\u002Fmcp-mail-bq-coverage-2026-07-15.md` — worked example showing: (a) Step 0 delivery-miss into channel `C0BCVG4F560`, (b) Step 1 reference-target corrections for the recurring `llm_payloads` watcher (project\u002Fdataset\u002Fcolumn\u002Ffilter), (c) the cumulative-vs-live reframe at 93.86% populated coverage.\n- `references\u002Fbq-coverage-alert-staleness-2026-07-15.md` — Step 3a in action: operator asked \"is the wording clearer\" 9 days after PR #774 merged; recipe for proving staleness via timestamp-in-body + SHA diff + live log entry. Includes the 5-step diagnosis protocol and a `not_in_channel` pitfall.\n- `references\u002Fin-house-cron-silent-failure-2026-07-15.md` — sister case where the \"alert\" comes from an in-house scheduled script (Daily Bug Hunt cron, `jleechanorg\u002Fjleechanclaw#782`), not a third-party telemetry alert. Same 4-step protocol applies, but the diagnostic recipe differs: read per-agent err files, verify the named subcommand exists on this install, then trace the script's preflight-vs-output-parse failure-counter asymmetry. Captures the \"fail-closed sentinel covers the wrong failure mode\" pattern that produces false-negative \"clean sweep\" reports.\n- `references\u002Fpost-merge-deployment-coverage-2026-07-20.md` — worked example for Steps 1b\u002F1c\u002F1d. PR #8418 (`fix\u002Fbq-is-test-null-cache-replay`) merged at 2026-07-19T00:54:46Z, but `mvp-site-app-stable` was last deployed 2026-07-18 21:05 UTC (3h 49m BEFORE the merge). Captures the full verification: BQ numbers, gcloud revisions list, 5-column co-NULL signature (100.0%), per-hour cohort decomposition showing 4 post-merge bursts matching pre-merge pattern, and the Slack verdict posted to C0BCVG4F560\u002F1784219487.851579. Cross-cuts Step 1b (deploy-coverage check), Step 1c (schema-gate signature), and Step 1d (per-hour cohort).\n\n## Verification checklist (run before posting ack)\n\n- [ ] **Step 0:** Channel\u002Fthread reachable for reply (bot is a member; if not, logged MISSING-delivery + flagged to user)\n- [ ] Alert's headline numbers reproduced exactly via live query\u002Fcommand\n- [ ] Alert's named mechanism (table\u002Fflag\u002Ffunction) found in actual code and read\n- [ ] BQ reference targets checked against live `bq show` \u002F `bq ls` (project, dataset, timestamp column, model filter)\n- [ ] **Step 3a:** Alert body timestamp identified; if operator is asking about wording clarity, proved staleness via SHA diff and showed BOTH legacy + post-merge text\n- [ ] Per-period breakdown checked when alert uses cumulative phrasing\n- [ ] Root cause stated with file:line citations\n- [ ] Fix recipe is concrete (file paths, line numbers, test names)\n- [ ] Open question is ONE concrete blocking question, not a multi-option menu\n- [ ] `? Memories used:` line included\n- [ ] Ack logged to `memory\u002Fmcp-mail-ack-log.md` if MCP Agent Mail\n- [ ] **If blocker came from a prior-session transcript:** re-tested the claimed behavior in the current session on a known-good input (hello-world \u002F sandbox invocation) before reporting it as a blocker in the reply. The prior session's framing may be a fossil.",{"name":5,"history":65,"version":72,"metadata":73,"description":7},[66,67,68,69,70,71],"1.5.0 (2026-07-20): Added Step 1b (deployment-coverage verification) and Step 1c (5-column co-NULL signature diagnostic). For any post-merge fix verification on a Cloud Run service, the merge SHA landing on origin\u002Fmain does NOT mean the running image has the fix. Recipe: cross-check `gcloud run revisions list --service=\u003Cstable-service>` last-deployed timestamp against the merge timestamp; if the service's last deploy predates the merge, the fix is in code but not in the running binary. Verified live 2026-07-20 against PR #8418 (`fix\u002Fbq-is-test-null-cache-replay`, merged 2026-07-19T00:54:46Z): `mvp-site-app-stable` last deployed 2026-07-18 21:05 UTC (3h 49m BEFORE the merge) on image `gcr.io\u002Fworldarchitecture-ai\u002Fmvp-site-app:stable-65dd85b`. 4 post-merge is_test NULL bursts (07-19 19:00, 20:00, 21:00, 07-20 04:00) involving the production agent roster confirmed the bug was still reproducing because the fix never reached prod. The 5-column co-NULL signature (`is_test IS NULL AND cached_tokens IS NULL AND thoughts_tokens IS NULL AND tool_use_tokens IS NULL AND rag_mode IS NULL`) distinguishes the schema-gate bug class from a generic insert-pipeline failure — the schema-gate columns are NULL together because the process's column-name cache was empty. Reference file `references\u002Fpost-merge-deployment-coverage-2026-07-20.md` ships the full worked example including per-hour cohort breakdown and gcloud + bq query recipes.","1.4.0 (2026-07-19): Added Pitfall P0 (Step 1 prerequisite) — the `bq` CLI on this Mac is broken because `$HOME\u002Fprojects_other\u002Fhermes-agent\u002Futils.py` shadows the gcloud SDK's `utils` module on Python's import path; fix is `env -i PATH=… PYTHONPATH=… PYTHONNOUSERSITE=1 bq query …` (paths vary per gcloud SDK install — `find \u002Fopt\u002Fhomebrew\u002FCaskroom\u002Fgoogle-cloud-sdk -name bq_libs -type d` to locate). Added Pitfall P1 (Step 1 alternative) — when `gh pr view --json` returns `GraphQL: API rate limit already exceeded`, fall back to REST `gh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002Fpulls\u002F\u003CN>` (different bucket, usually still has budget). Pitfall P2 (Step 2 prerequisite) — when BQ REST via urllib from a sandbox returns 403 on `bigquery.jobs.create`, the sandbox's ADC lacks the IAM role; route the BQ probe through `env -i bq` on the user's authenticated gcloud session instead. Verified live 2026-07-19 against the `is_test IS NULL` alert in Slack C0BCVG4F560\u002F1784219487.851579 — these three pitfalls cost ~10 minutes of failed probes before the workaround landed.","1.3.0 (2026-07-17): Added generic anti-pattern #7 — 'Don't trust prior-session reports about remote-system behavior; re-test before claiming it's a blocker.' Verified case: 2026-07-17 cloud-build drive (Slack C09GRLXF9GR). I inherited a prior session's framing that 'git secret guard rejected the push' and reported cloud-build as broken without re-running the hand-off. The user replied 'whats the secret guard? Lets make it do a hello world program' — a 5-min hello-world proved the box actually works on clean repos and the prior blocker was project-specific (tracked secrets in main history), not box-side. Generalizes: any prior-session claim about remote\u002F3rd-party behavior (cloud-build, CI, MCP servers, launchd jobs, cron pipelines) must be re-verified in the current session before being reported as a blocker. The hello-world validation recipe lives at `~\u002F.hermes\u002Fskills\u002Fdevops\u002Fsuperpowers-cloud-build\u002Freferences\u002Fhello-world-validation-2026-07-17.md` — same principle for cloud-build specifically.","1.2.0 (2026-07-15): Added references\u002Fin-house-cron-silent-failure-2026-07-15.md — sister-case worked example for the same 4-step protocol applied to in-house scheduled scripts (Daily Bug Hunt cron, jleechanorg\u002Fjleechanclaw#782). Captures the 'fail-closed sentinel covers the wrong failure mode' pattern: preflight-vs-output-parse counter asymmetry that produces false-negative 'clean sweep' reports. Tagged in-house-cron in hermes.tags. References section pointer added.","1.1.0 (2026-07-15): Step 3a.1 added — when operator replies 'make followup' after Step 3a staleness reframing, capture the 3-grep wording-gaps checklist (file-path, threshold label, remediation) plus the test-import-via-Path.home() work-around needed to validate the patches. References\u002Fbq-coverage-wording-followup-2026-07-15.md ships the verified PR #781 worked example.","1.0.0 (2026-07-15): Step 0 delivery-check + Step 3a staleness reframing added; 4 references captured (one per BQ coverage reframe, one for the staleness-reframe, references\u002Fmcp-mail-bq-coverage-2026-07-13.md retained for historical evidence).","1.5.0",{"hermes":74},{"tags":75,"related_skills":84},[30,76,77,78,79,80,81,82,83],"alerts","verification","ack","incident-response","bigquery","observability","in-house-cron","post-merge-verification",[85,86,87,88,89],"systematic-debugging","incident-proposal-current-evidence-gate","proof-before-claim","mcp-mail-ack","module-global-flag-race","main","05df7380981a2c4af868ce0fa57962ae0eea62a9","hermes\u002Fskills\u002Fverify-telemetry-alert",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":9,"skillName":5,"commands":98,"prompt":108,"zipAvailable":109},[99,102,105],{"tool":100,"command":101},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill verify-telemetry-alert",{"tool":103,"command":104},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill verify-telemetry-alert",{"tool":106,"command":107},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill verify-telemetry-alert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002FSKILL.md",true,[111,117,121,125,129,133,137,141,145,149,153,157,163,167,171,175],{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Falgorithms.md","REFERENCE","参考文档",6124,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Freferences\u002Falgorithms.md",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fbq-coverage-alert-staleness-2026-07-15.md",6224,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002Freferences\u002Fbq-coverage-alert-staleness-2026-07-15.md",{"path":122,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fbq-coverage-wording-followup-2026-07-15.md",7643,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002Freferences\u002Fbq-coverage-wording-followup-2026-07-15.md",{"path":126,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fconstraints_mcdm.md",10852,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Freferences\u002Fconstraints_mcdm.md",{"path":130,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fin-house-cron-silent-failure-2026-07-15.md",8365,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002Freferences\u002Fin-house-cron-silent-failure-2026-07-15.md",{"path":134,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fmcp-mail-bq-coverage-2026-07-13.md",6200,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002Freferences\u002Fmcp-mail-bq-coverage-2026-07-13.md",{"path":138,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fmcp-mail-bq-coverage-2026-07-15.md",7680,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002Freferences\u002Fmcp-mail-bq-coverage-2026-07-15.md",{"path":142,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Foperators.md",8815,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Freferences\u002Foperators.md",{"path":146,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":147,"sourceHtmlUrl":148},"references\u002Fpost-merge-deployment-coverage-2026-07-20.md",11029,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fverify-telemetry-alert\u002Freferences\u002Fpost-merge-deployment-coverage-2026-07-20.md",{"path":150,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":151,"sourceHtmlUrl":152},"references\u002Fproblems.md",7116,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Freferences\u002Fproblems.md",{"path":154,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":155,"sourceHtmlUrl":156},"references\u002Fvisualization.md",9229,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Freferences\u002Fvisualization.md",{"path":158,"resourceType":159,"resourceTypeDesc":160,"sizeBytes":161,"sourceHtmlUrl":162},"scripts\u002Fcustom_problem_example.py","SCRIPT","脚本",4770,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Fscripts\u002Fcustom_problem_example.py",{"path":164,"resourceType":159,"resourceTypeDesc":160,"sizeBytes":165,"sourceHtmlUrl":166},"scripts\u002Fdecision_making_example.py",4588,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Fscripts\u002Fdecision_making_example.py",{"path":168,"resourceType":159,"resourceTypeDesc":160,"sizeBytes":169,"sourceHtmlUrl":170},"scripts\u002Fmany_objective_example.py",2103,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Fscripts\u002Fmany_objective_example.py",{"path":172,"resourceType":159,"resourceTypeDesc":160,"sizeBytes":173,"sourceHtmlUrl":174},"scripts\u002Fmulti_objective_example.py",1731,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Fscripts\u002Fmulti_objective_example.py",{"path":176,"resourceType":159,"resourceTypeDesc":160,"sizeBytes":177,"sourceHtmlUrl":178},"scripts\u002Fsingle_objective_example.py",1620,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fpymoo\u002Fscripts\u002Fsingle_objective_example.py",[180,188,195,203,211,220],{"skillNo":181,"name":182,"nameZh":13,"description":183,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":187},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":189,"name":190,"nameZh":13,"description":191,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":187},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":196,"name":197,"nameZh":13,"description":198,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":202},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":204,"name":205,"nameZh":13,"description":206,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":210},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":212,"name":213,"nameZh":13,"description":214,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":215,"licenseFileUrl":216,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":210},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":221,"name":222,"nameZh":13,"description":223,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":224,"categories":225,"keywords":226,"publishedAt":210},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]