orthonym.decomposition.split_memo#
Note
Internal API. Names and behaviour may change between releases.
The verdict of one single-bond split, memoised for the naming scope (engine._try_single_bond_decompose).
One naming asks the decomposition for the same split again and again: the charged-route re-entry and every fragment
naming that reaches the same remainder enter it once more (a peptide of the 2026-11-12 time-out audit, PubChem CID
166028644: 143 top-level splits in 40 groups of one molecule, bond and naming state; the repeats cost 79 of 165 s).
Only the assemblers that cannot prove their group word kept their verdict (engine._unproven_split_key); an amide
split that the assembler refuses was named again in full each time.
The key is the one of the unproven verdict (the atom-ordered graph, the bond, the style, the ambient breadth flags, the N-acyl float scope, the peptide re-entrancy flags, the locant and isotope scopes, the fragment-session depth) and the set of fragments named up the stack (a fragment met again there is a cycle, and the names read it).
A split already found unproven is not served here: its repeat takes the engine’s own path, which costs nothing and
fixes the exploration floor of the budget armed now (engine._note_unproven_split). Any other hit replays what the
first call left: its provenance (nested_memo.cached_nested_call) and the cycle hits it logged
(fragment_naming._note_cycle_hit; the fragment named around this split reads them to keep its name in context).
A hit charges the budget units the first call charged (replay_budgets=True): the old repeat of a split on the
large molecules this memo is for named its remainder again and charged the analysis budget again, and that charge is
what ends the search there (engine._exploration_exhausted). Measured 2026-11-12 (PubChem CID 16396833, 300 s
limit): no charge on a hit 148.8 s, the first call’s charge 98.1 s, no memo 92.1 s; the same name. A split found
unproven is the case where the old repeat cost nothing, and it does not reach this memo. A call that raises is not
stored.
ORTHONYM_MEMO=verify recomputes every hit and compares the name and the cycle hits.
- orthonym.decomposition.split_memo.memoised_split(mol, bond, style, fresh)#
fresh(the split named), once per naming scope for the same split and state.