Hello Vitali,
yes, you are right - in case extensions via AMP or JAR method want to introduce new filters, you need to have some kind of extension hook. Usually, when I modify a core Alfresco source file, I actually implement such a hook myself, even if not using an AMP extension. This is what I then include in proper documentation or even submit as patches to Alfresco, when they themselves have not yet added a feature of their own (e.g. the new Surf / Share Extensibility features, which have already addressed a large part of what I previously had to adapt).
What I outlined on the other hand is the commonly accepted approach for a majority of installations / users that only have a limited business use case to address and do not make use of such extensive extensions (perhaps only Share Extras and some other dashlets). For maintainers of a DMS platform - which I am for a large pharmaceutical company - , this is not enough / suitable at all as you point out.
Regards
Axel