Agenda Intelligence MD
<!-- mcp-name: io.github.vassiliylakhonin/agenda-intelligence-md -->
# Agenda Intelligence MD
**Catch broken citations, altered quotes, and unsupported numbers in AI output.**
[](https://pypi.org/project/agenda-intelligence-md/)
[](https://pypi.org/project/agenda-intelligence-md/)
[](https://github.com/vassiliylakhonin/agenda-intelligence-md/actions/workflows/ci.yml)
[](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/LICENSE)
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](https://output-verification.agendamcp.dpdns.org/#one-claim-review) · [First run](#first-run) · [RAG integration](#review-a-rag-answer) · [MCP](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/MCP.md) · [Documentation](#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:
```bash
python -m pip install "agenda-intelligence-md==1.26.0"
agenda-intelligence --version
```
Copy this self-contained example into Python:
```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:
```text
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](https://github.com/vassiliylakhonin/global-think-tank-analyst/blob/main/SKILL.md) 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](https://vizier.agendamcp.dpdns.org/playground#missing-grant) 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:
```text
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](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/schemas/v1/evidence-packet-request.schema.json), [response schema](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/schemas/v1/evidence-packet-response.schema.json), and [evaluation notes](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/evaluation.md).
### 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:
```python
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](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/integrations/rag-output.md) and the [runnable LangGraph repair loop](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/examples/langgraph-output-verification/README.md).
Small, hand-labelled [diagnostics](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/evals/claim_checks/README.md) report misses and false positives as well as catches. [Exact source offsets, explicit opt-in arithmetic, named table cells, and PR summaries](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/evidence-diagnostics.md) 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](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/action.yml).
To explore the bundled examples from a source checkout:
```bash
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](docs/integrations/rag-output.md#add-a-local-ci-check).
For local document review and HTML reports, use the [file-review guide](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/evidence-review.md) and [example manifest](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/examples/evidence-review/README.md).
## Interfaces
### Compatibility profiles and adapters
| Your workflow | Start here |
| --- | --- |
| Python or command line | [Quickstart](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/quickstart.md) · [service functions](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/src/agenda_intelligence/services.py) |
| Local MCP over stdio | [MCP setup and tool catalog](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/MCP.md) |
| Hosted MCP | [Hosted quickstart](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/deployment/hosted-quickstart.md) |
| Agent repair loops | [Integration guides](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/integrations/README.md) |
| HTTP or A2A | [HTTP API](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/deployment/http-api.md) · [agent-native access](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/deployment/agent-native-access.md) |
| Protected agent actions | [Interaction Trust + Vizier gate](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/integrations/action-bound-execution.md) |
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](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/vertical-workers.md) as compatibility surfaces and examples built around evidence contracts.
### Hosted Output Verification
For a browser trial, open [One-claim review](https://output-verification.agendamcp.dpdns.org/#one-claim-review). To connect a Streamable HTTP MCP client, use:
```text
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](https://agendamcp.dpdns.org/document-archive) 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](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/use-cases/supplier-evidence-desk.md) and [service-engagement example](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/examples/service-engagement/README.md). Extraction does not authenticate documents; final coverage still needs human review.
## Documentation
| Explore | Links |
| --- | --- |
| Examples | [Runnable examples](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/examples/README.md) · [Before / after](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/examples/before-after/README.md) · [EU AI Act](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/examples/source-backed/eu-ai-act.md) |
| Contracts | [Schemas](https://github.com/vassiliylakhonin/agenda-intelligence-md/tree/v1.26.0/schemas/v1/) · [Source policy](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/SOURCE_POLICY.md) |
| Status and evidence | [Evaluation](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/evaluation.md) · [Adoption record](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/ADOPTION.md) · [Roadmap](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/ROADMAP.md) |
| Deeper reference | [AnalysisBank](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/analysis-bank/README.md) · [Vertical worker architecture](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/vertical-workers.md) · [Local checks](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/local-checks.md) |
| Development | [Contributing](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/CONTRIBUTING.md) · [Local checks](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/docs/local-checks.md) |
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](https://github.com/vassiliylakhonin/agenda-intelligence-md/issues/new/choose) 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](https://github.com/vassiliylakhonin/agenda-intelligence-md/discussions). Read [CONTRIBUTING.md](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/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](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/LICENSE). The bundled official ACP schema retains its [Apache-2.0 license](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/src/agenda_intelligence/data/protocols/acp/2026-04-17/LICENSE) and [NOTICE](https://github.com/vassiliylakhonin/agenda-intelligence-md/blob/v1.26.0/src/agenda_intelligence/data/protocols/acp/2026-04-17/NOTICE).
TDQS
Scored across 32 tools
The vertical triage tools (CIS sanctions, Gulf maritime, Middle Corridor, Kazakhstan entry, corridor bankability, agentic trust) are mostly domain-distinct, but the large cluster of evidence/claim-checking tools (check_evidence_packet, grounded_check, verify_quotes, verify_claims, audit_claims, agent_output_verification) has subtle boundaries that an agent can easily misselect. analyze also overlaps conceptually with the vertical risk triages, and the placeholder deep_dive adds noise.
Names are all snake_case, but conventions vary widely: verb_noun (validate_brief, get_lens), noun-phrase verticals (gulf_maritime_exposure), bare verbs (analyze), and generic nouns (source_plan). This is readable but not a predictable tool-family pattern.
At 32 tools, the server is heavy for a single strategic-risk MCP surface; several vertical workers and multiple evidence-checking variants sit alongside one another. deep_dive is an admitted placeholder, which weakens the case that every tool earns its place.
The surface covers a full strategic-risk memo lifecycle: protocol/lens discovery, brief and evidence construction, schema validation, source planning/coverage, quote/grounding/claim checks, memo quality checks, and vertical triage. Remaining gaps are minor, such as no tool for editing/removing evidence entries or performing live source retrieval, though live retrieval is explicitly out of scope.