Contributing¶
Keep the platform independent of consumer domains. New public capabilities need a demonstrated second use or a first-consumer requirement that cannot be expressed through the existing schema. Metric and event semantics belong to consumers.
Before handing off a change, run the unit and contract suite, Ruff, strict mypy, the Collector
static validator, and the affected consumer contract suite. Changes to public types, configuration,
OpenTelemetry dependencies, or Collector assets must update compatibility.toml and the relevant
documentation.
Use make test-focused TEST=... while developing and make test before handoff. Run make smoke
for package changes and make test-docker for Collector changes. A meaningful bug fix includes a
regression test that is shown to fail against the defective behavior before it passes with the fix.
Review any deleted test, weaker assertion, new skip, coverage-threshold change, or acceptance-criteria
change as a contract change, not test cleanup. Record commands and results in the handoff or pull
request; a newly written test passing by itself is not sufficient evidence.
Use Linear team PL for tracked work and the canonical triage labels in
docs/agents/triage-labels.md. The pull-request checklist and
docs/agents/handoff.md capture the evidence needed for review.
Do not commit credentials, populated environment files, captured production telemetry, or live backend data. Do not publish packages, images, or change live infrastructure without explicit release authority.