Inferensys

Prompt

Government and Institutional Source Verification Prompt

A practical prompt playbook for using Government and Institutional Source Verification Prompt in production AI workflows to detect impersonation, outdated guidance, and unofficial republication of official content.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, reader, and constraints for verifying government and institutional sources before they enter evidence pipelines.

This prompt is designed for compliance engineers, trust-and-safety architects, and RAG pipeline builders who need to verify that a source is an official government, regulatory body, or institutional publication before it is used as evidence. The job-to-be-done is not general fact-checking or content moderation—it is a targeted verification step that answers one question: 'Is this source what it claims to be, and is it current enough to trust?' The ideal user is someone integrating this check into an automated evidence pipeline where downstream answers, audit trails, or regulatory submissions depend on source authenticity.

Use this prompt when your system retrieves documents that claim to be from .gov domains, regulatory agencies, international bodies, or official institutional publishers. It is appropriate for compliance workflows in finance, healthcare, legal, and government-adjacent products where citing an impersonator or outdated guidance carries real consequences. The prompt expects structured input: a source URL, claimed publisher name, document title, publication date, and the full text or a representative excerpt. It returns a structured verdict with an authenticity tier, recency assessment, impersonation risk flags, and an evidence trail explaining each signal used in the decision. Do not use this prompt for general web page credibility scoring, social media content, or sources where official institutional status is not the primary concern—other playbooks in the Source Trustworthiness and Authority Assessment group handle those cases.

This prompt is not a replacement for human review in high-stakes decisions. When the authenticity tier is 'Uncertain' or the impersonation risk is elevated, the output should trigger a human-in-the-loop review step, not automatic acceptance or rejection. The prompt also does not verify the factual accuracy of the document's content—it only verifies the source's claimed identity and currency. Pair it with the Fact Checking and Claims Verification prompts if you need to validate statements within the document. Before deploying, test against known impersonation cases, outdated guidance republications, and legitimate institutional sources to calibrate your risk thresholds.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Government and Institutional Source Verification Prompt delivers value and where it introduces risk. Use these cards to decide if this prompt fits your workflow before integrating it into a compliance or regulatory pipeline.

01

Good Fit: Regulatory Compliance Workflows

Use when: you need to confirm that a retrieved document originates from an official .gov, .edu, or recognized institutional domain before using it as evidence in a compliance review. Guardrail: pair this prompt with a domain allowlist and a secondary check against known impersonation domains.

02

Bad Fit: Real-Time Breaking News Verification

Avoid when: verifying breaking news or rapidly evolving situations where official sources may not yet have published guidance. Guardrail: use the Recency and Freshness Evaluation Prompt first, then fall back to this prompt only after an official publication window is confirmed.

03

Required Inputs: Source Metadata and Full Text

Risk: running verification on a URL or title alone produces unreliable results. Guardrail: always provide the full document text, publication date, authoring body, and the claimed institutional affiliation as structured inputs. Missing fields should trigger an evidence insufficiency flag.

04

Operational Risk: Impersonation and Lookalike Domains

Risk: sophisticated impersonation using lookalike domains, forged letterhead, or republished content on unofficial sites can fool surface-level checks. Guardrail: combine this prompt with domain reputation scoring and cross-reference the document against the official source's canonical publication index.

05

Operational Risk: Outdated Official Guidance

Risk: an official source may be authentic but superseded, creating compliance exposure if treated as current. Guardrail: always chain this prompt with a recency check and flag any official document older than the regulatory update cycle for human review before use.

06

Bad Fit: Unofficial but Authoritative Commentary

Avoid when: you need expert interpretation from think tanks, industry groups, or legal analysis that is not an official government publication. Guardrail: route these sources to the Domain Authority Assessment Prompt instead, and clearly label them as secondary analysis in downstream outputs.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for verifying whether a source is an official government, regulatory, or institutional publication, with placeholders for input, constraints, and output schema.

This prompt template is designed to be copied directly into your prompt management system, IDE, or orchestration layer. It accepts a source document or URL along with configurable constraints and returns a structured verification assessment. The template uses square-bracket placeholders that you replace with your application's specific inputs, risk thresholds, and output format requirements before sending the request to the model.

