arXiv:2610.29669cs.DBOct 2026

Manuscript Offprint

arXiv:2610.29669

Conflicted Records: Typed Adversarial Contracts for Auditable LLM Output Quality Enforcement

Kardelen Subasi, Jarosław A. Chudziak

Kardelen Subasi ID^{ID} and Jarosław A. Chudziak ID^{ID}

Warsaw University of Technology, Warsaw, Poland

{kardelen.subasi.stud, jaroslaw.chudziak}@pw.edu.pl

Abstract. LLM-generated records increasingly populate production information systems where they are treated as data assets subject to the same quality expectations as records from operational databases. A single such record can simultaneously satisfy and violate a quality rule: a grounded fact adjacent to a hallucination, a useful answer adjacent to a stereotype. Classical data cleaning cannot resolve this because the two judgments are incompatible over the same span; a single LLM judge cannot either, since it shares the training biases that produced the conflict. Existing interventions such as prompt engineering, chain-of-thought, and RLHF reduce surface error rates but provide no audit trail and cannot distinguish genuine remediation from blanket suppression. The question is whether a deterministic check over structured inter-agent records can catch the defects that referential checks alone miss.

We present BiasGuard-D: two adversarial roles drawn from distinct model families exchange typed claim documents, a three-model quorum adjudicates by majority vote, and a combined referential-plus-semantic invariant validates the verdict. The semantic component fires on verdicts referential checks miss; removing the iterative loop drops invariant satisfaction sharply. The deliberation layer transfers from stereotype to hallucination remediation on HaluEval QA with only role-framing changes, raising right-answer recovery by 49 percentage points; the triage gate required a cross-family second auditor to maintain recall on objective hallucination. Every claim, vote, and instruction is stored as a typed record giving operators a provenance trail auditable under emerging AI regulations.

Keywords: LLM Output Quality Enforcement · Typed Adversarial Contracts · Multi-agent Systems · Bias Remediation · Hallucination Detection · Large language models · Artificial intelligence.

1 Introduction

LLM outputs are no longer transient. They are persisted into search indexes, written into knowledge bases, embedded in recommendation feeds, and surfaced through customer-facing information systems where they act as data [17,8]. As deployments scale into regulated domains, operators need more than a quality score; they need to know why an output passes or fails a constraint, which span

Subasi and Chudziak

triggered the verdict, and whether the remediation instructions are internally consistent.

What makes this hard is that an LLM-generated record can satisfy and violate a quality rule in the same sequence of text. A hiring recommendation may accurately ground its reasoning in a candidate's qualifications while simultaneously making an age generalisation the input does not support. A knowledge-base entry may pair a faithfully lifted fact with one the model invented. In neither case are the two things in separate fields or even separate sentences; they share the same characters. Classical data cleaning, which reads a record and refines it, cannot resolve this, because the two issues require opposite judgments about the same text. A single LLM judge cannot either, since it shares the same training biases that produced the conflict [15,25,26].

The question this paper asks is: can a deterministic check over structured inter-agent records catch the quality defects that referential checks alone miss, and do those records carry enough information to audit pipeline quality without calling an additional model? We evaluate this across three dimensions: whether a semantic check catches a recurring class of contradictions that referential checks miss; whether stored records carry enough structure to tell genuine resolution from suppression without calling a further model; and whether the deliberation layer transfers across different quality domains with only role-framing changes.

We address this by treating enforcement as a data-quality problem rather than a single-judge problem: two adversarial roles with opposing biases produce structured claims about specific text spans; a multi-family quorum adjudicates; and a deterministic invariant validates the result before any downstream action. Records with a consistent verdict pass with a full provenance trail; contradictory verdicts are quarantined rather than auto-repaired, because auto-repair would bring back the model judgment the architecture is designed to avoid. The experimental study confirms all three evaluation questions and surfaces a finding we did not anticipate: the iterative deliberation loop matters far more than any individual model choice, and the audit trail is what makes this visible.

This paper makes three contributions. We present a five-stage typed adversarial contract pipeline in which two adversarial roles from distinct model families exchange typed claim documents over bounded peer-to-peer rounds, a three-model quorum adjudicates, and a combined deterministic invariant ( Iref∧IsemI_{ref} \wedge I_{sem}) validates each verdict, making the full lineage from any instruction back to its originating span queryable as data. An ablation shows that the iterative deliberation loop accounts for most of the invariant-satisfaction gain: removing the loop drops satisfaction by nearly 30 percentage points on the BBQ Disability benchmark, while schema-level coordination metrics stored as typed records make the degradation auditable without calling an additional model. Finally, we provide cross-domain portability evidence showing that the deliberation layer, data model, and invariant transfer from subjective stereotype remediation to objective hallucination remediation by changing only role-framing prompts; the triage gate required a cross-family second auditor to maintain recall on objective hallucination, isolating the gate as the one domain-sensitive component.

Figure

Fig. 1. A conflicted record (input): co-located spans require opposite actions (one contains demographic reasoning that must be reframed or dropped; another is contextually grounded and must be preserved) that a single LLM judge cannot resolve consistently and returns no verdict. BiasGuard-D returns a typed per-span instruction record (output) with a full provenance trail.

Section 2 reviews related work and shows where existing approaches fall short. Section 3 defines the problem and describes the data model, pipeline, and invariant. Section 4 evaluates the system on stereotype and hallucination benchmarks; Sections 5 and 6 discuss the findings, limitations, and what the provenance trail offers in practice. Source code, configuration, and run artefacts are at https://github.com/ksubasi/biasguard-d.

References (24)