orthonym.assembly.handlers.ring_nitrile#

Note

Internal API. Names and behaviour may change between releases.

a phase ring_nitrile handler — Tier-2 mid-tier direct-return.

Verbatim lift of composer.py:1337-1348 (inline dispatch branch) + the composer.py:4537-4605 (_assemble_ring_nitrile_name, 69 LOC) body via lazy import. Per internal notes the body STAYS in composer.py during Plan-03 commits 03-01..03-09; Plan-03 commit 03-10 deletes the redundant body.

Byte-identical contract per internal notes (DECOMP-03): handler’s behavior on every canary fixture MUST equal the inline branch’s behavior bit-for-bit.

IUPAC cite: (ring-nitriles / carbonitriles on rings).

References: - composer.py:1337-1348 (inline dispatch branch; REMOVED at this commit). - composer.py:4537-4605 (_assemble_ring_nitrile_name body; STAYS until 03-10). - internal notes-DECOMP.md row ‘ring_nitrile’ + Tier-2 row. - internal notes (Tier B / mid-tier lift handler pattern). - 160-internal notes (atomic-commit byte-identical canary lock).

orthonym.assembly.handlers.ring_nitrile.name_ring_nitrile(features, mol=None, style='pin')#

Direct-return ring_nitrile handler.

Verbatim semantics of composer.py:1337-1348. Returns NamingResult(name=<final string>, tree=None, atom_to_locant_hint=None) on success. _inject_stereo_if_missing is applied per the inline branch’s behavior at composer.py:1348.