
Zero-Hallucination Negotiation Briefs & Anti-Sycophancy Roleplay on AWS
Standard LLMs make terrible negotiation sparring partners because RLHF trains them to be polite and agreeable—caving in after two turns. When building an enterprise B2B Negotiation Preparation & Roleplay System on Amazon Bedrock, we had to solve three classic production failure modes: hallucinated ERP financials from vector RAG, "Confused Deputy" cross-tenant CRM risks, and RLHF sycophancy in buyer simulations.
How we combined identity-scoped CRM/ERP retrieval, immutable citation verification with Amazon Bedrock Guardrails, and a decoupled opponent state machine to build an enterprise negotiation preparation and sparring platform.
The Problem: Why Most Enterprise "Copilots" Fail in High-Stakes B2B Negotiations
When strategic Account Managers prepare for multi-million-euro supply and service renewals, they have to synthesize scattered evidence across at least three silos:
- ERP Commercial History: 24-month order volumes, gross margin trends, current discount tiers, and on-time delivery (OTD) performance.
- CRM Qualitative Context: Meeting notes, buyer personas, past concessions, and open quality or SLA tickets.
- Contracts & Market Intelligence: Master Supply Agreement (MSA) price-escalation clauses and raw material price indices.
We built a Multi-Agent Negotiation Preparation & Roleplay System on AWS (Amazon Bedrock, AgentCore, Knowledge Bases, and Guardrails) designed to generate cited negotiation briefs, model Best/Target/Walk-Away scenarios, and let Account Managers rehearse against an AI buyer persona before walking into the customer meeting.
During implementation, we had to solve three classic failure modes that sink naive agent builds:
- The Vector Math Trap: Using semantic vector search over tabular ERP data causes hallucinated revenue and margin totals.
- The "Confused Deputy" Security Risk: An agent with broad CRM read permissions can accidentally leak Customer A's pricing concessions to an Account Manager assigned only to Customer B.
- RLHF Sycophancy in Roleplay: Out-of-the-box LLMs are post-trained to be polite, helpful, and agreeable—which means in a naive negotiation simulation, the AI buyer caves in and accepts a price increase after two turns!
Here is how we engineered around all three challenges in production.
1. End-to-End Multi-Agent Architecture on AWS
We separated the system into two distinct execution phases—Phase 1: Identity-Scoped Cited Brief Generation and Phase 2: Real-Time Adversarial Roleplay & Out-of-Band Coaching—backed by an asynchronous LLMOps Evaluation & Observability Plane.
2. Solving the "Confused Deputy" Problem & The Vector Math Trap
Hybrid Evidence Collection: Deterministic Baseline + Dynamic Planner
When an Account Manager selects a target account and states their negotiation objective ("Renew our 24-month specialty equipment service contract and defend a 4% inflation adjustment"), we don't leave evidence retrieval up to open-ended LLM guesswork.
Instead, we combine a Deterministic Baseline Pre-Fetch with Dynamic Query Decomposition:
- Zero-Trust Identity Scoping: The orchestrator extracts
authorized_account_idsdirectly from the caller's cryptographically signed JWT—never from an LLM-controlled tool argument. That verifiedaccount_idis injected deterministically in Python into every downstream SQL query, CRM API call, and Bedrock Knowledge BaseRetrievalFilter:
# Enforced in Python middleware—never controlled by prompt instructionskb_acl_filter = { "andAll": [ {"equals": {"key": "account_id", "value": jwt_context.verified_account_id}}, {"equals": {"key": "is_active", "value": True}}, ]}- Separating SQL Aggregation from Unstructured RAG: We never embed tabular ERP rows into a vector database. A deterministic SQL/OData tool queries exact 24-month revenue, gross margin %, discount tiers, and on-time delivery (OTD) metrics, serializing the verified summary table as
[SRC_ERP_01].
- Targeted Knowledge Base Retrieval: Simultaneously, a Planner step queries Amazon Bedrock Knowledge Bases (
overrideSearchType="HYBRID"on OpenSearch Serverless + Cohere Rerank 3.5) to pull relevant MSA contract clauses (e.g., price-indexation caps) and external commodity indices.
3. Enforcing "No Source, No Claim" with Immutable Citations
Account Managers will immediately abandon a preparation tool if even one discount figure or SLA metric is hallucinated. To guarantee verifiable briefs, we implemented a 3-layer citation architecture:
- Immutable Source Identifiers (
[SRC_id:sha256:page]): Every retrieved CRM note, ERP summary table, and contract chunk is assigned an immutable identifier tied to its document content hash and page number (e.g.,[SRC_MSA_8f9a_p14]). Even if a contract is amended months later, clicking that citation in an archived brief always resolves to the exact frozen text the agent saw at generation time.
- Clause-Level Structured Citations:
Using Claude Sonnet on Bedrock (with a
cachePointplaced immediately after the evidence dossier), the generator outputs structured claims containingclaim_text,source_ids, andverbatim_supporting_span, modeling three explicit negotiation scenarios: Best Case, Target Case, and Walk-Away (BATNA) alongside a Give–Get Trade-Off Matrix (e.g., only concede 2% on unit price in exchange for a 24-month volume commitment).
- Synchronous Verification via Bedrock Contextual Grounding:
Every generated brief passes through Amazon Bedrock Guardrails with Contextual Grounding Checks enabled (
GROUNDING >= 0.85,RELEVANCE >= 0.80) alongside Denied Topics configured to block any antitrust/competitor price-signaling prompts. Any sentence that fails the grounding entailment check against its cited[SRC_i]chunk is automatically stripped or regenerated before reaching the UI.
Citation & Grounding Benchmark (40-Brief Golden Evaluation Set)
Pipeline Configuration | Citation Recall (Claims Entailed) | Citation Precision (No Citation Stuffing) | Unsupported Numerical Claims |
|---|---|---|---|
Standard Prompting ("Cite your sources") | 78.4% | 64.0% | 6.2% |
Structured [SRC_i] Schema + Verbatim Quote Extraction | 93.5% | 88.2% | 1.4% |
Structured Schema + SQL/RAG Separation + Bedrock Contextual Grounding ($\ge 0.85$) | 99.1% | 94.6% | 0.0% |
4. Curing RLHF Sycophancy: The 3-Part Roleplay State Machine
When we first tested a single-prompt Customer Buyer Agent ("You are a tough procurement manager negotiating a renewal..."), the simulation felt fake within three turns. Because instruction-tuned LLMs are heavily optimized via RLHF to be cooperative, whenever the human Account Manager pushed back firmly, the AI buyer immediately apologized and accepted the price increase.
To build a sparring partner that behaves like a real industrial procurement lead, we decoupled the roleplay loop into three independent components:
1. Deterministic Opponent State Tracker ( DynamoDB / AgentCore Memory )
Instead of relying on the LLM's context window to "remember to be tough," a deterministic state machine tracks the buyer's hidden constraints and updates after every turn:
- Grounded Persona & Grievances: Initialized from real CRM data (e.g., "Lead Procurement Manager focused on dual-sourcing; frustrated by two late shipments in Q2").
- Conditional Concession Rules: The buyer's
concession_unlockedstate remainsFalseuntil the Account Manager satisfies specific conditions—specifically, citing verified evidence from the dossier (such as the 99.8% equipment uptime record) AND proposing a structured Give–Get trade-off rather than a unilateral demand.
2. Streamed Buyer Dialogue Generator ( ConverseStream + cachePoint )
Conditioned on the current
OpponentState , the Buyer Agent generates its response via bedrock_runtime.converse_stream() (delivering < 750 ms Time-to-First-Token). Because the 5,000-token account dossier and persona instructions sit behind a Bedrock cachePoint , multi-turn roleplay sessions achieve an 86% input token cache hit rate. An output guardrail ensures the simulation never leaks internal margin floors.3. Out-of-Band Coach / Critic Agent
A separate asynchronous Coach Agent evaluates the Account Manager's turn against a structured negotiation rubric without polluting the buyer's persona:
from pydantic import BaseModel, Fieldfrom typing import Literal
class BuyerTurnState(BaseModel): resistance_level: Literal["HARD_HOLD", "CONDITIONAL_OPEN", "READY_TO_CLOSE"] current_price_demand_delta_pct: float = Field(description="Buyer's current demanded discount/cap") objection_raised: str concession_trigger_met: bool = Field( description="True ONLY if AM cited verified [SRC_x] evidence AND offered a Give-Get trade-off" )
class CoachTurnEvaluation(BaseModel): did_am_anchor_effectively: bool cited_evidence_ids_used: list[str] unilateral_concession_warning: bool = Field( description="True if the AM offered a discount without asking for volume/term in return" ) tactical_feedback_one_liner: str
5. Evaluating the Evaluator: Calibrating LLM-as-a-Judge with Cohen's Kappa ($\kappa$)
How do you evaluate a multi-turn negotiation brief and roleplay system in CI/CD when outputs are non-deterministic?
Early on, we noticed that asking an LLM judge to rate brief or roleplay quality on a
1–10 scale suffered from severe verbosity bias and low inter-rater consistency. We replaced Likert scales with decomposed binary ( Pass/Fail ) checklists (e.g., 1. Did the brief surface the open Q2 SLA ticket? [Y/N], 2. Are all BATNA scenarios backed by [SRC_i] tags? [Y/N], 3. Did the Buyer Agent hold its target price when the AM made an uncited claim? [Y/N]).To ensure we could trust the automated judge in our AWS CodePipeline regression gates, we manually graded 40 test runs and measured alignment using Cohen's Kappa ($\kappa$) (which corrects for chance agreement on imbalanced pass/fail distributions, plus pairwise position-swapping to eliminate position bias):
- Holistic 1–5 Scale Judge: $\kappa = 0.41$ (Moderate/Noisy — unsuitable for CI gating)
- Decomposed Binary Checklist Judge (with Reference Facts): $\kappa = 0.82$ (Strong human alignment — deployed as our automated CI/CD release gate)
Key Architectural Takeaways
- Enforce Security and Math Deterministically: Never trust a system prompt to enforce CRM tenant isolation or aggregate ERP financials. Inject verified JWT identities into tool/KB pre-filters in Python, and use parameterized SQL for every number.
- Make Citations Immutable and Mathematically Verified: Combining immutable
[SRC_id:hash]identifiers with Amazon Bedrock Guardrails Contextual Grounding eliminates hallucinated claims before they ever reach the user.
- Cure Roleplay Sycophancy with External State: If you want an AI agent to negotiate, debate, or stress-test a human user, separate the stateful rule tracker from the dialogue generator—and keep the coach/evaluator in a separate agent loop.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article