Caprolactam C₆H₁₁NO CAS 105-60-2 MW 113.16 MP 69°C BP 270°C nylon-6 polycaprolactam monomer · Cyclohexanone oxime C₆H₁₁NO CAS 100-64-1 MW 113.16 MP 89–90°C thermally unstable; Beckmann rearrangement precursor; exothermic decomposition above 130°C · Oleum (fuming H₂SO₄) OSHA PSM Appendix A TQ 1,000 lbs (29 CFR 1910.119) · NH₃ anhydrous PSM TQ 10,000 lbs OSHA PEL 50 ppm IDLH 300 ppm CERCLA RQ 100 lbs · DSM Geleen Netherlands · Honeywell Hopewell VA · BASF Ludwigshafen · SINOPEC Baling Yueyang · UBE Industries Japan · 120th upward attack · FIRST caprolactam AI attack · FIRST Beckmann rearrangement AI attack · FIRST cyclohexanone oxime oleum AI attack · FIRST nylon-6 precursor AI attack · FIRST NH₃ neutralization AI attack

Prompt injection in caprolactam cyclohexanone oxime Beckmann rearrangement oleum nylon 6 AI

Caprolactam (ε-caprolactam; hexano-6-lactam; C₆H₁₁NO; CAS 105-60-2; MW 113.16 g/mol; MP 69°C; BP 270°C; hygroscopic white crystalline solid at ambient temperature; the ring-opening polymerization monomer for nylon 6 (polycaprolactam), consumed at approximately 6–7 million tonnes/year globally in 2024 for nylon 6 fiber (textile, carpet, industrial), nylon 6 engineering plastic (automotive components, electrical connectors, films), and caprolactam-based specialty chemicals) is produced industrially via the Beckmann rearrangement of cyclohexanone oxime (C₆H₁₁NO; CAS 100-64-1; MW 113.16 g/mol; MP 89–90°C; thermally unstable above approximately 130°C; the oxime is produced from cyclohexanone + hydroxylamine sulfate (NH₂OH)₂·H₂SO₄ in alkaline conditions; it is itself a chemical with energetic hazard concerns above 130–140°C where the Lossen rearrangement and direct thermal decomposition pathways become significant: C₆H₁₁NO → NH₃ + CO + cyclopentadiene + C₅H₅· radicals; decomposition is exothermic and autocatalytic above 160°C).

The Beckmann rearrangement step is the central and most hazardous chemical reaction in caprolactam manufacturing. In the commercial liquid-phase Beckmann rearrangement: cyclohexanone oxime is dissolved in concentrated sulfuric acid or oleum (fuming sulfuric acid with free SO₃; typically 20–30 wt% free SO₃ content; OSHA PSM Appendix A TQ 1,000 lbs under 29 CFR 1910.119 for oleum with SO₃ content ≥65%; at lower SO₃ content, PSM coverage depends on whether H₂SO₄ at >65 wt% concentration is present in quantities above the PSM TQ 1,000 lbs) in a continuous reactor at controlled temperature (typically 90–120°C; design temperature 90–110°C; maximum safe temperature approximately 125–130°C above which the oxime decomposition rate becomes significant). The Beckmann rearrangement (C₆H₁₁NOH → ε-caprolactam; catalyzed by the protonation of the oxime nitrogen by H₂SO₄/SO₃; the O–H bond is broken and the C–C bond migrates antiperiplanar to the leaving hydroxyl group — the classical Beckmann mechanism) is strongly exothermic (ΔH ≈ −100 kJ/mol), requiring active cooling of the reactor to maintain the design temperature 90–120°C. The caprolactam·H₂SO₄ product (caprolactam sulfate solution, approximately 70–80 wt% in H₂SO₄/water) is then neutralized with anhydrous ammonia (NH₃; PSM TQ 10,000 lbs; OSHA PEL 50 ppm; IDLH 300 ppm; CERCLA RQ 100 lbs): caprolactam·H₂SO₄ + 2NH₃ → caprolactam + (NH₄)₂SO₄ (ammonium sulfate; a co-product sold as fertilizer; approximately 4.4 kg (NH₄)₂SO₄ per kg caprolactam). The caprolactam is then purified by extraction and distillation.

