graphify
GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
OPTIONAL claim-level audit gate for the PaperOrchestra pipeline (arXiv:2604.05018), run after Step 5 (content refinement) and before final output. Extracts atomic claims (numeric results, comparisons, "we show / we outperform" statements, cited facts) from drafts/paper.tex with section and line numbers, maps each claim to evidence (experimental_log.md numbers or table rows, figures, tables, citation keys present in the verified refs.bib), flags unmapped claims, checks every number in the paper against the log, and enforces a coverage threshold. Includes an opt-in pass where the host agent fetches each cited source and judges supported / partially_supported / not_supported / cannot_verify with a locator. TRIGGER when the orchestrator reaches the optional audit gate or when the user asks to "audit the claims", "check that every claim is backed by evidence", "verify the numbers against the log", "build a claim-evidence map", or "check that citations actually support what we say".
PaperOrchestra already checks that citations exist (Semantic Scholar) and that a simulated reviewer likes the draft. Neither shows that each claim in the paper is backed: by the experimental log for our results, or by what the cited paper actually says for cited facts. This skill adds that claim-level check.
Cost: 0 LLM calls for the deterministic core; one reasoning pass by the host agent to review claims, plus an opt-in source-reading pass for cited facts. All scripts are stdlib-only, deterministic, and make no network or LLM calls. Fetching and judging cited sources is done by you, the host agent.
Refinement and audit must never game the evaluator or invent evidence. Unsupported claims get softened or removed. Support is never fabricated.
cannot_verify, not supported.skills/paper-orchestra/scripts/claim_evidence_gate.py (Step 4/5 pre-flight) is a
quick WARN gate for numeric claims only. This skill is the fuller, opt-in audit:
section/line-tagged claims, figure/table/citation evidence, rounding-aware
number matching, a coverage threshold, and the cited-source pass.
workspace/final/paper.tex (or workspace/drafts/paper.tex) - draft to auditworkspace/inputs/experimental_log.md - ground truth for our numbersworkspace/refs.bib - the verified bibliography from Step 3workspace/claim_audit/)| File | Producer |
|---|---|
claims.json | extract_claims.py, then reviewed by you |
claim_evidence_map.json / .md | build_evidence_map.py |
numeric_report.json | numeric_consistency.py |
citation_audit.json | you (opt-in Phase 4) |
audit_report.md | audit_report.py |
Schemas: references/schemas.md. Citation-audit procedure: references/citation-audit.md.
Set A=workspace/claim_audit and S=skills/claim-evidence-audit/scripts.
python $S/extract_claims.py --paper workspace/final/paper.tex --out $A/claims.json
The extractor is a heuristic. Its output is candidates. Open claims.json
and, as the host agent:
C###, and keep section and line.cited_fact, make sure cite_keys lists every key the sentence relies on."reviewed": true, then validate:python $S/validate_schema.py --claims $A/claims.json
python $S/build_evidence_map.py --claims $A/claims.json \
--log workspace/inputs/experimental_log.md --bib workspace/refs.bib \
--paper workspace/final/paper.tex \
--out-json $A/claim_evidence_map.json --out-md $A/claim_evidence_map.md
python $S/numeric_consistency.py --paper workspace/final/paper.tex \
--log workspace/inputs/experimental_log.md --out $A/numeric_report.json
Evidence kinds: log_number, log_table_row, figure, table, citation
(key present in the verified .bib). A claim is supported, partial (some
number nothing accounts for), or unmapped. Number matching allows the paper to
round the log value to its own precision and reconciles 87.4% with 0.874;
the paper may not claim more precision than the log. numeric_consistency.py
lists every number in the paper (prose, captions, table cells) absent from the log.
For every unmapped / partial claim and every number reported "NOT IN LOG":
find real support in the log or sources, otherwise soften or delete the claim in
the paper (see Safety rule). Keep a one-line note of each change. Re-run Phase 2.
Run only when the user asks for it or the venue is citation-sensitive. Follow
references/citation-audit.md: for each cited_fact claim, fetch each cited
source with your own tools, judge it supported / partially_supported /
not_supported / cannot_verify, and record a locator (section, page, or quote
anchor) in $A/citation_audit.json. Then re-run Phase 2 with
--audit $A/citation_audit.json. not_supported rejects the citation as
evidence; partially_supported downgrades the claim to partial.
Fix those claims by softening, re-attributing, or removing - never by editing the
verdict.
python $S/validate_schema.py --claims $A/claims.json --map $A/claim_evidence_map.json \
[--audit $A/citation_audit.json]
python $S/coverage_gate.py --map $A/claim_evidence_map.json --threshold 80
python $S/audit_report.py --map $A/claim_evidence_map.json \
--numeric $A/numeric_report.json [--audit $A/citation_audit.json] --out $A/audit_report.md
coverage_gate.py exits 1 below the threshold (default 80%; --count-partial,
--max-unmapped N available). If it fails, repeat Phase 3. If it still fails
after two rounds, stop and report the remaining claims to the user rather than
lowering the threshold silently. After any edit to the paper, re-run the
Step 6 compile.
| Script | 0 | 1 | 2 |
|---|---|---|---|
extract_claims.py, build_evidence_map.py, audit_report.py | written | - | input error |
validate_schema.py | valid | schema violations | file unreadable |
numeric_consistency.py | all numbers in log | numbers not in log | input error |
coverage_gate.py | coverage >= threshold | below threshold | input error |
python3 skills/claim-evidence-audit/scripts/test_claim_evidence_audit.py
Fixtures live in skills/claim-evidence-audit/fixtures/.
references/schemas.md - claims.json, claim_evidence_map.json, citation_audit.jsonreferences/citation-audit.md - the opt-in cited-source judging procedurescripts/claimlib.py - shared LaTeX scan, number parsing, rounding-aware matchingscripts/extract_claims.py, build_evidence_map.py, numeric_consistency.py,
validate_schema.py, coverage_gate.py, audit_report.pyGRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
PApaperclipai/paperclip119k1,966 new stars in the last 7 days
NEnexu-io/open-design111k1,277 new stars in the last 7 days
HEheygen-com/hyperframes94k4,558 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days