Well, in theory, but it's very far from what we have, and I don't see the point. The HELP contents are populated by a bunch of SQL queries generated from the KB.
I don't think there is any point in having a help within the server, when this help doesn't correspond the server version it is in. True, we didn't pay much attention to it so far, but we should start sooner or later, and it seems very obvious that it should either be accurate or shouldn't exist (I personally would be quite happy with the latter option). It is one thing when the help is missing new topics – it is unfortunate but not very problematic; but when something changes and the help becomes straight wrong – that's a problem.
Maybe the help within the server should be converted from the full text topics to a simple name => link pair, pointing to corresponding pages in the KB (links are already there)? Nothing works without the internet these days anyway, so I don't think it's such a huge loss for the users. It is pity if the KB is changed next day after the release, but the help within the server remains wrong until users upgrade next time.
It is (or at least was) done this way around in MySQL as well.
I don't know details of how it is/was done, but it may have something to do with MySQL documentation actually being a part of the workflow, as you pointed at the end? they update documentation with each closed item, so by the time of a release the documentation (the new version) is up-to-date and can be used for generation.
If the intention is to have up-to-date HELP contents, then the developer developing the feature could edit the KB in advance, and it will appear in the next version of the HELP.
I don't believe it's a great idea to put this responsibility in general on developers. Small amends maybe, but when it comes to bigger changes in the KB, it requires a professional, as everything else. Which is probably another reason for not having the documentation within the server code.
Ultimately this comes down to including documentation in the workflow. Doing the documentation, or at least flagging a documentation issue, neither of which happen reliably right now. I'd be happy just seeing a documentation MDEV for each relevant change.
True, but it won't change much for the help or for timely updates unless we also make such an MDEV a blocker for the release. It isn't impossible to start creating MDEVs, but do you think the documentation will be able to keep up without holding off the releases?
HELP topics are/will be generated from the Knowledge Base, so once any changes are documented, they will appear in the HELP.