text
You are a source verification specialist trained to identify official government, regulatory, and institutional publications. Your task is to determine whether the provided source is an authentic, current, and authoritative publication from an official government body, regulatory agency, or recognized institutional publisher.

## INPUT
Source content or metadata to evaluate:
[SOURCE_CONTENT]

## CONSTRAINTS
- Risk tolerance level: [RISK_LEVEL: low | medium | high]
- Required authority threshold: [AUTHORITY_THRESHOLD: official_only | official_preferred | any_credible]
- Domain context (e.g., healthcare, finance, environmental): [DOMAIN]
- Jurisdiction scope (e.g., US federal, EU, global): [JURISDICTION]
- Maximum acceptable content age in months: [MAX_AGE_MONTHS]

## VERIFICATION CRITERIA
Evaluate the source against each criterion below. For each, provide a finding, confidence score (0.0-1.0), and specific evidence from the source.

1. **Official Domain and URL Structure**: Does the source originate from a .gov, .mil, .europa.eu, or equivalent official top-level domain? For institutional sources, does the URL match the organization's known official web presence?
2. **Publisher Identity Verification**: Is the publishing entity a verifiable government agency, regulatory body, or chartered institution? Cross-reference against known official entity names for [JURISDICTION].
3. **Document Type Classification**: Is this a primary official document (statute, regulation, official guidance, regulatory filing, official report) or a secondary reproduction, commentary, or summary?
4. **Impersonation Detection**: Are there signs that this source is impersonating an official entity? Check for lookalike domains, unofficial logos, missing official disclaimers, or unauthorized use of government seals.
5. **Recency and Version Status**: Is the publication date within [MAX_AGE_MONTHS] months? If undated, flag as high risk. Check for indicators that this version has been superseded, withdrawn, or replaced.
6. **Content Authenticity Markers**: Does the document contain expected official markers such as document control numbers, official letterhead, authorized signatories, publication references, or digital signatures?
7. **Unofficial Republication Detection**: Is this content copied or reproduced from an official source by a third party? Check for missing original context, added commentary, or altered formatting that could change meaning.

## OUTPUT SCHEMA
Return a JSON object with this exact structure:
{
  "verification_result": "verified_official" | "likely_official" | "uncertain" | "likely_unofficial" | "confirmed_unofficial",
  "confidence_score": 0.0-1.0,
  "source_identity": {
    "claimed_entity": "string",
    "verified_entity": "string or null",
    "entity_type": "government_agency" | "regulatory_body" | "institution" | "unknown" | "impersonator"
  },
  "criteria_assessment": [
    {
      "criterion": "string",
      "finding": "pass" | "fail" | "inconclusive",
      "confidence": 0.0-1.0,
      "evidence": "specific quote or observation from source"
    }
  ],
  "risk_flags": ["string"],
  "recommended_action": "use_directly" | "use_with_caution" | "verify_further" | "reject" | "escalate_for_human_review",
  "explanation": "Concise summary of the verification reasoning suitable for audit logs."
}

## INSTRUCTIONS
- If any single criterion produces a critical failure (confidence < 0.3 on a high-severity check), set recommended_action to "reject" or "escalate_for_human_review" based on [RISK_LEVEL].
- For [RISK_LEVEL: high], any uncertainty must escalate for human review.
- Do not infer official status from content quality alone. A well-written document on an unofficial site is still unofficial.
- If the source is a third-party reproduction of official content, flag it as "likely_unofficial" regardless of content accuracy.
- Cite specific evidence for every criterion assessment. Do not use vague language like "appears legitimate."

To adapt this template for your application, replace each square-bracket placeholder with values from your runtime context. The [SOURCE_CONTENT] placeholder accepts raw text, a URL, or structured metadata depending on your pipeline. For batch processing, wrap this prompt in a loop that populates placeholders per source. The output schema is designed for direct parsing into a verification database; add fields as needed for your compliance requirements. If your use case involves regulated domains such as healthcare or finance, set [RISK_LEVEL] to high and ensure the escalate_for_human_review action triggers a notification to your compliance team before any downstream use of the source.

