citation-verify
Verify that every citation in a draft response can be traced back to a connector source. Pure structural lookup — no LLM. Returns each citation tagged verified / unverifiable / hallucinated. Invoked by the harness Safety Gate.
- License 许可
- CC-BY-4.0
- 所属仓库
- KairosPan/kairos
- 最近更新
- 2026-07-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- a2a
- { "expose": true, "billing": { "model": "free" }, "endpoint_path": "/a2a/skills/citation-verify" }
- name
- citation-verify
- inputs
- { "$ref": "./schemas/inputs.json" }
- limits
- { "max_tokens": 800, "max_latency_seconds": 10 }
- models
- { "forbidden": [], "preferred": "deepseek-v4-flash" }
- safety
- { "upl_check": "not-applicable", "disclaimer": "legal-research-only", "matter_scope": "enforced", "citation_verification": "not-applicable", "jurisdiction_consistency": "not-applicable" }
- license
- CC-BY-4.0
- outputs
- { "$ref": "./schemas/outputs.json" }
- version
- 0.1.0
- eval_set
- ./evals/citation-verify-v1.jsonl
- triggers
- { "keywords": [ "verify citation", "check citation", "citation authenticity", "hallucinated citation" ] }
- languages
- [ "en", "zh" ]
- optimizer
- { "L2_rag": "disabled", "L4_model": "shadow", "L1_prompt": "enabled", "L3_routing": "enabled", "L6_self_mod": "disabled", "L5_synthesis": "disabled" }
- risk_tier
- low
- maintainer
- kairos-core
- risk_class
- low
- visibility
- public
- description
- Verify that every citation in a draft response can be traced back to a connector source. Pure structural lookup — no LLM. Returns each citation tagged verified / unverifiable / hallucinated. Invoked by the harness Safety Gate.
- display_name
- Citation Authenticity Verifier
- golden_cases
- []
- strict_model
- false
- target_users
- [ "lawyer", "researcher", "student" ]
- default_model
- claude-opus-4-7
- jurisdictions
- [ "agnostic" ]
- allowed_models
- [ "claude-opus-4-7", "deepseek-v4-pro", "deepseek-v4-flash" ]
- practice_areas
- []
- required_skills
- []
- requires_skills
- []
- requires_sandbox
- false
- side_effect_class
- pure_read
- required_connectors
- [ "kairos/free-law-project", "kairos/cn-statutes", "kairos/eu-legislation" ]
- requires_connectors
- { "any": [ "cn-judgments", "cn-statutes", "eu-legislation", "free-law-project" ] }
02 资源文件 6
- 其他evals/citation-verify-v1.jsonl689 B
- 参考文档evals/golden_cases/gc-citation-verify-001.yaml519 B
- 参考文档evals/golden_cases/gc-citation-verify-002.yaml511 B
- 参考文档evals/golden_cases/gc-citation-verify-003.yaml576 B
- 参考文档schemas/inputs.json647 B
- 参考文档schemas/outputs.json616 B
03 SKILL.md 正文
Citation Verifier
When to use
The harness invokes this skill on every Run before the Safety Gate. Skill authors should not invoke it explicitly — the framework already does.
Workflow
For each candidate citation {citation_text, source_uri, source_locator, jurisdiction?}:
- Resolve
source_uri→ connector adapter. - Adapter looks up the locator (page / paragraph / clause / span). If hit and the locator's text contains the citation token, mark
verified. - If no adapter handles the URI, mark
unverifiable. - If adapter looked up but didn't find →
hallucinated.
This is the operational implementation of the Citation Verifier component referenced in §3.2 + §3.3 step [6] + §7.4.1 Layer 5. The Python module lives in packages/harness/src/kairos_harness/citation/.
Output
A list of verifications mirroring the input order. The harness uses these to reject a Run whose verified_count == 0, and to populate the citations table per database-design §3.5.
04 同仓库更多 Skills
statute-compare
Compare statutory provisions on the same topic across two or more jurisdictions. Invoke when the user asks "regulation / comparison / difference / similarities and differences of X in A/B/C jurisdictions". Covers five dimensions: scope of application, elements, exceptions, penalties, effective date.
setup-interview
On first install/subscription of a skill, run a guided interview to learn the lawyer's playbook (jurisdiction / citation style / risk tolerance / output preferences) and write the answers to user/firm preferences. Mirrors the Anthropic plugin setup-interview UX. Feeds the §5 self-improving feedback source.
retrieval-hybrid
Run the §7.4 hybrid pipeline (structural filter → BM25/FTS5 → local semantic → citation graph → RRF fusion → local rerank → MMR) for one query, returning ranked candidates with full source provenance. Invoke whenever a skill needs to fetch passages from any matter (private or public) before drafting.
query-parser
Extract structured legal-research facets (jurisdiction, doc_type, citation_id, date_range, practice_area, matter_id) from a natural-language query. Invoked first by every retrieval-bearing skill (statute-compare, case-retrieve, ...).
document-intake
Advisory guidance on getting a document into a matter's private index: which file formats are supported, how confidentiality levels behave (privileged documents are stored but never FTS-indexed, per database-design §3.2), and where to upload. The actual ingestion + extraction + indexing is performed by the conversation file-upload route, NOT by this skill — this skill only explains the path.
disclaimer-injector
Inject the appropriate legal disclaimer (legal-research-only, in-house-counsel-only, or academic-use) into the trailing `disclaimer` field of a draft response. Mandatorily run by the Safety Gate; skill authors should not invoke directly.