Manuscript Offprint
arXiv:2610.18298Output Discipline Sets the Floor: A Falsification-Guided, Model-Agnostic Agent Protocol for Auditable Hypothesis-Driven Decision Making
Abstract
On auditable, hypothesis-driven decision tasks—where a candidate hypothesis space can be enumerated and every candidate checked against the evidence—what actually binds the performance of large language models? On the public TCMEval-SDT benchmark for Traditional Chinese Medicine syndrome differentiation (200 cases, up to three repetitions per configuration, paired tests), we find that the binding constraint is output discipline and reasoning structure, not model capability alone: two years of model scaling and generation turnover move zero-shot scores by only — , while output-discipline failures—non-terminating reasoning chains, format non-compliance, run-to-run spread spanning up to 0.39 of the score range—persist even in frontier models. We test this hypothesis with a model-agnostic agent framework that formalizes decision making as a five-stage closed loop—hypothesis generation, verification, causal analysis, action, and feedback—enforced by a candidate × evidence matrix falsification protocol: every candidate is judged against every evidence item (support / oppose / irrelevant), at least half of the candidates must be falsified before a conclusion is licensed, and the surviving most-supported candidates are emitted in a machine-verifiable single-line format. Same-model controlled comparisons across five base models show the protocol’s effect is sign-conditional on zero-shot output discipline: it rescues models whose discipline fails (DeepSeek-V4-Flash: , decomposing entirely into termination rescue and robust on budget-certified rescue subsets ( to across certification variants; Appendix F)), reduces the run-to-run standard deviation of a high-variance model by an order of magnitude (Kimi K3: on syndrome), and significantly costs already-disciplined models ( to on budget-matched, temperature-controlled Qwen3-4B/32B). Format-only ablations attribute the cost to the candidate-bounded format layer and reveal a sign-flipping complementarity between the causal chain and the format layer; knowledge ablations show the protocol’s measured effect is independent of the injected knowledge content—a protocol-knowledge decoupling that supports the framework’s knowledge-as-revisable-data design. A two-stage adaptation transfers the protocol to misinformation-robust mathematical reasoning, detecting injected false premises at 89.8% recall with a 6.8% false-positive rate—against 100% for a flag-everything baseline (Matthews correlation coefficient 0.54 vs. 0)—and restoring accuracy to the no-misinformation ceiling on a comparatively robust model with a small degradation headroom (0.039). Where zero-shot output discipline is weak, the reasoning protocol sets the floor; base-model capability always sets the ceiling.
Keywords
agent ; constrained generation ; hypothesis testing ; falsification ; causal reasoning ; output discipline ; hypothesis-driven decision making ; Traditional Chinese Medicine ; syndrome differentiation
Large language models (LLMs) have shown promise on such tasks, yet applying them exposes four persistent deficiencies. First, association-style direct mapping: given task inputs, models tend to jump directly to a conclusion by reproducing co-occurrence patterns from training corpora, rather than performing stepwise causal derivation—the shortcut-learning pathology documented from deep networks generally [2] to LLMs specifically [3]. Second, absence of falsification: models neither propose a candidate hypothesis space nor verify each candidate against the evidence; conclusions are produced in a single pass and cannot be checked, reproduced, or audited, and left to critique itself a model does not fix this—intrinsic self-correction without external feedback fails to improve and can even degrade reasoning [4, 5]. Without candidate-level verification the reasoning chain itself is also exposed to manipulation—injected false premises propagate along the chain and degrade conclusions even when the model internally possesses the correct knowledge [6]. The sharpest form of this observation is that the knowledge is present and the instruction is present, yet correction still fails: explicit correction instructions succeed in fewer than half of cases [6]—what is missing is neither knowledge nor willingness but an enforced verification structure. Third, safety and reliability risks: hallucinated entities, quantities, and even dangerous recommendations pass without any hard verification—hallucination is a documented, detectable failure mode of LLM generation [7], not a hypothetical concern. Fourth, deployment tension: cloud models raise data-privacy concerns, while on-premises models preserve privacy but inherit every deficiency above.
Existing work addresses these issues partially. Retrieval-augmented generation (RAG) grounds answers in knowledge bases but leaves the reasoning path free-form. Multi-agent medical systems distribute roles across agents but constrain the dialogue process rather than the reasoning path itself, at multiplied inference cost. Chain-of-thought prompting elicits reasoning text but offers no machine-verifiable checkpoint of correctness.
A striking empirical pattern motivates this paper. On the benchmark we adopt, two years of model scaling and generation turnover move zero-shot scores by only (Section 6.2), while output-discipline failures—non-terminating reasoning chains, format non-compliance, and run-to-run spread spanning up to 0.39 of the score range (operationalized in Table 4)—remain rampant even in frontier models (Section 5). We therefore hypothesize that on such tasks the binding constraint is output discipline and reasoning structure, not model capability alone. The hypothesis is falsifiable and sign-conditional: a constrained-reasoning protocol should help exactly where output discipline is missing, and it should add pure, measurable overhead where discipline is already internalized. Testing it requires an instrument that enforces reasoning structure on an arbitrary base model without parameter updates; we build one.
The instrument is a model-agnostic agent framework that formalizes the epistemic loop above as a data-processing protocol and enforces it on the model's output. Its core is a candidate × evidence matrix falsification protocol: every candidate is judged against every evidence item (support / oppose / irrelevant), at least half of the candidates must be falsified before a conclusion is licensed, and the surviving most-supported candidates are emitted in a machine-verifiable single-line format. Knowledge is externalized as declarative, domain-expert-revisable data and injected under the protocol's control—what knowledge is available at each stage is determined by a lifecycle state machine and information-sufficiency scoring—so knowledge serves the protocol rather than the model's free association, and knowledge correction is decoupled from both model weights and control flow.
We instantiate and evaluate the framework on TCM syndrome differentiation. This choice is deliberate rather than incidental. First, TCM differentiation is one of the few natural tasks that compels all three classical inference modes within a single decision loop [8]: abduction (from four-examination signs to candidate syndromes), deduction (from a syndrome to its treatment principle and prescription), and induction (from case statistics to the differential clues of the data anchor). Second, its philosophical framework (yin-yang, five phases) acts as a built-in prior that constrains rather than replaces inference—a natural ally of protocol-constrained reasoning, since the domain itself already formalizes inference as constrained derivation under a world model. Third, abduction is the least mature inference mode in current AI: models that perform well on deduction still struggle with abduction [9], so a quantified, sign-conditional account on an abduction-dense, philosophy-constrained domain is stronger evidence of how protocol constraints interact with model discipline than a uniform gain on a deduction-dense one.
Both predictions of the hypothesis are confirmed (Section 5): the protocol rescues models whose zero-shot output discipline fails, stabilizes a high-variance model, and measurably costs already-disciplined models. Our contributions are:
-
A quantified boundary condition for constrained reasoning, established as controlled evidence. Same-model comparisons across five base models—three repetitions, paired Wilcoxon tests with bootstrap confidence intervals, and explicit evaluation hygiene (Section 4.3)—show that the protocol’s gain is sign-conditional on the base model’s zero-shot output discipline: large significant gains where discipline fails (DeepSeek-V4-Flash +0.267/+0.271, robust under post-hoc budget neutralization on the certified rescue subset), an order-of-magnitude reduction in run-to-run standard deviation for a high-variance model (Kimi K3: 0.218 → 0.007), and significant costs where discipline is already internalized (-0.087/-0.112 on Qwen3-32B; -0.116/-0.120 on budget-matched Qwen3-4B).
-
The instrument: a model-agnostic agent framework for auditable decision making. A five-stage causal-chain closed loop (hypothesis generation → verification → causal analysis → action → feedback verification) instantiated for TCM syndrome differentiation, enforced by a candidate × four-examination evidence matrix falsification protocol—three-state (support/oppose/irrelevant) cell judgments, row-level aggregation, a “no fewer than half incompatible” sufficiency rule, and a most-supported selection with a single-line structured conclusion—turning differentiation from one-shot association into a reviewable hypothesis test.
-
Mechanistic attribution of the gains and costs. A rescue/terminating decomposition shows that the full-set gains on non-terminating models are entirely termination rescue, at a small significant cost on reliably terminating cases; format-only ablations identify the candidate-bounded format as the sign-conditional layer and reveal a sign-flipping complementarity between the causal chain and the format layer.
-
Evidence of protocol-knowledge decoupling. Removing all injected skill knowledge leaves benchmark scores unchanged while raising hit rate, showing that the protocol’s measured effect is carried by structure rather than by knowledge content; a specialty-tuned knowledge file is further shown to contaminate broad-domain cases, validating specialty-bound knowledge routing.
-
Cross-domain transfer, operationalized rather than asserted. A two-stage adaptation of the same protocol detects injected false premises in mathematical reasoning at 89.8% recall with a 6.8% false-positive rate and restores accuracy to the no-misinformation ceiling on a public external testbed—on a single, comparatively robust model with a small degradation headroom (0.039), so the ceiling result is a proof of capability rather than a robustness guarantee. Persuasion and belief-updating theories developed for human subjects—inoculation theory, the continued influence effect, and belief-revision theory—are used as interpretive lenses for the protocol, each inherited in weakened, computable form and each offering a consistent interpretation of its behavior rather than an independently testable prediction (Sections 2 and 6). We state the novelty of this instantiation as a scoped claim rather than a priority claim: the LLM–cognitive-science intersection is moving fast, and existing LLM–misinformation work we are aware of uses such theories to inoculate humans or to evaluate model vulnerability.
The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 presents the framework. Section 4 describes the experimental setup. Section 5 reports results. Section 6 discusses findings and limitations, and Section 7 concludes.
2 Related Work
2.1 Constrained, verified, and safe generation
Chain-of-thought (CoT) prompting [10], self-consistency [11], and verification-guided decoding improve reasoning reliability but lack domain-specific falsification structure: no candidate space, no evidence matrix, no sufficiency criterion. Retrieval-augmented generation (RAG) [12] grounds generation in retrieved documents and mitigates hallucination, but retrieval returns associationally similar text and the downstream reasoning remains unconstrained; neuro-symbolic and GraphRAG-style frameworks applied to TCM knowledge retrieval [13] constrain the knowledge source but likewise leave the reasoning path free. Our framework uses retrieval differently: for knowledge queries it bypasses generation entirely (direct original-text answers), while for decision tasks it injects declarative knowledge as constraints rather than as answer sources; and our matrix protocol adds a structured hypothesis-testing layer on top of these general techniques.
A complementary line of work treats reasoning itself as a security object. Recent work defines reasoning safety along logical consistency, computational efficiency, and manipulation resistance, and proposes runtime monitors that inspect each reasoning step and interrupt unsafe trajectories [14]. This “detect-and-interrupt” paradigm is complementary to ours: monitors discover bad reasoning post hoc and halt it, at the price of an additional model in the loop and non-trivial false-positive rates, whereas our protocol constrains generation at source—deterministically, without an auxiliary model—at the price of requiring tasks that can be structured into a candidate × evidence form. Our audit logs (per-cell judgments, protocol-compliance scores) provide the white-box evidence that monitor-based approaches can only approximate.
2.2 Agentic and multi-agent medical systems
ReAct-style agents interleave reasoning and acting within a single loop [15], but the reasoning remains a free-form scratchpad without verifiable checkpoints. Beyond this single-agent paradigm, LLM-based agents have been explored for decision making along three lines. Multi-agent collaboration instantiates multi-disciplinary consultation as inter-agent dialogue: MedAgents [16] organizes expert recruitment, iterative discussion, and consensus formation for zero-shot medical reasoning, and MDAgents [17] adaptively routes queries to a solo agent, a multi-disciplinary team, or an integrated care team according to estimated complexity. Environment simulation builds hospital-scale simulacra in which doctor agents evolve through practice (Agent Hospital [18]) or serves as interactive clinical evaluation environments (AgentClinic [19]). Task-oriented TCM agents are closest to our setting: JingFang [20] decomposes TCM consultation into inquiry, syndrome-differentiation, and treatment agents with dual-stage formula retrieval; TCM-Agent [21] orchestrates multiple agents for network-pharmacology-driven herbal research; and CORE-Acu [22] couples structured chain-of-thought with a safety knowledge graph whose symbolic veto mechanism blocks contraindicated acupuncture decisions.
These systems constrain the dialogue process or the tool layer, but none enforces a verifiable reasoning protocol within a single reasoning instance: conclusions emerge from agent dialogue or role orchestration rather than from a machine-checkable hypothesis-testing procedure, and multi-role dialogue multiplies inference cost. Our mechanism executes the full abduction–verification–deduction–action–feedback closed loop inside a single model instance with machine-checkable protocols, keeping inference cheap and auditable.
2.3 Reasoning robustness under information contamination
Beyond ordinary errors, LLM reasoning is vulnerable to contaminated inputs. Misinformation is one form of a broader threat: the manipulation of the reasoning process itself—of which injected false premises, persuasive pressure, and contaminated evidence are all instances. We frame the problem at this level of generality and evaluate on its best-documented instance. Prior work shows that misinformation propagates along reasoning chains: even when models possess correct internal knowledge, injected false premises reduce knowledgeable accuracy by 10–72% [6], and explicit correction instructions succeed in fewer than half of cases. Reasoning post-training (thinking models) does not eradicate the vulnerability, which is traced to the instruction-tuning stage rather than to reasoning capacity itself; the proposed remedy—fine-tuning on early factual correction—is training-time and model-bound [6]. The same mechanism analysis shows that correction is most effective when applied early in the reasoning trajectory, before the contaminated premise propagates downstream [6]; this is precisely the ordering our two-stage design enforces at inference time—the verification stage (candidate × evidence matrix) always precedes the causal-analysis stage (Section 3), so premises are checked before any derivation builds on them.
The failure pattern is not machine-specific: in human reasoning, misinformation continues to shape inference even after recipients explicitly accept a correction—the continued influence effect [23, 24], traced to memory failure [25]. On the machine side, reasoning-optimized models resist majority pressure in social-influence simulations (conformity 3.13% vs. up to 19.45%) [26], and enabling thinking mode reduces persuasion rates in multi-agent persuasion experiments [27]. Yet such protection is bound to training, offers no auditability, and does not distinguish right from wrong: the thinking-mode benefit is documented precisely when the initial answer was already correct [27], so on initially wrong answers internalized resistance entrenches error rather than preventing it.
Our falsification protocol is an externally enforced, evidence-checking structure of this kind: a candidate survives only when supporting evidence outnumbers opposing evidence, and the re-examination loop re-opens the decision whenever falsification falls short. As an inference-time, training-free layer it complements training-time corrections and transfers across models; and because resistance comes from evidence checking rather than stance retention, it yields correctable insistence, avoiding the error-entrenchment failure mode of stance-based defenses [26, 27]. Direct evaluation under adversarial premise injection is reported in Section 5.6: the mechanism transfers as a two-stage adaptation—the candidate space becomes the premise equations, the evidence columns become numeric/relation/self-consistency checks, and falsified premises are rewritten reminder-style before derivation—rather than as a verbatim reuse of the clinical pipeline.
Two persuasion-theoretic lenses inform the design and its boundary condition. Inoculation theory [28] confers resistance through forewarning plus refutational preemption of weakened attacks (established meta-analytically [29]), and technique-based prebunking transfers across contents when what is neutralized is a fallacy type rather than a topic [30–33]; requiring refutation practice on every candidate before any conclusion is licensed is enforced refutational preemption. The Elaboration Likelihood Model [34] distinguishes central-route scrutiny from peripheral, cue-driven processing, and zero-shot LLM reasoning is biased toward the peripheral route [35]; under this lens the matrix protocol is an elaboration enforcer, consistent with the output-discipline boundary condition of Section 5.1. As far as our literature coverage extends, existing LLM-misinformation work treats models as generators of prebunking material or as targets whose vulnerability is measured; neither treats the model's own reasoning protocol as the carrier of an inoculation structure. Section 6 develops both mappings.
2.4 LLMs and benchmarks for TCM
Several benchmarks evaluate TCM capabilities of LLMs. TCMBench offers knowledge-centric question answering built on the TCM licensing examination, and reports that no evaluated model—including GPT-4—reaches the 60% passing line [36]. TCM-SD evaluates syndrome derivation from case analysis over 54,152 real-world clinical records covering 148 syndromes [37]. MTCMB [38] extends evaluation to a multi-task setting spanning knowledge, reasoning, and safety, including diagnosis sub-tasks on syndrome differentiation and prescription recommendation. TCMEval-SDT [39] is, to our knowledge, the first benchmark targeting the thought process of syndrome differentiation, providing 300 expert-annotated cases with multi-select options for pathogenesis and syndrome, and zero-shot scores for ChatGPT, Gemini 1.5 Pro, ChatGLM-130B, and Tongyi Qianwen. We adopt TCMEval-SDT and its official scoring script for comparability.
On the model side, domain-adapted Chinese medical and TCM LLMs improve domain knowledge via continued pre-training and fine-tuning: Zhongjing [40] combines a real multi-turn dialogue corpus with reinforcement learning from human feedback (RLHF) over expert-ranked outputs; HuatuoGPT-II [41] proposes a single-stage domain-adaptation protocol; and TCM-oriented models such as TCMChat, BianCang, and Qibo [42–44] target syndrome differentiation, formula recommendation, and knowledge QA respectively. Their reasoning, however, remains a single-pass free-form generation that cannot be audited or falsified step by step. Our framework is orthogonal to these efforts: it wraps an arbitrary base model—without any parameter updates—in a verifiable reasoning protocol. Consistently, our experiments show that TCM post-training changes behavior little relative to the base model ( ), while the protocol's cost replicates on the post-trained variant ( )—i.e., training-time knowledge injection and inference-time protocol constraints address different bottlenecks.
3 The Framework
3.1 Overview: a five-stage causal-chain closed loop
The framework formalizes differentiation as a closed loop of five stages:
-
Hypothesis generation (abduction). Given patient evidence, a candidate syndrome space is constructed from (i) candidates provided by the user or upstream reasoning (marker-delimited), (ii) specialty skill routing, and (iii) knowledge-base syndrome retrieval. A scope constraint restricts all subsequent conclusions to this space.
-
Hypothesis verification (evidence matrix). For each candidate, authoritative diagnostic standards (chief/accompanying symptoms, tongue, pulse, treatment principle) are extracted from declarative knowledge files—with alias mapping that unifies synonymous syndrome names (e.g., “phlegm-heat harassing the heart” and “phlegm-heat internal disturbance”) and a per-syndrome length cap—and a patient-evidence checklist is built with positive/negative feature rules (longest-match-first, negation-priority), yielding a candidate × evidence matrix.
-
Causal analysis (constrained reasoning chain). The model is required to reason along a forced chain—four-examination analysis → eight principles → disease nature → disease location → syndrome synthesis—explicitly forbidden to jump from a single sign to a syndrome.
-
Action. The treatment principle is derived over the TCM logic system; formula names, herbs, doses, and acupoints must come from knowledge-base originals and are verified via structured tool calls.
-
Feedback verification. Prescriptions pass hard safety checks (incompatibility, pregnancy, toxicity dosage); diagnosis consistency across turns is enforced via conclusion caching and drift detection; reasoning quality is scored for audit.
Figure 1 shows the four-layer system architecture; Figure 2 shows the end-to-end processing pipeline.
3.2 Candidate × evidence matrix falsification protocol
The protocol, the core of this work, constrains the model’s conclusion process as follows:
• Matrix construction. Rows are candidate syndromes; columns are the patient’s four-examination evidence items.
• Cell judgment. Each cell is judged support, oppose, or irrelevant, justified by the injected diagnostic standards.
• Row aggregation. A candidate is compatible iff supporting evidence outnumbers opposing evidence and key evidence is supported; otherwise it is incompatible.
• Sufficiency rule (falsification). The number of incompatible candidates must be at least half of the candidate space; otherwise differentiation is deemed insufficient and evidence must be re-examined.
• Selection and output. The final conclusion is the compatible candidate with the most supporting evidence (or several, in multi-answer settings), emitted on a single line in a fixed marker format ([Final Syndrome]: X)—machine-extractable and checkable.
• Prohibitions. Choosing by candidate order and copying example conclusions are explicitly banned.
• Explicit refutation. An opposed cell judgment must name the contradicting evidence (e.g., “opposed by E3”). Silent elimination of a candidate is discouraged: memory-updating research shows that corrections which explicitly re-state the discredited item—co-activating it with the conflicting evidence—update beliefs more effectively than corrections that only supply the correct answer [45], and the logged evidence pointer makes each falsification auditable.
Every cell judgment can be cross-checked against the evidence checklist and diagnostic standards, making the reasoning white-box and auditable. Figure 3 illustrates the protocol on a worked three-candidate example. Formal readings of the protocol are collected in G: a belief-revision (AGM) reading of the aggregation, contraction, and consistency rules; the proof of Proposition 1 with its caveats.
• Statistical reading: sequential multi-hypothesis testing
Treat the candidate set as competing hypotheses and each evidence item as an observation; the cell function is a per-hypothesis score. Define the row statistic
with compatibility declared iff and at least one key evidence item satisfies . The deployed protocol uses uniform weights : the model counts supporting against opposing items, and the key-evidence requirement enters as a separate hard gate rather than as a large weight. The “at least half falsified” rule is then a sufficiency stopping criterion: with the falsified set containing both score-incompatible and key-evidence-failed candidates, inference is licensed only once the condition of Eq. (2) holds
Under a mutually exclusive syndromes, conditionally independent evidence model, each falsified candidate transfers posterior probability to the survivors, so the posterior concentration on the remaining hypothesis set increases monotonically in the number of eliminated candidates. The following proposition makes the intuition “more evidence, more reliable conclusions” a theorem rather than a slogan.
Proposition 1 (Evidence-accumulation bound). Assume (i) the true syndrome is present; (ii) cell judgments are conditionally independent given ; (iii) each cell judgment is correct with probability at least , , where correctness is judged against the ground-truth cell value , and errors are sign-symmetric in the sense that ; (iv) key-evidence requirements hold; and (v) for every spurious candidate , all evidence items weakly favor the true candidate for all ), with at least of them strictly discriminating . Then the probability that the protocol's selection rule returns is bounded below by
a Hoeffding-type bound [46]. In the special case of perfect discrimination on every item ( for all ), Eq. (3) reduces to , non-trivial once exceeds .
• Information-theoretic and decision-theoretic readings of the one-half threshold
Why one half? Two readings illuminate the deployed choice, and we state upfront what neither does: uniquely select the threshold. (i) An information reading gives the symmetric point a label—under a uniform prior, falsifying half the candidates removes exactly one bit of hypothesis-space uncertainty (Eq. (4))—but the marginal information of the -th falsification, , increases with , so the same calculus pushes toward stopping as late as possible: a landmark, not an optimum. (ii) A decision-theoretic reading defines the conclusion confidence (Eq. (5)): raising the required monotonically shrinks both the licensed output set and the selection error, a trade that holds for any threshold and therefore cannot single out one half, but that makes a per-case, matrix-computable confidence score—the same budget logic as uncertainty sampling in active learning [47, 48], applied at inference time. What selects the operating point is therefore empirical: the ablation of Section 5.5 (Table 10), which shows the deployed one half is not the winner and that the profitable direction is stricter falsification. At the far edge, when falsification drives toward , the conclusion set may empty, so the protocol’s

