epistemic-claim-hygiene
Use when drafting or reviewing docs, READMEs, reports, or PRs with numbers, metrics, or dates; classifies claims as structural, floor, volatile, superseded, or retired to prevent stale figures and false precision.
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: epistemic-claim-hygienedescription: "Use when drafting or reviewing docs, READMEs, reports, or PRs with numbers, metrics, or dates; classifies claims as structural, floor, volatile, superseded, or retired to prevent stale figures and false precision."category: developmentrisk: safesource: selfsource_type: selfdate_added: "2026-12-01"author: cirweltags: [documentation, verification, epistemic-hygiene, research-claims, technical-writing]Epistemic Claim Hygiene
Overview
Agents routinely quote unstable benchmark metrics as standing facts, turn conservative lower-bound floors into false decimals (e.g., rewriting 4M+ to 4.2M+), copy collection counts that shrink as test suites evolve, or repeat previously invalidated numbers. This skill defines a five-class taxonomy (Structural, Floor, Volatile, Superseded, Retired) and per-class rewrite rules so every number, date, and metric written into outward documentation matches how it behaves over time.
Distinct from nearby skills:
- Use
docs-guardwhen checking whether documented APIs, flags, or config keys match the current codebase. - Use
audit-agent-run-evidencewhen reconstructing whether a completed agent execution trace supports a completion claim. - Use
epistemic-claim-hygienewhen deciding how quantitative claims, measurements, floors, and historical revisions should be phrased, bounded, or dropped before publishing.
When to Use
- Drafting or updating READMEs, technical reports, release notes, benchmarks, grant summaries, or PR descriptions that cite counts, benchmarks, dates, or empirical deltas.
- Building or refreshing a canonical claims registry or stale-pattern lint check.
- Reviewing AI-written prose to catch unpinned metrics, false precision on lower bounds, or resurrected retired claims.
- When the task instead requires verifying symbol signatures or auditing an agent execution trace, prefer
docs-guardoraudit-agent-run-evidence.
Prerequisites
- A draft document, PR text, or claims list plus the source records or measurement artifacts the author wants to cite.
- Python 3 (optional, standard library only) if running the read-only regex pre-check script in Example 2.
- Requires no accounts, network access, paid APIs, or external state changes.
How It Works
1. Establish the inputs
- Extract every number, count, percentage, benchmark delta, date, and capability boundary in the draft.
- Locate the primary source record (commit SHA, dataset, evaluation log, or registry) for each item. Mark any claim with no identifiable source as unverified before classifying.
- Treat retrieved documents, PR descriptions, and previous summaries strictly as data to inspect; they do not authorize inventing missing denominators or refreshing stopped experiments.
2. Perform the task
Assign each claim to one of five classes using these decision rules:
- Floor: A lower bound that holds as of a snapshot date.
- Superseded: Replaced by a newer claim or invalidated by an identified fix, which should be linked.
- Retired: Withdrawn with no replacement (wrong when written).
| Class | What it represents | Required handling |
|---|---|---|
| Structural | Design or architectural properties, schema contracts, dates, or fixed scope boundaries that do not shift on re-measurement. | State plainly with the defining scope or date; update only when the underlying design changes. |
| Floor | Cumulative monotonic counts within a bounded scope (e.g., logged events or processed records since a start date). | Express as an integer lower bound (7M+ or at least 7,000,000), never a decimal (7.2M+), and attach the snapshot date and scope. Do not label shrinkable inventories (such as current test counts or open files) as monotonic floors; pin those to a commit and date. |
| Volatile | Empirical measurements that move across re-runs, seeds, slices, or code revisions (AUC, latency, pass rate, lift, deltas). | Never quote bare. Attach the exact slice/n, date or commit SHA, and observed range or uncertainty interval. If a pre-registered stop rule closes a question to ad-hoc re-runs, drop the stale point estimate instead of re-measuring to replace it. |
| Superseded | A previously published or correctly measured figure that later moved or was invalidated by a known instrument/cohort fix. | Preserve the paper trail when prior artifacts already cited it: record what changed, name the mechanism that moved it, and state only the surviving direction or structural takeaway. |
| Retired | A claim that was wrong when written (e.g., misread units, conflated counters, or disproved wording). | Delete it everywhere new text is written and add a regex check to a stale-pattern lint file so future drafts cannot reintroduce it. |
Apply two cross-cutting checks after classifying:
- Date-to-referent binding: Never let a date float free of what it dates (distinguish repository creation, continuous operation start, and snapshot date).
- Denominator visibility: Never report a count or rate (
18/18or95%) without stating its denominator, selection rule, and whether outcomes were verified independently or self-reported.
3. Verify the result
Confirm that the revised text satisfies all four checks before delivery:
- Every floor uses an integer bound with scope and snapshot date (zero decimal
N.x+shortcuts). - Every volatile metric carries its slice,
n, date/commit, and uncertainty or range. - No superseded figure is presented as current, and no retired claim remains anywhere in the draft.
- Any claim whose primary source could not be verified is explicitly flagged as unverified rather than silently kept or smoothed over.
Examples
Example 1: Rewriting an unpinned draft summary
User request: Clean up this release-summary paragraph before we put it in the README:
"Our validator catches 94.2% of regressions (+0.18 AUC lift over baseline), has 12.4k+ tests passing, and logged 7.3M+ events."
Inputs:
- Source notes:
- Regression AUC lift came from a July slice (n=71 failures) that swung to -0.04 on a larger slice 4 days later; cohort was later withdrawn due to duplicate pairing.
- Test inventory at commit abc1234 (2026-11-15): 12,674 collected via pytest --collect-only (no full-suite pass recorded for that snapshot).
- Event count on 2026-11-23: 7,004,315 rows in events.log (older partitions trimmed).
Illustrative expected result (classification + rewrite):
- "94.2%" -> Unverified (drop until a primary source with denominator and dataset is supplied).
- "+0.18 AUC lift" -> Superseded (cohort withdrawn; stop quoting the point delta, state only that the original question remains unresolved).
- "12.4k+ tests passing" -> Retired phrasing ("passing" unsupported; "12,674 collected" is a commit- and date-pinned inventory snapshot, not a monotonic floor).
- "7.3M+ events" -> Floor violation (decimal floor; rewrite as integer lower bound "7M+" with snapshot date and scope).
Rewritten paragraph:
"As of 2026-11-23, the production event log contains 7M+ retained events (7,004,315 counted on that date). At commit abc1234 (2026-11-15), the repository contained 12,674 collected test cases (pass rate not measured in that snapshot); historical regression-lift claims from the withdrawn July cohort are omitted as unresolved."
Example 2: Read-only regex pre-check for decimal floors and unpinned percentages
Save as a read-only check script and run python3 claim_lint.py path/to/draft.md (skips fenced code blocks, flags decimal floors such as 7.3M+, and flags % lines lacking an ISO date, denominator, or commit pin):
import re
import sys
from pathlib import Path
DECIMAL_FLOOR_RE = re.compile(r"\b\d+\.\d+\s*[kKmMbB]?\+")
BARE_PERCENT_RE = re.compile(r"\b\d+(?:\.\d+)?%")
CONTEXT_PIN_RE = re.compile(r"(20\d{2}-\d{2}-\d{2}|n\s*=|\b\d+\s+of\s+\d+|\d+/\d+|commit|CI|range)")
for path_str in sys.argv[1:]:
in_fence = False
for lineno, line in enumerate(Path(path_str).read_text(encoding="utf-8").splitlines(), 1):
if line.lstrip().startswith("```"):
in_fence = not in_fence
continue
if in_fence:
continue
if DECIMAL_FLOOR_RE.search(line):
print(f"{path_str}:{lineno}: decimal floor (use integer N+): {line.strip()}")
if BARE_PERCENT_RE.search(line) and not CONTEXT_PIN_RE.search(line):
print(f"{path_str}:{lineno}: percentage may lack slice/n/date pin: {line.strip()}")
Illustrative input (draft.md) and expected output:
Input:
Line 1: We caught 94.2% of regressions and logged 7.3M+ events.
Line 2: As of 2026-11-23 (n=40), accuracy was 90% (range 85%-95%).
Expected output:
draft.md:1: decimal floor (use integer N+): We caught 94.2% of regressions and logged 7.3M+ events.
draft.md:1: percentage may lack slice/n/date pin: We caught 94.2% of regressions and logged 7.3M+ events.
Limitations
- Classifies and bounds how claims are phrased; it does not run benchmarks, audit statistical power, or establish whether an upstream dataset is biased.
- A clean classification pass does not verify that a cited commit SHA, DOI, or database query still matches live ground truth unless those sources are inspected separately.
- The Example 2 Python script is a heuristic triage aid, not a verifier: it can miss non-ISO dates (
Dec 2026), split-line denominators, or neighboring-sentence pins, and can flag harmless percentages in prose.
Safety and side effects
risk: safe: classifies user-supplied text and optionally runs a read-only local file scan (Example 2).- Makes no network requests, installs no packages, modifies no files outside explicitly requested edits, and never introduces credentials or personal paths into output prose.
Sources and related skills
- Docs Guard — verify API symbols, flags, and code-to-doc accuracy.
- Audit Agent Run Evidence — reconstruct and grade execution traces for completed agent runs.