feat(labkit-events): add coding_agent to OrbitQueryContext

Summary

  • Add optional coding_agent field to OrbitQueryContext / builder / serialization
  • Bump ORBIT_QUERY_SCHEMA from 2-0-0 to 2-0-1 to match the Iglu schema addition (iglu!191)
  • Validated with max-length 64, same pattern as tool_name and global_user_id

Downstream consumer: gitlab-org/orbit/knowledge-graph!1319 (merged) (extracts coding agent from user-agent header — this MR lets it flow into Snowplow analytics).

Test plan

  • Existing unit tests pass (145 tests)
  • Integration tests pass (15 tests, including schema version assertion)
  • coding_agent added to all_optional_fields_serialize test
  • coding_agent added to each_string_field_enforces_its_max_length table
  • Clippy clean

Merge request reports

Loading