Agenda Intelligence MD
Catch broken citations, altered quotes, and unsupported numbers in AI output.
A deterministic evidence-packet linter for claim-backed AI output. Supply claims, source IDs, original source text, and optional quotations. Get structured findings and next steps for a human reviewer.
Core checks run locally. No model API key, account, or network needed after installation.
Try in your browser · First run · RAG integration · MCP · Documentation
See the problem it catches
A real citation can still carry an altered quote or an unsupported number:
| Supplied source | Submitted claim or quotation | Finding |
|---|---|---|
| "The report lists three warehouses." | Claim declares the quotation "five warehouses" from that source. | quote_absent:report: the declared quote is not in the source. |
| "The synthetic review covers 120 documents." | Claim says the review covers 900 documents. | unmatched_numbers: 900 is not supported by the supplied source. |
A packet contains only source report. |
Claim cites source missing-report. |
missing_source:missing-report: the reference does not resolve. |
These are fictional examples. The first is a quote-presence check, not a general promise to understand number words or meaning. The checker also reports lexical-support gaps and negation cues for review; these are heuristics, not proof of contradiction.
A clean packet still returns factuality_status=not_assessed and requires human review. It does not establish truth, authenticate a source, or authorize an action.
First run
Requires Python 3.9+. Install the published package:
python -m pip install "agenda-intelligence-md==1.27.0"
agenda-intelligence --version
Copy this self-contained example into Python:
from agenda_intelligence.services import check_evidence_packet
packet = {
"claims": [{
"claim_id": "demo-claim",
"text": "The synthetic review covers 900 documents.",
"source_ids": ["demo-source"],
}],
"sources": [{
"source_id": "demo-source",
"text": "The synthetic review covers 120 documents.",
}],
}
result = check_evidence_packet(packet)["response"]
print(result["packet_status"])
print(result["claims"][0]["lexical_support"]["unmatched_numbers"])
print(result["factuality_status"])
# Correct the claim, keeping the original source unchanged, then recheck.
packet["claims"][0]["text"] = "The synthetic review covers 120 documents."
print(check_evidence_packet(packet)["response"]["packet_status"])
Expected output:
source_review_required
['900']
not_assessed
packet_complete
Next: replace the fictional claim and excerpt with your own. Keep the original source text; rewriting it to agree with the answer defeats the check.
Where it fits
- Think: Global Think Tank Analyst guides an AI agent in preparing a strategic-risk memo.
- Check: Agenda Intelligence MD checks the claims and evidence supplied with an answer or memo.
- Authorize: Vizier evaluates proposed actions against delegation and policy. It does not execute them; enforcement needs an authenticated integration.
AI drafts. Humans decide.
What this is
An inspectable check between generated output and the evidence supplied with it:
Claims + source excerpts → deterministic checks → findings → revise → recheck → human review
- For RAG developers: check inline citations against the actual retrieved chunks.
- For agent builders: return structured findings to a bounded repair loop.
- For CI maintainers: fail a check when a supplied evidence packet needs review.
- For document reviewers: identify missing evidence and prepare reviewer handoffs.
The evidence-packet contract
| What you supply | What gets checked |
|---|---|
| Claims and source IDs | Whether references resolve within the packet |
| Declared quotations | Whether quoted text occurs in the supplied source |
| Claim wording and numbers | Lexical support heuristics, unmatched numbers, and negation checks |
| The assembled packet | Evidence gaps, per-claim findings, packet status, and reviewer actions |
The checker returns packet_complete, source_review_required, or packet_incomplete. See the request schema, response schema, and evaluation notes.
What this is not
This is an evidence-integrity check, not a factuality verifier or source authenticator. It does not retrieve missing sources or establish semantic entailment. Lexical checks can miss correct paraphrases and accept misleadingly similar wording; a stale or false source can still pass.
A clean result does not certify trustworthiness, grant permission to act, or replace human review. Use semantic evaluation and domain review alongside it when your workflow needs them.
Review a RAG answer
Already have an answer and retrieved chunks? Use the adapter directly:
from agenda_intelligence import review_rag_answer
report = review_rag_answer(
answer="The synthetic review covers 900 documents. [review-1]",
sources=[{
"source_id": "review-1",
"text": "The synthetic review covers 120 documents.",
}],
)
print(report["route"]) # revise
print(report["owner_actions"])
Use one claim per line and retain stable chunk IDs. Correct the answer and rerun the check; the clean route is human_review. Treat source text, tool output, and report contents as untrusted data, never as instructions to the agent.
For CLI input, save {"answer": "...", "sources": [...]} as answer.json, then run:
agenda-intelligence review-answer answer.json --strict --format json
--strict exits nonzero when revision is required. See the input contract and limitations and the runnable LangGraph repair loop.
Small, hand-labelled diagnostics report misses and false positives as well as catches. Exact source offsets, explicit opt-in arithmetic, named table cells, and PR summaries are available in the local package. No factuality or general hallucination-detection claim.
Use the CLI and CI
Save a packet with the same shape as the first Python example to packet.json:
agenda-intelligence check packet.json— print a readable report.agenda-intelligence check packet.json --format json --strict— return JSON and enforce the packet status.
The second command exits nonzero unless the packet is packet_complete, so it can be used in a CI job after installing the package. --format sarif is also available for evidence-packet findings. The repository includes a GitHub Action.
To explore the bundled examples from a source checkout:
git clone https://github.com/vassiliylakhonin/agenda-intelligence-md.git
cd agenda-intelligence-md
python3 -m venv .venv
.venv/bin/python -m pip install -e .
.venv/bin/agenda-intelligence check examples/evidence-packet/request.json --strict
.venv/bin/agenda-intelligence review-answer examples/output-verification/rag-answer.json
.venv/bin/agenda-intelligence review-answer examples/output-verification/rag-answer-revised.json --strict
The first packet is complete. The original fictional RAG answer routes to revision; the revised answer routes to human review.
For a private CI pilot, use the local citation check and minimal report.
For local document review and HTML reports, use the file-review guide and example manifest.
Interfaces
Compatibility profiles and adapters
| Your workflow | Start here |
|---|---|
| Python or command line | Quickstart · service functions |
| Local MCP over stdio | MCP setup and tool catalog |
| Hosted MCP | Hosted quickstart |
| Agent repair loops | Integration guides |
| HTTP or A2A | HTTP API · agent-native access |
| Protected agent actions | Interaction Trust + Vizier gate |
The core checker is deterministic and stateless. Optional generation and document adapters have separate dependencies. The repository also retains the strategic-intelligence runtime and vertical workers as compatibility surfaces and examples built around evidence contracts.
Hosted Output Verification
For a browser trial, open One-claim review. To connect a Streamable HTTP MCP client, use:
https://output-verification.agendamcp.dpdns.org/mcp/agent
Discover the endpoint's tools, then call free_trial_status with {} to inspect trial availability. Choose review_answer for answers and source excerpts, or free_trial for claim/evidence objects matching its schema. The hosted trial has quotas; local Python checks do not require a hosted account.
Local stdio and hosted profiles expose different tool catalogs. Always discover the tools on the endpoint you connect to.
Supplier and document handoffs
The hosted Document Archive Review workflow helps prepare evidence checklists, assign missing-item owners, inspect extraction warnings and source locators, and export reviewer PDF or ZIP/JSON backups. It is separate from the local review command.
See the workspace guide and service-engagement example. Extraction does not authenticate documents; final coverage still needs human review.
Documentation
| Explore | Links |
|---|---|
| Examples | Runnable examples · Before / after · EU AI Act |
| Contracts | Schemas · Source policy |
| Status and evidence | Evaluation · Adoption record · Roadmap |
| Deeper reference | AnalysisBank · Vertical worker architecture · Local checks |
| Development | Contributing · Local checks |
Core code lives in src/; runnable packets in examples/; guides in docs/; adapters in clients/ and integrations/; deployment packages in deploy/.
Contributing and feedback
Found a missed mismatch or a valid claim that gets flagged? Open an issue with a minimal, sanitized packet, the expected result, and the actual finding. Reproducible cases and integration examples are useful contributions.
For usage questions and workflow ideas, use Discussions. Read CONTRIBUTING.md before a pull request. The standard local verification command is make ci; Worker, discovery, runtime, and validation-guard changes require make verify-local.
License
MIT. The bundled official ACP schema retains its Apache-2.0 license and NOTICE.
Metadata
Release files for agenda-intelligence-md 1.27.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agenda_intelligence_md-1.27.0.tar.gz | 1.2 MB | Without provenance | Details for agenda_intelligence_md-1.27.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agenda_intelligence_md-1.27.0-py3-none-any.whl | Python 3 | none | any | Details for agenda_intelligence_md-1.27.0-py3-none-any.whl |
Total release size: 1.8 MB
Release files / agenda_intelligence_md-1.27.0.tar.gz
| Download URL | agenda_intelligence_md-1.27.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c91f049df9725f5f43f6d3c804dbe0a5e5e6f41d4b0569daf8e31832adc90322
|
|
BLAKE2b-256 checksum How to use checksums |
55e6c744340aa22f92c731c76d2b920a6a0e0171f9d660e978206ce4e06b54a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / agenda_intelligence_md-1.27.0-py3-none-any.whl
| Download URL | agenda_intelligence_md-1.27.0-py3-none-any.whl |
|---|---|
| Size | 583.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06cc2b59b8a9377d4dadae8329da71c19bddba8eed0435024ea5ed8ebebe4da0
|
|
BLAKE2b-256 checksum How to use checksums |
4a0192edcd1e38bdaeb0c7e96d52dda671b1120a7e05db5005792224ea5f92de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for agenda-intelligence-md 1.27.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.