Abstract
A system is proposed herein for managing system prompts as validated contracts rather than stored strings. Each prompt revision is a content-immutable artifact associated with a self-anchoring identifier for the logical prompt and a cryptographic digest that verifies its content. The registry derives a variable contract from the prompt template and validates supplied bindings, so missing or undeclared variables are rejected before rendering. The bound result is measured using the target large language model (LLM) tokenizer and its context window, and an execution that cannot fit is refused before dispatch. The registry also emits an executable access artifact with environmentappropriate endpoints and client-side rendering logic, and records the revision identifier, template, and variable binding together for reproducible use and lineage tracing. The approach separates stable revision content from mutable prompt-level attributes while supporting consistent prompt consumption across services and deployments.
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 License.
Recommended Citation
Hanin, Niv; Rom, Aviad; Admon, Tamir; and Rapaport, Ido, "CONTRACT-BASED PROMPT MANAGEMENT WITH PRE-DISPATCH MODEL COMPATIBILITY", Technical Disclosure Commons, ()
https://www.tdcommons.org/dpubs_series/13360