Skip to content

Agent readiness

This repository implements the applicable mechanics from the AI-ready repository research backlog. The goal is a harness an unfamiliar agent can set up, navigate, change, verify, and hand off without guessing. AGENTS.md is the entry point; this document records the broader repository evidence.

Reproducible and executable

  • Python is pinned for the authoritative development environment in .python-version; supported consumer versions remain declared in pyproject.toml and tested in CI.
  • uv.lock, exact OpenTelemetry constraints, exact CI action revisions, and immutable Collector image digests bind the tested environment.
  • make setup is the non-interactive bootstrap and make doctor diagnoses its prerequisites and local state.
  • collector/config.env.example is the one environment-variable template. The project has no application .env contract.
  • Unit and contract state is constructed per test. Docker scenarios create unique local resources and synthetic data, then clean them up; there is no database seed/reset contract.
  • CI installs from the lock on fresh runners and validates clean installed artifacts. The repository validation container supplies the same locked non-root fast-check environment.

Reliable feedback

The command ladder in testing.md exposes setup, diagnosis, lint, type checking, focused tests, integration tests, artifact smoke tests, Docker end-to-end tests, and complete local verification. CI retains actionable JUnit, coverage, package, compatibility, and Collector evidence. Contribution and pull-request checklists require regression evidence and explicit review of weaker tests, skips, thresholds, or acceptance criteria.

Discoverable knowledge

index.md routes by question. CONTEXT.md, architecture, chaptered specifications, traceability, testing, troubleshooting, runbooks, ADRs, and maintained contract tests each have one declared responsibility. .scratch/ is planning history, while Linear team PL is current work.

Executable contracts and architecture

  • Dataclasses and closed schemas validate public configuration and telemetry envelopes.
  • make architecture-check rejects consumer imports, optional adapter dependencies outside telemetry.otel, and package import cycles.
  • telemetry.__all__ and py.typed define the public surface and navigation contract.
  • Tests control exporters, time, failures, frameworks, databases, ports, containers, and temporary storage at their actual seams.
  • Generated outputs and their regeneration commands are identified in testing.md; the repository contains no generated source.
  • make docs-check rejects broken relative documentation links and missing command-surface targets.
  • make docs-site builds the published documentation with strict navigation and link checks.

Long tasks and debugging

The runtime emits bounded diagnostic categories, propagated correlation is schema-controlled, and Collector health, metrics, logs, and retained local evidence support inspection. Docker scenarios isolate concurrent resources. docs/agents/handoff.md makes task state portable. Credentials, publishing, signing, and deployment authority remain outside repository prose and CI permissions.

Browser automation is not applicable because the repository has no UI. Repository-specific agent skills, a knowledge graph, vector search, or extra orchestration are conditional investments: add one only after agent-run evidence identifies a repeated specialist or retrieval failure.

Measurement

Use agent-runs/README.md for three representative fresh-environment tasks: a schema/public-contract change, a runtime/configuration defect, and a Collector composition change. Record completion, regressions, elapsed time, tool/model cost when available, human intervention, and one failure class: setup, navigation, requirements, implementation, verification, permissions, or none. Compare repository or tool changes only against tasks of similar scope.

The measurement milestone is complete only when all three records contain reproducible commands and reviewed results. Until then, this repository claims harness readiness, not measured autonomous performance.

Research backlog audit

The status terms are deliberate: implemented is repository evidence, not applicable means the capability has no corresponding system here, external activation requires hosted settings, conditional follows the research advice to wait for measured need, and measurement pending means the recording mechanism exists but does not fabricate results.