Fig. 1 Four-layer architecture. The epistemic layer defines the hypothesis–verification–causal-analysis–action loop; the TCM process layer carries the differentiation workflow, closing the loop through the validation-feedback stage; the model layer (LLM-1/LLM-2/ML/RAG) executes it; the data layer holds syndrome–sign mappings, reasoning data, case mappings, and safety rules. Within the process layer, verification takes the form of targeted questioning over typical sign–syndrome data, and causal analysis proceeds over the five-phase self-consistent system.
re-examination loop, not further elimination, is the correct response, and C should be read jointly with the size of the surviving set.
3.3 Knowledge assets and dual-anchor injection
All medical knowledge lives outside the code as data, in three forms. Case database. A local SQLite database (tcm.db) holds 8,147 case records with question/chain-of-thought/response/syndrome/formula fields, aggregated from 5,903 TCM question–answer pairs, 738 acupuncture case records from a renowned physician's lectures, and 1,506 licensed-physician examination questions. The database additionally contains 58 structured classical formulas, 23 incompatibility pairs (the eighteen incompatibilities and nineteen mutual antagonisms canon enforced at prescription time, plus one extended pair), and 17 pregnancy-contraindication entries (14 banned and 3 caution-level herbs). A Chinese-bigram FTS5 full-text index supports the retrieval cascade of A. Distilled mapping datasets. From 1,103 TCM question–answer pairs we distilled syndrome→sign, formula-symptom→syndrome, and prescription mappings. A separate coded dataset of 539 insomnia cases with tongue-sign inputs serves as the specialty pilot from which the data-driven differential clues below are distilled; other specialties follow the same procedure. Declarative skill files. Textbook standards (chiefly TCM Diagnostics [49]) and the above datasets are refined into 23 Markdown skill files organized into six specialty skills (basic diagnosis, insomnia, hypertension, gynecology, pediatrics, acupuncture). Skills are routed by specialty priority and injected per lifecycle stage, so physicians can revise knowledge without touching code.
At differentiation time, two complementary anchors are injected alongside the forced causal chain. Theory anchor (methodological rules). Key decision rules distilled from textbooks, e.g., a thick coating alone cannot exclude deficiency syndromes; the absence of a greasy coating alone cannot exclude phlegm-heat; a pale-red tongue alone cannot exclude liver-fire or phlegm-heat; a pale-purple tongue alone does not diagnose blood stasis; and a symptom-priority principle when signs conflict. Data anchor (statistical clues). Conditional probabilities distilled from the 539-case specialty dataset, e.g., among white-coating samples about 47% are phlegm-heat harassing the heart; teeth-marked tongues occur in 72% of heart-gallbladder qi deficiency

Fig. 2 End-to-end processing pipeline (S1–S9) with anti-deadlock questioning guards, the insufficiency re-examination loop after matrix falsification, and prescription-violation interception.
and 54% of heart–spleen deficiency cases; greasy coating in 66% of phlegm-heat cases. Syndrome prior distributions and explicit data-bias warnings are injected together, so that when textbook theory and sample statistics conflict the model still has a decision basis. H gives a Bayesian reading of the two anchors: the data anchor supplies posterior fragments rather than likelihoods, the theory anchor acts as a constraint set rather than a prior, and naive-Bayes pooling links both to the matrix score of Section 3.2.
Injection budgets scale with model size: 12,000–18,000 characters for 4B models and 28,000–32,000 characters for 32B models. The model runs with thinking (reasoning) mode enabled, and reasoning blocks are stored separately from final answers for audit.
3.4 Intent triage, information sufficiency, and active questioning
Incoming input first passes a two-level intent triage (a rule decision tree, then a two-token model classification into consultation / closing / off-topic), so that knowledge queries never enter the differentiation pipeline. Knowledge queries are served by a three-level retrieval cascade over the case database, and the top record's answer text is returned verbatim from the database without generation—zero hallucination, at millisecond latency; only when retrieval fails does the model answer within a restricted budget, still outside the differentiation pipeline. A details the triage rules, the cascade, the scoring rule, and a worked example.
Each consultation turn is scored for information sufficiency over the evidence categories collected so far (tongue signs, chief symptoms, pulse/course); reaching the sufficiency threshold advances directly candidate × four-exam evidence matrix (mandatory output)

