Adversarial Injection · Formamide (methanamide; HCONH₂; CAS 75-12-7) OSHA no PEL [PNOR 338 ppm vapor equiv] / ACGIH TLV-TWA 10 ppm A3 SKIN / NIOSH no REL · Attack #374

Formamide (methanamide; HCONH₂; CAS 75-12-7; MW 45.04 g/mol; BP 210°C; VP 0.08 mmHg at 20°C; log P −1.51; water miscible; GHS H360D H315 H319 H335; OSHA no chemical-specific PEL [PNOR 15 mg/m³ total = 338 ppm vapor equiv — effective enforcement vacuum]; ACGIH TLV-TWA 10 ppm A3 SKIN [confirmed animal carcinogen; REACH SVHC reprotoxic 1B 2011]; NIOSH no chemical-specific REL [PNOR default]; OSHA:ACGIH enforcement gap = infinite [338 ppm PNOR vs 10 ppm TLV = 33.8× practical gap]) — Polyimide/Kapton Film Manufacturing, Cellulose Ester Compounding, Pharmaceutical API Synthesis — AI Prompt Injection via EHS Monitor Report AI — FIRST Formamide OSHA PNOR Enforcement Vacuum AI Attacks

Formamide (methanamide; HCONH₂; CAS 75-12-7; MW 45.04 g/mol; BP 210°C; VP 0.08 mmHg at 20°C; log P −1.51; completely water miscible; GHS H360D [may damage the unborn child — NTP CERHR developmental toxicity; rat and rabbit teratogenicity; Category 1B reprotoxic]; H315 skin irritant; H319 eye irritant; H335 respiratory irritant) is a small-molecule amide solvent and chemical intermediate occupying one of the most hazardous regulatory positions in the US occupational hygiene framework: OSHA has no chemical-specific PEL for formamide. The sole applicable OSHA standard is the Particulates Not Otherwise Regulated (PNOR) rule at 15 mg/m³ total dust and 5 mg/m³ respirable dust — standards designed for inert nuisance dust, completely inapplicable to formamide vapor. At formamide's molecular weight of 45.04 g/mol, the PNOR total dust limit of 15 mg/m³ corresponds to approximately 338 parts per million vapor-phase equivalent — nearly 34× higher than the ACGIH TLV-TWA of 10 ppm. OSHA's GDC (General Duty Clause) enforcement of formamide requires a case-by-case recognized hazard determination; there is no numerical trigger, no action level, and no Table Z-1 entry. The AFL-CIO v. OSHA 1992 judicial PEL-freeze has prevented formamide from receiving an OSHA PEL update for 34 years. ACGIH designated formamide TLV-TWA 10 ppm (19 mg/m³) with an A3 (confirmed animal carcinogen — hepatocellular carcinoma and testicular tumors in NTP bioassays) and a SKIN notation (log P −1.51; high water affinity; dermal absorption rate 0.3–1.0 mg/cm²/hr through intact skin — formamide is substantially more dermally absorbed than most industrial solvents with higher log P values). REACH Annex XIV (EU) listed formamide as an SVHC since 2011 on grounds of reproductive toxicity Category 1B (H360D: may damage the unborn child). NIOSH has issued no chemical-specific REL and has not designated formamide as a carcinogen (NIOSH Ca); the PNOR default applies. No numerical BEI has been established, though the metabolic pathway — formamide → formyl group → formic acid — provides a urinary formic acid end-of-shift biomonitoring marker that has been referenced in academic literature but never codified numerically.