Research requirement Status Repository evidence or disposition
Pin dependencies and toolchains Implemented .python-version, uv.lock, pyproject.toml, pinned CI actions, pinned container bases, collector/images.env
One setup command Implemented make setup
Diagnostic command Implemented make doctor and scripts/doctor.sh
Environment-variable example Implemented collector/config.env.example is canonical; no application dotenv contract
Local dependencies Implemented Synthetic, isolated Docker Collector harness
Deterministic seed and reset Not applicable The library owns no persistent application state; each fixture is constructed per run
Fresh-checkout verification Implemented CI lock installs, clean-wheel jobs, and the pinned validation container
One command per common operation Implemented Make targets documented in README.md and testing.md; start is inapplicable to a library/configuration distribution
Actionable command output Implemented pytest/Ruff/mypy diagnostics plus file/line, composition, scenario, and retained-log paths
Formatting, linting, and typing Implemented Ruff and strict mypy locally and in CI
Focused tests Implemented make test-focused TEST=<path-or-node-id>
Principal-flow smoke test Implemented make smoke clean-installs and exercises the base wheel; make test-docker exercises three-signal delivery
Flaky-test handling Implemented testing.md requires a Linear issue, observed rate, layer classification, and linked temporary skip
Regression tests for bug fixes Implemented CONTRIBUTING.md, testing.md, PR checklist, and handoff red-state field
Verification-quality protection Implemented PR checklist requires review of deleted tests, weakened assertions, skips, thresholds, and acceptance criteria
Required merge checks External activation Stable CI job names and required-check policy are committed; branch protection must be enabled when a Git remote exists
README purpose, quickstart, commands, and entry points Implemented README.md
Architecture document Implemented docs/architecture.md and specification chapters
Question-oriented docs index Implemented docs/index.md
Domain concepts and invariants Implemented CONTEXT.md, AGENTS.md, and schema/safety specifications
Decision records Implemented docs/adr/ lifecycle and template; existing rationale remains linked from the docs index
Lightweight feature specifications Implemented docs/specs/ descriptive chapter set with traceability
Testing guide Implemented docs/testing.md
Troubleshooting runbooks Implemented docs/troubleshooting.md and docs/platform-operations.md
Maintained implementation examples Implemented Consumer integration examples and public unit/contract tests linked through the spec inventory
One authoritative location per contract Implemented Source-of-truth order in docs/specs/README.md; docs validator rejects broken navigation
Interface-contract validation Implemented Closed Python schemas, Collector preflight, evidence schemas, and contract tests
Architectural dependency checks Implemented make architecture-check
Explicit public interfaces Implemented telemetry.__all__, typed public APIs, and py.typed
Test seams around effects Implemented In-memory exporters, injected failures, controlled clocks/deadlines, SQLite, local TLS recorders, and synthetic Docker services
Generated files and generators Implemented testing.md identifies generated outputs and regeneration commands; no generated source exists
Separate generated/vendor content Implemented .gitignore and .dockerignore exclude outputs, caches, environments, secrets, and planning history
Symbol navigation Implemented Standard src layout, complete typing, explicit exports, and importable project configuration
Structured logs and correlation Implemented Schema-controlled context, bounded runtime diagnostics, JSON console option, and Collector resource identity
Runtime inspection Implemented Runtime diagnostic categories, configuration fingerprint, Collector health/self-metrics, retained local evidence, and runbooks
Browser automation Not applicable No browser or UI deliverable exists
Concurrent environment isolation Implemented Unique Docker names/networks, ephemeral ports/directories, and configurable BUILD_DIR
Task-handoff template Implemented docs/agents/handoff.md
Specialist repository skills Conditional Add only after agent-run evidence shows a repeated procedure is failing
Scoped runtime permissions Implemented Read-only CI token, no persisted checkout credentials, and no signing/publishing/deployment authority
Representative-task baseline Measurement pending docs/agent-runs/ defines three tasks and a reviewed record format
Completion/regression/time/cost/intervention tracking Measurement pending Agent-run template contains each field
Failure classification Implemented Closed classification in the agent-run template
Comparable evaluation of new guidance/tools Implemented Agent-run protocol requires similar-scope comparisons
Automated documentation checks Implemented make docs-check runs locally, in tests, in the validation container, and in CI
Published documentation site Implemented make docs-site and the Cloudflare Pages documentation workflow; hosted activation requires a Pages project and credentials
Owners for essential docs/tooling Implemented docs/ownership.md assigns Linear team PL and accountable roles
Archive plans and remove stale guidance Implemented Linear is authoritative; .scratch/ is non-authoritative and excluded from the agent environment
Knowledge graph, vector search, extra orchestration Conditional Add only when classified retrieval/orchestration failures justify the maintenance cost