prohibitions: no default pick by candidate order · no copying example conclusions · no fabricated formulas / herbs / doses
Fig. 3 The candidate × four-examination evidence matrix falsification protocol on a worked example. Three knowledge inputs build the matrix; row-level aggregation yields compatibility verdicts; the sufficiency check requires at least half of the candidates to be incompatible, otherwise evidence is re-examined; the most-supported compatible candidate is emitted in the single-line protocol format.
to differentiation, and below threshold the agent names the missing dimensions and asks targeted follow-up questions. Anti-deadlock guards truncate repeated question-only outputs and honor explicit user stop signals, preventing infinite questioning. Session-level completeness is estimated as the coverage of chief complaint, symptoms, tongue, and pulse, and gates the COLLECT-exit transition of Section 3.5. D develops the information-theoretic reading of this rule—a greedy information-gain policy in disguise—together with its upgrade path.
3.5 Lifecycle state machine and safety invariants
The consultation is modeled as a finite state machine with nine states: INIT, COLLECT, DIAGNOSE, PLAN, PRESCRIBE, REVIEW, FOLLOWUP, COMPLETED, and ABORTED. Transitions carry preconditions (symptom completeness 0.6 to leave COLLECT; diagnosis confidence 0.7 to leave DIAGNOSE); advancement decisions fuse token-level and semantic confidence with weights 0.3/0.7, with a turn-count fallback; illegal transitions are rejected outright and timeout guards prevent stalls. Table 1 maps the method stages onto lifecycle states.
The nine-state machine is, formally, a finite automaton whose transition preconditions are guards, and this affords the framework a specification language rather than only an implementation. Illegal-transition rejection is a safety invariant: in linear temporal logic [50], the deployed checks enforce
where □ is “globally”, ○ “next”, ◇ “eventually”, and forced marks the forced-advance paths of Section 3.4 (turn-count fallback, deadlock truncation, timeout guards). The first invariant requires every PRESCRIBE to be eventually followed by a REVIEW or an abort, aligned with the PLAN→PRESCRIBE→REVIEW order of Table 1; the second is the COLLECT-exit precondition restricted to non-forced trajectories (stop-signal advancement needs no exclusion because it first raises completeness to the threshold). Both are enforced at runtime by construction and are checkable post hoc on any logged trajectory, which is what makes the audit layer (Section 5.8) a verification step rather than a log dump. Because the automaton is finite and the guards are decidable predicates, these properties are in principle model-checkable over the implementation’s transition graph; we leave mechanized model checking to future work.
3.6 Consistency, feedback, recovery, and runtime robustness
Consistency. Confirmed syndromes are cached; a follow-up turn (shorter than 50 characters and carrying no new
Table 1 Mapping between method stages and lifecycle states.
| Method stage | Lifecycle state(s) |
|---|---|
| Intent triage, direct retrieval | outside the machine |
| Information collection, sufficiency | COLLECT |
| Hypothesis & evidence construction | DIAGNOSE (prompt injection) |
| Matrix falsification & output | DIAGNOSE (output protocol) |
| Causal-chain reasoning | DIAGNOSE (reasoning) |
| Action: plan, prescribe, review | PLAN → PRESCRIBE → REVIEW |
| Feedback & consistency | FOLLOWUP → COMPLETED |
| Runtime protection & audit | cross-cutting |
| Hard violations, fatal signals | ABORTED |
tongue/coating/pulse/symptom/course terms) triggers a full prompt rewrite—"syndrome X is confirmed; explain its rationale and differentiate it from the syndromes the user mentioned; do not re-diagnose"—rather than a fresh differentiation, keeping conclusions stable across turns. Within a turn, multiple distinct syndrome conclusions trigger drift detection, and the last conclusion stands. Reasoning blocks are scored over six dimensions (four-examination flow, eight-principle differentiation, tongue diagnosis, pulse diagnosis, candidate comparison, TCM terminology; score = hit classes/6) and logged for audit. Under stationary inputs the cache keeps the conclusion fixed; a genuine change of conclusion requires new evidence that pushes re-diagnosis across a decision boundary, and under the matrix protocol this evolution is monotone in the accumulated evidence—adding evidence refines the same logged matrix rather than restarting it.
Feedback and recovery. Runtime signals (tool failures, safety violations, etc.) are graded into four severities—info, warning, severe, fatal—mapped to six responses (ignore, warn, adjust, pause, roll back, abort). Hard-constraint signals are handled synchronously (target latency 50 ms), and fatal signals drive the state machine into ABORTED. Snapshots are saved automatically on every state change (SHA-256 integrity, last 10 versions retained); failures follow a three-level policy—automatic retry within 5 s, rollback to the latest safe snapshot within 30 s, or manual intervention.
Runtime robustness. Four cross-cutting subsystems keep long consultations stable on small models: layered context budgeting across permanent/session/task windows; streaming guardrails (hard token caps, repetition-loop and language-mixing detection); five-dimension health monitoring; and trajectory logging with privacy de-identification. C details the budgets and detection rules.
3.7 Prescription safety hard constraints
Before any prescription is emitted, layered mandatory checks run: set-intersection detection over the eighteen incompatibilities (14 pairs) and nineteen mutual antagonisms (8 pairs); pharmacopoeia dose ceilings for 15 toxic herbs [51]; 14 pregnancy-banned herbs when the patient is pregnant; human-review flags for children under 14 and adults over 70; and outright refusal of non-TCM operations such as prescribing Western medication or recommending surgery. Violating prescriptions are intercepted and regenerated, never silently patched. During plan and prescription generation the model may invoke nine structured tools through seven textual markers; every call passes a four-stage audited pipeline (pre-call audit; sandboxed execution with timeout and retries; post-call output validation; audit logging), detailed in B.
3.8 Model-agnostic adapter and deployment
A unified adapter (local Transformers / vLLM cluster / OpenAI-compatible APIs / mock) decouples the mechanism from any specific model, with automatic device detection, thinking/reasoning separation, logprob confidence, and parameter auto-scaling of knowledge-injection budgets across model sizes.
4 Experiments
4.1 Dataset
We evaluate on TCMEval-SDT [39] (CC-BY 4.0), the public benchmark for TCM syndrome-differentiation reasoning. It contains 300 expert-annotated cases; only the 200-case training split includes gold answers (multi-select among 10 options A–J for both pathogenesis and syndrome), and is therefore used for evaluation. Gold syndrome sets contain 1–4 items and pathogenesis sets 1–6 items.
4.2 Evaluation protocol
Options are injected as single-quoted candidate markers into the agent input, triggering the matrix protocol; textual conclusions are extracted and mapped back to option letters. We report: the official-script score (the benchmark's score_proportional: per case, averaged); hit rate (fraction of cases with non-empty prediction gold); exact match; and macro-F1 (Tables 2 and 3).
• Component activation under the benchmark pathway
We state explicitly which framework components the benchmark exercises, since candidate injection bypasses parts of the loop. Activated and measured: declarative knowledge injection and skill routing (Section 3.3), the forced causal-chain constraint (Section 3), the matrix falsification protocol with its sufficiency rule, and the single-line output protocol. Bypassed by design: abductive candidate construction (the benchmark supplies the candidate set—a deliberate isolation of the verification stage); active questioning and sufficiency scoring (inputs are complete case narratives, single-turn); the action-stage tool layer and prescription safety checks (the benchmark tasks end at differentiation, before prescription); and the multi-turn feedback loop (each case runs in a fresh context). The headline numbers therefore measure the verification and causal-analysis core of the loop, not the full five-stage pipeline. The remaining components are validated elsewhere: active questioning and mechanism execution in the 539-case pilot (Section 5.8), and the safety layer, state machine, tool pipeline, and recovery in the 21-test regression suite (Section 5.8).
4.3 Evaluation hygiene
Three declarations address evaluation-contamination concerns. (i) Knowledge–benchmark overlap. We computed an 8-gram containment check between each of the 200 benchmark cases (Clinical Data + Clinical Information) and every knowledge text the agent can retrieve (8,147 tcm. db question fields and all 31 skill/knowledge Markdown files, 8,178 texts total): the maximum per-case containment is 1.5% (mean 0.1%), i.e., no benchmark case shares substantive text with the knowledge base. (ii) Knowledge-iteration history. All knowledge and skill files were frozen before benchmark contact. The two documented iterations of the differential data table (v0.1→v0.2) and the differential guide (v0.2→v0.3) were driven exclusively by the 539-case insomnia pilot (a private dataset disjoint from the benchmark) and completed before the first benchmark campaign began; post-hoc benchmark failure analyses in this paper were used for interpretation only and were never fed back into knowledge, prompts, or thresholds. Consistently, the ablation evidence runs opposite to any data-snooping hypothesis: the insomnia-tuned guide hurt benchmark performance (Section 5.4)—contamination was detected and reported, not exploited. (iii) Hyperparameters. All protocol thresholds (completeness 0.6, diagnosis confidence 0.7, injection budgets) were fixed at development time and never tuned on the benchmark; the only benchmark-specific adaptations are the disclosed evaluation-mode output protocol (multi-answer [Final Syndrome] format) and the locked base-skill routing.
4.4 Statistical analysis
To separate genuine effects from decoding variance, every configuration that supports sampling is evaluated in three independent repetitions over the same 200 cases per task. We use run and repetition interchangeably, and case-run to denote one (case, repetition) pair. We report run-level mean ± std, and test paired comparisons on per-case scores averaged across repetitions (unit of analysis: the case, n=200) using the two-sided Wilcoxon signed-rank test, complemented by a paired bootstrap 95% confidence interval of the mean difference (10,000 resamples, fixed seed). Raw p-values are reported throughout. For confirmatory interpretation we apply a Bonferroni correction within the same-model mechanism-gain family (5 models × 2 tasks = 10 tests, α=0.005); cross-model comparisons mix repetition counts and configurations, so they are reported descriptively, without p-values.
Two inferential levels. Case-level tests average over repetitions and answer the case-population question, but they can understate uncertainty where run-level variance is material (for K3 zero-shot, run means span 0.245–0.636). We therefore additionally report a conservative run-level check—Welch's t-test over the three run means per side (unit: the run, n=3)—for every three-repetition comparison (Table 5). The two levels answer different questions and we report both; where they disagree we say so explicitly. Run-level inference at n=3 is low-powered by construction, so a non-significant run-level p is weak evidence rather than evidence of absence. Variance-ratio claims are reported with 95% CIs (variance-ratio F-test, df 2,2). We write “n.s.” for non-significant, and reserve “significant” for p below the stated threshold.
4.5 Configurations
• Qwen3-4B / Qwen3-32B [52]: zero-shot direct answering, and with the full framework (local vLLM);
• PT-4B + agent: a TCM post-trained 4B model with the full framework;
• DeepSeek-V4-Flash [53]: zero-shot and with the framework (official API);
• DeepSeek-V4-Pro: zero-shot and with the framework (official API);
• K3 zero-shot / K3 + agent: Kimi K3 (2026 release) [54] without and with the framework.
Paper baselines (Gemini 1.5 Pro ≈0.475 syndrome, ChatGLM-130B ≈0.532 pathogenesis, converted from the paper’s weighted sums to per-case means) are shown for reference; note they are 2023–2024-era zero-shot evaluations on a random 50-case subset.
4.6 Ablation design
Starting from the full agent (G0, Qwen3-4B), we remove one component per group: G1 no matrix-and-format instruction block (the falsification-matrix requirement, the candidate-bounded single-line emission mandate, and the associated prohibitions are one prompt block and are removed jointly; knowledge injection is retained); G2 no evidence checklist/authoritative standards; G3 no differential-diagnosis guide (insomnia-tuned); G4 no skill-knowledge injection at all. Each group is re-evaluated on both tasks (200 cases each, three repetitions). A separate format-only baseline—candidate markers and the mandatory single-line output format, but no matrix and no knowledge injection—separates the format layer from the content layer that G1 removes jointly, and is run on both the budget-matched Qwen3-4B and DeepSeek-V4-Flash. On Qwen3-4B the factorial is completed by two further arms: a no-matrix arm (G5, content + format, no matrix requirement) and a no-format arm (G6, content + matrix, no emission mandate).
4.7 Implementation details
Local/server runs use Qwen3-4B (fp16, thinking enabled, max 2048 new tokens) and Qwen3-32B (vLLM, thinking enabled, max 4096 new tokens), both from unchanged local checkpoints (Qwen3 release of 2025); the DeepSeek runs use the official API. The K3 run uses the Kimi coding API with temperature fixed at 1.0 (the only value K3 accepts). All evaluations resume from checkpoints and log every case's full reasoning for audit. On budget symmetry: zero-shot baselines follow the benchmark paper's protocol at an 8,192-token budget, while agent runs receive the larger budgets the protocol's matrix output requires; the resulting asymmetry means full-set gains contain termination rescue, which is why the truncation-free decomposition of Section 5.1—not the raw full-set contrast—is our primary controlled evidence. To control a temperature confound in the Qwen3-32B comparison (zero-shot at temperature 0 vs. agent at 0.6), the 32B agent was additionally evaluated at temperature 0. For unambiguous cross-reference, every reported number is tied to a named campaign: C1 = initial runs (single repetition, temperature 0.6–0.7, 16,384-token budget, /no_think for flash); C2 = repetition campaign (three repetitions, flash at 32,768 tokens without the trigger; K3/32B at their stated budgets); C3 = budget-matched greedy runs (temperature 0, 8,192-token budget, vLLM; three repetitions for the Qwen3-4B agent and the per-component ablation groups, single repetition for PT-4B, the format-only baselines, and the ablation). E records two engineering notes on generation budgets and API-side behavior across the campaigns, including a silent endpoint upgrade that we detected and excluded from pooling.
• PT-4B training
PT-4B is a TCM post-trained variant of Qwen3-4B. Starting from the unchanged Qwen3-4B base checkpoint, we applied supervised
Table 2 Official-script scores on TCMEval-SDT (our own runs, n=200 per task). Values are mean ± std over 3 repetitions; † marks single runs; ‡ marks single budget-matched greedy runs (8,192-token budget). Paper baselines are 2023–2024-era zero-shot on a 50-case subset, converted to per-case means. Bold values mark per-column maxima; the bold row label marks the protocol configuration.
| Model | Variant | Syndrome | Pathogen. |
|---|---|---|---|
| Qwen3-4B | zero-shot | ||
| Qwen3-4B | + agent | ||
| PT-4B | zero-shot | ||
| PT-4B | + agent | ||
| Qwen3-32B | zero-shot | ||
| Qwen3-32B | + agent | ||
| DeepSeek-V4-Flash | zero-shot | ||
| DeepSeek-V4-Flash | + agent | ||
| DeepSeek-V4-Pro | zero-shot | ||
| DeepSeek-V4-Pro | + agent | ||
| Kimi K3 | zero-shot | ||
| Kimi K3 | + agent | ||
| Paper best baseline |
fine-tuning (SFT) on a self-curated TCM corpus—one subset of which carries chain-of-thought rationales—followed by group relative policy optimization (GRPO) reinforcement post-training, following the recipes of DeepSeekMath [55] and DeepSeek-R1 [56]. A first version (V1) was trained in April 2025; all experiments in this paper use the V2 upgrade checkpoint of 2025-10-09. Post-training data are drawn from our private TCM datasets and are disjoint from the TCMEval-SDT benchmark (Section 4.3).
■ 5 Results
■ 5.1 The boundary condition: protocol gains are sign-conditional on zero-shot output discipline
The cleanest evidence for the mechanism’s contribution is the same-model comparison: a base model zero-shot versus the same model with our agent, where no component of the base model changes—only the reasoning protocol. Table 2 reports official-script scores and hit rates across five base models; Figure 4 visualizes the comparison; Table 4 profiles each model’s zero-shot output discipline; Table 5 reports the paired significance tests.
Four controlled within-model contrasts, each holding model and configuration fixed, establish the boundary condition.
Rescue where discipline fails. On DeepSeek-V4-Flash (DS-Flash)—whose zero-shot output fails to yield an answer on 61.5%/67.0% of cases (Table 4)—the budget-corrected three-repetition campaign yields the largest significant gain: +0.267 on syndrome (95% CI [+0.226, +0.307], ) and +0.271 on pathogenesis (). On DeepSeek-V4-Pro (DS-Pro)—single repetition on both sides, hence descriptive under the two-level standard of Section 4.4—the gain is positive on both tasks (+0.094, case-level ; +0.210, ), with only 1.5% empty outputs on the agent side; being run-level unreplicated, we report it
Table 3 Auxiliary metrics (n=200 per task, C2/C3 campaigns as in Table 2): exact match (EM, %), macro-F1, and set hit rate (%). The hit–score gap quantifies the over-prediction failure mode of Section 5.7: high hit with a modest official-script score indicates over-selection (e.g., 4B zero-shot: 87.0% hit vs. 0.481 score).
| Model | Variant | Syndrome | Pathogen. | ||||
|---|---|---|---|---|---|---|---|
| EM | F1 | hit | EM | F1 | hit | ||
| Qwen3-4B | zero | 20.0 | 0.588 | 87.0 | 9.5 | 0.578 | 92.5 |
| Qwen3-4B | agent | 16.5 | 0.465 | 70.0 | 7.0 | 0.425 | 72.5 |
| PT-4B | zero | 17.5 | 0.589 | 89.0 | 8.0 | 0.585 | 92.5 |
| PT-4B | agent | 15.0 | 0.444 | 67.0 | 8.5 | 0.452 | 77.0 |
| Qwen3-32B | zero | 29.7 | 0.644 | 88.0 | 16.7 | 0.636 | 92.0 |
| Qwen3-32B | agent | 20.2 | 0.563 | 83.0 | 11.3 | 0.523 | 83.3 |
| DS-Flash | zero | 22.8 | 0.310 | 36.0 | 10.7 | 0.244 | 31.8 |
| DS-Flash | agent | 30.9 | 0.661 | 88.9 | 17.3 | 0.615 | 87.1 |
| DS-Pro | zero | 32.0 | 0.484 | 58.0 | 12.0 | 0.352 | 47.5 |
| DS-Pro | agent | 25.0 | 0.636 | 89.0 | 12.5 | 0.629 | 93.0 |
| K3 | zero | 28.5 | 0.576 | 80.8 | 23.3 | 0.657 | 90.5 |
| K3 | agent | 33.5 | 0.662 | 87.8 | 17.0 | 0.639 | 92.0 |
Table 4 Output-discipline profile of each base model, measured on protocol-free zero-shot outputs (200 cases per task), against the protocol's gain (agent – zero-shot; CIs and -values in Table 5). Answer-extraction rate: fraction of cases whose output yields a machine-extractable answer under the benchmark's official extraction rule, computed on the first repetition of each arm (DS-Pro's only repetition), so the rate is comparable across arms—for thinking models this coincides with termination within budget, and it subsumes format non-compliance. Over-prediction ratio: per-case mean of |pred|/|gold|. Run std: standard deviation of run means across three repetitions. Cross-run agreement: fraction of cases with identical predicted label sets across all three runs. Run std and self-consistency require three repetitions and are unavailable for the single-run zero-shot configuration (DS-Pro).
| Model | Task | Answer rate (%) | Over-pred. | Run std | Cross-run agr. (%) | |
|---|---|---|---|---|---|---|
| DS-Flash | syn. | 38.5 | 0.42 | 0.015 | 60.0 | +0.267 |
| DS-Flash | pat. | 33.0 | 0.42 | 0.012 | 62.5 | +0.271 |
| DS-Pro | syn. | 62.5 | 0.75 | — | — | +0.094 |
| DS-Pro | pat. | 51.0 | 0.66 | — | — | +0.210 |
| K3 | syn. | 99.5 | 1.38 | 0.218 | 10.5 | +0.080 |
| K3 | pat. | 97.0 | 1.43 | 0.043 | 37.0 | -0.032 |
| Qwen3-32B | syn. | 100 | 1.29 | 0.007 | 53.5 | -0.087 |
| Qwen3-32B | pat. | 100 | 1.28 | 0.006 | 38.5 | -0.112 |
| Qwen3-4B | syn. | 99.5 | 1.46 | 0.005 | 82.0 | -0.116 |
| Qwen3-4B | pat. | 100 | 1.42 | 0.010 | 69.0 | -0.120 |
as descriptive rather than headline evidence. Table 6 decomposes these gains. For each DeepSeek model we split the 200 cases into a reliably terminating subset—cases whose zero-shot output yields an extractable answer in every repetition—and the complementary rescue-prone subset. On rescue-prone cases the protocol's effect is large and positive (flash, three repetitions: +0.363/+0.339; DS-Pro, single repetition, descriptive: +0.435/+0.480): it converts non-answers into answers. On reliably terminating cases the effect flips sign and is small: -0.085/-0.087 (flash, ) and -0.111/-0.050 (Pro, ; single repetition, descriptive). The full-set gains on DeepSeek models are therefore entirely termination rescue; no positive remainder survives on the truncation-free subset.
- Post-hoc budget neutralization via elapsed-time certification
One objection to the rescue attribution remains: the flash agent runs at 32,768 tokens against the zero-shot baseline's 8,192, so part of the rescue could reflect budget rather than discipline. Per-case token counts were not archived, but wall-clock times were, and they afford

Fig. 4 Official-script scores on TCMEval-SDT (our own runs, n=200 per task). Paired bars show zero-shot vs. +agent for each base model; error bars mark the standard deviation over three repetitions where available. Dashed lines mark the benchmark paper's best reported zero-shot baselines (2023–2024 era, 50-case subset). Note the K3 pair: the zero-shot error bar (±0.218, descriptive spread over the n=3 runs) versus the agent's (±0.007) is the visual evidence for the stabilization claim—the protocol reduces run-to-run standard deviation by an order of magnitude (point estimate 31-fold).
Table 5 Paired tests of the mechanism's gain (zero-shot → +agent) per base model and task: per-case mean difference with bootstrap 95% CI and Wilcoxon p (n=200 cases). Raw p-values; the family-wise Bonferroni threshold for this 10-test family is 0.005. The Qwen3-4B comparison is budget-matched (both sides greedy with an 8,192-token budget, three repetitions each on the same vLLM backend). DS-Pro rows are single-repetition (case-level tests only) and are descriptive under the two-level standard of Section 4.4. The 4B negative result cannot be attributed to truncation. Run-level p: conservative replication check—Welch's t-test over the three run means per side (Section 4.4), uncorrected; “—” for configurations with a single-run side.
| Model | Task | Δ | 95% CI | p (case) | p (run) |
|---|---|---|---|---|---|
| Qwen3-4B | syndrome | -0.116 | [-0.167, -0.064] | 2.6e-05 | 1.7e-03 |
| Qwen3-4B | pathogen. | -0.120 | [-0.157, -0.084] | 8.1e-10 | 1.0e-04 |
| DS-Flash | syndrome | +0.267 | [+0.226, +0.307] | 6.1e-22 | 1.3e-02 |
| DS-Flash | pathogen. | +0.271 | [+0.234, +0.307] | 2.0e-24 | 6.7e-02 |
| DS-Pro | syndrome | +0.094 | [+0.039, +0.149] | 4.2e-03 | — |
| DS-Pro | pathogen. | +0.210 | [+0.131, +0.295] | 1.4e-12 | — |
| K3 | syndrome | +0.080 | [+0.047, +0.113] | 3.5e-06 | 0.59 |
| K3 | pathogen. | -0.032 | [-0.061, -0.004] | 3.1e-02 | 0.32 |
| Qwen3-32B | syndrome | -0.087 | [-0.126, -0.048] | 5.0e-05 | 9e-04 |
| Qwen3-32B | pathogen. | -0.112 | [-0.147, -0.079] | 2.9e-09 | 1e-04 |
a rate-free certification: the fastest zero-shot case-run that exhausted the 8,192-token budget took 66.9 s (syndrome) / 64.6 s (pathogenesis), so any agent case-run faster than that bound necessarily consumed fewer than 8,192 tokens. 72%/75% of terminating agent case-runs pass the bound (median 49 s/51 s). On rescue-prone cases certified under the strictest reading—the agent terminates below the bound in every repetition—the gain persists or grows: +0.464 on syndrome (95% CI [+0.332, +0.597], , n=17) and +0.237 on pathogenesis (CI [+0.140, +0.335], p=0.036, n=7); that the syndrome gain increases when high-consumption cases are excluded is the opposite of what a budget explanation predicts. A well-powered typical-case certification (median repetition below the bound; n=136/87) gives +0.369/+0.399 ( ). We do not claim full neutralization: about a quarter of terminating agent case-runs exceed the 8k-equivalent line,
Table 6 Rescue/terminating decomposition of the zero-shot→agent gain on the DeepSeek models (paired per-case differences, 95% CI, Wilcoxon p). Reliably terminating: zero-shot yields an extractable answer in every repetition (DS-Pro: single run)—a strictly stronger condition than the per-repetition answer-extraction rate of Table 4, which is why the flash subset (43/200 cases) is smaller than that rate (38.5%) suggests. Rescue-prone: the complement. K3 and the Qwen models terminate at ≥97% zero-shot answer rate, so for them the full-set contrast in Table 5 is already a terminating-case estimate. For DS-Pro the agent-side budget is 16,384 tokens and roughly half of its terminating case-runs exceed the 8k-equivalent line, so its rescue-prone gains retain a budget component that the post-hoc proxy (Appendix F) can only partially exclude. DS-Pro rows are single-repetition and hence descriptive under the two-level standard of Section 4.4. Full-set rows duplicate Table 5 for readability.
| Model | Subset | n | Zero | Agent | Δ (95% CI) | p |
|---|---|---|---|---|---|---|
| DS-Flash syn. | full | 200 | 0.289 | 0.556 | +0.267 [+0.226, +0.307] | 6.1e-22 |
| reliably terminating | 43 | 0.866 | 0.781 | -0.085 [-0.133, -0.037] | 2.0e-03 | |
| rescue-prone | 157 | 0.132 | 0.494 | +0.363 [+0.325, +0.401] | 2e-25 | |
| DS-Flash pat. | full | 200 | 0.212 | 0.482 | +0.271 [+0.233, +0.308] | 2e-24 |
| reliably terminating | 32 | 0.709 | 0.622 | -0.087 [-0.140, -0.034] | 3.1e-03 | |
| rescue-prone | 168 | 0.117 | 0.456 | +0.339 [+0.304, +0.374] | 4e-27 | |
| DS-Pro syn. | full | 200 | 0.443 | 0.537 | +0.094 [+0.039, +0.149] | 4.2e-03 |
| reliably terminating | 125 | 0.708 | 0.598 | -0.111 [-0.164, -0.058] | 2.1e-04 | |
| rescue-prone | 75 | 0.000 | 0.435 | +0.435 [+0.368, +0.502] | 6e-12 | |
| DS-Pro pat. | full | 200 | 0.298 | 0.508 | +0.210 [+0.159, +0.260] | 1e-12 |
| reliably terminating | 102 | 0.584 | 0.534 | -0.050 [-0.097, -0.002] | 6.0e-02 | |
| rescue-prone | 98 | 0.000 | 0.480 | +0.480 [+0.429, +0.531] | 1e-16 |
and for DS-Pro (16,384-token agent budget) roughly half do, leaving certified subsets too small to be informative (n=2/12)—Pro's rescue-prone gains therefore retain a budget component this proxy can only partially exclude. Calibration, subset definitions, sensitivity across certification variants, and the non-termination pathology evidence are in Appendix F.
On flash the protocol also raises the set-hit rate from 32.5%/29.5% to 66.0%/64.5% (syndrome/pathogenesis; C1, the August-2026 initial run—the corresponding C2 figures in Table 3 differ because the API-side model drifted between campaigns, E).
Stabilization of a high-variance model. K3's forced temperature 1.0 makes its zero-shot output unstable (run means span 0.245–0.636

Fig. 5 The protocol's gain against the zero-shot answer-extraction rate, per base model and task. Each model the protocol helps carries a distinct measurable failure mode (non-termination for flash, partial non-termination for Pro, instability for K3); the two models it hurts show none. Rank correlations are reported qualitatively at n=5.
on syndrome). Under the protocol the run-to-run standard deviation drops from 0.218 to 0.007—a point-estimate factor of 31 (variance-ratio F-test p=0.002, 95% CI [5, 200]; pathogenesis: 3.9-fold, n.s., p=0.12, CI [0.6, 25]). The wide interval reflects three runs per side; we report the effect as an order-of-magnitude reduction, not a precise factor. On score, K3 syndrome gains +0.080 at the case level ( ) but the conservative run-level check is non-significant (p=0.59, n=3 runs); pathogenesis shows a small nominal decrease (-0.032, n.s. after Bonferroni). We therefore claim stabilization as the robust K3 finding, and the score gain as case-level evidence only.
Significant cost where discipline is internalized. On Qwen3-32B—whose zero-shot output terminates at 100% and scores 0.551/0.523, near the benchmark’s best reported baselines—the agent scores significantly below zero-shot (syndrome -0.087, ; pathogenesis -0.112, ). A temperature control (agent at temperature 0 vs. 0.6) rules out decoding as the cause: syndrome is unchanged ( ), and pathogenesis at temperature 0 degrades further (0.201 vs. 0.411, ). On Qwen3-4B the budget-matched greedy comparison (both sides at 8,192 tokens) replicates the cost (-0.116, ; -0.120, ), so the negative result cannot be attributed to truncation. The TCM post-trained variant PT-4B shows no significant post-training effect on either side ( , all n.s.), and the protocol’s cost replicates on it as well (-0.111/-0.112, )—base-model behavior, not domain adaptation, dominates. PT-4B is moreover a 4B with reasoning chains internalized (its SFT corpus includes chain-of-thought rationales); that even a CoT-trained model is changed so little by the protocol suggests the protocol’s leverage point is not the reasoning chain itself.
What is controlled and what is not. The cross-model pattern—gains ordered against zero-shot discipline in Table 4 and Figure 5—is qualitative only: the points were measured under per-model best-effort configurations (different generation budgets, decoding temperatures, and campaign dates, including an API-side behavior drift for flash), so no controlled dose-response curve can be drawn across them. What is controlled evidence are the four within-model contrasts above. Read together, they support the narrower claim that the mechanism helps where zero-shot output discipline is poor (non-termination, format failure, high variance) and costs where discipline is already strong; the dose-response quantification across a unified protocol is future work. A single run can be badly misleading in either direction: K3's first run suggested a +158% pathogenesis gain, which the three-repetition campaign replaced with a small nominal decrease—single-run comparisons are anecdotes; repeated runs with paired tests are evidence.
5.2 Mechanistic attribution: format-content complementarity
Which layer carries these effects? The G1 ablation (Table 8) removes the matrix requirement and the output-format mandate jointly (both live in a single instruction block in the deployed prompt), so it cannot separate them. The format-only baseline—candidate markers and the mandatory single-line output format, but no matrix and no knowledge injection—closes this gap on both the budget-matched 4B and DeepSeek-V4-Flash. Together with G1 (content retained; matrix+format block removed), the 4B cells form a two-factor pattern (syndrome/pathogenesis): zero-shot 0.481/0.455; format-only 0.240/0.172 (-0.241/-0.283, ); G1 0.388/0.319 (-0.093/-0.136 vs. zero-shot, ); full protocol 0.365/0.335. The structure is not additive. The format layer costs or is neutral under both content conditions (-0.241/-0.283 without content; -0.022/+0.015 with it, G1→full, n.s.), and the content bundle (falsification matrix + knowledge injection + causal chain) is significantly harmful without the format (-0.093/-0.136) yet strongly positive with it (+0.126/+0.162, )—a sign-flipping interaction. On flash the chain reads zero-shot 0.289/0.212 → format-only 0.413/0.204 (+0.124/-0.007; ) → full 0.556/0.482 (+0.143/+0.278, ).
Three conclusions follow, each narrower than an additive two-layer
Table 7 The completed three-factor factorial on budget-matched Qwen3-4B (three repetitions per arm, n=200 per task). The content bundle is knowledge injection + causal chain; “format” is the candidate-bounded single-line emission mandate; “matrix” is the falsification-matrix requirement.
| Arm (content / matrix / format) | Syn. | Pat. | Hit syn./pat. (%) |
|---|---|---|---|
| zero-shot (-/-/-) | 87.5 / 92.0 | ||
| format only (-/-/+) | 0.240 | 0.172 | 38.0 / 38.0 |
| content only (G1, +/-/-) | 59.0 / 66.7 | ||
| no matrix (G5, +/-/+) | 67.3 / 72.8 | ||
| no format (G6, +/-/-) | 67.5 / 70.5 | ||
| full protocol (+/+/+) | 67.5 / 74.2 |
Table 8 Component ablations (Qwen3-4B, C3 budget-matched greedy configuration, 8,192-token budget, vLLM; three repetitions per group, n=200 per task). Official score mean ± std; Δ and hit-rate change vs. G0 (paired Wilcoxon; n.s. = p > 0.05).
| Group | Official-script score | Δ vs. G0 (CI, p) | Hit Δ (pp) | |||
|---|---|---|---|---|---|---|
| Syn. | Pat. | Syn. | Pat. | Syn. | Pat. | |
| G0 full agent | — | — | 67.5 | 74.2 | ||
| G1 – matrix+format block | +0.022 (n.s.) | -0.015 (n.s.) | -8.5 | -7.5 | ||
| G2 – evidence checklist | +0.038 (n.s.) | -0.003 (n.s.) | +6.2 | -1.6 | ||
| G3 – diff. guide | +0.026 (n.s.) | +0.012 (n.s.) | +2.2 | -0.7 | ||
| G4 – all skill knowledge | -0.001 (n.s.) | +0.019 (n.s.) | +11.9 | +4.8 | ||
story. (i) The format/candidate-bounding layer is sign-conditional: it rescues the truncation-prone model (flash syndrome +0.124; answer-extraction rate 38.5%→75.0% syndrome, 33.0%→49.5% pathogenesis) but costs the disciplined one (4B), suppressing free causal reasoning into candidate oscillation; the 4B negative headline of Section 5.1 is attributable primarily to this layer. (ii) The causal chain and the format layer are complements, not additive layers: on 4B the causal chain pays off only jointly with the format, and the sign flips across the two content conditions; the matrix and knowledge marginals are separately nil (see (iii)). (iii) The matrix's own marginal contribution to score is nil-to-negative on this model. Two independent estimates agree: with format present, full – (content+format, no matrix) = -0.027/-0.008 (p=0.12/0.57, n.s.); without format, (content+matrix, no format) – (content only) = -0.054/-0.036 (p=0.018/0.17). The bundle's positive residual therefore comes from the causal chain conditional on format—not from the matrix requirement and not from knowledge injection: the residual with the matrix excluded is +0.153/+0.171 over format-only (p<10), and removing all injected knowledge from the full protocol leaves scores unchanged (-0.001/+0.019, n.s.; G4, Table 8). The ordered attribution on this model thus reads: format-only → +causal chain (the main effect) → +matrix (≈0) → +knowledge (≈0). The format layer's own marginal, with content and matrix present, is +0.031/+0.051 (n.s./p=8×10). Where the matrix-and-format block does act measurably is the candidate space itself (Table 7): free-form zero-shot hit rate is 87.5%, dropping to 59.0% with content alone, and recovering to 67.5–74.2% as the matrix and the emission format are added—the protocol's demonstrated functions are candidate-space enforcement, the cell-level audit trail, and the misinformation detection of Section 5.6, not benchmark score on this model.
■ 5.3 Standard reasoning baselines: the protocol is not a CoT variant
Could the protocol be merely an expensive chain-of-thought variant? Two standard reasoning baselines answer this on budget-matched
Table 9 Standard reasoning baselines vs. the agent (same-model, official-script score; three repetitions). K3 self-consistency uses the existing temperature-1.0 repetitions; 4B self-consistency samples at temperature 0.7.
| Model | Configuration | Syn. | Pat. |
|---|---|---|---|
| Qwen3-4B | zero-shot | ||
| Qwen3-4B | CoT (greedy) | ||
| Qwen3-4B | self-consistency (t=0.7) | 0.479 | 0.405 |
| Qwen3-4B | + agent (full protocol) | ||
| K3 | zero-shot | ||
| K3 | self-consistency (t=1.0) | 0.631 | 0.596 |
| K3 | + agent (full protocol) |
Qwen3-4B (Table 9). Plain CoT prompting (greedy, three repetitions) scores 0.487/0.471—statistically indistinguishable from zero-shot and, consistently with the boundary condition, above the agent; a three-sample self-consistency vote at temperature 0.7 scores 0.479/0.405, recovering the sampling penalty without exceeding greedy decoding. Structurally, neither baseline shares the protocol's mechanism: CoT and self-consistency impose no candidate space (their hit rates, 88.7%/87.5%, are the free-form regime's, against the protocol's 67.5–74.2%), no machine-checkable verification checkpoint, and no audit trail—they answer a different question (“what conclusion sounds right”) from the protocol's (“which candidates survive falsification against named evidence”). The score comparison is therefore not the protocol's claim to value; that claim is governance (Section 6.1).
Two honest datapoints delimit the claim. On K3—the high-variance model—a three-sample self-consistency vote (its runs are already at the forced temperature 1.0) scores 0.631/0.596, above both K3 zero-shot (0.496/0.556) and K3+agent (0.576/0.524), at 3× inference cost and zero auditability; and on 4B, both CoT and self-consistency outscore the agent. Where raw multi-select score is the only objective and auditability is not required, majority voting over sampled runs is the better tool for an unstable model; the protocol's contribution lies elsewhere (deterministic termination, candidate-space enforcement, cell-level auditability, safety checks, and misinformation detection). Flash-side CoT and self-consistency baselines are deferred: the API endpoint was silently redirected to a newer model generation mid-campaign (E), so fresh flash measurements would not be poolable with the reported C2 campaign.
■ 5.4 Protocol–knowledge decoupling and specialty routing The knowledge-side ablations (G2–G4, Table 8) yield the paper’s most counterintuitive—and, for the framework’s design, most informative—result. Removing all skill-knowledge injection (G4) leaves official-script scores unchanged (-0.001/+0.019, n.s.) while raising the hit rate by 11.9/4.8 pp. In other words, the protocol’s measured effect on this benchmark is carried by its structure, not by the injected knowledge content. We read this as evidence of protocol–knowledge decoupling: the reasoning discipline and the knowledge layer vary independently, which is precisely the property the framework’s architecture is designed to exploit—knowledge remains external, expert-revisable data that can be corrected or swapped without touching either model weights or control flow (Section 3.3). A framework whose protocol effect
Table 10 Stopping-fraction ablation (Qwen3-4B, budget-matched greedy, 8,192-token budget, vLLM; n=200 per task, one repetition per ). Official scores; and vs. the deployed (paired Wilcoxon with bootstrap CI). The row is a single run of the G0 configuration and sits within G0's three-repetition run-to-run spread ( syndrome, Table 8); the within-table contrasts are unaffected since all three arms share the same single-repetition protocol.
| κ | Syndrome | Pathogen. | Δ syn. | Δ pat. | p (pat.) |
|---|---|---|---|---|---|
| 0.368 | 0.333 | -0.012 | +0.010 | n.s. | |
| (deployed) | 0.380 | 0.323 | — | — | — |
| 0.403 | 0.361 | +0.024 | +0.037 | 0.036 |
depended on knowledge content would be coupled; ours is not.
The hit-rate increase under G4 has a concrete mechanism. Removing the matrix-and-format block (G1) costs 8.5/7.5 pp of hit rate—conclusions escape the candidate space, an effect attributable to the lost candidate-bounded emission mandate—whereas removing knowledge (G4) raises hit rate: injected knowledge, as currently organized, pulls conclusions out of the candidate space without adding score. The failure log locates the defect. The differential guide was tuned on 539 insomnia cases and was misplaced in the always-loaded base skill; on broad-domain benchmark cases it biased answers toward insomnia syndromes (e.g., a pediatric nephritis case answered “heart–kidney disharmony,” an insomnia syndrome absent from the candidate list) and injected misleading decision anchors. Consistently, removing the evidence checklist (G2) or the insomnia-tuned differential guide (G3) tends to improve scores—directionally consistent across tasks and repetitions but below significance (+0.038/+0.026 and +0.026/+0.012, n.s.).
Together these results support, at modest statistical strength, the framework's design principle that specialty knowledge must be routed by specialty rather than universally injected, and they identify a concrete iteration—relocate specialty-tuned knowledge files into their specialty skills—of exactly the kind the white-box audit loop of Section 5.8 is designed to enable. They also delimit honestly what the knowledge architecture does not currently do: contribute measurable benchmark score. We report this as a boundary on the architecture's present value, not as a defect to be hidden.
5.5 Stopping-fraction calibration
The sufficiency rule's stopping fraction (at least a -fraction of candidates must be falsified) was varied over on the budget-matched Qwen3-4B configuration (vLLM, greedy, 8,192-token budget; 200 cases per task, one repetition per ; only the sufficiency wording changed—Table 10). wins on both tasks (pathogenesis +0.037 vs. the deployed , 95% CI [+0.001, +0.075], ; syndrome +0.024, n.s.), and loses on syndrome (-0.012, n.s.). Two conclusions, both without overreach: (i) the deployed default is not optimal on this benchmark, and the profitable direction is stricter falsification—consistent with the over-prediction failure mode of Section 5.7, which predicts exactly this direction; (ii) the stopping fraction is a meaningful, tunable operating point rather than a constant of nature, warranting per-deployment calibration rather than a universal .
5.6 Cross-domain transfer check: premise falsification under injected misinformation
Sections 2.3 and 6 argue that the matrix protocol should transfer to contaminated-reasoning settings. The protocol tested here was neither derived from nor inspired by the misinformation literature: it was developed independently for clinical syndrome differentiation, and we use the benchmark of [6] purely as a public external testbed—their data and their instruction intervention, our protocol. We test it on their math word problems with perturbed premise equations (a preemptive answer attack (PAA) scenario in the reasoning-safety taxonomy of [14]). Their original LFS-hosted test data are no longer available, so we reconstructed 243 unique questions (question, gold answer, correct premises, perturbed premises) from the repository's retained evaluation aggregate, and evaluate DeepSeek-V4-Flash under four conditions (3 samples per question, their verbatim prompts): base_original (correct premises), base_misinformed (perturbed premises), inst_misinformed (their instruction-to-correct intervention), and protocol_misinformed (our two-stage adaptation). In the protocol condition, stage one builds a candidate × evidence verification matrix over the premise equations—numeric consistency, relation consistency, internal consistency—falsifies with named evidence, and explicitly rewrites falsified equations reminder-style; stage two derives from surviving/corrected equations only. We report raw accuracy and knowledgeable accuracy (K-Acc, conditioned on questions the model solves under base_original, their metric).
Three findings. (i) The threat is real even for a strong model. Misinformation significantly degrades accuracy (K-Acc 0.986 → 0.947; , 95% CI [-0.062, -0.017], ), though DeepSeek-V4-Flash is comparatively robust on this set. (ii) The protocol detects misinformation reliably, against an explicit trivial baseline. Stage one's confusion matrix covers 648 of the 729 rows (243 questions × 3 samples, all from the misinformed group—no base_original rows mixed in). The remaining 81 rows are 30 rows (10 questions) whose perturbed and correct premise lists are misaligned (ground-truth flags undefined) and 51 rows whose stage-one verdicts failed to parse. Over 2,298 equation verdicts the confusion matrix is TP=1,944, FN=221, FP=9, TN=124: 89.8% recall, 99.5% precision, 6.8% false-positive rate (FPR) (95% CI [3.6, 12.4] on only 133 clean equations). Because 94.2% of equations in this pool are perturbed, a flag-everything baseline already achieves 100% recall at 94.2% precision—so precision cannot be the evidence here; the operative contrast is the false-positive rate, where flag-all scores 100% and the protocol scores 6.8% (Matthews correlation coefficient (MCC) 0.54 vs. 0). This is not a cosmetic distinction: flag-all would send all 124 clean equations into stage two as spurious “corrections,” while the protocol leaves 93% of them intact—exactly the property the recovery stage depends on. A conservative sensitivity check that treats the 51 un parsed rows as missed detections—adding their 289 perturbed equations to FN and their 8 clean equations to TN—moves recall from 89.8% to 79.2% and leaves the FPR essentially unchanged (6.8% to 6.4%); the operative contrast with the flag-everything baseline (100% FPR) is unaffected. (iii) The protocol restores accuracy to the no-misinformation ceiling—noting that the tested model is comparatively robust and the degradation headroom is small (0.039)—and outperforms the instruction intervention. It scores 0.996 K-Acc—above the perturbed default by +0.049 (95% CI [+0.030, +0.071], ), above the instruction intervention by +0.036 ( ), and statistically indistinguishable from the clean-input ceiling (+0.010, n.s.); on raw accuracy it slightly exceeds it (+0.036, ), suggesting the verification pass also disciplines ordinary derivation.
5.7 Subset and failure analysis
The dominant failure mode is lenient compatibility (over-prediction): about 30% of cases output more compatible syndromes than the gold set, indicating the aggregation threshold needs calibration—the direction confirmed by the ablation of Section 5.5. For the DeepSeek agent run, 22%/29% of cases exhausted the token budget on reasoning and produced no conclusion (scored zero); on the zero-shot side the failure is larger—64%/43% of flash/Pro zero-shot cases produce no parseable answer (Section 5.1). Restricting to cases where the protocol completed (the August-2026 initial run: single repetition, 16,384-token budget, /no_think trigger), the agent reaches 0.532 (syndrome, n=156) and 0.486 (pathogenesis, n=142)—the former exceeding the benchmark's best reported zero-shot model (Gemini 1.5 Pro 0.475).
5.8 Mechanism execution audit
On a separate 539-case insomnia pilot with tongue-sign inputs, 93.5% of reasoning traces executed candidate-by-candidate comparison/elimination, 42.3% cited key decision rules, 29.5% cited the differential guide, 41.0% cited knowledge-base standards, and 32.3% cited data statistics—confirming the constraint protocol is genuinely executed by the model rather than silently ignored. The white-box traces also located concrete knowledge defects: conflicts between the differential data table and the actual case distribution were identified and repaired through two documented knowledge iterations (differential data table v0.1→v0.2; differential guide v0.2→v0.3), demonstrating the “white-box reasoning → locatable errors → iterable knowledge” loop.
The safety layer is guarded by a regression suite of 21 unit tests covering, among others, incompatibility detection (licorice–kansui blocked), overdose detection (a 50 g ephedra prescription flagged), pregnancy interception (safflower for a pregnant patient blocked), illegal state-transition rejection, tool-loop alarms, and snapshot recovery.
6 Discussion
6.1 The protocol sets the floor, capability the ceiling
Two lines of evidence support our central claim that the reasoning protocol sets the floor where zero-shot output discipline is weak, and base-model capability sets the ceiling everywhere . First, the same-model controlled contrasts of Section 5.1: flash +0.267/+0.271, which decomposes into rescue on non-terminating cases (+0.363/+0.339) and a small significant cost on reliably terminating cases (-0.085/-0.087; DS-Pro likewise, single repetition and hence descriptive: +0.435/+0.480 rescue vs. -0.111/-0.050; Table 6); K3 run-to-run std reduced from 0.218 to 0.007 (order-of-magnitude; point estimate 31, 95% CI [5, 200]); and significant costs on both Qwen models under budget-matched and temperature-controlled conditions. Second, agent-side scores scale when swapping in a stronger base model (4B→32B→Pro/flash/K3, syndrome 0.365→0.464→0.537/0.556/0.576; the DS-Pro point is single-repetition and descriptive), the top three configurations close to indistinguishable at these repetition counts (nominal spread 0.537–0.576, within flash's own run-level spread)—the protocol lifts mid-tier models into the frontier cluster. This spread—0.21 points of syndrome score under one uniform protocol—is not at odds with the binding-constraint claim: it measures how well each model executes the protocol (cell-level judgments, evidence use, instruction following), i.e., the ceiling; the claim concerns what prevents raw capability from converting into valid output at all, i.e., the floor. Because the mechanism is model-agnostic, the framework benefits automatically from future model progress without modification.
• So what is the protocol for?
If the protocol costs accuracy on disciplined models, what is it for? Raw benchmark accuracy was never the objective function. The protocol is a governance layer for high-stakes decisions: it delivers what free-form zero-shot output cannot provide at all—auditable per-cell reasoning, deterministic prescription-safety checks, multi-turn consistency, zero-hallucination knowledge answers, misinformation detection and recovery, and machine-extractable conclusions—at a bounded accuracy cost (at most 0.03–0.13 across models). Deployment also cannot assume a disciplined base model: API-side behavior drifted twice within one month in our own campaign (E), and small or forced-temperature models are precisely where free-form output breaks. The boundary condition therefore reads as an engineering routing rule rather than a verdict: apply the full protocol where output discipline is weak or unknown, and a lighter subset—safety checks, direct database answers, single-line output—where the base model is already disciplined. We hypothesize that for disciplined models the forced protocol’s benefits (format termination, candidate bounding) are already internalized, while its costs (knowledge-injection noise, constrained answer multiplicity) dominate.
• Interpretive lenses
This boundary condition is consistent with two persuasion-theoretic readings, which we offer as interpretations of the experimental result, not as its source. Under the Elaboration Likelihood Model [34], the protocol acts as an elaboration enforcer that forces central-route processing—redundant for models already reasoning centrally, decisive for models that do not. Under inoculation theory [28,29], the sufficiency rule acts as forewarning (a decision is never licensed until enough candidates have been falsified) and the matrix's cell-level judgments are refutational preemption exercised on every candidate; and because the protocol attacks an unchecked direct mapping—a structural reasoning failure rather than any domain-specific false content—logic-based inoculation research, which shows that defenses aimed at fallacy types transfer across topics [32,33], gives the cross-domain transfer of Section 5.6 a
The floor claim is certified on budget-matched subsets: post-hoc elapsed-time neutralization confirms the flash rescue gain on cases whose agent answers provably fit the zero-shot 8,192-token budget (Section 5.1, Appendix F).
Table 11 Two defense mechanisms against manipulation of reasoning. Our protocol targets the right-hand column; the misinformation-benchmark evaluation is reported in Section 5.6.
| Property | Internalized reasoning | External protocol (ours) |
|---|---|---|
| Manipulation resistance | effective [26,27] | ceiling-restoring, > instruction (Sec. 5.6) |
| Cross-model transfer | no (bound to training) | yes (model-agnostic adapter) |
| Auditability | black-box | white-box (cell-level logs) |
| Failure mode | error entrenchment [27] | over-prediction (Sec. 5.7) |
| Correctability | not evidence-revisable | re-examination loop |
mechanism-level basis rather than a purely empirical one.
• A security reading.
If cognitive attack on machine reasoning consists in manipulating the reasoning process—as the misinformation-propagation results demonstrate, with reasoning chains hijacked by false premises despite correct internal knowledge [6], and as the continued influence effect documents for human cognition [24]—then defense consists in verifying reasoning integrity. The two defense layers act at different points: fine-tuning on early factual correction repairs one model's weights at training time [6], whereas our matrix protocol verifies every candidate conclusion against evidence at inference time, for any base model, and leaves a machine-checkable audit trail. The layers are complementary rather than competing: a corrected model can still face novel contamination, and a verification protocol still benefits from a disciplined base model. This reading also clarifies the framework's generality: wherever premises may be contaminated—clinical narratives, user-supplied facts, retrieved documents—the candidate-bounded falsification step must be passed before any conclusion is licensed.
Controlled agent-to-agent attack studies—the source is a non-archival technical report, so its figures are indicative rather than archival evidence—add both a caveat and an independent confirmation [57]. The caveat: against a live adaptive persuader that reads the subject's reasoning and counters it turn by turn, rationale-only defenses collapse (harmful revision rising from 12.2% to 98.9% for a widely used lightweight model), while static injected messages rarely succeed when evidence remains accessible—our misinformation evaluation uses static premise injection and does not yet cover this stronger threat model (Section 6.4). The confirmation: in the same study, a verifier that re-attaches the source evidence eliminates harmful revision for every tested subject (0%), whereas a verifier that merely asserts the correct answer protects inconsistently (up to 54.4% residual)—external evidence that the operative variable is evidence re-grounding, exactly the operation our matrix protocol enforces per candidate, rather than confident counter-assertion or stance retention. Consistently, psychological-injection experiments on multi-agent systems find that larger open-source models are more susceptible to injected dark traits—stronger instruction-following executes malicious injections as faithfully as benign ones [58]—matching our boundary condition that scaling the base model improves protocol execution without conferring protection. Table 11 summarizes the resulting positioning against internalized reasoning defenses.
6.2 Why two years of model progress barely moves this benchmark
A striking fact in Table 2 is how little the field's two-year progress achieves on this benchmark: from Gemini 1.5 Pro (2024, syndrome) to DeepSeek-V4-Pro, K3, and Qwen3-32B (2026, 0.443–0.551 on syndrome—bracketing the 2024 frontier rather than exceeding it), zero-shot scores move only a few points, while general capability benchmarks gained twenty points or more over the same period. The cross-era comparison is indicative rather than definitive—the 2023–2024 baselines are zero-shot evaluations on a random 50-case subset, converted from weighted sums—but the direction is consistent across all five of our own 2026-era zero-shot runs. We see four compounding causes, and one consequence. First, the task tests a thought process, not knowledge: contrastive discrimination among similar syndromes is sparsely represented in training corpora (case literature records conclusions, rarely explicit elimination), so general capability gains transfer weakly. Second, the metric punishes deliberation: the official-script score divides by , so any over-selection is charged directly; stronger models tend to select more (our failure analysis finds over-prediction in about of cases), which caps free-form generation near 0.5–0.55. Third, the field's main direction of progress is misaligned with the task: long chain-of-thought evolution rewards longer deliberation, whereas this task rewards convergent comparison—the model with the longest reasoning chains in our campaign (DS-Flash, routinely reasoning tokens) scored worst zero-shot (0.289) and produced the most empty outputs, while the concise-reasoning DS-Pro ( reasoning tokens to termination) scored best. Fourth, the gold labels have an expert-agreement ceiling: multi-select TCM syndrome labels carry intrinsic inter-expert disagreement, placing the practical ceiling well below 1.0—we offer this as a hypothesis consistent with the clustering of top configurations around 0.53–0.58, since inter-annotator agreement data for the benchmark are not published.
Two years of scaling and model generation turnover moves zero-shot scores by only on this benchmark (2026 frontier spread 0.443–0.551 vs. the 2024 frontier on syndrome—the 2024 score sits inside the 2026 spread). Attaching the protocol to the worst zero-shot configuration—flash, of whose cases never produce an answer at all—yields ; and that headline number is entirely termination rescue: on the reliably terminating subset the sign flips to a small significant cost (Table 6). On output-healthy models the protocol's net effect is modest and sign-mixed, ranging from (K3 syndrome) to (Qwen3-4B pathogenesis). The formulation of our thesis that these data support is therefore not "protocol beats scaling" but: the benchmark's binding constraint is output discipline and reasoning structure, not model capability alone—a protocol that imposes both rescues configurations where they are missing, at a measurable and sign-conditional cost where they are not.
6.3 Safety and privacy in practice
Knowledge queries are answered verbatim from the database (zero hallucination); prescriptions pass hard incompatibility/pregnancy/dosage checks; the full pipeline runs on-premises within a single model instance
(4B local), so patient data never leaves the intranet and inference cost does not multiply with role count as in multi-agent designs. We state the deployment trade-off explicitly: on the budget-matched 4B comparison the protocol costs accuracy (Table 5), so the on-premises configuration is a deliberate exchange of a small accuracy margin for auditability, deterministic safety checks, multi-turn consistency, and reproducibility—properties that the benchmark does not score but that clinical deployment requires, and that free-form zero-shot output does not provide.
6.4 Limitations
(1) Paper baselines are 2023–2024-era zero-shot models on a 50-case subset; cross-era comparison is indicative, not definitive. (2) The misinformation evaluation (Section 5.6) is bounded in three ways: it covers a single base model, static premise injection only, and a reconstructed question set with selection bias (conditioned on source-model solvability, and the tested model is comparatively robust to misinformation); moreover, a live adaptive persuader that reads and counters the agent's intermediate reasoning is known to defeat rationale-only defenses [57], and the current protocol has no counterpart to such multi-turn adversarial interaction. (3) No human TCM-expert review of outputs has been conducted yet. (4) The framework was validated on text-only four-examination descriptions, not raw tongue/pulse images. (5) K3 accepts only temperature 1.0, and its zero-shot scores vary substantially across repetitions (syndrome 0.245–0.636 in our campaign), so K3 numbers carry wider uncertainty; the K3 syndrome gain is case-level significant but not run-level significant. (6) DeepSeek measurements carry two caveats. First, API-side model behavior can drift between campaigns (we observed this for flash, twice), so archived and repeated runs are reported with their respective decoding configurations. Second, DeepSeek zero-shot baselines are budget-limited relative to the agent runs (64%/43% non-terminating at 8,192 tokens), so we report the decomposition into termination rescue vs. a small terminating-case cost in Section 5.1; a budget-matched zero-shot control on the original flash model is no longer possible—the API endpoint was silently upgraded on 2026-09-19 (E)—so budget neutrality is instead certified post hoc from archived wall-clock timings (Appendix F); its limits are item (9). Third, both DS-Pro arms are single-repetition, so per the two-level standard of Section 4.4 we report all DS-Pro contrasts as descriptive; they support, but do not carry, the headline claims. (7) Inference cost claims (cheap relative to multi-agent designs) are architectural arguments, not measurements; per-configuration token and latency accounting is future work. (8) The evidence is single-domain at benchmark scale: TCMEval-SDT plus one reconstructed 243-question transfer set; a second full-scale domain is needed before the boundary condition can be read as domain-general. (9) The budget-neutralization analysis of Appendix F is a proxy analysis: per-case token counts were not archived (the API usage field was not persisted), so certification runs on wall-clock time, which includes network and retry overhead and therefore overestimates consumption—any estimation error shrinks the certified subset rather than flipping the conclusion. The dominant non-termination mode (reasoning exhausts the budget with empty visible content) leaves no text that can be classified post hoc, so the loop-versus-progress distinction rests on the indirect evidence of Appendix F. An instrumented re-run that archives reasoning traces and per-case token usage is left to future work.
6.5 Future work
Two control arms close the remaining gaps in the mechanism evidence: a budget-matched DeepSeek zero-shot at the agent's generation budget—after the silent endpoint upgrade of 2026-09-19 (E) this requires an endpoint serving the original flash weights, and is substituted in this revision by the post-hoc elapsed-time certification of Appendix F—and CoT/self-consistency baselines on the same models, to exclude the reading that the matrix protocol is an expensive CoT variant; a matrix-only ablation arm (matrix without the single-line mandate) would separately identify the matrix's marginal contribution, which the present design brackets but does not isolate (Section 5.2).
7 Conclusion
We asked what binds LLM performance on auditable, hypothesis-driven decision tasks, and answered with controlled evidence: on TCMEval-SDT, the binding constraint is output discipline and reasoning structure, not model capability alone. Two years of scaling move zero-shot scores by only (the 2024 frontier sits inside the 2026 spread), while a falsification-guided reasoning protocol—enforced on the model's output by a model-agnostic agent framework formalizing a five-stage closed loop—rescues configurations where discipline fails on DeepSeek-V4-Flash, entirely termination rescue and robust on budget-certified subsets), stabilizes a high-variance model by an order of magnitude in run-to-run standard deviation (Kimi K3), and significantly costs already-disciplined models (Qwen3-4B/32B, budget-matched and temperature-controlled). Mechanistic abstractions attribute the cost to the candidate-bounded format layer, reveal a sign-flipping complementarity between the causal chain and the format layer, and show that the protocol's measured effect is independent of the injected knowledge content—a protocol-knowledge decoupling that supports the framework's knowledge-as-revisable-data design and its model-agnostic claim. A two-stage adaptation transfers the protocol to misinformation-robust mathematical reasoning (89.8% recall at 6.8% FPR; accuracy restored to the no-misinformation ceiling, on a comparatively robust model with a small degradation headroom). More broadly, the work is evidence that cognitive-security theories developed for human subjects—inoculation, continued influence, belief revision—map onto machine reasoning protocols in weakened, computable form, and that this mapping is useful: each theory supplied here a concrete vocabulary for an already-built mechanism (forewarning, refutation practice, explicit reminders, entrenchment ordering) and each survives as a consistent interpretation of the protocol's behavior rather than as a rhetorical analogy. The framework turns free-form generation into an auditable, verifiable, safety-controlled reasoning process suitable for privacy-sensitive medical deployment; where zero-shot output discipline is weak, the reasoning protocol sets the floor, and base-model capability always sets the ceiling.
■ A Intent triage and three-level retrieval with direct answers
Incoming input first passes a two-level intent triage. The first level is a rule decision tree: consultation markers (first-person complaint words, medical-record words, tongue/pulse words, consultation-request words, a pronoun-plus-symptom-verb pattern, or at least 3 of 28 symptom words) indicate a consultation request; otherwise, ten knowledge-question patterns (e.g., “the properties of X”, “introduce X”) indicate a knowledge query; a fallback rule (no consultation marker, input shorter than 50 characters, no pronoun, at most 5 Chinese word chunks) defaults to knowledge query. The second level asks the model itself to classify the remaining input into consultation / closing / off-topic with a two-token response; on abnormal output it defaults to consultation, so that genuine requests are never refused. Closing input receives a fixed ending phrase; off-topic input receives a capability-boundary notice.
Knowledge queries go through a three-level retrieval cascade: (i) exact whole-sentence match over question/answer/syndrome columns; (ii) Chinese-bigram FTS5 full-text search ranked by BM25, with seven classes of subject-term extraction (e.g., extracting X from “the properties of X”, formula-name suffix recognition, enumeration-noun splitting); (iii) subject-term exact match with authoritative “properties of X” records promoted. Candidate records are scored by a weighted rule: a sliding-window term hitting the question field scores its character length ×3, hitting the answer field scores length ×1, and authoritative-physician records receive a +50 bonus. The top record’s answer text is returned verbatim from the database without generation (confidence 1.0; zero hallucination; millisecond latency). Only when retrieval fails does the model answer within a restricted budget (256 tokens, temperature 0.3, at most 300 characters) without entering the differentiation pipeline.
Worked example. For the query “the medicinal properties of Coptis (Huanglian)”, subject extraction yields “Coptis”, and 2/3/4-character sliding windows over the query produce 9 terms. Candidate record A is an authoritative question-answer record whose question field covers both the properties and indications of Coptis: all 9 window terms hit the question field (4 two-character terms ×6 = 24; 3 three-character terms ×9 = 27; 2 four-character terms ×12 = 24; subtotal 75), the answer field contributes 2, and the authority bonus adds 50—total 127. Candidate record B, an insomnia case record that merely mentions Coptis in passing, scores 6 + 2 = 8. Record A therefore ranks first and its original answer text is returned; a pure term-frequency or vector-similarity ranker could instead surface record B, which contains the high-frequency term but answers a different question.
B Structured tool pipeline
During plan and prescription generation the model may invoke nine structured tools through seven textual markers: exact formula, herb, and syndrome lookups; case retrieval; read-only parameterized SQL; incompatibility checking; and dose calculation. Every call passes a four-stage pipeline: (i) pre-call audit—registration check, rate limiting, parameter validation, and safety-level confirmation under a three-level tool-safety classification; (ii) sandboxed execution with a 30-second timeout and two exponential-backoff retries; (iii) post-call output validation; (iv) audit logging of parameters and result digests. Stage-specific knowledge (formulas, dosage rules, acupoint prescriptions) is injected with per-file and total budgets (12,000 and 20,000 characters respectively)—a plan-stage skill-file budget separate from the differentiation-time dual-anchor injection budget of Section 3.3.
C Runtime robustness and observability
Four cross-cutting subsystems keep long consultations stable on small models. Context budgeting splits the window into permanent (25%), session (45%), and task (30%) layers, estimates Chinese text at 1.5 characters per token, and auto-compresses session events beyond 50 entries. Streaming guardrails enforce a hard token cap, truncate after 25 consecutive Latin characters, detect repetition loops every 80 tokens, detect language mixing and training-data leakage, and deduplicate paragraphs at 85% overlap. Health monitoring watches five dimensions: reasoning quality, behavioral patterns (five identical consecutive tool calls flag a loop), context health, safety compliance, and resource status. Trajectory logging records dialogues, tool-call chains, diagnoses and prescriptions, latency, and confidence to JSONL, with privacy de-identification before any reuse for model-iteration evaluation.
D Information-gain analysis of active questioning
The rule-based questioning policy of Section 3.4 admits an information-theoretic reading. Let be the empirical posterior over the candidate set given the evidence collected so far, estimable from the logged frequencies of the case database. Asking about a four-examination dimension q yields an answer a; the expected information gain of the question is
the Lindley measure of the information provided by an experiment [59, 60]. Under this reading, the instruction to name the missing dimensions and ask targeted follow-up questions is a greedy arg max IG(q) policy in disguise: a missing dimension is one whose answer distribution is unconstrained by E, so its entropy reduction is largest; the fixed one-point-per-term rule and its threshold then read as a coarse proxy, calibrated like the thresholds of Section 5.5. Sequential information collection with a stopping rule is the classical setting of Bayesian experimental design [59] and partially observable sequential decision-making [61, 62]; our COLLECT→DIAGNOSE gate (Section 3.5) is a two-action instance. Scope: the deployed system scores coverage, not IG—the expectation over answers requires a response model the current rule layer does not carry—so we claim the framework as a design rationale the implemented heuristic approximates, and as a measurable upgrade path (Section 6.5).
E Generation-budget engineering notes
Two engineering notes: (i) the initial DeepSeek-V4-Flash agent run (August 2026) used the /no_think soft trigger with a 16,384-token budget, and about 22–29% of cases still exhausted the budget (scored zero); (ii) in the September 2026 repetition campaign the API-side model behaved differently—the same trigger lengthened rather than shortened its reasoning—so flash repetitions use a 32,768-token budget without the trigger; DeepSeek-V4-Pro completes within the 16,384-token budget with only 1.5% empty outputs.
• Second drift event: silent endpoint upgrade (2026-09-19).
On this date the deepseek-v4-flash endpoint was silently redirected to a newer model: the returned model field reads deepseek-flash and the identifier deepseek-v4-flash no longer appears in the model list (it listed deepseek-v4-flash, deepseek-v4-pro, and a vision variant on 2026-09-06). Measurements taken after this date under that endpoint therefore reflect a different, reportedly stronger model generation and are not pooled with the C1/C2 campaigns reported in this paper; they are archived separately for completeness; an attempted budget-symmetrized zero-shot re-run of flash at 32,768 tokens fell to this event and is excluded from every analysis in this paper. This second event reinforces the deployment argument of Section 6.1: API-side model identity is not stable over time.
■ F Post-hoc budget neutralization: method, calibration, and sensitivity
• Why a proxy
The evaluation harness logged per-case scores, wall-clock time, and a truncated response tail, but not per-case token counts (the API usage field was received but not persisted). Budget consumption is therefore certified from wall-clock time. Timing includes network and retry overhead, so it overestimates generation time; any error biases against the certified subset, never in its favor.
• Calibration and the rate-free bound
Case-runs that exhaust the budget with empty visible content consumed exactly the budgeted tokens. On the C2 flash campaign such exhaustion took a median of 78.0 s/79.9 s (syn./pat.) at 8,192 tokens on the zero-shot side (n=363/397 empty-content case-runs) and 314.8 s/324.3 s at 32,768 tokens on the agent side (n=19/18)—two independent, separately counted anchors, each landing at 101–105 tokens/s (pooled interquartile range (IQR) 98–109), a throughput consistent with public figures for comparable mixture-of-experts (MoE) API endpoints; no usage record survived in the logs, so this figure is corroboration only. The certification itself is rate-free: the fastest zero-shot exhaustion took 66.9 s (syndrome) and 64.6 s (pathogenesis), hence any agent case-run faster than that bound consumed strictly fewer than 8,192 tokens, irrespective of throughput assumptions. Under this bound, 72% (syndrome) and 75% (pathogenesis) of terminating agent case-runs are certifiably below 8,192 tokens (median 49 s/51 s, i.e. ≈5,100–5,300 tokens at the calibrated rate). The earlier C1 campaign (August 2026) calibrates separately at ≈181 tokens/s.
• Subset definitions and results
Within the rescue-prone subset of Table 6, strict certification keeps cases whose agent side terminates below the rate-free bound in every repetition; typical certification keeps cases that terminate in every repetition with the median repetition below the bound. Table 12 reports both. For DS-Pro the rescue-prone zero-shot scores are zero by construction (single repetition; rescue-prone = unparseable), and its certified subsets are too small to be informative (n=2 syndrome, n=12
Table 12 Budget-certified rescue-prone subsets (DS-Flash, C2; paired per-case differences on the run-mean official score). Strict: agent terminates below the rate-free bound (66.9 s/64.6 s) in every repetition. Typical: agent terminates in every repetition with the median repetition below the bound.
| Certification | task | n | zero-shot | agent | Δ [95% CI] | Wilcoxon p |
|---|---|---|---|---|---|---|
| strict | syn. | 17 | 0.183 | 0.647 | +0.464 [+0.332, +0.597] | 3e-4 |
| strict | pat. | 7 | 0.089 | 0.326 | +0.237 [+0.140, +0.335] | 0.036 |
| typical | syn. | 136 | 0.138 | 0.507 | +0.369 [+0.327, +0.411] | 4e-22 |
| typical | pat. | 87 | 0.136 | 0.535 | +0.399 [+0.350, +0.449] | 2e-15 |
pathogenesis). The conclusion is insensitive to the certification variant: across thresholds (rate-free bound or the 78 s calibrated threshold), run aggregations (strictest or median repetition), and termination requirements, the syndrome gain on certified rescue-prone cases ranges from +0.36 to +0.46 and the pathogenesis gain from +0.24 to +0.40, all significant (full sensitivity matrix in the released outputs).
• Pathology of non-termination
Of 942 non-terminating zero-shot case-runs (flash: 366/600 syndrome and 403/600 pathogenesis, pooled over three repetitions; DS-Pro: 75/200 and 98/200 in its single repetition; per-repetition counts recomputable from the released per-case logs—note that Table 4's answer-extraction rates are first-repetition per-case, a different unit), only 14 left any visible text; the rest exhausted the budget inside the reasoning channel with empty content and cannot be classified post hoc. All 14 classifiable tails are coherent clinical analyses truncated mid-sentence—none triggers the runtime's repetition-loop detector (a 200-character tail-window recurrence check, C)—but this minority is not representative. Three indirect lines of evidence indicate that non-termination is pathological rather than a length shortfall. (i) Concise-mode burnout (strongest). In C1 the flash agent ran with the /no_think trigger (thinking disabled), yet 92 of 102 unparsed cases ran to the full 16,384-token budget without emitting a conclusion: their timings cluster at 121–159 s (p50 = 144 s), consistent with burning the full budget (≈90 s at the calibrated 181 tokens/s) plus overhead, and separated by a clean gap (no case in 60–120 s) from the 10 fast format failures (<60 s)—the bimodality itself indicates two distinct failure regimes rather than near-miss truncation. The pathology is non-convergence, not answer length: the protocol's terminating outputs are template-bounded (a ten-candidate matrix plus a one-line conclusion, far below 1k tokens), so a legitimate answer needing >16k tokens is not a tenable reading of a quarter of all cases—and the C1 data predate any endpoint drift. (ii) Short-answer burnouts. DS-Pro terminates with ≈100-character answers (median visible length), yet 36.5%/47.5% of its zero-shot case-runs burn the entire 8,192-token budget with empty content—non-termination occurs in the reasoning channel and is unrelated to answer length. (iii) Wall-hugging timings. Empty-content case-runs cluster tightly at the budget wall (e.g., 67–113 s on syndrome at 8,192 tokens), the signature of deterministic exhaustion rather than of long-but-converging answers.
• Reproducibility
The analysis scripts (L1_*.py) and machine-readable outputs are archived and released with the evaluation code.
G Belief-revision reading of the matrix protocol
The protocol’s components can be stated in the vocabulary of belief-revision theory [63,64], giving the engineering choices a logical anchor. The formal objects are the enumerated candidate set and the evidence items with their cell judgments:
Three correspondences hold. (i) Entrenchment: the row-aggregation rule—h is compatible iff and key evidence is supported—induces a total preorder on H with iff : candidates supported by more evidence are abandoned later, a computable instance of epistemic entrenchment [64]. (ii) Contraction: declaring a candidate incompatible is a contraction —removal without adding information—and the sufficiency rule (at least half of H contracted before a conclusion is licensed) reads as a minimal sufficient contraction condition, the one-half threshold being the cheap, tunable proxy calibrated in Section 5.5. (iii) Consistency: the conclusion cache and drift detection of Section 3.6 maintain a single stable conclusion across turns—the computable counterpart of the consistency requirement on revised belief states [63].
The scope of the analogy is narrow: H is a finite, explicitly enumerated hypothesis set, not a logically closed belief set, so the Alchourrón-Gärdenfors–Makinson (AGM) postulates [63] are inherited in weakened, computable form rather than as theorems. What the correspondence provides is the auditability vocabulary: every contraction step carries a cell-level justification, the entrenchment ordering is reconstructed from the logged matrix, and any auditor can re-run the contraction sequence and verify that the stopping condition held.
Proof of Proposition 1 (sketch). Under (ii)–(iii), write for each spurious candidate : a selection error requires for some . Under (iii)'s sign-symmetric error model, the per-item drift of is ; by (v) every term is non-negative and at least terms equal 2, so . The error model is load-bearing: under a fully adversarial error model, a zero-valued cell can carry expectation and a non-discriminating cell can drift as low as , degrading the bound to , which is non-vacuous only when (e.g., at ). The bound should therefore be read as a statement about the sign-symmetric model, with its sensitivity to error asymmetry made explicit. Each term lies in , so Hoeffding's inequality [46] gives , and a union bound over the spurious candidates yields Eq. (3); conditions (i) and (iv) ensure the true candidate remains in the pool and passes the key-evidence gate.
Four caveats delimit the result. First, conditional independence is idealized and load-bearing: cell judgments are produced by a single LLM in one pass, so errors correlate across rows and columns and can qualitatively violate independence, not just weaken the constants. Second, the bound controls selection given the pool, not the prior event , whose coverage depends on candidate-enumeration quality. Third, the accuracy parameter has not been estimated—no per-cell gold standard exists, and the execution audit of Section 5.8 measures protocol compliance, not cell-level correctness—so the bound's premise is unverified rather than validated; estimating via expert-annotated cell audits is future work. Fourth, assumptions (iii) (sign-symmetric errors) and (v) (discriminating evidence) are strong by design and stated explicitly: on real matrices with many zero cells , and without the symmetric model the adversarial bound of the proof sketch applies instead. The white-box property claimed throughout is auditability—errors become locatable, not impossible. We considered and discarded a Bayesian reading of the threshold itself: under hard elimination no principled crossing point emerges, and the operative question is empirical, answered by the ablation of Section 5.5.
The proposition is stated for the single-answer case—a unique selected against spurious competitors. The benchmark and the deployed protocol are multi-answer (gold sets of 1–4 syndromes and 1–6 pathogenesis; the protocol may emit several compatible candidates). The bound extends per gold candidate: for a gold set , the identical argument gives, for each ,
i.e., the single-answer statement is the special case. This form uses rather than : it is the perfect-discrimination special case, valid only where every evidence item discriminates every spurious candidate from every gold candidate—in general each gold carries its own and the exponent becomes . What genuinely requires mutual exclusivity is the mass-transfer intuition of Section 3.2, which motivates but does not enter the bound; a full multi-label bound under the official multi-select metric is future work.
• A numerical look at the operating point
At the benchmark’s and the deployed matrix’s typical evidence columns per case, the bound is positive only for ; at it evaluates to . Since is unmeasured and plausibly exceeds this range, the bound is vacuous at the operating point; we therefore report the proposition as a qualitative scaling statement—it identifies the two levers that matter (the evidence count and the cell accuracy , entering quadratically) and the direction of improvement—rather than a numerical guarantee.
H Bayesian reading of the dual anchors
The two anchors are, formally, the two factors of a posterior [65]. The data anchor supplies empirical conditionals estimated from the specialty case database (e.g., among white-coating samples about 47% are phlegm-heat harassing the heart; teeth-marked tongues occur in 72% of heart-gallbladder qi deficiency cases). Two corrections to the naive reading matter here. First, these conditionals are posterior fragments, not likelihoods: since , each already mixes the likelihood with the specialty sample's syndrome base rates. This is precisely why syndrome priors and explicit data-bias warnings are injected together with the conditionals: transporting from the 539-case specialty sample to a deployment population is the base-rate adjustment , which cannot even be stated without the prior terms. Second, the theory anchor is not a prior in disguise but a constraint set: rules such as a thick coating alone cannot exclude deficiency syndromes veto eliminations—they forbid driving a candidate to zero on a single sign—rather than contribute probability mass, mirroring the key-evidence gate and row aggregation of the matrix protocol. Combining the observed items under conditional independence gives the naive-Bayes pooling
Two connections tie this reading to the rest of the framework. (i) The matrix score of Section 3.2 is a ternary quantization of exactly this additive log-posterior update: thresholds each per-item log-posterior increment, trading granularity for cell-level auditability and for the bounded-error analysis of Proposition 1—whose conditional-independence assumption is the same assumption under which the pooling of Eq. (10) is exact. (ii) The reading clarifies what prompt-level injection offers over weight-level internalization: prior fragments, constraints, and weights all remain inspectable, physician-revisable data while the base model performs the integration. We state the scope explicitly: the framework does not claim that the model computes a calibrated posterior, only that the injected quantities decompose the decision into auditable prior, likelihood, and constraint terms whose provenance is logged [65].
Data and Code Availability
The TCMEval-SDT benchmark is publicly available (CC-BY 4.0) [39]. The following are released in a public repository (https://github.com/Silk-Road/falsification-guided-constrained-reasoning, archived at https://doi.org/10.5281/zenodo.23034930): all evaluation and analysis scripts for every reported campaign, the reconstructed 243-question misinformation evaluation set (rebuilt from the retained evaluation aggregate of [6], with its documented selection bias), and the per-case result logs. The reasoning protocol central to this work is fully specified in Section 3 (matrix construction, cell judgments, aggregation and sufficiency rules, and output format) at a level that permits independent reimplementation. The agent source code and prompt templates are not publicly released at this time because a patent application covering the mechanism is pending; they are available from the corresponding author on reasonable request subject to the patent process. The private medical datasets (the 8,147-record case database, the 539-case specialty dataset, and the 1,103-pair distilled dataset) cannot be released for privacy and licensing reasons.
■ Acknowledgements
The authors thank the creators of the TCMEval-SDT benchmark for making their data publicly available, and the developers of the DeepSeek, Kimi, and Qwen model families.
Competing interests
A patent application covering the agent mechanism described in this work is pending. The authors declare that they have no other competing interests or financial conflicts to disclose.
References
[1] Pearl J. Causality: Models, Reasoning and Inference, 2 edition. Cambridge University Press, 2009
[2] Geirhos R, Jacobsen J H, Michaelis C, Zemel R, Brendel W, Bethge M, Wichmann F A. Shortcut learning in deep neural networks. Nature Machine Intelligence, 2020, 2(11): 665–673
[3] Du M, He F, Zou N, Tao D, Hu X. Shortcut learning of large language models in natural language understanding. Communications of the ACM, 2024, 67(1): 110–120
[4] Huang J, Chen X, Mishra S, Zheng H S, Yu A W, Song X, Zhou D. Large language models cannot self-correct reasoning yet. In: The Twelfth International Conference on Learning Representations (ICLR). 2024
[5] Kamoi R, Zhang Y, Zhang N, Han J, Zhang R. When can LLMs actually correct their own mistakes? a critical survey of self-correction of LLMs. Transactions of the Association for Computational Linguistics, 2024, 12: 1417–1440
[6] Feng Y, Wang Y, Cui S, Faltings B, Lee M, Zhou J. Unraveling misinformation propagation in LLM reasoning. In: Findings of EMNLP. 2025. arXiv:2505.18555
[7] Farquhar S, Kossen J, Kuhn L, Gal Y. Detecting hallucinations in large language models using semantic entropy. Nature, 2024, 630(8017): 625–630
[8] Peirce C S. Deduction, induction, and hypothesis. Popular Science Monthly, 1878, 13: 470–482
[9] Dougrez-Lewis J, He Y, Li Y, Song H, Kochkina E, He S, Liakata M. Evaluating deductive and abductive reasoning in large language models. In: Findings of the Association for Computational Linguistics (ACL). 2025
[10] Wei J, Wang X, Schuurmans D, Bosma M, Ichter B, Xia F, Chi E, Le Q, Zhou D. Chain-of-thought prompting elicits reasoning in large language models. In: Advances in Neural Information Processing Systems (NeurIPS). 2022
[11] Wang X, Wei J, Schuurmans D, Le Q, Chi E, Narang S, Chowdhery A, Zhou D. Self-consistency improves chain of thought reasoning in language models. In: The Eleventh International Conference on Learning Representations (ICLR). 2023
[12] Lewis P, Perez E, Piktus A, Petroni F, Karpukhin V, Goyal N, Küttler H, Lewis M, Yih W t, Rocktäschel T, Riedel S, Kiela D. Retrieval-augmented generation for knowledge-intensive NLP tasks. In: Advances in Neural Information Processing Systems (NeurIPS). 2020
[13] He J, Guo Y, Lam L K, Leung W, He L, Jiang Y, Wang C C, Xing G, Chen H. OpenTCM: A GraphRAG-empowered LLM-based system for traditional Chinese medicine knowledge retrieval and diagnosis, 2025. arXiv:2504.20118
[14] Wang X, Zhou Y, Wang Q, Li Z, Huang R, Ji Z, Ma P, Wang S. Beyond content safety: Real-time monitoring for reasoning vulnerabilities in large language models, 2026. arXiv:2603.25412
[15] Yao S, Zhao J, Yu D, Du N, Shafran I, Narasimhan K, Cao Y. ReAct: Synergizing reasoning and acting in language models. In: The Eleventh International Conference on Learning Representations (ICLR). 2023
[16] Tang X, Zou A, Zhang Z, Li Z, Zhao Y, Zhang X, Cohan A, Gerstein M. MedAgents: Large language models as collaborators for zero-shot medical reasoning. In: Findings of the Association for Computational Linguistics (ACL). 2024, 599–621
[17] Kim Y, Park C, Jeong H, Chan Y S, Xu X, McDuff D, Lee H, Ghassemi M, Breazeal C, Park H W. MDAgents: An adaptive collaboration of LLMs for medical decision-making. In: Advances in Neural Information Processing Systems (NeurIPS). 2024, 79410–79452
[18] Li J, Wang S, Zhang M, Li W, Lai Y, Kang X, Ma W, Liu Y. Agent Hospital: A simulacrum of hospital with evolvable medical agents, 2024. arXiv:2405.02957
[19] Schmidgall S, Ziaei R, Harris C, Reis E, Jopling J, Moor M. Agent-Clinic: A multimodal agent benchmark to evaluate AI in simulated clinical environments, 2024. arXiv:2405.07960
[20] Yang Y, Ma T, Li R, Zheng X, Shan G. JingFang: An LLM-based multi-agent system for precise medical consultation and syndrome differentiation in traditional Chinese medicine, 2025. arXiv:2502.04345
[21] Wang X, Wang Y, Dong W, Guo S, Wang K, He S, Wang Y, Li H, Lyu J, Liu M, Zhang L, Zhu Y, Peng Y, Ma L, Li Y. TCM-Agent: Advancing network pharmacology and herbal medicine discovery with LLM-based multi-agent systems. Journal of Pharmaceutical Analysis, 2026. doi:10.1016/j.jpha.2026.101581
[22] Xu L, Guo Y, Chen M, Dun Z, Qian Y, Lu A Y, Li S, Liu L. CORE-Acu: Structured reasoning traces and knowledge graph safety verification for acupuncture clinical decision support, 2026. arXiv:2603.08321
[23] Johnson H M, Seifert C M. Updating accounts following a correction of misinformation. Journal of Experimental Psychology: Learning, Memory, and Cognition, 1998, 24(6): 1483–1494
[24] Lewandowsky S, Ecker U K H, Seifert C M, Schwarz N, Cook J. Misinformation and its correction: Continued influence and successful debiasing. Psychological Science in the Public Interest, 2012, 13(3): 106–131
[25] Swire-Thompson B, Dobbs M, Thomas A, DeGutis J. Memory failure predicts belief regression after the correction of misinformation. Cognition, 2023, 230: 105276
[26] Lin H T, Huang P C, Ku C T, Hsu C, Shieh P X, Kang Y. Towards simulating social influence dynamics with LLM-based multi-agents. In: Proceedings of the IEEE International Conference on Information Reuse and Integration for Data Science (IRI). 2025. arXiv:2507.22467
[27] Zhao H, Li J, Wu Z, Ju T, Zhang Z, He B, Liu G. Reasoning or rambling? exploring the effect of thinking on agent persuasion, 2025. arXiv:2509.21054
[28] McGuire W J. Inducing resistance to persuasion: Some contemporary approaches. In: Berkowitz L, ed, Advances in Experimental Social Psychology, Vol. 1, 191–229. Academic Press, 1964
[29] Banas J A, Rains S A. A meta-analysis of research on inoculation theory. Communication Monographs, 2010, 77(3): 281–311
[30] Linden v. d S, Maibach E, Cook J, Leiserowitz A, Lewandowsky S. Inoculating against misinformation. Science, 2017, 358(6367): 1141–1142
[31] Lewandowsky S, Linden v. d S. Countering misinformation and fake news through inoculation and prebunking. European Review of Social Psychology, 2021, 32(2): 348–384
[32] Banas J A, Miller G. Inducing resistance to conspiracy theory propaganda: Testing inoculation and metainoculation strategies. Human Communication Research, 2013, 39(2): 184–207
[33] Biddlestone M, Roozenbeek J, Linden v. d S. Once (but not twice) upon a time: Narrative inoculation against conjunction errors indirectly reduces conspiracy beliefs and improves truth discernment. Applied Cognitive Psychology, 2023, 37(2): 304–318
[34] Petty R E, Cacioppo J T. The elaboration likelihood model of persuasion. Advances in Experimental Social Psychology, 1986, 19: 123–205
[35] Ziabari A S, Ghazizadeh N, Sourati Z, Karimi-Malekabadi F, Piray P, Dehghani M. Reasoning on a spectrum: Aligning LLMs to System 1 and System 2 thinking, 2025. arXiv:2502.12470
[36] Yue W, others. TCMBench: A comprehensive benchmark for evaluating large language models in traditional Chinese medicine, 2024. arXiv:2406.01126
[37] Ren M, others. TCM-SD: A benchmark for syndrome differentiation. In: Proceedings of CCL. 2023
[38] Kong S, others. MTCMB: A multi-task benchmark framework for evaluating LLMs on knowledge, reasoning, and safety in traditional Chinese medicine, 2025. arXiv:2506.01252
[39] Wang Z, Hao M, others. TCMEval-SDT: A benchmark dataset for syndrome differentiation thought of traditional Chinese medicine. Scientific Data, 2025. PMID: 40082443
[40] Yang S, Zhao H, Zhu S, Zhou G, Xu H, Jia Y, Zan H. Zhongjing: Enhancing the Chinese medical capabilities of large language model through expert feedback and real-world multi-turn dialogue. In: Proceedings of the AAAI Conference on Artificial Intelligence. 2024, 19368–19376
[41] Chen J, others. HuatuoGPT-II, one-stage training for medical adaption of large language models. In: Conference on Language Modeling (COLM). 2024. arXiv:2311.09774
[42] Dai Y, Shao X, Zhang J, others. TCMChat: A generative large language model for traditional Chinese medicine. Pharmacological Research, 2024, 210: 107530
[43] Wei S, Peng X, Wang Y, others. BianCang: A traditional Chinese medicine large language model. IEEE Journal of Biomedical and Health Informatics, 2025
[44] Wang X, others. Qibo: A large language model for traditional Chinese medicine. Expert Systems with Applications, 2025
[45] Wahlheim C N, Alexander T R, Peske C D. Reminders of everyday misinformation statements can enhance memory for and beliefs in corrections of those statements in the short term. Psychological Science, 2020, 31(10): 1325–1339
[46] Hoeffding W. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 1963, 58(301): 13–30
[47] Lewis D D, Gale W A. A sequential algorithm for training text classifiers. In: Proceedings of the 17th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval. 1994, 3–12
[48] Settles B. Active learning literature survey. Technical Report Computer Sciences Technical Report 1648, University of Wisconsin–Madison, 2009
[49] Li C, Fang Z, eds. Traditional Chinese Medicine Diagnostics, 5 edition. Beijing: China Press of Traditional Chinese Medicine, 2021. (In Chinese)
[50] Pnueli A. The temporal logic of programs. In: Proceedings of the 18th Annual Symposium on Foundations of Computer Science (SFCS). 1977, 46–57
[51] Chinese Pharmacopoeia Commission. Pharmacopoeia of the People's Republic of China, Part I, 2020 edition. Beijing: China Medical Science Press, 2020. (In Chinese)
[52] Yang A, others. Qwen3 technical report, 2025. arXiv:2505.09388
[53] DeepSeek-AI. DeepSeek model series (deepseek-v4-flash, deepseek-v4-pro). https://api.deepseek.com, 2026. Official API, accessed
2026-08-25 to 2026-09-16. Verifiable identifiers: the API model response field read deepseek-v4-flash through 2026-09-18 and deepseek-flash from 2026-09-19 onward (silent endpoint upgrade, documented in E)
[54] Moonshot AI. Kimi model series (kimi-k3, coding API, temperature fixed at 1.0). https://api.kimi.com, 2026. Official coding API, accessed 2026-08-25 to 2026-09-12
[55] Shao Z, Wang P, Zhu Q, Xu R, Song J, Bi X, Zhang H, Zhang M, Li Y K, Wu Y, Guo D. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, 2024. arXiv:2402.03300
[56] DeepSeek-AI. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning, 2025. arXiv:2501.12948
[57] Mannby A, Wang K. Evaluating manipulation and error propagation in agent-to-agent interactions. Technical report, Margins of Intelligence (non-archival web publication), 2026. https://marginsofintelligence.com/research-logs/agent-to-agent-manipulation/
[58] Zhang Z, Zhang Y, Li L, Gao H, Wang L, Lu H, Zhao F, Qiao Y, Shao J. PsySafe: A comprehensive framework for psychological-based attack, defense, and evaluation of multi-agent system safety. In: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL, Long Papers). 2024, 15202–15231
[59] Lindley D V. On a measure of the information provided by an experiment. The Annals of Mathematical Statistics, 1956, 27(4): 986–1005
[60] Shannon C E. A mathematical theory of communication. Bell System Technical Journal, 1948, 27(3): 379–423
[61] Kaelbling L P, Littman M L, Cassandra A R. Planning and acting in partially observable stochastic domains. Artificial Intelligence, 1998, 101(1–2): 99–134
[62] Hauskrecht M, Fraser H. Planning treatment of ischemic heart disease with partially observable Markov decision processes. Artificial Intelligence in Medicine, 2000, 18(3): 221–244
[63] Alchourrón C E, Gärdenfors P, Makinson D. On the logic of theory change: Partial meet contraction and revision functions. Journal of Symbolic Logic, 1985, 50(2): 510–530
[64] Gärdenfors P, Makinson D. Revisions of knowledge systems using epistemic entrenchment. In: Proceedings of the 2nd Conference on Theoretical Aspects of Reasoning about Knowledge (TARK). 1988, 83–95
[65] Berger J O. Statistical Decision Theory and Bayesian Analysis, 2 edition. New York: Springer-Verlag, 1985