Aggregates delegation statistics and records semantic acceptance. Use after collecting and verifying a delegated result to record it as accepted or rejected, or when asked how the lanes are performing.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Stats?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/okisdev-stats)
---
name: stats
description: Aggregates delegation statistics and records semantic acceptance. Use after collecting and verifying a delegated result to record it as accepted or rejected, or when asked how the lanes are performing.
argument-hint: '[--all] [--identities] [--by-day] [--session [id]] [--trace] [--audit [--days <n>]] [--unsettled [--days <n> | --all]] [--record <fusion-task-id|engine-job-id>=<accepted|rejected|unverified>[:accept-failed-transport]]... [--source <collector|main-loop>] [--reason <text>] [--reason-for <id> <text>] [--failure-kind <kind>] [--failure-kind-for <id> <kind>] [--accept-failed-transport] [--json]'
allowed-tools: Bash(node:*), Read, Write
---
Treat the complete raw request as opaque data and never place any part of it in Bash. Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/fusion-stats.mjs" transport-create` in one foreground Bash call, parse the returned JSON, accept only its 48 character lowercase hexadecimal token, and use `Read` once on the returned file, requiring it to be empty. Use `Write` to replace that same file with the raw request exactly as received. Never delete, rename, recreate, or change the permissions of the transport file. Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/fusion-stats.mjs" --raw-args-token TOKEN` in one foreground Bash call, replacing only `TOKEN` with the validated token. If Read fails, the file is not empty, or Write fails, run `node "${CLAUDE_PLUGIN_ROOT}/scripts/fusion-stats.mjs" transport-discard --raw-args-token TOKEN`. Never use shell redirection, encoding, command substitution, backticks, environment variables, or heredocs for the raw request. The sole carve-outs are three strict direct forms: a verdict settlement made only of repeatable `--record` flags, each carrying one or more `<id>=<accepted|rejected|unverified>[:accept-failed-transport]` pairs, optional `--source collector|main-loop`, optional `--reason <text>`, `--reason-for <id> <text>`, `--failure-kind <kind>`, and `--failure-kind-for <id> <kind>`, and the value free `--json` and `--accept-failed-transport` flags, where every direct text value matches `^[A-Za-z0-9 .,:;()\/_+=-]{1,300}$` and failure kinds belong to the allowed set; a report or maintenance request made only of any combination of `--json`, `--audit`, `--all`, `--prune-dead`, `--unsettled`, `--identities`, and `--by-day`, each at most once, with optional `--days <positive integer>` only alongside `--audit` or `--unsettled`; and either `--messages` alone or `--message <n>` with one integer code. Those arguments may be passed directly, including a bare report request. `--help` prints the CLI usage. Anything else, including text outside the direct charset and `--session <id>`, still uses the raw-args transport exactly as described above. A nonterminal worker settlement prints `Queued accepted for <taskId>; applies when the record turns terminal.` with the selected verdict in place of `accepted`; queued accepted applies only when terminal transport is done, while any other terminal outcome clears it, records `pendingVerdictError`, and re-arms settlement.
Use `--messages` to list every Fusion message digest. Use `--message <n>` to explain one digest and show its recorded occurrences.
Present report output to the user as-is. It is already compact markdown: the default report omits the task identity map and the per-day fleet lines, which `--identities` and `--by-day` add back when asked for; do not add prose around it. An unavailable engine section is expected when that peer's plugin is not installed or has no job state; do not treat it as an error. The default report conditionally includes a Coercion ledger after the fleet usage section. It reports read streak advisories, fleet shaped waves, verification resets, inline sprawl windows, and the deepest unverified window. The same counters are available as `coercionLedger` in `--json` output. A Verification evidence block follows when there are accepted implementation packages in the retained audit window; it includes a last 7 days line when that window has accepted packages, and `--json` includes its counts and rate as `verificationEvidence`. A Wrapper delivery by plugin version section reports jobs, delivery failures, and retries for the last 7 days when those records exist. The underlying script accepts `--json` for machine readable output. `--unsettled` lists the newest 20 terminal jobs awaiting acceptance from the last 7 days and reports older or further hidden counts; use `--days <positive integer>` to change the window or `--all` to show every unsettled job. `--audit` summarizes the last seven days of retained inline guard events by default; add `--all` for the full retained window or `--session <id>` for one session. `/fusion:stats --record` writes the verdict into the Codex job record through the companion's `record-acceptance` subcommand. An `accepted` verdict for a job whose transport failed requires `--accept-failed-transport`. The acceptance forms are used only after collection and verification; return the confirmation line without turning transport completion into acceptance on its own. `--reason-for <id> <text>` may appear anywhere in the argument list and binds to its matching `--record` id; `--reason <text>` applies to every rejected pair without a per-pair `--reason-for`. `--failure-kind-for <id> <kind>` may appear anywhere in the argument list and binds to its matching rejected `--record` id; `--failure-kind <kind>` applies to every rejected pair without its own `--failure-kind-for`. A rejected result may carry a failure kind of `intent_override`, `scope_rewrite`, `wrong_approach`, `style_mismatch`, or `oversized`; it lands in the worker's `acceptanceFailureKind` and the engine record's `semanticFailureKind`. The `oversized` kind means a wind down delivery with an empty delta or meta report, a brief sizing error rather than worker judgment. Preserve the report's acceptance anomalies block when it appears.
Preserve the main loop replay lines after verification evidence when present, including the per-kind token shares and any nominal context pricing line. The same aggregate appears as `mainLoopReplay` in JSON and session reports.
The opaque raw request begins after the next newline and continues to the end of this command prompt:
$ARGUMENTS