Chiral Leaks: Contextual Integrity for Agents in Enantioselective Synthesis

A molecule and its mirror image can be a medicine and a poison; a fact and the same fact told to a different person can be a collaboration and a theft. Enantioselective synthesis — the craft of forcing a flat, symmetric chemical intermediate to react from one face only, so that a single handed product forms instead of a 50:50 mixture — is the source of some of the most valuable and most jealously guarded knowledge in the chemical industries: which chiral ligand, which engineered enzyme pocket, which catalyst lineage delivered 97% enantiomeric excess. Meanwhile, language-model agents are moving into exactly the workflows where that knowledge lives: mining reaction procedures from literature, planning routes, and tuning reaction conditions, as in the ChemMiner extraction pipeline and the MO-LLM reaction optimizer. These agents will be told proprietary catalyst designs by their own labs, and then asked about them by other people — reviewers, contract partners, competitors.

The existing privacy machinery for chemical machine learning is built for the wrong threat. Federated retrosynthesis learning keeps raw reaction records inside each company's servers and shares only model weights, treating privacy as a question of data custody rather than of who is allowed to learn what, when, and from whom. Contextual integrity (CI), the theory that a disclosure is a violation only when the information flow crosses its proper social context — captured in a five-part tuple of sender, recipient, subject, attribute, and transmission principle — was built precisely for that distinction. This proposal brings CI to autonomous agents in enantioselective synthesis: we will show that their failures have a chemistry-specific structure, measure those failures with a reconstruction-based leakage metric, and build a defense that releases exactly the attributes a given collaboration license permits.

Core Claim

The claim is twofold. First, CI failures in chemistry agents are not a simple port of the personal-privacy failures studied on benchmarks like PrivacyLens; they have three structure-specific mechanisms. One is granularity: the sensitive unit is not a person's profile but an attribute such as "the ligand's absolute configuration" or "the ee achieved at generation seven of the catalyst evolution campaign," and models that recognize the right domain still dump the whole history, the failure mode CIMemories documented at up to 69% attribute-level violation. The second is compositional inference: several individually innocuous disclosures — a yield trajectory, a selectivity rationale, an ee value — can jointly pin down a proprietary catalyst without it ever being named, just as PrivacyLens showed that stripping explicit confidential markers does not stop inference. The third is the institutional wrapper: an adversary framing extraction as a routine professional request, the scenario type where the generative CI benchmark saw appropriateness collapse to 41%, and to 11% for the most sensitive attributes. Second, a defense built around attribute-level release policies and role-based reasoning will beat defenses built for personal information, at equal task helpfulness, because it targets these three mechanisms directly.

Research Program

The first deliverable is a benchmark, StereoCI, that instantiates the CI tuple for synthetic chemistry. Every scenario pairs a data-holding agent — a lab assistant carrying persistent memory of an asymmetric-synthesis campaign — with a requester whose role, institutional affiliation, and authorization vary. The public chemical substrate is drawn from published reactions: nickel-catalyzed Markovnikov fluoroalkylation of 1,3-dienes with P-chiral ligands, the paired nickel-catalyst/chiral Brønsted acid hydrophosphinylation of Long et al., photoenzymatic radical couplings and stereoselective cyano translocations in engineered flavin pockets, halohydrin dehalogenase kinetic resolutions, and the de novo heme-binding proteins Huang et al. evolved for enantioselective geranylation. On top of this public layer we construct synthetic proprietary campaigns — mutation lineages extending those published catalysts, with ee trajectories, loadings, and failed variants — so that ground truth for what is confidential and what is public is fully known to us and unknown to the models. Memory profiles follow the CIMemories design of roughly 150 attributes per campaign across nine domains, and request scenarios follow the Type I–IV structure of the generative CI benchmark, including a Type III institutional-wrapper condition in which the requester cites a legitimate-sounding journal or consortium but lacks authorization. A dedicated compositional probe asks the adversary's questions only about derived quantities.

The second deliverable is the measurement layer. Alongside the three metrics used by the CDI defense work — privacy preservation, helpfulness, and appropriate disclosure — and CIMemories' violation/completeness pair, we introduce a reconstruction metric: after the interaction, an adversary model receives the full transcript and ranks a candidate list of catalysts by how likely they are to be the lab's held-out design. The leak score is

