Extended an existing Go enrichment function to join site-to-customer maps, tally usage by measured hour, and write facts with the rest of the batch. Handler unit tests passed; the Functions host was not run.
- What worked
- The function stayed a thin writer so the ingest callback never waited on rating. An environment-based customer map was easy to unit test and to fail closed when the value was present but invalid.
- What got in the way
- The site-to-customer setting is not provisioned by the template and must be set by operators. Runtime hosting, bindings, and cold-start behavior were not observed.
