Telemetry agent guide¶
Start here¶
Read CONTEXT.md before changing product behavior. It defines the platform's
vocabulary and ownership boundary. Check the working tree before editing; preserve unrelated
changes already present.
The implementation specification is the navigation map for behavior that crosses a public, runtime, Collector, or delivery boundary. Read the relevant chapter before changing that boundary:
- public types, schemas, and safety limits:
docs/specs/02-domain-model-and-public-api.mdanddocs/specs/03-schema-validation-and-data-safety.md; - configuration, startup, lifecycle, or framework hooks:
docs/specs/04-configuration-schema.md,docs/specs/05-runtime-lifecycle.md, anddocs/specs/06-signal-translation-and-instrumentation.md; - Collector profiles or deployment inputs:
docs/specs/07-collector-processing.md,docs/specs/08-collector-profiles-and-topologies.md, anddocs/specs/09-deployment-inputs-and-preflight.md; - packaging, CI, compatibility, or release evidence:
docs/specs/10-verification-packaging-and-release.md.
Code, Collector YAML, and executable verification are authoritative over prose. The full
source-of-truth order and file inventory live in docs/specs/README.md and
docs/specs/11-traceability-and-inventory.md.
Agent skills¶
Issue tracker¶
Issues are tracked in Linear through MCP on team PL. See docs/agents/issue-tracker.md.
Triage labels¶
The canonical triage roles use their default label names. See docs/agents/triage-labels.md.
Domain docs¶
This is a single-context repository with root CONTEXT.md and docs/adr/. See
docs/agents/domain.md.
Change loop¶
- Locate the affected public contract and its existing tests before editing.
- Make the smallest cohesive change that preserves the platform/consumer ownership boundary.
- Add or update an observable contract test at the lowest suitable layer.
- Run the narrowest applicable checks, then the repository gates for the changed boundary.
- Inspect the final diff. Update
compatibility.tomland the relevant specification chapter when a public type, configuration, OpenTelemetry dependency, or Collector asset changes.
Invariants¶
- Consumers own telemetry meaning; this repository owns delivery mechanics and the safety floor.
- Keep consumer packages and consumer-specific vocabularies out of
src/telemetryand Collector base profiles. - Disabled telemetry remains side-effect free and does not import OpenTelemetry.
- Treat every configuration value and emitted attribute as untrusted until it passes the existing schema and safety validation path.
- Keep secrets out of source, fixtures, logs, fingerprints, and generated evidence.
- Preserve bounded queues, timeouts, cardinality, and failure-isolation behavior.
Verification¶
Use the committed Make targets; they encode the supported local command surface:
make doctor # diagnose the local harness
make docs-site # build and validate the published documentation
make test-focused TEST=tests/path.py::test_name
make test-static # Ruff, strict mypy, and static Collector validation
make test-unit # runtime, schema, configuration, and Collector unit contracts
make test-integration # public SDK and delivery contracts
make smoke # clean installed-wheel smoke test
make test-docker # native Collector validation and local three-signal verification
make verify # complete local verification, including Docker
make build # source-independent wheel and sdist build
Run make test-docker when Collector assets change and make build for packaging changes. The
CI workflow is the release-quality matrix; do not claim hosted, consumer, signing, publishing, or
deployment evidence from local checks.
Handoff¶
Report the behavior changed, the contract evidence added or updated, and every command run with its
result. For work that crosses a session or agent boundary, use docs/agents/handoff.md. Name any
check that was not run and why. Do not publish packages, images, releases, or infrastructure
without explicit authority.