Before deploying, test this prompt against a golden dataset containing known official sources, known impersonation attempts, outdated guidance, and third-party republications. Validate that the JSON output parses correctly and that recommended_action aligns with your organization's risk policy. For high-risk workflows, implement a secondary verification step: if confidence_score falls below 0.8 or verification_result is uncertain, route the source to a human reviewer and log the full criteria assessment for audit purposes.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Government and Institutional Source Verification Prompt. Each placeholder must be populated before the prompt is sent to the model. Missing or malformed inputs are the most common cause of false negatives in source verification.

PlaceholderPurposeExampleValidation Notes

[SOURCE_URL]

The URL of the document or page being verified

Must be a valid, resolvable URL. Check for redirect chains. Null not allowed.

[SOURCE_TEXT]

Full text content extracted from the source

The U.S. Environmental Protection Agency (EPA) today released its annual greenhouse gas inventory...

Must be non-empty string. Minimum 100 characters to allow meaningful analysis. Strip navigation chrome and boilerplate before insertion.

[SOURCE_METADATA]

Structured metadata about the source including publisher, date, and content type

{"publisher": "EPA", "pub_date": "2024-04-15", "content_type": "report"}

Must be valid JSON object. Required fields: publisher, pub_date. Optional: content_type, author, last_modified. Validate JSON parse before prompt assembly.

[CLAIMED_INSTITUTION]

The institution the source claims to represent

U.S. Environmental Protection Agency

Must be a non-empty string. This is the asserted identity to verify against the actual source. Compare with [SOURCE_METADATA].publisher for consistency.

[VERIFICATION_DEPTH]

Controls how aggressively the prompt checks for impersonation and outdated content

comprehensive

Must be one of: basic, standard, comprehensive. Basic checks domain only. Standard adds publisher verification. Comprehensive adds version history and cross-reference checks.

[DOMAIN_ALLOWLIST]

List of known legitimate domains for the claimed institution

["epa.gov", "epa.govt.nz"]

Must be a JSON array of strings. Include all known official domains including country-specific variants. Null allowed if no allowlist is maintained.

[OUTPUT_SCHEMA]

Expected JSON structure for the verification result

{"is_verified": boolean, "confidence": float, "flags": string[]}

Must be a valid JSON Schema or example object. Include required fields: is_verified, confidence, evidence. Optional: impersonation_risk, freshness_status, recommendation.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Government and Institutional Source Verification Prompt into a production application with validation, retries, and human review gates.

This prompt is designed to operate as a pre-retrieval or post-retrieval gate in a RAG pipeline, not as a standalone chat interaction. The most common integration pattern is to call it after document retrieval but before evidence is passed to an answer-generation prompt. When a retrieved source fails verification, the system should either discard it, downgrade its weight in downstream ranking, or flag it for human review depending on the [RISK_LEVEL] configured. For compliance workflows, the output should be logged immutably alongside the source metadata to create an audit trail showing that every cited document passed institutional verification checks.

Validation layer: Parse the model's JSON output and validate that source_type matches one of the allowed enum values (official_government, regulatory_body, institutional_publication, unofficial_republication, impersonation_risk, unknown). Reject any response where confidence_score is outside the 0.0–1.0 range or where verification_indicators is empty. If the model returns malformed JSON, use a repair prompt that feeds the raw output and the expected schema back to the model with a strict instruction to fix parse errors. After two repair attempts, escalate to a human review queue with the original source content and metadata attached.

Retry and fallback strategy: For transient model failures (timeouts, rate limits, 5xx errors), implement exponential backoff with a maximum of three retries. For persistent failures, fall back to a heuristic check: verify the domain against a maintained allowlist of known government and institutional domains (.gov, .edu, .who.int, etc.) and flag any source that fails both the model check and the domain allowlist. Do not silently pass unverified sources downstream. Logging: Record the prompt version, model ID, input source URL, verification result, confidence score, and timestamp for every call. This log becomes essential evidence if a compliance auditor questions why a particular source was used or excluded.

Model selection: Use a model with strong instruction-following and JSON output capabilities. GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro all perform well on this structured classification task. Avoid smaller models (under 7B parameters) for this prompt unless you have fine-tuned them specifically on government document classification and validated their impersonation detection accuracy. Human review integration: When source_type returns impersonation_risk or confidence_score falls below your threshold (recommend 0.85 for regulated use cases), route the source to a review queue. The review interface should display the original source URL, the model's verification indicators, and a one-click action to approve or reject the source. Track reviewer decisions to build a dataset for future model improvement.

