refactor(ingest): name the path's provenance, and stop flattening every span

Review follow-ups to b4ca582e1, no behaviour change:

- `!flattened` was a strict let, so classifyUrlPathWith ran for every span on the
  ingest path while only an authoritative route could ever read it. It moves into
  the guard that uses it.
- The authority decision and the route it applies to were a Bool and a Maybe that
  had to be read together to mean anything. One `Maybe` now carries both, so the
  flag cannot be consulted without the value it is about.
- HttpKey carried that decision across to processSpanToEntities as a bare Bool.
  It is a PathSource now — DerivedFromUrl or DeclaredByRouter — because the
  difference decides whether anything downstream may second-guess the path, and
  that is worth more than a field named for its truth value.
This commit is contained in:
Anthony Alaribe 2026-09-02 00:18:09 +02:00
commit 77c636c686