CareHarness: A Biopsychosocial Clinical Reasoning Harness for Longitudinal Healthcare Agents

Rui Sheng, Yangliduo Lai, Yanjie Zhang, Wenshuo Zhang, Zixin Chen, Yanna Lin, Chuhan Shi, Yushi SunarXiv 2026

TL;DR

Personal healthcare AI agents don't just need to retrieve a fact from a chat log—they need to reason over a patient's evolving medical history where symptoms resolve, treatments change, and newer visits overwrite older assumptions. CareHarness introduces a structured three-layer clinical reasoning harness (patient state, clinician-inspired actions, and a governing handbook) paired with EAR-RL, a reinforcement learning method that traces which specific actions actually uncovered useful evidence. Together, they push longitudinal healthcare agents to the top of the leaderboard across three different open-weight LLMs.

What Problem Does This Paper Address?

If you ask an AI assistant about your health across months of conversations, a simple keyword or vector search won't cut it. Longitudinal healthcare data is messy: earlier diagnoses get revised, medications are started and stopped, and a recommendation isn't the same thing as a completed treatment.

While "agent harnesses" (structured loops of tools, memory, and guardrails) have boosted LLM performance in coding and web browsing, longitudinal personal healthcare lacks a dedicated harness. Even if you give an agent the right tools, training it with only a final-answer reward creates a classic credit assignment problem: if a 6-step investigation gets the right answer, how does the model know which steps actually found critical evidence and which ones were just spinning its wheels?

Methods

The authors tackle both the harness design and the training signal:

  1. CareHarness (The Three-Layer Harness):
  2. BPSM-Guided Patient State ($\mathcal{S}$): Inspired by the biopsychosocial model (BPSM), the agent organizes raw conversation history into a source-grounded graph spanning six clinical families: Background Circumstances, Patient Experience, Patient Appraisal, Clinical/Safety State, Care Process, and Longitudinal Outcome. Every node keeps its timestamp, provenance, and assertion status so nothing is silently overwritten.
  3. Clinical Actions ($\mathcal{A}$): Five fixed-schema actions modeled after how physicians actually review charts: Focused Clinical Review (FCR) to locate records, Encounter Reconstruction (ER) to pull original visit context, Longitudinal Course Analysis (LCA) to trace changes across visits, Evidence Consolidation (EC) to trim the working set, and Clinical Synthesis (CS) to write the final answer.
  4. Policy Handbook ($\mathcal{K}$): A set of rules governing how to interpret records (e.g., treating failed retrieval as "missing evidence" rather than a "negative finding") and when enough evidence has been gathered to synthesize an answer.
  5. EAR-RL (Evidence-Attributed Reward for Reinforcement Learning):
  6. To teach the model when to call each action, EAR-RL first generates successful self-distilled trajectories and labels each retrieved "evidence piece" by its relevance to the answer (irrelevant, weakly relevant, helpful, or critical).
  7. It then runs dependency-preserving counterfactual replay—essentially asking, "If we removed action $a_t$ (while keeping its prerequisites), how much evidence utility would we lose?"—to compute Shapley-style marginal credit for every single action.
  8. This action credit is combined with a small step penalty and the final answer's correctness to form a dense, call-level reward. The action policy and the final synthesis module are then jointly updated.
CareHarness online clinical reasoning and offline EAR-RL training

Datasets

  • MedMemoryBench: The primary evaluation suite, using a shared 200-question clean test set across six longitudinal tasks (including exact recall, temporal localization, multiple-choice, and multi-hop clinical deduction), plus a noisy-history variant to test robustness.
  • MedLoCoMo: Used as a zero-shot transfer benchmark (282 questions from two patients) to test whether the learned policy generalizes beyond its training benchmark.

Key Insights and Ideas

  • Structure beats raw context: Simply dumping a structured patient state into a generic tool loop isn't enough. Controlled ablations show that adding the clinician-inspired action set and the governing handbook each provide large, complementary jumps in performance.
  • Dense evidence credit works without SFT: On gemma3-12b-it, standalone EAR-RL actually outperformed Supervised Fine-Tuning + EAR-RL, showing that evidence-attributed rewards alone can teach effective investigation behavior without supervised initialization.
  • Over-cautiousness on open-ended inference: The strict evidence-sufficiency rules in the handbook help accuracy on factual and temporal tasks, but can be overly conservative on open-ended inference tasks (like IG), where the model hesitates to synthesize.

Key Results

Evaluated across three backbones (Qwen3-8B, gemma3-12b-it, and Llama-3.1-8B-Instruct) against 15 external baselines:

  • Top Overall Performance: The best EAR-RL CareHarness variant ranked #1 on every backbone, outperforming the strongest backbone-matched external baseline by 4.6 to 6.6 Macro points (e.g., 50.8 vs. A-Mem's 44.2 on Qwen3-8B; 45.1 vs. Embedding's 40.5 on gemma3-12b-it; 44.4 vs. Embedding's 38.4 on Llama-3.1-8B-Instruct).
  • Component Ablations: On Qwen3-8B, the full native harness ($\mathcal{S}+\mathcal{A}+\mathcal{K}$) scored 42.83 Macro, beating the handbook-free version (36.11), generic tool controller (30.95), and raw dialogue window (30.57).
  • Robustness & Transfer: On Qwen3-8B, EAR-RL beat Native CareHarness by +5.58 points on noisy histories (45.57 vs. 39.99) and transferred to MedLoCoMo with a +5.85 point gain (50.89 vs. 45.04).
Controlled reasoning-harness comparison on Qwen3-8B

Limitations and Future Work

  • Multi-hop clinical deduction (MCD) remains unsolved: Every single evaluated system—baselines and CareHarness alike—scored below 13 out of 100 on MCD. Composing multiple temporally separated facts into a new clinical conclusion likely requires explicit supervision over full reasoning chains, not just evidence-level credit.
  • Evaluation & Scope: Several MedMemoryBench tasks rely on an automatic LLM Judge, which can be sensitive to rubric design. Future work should incorporate clinician review, task-adaptive handoff rules (to avoid being overly conservative on open-ended inference), and broader medical specialties and languages.

Summary updated

BibTeX
@misc{sheng2026careharness,
  author = {Rui Sheng and Yangliduo Lai and Yanjie Zhang and Wenshuo Zhang and Zixin Chen and Yanna Lin and Chuhan Shi and Yushi Sun},
  title = {{CareHarness: A Biopsychosocial Clinical Reasoning Harness for Longitudinal Healthcare Agents}},
  year = {2026},
  eprint = {2612.03330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03330},
}
Figure