orthonym.assembly.default_tier_offer#
Note
Internal API. Names and behaviour may change between releases.
The best-effort tier does not name less than the default tier names.
The validity gate withdraws, at the best-effort tier, a name OPSIN 2.9.0 cannot read: that tier ships a
name only when OPSIN reads it back to the input’s full InChIKey. The default tier ships one class of
such names, the strict path’s PIN spelling whose stereo layer OPSIN rejects (the lowercase r/s
of (1r,4r)-cyclohexane-1,4-diol, “Achiral cyclic compounds”; a name of a polycycle
with many stereocentres): the gate reads the stereo-stripped name, compares its constitution to the
input’s, and the descriptors are checked against the input’s CIP labels (the gate outcome
self_consistency_constitution_only, label pin_unverified). At the best-effort tier the same name
was withdrawn, so a molecule the default tier names was left without a name by the tier above it.
User decision 2026-10-20 (“ship it too”): a molecule the best-effort tier leaves unnamed gets the row
the default tier gives it, when that row is a pin_unverified name of this class and is a name the
best-effort gate withdrew for the molecule. It is an offer, not a return (a project rule): it is made
only when every other path of the best-effort tier has left the molecule without a name, so no name
that ships changes, and a verified name of another producer (the cis/trans name of
rules.relative_stereo, the general engine’s name) is never replaced by it.
Parity, not a new trust path. The row is the default tier’s own: the molecule is named by a default-tier
engine (default_tier_engine(), with the construction options of the best-effort engine) and its
row, label and gate outcome are returned as they are (opsin verified_constitution_only,
verified opsin_constitution). Whether the default tier ships the name is decided by the default
tier’s code (the grammar carve-outs, the stereo-layer carve-out, the emission rule of
namer._default_tier_emits), not by a copy of its conditions here. A row of any other default-tier
exception stays withheld at best-effort: the grammar carve-outs, the organometallic additive carve-out
(it has a known atom-drop hole, see namer._final_opsin_validity_gate) and the twin ships keep the
gate outcome that names them, and only the stereo-layer one is offered as the default tier’s row (the twin
of a thioperoxol is the second class, below, a pass of the tier’s own engine).
A third class, the adduct of a drawing of several fragments whose delocalised cation OPSIN draws on the other
resonance atom than the input has it (relaxed_adduct_row(), Orthonym._candidate_rt_match). The recovery of
the best-effort tier judges such an adduct by the exit’s rule (the full InChIKey, the radical graph and the
protonation site) only in the pass of this offer; in the first pass it keeps the exact comparison of canonical
SMILES and notes that it rejected such a candidate. A molecule that pass leaves without a name is named once more
with the exit’s rule admitted, so a name that ships changes in no case (a cation drawn as a cyanine ships the name
its later retries give it, as before) and a molecule that had none gets the first candidate that reads back.
Every entry point agrees: name_tiered (offer_default_tier_row(), the last step of
spelling_offer.name_tiered_with_offer) and the caller’s own Orthonym.name call
(default_tier_name_scope(), the decorator of name, which name_compound and
name_with_confidence call).:func:hold_withdrawn is called by the gate when it withdraws such a
name and:func:clear_held starts every outermost naming.
A second class, the PIN spelling of a thioperoxol (user decision 2026-10-22, “Best-effort ships readable”). A
general tier (valid, complete, best-effort) prefers the name OPSIN reads, the name by prefixes
‘(hydroxysulfanyl)methane’, to the PIN spelling ‘methane-SO-thioperoxol’, which only a twin spelling can verify
(validation.thioperoxol_twin), so the gate withdraws the neutral PIN spelling there. Such a name is held too, and
a molecule the tier leaves without a name is named once more with the twin admitted (twin_last_resort_row()).
The anion of -S-OH is not of this class: the engine has no other spelling for it, so the gate ships it through its
twin in the one pass (twin_spellings.general_tier_twin_round_trip). The second pass is a safety net, kept so that a
general tier never names less than it named when the twin shipped the PIN spelling at every tier: a molecule that
only the PIN path names (the valid and complete tiers have no systematic floor, and the general engine has size caps)
would otherwise be named by the default tier and declined by a wider one. No molecule of the measured sets needs it
(141 rows with an S-O group, three tiers, none lost without it). The pass is the tier’s own engine, so the row, its
label and its gate outcome are the ones the twin gave before.
A fourth class, two rings of one seniority joined by =CH- whose parent the criteria of the book choose (h) and
(k), and whose name the producers cannot build with a specified E/Z link (other_tie_ring_row()): the
molecule is named once more with the other ring as the parent, below the PIN, with the row the tier gives it. The
best-effort tier named such a molecule with that ring before the criteria chose the other one.
A fifth class, a handler of the dispatch table that names a molecule with a part only the wider vocabulary names
(deferred_handler_row()): the organometallic handler reads an organyl ligand through the substituent namer,
which at the best-effort tier gives a name where the default tier’s cascade declines (‘tert-butyl[(6-formyl-1,2-dithiin-
3-yl)methoxy]di(methyl)silane’), and the handler, the first of the table, named the molecule as a silane before any other
route was asked. The default tier declines such a ligand and the molecule is named by the routes after the handler
(6-({[tert-butyldi(methyl)silyl]oxy}methyl)-1,2-dithiine-3-carbaldehyde: a ring parent with the silyloxy prefix). The
best-effort tier asks the handler the default tier’s way (default_tier_scope()); where that declines, the
handler is deferred (defer_handler()) and the other routes are asked, and a molecule they leave without a name
is named once more with the wider reading admitted (handler_admitted()), so no molecule loses its name.
The last offer, for a molecule with stereo that every path above leaves without a name, is the name of its
stereo-free structure with the stereo of the input composed on it (assembly/stereo_composed_offer.py). After
it, for a molecule with radical centres that nothing above names, the last resort is the floor’s name with every
radical centre cited in it (assembly/radical_offer.py).
- orthonym.assembly.default_tier_offer.clear_held()#
Forget the held names and the name offered. Called at the start of every outermost naming (
nameorname_tiered), so that an offer reads only the names its own run withdrew.
- orthonym.assembly.default_tier_offer.note_declined_part(part)#
A producer declined a part of the molecule (an organyl group, a ligand) that the wider reading may name:
default_tier_first()defers its handler only then, since otherwise the wider reading is the same decline.
- orthonym.assembly.default_tier_offer.defer_handler(handler_id)#
The handler
handler_iddeclined the molecule when asked the default tier’s way: it is offered again with the wider reading (deferred_handler_row()) if no other route names the molecule.
- orthonym.assembly.default_tier_offer.default_tier_first(produce, handler_id, part=None, defer_when=None)#
producethe default tier’s way when a wider tier runs; elseproduceas it is asked.The producers of a handler of the dispatch table read the tier from the context variables, so a wider tier’s producer can name a part that the default tier’s cascade declines (an organyl group, a ligand) and the handler then names the molecule with it before the routes the default tier takes after the decline are asked. The default tier’s reading is asked first (
default_tier_scope()) and is the result when it names the molecule.Where it names nothing:
the handler
handler_idis deferred (defer_handler()) when the producers noted that they declined the partpart(note_declined_part(); any decline whenpartis None) anddefer_whenholds (when given): the result is nothing, the other routes are asked, and the wider reading is the last (deferred_handler_row());otherwise the wider reading is asked now, as it always was.
In the pass that admits the handler the wider reading is asked as it always was.
- orthonym.assembly.default_tier_offer.handler_admitted(handler_id)#
Whether the running naming is the pass of:func:deferred_handler_row that admits the wider reading of
handler_id.
- orthonym.assembly.default_tier_offer.note_tie_ring()#
The running naming chose the parent of a ring=CH-ring tie: the molecule is offered the other ring (
other_tie_ring_row()) if no other path names it.
- orthonym.assembly.default_tier_offer.note_relaxed_adduct()#
The recovery rejected an adduct of the whole molecule that the exit’s rule accepts: the molecule is offered the pass of:func:relaxed_adduct_row if no other path names it.
- orthonym.assembly.default_tier_offer.relaxed_adduct_active()#
Whether the running naming is the pass of:func:relaxed_adduct_row.
- orthonym.assembly.default_tier_offer.is_offered(namer, name)#
Whether
nameis the name the caller’s ownnamecall of the best-effort enginenamerwas offered. The exit check ofname_with_confidencereads it: the default tier’s own checks, which the round trip of a general tier cannot make for a name OPSIN cannot read, have passed it.
- orthonym.assembly.default_tier_offer.held_names()#
The names a general-tier gate withdrew for the whole molecule and that an offer may give back: a name with a stereo layer, or a neutral thioperoxol name that has a twin, in the order withdrawn.
- orthonym.assembly.default_tier_offer.hold_withdrawn(name, smiles, caller_input)#
Hold
name, which a general-tier gate withdrew forsmilesbecause OPSIN cannot read it.Only a WHOLE-MOLECULE call is held:
smilesis the string the outermostnamewas given (caller_input); the names of fragments and of other molecules a producer probes are not. Only a name with a stereo layer or a neutral thioperoxol name that has a twin is held: the stereo-layer carve-out is licensed by OPSIN reading the stereo-stripped name, so a name without one cannot be a name the default tier ships through it, and the twin of a neutral thioperoxol name is the other class of the module docstring (a narrowing of what is held; the default tier and the twin decide every offer). A thioperoxolate anion is not held: the gate has already tried its twin. Each class has its own bound_MAX_HELD. Never raises: it is called inside the gate.
- orthonym.assembly.default_tier_offer.default_tier_engine(namer)#
A default-tier engine with the construction options of
namerand every breadth flag off.The one place that builds it: the strict twin of a wider tier (
namer.Orthonym._strict_pin_twin_name, which decides the honest PIN status of a label) and the engine of the offer below. It inherits the OPSIN-gate setting, so its acceptance bar matchesnamer’s.
- orthonym.assembly.default_tier_offer.general_tier_engine(namer)#
An engine at the tier of
namer(the same breadth flags) with its construction options: the engine oftwin_last_resort_row(), which names the molecule once more.
- orthonym.assembly.default_tier_offer.default_tier_row_for(namer, smiles)#
The row
nameroffers a molecule it left without a name, or None.smilesis a SMILES string or an RDKit molecule, as forname_tiered.The default tier’s row when
nameris a best-effort engine of the PIN style, the gate withdrew names for the molecule, and the default tier ships one of them through its stereo-layer carve-out (stereo_layer_row()); else, at any general tier, the row of the twin last resort (twin_last_resort_row()); the last offer, for a molecule with stereo, is the name of its stereo-free structure with the stereo composed on it (stereo_composed_offer.stereo_composed_row), and after it, for a molecule with radical centres, the name of the floor with every centre cited in it (radical_offer.radical_last_resort_row).
- orthonym.assembly.default_tier_offer.deferred_handler_row(namer, smiles)#
The row of
namerforsmilesnamed once more with the handlers it deferred (defer_handler()) admitted to their wider reading, when the first pass left the molecule without a name; else None.The pass is the tier’s own engine (
general_tier_engine()), so the row, its label and its gate outcome are the tier’s; the handlers are asked in the pass as the tier always asked them. No pass inside the pass (handler_admitted), none for a junior parent of the pool.
- orthonym.assembly.default_tier_offer.other_tie_ring_row(namer, smiles)#
The row of
namerforsmilesnamed with the OTHER ring of a ring=CH-ring tie as the parent, when the complete or best-effort tier left the molecule without a name; else None.The ring the criteria of the book choose, (h) and (k),;
ring_selection. _ylidene_tie_parent) may be one whose name the producers cannot build with the stereodescriptors of the link (a specified E/Z link that no ring-ylidene prefix carries), where the name of the other ring builds (and the tier named the molecule with it before the criteria chose the ring). The molecule is named again on an engine of the same tier (general_tier_engine()) with the other ring offered (ring_selection.OFFER_OTHER_TIE_RING): first as a name below the PIN (offer 1: the tie is not decided by the book’s criteria; a verified name ispin_unverifiedorsystematic_verified), then, for a name the tier cannot verify in full (OPSIN reads no ring-ylidene stereodescriptor), as the name that builds without that record (offer 2), whose row the tier gives its own label (pin_unverified,opsinverified_constitution_only: the constitution read back, the descriptors checked against the CIP labels). The row of a name that earnspin_verifiedis never offered: the ring is not the one the book chooses. No pass inside the pass, none for a junior parent of the pool (spelling_offer); the PIN tier never runs this (_general_fallback).
- orthonym.assembly.default_tier_offer.relaxed_adduct_row(namer, smiles)#
The row of
namerforsmilesnamed once more with the exit’s rule admitted for the adduct of the whole molecule, when the first pass left the molecule without a name after rejecting such an adduct (note_relaxed_adduct()); else None.(Organic adducts): “Names are formed by citing the names of individual compounds in the order of
the formula connected by long (em) dashes”. OPSIN draws a delocalised cation on either resonance atom, so an adduct whose component reads back to the same species on the other atom differs from the input in its canonical SMILES. The pass is the tier’s own engine (
general_tier_engine()), so the row, its label and its gate outcome are the tier’s; the row is returned only for a name that joins components by long dashes. No pass inside the pass. Best-effort tier only.
- orthonym.assembly.default_tier_offer.stereo_layer_row(namer, smiles, held)#
The default tier’s row for
smileswhennameris a best-effort engine and the default tier ships, through its stereo-layer carve-out, one of the namesheldthat the best-effort gate withdrew; else None.
- orthonym.assembly.default_tier_offer.twin_last_resort_row(namer, smiles, held)#
The row of
namerforsmilesnamed once more with the thioperoxol twin admitted, when the gate withdrew a neutral thioperoxol name that has a twin (held) and no other path left the molecule with a name; else None.The PIN spelling ‘methane-SO-thioperoxol’ is withdrawn at a general tier in favour of the name OPSIN reads (‘(hydroxysulfanyl)methane’); a molecule that has no such name keeps the PIN spelling the twin read back before, with its row as the tier gave it:
validation.thioperoxol_twin.last_resort_scopeadmits the twin in the gate, and the pass is the engine of the tier (general_tier_engine()), so no label is decided here. The row is returned only when it is a name the gate withdrew in the first pass and a twin read back (the gate outcometwin_verified:thioperoxol_...). No second pass inside the pass, none for a junior parent of the pool (spelling_offer): the name is the whole molecule’s. The anion of -S-OH never comes here: the gate ships it in the first pass.
- orthonym.assembly.default_tier_offer.list_name_yields(namer, smiles)#
Whether the exact-match natural-product list name (‘germacrane’) gives way at a general tier: the default tier ships, through its stereo-layer carve-out, a name the gate withdrew for
smiles(stereo_layer_row()), and the offer below gives that row when no name ships. A name of the PIN path, its stereo layer checked against the CIP labels, outranks a list name OPSIN cannot read: INTRODUCTION (the Blue Book) identifies no PIN for the list name, and the user decision of 2026-10-31 offers the systematic name first (advisor ruling 2026-11-01, internal notes). The list name stays the last resort when no such row exists.
- orthonym.assembly.default_tier_offer.offer_default_tier_row(namer, smiles, row)#
row, or the rowdefault_tier_row_foroffers whenrowis an abstention: the default tier’s row when the default tier ships, through its stereo-layer carve-out, a name the best-effort gate withdrew, else the row of the thioperoxol twin last resort of a general tier.
- orthonym.assembly.default_tier_offer.default_tier_name_scope(fn)#
The decorator of
Orthonym.namethat gives the caller’s own best-effort call the name ofdefault_tier_row_for()when the call leaves the molecule without a name, asname_tiereddoes.Directly under
failure_mode_scope: it sees the caller’s input beforeon_failureturns a failure into""or an error (the"raise"mode raisesOrthonymLimitErrorfromfn; the molecule is then offered the same way). A nested call, a call inside the retry thatname_tieredowns (namer._BOOK_RETRY_OWNED;name_tieredmakes its own offer) and every other tier runfndirectly.
- orthonym.assembly.default_tier_offer.confidence_scope(fn)#
The decorator of
Orthonym.name_with_confidence: a Mol is named as RDKit’s SMILES of it (orthonym.input_mol), and a molecule a producer named in a lower class than the PIN tier may gets the PIN tier’s record when its row is a PIN read back directly (pin_first), asnameandname_tiereddo.