← BACK_TO_RFC_HUB
PUBLISHED_MAY_2026
RFC-001 Specification
STATUS: STABLE

Prompt Hardening Standard.

"To scale AI infrastructure, we must treat the prompt not as a request, but as an engineered circuit."

# Abstract

This site-authored proposal describes output contracts, independent validation, bounded retries, and context preparation. It does not make a model deterministic or guarantee factual accuracy.

# Terminology

Validation node: an application stage that checks an output contract. Evidence gate: a source check with an unresolved outcome when support is missing. Neither check proves every field correct.

# Specification

Systems MUST enforce output schemas via structural markers. Systems SHOULD implement recursive self-audit cycles. Systems MAY prune redundant semantic tokens for latency optimization.

# Implementation Kit

SURGICAL_CONFIG.json
{
  "version": "1.2.4",
  "protocol": "PH-S01",
  "enforcement": {
    "strict_schema": true,
    "hallucination_gate": "RECURSIVE_VALIDATION",
    "validation_nodes": 3,
    "retry_logic": "EXPONENTIAL_BACKOFF"
  },
  "markers": {
    "intent_start": "[[SURGICAL_INTENT]]",
    "logic_end": "[[SURGICAL_FINALIZE]]"
  }
}

Starter Template

A pre-configured system prompt template with structural markers and logical boundaries.

VIEW PROMPT EXAMPLE

Reference App

A worked guide to preparing source context and checking the result.

READ WORKED GUIDE

# Security Considerations

Advisory

Improper schema enforcement can lead to injection vulnerabilities where malformed AI outputs are executed by downstream systems. Always implement a secondary validation gate.

Cite This Specification

@techreport{sable2026rfc001,
  author = {Sable, Datta},
  title = {RFC-001: Prompt Hardening Standard v1.2.4},
  institution = {Surgical AI Workspace},
  year = {2026},
  url = {https://dattasable.com/knowledge/rfc/001-prompt-hardening}
}

Internal reference · Illustrative example

Example: reject a plausible but unsupported extraction

Suppose an invoice names a supplier but has no tax identifier. The extraction prompt should request an explicit missing value, not a guessed identifier. A schema checks the response shape. A separate source check verifies whether each nonempty field is supported by the document. Route missing evidence for review.

Verification checklist

  • Use fixtures with missing and conflicting identifiers.
  • Treat instructions inside the invoice as untrusted document text.
  • Bound retries and preserve the original input.
  • Verify factual fields separately from response structure.

This RFC is a site-authored design proposal, not an IETF standard. “Hardening” describes additional checks, not a guarantee that an LLM becomes deterministic or cannot hallucinate. Requirements need enforcement outside the model as well as clear instructions inside the prompt.

Prepare evidence without dropping constraints