orthonym.assembly.handlers.lactone#
Note
Internal API. Names and behaviour may change between releases.
a phase lactone handler — direct-return shim with coverage gate.
Verbatim lift of composer.py:826-848 (inline branch) wrapping
rules.lactones.is_monocyclic_lactone + rules.lactones.name_monocyclic_lactone.
Per internal notes, the rule bodies stay in rules.lactones unchanged.
The handler preserves the inline branch’s coverage guard
(ring_size > 8 or total_heavy <= ring_size + 8) — without this guard,
substituted lactones in larger molecules would produce incomplete names.
IUPAC cite: (lactones / cyclic esters as heterocyclic ketones).
References: - composer.py:826-848 (inline dispatch branch; REMOVED at this commit). - rules.lactones.{is_monocyclic_lactone, name_monocyclic_lactone}. - internal notes-DECOMP.md row ‘lactone’ + purity proof.
- orthonym.assembly.handlers.lactone.name_lactone(features, mol=None, style='pin')#
Direct-return lactone handler with coverage guard.
Verbatim semantics of composer.py:827-848. Returns None if the coverage guard rejects (large substituted lactone where the bare name would be incomplete).