I'm also not sure about core/rebuild.php and core/scripts/rebuild_token_calculator.sh. We've got existing issues to add something like that (although those were originally due to the D7 registry) and I'm sure there's discussion on those that isn't reflected here. For example why a cli token generator and not a flag in $settings similar to update_free_access? The latter would allow people with no cli access to rebuild for example, whereas this makes things command line only - but if it's command line only then why not directly rebuild in the shell script anyway?
I have separated out the rebuild files to here but I will not have the time to work on the feedback above.
PASSED: [[SimpleTest]]: [MySQL] 59,228 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 59,282 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 59,155 pass(es). View