$$L_k \;=\; \Pr\!\left[\, \text{true catalyst} \in \text{adversary's top-}k \,\mid\, \text{transcript}\,\right],$$

with $k$ small (1, 5, and 25) and the candidate list drawn from the published catalyst space plus the decoy lineages. This turns "the agent leaked something" into a falsifiable, magnitude-carrying claim, and it is the metric that redaction-style defenses should fail, because no single disclosed attribute is the leak.

The third deliverable is the defense: a role-conditioned instructor model, trained with Group Relative Policy Optimization on truncated failure trajectories in the style of CDI, that inspects each incoming request and injects context-aware instructions into the agent's prompt before it acts. Two ingredients are new. The instructor emits an attribute-level release policy compiled from the transmission principle — the agent is told it may disclose exactly the licensed attributes (say, the published precedent and the reaction class) and must reformulate around the unlicensed ones (the ligand enantiomer, the ee trajectory) — which attacks granularity dumping at the unit where it actually occurs. And the instructor frames the agent's decision in identity terms ("what would a chemist in this institutional role share under this agreement") rather than utility terms, because the generative CI benchmark found that rational-choice logic — treating disclosure as the fastest path to the goal — drove appropriateness to 0% in the hardest scenario type, while identity-driven logic held up. For efficiency we route requests through a lightweight latent probe in the PrivGate style, so only high-risk requests pay for the full instructor; PrivGate's numbers suggest this keeps token overhead near 16% instead of the roughly 200% cost of auditing every request with full chain-of-thought reasoning. Finally, we test robustness: since the defense lives in an external instructor and gate rather than in the base model's late-layer weights, we predict it survives the benign fine-tuning that Privacy Collapse showed destroys internal privacy representations (an average 70.2% drop in privacy awareness, with GPT-4o-mini collapsing by 98.1%).

Baselines

The naive reference point is the unmodified agent: a frontier model with the campaign memory loaded and no privacy instruction of any kind. On the CDI scenario suite the comparable no-defense setting gave 35.5% privacy preservation at 81.2% helpfulness, and on PrivacyLens, GPT-4 leaked in 25.68% of tool-use actions despite 98.99% accuracy on privacy quiz questions; these numbers set the scale of the problem we expect to reproduce on chemical scenarios, where no reported result found on Lacuna for any privacy defense evaluated on chemical-knowledge disclosure tasks.

The strongest existing competitor is CDI, the GRPO-trained instructor model, whose optimized setting reached 94.2% privacy preservation, 80.6% helpfulness, and 86.5% appropriate disclosure on its 115-scenario benchmark. We will port it unchanged: same base agent, same training recipe, but trained and evaluated on StereoCI scenarios instead of personal-information ones, with the same RL step budget and the same number of failure trajectories our own instructor consumes, so the comparison isolates our two chemistry-specific ingredients rather than compute or data volume. A second strong competitor is PrivGate ported to StereoCI, since its latent gating delivered a 62.6% average relative leakage reduction at 15.9% token overhead on its own benchmarks; we run its probe retrained on our scenario set. Weaker-but-informative baselines run under a matched prompt-engineering search budget: a system-prompt-only defense (PrivacyLens showed privacy-enhancing prompts still leak in over 25% of tool-use cases), and a passive output-veto guardrail (on CDI's suite, optimized guarding raised preservation to 83.6% but crushed helpfulness to 69.0%, against 80.6% for proactive instruction). Beating CDI means holding helpfulness within two points of its ported score while cutting the reconstruction leak score $L_5$ substantially below what its port achieves — a defense that wins only on the older style of violation metric, while the adversary still reconstructs the catalyst, does not count as a win.

Two ablations isolate the proposal's key ingredients. One removes the attribute-level release policy, leaving role framing but allowing whole-domain allow/deny decisions; if compositional-inference leaks persist, the attribute granularity was doing the work. The other removes identity framing in favor of a utility-framed instructor; the generative CI benchmark's 0%-appropriateness result under rational-choice logic predicts this ablation collapses in Type III scenarios.

Why not just…?

Why not just redact proprietary fields with rules? Rule-based filters treat each attribute as independently sensitive, which is exactly the assumption compositional leakage breaks: the yield trajectory plus the ee plus the reaction class can identify a catalyst that was never named, the same way PrivacyLens' "Surgery Kit" condition showed leaks persist after explicit sensitive markers are removed. Our Experiment 3 makes this concrete — the redaction baseline will show near-zero named-attribute violations while the reconstruction metric stays high.

Why not just prompt the agent to be private? The literature is unambiguous that this both under- and over-shoots: privacy-enhancing prompts still leaked in over 25% of PrivacyLens tool-use episodes, and CIMemories showed the conservative posture of GPT-4o bought 14.8% violations at the cost of 43.9% completeness — the assistant stops being useful. The prompt baseline is included with a matched tuning budget, and we expect it to lose on both sides at once on StereoCI, where the licensed and unlicensed attributes sit inside the same sentence.

Why not just port CDI or PrivGate as-is? This is the real threat, and we do not argue around it: both are strong, and porting them is our primary baseline. Our claim is only that they were trained on personal-information failures, where the sensitive unit is a person's attribute, and that StereoCI's granularity and compositional probes stress dimensions they were never optimized for — CIMemories' 69% attribute-level violation rate and the 41% Type III collapse suggest where generic defenses strain. If the ported CDI matches our instructor on $L_5$ at equal helpfulness, the contribution honestly narrows to the benchmark and the negative finding, and we will report it that way; the attribute-policy ablation is what settles which component carried any difference.

Why not just use federated learning, as CKIF already does for chemistry? CKIF solves a different problem: it lets labs co-train retrosynthesis models without transmitting raw reaction records, an offline custody question. It cannot govern an interactive agent choosing what to say to a contract partner in a conversation — the weights can stay home while the assistant still describes the ligand. The two are complements: a CI-governed agent could even decide what its lab contributes to a CKIF-style federation, but that extension is out of scope here.

Proposed Experiments and Decisive Checks

Experiment 1 establishes the gap: run unmodified frontier agents on StereoCI's Type I–IV scenarios, measuring privacy preservation, helpfulness, appropriate disclosure, violation/completeness, and $L_k$. We expect the awareness-action discrepancy (PrivacyLens: 98.99% quiz accuracy against 25.68% action leakage), the Type III collapse (41% appropriateness, 11% on the most sensitive attributes), and granularity dumping (up to 69% attribute-level violations) to all reappear in chemical form; if unmodified agents are already near-ceiling on $L_5$, the premise fails and the project stops. Experiment 2 is the main comparison: ported CDI, ported PrivGate, prompt-only, guardrail, and our instructor, all on the same scenario set, base model, and tuning budget, with winning defined as in the baselines section. Experiment 3 isolates compositional leakage by scoring the redaction baseline and every defense on the derived-quantity probe alone. Experiment 4 runs the CIMemories accumulation protocol — 40 sequential tasks per agent, plus five stochastic repeats of identical prompts — where GPT-5's violation rate grew from 0.1% to 9.6% across tasks and hit 25.1% cumulatively across repeats; a persistent-memory defense must not merely defer the leak. Experiment 5 applies benign chemistry fine-tuning (reaction-condition optimization transcripts in the MO-LLM style, and extraction-style data like ChemMiner's 1,940-paper corpus) and re-evaluates; the privacy-collapse result predicts a 70%-scale degradation for defenses relying on the base model's internal representations, and our instructor-plus-gate design is tested precisely on whether it escapes that fate. As a utility anchor for helpfulness, a legitimate-collaboration condition asks whether the agent's disclosed advice still lets a partner reach a reaction-optimization target efficiently, benchmarked against the MO-LLM finding of convergence to the 90% hypervolume threshold in 13 iterations versus roughly 24 for simpler representations; an assistant that is private but useless fails this check. All scenario code, the candidate catalyst lists, and the adversary reconstruction harness will be released; the underlying public chemistry comes from the published reactions cited above, and we note that the TotSyn dataset, whose 105,002 reactions and 30,703 templates informed our scenario-diversity targets, cannot itself be redistributed because it derives from the commercial Reaxys database.