AI Prompt / Instruction Registry
Production agents must not run on a prompt pasted from Teams. EntiHub holds versioned prompt assets with approval, environment scope, and PII policy.
Why this is needed
- Untracked prompt drift changes agent behavior without auditability.
- Compliance needs to know which instruction set ran for an answer.
- Promotion Dev→Test→Prod should reuse packages like other entities.
Proposed entities in EntiHub
Governance settings
| Setting | Recommended value | Why |
|---|---|---|
approvalRequired |
true |
Only approved prompts may run in prod. |
historyEnabled |
true |
Full version history for forensics and rollback. |
allowSameAuthorApproval |
false |
Maker/checker separation for sensitive changes. |
deletedRetentionDays |
90 (or higher) |
Soft-delete retention for auditability. |
Entity definition (YAML sketch)
name: ai_prompt
displayName: AI prompt
domain: AI Governance
description: AI prompt
version: "1.0.0"
approvalRequired: true
historyEnabled: true
deletedRetentionDays: 90
displayRefColumn: name
uniqueConstraints:
- name: uq_ai_prompt_0
columns: [name, version]
columns:
- name: name
dataType: string
nullable: false
maxLength: 128
- name: version
dataType: string
nullable: false
maxLength: 32
- name: owner_team
dataType: string
nullable: false
maxLength: 128
- name: environment
dataType: string
nullable: false
maxLength: 16
- name: model_name
dataType: string
nullable: false
maxLength: 64
- name: pii_policy
dataType: string
nullable: false
maxLength: 32
- name: status
dataType: string
nullable: false
maxLength: 16
- name: instruction_text
dataType: string
nullable: false
maxLength: 8000
YAML sketches
Sketches highlight the important fields and governance flags. Trim or extend columns to match your domain. See Setup Entity for the full YAML reference.
Sample data
| name | version | owner_team | environment | model_name | pii_policy | status |
|---|---|---|---|---|---|---|
| CustomerSummary | 7 | CRM | prod | gpt-4.1 | prohibited | approved |
| CustomerSummary | 8 | CRM | test | gpt-4.1 | prohibited | draft |
| InvoiceExceptionBrief | 3 | Finance Ops | prod | gpt-4.1 | masked | approved |
Benefits for the company
- Agents only execute approved instruction versions in production.
- PII policy is explicit per prompt.
- Rollback is a governed data change.
- Packages promote the same prompt set across environments.