[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DD0EN5S6ZEVCDKEN3HG4H6":3,"skill-same:01M7DD0EN5S6ZEVCDKEN3HG4H6":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7DD0EN5S6ZEVCDKEN3HG4H6","telemetry-audit",null,"The ground-truth method for checking what reeval records about a harness against what actually happened: run a real attempt, collect the gateway traffic, the CLI's on-disk state and its native stream, diff all three against the run record and transcript signal by signal, and file a gap for each mismatch. Use when adding or bumping a harness, filling its telemetry declarations, or when a token, cost or transcript number looks wrong.","reeval-ai\u002Freeval","reeval-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F354599760?v=4","01M7DCZWK0K84BEW1ECSTKP6MK","reeval.ai","01M7DCZWM22FTSWRP1FNVPA7NK",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftelemetry-audit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: telemetry-audit\ndescription: >\n  The ground-truth method for checking what reeval records about a harness against what actually\n  happened: run a real attempt, collect the gateway traffic, the CLI's on-disk state and its native\n  stream, diff all three against the run record and transcript signal by signal, and file a gap\n  for each mismatch. Use when adding or bumping a harness, filling its telemetry declarations, or\n  when a token, cost or transcript number looks wrong.\n---\n\n# Audit a harness's telemetry\n\nThe record is the CLI's self-report, normalized. The audit compares it with three independent\nsources: the **wire** (every decrypted request and response through the egress gateway), the\n**disk** (what the CLI wrote in the sandbox) and the **stream** (the CLI's native events). Trust\nthe wire first, then disk, then the stream.\n\n## 1. Build the audit project\n\nA throwaway reeval project outside the repo (never commit it), on the harness's Docker image and a\nreasoning-capable model at an explicit `effort`. Two evals:\n\n- **`audit`**, one attempt that exercises every signal in `SIGNALS`\n  (`packages\u002Freeval\u002Ftest\u002Fcontract\u002Ftelemetry.ts`):\n  - turn 1: use a skill, edit a file, run a command that prints ~300 KB (`seq 1 30000`-style),\n    call a stdio MCP server's `echo` and a `bulk` tool that returns ~60 KB ending in a unique\n    marker;\n  - turn 2: a web search, so side calls show up;\n  - last, in the eval body: `c.exec` a `find` and `tar` of everything the CLI wrote under its home,\n    `\u002Ftmp` and `\u002Froot` since the attempt started, and copy it out.\n- **`aborted`**: a long write cut off by a short `timeout` (45 s), for the aborted-turn signals.\n\n## 2. Capture the three sources\n\n```bash\npnpm build && pnpm images \u003Charness>\ncd \u003Caudit project>\nREEVAL_RAW_TRANSCRIPT=1 node \u003Crepo>\u002Fpackages\u002Freeval\u002Fdist\u002Fcli.js run -vv --tag audit > cli.log 2>&1\n```\n\n| Source | Where |\n|---|---|\n| Record | `.reeval\u002Fruns\u002F\u003Crun>.json` and `.reeval\u002Fruns\u002F\u003Crun>\u002F\u003Ceval>\u002F\u003Ccell>\u002F\u003Cn>\u002Ftranscript.jsonl` |\n| Stream | the same directory's `transcript.raw.jsonl` (`REEVAL_RAW_TRANSCRIPT=1`) |\n| Wire, metadata | `.reeval\u002Fdebug\u002F\u003Crun>\u002F\u003Ceval>\u002F\u003Ccell>\u002F\u003Cn>\u002Frequests.ndjson`: method, host, path, status, the served model, effort and cost the gateway read |\n| Wire, bodies | a local tap: patch `packages\u002Fsandbox-docker\u002Fsrc\u002Fegress\u002Fproxy.ts` to write each decrypted request and response body to a directory, and drop the patch after. Don't audit with reeval's own usage reader (`model-call` events): it is one of the things under test |\n| Disk | the `tar` from the `audit` eval. Look for sqlite databases (read them with `node:sqlite`), JSONL logs, session directories and spilled tool-output files |\n\nKeep the captures out of the repo; they hold prompts and paths.\n\n## 3. Diff per signal\n\nFor each turn and each signal, put the record's value next to each source's. Sum the turn's wire\ncalls in the provider's own format:\n\n| Provider | Usage on the wire |\n|---|---|\n| Anthropic SSE | `message_start` and `message_delta` `usage`: `input_tokens` (uncached), `cache_read_input_tokens`, `cache_creation_input_tokens`, `output_tokens` (thinking inside), `output_tokens_details.thinking_tokens` |\n| OpenAI Responses | `response.completed` `usage`: `input_tokens` (cache inside), `input_tokens_details.cached_tokens`, `output_tokens` (reasoning inside), `output_tokens_details.reasoning_tokens` |\n| OpenAI Chat Completions | the last chunk's `usage`: `prompt_tokens` (cache inside), `prompt_tokens_details.cached_tokens`, `completion_tokens_details.reasoning_tokens` |\n| Gemini | `usageMetadata`: `promptTokenCount` (cache inside), `cachedContentTokenCount`, `candidatesTokenCount`, `thoughtsTokenCount` (beside output) |\n| xAI | the top-level `usage` object only; `usage.context_details` repeats the field names with other values |\n\nThen, per signal:\n\n- **Tokens**: the turn's main calls summed equal the record's `input`, `cacheRead`, `cacheWrite`,\n  `output` and `reasoning` exactly. Tokens are integers: no tolerance.\n- **Side calls**: classify every wire call as main (its usage matches a step the CLI reported) or\n  side (titles, naming, web search, a smaller model). List each side call's tokens.\n- **Served model**: the response's model against `servedModels`.\n- **Cost**: any cost the provider or the CLI reports (response body, the CLI's ledger).\n- **Aborted turn**: the wire's calls and tool requests against the aborted turn's `usage` and\n  events.\n- **Large output**: does the transcript hold the 300 KB output and the 60 KB result's marker, the\n  model's truncated view, a pointer, or `\"\"`? Where is the full text on disk?\n- **MCP shape, context window, system prompt, rate limits, compaction**: present in the record,\n  or only in a source?\n\n## 4. Classify and file\n\n- Give each cell a state as `telemetry.ts` defines them: `captured`, `partial` (say how),\n  `dropped` (say where the data is) or `not-produced`; `unverified` when no source could be\n  read (an opaque protobuf wire, a path no run reached).\n- File **one gap per mismatch**: harness, signal, the record's value, the truth and which source\n  holds it, and the smallest fix (adapter, disk reader, gateway reader or CLI config). Each fix\n  lands as its own PR with a replay fixture cut from the capture, and updates its own cells in\n  `telemetry.ts`.\n- Update the declarations and regenerate the README table:\n  `REEVAL_UPDATE_SNAPSHOTS=1 node --test --experimental-strip-types --no-warnings test\u002Fcontract-telemetry.test.ts`.\n\n## Traps\n\n- No 429, 5xx or retry in a run means retries are **unverified**, not captured.\n- A short task never compacts context; mark compaction `unverified` until a long-context run\n  triggers it.\n- A CLI's own ledger can miss its side calls as well, so a disk reader alone can't prove\n  side-call usage. Only the wire can.\n- An errored turn in an eval with no checks still passes. Give the audit evals checks, so a broken\n  turn doesn't read as clean telemetry.\n- Load from the tap itself can time out a CLI's proxy tunnel; rerun before calling it a harness bug.\n","# Audit a harness's telemetry\n\nThe record is the CLI's self-report, normalized. The audit compares it with three independent\nsources: the **wire** (every decrypted request and response through the egress gateway), the\n**disk** (what the CLI wrote in the sandbox) and the **stream** (the CLI's native events). Trust\nthe wire first, then disk, then the stream.\n\n## 1. Build the audit project\n\nA throwaway reeval project outside the repo (never commit it), on the harness's Docker image and a\nreasoning-capable model at an explicit `effort`. Two evals:\n\n- **`audit`**, one attempt that exercises every signal in `SIGNALS`\n  (`packages\u002Freeval\u002Ftest\u002Fcontract\u002Ftelemetry.ts`):\n  - turn 1: use a skill, edit a file, run a command that prints ~300 KB (`seq 1 30000`-style),\n    call a stdio MCP server's `echo` and a `bulk` tool that returns ~60 KB ending in a unique\n    marker;\n  - turn 2: a web search, so side calls show up;\n  - last, in the eval body: `c.exec` a `find` and `tar` of everything the CLI wrote under its home,\n    `\u002Ftmp` and `\u002Froot` since the attempt started, and copy it out.\n- **`aborted`**: a long write cut off by a short `timeout` (45 s), for the aborted-turn signals.\n\n## 2. Capture the three sources\n\n```bash\npnpm build && pnpm images \u003Charness>\ncd \u003Caudit project>\nREEVAL_RAW_TRANSCRIPT=1 node \u003Crepo>\u002Fpackages\u002Freeval\u002Fdist\u002Fcli.js run -vv --tag audit > cli.log 2>&1\n```\n\n| Source | Where |\n|---|---|\n| Record | `.reeval\u002Fruns\u002F\u003Crun>.json` and `.reeval\u002Fruns\u002F\u003Crun>\u002F\u003Ceval>\u002F\u003Ccell>\u002F\u003Cn>\u002Ftranscript.jsonl` |\n| Stream | the same directory's `transcript.raw.jsonl` (`REEVAL_RAW_TRANSCRIPT=1`) |\n| Wire, metadata | `.reeval\u002Fdebug\u002F\u003Crun>\u002F\u003Ceval>\u002F\u003Ccell>\u002F\u003Cn>\u002Frequests.ndjson`: method, host, path, status, the served model, effort and cost the gateway read |\n| Wire, bodies | a local tap: patch `packages\u002Fsandbox-docker\u002Fsrc\u002Fegress\u002Fproxy.ts` to write each decrypted request and response body to a directory, and drop the patch after. Don't audit with reeval's own usage reader (`model-call` events): it is one of the things under test |\n| Disk | the `tar` from the `audit` eval. Look for sqlite databases (read them with `node:sqlite`), JSONL logs, session directories and spilled tool-output files |\n\nKeep the captures out of the repo; they hold prompts and paths.\n\n## 3. Diff per signal\n\nFor each turn and each signal, put the record's value next to each source's. Sum the turn's wire\ncalls in the provider's own format:\n\n| Provider | Usage on the wire |\n|---|---|\n| Anthropic SSE | `message_start` and `message_delta` `usage`: `input_tokens` (uncached), `cache_read_input_tokens`, `cache_creation_input_tokens`, `output_tokens` (thinking inside), `output_tokens_details.thinking_tokens` |\n| OpenAI Responses | `response.completed` `usage`: `input_tokens` (cache inside), `input_tokens_details.cached_tokens`, `output_tokens` (reasoning inside), `output_tokens_details.reasoning_tokens` |\n| OpenAI Chat Completions | the last chunk's `usage`: `prompt_tokens` (cache inside), `prompt_tokens_details.cached_tokens`, `completion_tokens_details.reasoning_tokens` |\n| Gemini | `usageMetadata`: `promptTokenCount` (cache inside), `cachedContentTokenCount`, `candidatesTokenCount`, `thoughtsTokenCount` (beside output) |\n| xAI | the top-level `usage` object only; `usage.context_details` repeats the field names with other values |\n\nThen, per signal:\n\n- **Tokens**: the turn's main calls summed equal the record's `input`, `cacheRead`, `cacheWrite`,\n  `output` and `reasoning` exactly. Tokens are integers: no tolerance.\n- **Side calls**: classify every wire call as main (its usage matches a step the CLI reported) or\n  side (titles, naming, web search, a smaller model). List each side call's tokens.\n- **Served model**: the response's model against `servedModels`.\n- **Cost**: any cost the provider or the CLI reports (response body, the CLI's ledger).\n- **Aborted turn**: the wire's calls and tool requests against the aborted turn's `usage` and\n  events.\n- **Large output**: does the transcript hold the 300 KB output and the 60 KB result's marker, the\n  model's truncated view, a pointer, or `\"\"`? Where is the full text on disk?\n- **MCP shape, context window, system prompt, rate limits, compaction**: present in the record,\n  or only in a source?\n\n## 4. Classify and file\n\n- Give each cell a state as `telemetry.ts` defines them: `captured`, `partial` (say how),\n  `dropped` (say where the data is) or `not-produced`; `unverified` when no source could be\n  read (an opaque protobuf wire, a path no run reached).\n- File **one gap per mismatch**: harness, signal, the record's value, the truth and which source\n  holds it, and the smallest fix (adapter, disk reader, gateway reader or CLI config). Each fix\n  lands as its own PR with a replay fixture cut from the capture, and updates its own cells in\n  `telemetry.ts`.\n- Update the declarations and regenerate the README table:\n  `REEVAL_UPDATE_SNAPSHOTS=1 node --test --experimental-strip-types --no-warnings test\u002Fcontract-telemetry.test.ts`.\n\n## Traps\n\n- No 429, 5xx or retry in a run means retries are **unverified**, not captured.\n- A short task never compacts context; mark compaction `unverified` until a long-context run\n  triggers it.\n- A CLI's own ledger can miss its side calls as well, so a disk reader alone can't prove\n  side-call usage. Only the wire can.\n- An errored turn in an eval with no checks still passes. Give the audit evals checks, so a broken\n  turn doesn't read as clean telemetry.\n- Load from the tap itself can time out a CLI's proxy tunnel; rerun before calling it a harness bug.\n",{"name":5,"description":7},"main","6fb66482952dcf7c440a6c82595cf359dbb7f6ed",".agents\u002Fskills\u002Ftelemetry-audit",0,"https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval","https:\u002F\u002Fdocs.reeval.ai","https:\u002F\u002Fgithub.com\u002Freeval-ai","2026-11-15 06:04:49",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add reeval-ai\u002Freeval --skill telemetry-audit",{"tool":38,"command":39},"bunx","bunx skills add reeval-ai\u002Freeval --skill telemetry-audit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add reeval-ai\u002Freeval --skill telemetry-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftelemetry-audit\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7DD63XGPTQAZZ3FHTK32HM3","setup","Read this first, before the reeval skill, whenever you're asked to set up, install, add, try or get started with reeval (the eval runner for coding agents), in a project or an empty directory, including \"set up reeval here\" and \"add evals\". It detects what's set up, asks what to evaluate, installs reeval, writes one to three small evals that show its value (a skill with and without, when the project has skills), runs `reeval doctor` for keys and Docker, and explains the results.","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7DD5X2NMVWR1TTKSYM24FBZ","reeval","How to write, run and debug evals with reeval, the eval runner for coding agents (npm package reeval; CLI `reeval`, alias `re`). Use whenever a task mentions reeval, reeval.config.ts, *.eval.ts files, `reeval run`, evals for a coding agent, comparing skills, MCP servers or docs, or lift. Not for changing reeval's own source: contributors follow the repository's AGENTS.md.","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002Fskills\u002Freeval\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7DD5SATZ1PJ799YFKHW92GF","eval-rubric","The rubric reeval holds evals to, one section per remark kind. Load it when writing or reviewing a reeval eval's name, prompts, judge questions or compare, or when a reeval run prints a Remarks block.","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002Fskills\u002Feval-rubric\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DD5NQ68B0V41YP6KVM0JBB","house-greeting","The house style for greetings in this organization. Use when writing any greeting function, message or text.","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002Fpackages\u002Freeval\u002Ftest\u002Freal-agents\u002Fskills\u002Fhouse-greeting\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DD5MR0VM7CJ1D79XA4VKJS","greet","Greets people.","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002Fpackages\u002Freeval\u002Ftest\u002Fplan\u002Fyaml-paths\u002Fproject\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DD5KGCB8MA5ATWSJDDM0SV","lint","The project's own lint skill.","https:\u002F\u002Fgithub.com\u002Freeval-ai\u002Freeval\u002Fblob\u002Fmain\u002Fpackages\u002Freeval\u002Ftest\u002Fplan\u002Fplugins\u002Fskills\u002Flint\u002FSKILL.md",[],[]]