[System] You are Prompt-Orchestration Backend. Follow constraints exactly. If evidence is insufficient and abstain_if_insufficient=true, output INSUFFICIENT_EVIDENCE.

developer: You are an orchestration layer. Prioritize validation and repair loops.

in: Explain why validation loops help reliability.

out: Validation catches schema violations early and triggers reasks. [E_GUARDRAILS_SCHEMA]

task:
Design a ReAct-style loop prompt that alternates tool actions and observations.
Rules: Use citations like [E_...] for each sentence with a factual/technique claim.

model_output_raw: ReAct interleaves reasoning traces with task-specific actions so the model can query external sources and reduce hallucinations. [E_REACT_2210.03629] Use Thought/Action/Observation loops, then finalize with citations to observations. [E_REACT_2210.03629]

label: success

what_to_change_next_time: Keep current packet; monitor validators; add more failure exemplars for robustness.

note: no change


technique: prompt_packet schema repair

type: object

type: array

type: string

required: answer citations

model_output_raw: Here is the JSON: {"answer": "ok", "citations": ["E_GUARDRAILS_SCHEMA"]} Thanks!

label: failure

validator_trace: Validator failed: output did not match schema and/or lacked required citation tokens [E_...].

[System] You are Prompt-Orchestration Backend. Follow constraints exactly. If evidence is insufficient and abstain_if_insufficient=true, output INSUFFICIENT_EVIDENCE. REPAIR MODE.

task:
Build a prompt packet that produces schema-valid JSON outputs and supports repair-on-failure.
Output must be valid JSON matching output_schema. Output ONLY JSON.
You must fix ONLY the specific failures noted in validator_trace.

answer: Return strict JSON and run schema verification; on failure, reask with validator trace. [E_GUARDRAILS_SCHEMA]

what_to_change_next_time: Add 'ONLY JSON' hard constraint and error-JSON fallback.

add_constraint: Output ONLY JSON, no prose; if impossible output {"error":...}.


user_query: Design a ReAct-style loop prompt that alternates tool actions and observations.


task:
Build a prompt packet that produces schema-valid JSON outputs and supports repair-on-failure.
Output must be valid JSON matching output_schema. Output ONLY JSON.

answer: Return strict JSON and run schema verification; on failure, reask with validator trace. [E_GUARDRAILS_SCHEMA]


technique: rag grounding

task:
Define RAG in one paragraph and specify a provenance rule.
Rules: Use citations like [E_...] for each sentence with a factual/technique claim.

model_output_raw: RAG combines parametric memory with non-parametric memory (retrieved passages) and can provide provenance via cited passages. [E_RAG_2005.11401]


model_output_raw: This seems right. (no citations)

task:
Define RAG in one paragraph and specify a provenance rule.
Rules: Use citations like [E_...] for each sentence with a factual/technique claim.
You must fix ONLY the specific failures noted in validator_trace.

repaired_output: RAG combines parametric memory with non-parametric memory (retrieved passages) and can provide provenance via cited passages. [E_RAG_2005.11401]

what_to_change_next_time: Add per-sentence citation requirement and run citation coverage validator.

add_constraint_2: Every sentence must contain at least one [E_...] citation.


technique: memory orchestration

task:
Describe how to store short-term memory in a stateful workflow.
Rules: Use citations like [E_...] for each sentence with a factual/technique claim.

model_output_raw: In LangGraph, short-term memory is maintained as part of the agent state and persisted via a checkpointer for resuming threads. [E_LANGGRAPH_MEMORY]


task:
Describe how to store short-term memory in a stateful workflow.
Rules: Use citations like [E_...] for each sentence with a factual/technique claim.
You must fix ONLY the specific failures noted in validator_trace.

repaired_output: In LangGraph, short-term memory is maintained as part of the agent state and persisted via a checkpointer for resuming threads. [E_LANGGRAPH_MEMORY]


user_query: Describe how to store short-term memory in a stateful workflow.


task:
Explain self-consistency vs greedy decoding in one paragraph, with citations.
Rules: Use citations like [E_...] for each sentence with a factual/technique claim.
You must fix ONLY the specific failures noted in validator_trace.

repaired_output: Self-consistency samples diverse reasoning paths and selects the most consistent answer rather than greedy decoding. [E_SELFCONS_2203.11171]