Deployment-readiness checks for document-QA and extraction AI: grounding, extraction, CI gate.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Deployment-readiness harnesses for AI deployment patterns.
Redaction Β· evals from your real failures Β· a CI gate that fails fabrication
Website Β· Getting started Β· Examples Β· Roadmap Β· Contributing Β· Changelog
You have a prototype: your documents, a model, useful output. What you don't have is the apparatus that makes it responsible to ship β a privacy pre-step, an evaluation built from your own failures, and a gate that stops a quiet prompt tweak from deploying a system that fabricates. That apparatus usually requires an ML engineer. Groundwork scaffolds it instead.
Groundwork's units are deployment patterns, not products β think Terraform modules for trustworthy AI deployments. groundwork init <archetype> scaffolds the whole harness for a pattern:
| Archetype | The pattern | Status |
|---|---|---|
document-qa | documents β retrieval β grounded answers β human review | β shipped |
extraction | documents β structured fields β schema validation β human review | β shipped |
| research synthesis | questions β evidence β synthesis β human review | planned β see the roadmap |
Every check is deterministic: same inputs, same result, every time β no LLM judge, and no API key for the checks themselves.
The same loop for structured extraction:
That red build is the product: a fabricated figure, a guessed field, or a failed abstention becomes a CI failure, not a user complaint.
Ready for your own system?
| You edit | Groundwork runs | The gate enforces |
|---|---|---|
adapter.mjs β one file: answer() for document QA, extract() for extraction | Redaction pre-step (Redacta) β identifiers become labelled tokens locally, before anything is sent | check --baseline freezes a good run as the floor |
datasets/cases/*.json β gold cases from real questions and real documents, labelled by hand | The archetype's eval (OpenGATE) β document QA: anchored facts Β· numbers trace to context Β· abstention. Extraction: schema validity Β· field accuracy vs gold Β· no fabricated fields | check --ci in the scaffolded GitHub Action fails any PR below it |
groundwork.config.json β archetype, redaction, eval, and gate settings | Cost profiling β measured token usage, savings in leverage order (caching β batching β trimming β routing) | A human still reviews high-stakes outputs β the gate is a floor, not a certification |
For extraction, one schema choice does most of the safety work: nullability is the abstention contract. A field the system must always find is non-nullable; a field the document may not state is nullable, and the system returns null for it β unknown β null, never guessed. A guessed value in a null-gold field fails by name: FABRICATED field "date_of_birth": document does not state it.
| Example | What it shows | Run |
|---|---|---|
demo/ | Document QA: the full loop on a tiny local system β and the gate catching fabrication by name. Zero network. | npm run demo / npm run demo:break |
demo-extraction/ | Structured extraction: schema validation, field accuracy, and the gate naming a guessed date of birth and a dropped required field. Zero network. | npm run demo:extraction / npm run demo:extraction:break |
examples/claude-doc-qa/ | A real Claude-backed system: answer-from-document-only prompting, prompt caching, key-gated evals, measured usage feeding groundwork cost β plus a mock API so the whole loop runs offline in CI. | npm run example:mock (offline) / npm run example:check (live) |
examples/claude-extraction/ | Claude filling a schema from fictional referral letters: unknown β null in the prompt contract, the schema as the cached prefix, and the gate catching a guessed date of birth β plus a mock API for offline CI. | npm run example:extraction:mock (offline) / npm run example:extraction:check (live) |
Two ways to learn it: docs/GETTING-STARTED.md is the reference walkthrough (about half an hour), and the course covers the same ground as checkpoint-driven lessons β including the sabotage test, where you deliberately break your own system to prove the gate catches it, and a lesson on the extraction archetype. The scaffolded playbook (GROUNDWORK.md) lives inside your repo, where your team will actually read it.
The same checks ship as an MCP server (groundwork-mcp, stdio) so Claude Code, Cowork, or Claude Desktop can run them conversationally β check_readiness on a repo, check_answer_grounding on a single answer, check_extraction on a single record (no repo needed), scaffold_harness, cost_summary:
There's also an Agent Skill (skills/groundwork-readiness/) that teaches an agent to run the gate and report results honestly β including refusing to present a green check as a safety certification.
Groundwork is a strong floor, not a guarantee. Deterministic checks catch the failures that can be caught deterministically; they cannot certify an AI system safe. For high-stakes outputs β anything touching health, money, legal standing, or safety β a human must review before the output reaches the person it affects. Extraction raises the stakes quietly: the record feeds decisions, so a wrong field is a wrong decision. The scaffolded playbook says this too, on purpose.
MIT. Everything init scaffolds into your repo is MIT-0 β yours, no attribution needed.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/groundwork)<a href="https://allmcps.com/mcp/groundwork"><img src="https://allmcps.com/api/badge/groundwork?style=directory" alt="Groundwork on AllMCPs" /></a>