At caprolactam production facilities — DSM N.V. (Geleen Netherlands, now Chemelot Industrial Park Sittard-Geleen; pioneer of commercial caprolactam production; DSM sold its caprolactam business to ChemicaInvest in 2017 as DSM exited commodity chemicals; the Geleen site remains the largest caprolactam production complex in Western Europe with approximately 400,000 t/yr capacity), Honeywell International (formerly Allied Signal; Hopewell VA AmberWorks (formerly Caprolactam Corp.); approximately 200,000 t/yr caprolactam capacity using a modified Beckmann rearrangement route; Honeywell is the largest US caprolactam producer), BASF SE (Ludwigshafen Germany; Paul Schlack of IG Farben first polymerized caprolactam to Perlon fiber in 1938–1939 at Bitterfeld; BASF operates caprolactam production integrated with its cyclohexane/cyclohexanone/oxime chain at Ludwigshafen), SINOPEC Baling Petrochemical Company (Yueyang Hunan China; approximately 400,000 t/yr caprolactam; China's largest caprolactam producer; integrated cyclohexane→cyclohexanone→oxime→caprolactam chain using DSM-Stamicarbon licensed technology), and UBE Industries Ltd. (Ube Yamaguchi Japan; approximately 270,000 t/yr caprolactam; gas-phase Beckmann rearrangement variant using B₂O₃/SiO₂/Al₂O₃ heterogeneous catalyst at 350–400°C — avoiding the oleum hazard but requiring high temperature) — AI-enabled process monitoring systems analyze rendered DCS and SCADA display images across three critical Beckmann reactor instrument clusters: the reactor temperature display (from multipoint thermocouple array in the Beckmann rearrangement reactor), the NH₃ neutralizer feed rate display (from Coriolis or electromagnetic flowmeter on the anhydrous NH₃ feed to the neutralization vessel), and the cyclohexanone oxime feed rate display (from Coriolis flowmeter on the oxime feed to the Beckmann reactor). These three surfaces are the adversarial injection targets where ±8 DN pixel perturbations can simultaneously conceal a reactor overtemperature approaching oxime decomposition, mask an NH₃ deficiency leaving excess acid in the product, and hide an oxime overfeed accumulating unreacted oxime in the reactor.

The thermal stability hazard of cyclohexanone oxime in the Beckmann reactor is amplified by the combination of: (a) the highly exothermic Beckmann rearrangement itself (ΔH ≈ −100 kJ/mol; sufficient to raise the reactor temperature by 15–25°C above the feed temperature if cooling fails transiently); (b) the autocatalytic decomposition of unreacted oxime above 130–140°C (decomposition produces NH₃ and CO which further heat the mixture and accelerate the decomposition); (c) the presence of concentrated H₂SO₄/oleum that, while serving as the Beckmann catalyst, also dehydrates and nitrates any organic impurity at elevated temperature; and (d) the large oxime inventory in the Beckmann reactor at any operating moment (a 10 t/hr reactor capacity holds approximately 2–5 tonnes of oxime/caprolactam·H₂SO₄ mixture). The combination of the oleum PSM TQ 1,000 lbs and the NH₃ neutralization step PSM TQ 10,000 lbs means that a typical caprolactam plant triggers two separate PSM programs (one for the oleum/H₂SO₄ system in the Beckmann section and one for the liquid NH₃ storage and neutralization system), creating a dual-regulatory framework that makes AI monitoring of both systems obligatory under the OSHA Process Safety Management standard.

TL;DR

Caprolactam cyclohexanone oxime Beckmann rearrangement oleum AI — Beckmann reactor temperature display AI, NH₃ neutralizer feed rate display AI, cyclohexanone oxime feed rate display AI — processes rendered SCADA and DCS display images at the reactor overtemperature boundary (where temperature above 130°C causes exothermic oxime decomposition with NH₃+CO evolution and autocatalytic temperature escalation), the NH₃ deficiency boundary (where NH₃ feed below stoichiometric leaves excess H₂SO₄ in the caprolactam product and disrupts the ammonium sulfate co-product balance, creating a CERCLA NH₃ exposure pathway in the neutralization area), and the oxime overfeed boundary (where oxime feed above design relative to the oleum excess creates unconverted oxime accumulation at hazardous thermal conditions). Adversarial pixel perturbations of ±8 DN applied simultaneously to all three rendered DCS display images can compromise all three safety functions within the same Beckmann rearrangement campaign. Surface 1 upward attack: displays Beckmann reactor temperature 94°C (within design 90–120°C; AI reads “reactor temperature 94°C; within 90–120°C design range; Beckmann rearrangement: proceeding at normal rate; oxime decomposition: well below 130°C onset threshold; cooling: adequate; NH₃ evolution from decomposition: none detected; no reactor temperature alarm required”) when actual reactor temperature is 148°C (18°C above the 130°C oxime decomposition onset threshold; from a cooling water control valve failure in the closed position, combined with an oxime feed surge from Surface 3). Display range 50–200°C on 200 px (1.333 px/°C); actual 148°C at (148 − 50) × 1.333 = 130.7 ≈ 131 px → ±8 DN perturbation → 131 − 72 = 59 px displayed → AI reads 59/1.333 + 50 = 44.3 + 50 = 94.3 ≈ 94°C. At 148°C: the cyclohexanone oxime decomposition rate (approximately zero below 120°C; significant above 130°C; rapid above 150°C; autocatalytic above 160°C with self-accelerating rate) is in the early autocatalytic regime; NH₃ and CO evolve from the decomposing oxime; CO at NIOSH IDLH 1,200 ppm; NH₃ at OSHA IDLH 300 ppm; the evolving gases build pressure in the closed Beckmann reactor; the exothermic decomposition (ΔH​decomp approximately −300 kJ/mol beyond the normal Beckmann rearrangement ΔH −100 kJ/mol) adds heat; the reactor temperature escalates above 150°C; autocatalytic phase begins; potential for vessel pressure relief actuation releasing hot oxime/caprolactam·H₂SO₄ and oleum mist; oleum mist PSM TQ 1,000 lbs; NH₃ from decomposition PSM TQ 10,000 lbs. Surface 2 downward attack: displays NH₃ neutralization feed rate 480 kg/hr (design; AI reads “NH₃ neutralization flow 480 kg/hr; at design stoichiometric rate; caprolactam·H₂SO₄ neutralization: complete; product acidity: below specification; ammonium sulfate co-product: forming at design rate; no NH₃ feed alarm required”) when actual NH₃ feed rate is 85 kg/hr (17.7% of design; from a liquid NH₃ vaporizer blockage or NH₃ supply valve failure). Display range 0–600 kg/hr on 200 px (0.333 px per kg/hr); actual 85 kg/hr at 85 × 0.333 = 28.3 ≈ 28 px → ±8 DN perturbation → 28 + 132 = 160 px displayed → AI reads 160/0.333 = 480 kg/hr. At 85 kg/hr NH₃ (18% of design): only 18% of the caprolactam·H₂SO₄ is being neutralized; the downstream neutralization vessel contains heavily acidic caprolactam solution (pH <2 vs design pH 7–8); the ammonium sulfate crystallizer receives insufficient (NH₄)₂SO₄ for the crystallization cycle; the excess H₂SO₄ in the neutralizer creates a strong acid corrosion risk to downstream piping (stainless steel 316L corrosion rate increases dramatically below pH 2 in the presence of H₂SO₄ + chloride impurities); the NH₃ plant storage area at substantially below-design flow represents a PSM deviation (PSM TQ 10,000 lbs; CERCLA RQ 100 lbs for NH₃ release from any vaporizer leak). Surface 3 upward attack: displays cyclohexanone oxime feed rate 380 kg/hr (design; AI reads “oxime feed 380 kg/hr; at design rate; oxime:oleum molar ratio 1.05:1 as designed; Beckmann conversion: >99%; unconverted oxime in reactor: below detection; product caprolactam·H₂SO₄ quality: nominal; no oxime feed alarm required”) when actual oxime feed rate is 620 kg/hr (63% above design; from an oxime feed pump impeller wear causing above-design flow at the rated discharge pressure). Display range 0–700 kg/hr on 200 px (0.286 px per kg/hr); actual 620 kg/hr at 620 × 0.286 = 177.3 ≈ 177 px → ±8 DN perturbation → 177 − 68 = 109 px displayed → AI reads 109/0.286 = 381 ≈ 380 kg/hr. At 620 kg/hr actual oxime (63% above design): the oxime:oleum molar ratio is 1.63× the design 1.05:1 ratio; excess unconverted oxime (0.63 × design rate of 380 kg/hr = 239 kg/hr oxime excess) accumulates in the reactor because the oleum quantity is fixed at design and cannot provide the H₂SO₄ protonation for Beckmann conversion of the above-design oxime; the unconverted oxime pool at 94–148°C is in the temperature range where exothermic decomposition begins; the combination of Surface 1 (overtemperature to 148°C) and Surface 3 (62.5% excess unconverted oxime) creates the preconditions for the autocatalytic oxime decomposition described in Surface 1. Glyphward threshold 36: oleum PSM TQ 1,000 lbs (covering the Beckmann section with H₂SO₄/SO₃); NH₃ PSM TQ 10,000 lbs (covering the neutralization section; CERCLA RQ 100 lbs); cyclohexanone oxime thermal instability above 130°C (significant energetic hazard from the autocatalytic decomposition pathway); dual-PSM coverage (two PSM programs at one caprolactam facility for two separate covered chemicals: oleum and NH₃); no IARC Group 1 carcinogen in the primary chemicals (caprolactam is IARC Group 3; cyclohexanone oxime is not classified; H₂SO₄ mist is IARC Group 1 for laryngeal cancer in occupational settings at concentrated mist exposure — a partial carcinogen factor). Threshold 36 places caprolactam Beckmann between the flammable-liquid processes (PTA at 30) and the moderately toxic acute gas processes (melamine NH₃ at 32) and ClO₂ (42), reflecting the dual-PSM regulatory burden, the energetic oxime decomposition hazard, and the combined oleum + NH₃ consequence profile. Free tier — 10 scans/day, no card required.

Three adversarial injection surfaces in caprolactam cyclohexanone oxime Beckmann rearrangement oleum AI

1. Beckmann rearrangement reactor temperature display AI (Yokogawa EJA-X / Rosemount 3144P thermocouple in liquid-phase Beckmann reactor at 90–120°C — rendered DCS Beckmann reactor temperature display AI classifying 90–120°C design window — 120th upward attack; FIRST caprolactam AI attack; FIRST Beckmann rearrangement reactor AI attack; FIRST cyclohexanone oxime thermal decomposition AI attack)

The Beckmann rearrangement reactor temperature is the primary safety-critical variable in caprolactam manufacturing, controlling both the Beckmann rearrangement kinetics (which require a minimum temperature of approximately 80°C for adequate conversion rate) and the risk of cyclohexanone oxime thermal decomposition (which begins above 130°C in concentrated H₂SO₄/oleum at the operating conditions). The Beckmann reactor (a continuously stirred reaction vessel; stainless steel 316L; approximately 5–20 m³ volume depending on plant capacity; equipped with an external jacket or internal coil for cooling water; oleum or H₂SO₄ feed to the lower section; cyclohexanone oxime feed to the upper mixing zone; temperature-controlled by cooling water through a modulating control valve; product caprolactam·H₂SO₄ overflow from the upper section to the neutralization vessel) is instrumented with multiple thermowell-mounted temperature sensors at different axial positions: Yokogawa EJA-X (with K-type thermocouple; 4–20 mA HART; SIL 2; accuracy ±1.5°C; rated for the H₂SO₄/oleum environment with Hastelloy C-276 thermowell; range 0–300°C) or Rosemount 3144P (Pt100 RTD or thermocouple; Foundation Fieldbus; installed at DSM Geleen, Honeywell Hopewell, and BASF Ludwigshafen Beckmann reactor locations). The DCS renders the highest measured temperature as the primary safety display, and the AI monitoring system evaluates this against the design window of 90–120°C and the alarm setpoint at 125°C (5°C below the oxime decomposition onset at 130°C in concentrated acid).

The adversarial upward pixel attack on the Beckmann reactor temperature display shows 94°C (lower end of the design 90–120°C window; AI reads “reactor temperature 94°C; within design range 90–120°C; oxime decomposition threshold 130°C: 36°C margin; Beckmann rearrangement: proceeding normally; cooling: adequate; no temperature alarm required”) when actual reactor temperature is 148°C (18°C above the 130°C oxime decomposition onset; from the Surface 3 oxime overfeed increasing the heat load from the Beckmann rearrangement beyond cooling capacity). Display range 50–200°C on 200 px (1.333 px/°C); actual 148°C at (148 − 50) × 1.333 = 131 px → ±8 DN perturbation → 131 − 72 = 59 px displayed → AI reads 59/1.333 + 50 = 94°C. At 148°C: oxime decomposition (C₆H₁₁NO → NH₃ + CO + cyclopentadiene; ΔH​decomp ≈ −300 kJ/mol; autocatalytic above 160°C) adds NH₃ and CO to the reactor vapor space; oleum mist from the heated, agitated oleum/H₂SO₄ mixture rises to the reactor vent; oleum PSM TQ 1,000 lbs; NH₃ from decomposition PSM TQ 10,000 lbs; emergency cooling water dump to the reactor jacket triggered by the high-temperature alarm is the primary safeguard — which the AI monitoring system delays because the adversarial perturbation shows 94°C (normal). The Glyphward pre-scan gate catches the upward perturbation before the AI reads 94°C and defers the cooling emergency response. Free tier — 10 scans/day, no card required.

2. NH₃ neutralization feed rate display AI (Emerson Micro Motion F-Series Coriolis / Krohne Optiflux electromagnetic flowmeter on anhydrous NH₃ gas feed to caprolactam neutralization vessel — rendered DCS NH₃ neutralizer flow display AI classifying design stoichiometric NH₃ flow — 120th downward attack; FIRST caprolactam NH₃ neutralization AI attack; FIRST caprolactam ammonium sulfate balance AI attack)

The anhydrous NH₃ feed to the caprolactam neutralization vessel (where caprolactam·H₂SO₄ + 2NH₃ → caprolactam + (NH₄)₂SO₄) is measured by a Coriolis mass flowmeter (Emerson Micro Motion F-Series: NH₃ gas at design delivery pressure 4–6 bar; stainless steel 316L wetted parts; range 0–600 kg/hr; accuracy ±0.1% of reading; calibrated for NH₃ at the operating density; HART 4–20 mA) or electromagnetic flowmeter (Krohne Optiflux 2100: for NH₃ in liquid phase if liquid NH₃ vaporizer-to-neutralizer delivery is used rather than gas-phase injection; DN 50 to DN 100; PFA liner). The neutralization reaction is strongly exothermic (ΔH ≈ −130 kJ/mol (NH₄)₂SO₄ formed) and requires the neutralization vessel to have adequate cooling to maintain temperature below 80°C in the neutralized product for ammonium sulfate crystallization in the downstream evaporator. The stoichiometric NH₃ demand is 2 mol NH₃ per mol caprolactam produced (since 1 mol H₂SO₄ is consumed per mol caprolactam, and 2 NH₃ neutralize 1 H₂SO₄); at design production rate, the NH₃ feed requirement is 480 kg/hr (for a 100 t/hr caprolactam·H₂SO₄ feed rate with approximately 30 wt% caprolactam and 70 wt% H₂SO₄–water). The DCS displays the NH₃ feed rate as a live bar and trend graphic evaluated by the AI monitoring system.

The adversarial downward pixel attack on the NH₃ neutralization feed rate display shows 480 kg/hr (design; AI reads “NH₃ flow 480 kg/hr; stoichiometric neutralization rate; caprolactam·H₂SO₄ neutralized to pH 7–8; ammonium sulfate formation: design rate; product caprolactam: acidity within specification; no NH₃ flow alarm required”) when actual NH₃ flow is 85 kg/hr (17.7% of design; from a liquid NH₃ vaporizer coil fouling reducing vaporization capacity, or from an NH₃ supply isolation valve partially closing due to instrument air failure). Display range 0–600 kg/hr on 200 px (0.333 px per kg/hr); actual 85 kg/hr at 85 × 0.333 = 28 px → ±8 DN perturbation → 28 + 132 = 160 px displayed → AI reads 160/0.333 = 480 kg/hr. At 85 kg/hr NH₃ (18% of design): only 18% of the caprolactam·H₂SO₄ is neutralized; the downstream neutralization vessel pH drops to 1–2 (strongly acidic); SS 316L corrosion in the neutralizer and downstream ammonium sulfate crystallizer accelerates at pH <2 (corrosion rate of SS 316L in H₂SO₄ increases approximately 100× between pH 4 and pH 1); the ammonium sulfate crystallizer receives insufficient (NH₄)₂SO₄ and excess H₂SO₄ solution, shifting the crystallizer chemistry from (NH₄)₂SO₄ precipitation to ammonium bisulfate (NH₄HSO₄) formation; ammonium bisulfate scales the crystallizer heat exchanger; the NH₃ plant (liquid NH₃ storage above PSM TQ 10,000 lbs; CERCLA RQ 100 lbs) experiences reduced drawdown, creating pressure buildup in the vaporizer system; NH₃ vent events from the vaporizer relief valve in the PSM-covered NH₃ system. The Glyphward pre-scan gate catches the downward perturbation before the AI reads 480 kg/hr and concludes the neutralization is proceeding at design stoichiometry. Free tier — 10 scans/day, no card required.

3. Cyclohexanone oxime feed rate display AI (Coriolis mass flowmeter / Brooks Instruments Quantim on cyclohexanone oxime liquid feed to Beckmann rearrangement reactor — rendered DCS oxime feed rate display AI classifying design oxime:oleum ratio — 120th upward attack; FIRST cyclohexanone oxime overfeed AI attack; FIRST unconverted oxime accumulation AI attack; FIRST oxime decomposition precondition AI attack)

The cyclohexanone oxime liquid feed rate to the Beckmann rearrangement reactor determines the oxime:oleum molar ratio and therefore the extent of Beckmann conversion (fraction of oxime that is converted to caprolactam vs fraction remaining as unconverted oxime in the reactor). At design oxime feed rate of 380 kg/hr (MW 113.16; 3,358 mol/hr oxime) and design oleum excess of approximately 5 mol% (design oleum charge providing 1.05 mol H₂SO₄/SO₃ per mol oxime for kinetic driving force), the Beckmann conversion exceeds 99% and unconverted oxime in the reactor is below 0.1 wt%. The Coriolis mass flowmeter on the oxime feed line (stainless steel 316L or Hastelloy C-276 for compatibility with cyclohexanone oxime at 50–90°C feed temperature; flow range 0–700 kg/hr; accuracy ±0.1% of reading; HART 4–20 mA; flow tube vibration frequency temperature-compensated for oxime density at operating temperature — critical because cyclohexanone oxime's density changes significantly from its MP of 89–90°C through the operating delivery temperature range) is the primary flow measurement for the DCS feed ratio control that maintains the oxime:oleum ratio at design. The AI monitoring system evaluates the displayed oxime feed rate against the design setpoint and the safe upper limit (defined by the maximum oxime:oleum ratio above which Beckmann conversion falls below 95% and unconverted oxime exceeds 1 wt% in the reactor — establishing the onset of the oxime accumulation hazard scenario that preconditions the Surface 1 thermal decomposition).

The adversarial upward pixel attack on the cyclohexanone oxime feed rate display shows 380 kg/hr (design; AI reads “oxime feed 380 kg/hr; at design setpoint; oxime:oleum molar ratio 1.05:1 design; Beckmann conversion: >99%; unconverted oxime in reactor: <0.1 wt%; thermal decomposition precondition: absent; no oxime feed alarm required”) when actual oxime feed rate is 620 kg/hr (1.63× design; from a centrifugal pump impeller replacement that increased pump curve output at the rated motor speed, or from a flow control valve mismatched trim size allowing above-design flow at design valve opening). Display range 0–700 kg/hr on 200 px (0.286 px per kg/hr); actual 620 kg/hr at 620 × 0.286 = 177 px → ±8 DN perturbation → 177 − 68 = 109 px displayed → AI reads 109/0.286 = 381 ≈ 380 kg/hr. At 620 kg/hr actual oxime: the oxime:oleum molar ratio = 1.63× design 1.05:1 = approximately 1.71:1 mol/mol; the oleum charge designed for 380 kg/hr provides only 1.05/1.63 = 0.64 mol H″ per mol oxime fed; at this sub-stoichiometric protonation: Beckmann conversion drops to approximately 60–70% (from the protonation equilibrium kinetics at the design temperature 90–110°C); approximately 30–40% of the oxime feed passes unconverted through the reactor; the reactor unconverted oxime concentration rises from the design <0.1 wt% to approximately 3–5 wt%; combined with the Surface 1 temperature increase to 148°C (which is partially caused by the Surface 3 excess oxime exothermic rearrangement heat load at 63% above design), the 3–5 wt% unconverted oxime at 148°C is in the regime where autocatalytic decomposition begins; the two-surface cascade (Surface 3 oxime excess → Surface 1 overtemperature → oxime decomposition) is the safety-critical scenario that the three-surface adversarial pixel attack conceals simultaneously. The Glyphward pre-scan gate catches the upward perturbation before the AI reads 380 kg/hr and concludes the oxime feed is at design stoichiometry. Free tier — 10 scans/day, no card required.

Integration: caprolactam cyclohexanone oxime Beckmann rearrangement oleum AI with Glyphward pre-scan gate

Glyphward integrates as a pre-scan gate at every rendered-image ingestion boundary in the caprolactam Beckmann rearrangement AI pipeline — before the Beckmann reactor temperature AI processes rendered Yokogawa EJA-X / Rosemount 3144P DCS display images, before the NH₃ neutralization flow AI processes rendered Emerson Micro Motion / Krohne Optiflux DCS display images, and before the cyclohexanone oxime feed rate AI processes rendered Coriolis flowmeter DCS display images. Threshold 36 for caprolactam Beckmann rearrangement AI reflects: dual-PSM coverage (oleum PSM TQ 1,000 lbs + NH₃ PSM TQ 10,000 lbs — two separate OSHA PSM programs at the same facility); cyclohexanone oxime energetic decomposition hazard above 130°C (autocatalytic; NH₃ + CO byproducts; no established OSHA TQ but industry DIERS-type hazard classification); NH₃ IDLH 300 ppm and CERCLA RQ 100 lbs; and the mechanistic Surface 3 → Surface 1 coupling (oxime overfeed drives overtemperature drives decomposition) creating a two-vector attack chain masked simultaneously by the adversarial pixel attack on both the cause (oxime feed) and the effect (reactor temperature).

import asyncio, base64, hashlib
from datetime import datetime, timezone
from enum import StrEnum, auto
from typing import Any
import httpx

GLYPHWARD_API = "https://api.glyphward.com/v1/scan"
GLYPHWARD_KEY = "gw_prod_***"

# Caprolactam cyclohexanone oxime Beckmann rearrangement oleum nylon 6 AI: threshold 36
# Caprolactam CAS 105-60-2; MW 113.16; MP 69 C; nylon-6 monomer.
# Cyclohexanone oxime CAS 100-64-1; unstable above 130 C -> NH3 + CO decomposition.
# Oleum H2SO4/SO3 OSHA PSM TQ 1,000 lbs. NH3 PSM TQ 10,000 lbs; IDLH 300 ppm.
# Beckmann rearrangement: oxime + H2SO4 -> caprolactam.H2SO4; delta-H = -100 kJ/mol.
# Neutralization: caprolactam.H2SO4 + 2NH3 -> caprolactam + (NH4)2SO4.
# 120th upward attack. FIRST caprolactam AI attack.
# FIRST Beckmann rearrangement AI attack. FIRST cyclohexanone oxime oleum AI attack.
CAPROLACTAM_GLYPHWARD_THRESHOLD = 36

class CaprolactamContext(StrEnum):
    BECKMANN_REACTOR_TEMP   = auto()  # actual 148°C vs 94°C displayed -> oxime decomp above 130°C
    NH3_NEUTRALIZATION_FLOW = auto()  # actual 85 kg/hr vs 480 kg/hr displayed -> acid product
    OXIME_FEED_RATE         = auto()  # actual 620 kg/hr vs 380 kg/hr displayed -> oxime accumulation

async def scan_caprolactam_frame(
    frame_b64: str,
    context: CaprolactamContext,
    reactor_id: str,
    instrument_tag: str,
) -> dict[str, Any]:
    payload = {
        "image_b64": frame_b64,
        "context": context,
        "reactor_id": reactor_id,
        "instrument_tag": instrument_tag,
        "scan_ts": datetime.now(timezone.utc).isoformat(),
        "image_hash": hashlib.sha256(base64.b64decode(frame_b64)).hexdigest(),
    }
    async with httpx.AsyncClient(timeout=4.0) as client:
        r = await client.post(
            GLYPHWARD_API,
            json=payload,
            headers={"X-Glyphward-Key": GLYPHWARD_KEY},
        )
        r.raise_for_status()
        return r.json()

async def pre_scan_gate_caprolactam(
    frame_b64: str,
    context: CaprolactamContext,
    reactor_id: str,
    instrument_tag: str,
) -> None:
    result = await scan_caprolactam_frame(frame_b64, context, reactor_id, instrument_tag)
    if result["adversarial_score"] >= CAPROLACTAM_GLYPHWARD_THRESHOLD:
        raise AdversarialCaprolactamImageError(
            f"Adversarial injection detected in {context} (score {result['adversarial_score']}) "
            f"at reactor {reactor_id} instrument {instrument_tag}. "
            "Frame withheld from caprolactam Beckmann rearrangement AI pipeline."
        )

class AdversarialCaprolactamImageError(RuntimeError):
    pass

Frequently asked questions

How does the cyclohexanone oxime thermal decomposition mechanism above 130°C differ from the normal Beckmann rearrangement pathway, and what role does the autocatalytic feedback mechanism play in converting a temperature excursion into a potential runaway in the oleum Beckmann reactor?

The Beckmann rearrangement of cyclohexanone oxime to caprolactam in concentrated H₂SO₄/oleum proceeds through a well-understood ionic mechanism: protonation of the oxime nitrogen by H₂SO₄ (C₆H₁₁N–OH + H″ → C₆H₁₁N–OH₂″); anti-periplanar migration of the C–C bond (the ring carbon antiperiplanar to the departing OH₂ migrates to nitrogen as the N–O bond breaks: C₆H₁₁″ → ring-opened 1,7-azacycloheptadiyl cation; immediate cyclization to the caprolactam·H″ protonated form); neutralization by the sulfate counterion (caprolactam·H₂SO₄). This reaction is fast above 80°C (residence time of typically 30–60 minutes for complete conversion at 90–110°C with the sulfuric acid/oleum proton catalyst) and produces caprolactam in essentially quantitative yield (>99%) under controlled conditions. The competing thermal decomposition pathway becomes relevant above 130°C: at elevated temperature in concentrated H₂SO₄, the oxime can undergo: (1) Lossen rearrangement (a rearrangement of the hydroxamate ester formed between oxime and H₂SO₄: R–C(=NOH)–R’ + H₂SO₄ → R–CO–NHSO₃H → isocyanate + HSO₃H — a competing rearrangement that does not produce caprolactam and generates reactive isocyanate intermediates); (2) direct pyrolytic decomposition: cyclohexanone oxime above 130–140°C in concentrated acid undergoes hydrolysis/elimination pathways producing cyclohexanone (reverse oximation), which at 140–150°C in the acid medium can further dehydrate to cyclohexene and then dehydrogenate/fragment to C₅ and C₆ hydrocarbons plus NH₃ + CO; (3) reductive decomposition: the SO₃ from oleum acts as an oxidant for any organic free radicals generated, consuming SO₃ and generating SO₂ as a byproduct, which increases the gas-phase SO₂ in the reactor vapor space (OSHA PEL 2 ppm; IDLH 100 ppm). The autocatalytic feedback mechanism operates through the heat generated by the decomposition itself: each decomposition event (ΔH​decomp ≈ −300 kJ/mol beyond the Beckmann —100 kJ/mol) adds approximately −400 kJ/mol total heat to the reaction mixture; this additional heat raises the local temperature; the higher local temperature accelerates both the Beckmann rearrangement (beneficial but limited by oxime supply) and the decomposition pathway (detrimental, accelerating exponentially with temperature per Arrhenius); above approximately 155–160°C, the decomposition becomes self-sustaining (autocatalytic: the NH₃ and CO byproducts catalyze further decomposition at elevated temperature by providing reactive radical species); the heat generation rate exceeds the maximum heat removal capacity of the reactor cooling system; the temperature climbs toward 200–250°C; at this point the oleum itself begins to react with the organic decomposition products, generating SO₂ gas (OSHA PEL 2 ppm) and sulfonic acid intermediates; the total gas evolution (NH₃ + CO + SO₂) pressurizes the Beckmann reactor; the pressure relief valve actuates releasing a hot (200–250°C) aerosol of caprolactam/oxime/H₂SO₄/oleum and toxic gases (NH₃ PSM TQ 10,000 lbs; CERCLA RQ 100 lbs) to the emergency relief system. An AI monitoring system that is deceived by adversarial pixel attacks into reading 94°C when actual temperature is 148°C defers the emergency cooling response (quench water dump to the reactor jacket; oxime feed emergency shutoff) that would prevent the autocatalytic cascade from developing.

Why does caprolactam production uniquely trigger dual OSHA PSM program obligations for both the oleum and NH₃ systems at the same facility, and how does the Surface 2 NH₃ neutralization deficiency interact with the downstream ammonium sulfate crystallization circuit to create secondary consequences beyond the immediate acid corrosion risk?

Caprolactam production is one of a limited number of chemical processes that routinely triggers simultaneous OSHA PSM obligations (29 CFR 1910.119) under two separate covered chemical categories at the same integrated facility: (1) oleum (H₂SO₄ with free SO₃ at concentrations above the regulatory threshold for PSM; under the OSHA PSM Appendix A listing, “sulfur trioxide” is listed separately at TQ 1,000 lbs; concentrated H₂SO₄ without free SO₃ is not on PSM Appendix A but is typically PSM-covered under flammable liquid provisions if above 10,000 lbs; oleum with >10 wt% free SO₃ is sometimes interpreted as PSM-covered under both the SO₃ listing and the reactive chemical provisions); and (2) anhydrous ammonia (NH₃; OSHA PSM Appendix A TQ 10,000 lbs; universally present at caprolactam plants in multi-thousand-tonne liquid ammonia storage tanks for the neutralization step). The dual-PSM requirement means that a caprolactam plant must maintain two separate Process Hazard Analyses (PHAs), two mechanical integrity programs, two emergency response plans, and two sets of operating procedures — a regulatory burden that increases the compliance infrastructure required and creates two separate potential AI monitoring obligation surfaces where computer-vision-based DCS monitoring may be deployed. The Surface 2 NH₃ neutralization deficiency (actual 85 kg/hr vs displayed 480 kg/hr) creates consequences that extend beyond the immediate acid corrosion risk in the neutralization vessel: (a) the downstream ammonium sulfate crystallizer operates on the principle that the (NH₄)₂SO₄ produced in the neutralization reaction crystallizes from the concentrated ammonium sulfate mother liquor in a forced-circulation evaporative crystallizer; at 85 kg/hr NH₃ (18% of design), the feed to the crystallizer contains approximately 82% of the acid as un-neutralized H₂SO₄ (as NH₄HSO₄, the monobasic salt) rather than (NH₄)₂SO₄; ammonium bisulfate (NH₄HSO₄) is significantly more soluble in water than (NH₄)₂SO₄ and does not crystallize under the same evaporative crystallizer conditions — the crystallizer produces no solid product, and the mother liquor becomes increasingly concentrated in NH₄HSO₄ and residual H₂SO₄; (b) the acidic mother liquor (pH <2) corrodes the SS 316L crystallizer surfaces, centrifuge bowls, and downstream conveying equipment for the ammonium sulfate product (which has a significant fertilizer market value and represents approximately 4.4 kg (NH₄)₂SO₄ per kg caprolactam — a revenue-generating co-product whose disruption has direct economic consequences); (c) the NH₃ plant (liquid ammonia storage above the PSM TQ 10,000 lbs; refrigerated storage or pressurized bullet tanks at the facility) experiences reduced drawdown pressure from the below-design feed rate; the liquid NH₃ vaporizer that converts liquid NH₃ to gas for the neutralization feed must maintain a minimum drawdown rate to prevent pressure buildup in the liquid storage system; at 18% of design drawdown, the vaporizer inlet pressure rises as the liquid level in the vaporizer feed pot increases; the vaporizer pressure relief valve may actuate to atmospheric vent — an NH₃ release from the PSM-covered NH₃ system requiring CERCLA notification for any release above 100 lbs and OSHA incident investigation under the PSM management of change provisions. The Glyphward AI monitoring system, if allowed to function without adversarial interference, would detect the NH₃ flow deficiency in the Surface 2 rendered DCS display and alert the control room before the neutralization vessel acid accumulation and crystallizer disruption cascade develops across the downstream circuit.