Every target the managed git sync created stayed "Backend / API", the
Android+Unity repository and the firmware repositories included. The sync
creates a target when its repository is created, before anything is
pushed, so detection then saw no code and fell back to the default type;
and the classification each scan computes was stored, but never applied
to the target's type.
A scan now applies it to a managed target (OnboardedTarget::detected_type)
when the classifier found evidence (not only the fallback), the evidence
names another type, and no person has chosen the type. The default
compliance profile of the new type comes with it. Changing the type in
the editor sets `type_chosen`, and the scans leave it alone from then on;
the editor sends the type on every save, so only a change counts.
Existing managed targets are re-typed by their next scan.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p