We introduce State-Grounded Conditioning (SGC), a design principle for user-facing LLM agents that must condition on live user state (game state, session history, live inventory), and a distinct failure class we call direction drift: task-complete responses whose chosen direction misaligns with the current state. SGC externalises state-dependent control into rule kernels over structured inputs and three primary state slices, via Perception, Grounding, and Interaction wrappers with explicit conditioning dependencies. We evaluate SGC on a 200-session anonymised benchmark (≈1,000 assistant model turns) from an in-game conversational coaching agent that guides players through consecutive competitive matches, reporting mean first-token latency and five human-annotated dialogue-quality metrics that jointly cover factual grounding and coach-like guidance progression. The Perception wrapper holds mean first-token latency at 1.5s (vs. 6.1s for PE-Agent inside a production tool-use harness); enabling all three wrappers lifts turn-level grounded accuracy from 61.1%/69.8% (Prompting / PE-Agent) to 96.7% and session-level grounded accuracy from 20.0%/26.5% to 83.5%; session-level grounding-failure incidents drop by ≈78% relative to the strongest baseline. A cumulative ablation shows complementary incremental gains as the wrappers are added. These results inform approximate state-slice orthogonality, without establishing independent per-wrapper effects.
Figures & tables
Figure 1: SGC: primary state slices and explicit conditioning dependencies. Dashed arrow carries c1 into W2 ; separate responsibilities do not imply independent computations. Reply LLM L additionally conditions on shared input x and static state sstatic .
Figure 2: W3 scheduler decision tree with two paths (fire / abstain) and the meta writeback loop.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Failure notion
Per- user?
Per- moment?
State-var dependent?
Hallucination
×
×
×
Personalization failure
✓
×
×
Context-adherence failure
×
partial
×
Commonsense-constr. viol.
×
×
partial
Classical DST error
partial
✓
✓
Direction drift (ours)
✓
✓
✓
Appendix
Table 1: Direction drift vs. five neighbouring failure notions along three orthogonal axes; only direction drift is the conjunction of all three.
Wrapper
Reads (state fields)
Writes / emits ( ci )
W1
intent, sub_intent,
T^ (tool set),
snapshot game state,
<NARRATION> tokens,
device / session opener
early-decision flag
W2
QuerySlots (from x ),
Conflict set + tier,
σ(slivefs) inventory,
eligible candidates A
catalog / retrieval
required paragraphs R
Appendix
Table 2: Primary state and control-output summary. Parsed slots, candidate pools, and weights are derived inputs or configuration, not additional disjoint raw-state fields. Both W2 and W3 also consume c1 (signatures below).
Figure 3: Fact-talk separation in W2 . The FACT layer performs slot extraction, deterministic repair, slot diff against live facts σ(slivefs) , three-tier grading (hard / soft / hint), and paragraph mutex Ψ ; the TALK layer performs constrained generation over the enabled paragraphs. Structural selection does not guarantee semantic correctness of the final text.
Metric
Prompting
PE-Agent
SGC w/o W2,W3
SGC w/o W3
Full SGC
M0 · First-token latency (mean, s, ↓ )
Latency
2.3
6.1
1.5
1.5
1.5
M1 · TGA (%, ↑ )
Turn-level grounded acc.
61.1
69.8
89.1
89.9
96.7
M2 · SGA (%, ↑ )
Session-level grounded acc.
20.0
26.5
46.5
56.5
83.5
Appendix
Table 3: Aggregate benchmark metrics across all five configurations on the 200-session anonymised benchmark ( ≈1,000 assistant model turns; Section 7.1 ). M0 is a system-level cost budget; M1 – M5 are downstream dialogue-quality metrics defined in Section 7.2 . PE-Agent is a Plan-and-Execute agent ( Wang et al., 2023 ) deployed within a production tool-use harness ( Xu et al., 2026 ) . The two intermediate SGC rows disable W3 (and also W2 ) to isolate incremental wrapper contributions. Bold indicates the best result in each row (including ties). All five configurations are scored under the same dual human-annotation protocol (Appendix G ), so between-group deltas are directly comparable; no LLM-judge label enters any reported number (Limitations L2).
Contrast
ΔM0
ΔM1
ΔM2
ΔM3
ΔM4
ΔM5
(s)
(pp)
(pp)
(pts)
(pts)
(pts)
W1 vs. PE
−4.6
+19.3
+20.0
+1.9
+2.2
+0.9
Add W2
0.0
+0.8
+10.0
0.0
0.0
−0.1
Add W3
0.0
+6.8
+27.0
+0.2
+0.8
+0.3
Appendix
Table 4: Cumulative differences calculated from the displayed values in Table 3 . PE denotes PE-Agent; successive rows compare W1 with PE-Agent, W1+W2 with W1 , and Full SGC with W1+W2 . Lower M0 and higher quality scores are better. These conditional increments are not independent leave-one-out effects; 0.0 denotes equality at reported precision, not statistical equivalence.
Work
Optimised for
Method level
Direction drift?
State-slice approx. orthogonal?
Plan-and-Execute ( Wang et al., 2023 ; Xu et al., 2023 )
Task completion
Loop (planner+executor)
×
×
LIFE-HARNESS ( Xu et al., 2026 )
Task completion
Runtime
×
×
Workflow Graphs ( Park et al., 2025 )
Flow control
Flow structure
Partial
×
Talker-Reasoner ( Christakopoulou et al., 2024 )
Latency
Dual-system
×
×
SLOT ( Shen et al., 2025 ) / GCD ( Raspanti et al., 2025 )
Output structure
Decoding
Partial
×
FACTS Grounding ( Jacovi et al., 2025 )
Factuality
Evaluation
×
×
Appendix
Table 5: Comparison to prior work. SGC is orthogonal to and composable with each prior work: it targets a distinct failure class (direction drift) that prior work does not address. The Plan-and-Execute and LIFE-HARNESS rows jointly represent the method family of the empirical PE-Agent baseline used in Section 7 .
Figure 4: Schematic event sequences, not measured durations. (a) Naive 3-stage cascade: intent → planner → tools → reply, with the planner conditioning on stale state and first screen at ≈3,000 ms. (b) W1 streams NARR, INTENT, SUB_INTENT, then PLAN (fallback only); when Φ fires on sub-intent closure, tools and retrieval dispatch in parallel under TTS cover, and the early path leads PLAN by ≈1.5 s. Referenced from Section 4 .
Intent
Sub-intent
Frozen tool set T^
recommend
counter-pick
{lineup_search, counter_rank, dex_lookup}
recommend
lineup-build
{team_search, synergy_rank}
teaching
mechanics-qa
{doc_retrieve, rule_lookup}
teaching
skill-explain
{skill_dex, prereq_check}
knowledge-qa
entity-info
{dex_lookup}
knowledge-qa
meta-brief
{meta_report_retrieve}
Appendix
Table 6: Illustrative excerpt of the Φ table. The full table (approximately 50 rows) will be released with the benchmark.
Rule id
Behaviour
R1 · hard-conflict eligibility
Exclude praise affirming a violated constraint; require constraint-account for that constraint.
R2 · selection mutex
Select at most one of the eligible alternatives that affirm and deny satisfaction of the same constraint.
R3 · soft-only eligibility
praise and apology may both be eligible candidates; R2 resolves incompatible alternatives at selection time.
R4 · hint-only eligibility
Enable scene-flavor ; an advisory hint alone does not require an apology about a missing entity.
R5 · intent eligibility
For knowledge-qa intent, guidance is disabled regardless of conflicts.
R6 · empty-inventory requirement
If σ(slivefs)=∅ , exclude praise asserting availability; require an apology explaining the empty inventory.
Appendix
Table 7: Paragraph eligibility and selection constraints. R2 applies after candidate eligibility; eligibility does not mean a paragraph has been selected.
Guidance type
Cooldown
pc
wc
lineup-recommend
3 turns
0.60
1.0
counter-tip
5 turns
0.45
0.8
mechanics-hint
2 turns
0.70
0.6
encourage
4 turns
0.30
0.4
empty-state-nudge
6 turns
0.20
0.3
Appendix
Table 8: Illustrative W3 cooldown configuration. Values are representative production defaults, tuned quarterly against the guidance-repetition rate metric.