Once the source of a package is zipped up and sent to debian, it goes into sid branch and their buildbots make debs for every supported architecture (including the Pi). then after its proven to be safe, it moves into testing branch. Every couple of years, Debian makes a new stable release from testing branch. Once an application gets into the stable release it is locked and does not changed. Debian Bookworm (version 12) is the release branch. Because Linuxcnc has its own buildbot and repositories, you can add those to the apt system. This is what my X86 installer does automatically. Then when it does an upgrade, it will grab the very latest debs of linuxcnc.
But that buildbot is unable to build the debs for the Pi so the only option is to build from source to update linuxcnc. Its my hope that this installer could be hooked into the buildbot system and produce an image and updated debs for the pi whenever the code base is changed. But I am not a decision maker, I am just trying to remove some roadblocks.
So Debian 12 was released on the 6.1 kernel. Further to Cornholio's comments, we need the Preempt-rt patch from kernel.org. This can be found at kernel.org
mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.1/
Each version of the Linux kernel goes through a number of releases. the latest RT patch you can see it is 6.1.46
This patch is used to update the ordinary kernel code and compiled to get a PREEMPT_RT kernel. But it needs to be applied to the same version to guarantee reliable operation. The Raspberry Pi kernel repo has advanced to 6.1.51 so we can't use the very latest. Instead we searched the git tree and found the commit where the 6.1.46 kernel was merged into the raspberry kernel. So this is the base code we retrieve in the installer and we have copied the RT patch into a folder in the installer which first applies our patch, the builds the kernel, followed by a root file system and linuxcnc and turns it into an image. Because the linux kernel has now advanced up to 6.5, its unlikely the patch will change, so this should last for a long time. Except for the need to update linuxcnc.