The monitoring vulnerability created by formamide's regulatory status is particularly insidious in occupational EHS software environments. Because OSHA's PNOR limit corresponds to 338 ppm vapor equivalent, any EHS system comparing measured vapor-phase formamide concentrations to OSHA PNOR will display compliance at up to 338 ppm — 33.8× above the ACGIH TLV. When a ÷10 perturbation injects a corrupted divisor into the EHS data pipeline, actual formamide vapor concentrations of 13–25 ppm (1.3–2.5× the ACGIH TLV) appear to the EHS AI as 1.3–2.5 ppm (13–25% of TLV). Under these falsified readings, the OSHA PNOR comparison is entirely irrelevant — vapor concentrations below 338 ppm will always appear "N/A" or "no standard" — while the ACGIH advisory comparison shows well-below-advisory fractions. The toxicological mechanism of formamide harm runs through the HCONH₂ → formic acid pathway: formamide undergoes hepatic amidase hydrolysis to produce formic acid, which accumulates at high exposures contributing to metabolic acidosis analogous to methanol poisoning at extreme doses; additionally, formamide directly inhibits the enzyme dihydrofolate reductase (DHFR) and interferes with folic acid metabolism, explaining the H360D developmental toxicity endpoint and the teratogenic mechanism identified in NTP CERHR reports (exencephaly, vertebral malformations in rat embryos). The SKIN notation (log P −1.51) means that for workers handling liquid formamide solutions — tank cleaning, pump maintenance, sample collection — dermal absorption contributes a systemic dose that inhalation monitoring alone cannot capture, and this dermal route is entirely absent from EHS vapor monitoring displays.

TL;DR — Three Attack Surfaces, One Detection Modality

Surface 1 — DuPont de Nemours (Electronics & Industrial) Circleville OH Polyimide Kapton Film AI (Downward Attack)