What to avoid: Do not use this prompt as the sole verification step in high-stakes compliance workflows. Always combine it with domain allowlisting, TLS certificate validation for the source host, and periodic human audits of verification decisions. Do not cache verification results indefinitely—government pages change, domains expire, and impersonation sites evolve. Set a maximum cache TTL of 24 hours for verified sources and re-verify on every retrieval for sources flagged as unofficial_republication. Finally, ensure your logging system captures the full prompt and response for every verification call; this trace data is invaluable when debugging false positives or investigating why a compromised source passed verification.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the structured output schema for the Government and Institutional Source Verification Prompt. Use this contract to validate model responses before they enter downstream evidence pipelines or compliance workflows.

Field or ElementType or FormatRequiredValidation Rule

verification_result

object

Top-level object must be present and parseable as valid JSON. Schema violation triggers retry or repair.

verification_result.is_official_source

boolean

Must be true or false. Null is not allowed. If confidence is below threshold, default to false and escalate.

verification_result.source_type

enum string

Must match one of: 'government_body', 'regulatory_agency', 'institutional_publication', 'official_republication', 'unofficial_republication', 'impersonation', 'unknown'. Unknown values trigger human review.

verification_result.governing_jurisdiction

string or null

If source_type is government_body or regulatory_agency, provide ISO 3166 country code or 'international'. Null allowed for non-governmental sources.

verification_result.confidence_score

number

Float between 0.0 and 1.0. Scores below [CONFIDENCE_THRESHOLD] must set is_official_source to false and populate uncertainty_notes.

verification_result.evidence_indicators

array of strings

Minimum 1 indicator required. Each string must cite a specific signal observed (e.g., 'official domain pattern .gov', 'verified SSL certificate chain to government CA'). Empty array triggers retry.

verification_result.risk_flags

array of objects

Each object must contain 'flag_type' (string), 'description' (string), and 'severity' (enum: 'low', 'medium', 'high', 'critical'). Required when is_official_source is false or confidence_score is below threshold.

verification_result.uncertainty_notes

string or null

Required when confidence_score < [CONFIDENCE_THRESHOLD] or when conflicting indicators are present. Must explain what is uncertain and what additional verification is recommended.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when verifying government and institutional sources, and how to guard against it before the output reaches a user or downstream system.

01

Impersonation via Lookalike Domains

What to watch: The model accepts a source from agency-gov.org or health-dept.com as official because the domain name contains government-sounding terms. Typosquatting and lookalike domains are the most common vector for impersonating institutional sources. Guardrail: Require exact domain matching against a known allowlist of official government and institutional top-level domains (e.g., .gov, .mil, .edu, specific institutional subdomains). Flag any source that does not match the allowlist for human review before use.

02

Outdated Guidance Presented as Current

What to watch: The model treats a 2018 regulatory guidance document as authoritative for a 2025 compliance question because the publication date was not extracted or compared against the query's temporal requirements. Regulatory and institutional guidance changes frequently. Guardrail: Always extract and compare the source's effective date, last-updated date, or version number against the query's temporal context. If no date is found, downgrade the source's authority score and flag it as potentially stale.

03

Unofficial Republication Treated as Original

What to watch: A third-party blog, news article, or commercial site republishes an official document, and the model cites the republication as if it were the original source. Republication can introduce paraphrasing errors, selective quoting, or added commentary. Guardrail: Check whether the source is the original publisher of the content. If the content references another organization's document, require the model to locate and cite the original source. Flag republications with a lower authority tier.

04

Missing or Fabricated Document Identifiers

What to watch: The model generates a plausible-sounding document number, regulation reference, or publication ID that does not exist. This is especially dangerous in compliance workflows where users act on the cited reference. Guardrail: Require the model to extract document identifiers verbatim from the source text. If an identifier cannot be located in the source, the model must not invent one. Implement a post-generation check that verifies any cited identifier appears in the retrieved evidence.

05

Over-Reliance on a Single Credibility Signal

What to watch: The model assigns high trust based solely on a .gov domain or an official-sounding publisher name, ignoring other signals like missing author attribution, absent publication dates, or content that contradicts other authoritative sources. Single-factor trust assessments are brittle. Guardrail: Use a multi-factor scoring approach that combines domain authority, author credentials, publication date, cross-source corroboration, and content consistency. Require at least two independent signals before assigning a high-trust classification.

