Layers
- Platform system contract: evidence, authority, safety and tool policy.
- Agricultural method: differential diagnosis and uncertainty.
- Immutable case snapshot.
- Current task: ask, research, synthesize, validate or respond.
- Machine-validated output schema.
Required behavior
Separate observation from inference; cite evidence IDs; retain plausible alternatives; ask rather than guess; use local authority for operational applicability; label external research; call exact verification for regulated/numerical claims; use cautious Urdu when uncertain.
Validation
LLM JSON → parse → JSON Schema → semantic validation
→ evidence-ID existence → current-date/authority check
→ policy-claim check → risk gate
Schema validity is insufficient: cited evidence must exist, dates must be current, and the proposed action must match policy/risk.
Versioning
Store prompt ID/version, model snapshot, tool definitions, retrieval settings, schema, evaluation result, approval owner, effective date and rollback target.
See JSON Schemas and Example Payloads.