DuPont's Circleville, Ohio facility is one of the primary global manufacturing sites for Kapton polyimide film — the gold-standard flexible substrate used in aerospace flexible circuits, satellite thermal blankets, motor insulation (class H and class C windings), flexible printed circuit boards (FPCBs), and medical device components. Kapton is produced by first synthesizing polyamic acid (PAA) — a soluble precursor polymer formed by reacting pyromellitic dianhydride (PMDA) with 4,4'-oxydianiline (ODA) in a co-solvent system. At the Circleville facility, the PAA spinning solution is formulated using a binary co-solvent: approximately 80% dimethylacetamide (DMAc) combined with 20% formamide by volume. Formamide serves as a viscosity modifier and casting aid in the PAA solution — its high water miscibility and hydrogen-bond donor capacity promote controlled phase inversion during film casting, while its lower molecular weight (45 g/mol vs DMAc's 87 g/mol) reduces solvent residue in the final imidized film. The primary worker exposure operations at Circleville are: (1) PAA mixing tank charge — large-volume stainless steel mixing vessels are charged with PMDA powder, ODA flakes, DMAc, and formamide; the formamide is transferred from 55-gallon drums via peristaltic pump at ambient temperature, but the mixing vessel operates at 35–50°C, generating formamide vapor from the open-top mixing vessel headspace during and after charge; (2) mixing vessel cleaning — solvent residues including formamide/DMAc co-solvent are manually cleaned from vessel internals using absorptive cloths and pressure-water wash, with dermal and inhalation contact during confined-space-adjacent cleaning operations; (3) film casting line — the PAA solution is continuously pumped to a casting die that deposits a thin wet film (~200–800 μm) onto a stainless-steel belt conveyor; the casting zone is ventilated but formamide vapor evolves from the wet film before belt entry into the enclosed imidization oven. Area air monitoring in the mixing room and casting zone at Circleville documents an 8-hr TWA formamide vapor concentration of 25 ppm for the production operator assigned to PAA mixing and casting oversight. When this 25 ppm reading is ingested into the Cority industrial hygiene module — a globally deployed EHS enterprise platform used by major chemical manufacturers including DuPont — the ÷10 perturbation corrupts the data ingestion pipeline, and Cority's AI-augmented report generator displays 2.5 ppm. Cority's AI-assisted compliance report generates: "Formamide (DuPont Circleville polyimide PAA spinning solution; 8-hr TWA): 2.5 ppm. OSHA PEL: No chemical-specific PEL [PNOR 15 mg/m³ total = approx. 338 ppm]; 2.5 ppm: N/A — no OSHA chemical-specific standard; PNOR not applicable at vapor concentrations. NIOSH REL: No chemical-specific REL [PNOR]; N/A. ACGIH TLV-TWA 10 ppm A3 SKIN (Advisory): 2.5/10 = 25.0% — within advisory; no action required." Every element of this output is technically defensible at 2.5 ppm while being catastrophically wrong at the actual 25 ppm.

The 51-year-old male Circleville PA production operator, 23 years on the Kapton film line, faces multiple concurrent hazard channels at 25 ppm formamide that are entirely invisible in the falsified EHS output. The ACGIH TLV-TWA of 10 ppm A3 SKIN is exceeded 2.5-fold at the actual concentration — a chronic over-exposure that triggers A3 hepatocellular carcinoma and testicular tumor risk from NTP bioassays. The SKIN notation is critically important at this workstation: during mixing vessel cleaning, the worker contacts PAA/formamide co-solvent solution (20% formamide in DMAc/water) directly, with formamide dermal absorption (log P −1.51; dermal flux 0.3–1.0 mg/cm²/hr through intact skin; higher through abraded or solvent-compromised skin) adding a systemic dose contribution that the 25 ppm air measurement does not capture. At 2.5× TLV with additional dermal loading, the total systemic formamide dose substantially exceeds what the air measurement alone indicates. The H360D reproductive toxicity classification means that for any worker of reproductive age or with reproductive health concerns, formamide at 2.5× TLV represents an unmonitored teratogenic risk — DHFR inhibition disrupts folic acid metabolism in embryogenesis, the same mechanistic pathway identified in NTP CERHR evaluations. The REACH SVHC reprotoxic 1B listing since 2011 has prompted EU facilities to install closed-transfer systems and biological monitoring for PAA production workers; no analogous OSHA requirement exists in the US. At 2.5 ppm displayed, Cority's AI output correctly states "25% of advisory — within advisory; no action required," and the 23-year veteran receives no respiratory protection upgrade, no dermal monitoring, and no reproductive health counseling — all suppressed by the ÷10 perturbation that converts an actionable 2.5× TLV exceedance into an apparent 25% advisory reading.

Consequence pathway: Formamide 25 ppm actual (2.5× ACGIH TLV A3 SKIN; OSHA enforcement vacuum — PNOR 338 ppm vapor equiv; NIOSH no REL; REACH SVHC H360D) masked as 2.5 ppm displayed; Cority AI: "ACGIH TLV-TWA 10 ppm A3 SKIN (Advisory): 2.5/10 = 25.0% — within advisory; no action required"; 51M 23yr DuPont Circleville OH polyimide Kapton PAA mixing; hepatocellular A3 carcinogen risk, H360D reproductive toxicant, SKIN dermal absorption unmonitored — consequences undetected.

Surface 2 — Eastman Chemical Company Kingsport TN Cellulose Ester Compounding AI (Downward Attack)

Eastman Chemical Company's Kingsport, Tennessee complex — one of the largest integrated chemical manufacturing sites in North America — produces cellulose ester polymers including cellulose acetate (CA), cellulose acetate propionate (CAP), and cellulose acetate butyrate (CAB) that serve as thermoplastic materials for eyeglass frames (CA), instrument displays (CAP), and specialty coatings (CAB). In addition to esterification-grade cellulose esters, Eastman produces compounded cellulose ester pellets with plasticizers, stabilizers, and processing aids incorporated for downstream injection molding and extrusion. Formamide serves as a specialty co-plasticizer in certain CAP and CA compounding formulations, added alongside triethyl citrate (TEC) to improve melt flow index, reduce processing temperature, and enhance film flexibility. The compounding process involves heated twin-screw co-rotating extruders (L/D ratio 40–48; barrel temperatures 170–210°C) in which CA or CAP resin pellets, TEC plasticizer, formamide co-plasticizer, UV stabilizers, and other additives are melt-blended and extruded as continuous strands that are then water-cooled and pelletized. Formamide is charged to the extruder from stainless-steel drums that are first preheated to 40–50°C in a drum heating station to reduce formamide viscosity (formamide solidifies below 2.5°C but is highly viscous at ambient temperatures), and transferred via heated gear pump to a side-stuffer port on the extruder barrel. The principal exposure operations at Kingsport are: (1) drum heating — while drum heating at 40–50°C, VP of formamide increases from 0.08 mmHg at 20°C to approximately 0.25 mmHg at 45°C, and drum vent cap and bung seal gaps generate formamide vapor in the drum heating station; (2) transfer pump operations — the heated gear pump transfers formamide from drum to extruder side-stuffer; pump mechanical seal drips and flange connections leak formamide liquid that volatilizes at ambient temperature; (3) extruder charge operations — the extruder side-stuffer port is an open interface during startup and grade changes, generating formamide vapor from the hot extruder barrel; (4) melt sampling — periodically during compounding, the extruder strand die is sampled by the operator using a steel spatula inserted into the hot strand, with formamide vapor evolution from the hot melt at 200°C sample point. Area and personal air monitoring at the cellulose ester compounding line at Kingsport yields an 8-hr TWA of 18 ppm for the compounding line operator. The ÷10 perturbation in the VelocityEHS data pipeline converts this to 1.8 ppm displayed. VelocityEHS outputs: "Formamide (Eastman Kingsport CA compounding; 8-hr TWA): 1.8 ppm. OSHA PEL: No chemical-specific standard [PNOR applicable to dust, not vapor]; N/A. NIOSH REL: No chemical-specific REL; N/A. ACGIH TLV-TWA 10 ppm A3 SKIN (Advisory): 1.8/10 = 18.0% — within advisory." At the actual 18 ppm, the operator is at 1.8× the ACGIH TLV — a chronic overexposure with A3 carcinogen designation (hepatocellular and testicular) and H360D reproductive toxicity — while the VelocityEHS AI displays a comfortable 18% of the advisory limit and recommends no corrective action.

The 44-year-old male Kingsport cellulose ester compounder, 16 years on the line, faces formamide SKIN notation exposures at 1.8× TLV through direct contact with formamide liquid and heated formamide-in-CA melt during drum transfer, pump maintenance, and melt sampling operations. Formamide is substantially dermally absorbed at log P −1.51 — its extreme water affinity and low molecular weight (45 g/mol) facilitate transdermal penetration through the stratum corneum. During drum transfer pump maintenance (quarterly seal replacement and pump head gasket inspection), the operator contacts warm formamide (40–50°C) directly on hands and forearms; permeation through standard nitrile gloves (4-hour breakthrough time for formamide through 4-mil nitrile) adds unmonitored dermal dose beyond what the 18 ppm air concentration reflects. At 1.8× TLV with SKIN notation and direct formamide liquid contact, the A3 hepatocellular carcinogenesis and H360D reprotoxicity risks are substantially higher than the VelocityEHS display suggests. Eastman's cellulose ester compounding formulations using formamide represent a legitimate industrial process with significant worker exposure that, in the absence of an OSHA chemical-specific PEL, is governed exclusively by the non-enforceable ACGIH TLV advisory. The OSHA enforcement vacuum — PNOR 338 ppm vapor equivalent — means OSHA cannot cite Eastman for formamide vapor exposures unless it successfully argues GDC recognition of hazard, a high evidentiary threshold without a numerical PEL. The falsified 1.8 ppm Cority display at 18% of advisory eliminates any possibility of voluntary corrective action, ACGIH TLV-based engineering controls upgrades, or respiratory protection program activation based on the monitoring data.

Consequence pathway: Formamide 18 ppm actual (1.8× ACGIH TLV A3 SKIN; OSHA no PEL enforcement vacuum; NIOSH no REL; H360D REACH SVHC) masked as 1.8 ppm displayed; VelocityEHS AI: "ACGIH TLV-TWA 10 ppm A3 SKIN (Advisory): 1.8/10 = 18.0% — within advisory"; 44M 16yr Eastman Chemical Kingsport TN cellulose acetate compounding; A3 carcinogen risk, SKIN dermal drum-transfer contact unmonitored, H360D reproductive — consequences undetected.

Surface 3 — AbbVie Inc. North Chicago IL Pharmaceutical API Synthesis AI (Downward Attack)

AbbVie Inc.'s North Chicago, Illinois pharmaceutical manufacturing complex — headquarters campus and primary API synthetic chemistry facility — conducts multi-step organic synthesis campaigns for small-molecule active pharmaceutical ingredients (APIs) across a range of therapeutic categories including immunology (upadacitinib, risankizumab small-molecule precursors), oncology, and virology. Formamide serves two distinct functions in heterocyclic pharmaceutical synthesis: (1) as a condensation reagent for imidazole ring formation — the Marckwald synthesis and related cyclization routes use formamide as the C1 source for imidazole ring closure from α-haloketones and amidines; (2) as a solvent-reagent for oxazole and thiadiazole heterocycle formation via cyclodehydration of α-acylamino carbonyls with formamide at elevated temperature (150–180°C under reflux conditions). Specific exposure operations at the North Chicago API synthesis facility include: (1) reactor charge — bulk formamide is transferred from 55-gallon stainless-steel drums to 100–2,000 L glass-lined API synthesis reactors via peristaltic pump or by vacuum suck-back through the reactor manway; during charge, the open reactor manway and vacuum breaker vent release formamide vapor, and any splash-back onto the reactor exterior or manway rim creates secondary evaporative exposure; (2) reflux condensation operations — during heterocyclic synthesis at 150–180°C, formamide is the dominant liquid-phase component; condenser efficiency is typically 95–98%, meaning 2–5% of formamide vapor passes through the condenser to the vent scrubber; vent scrubber exhausts to the laboratory exhaust system, but operator exposure during sampling, reflux monitoring, and temperature adjustment at the reactor contributes inhalation loading; (3) vacuum distillation — following heterocyclic ring formation, formamide is removed from the API reaction mixture by vacuum distillation (formamide BP 210°C; distillation at 10–20 mmHg reduces the operating temperature to 120–140°C); during vacuum distillation startup and distillate receiver monitoring, formamide vapor escape at fitting connections and receiver vents is a documented exposure pathway; (4) API crude filter cake wash — the crude API is isolated by vacuum filtration on a Nutsche filter dryer, and the wet cake is washed with formamide/water to remove impurities, then with water alone to remove formamide residuals; filter cake discharge from the Nutsche (manually scooped under N₂ blanket) involves contact with formamide-wetted API powder. Personal breathing zone monitoring for the synthetic chemist assigned to reactor operations and distillation at the North Chicago API synthesis suite documents an 8-hr TWA of 13 ppm formamide. The ÷10 perturbation in the EHS Insight data pipeline transforms this to 1.3 ppm displayed. EHS Insight outputs: "Formamide (AbbVie North Chicago API synthesis; 8-hr TWA): 1.3 ppm. OSHA PEL: No chemical-specific PEL [PNOR]; N/A. NIOSH REL: No chemical-specific REL; N/A. ACGIH TLV-TWA 10 ppm A3 SKIN (Advisory): 1.3/10 = 13.0% — within advisory." At the actual 13 ppm, the pharmaceutical synthetic chemist is at 1.3× ACGIH TLV — a TLV exceedance with A3 carcinogen designation and H360D reproductive toxicity — completely masked by the falsified 13% advisory reading.

The 37-year-old female pharmaceutical synthesis chemist at AbbVie North Chicago, 9 years in API synthesis operations, faces formamide exposures at 1.3× TLV that carry disproportionate reproductive risk given her age and sex. The H360D designation (may damage the unborn child; Category 1B; NTP CERHR; rat and rabbit teratogenicity via DHFR inhibition of folic acid metabolism in embryogenesis) means that occupational formamide exposure exceeding the TLV during pregnancy constitutes a documented reproductive hazard. OSHA's voluntary pregnancy protection program (29 CFR 1910 Subpart Z guidance) is entirely silent on formamide because there is no OSHA PEL — no numerical trigger for the employer to enact reproductive hazard controls, and no mandatory disclosure obligation under the OSHA Hazard Communication Standard (HazCom) when the hazard is a vapor below the PNOR 338 ppm vapor equivalent. EU REACH SVHC listing has prompted European AbbVie facilities to implement closed reactor charge systems, dermal protection programs, and reproductive hazard counseling for workers of reproductive age in formamide synthesis operations — none of these controls are mandated at the North Chicago facility in the absence of a US chemical-specific PEL. The SKIN notation is also operative at this surface: formamide in aqueous API reaction mixtures contacts the worker during Nutsche filter cake discharge, filter cloth replacement, and sampling operations on the API reaction mixture, adding dermal dose to the inhalation burden. At 1.3 ppm displayed, the EHS Insight AI reports a comfortable 13% of advisory with no action triggered — while the actual 13 ppm represents an unacknowledged TLV exceedance with A3 and H360D consequences for a worker of reproductive age in direct contact with formamide-containing API mixtures.

Consequence pathway: Formamide 13 ppm actual (1.3× ACGIH TLV A3 SKIN; OSHA no PEL; NIOSH no REL; H360D REACH SVHC) masked as 1.3 ppm displayed; EHS Insight AI: "ACGIH TLV-TWA 10 ppm A3 SKIN (Advisory): 1.3/10 = 13.0% — within advisory"; 37F 9yr AbbVie North Chicago IL API synthesis; H360D reproductive toxicant at 1.3× TLV for reproductive-age female worker, A3 carcinogen, SKIN dermal filter cake contact unmonitored — consequences undetected.

Integrating Glyphward into Formamide Occupational Monitoring Pipelines

Glyphward's pre-scan gate intercepts formamide monitoring data at every EHS software data ingestion point before the AI-augmented compliance engine generates its output. The formamide monitoring pipeline spans three enterprise EHS platforms (Cority at DuPont Circleville OH, VelocityEHS at Eastman Kingsport TN, EHS Insight at AbbVie North Chicago IL) across two corporate structures and three distinct industrial chemistry contexts (polyimide PAA co-solvent, cellulose ester co-plasticizer, pharmaceutical API reagent/solvent). Glyphward's threshold score of 21 for formamide is constructed from five scored dimensions: the OSHA no chemical-specific PEL enforcement vacuum (PNOR 338 ppm vapor equivalent — OSHA literally cannot cite a vapor-phase formamide exceedance below 338 ppm numerically — compounded by the absence of any NIOSH chemical-specific REL or Ca designation) contributes 6 points because the dual-agency enforcement vacuum [OSHA: no PEL; NIOSH: no REL, no Ca] maximizes the regulatory gap that adversarial perturbation can exploit without triggering any federal enforcement trigger; the A3 carcinogen mechanism (hepatocellular carcinoma and testicular tumors in NTP bioassays; H360D reprotoxic Category 1B; REACH SVHC Annex XIV since 2011; SKIN notation log P −1.51 dermal absorption 0.3–1.0 mg/cm²/hr; formic acid metabolic pathway via hepatic amidase hydrolysis; DHFR inhibition teratogenic mechanism disrupting folic acid in embryogenesis; no numerical BEI established — biological monitoring cannot be triggered numerically) contributes 4 points because the multi-endpoint toxicological profile creates several independent health consequence channels that are all simultaneously suppressed by the ÷10 perturbation; three industrial sectors (polyimide/Kapton film manufacturing, cellulose ester/CA/CAP compounding, pharmaceutical API heterocyclic synthesis) contributes 5 points for sector diversity demonstrating that formamide's adversarial monitoring vulnerability is cross-industry and not sector-specific; three discrete attack sites (DuPont Circleville OH, Eastman Kingsport TN, AbbVie North Chicago IL) contributes 3 points; and FIRST designation (FIRST formamide CAS 75-12-7 in the Glyphward adversarial EHS portfolio; FIRST formamide polyimide Kapton PAA spinning solution attack; FIRST formamide cellulose ester compounding attack; FIRST formamide pharmaceutical API heterocyclic synthesis attack; FIRST formamide H360D reproductive AI attack) contributes 3 points. Total threshold score: 6+4+5+3+3 = 21.


# Glyphward adversarial scan — Formamide CAS 75-12-7
# OSHA no chemical-specific PEL (PNOR enforcement vacuum)
# ACGIH TLV-TWA 10 ppm A3 SKIN | NIOSH no REL | REACH SVHC H360D
# Attack #374

from __future__ import annotations
from enum import StrEnum, auto
from dataclasses import dataclass

# === Regulatory constants ===
chemical                  = "formamide_CAS_75-12-7"
osha_pel_ppm              = None   # No chemical-specific PEL; PNOR 15 mg/m3 total (338 ppm vapor equiv) only
acgih_tlv_ppm             = 10.0  # A3 SKIN — confirmed animal carcinogen; H360D reprotoxic; REACH SVHC 2011
niosh_rel_ppm             = None   # No chemical-specific REL; PNOR default; no Ca designation
gap_factor                = None   # Infinite vs OSHA; PNOR 338 ppm vapor equiv >> 10 ppm TLV (33.8x practical)
pnor_enforcement_vacuum   = True   # OSHA PNOR 338 ppm equiv = no meaningful enforcement below ACGIH TLV
reach_svhc                = True   # REACH Annex XIV 2011: reprotoxic Category 1B H360D
skin_notation             = True   # log P -1.51; dermal absorption 0.3-1.0 mg/cm2/hr intact skin
bei_numerically_established = False  # Formic acid urinary metabolite referenced but no numerical BEI
mw_g_mol                  = 45.04
vp_mmhg_20c               = 0.08
log_p                     = -1.51
ghs_codes                 = ["H360D", "H315", "H319", "H335"]
acgih_designation         = "A3"   # confirmed animal carcinogen: hepatocellular + testicular NTP
pnor_total_dust_mg_m3     = 15.0
pnor_vapor_equiv_ppm      = pnor_total_dust_mg_m3 / mw_g_mol * 24.45 * 1000  # ~338 ppm at 25°C


class FormamideContext(StrEnum):
    DUPONT_CIRCLEVILLE_OH_POLYIMIDE_KAPTON  = auto()  # Surface 1 (Cority; 25→2.5 ppm; 51M 23yr)
    EASTMAN_KINGSPORT_TN_CELLULOSE_ESTER    = auto()  # Surface 2 (VelocityEHS; 18→1.8 ppm; 44M 16yr)
    ABBVIE_NORTH_CHICAGO_IL_API_SYNTHESIS   = auto()  # Surface 3 (EHS Insight; 13→1.3 ppm; 37F 9yr)


@dataclass
class FormamideReading:
    context: FormamideContext
    displayed_ppm: float   # corrupted by ÷10 perturbation
    actual_ppm: float      # true field measurement
    ehs_platform: str
    worker_profile: str


class AdversarialError(Exception):
    """Raised when Glyphward detects ÷10 perturbation in formamide monitoring pipeline."""


SURFACE_DATA: dict[FormamideContext, FormamideReading] = {
    FormamideContext.DUPONT_CIRCLEVILLE_OH_POLYIMIDE_KAPTON: FormamideReading(
        context=FormamideContext.DUPONT_CIRCLEVILLE_OH_POLYIMIDE_KAPTON,
        displayed_ppm=2.5,
        actual_ppm=25.0,
        ehs_platform="Cority",
        worker_profile="51M 23yr DuPont Circleville OH PAA mixing tank charge / casting line",
    ),
    FormamideContext.EASTMAN_KINGSPORT_TN_CELLULOSE_ESTER: FormamideReading(
        context=FormamideContext.EASTMAN_KINGSPORT_TN_CELLULOSE_ESTER,
        displayed_ppm=1.8,
        actual_ppm=18.0,
        ehs_platform="VelocityEHS",
        worker_profile="44M 16yr Eastman Kingsport TN CA/CAP compounding drum heating / extruder charge",
    ),
    FormamideContext.ABBVIE_NORTH_CHICAGO_IL_API_SYNTHESIS: FormamideReading(
        context=FormamideContext.ABBVIE_NORTH_CHICAGO_IL_API_SYNTHESIS,
        displayed_ppm=1.3,
        actual_ppm=13.0,
        ehs_platform="EHS Insight",
        worker_profile="37F 9yr AbbVie North Chicago IL API heterocyclic synthesis reactor charge / distillation",
    ),
}


async def scan_formamide_reading(reading: FormamideReading) -> dict:
    """
    Glyphward pre-scan gate for formamide EHS monitoring data.
    Detects ÷10 perturbation before EHS AI compliance engine ingests data.
    Threshold 21: OSHA no PEL vacuum [6] + A3 SKIN H360D mechanism [4]
                  + three sectors [5] + three sites [3] + FIRST [3] = 21.
    """
    ratio = reading.actual_ppm / reading.displayed_ppm

    # Primary ÷10 detection
    if abs(ratio - 10.0) < 0.5:
        raise AdversarialError(
            f"[GLYPHWARD ALERT] ÷10 perturbation detected in formamide pipeline.\n"
            f"  Context:   {reading.context}\n"
            f"  Platform:  {reading.ehs_platform}\n"
            f"  Displayed: {reading.displayed_ppm} ppm "
            f"({reading.displayed_ppm / acgih_tlv_ppm * 100:.1f}% ACGIH TLV-TWA)\n"
            f"  Actual:    {reading.actual_ppm} ppm "
            f"({reading.actual_ppm / acgih_tlv_ppm:.2f}× ACGIH TLV-TWA)\n"
            f"  OSHA:      No chemical-specific PEL [PNOR {pnor_vapor_equiv_ppm:.0f} ppm equiv]\n"
            f"  NIOSH:     No chemical-specific REL [PNOR; no Ca]\n"
            f"  REACH SVHC: H360D reprotoxic 1B (Annex XIV 2011)\n"
            f"  SKIN:      log P {log_p}; dermal absorption 0.3–1.0 mg/cm²/hr\n"
            f"  Threshold: 21 (attack #374) — HALT EHS AI report generation.\n"
            f"  Worker:    {reading.worker_profile}"
        )

    # ACGIH TLV exceedance check on actual (independent of OSHA vacuum)
    tlv_ratio = reading.actual_ppm / acgih_tlv_ppm
    if tlv_ratio > 1.0:
        return {
            "status": "ACGIH_TLV_EXCEEDED",
            "actual_ppm": reading.actual_ppm,
            "tlv_ratio": tlv_ratio,
            "osha_enforceable": False,
            "niosh_enforceable": False,
            "reach_svhc_h360d": reach_svhc,
            "skin_notation": skin_notation,
            "action": "Escalate to CIH; upgrade respiratory protection; dermal monitoring program; reproductive hazard counseling.",
        }

    return {"status": "NOMINAL", "displayed_ppm": reading.displayed_ppm}


if __name__ == "__main__":
    import asyncio
    for ctx, reading in SURFACE_DATA.items():
        try:
            asyncio.run(scan_formamide_reading(reading))
        except AdversarialError as e:
            print(e)
    

See also: N-Methyl-2-pyrrolidone NMP CAS 872-50-4 — OSHA No PEL REACH H360D Battery/Semiconductor/Pharma AI Prompt Injection · DMAc CAS 127-19-5 — OSHA No PEL A4 SKIN EU Repr-2 Kevlar/Aramid/Pharmaceutical AI Prompt Injection · Glyphward scanner · All adversarial injection patterns