i'm still unsure if you understood my problem correctly. maybe i did not express myself properly. sorry, english is not my primary language.
Yes, I didn't read carefully enough. Sorry.
...
i would say that none of the soldier, leader or commander ranks from the sectoid and snakeman race should be available for research at this point.
i don't say that the game mechanics are flawed. technically, because of the fact that the research on snakeman commander itself was not completed, it is not included in the 'discovered:' list, therefore it is available as a new project.
...
Your technical explanation is correct.
A topic will appear on the list:
1. if it hasn't been researched at all yet... which is the case for your Snakeman Commander
2. or if it has been researched, but can still provide something more
...
i merely say that i would like to make my own mod that changes this behaviour to match my expectations. i'm somewhat suspicious about my find; i feel that either i'm doing something wrong or my expectations are too high. the vanilla research.rul would be complicated [beyond comprehension for people like me] if this mechanism was fixed/changed the way i expect it to work, that's why i'm trying to achieve it with a mod.
I don't think it is possible to implement your desired behavior just using the ruleset modding features.
This behavior would require changes in the OpenXcom source code.
If you want to try to make changes in the source code, this is the function that you'll need to look at:
https://github.com/OpenXcom/OpenXcom/blob/master/src/Savegame/SavedGame.cpp#L1241