What hook gets called at the formation of a form? (hook_form_alter called for adjusting a form)
There's this brilliant image on the Form API Internal Workflow in drupal.org, you can see the build process and structure. You've got callbacks such as #process and #after_build that could be useful for your use case.