profile_sync.py keeps the command line: the parser, the flag checks,
profile selection against the branch, main, and the two steps that
read top-level modules (project_base, the site's source paths). The
library goes to one module per concern under scripts/profiling.
Tests that patched a name now patch the module their caller reads
it from. test_layers declares profiling with no sibling imports.
upstream reads forges with the standard library alone and scrapers,
packs and the site read it: it goes to core. sourceref is the grammar
of a profile field, which the site parses without the comparison
tool: it goes to model. version_basis is read by profile_sync alone
and opens the profiling package.
core (0) imports the standard library only, model (1) loads data,
resolve (2) turns declarations into files, the domain packages (3)
build on them and the top-level scripts are the commands (4). The test
refuses an import into a higher layer, a cycle between packages or
inside core, model and resolve, and a package module importing a
top-level module. NOT_YET_PACKAGED and PENDING_TOP_LEVEL_IMPORTS list
what later waves move, exactly, so an emptied entry has to leave.