06

Hallucinated Institutional Affiliations

What to watch: The model attributes a document to a government agency or institution when the source text does not actually establish that affiliation. This creates false authority and can mislead downstream decisions. Guardrail: Require the model to extract the exact affiliation statement from the source text. If no explicit affiliation is present, the model must not infer one. Add a verification step that checks whether the claimed affiliation is supported by the source's metadata, header, footer, or about page.

IMPLEMENTATION TABLE

Evaluation Rubric

Test criteria for verifying the Government and Institutional Source Verification Prompt before production deployment. Each criterion targets a specific failure mode common in source authority assessment.

CriterionPass StandardFailure SignalTest Method

Official Domain Recognition

Correctly identifies .gov, .mil, .fed.us, .gc.ca, .europa.eu, and equivalent official TLDs as authoritative government domains

Flags official domain as suspicious or fails to recognize known government TLD pattern

Run against curated list of 50 known government domains across 10 jurisdictions; require 100% recognition rate

Impersonation Detection

Identifies lookalike domains (gov-news.com, .gov.co, .gov-support.org) as non-official with impersonation flag set to true

Classifies impersonation domain as official or returns confidence score above 0.3 for impersonation source

Test against 20 known impersonation patterns including typosquatting, subdomain spoofing, and TLD confusion; require impersonation flag on all

Outdated Guidance Flagging

Flags documents with publication or last-updated dates older than [MAX_AGE_DAYS] as potentially outdated when query requires current regulatory information

Returns outdated regulatory guidance as current without freshness warning or date caveat

Inject 10 documents with dates 2-5 years old into test set for time-sensitive queries; require outdated flag on all beyond threshold

Unofficial Republication Detection

Identifies when official content is republished on third-party sites (blog posts, commercial sites, aggregator platforms) and marks as unofficial republication

Treats third-party republication as original official source or assigns authority score equal to original

Test with 15 pairs of original official content and third-party reposts; require republication flag and lower authority score on all reposts

Institutional Publisher Verification

Confirms publisher entity matches known government agency, regulatory body, or institutional authority list for the claimed jurisdiction

Accepts publisher name without verification against known entity list or fails to flag unknown publisher claiming government affiliation

Provide 25 publisher names including 10 fictitious government-sounding entities; require rejection or low-confidence flag on all fictitious publishers

Cross-Reference Consistency

When [REFERENCE_DATABASE] is provided, cross-checks source metadata against reference entries and flags discrepancies in title, date, or issuing body

Returns high confidence score despite metadata mismatch with reference database entry

Seed reference database with 30 known documents; inject 10 with deliberately altered metadata; require discrepancy flag on all altered entries

Confidence Calibration

Returns confidence score below [LOW_CONFIDENCE_THRESHOLD] when multiple verification signals are ambiguous or missing, and above [HIGH_CONFIDENCE_THRESHOLD] only when domain, publisher, date, and content signals all align

Returns high confidence for sources with missing publication dates, unknown publishers, or ambiguous domain ownership

Run 100-source test set with known ground-truth authority labels; measure Brier score and expected calibration error; require ECE below 0.1

Structured Output Schema Compliance

Output matches [OUTPUT_SCHEMA] exactly with all required fields present, correct types, and enum values within allowed set

Missing required fields, incorrect types, extra hallucinated fields, or enum values outside allowed set

Validate output against JSON Schema for 200 test cases; require 100% schema compliance; any schema violation is a hard failure

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base verification prompt and a single source URL. Use a lightweight JSON schema with only the essential fields: is_official, confidence_score, and explanation. Skip batch processing and complex cross-referencing. Run manually against known-good and known-bad sources to calibrate thresholds.

code
Verify whether [SOURCE_URL] is an official government or institutional publication.
Return JSON with: is_official (boolean), confidence_score (0-1), explanation (string).

Watch for

  • Over-reliance on domain TLDs (.gov, .edu) without checking content provenance
  • False positives on unofficial mirrors that copy official content
  • Missing publication date checks leading to outdated guidance acceptance
  • Model confidently classifying parody sites as official
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.