Review the prerequisites
Suitable for: Readers designing an operational harness service.
- OTLP
- OpenTelemetry Protocol carries telemetry; a received span is distinct from a durable business receipt.
- Recovery Link
- A span link connects the replacement worker’s trace to the earlier persisted trace/span identity.
How does the mechanism work?
Step-by-step explanation
- Effect authority
The merchant receipt survives a lost response.
- Transport policy
Disable SDK replay here and reconcile the original write key.
- Diagnostic delivery
OTLP failure does not change the business ledger.
Design · Explain the trade-offs
Specify the production boundaries still missing
Objectives of this level: Choose isolation, durable audit and telemetry policies with explicit ownership.
Visual guide · Three acknowledgements, three meanings
The SDK parses authored local responses. Export failure leaves business effects unchanged; collector acknowledgement does not prove audit retention. Select the figure to open it at full size.
Move interfaces, not claims
The local fixture combines a model-shaped endpoint, merchant handler and miniature OTLP receiver. A production design must replace each boundary with an actual service contract: provider authentication and quotas, merchant authorization and current receipt semantics, and collector/storage retention. The OpenAI client is an API SDK, not the Agents SDK or a general agent runtime. This package neither proves a model’s tool choice nor integrates all vendor frameworks.
Bound execution and threat models
The child launcher constructs an environment allowlist, sets finite CPU/file/open-file limits, imposes a wall-clock deadline, kills the process group on timeout and waits for the direct child. This demonstrates credential omission and lifecycle control. It does not deny file/network access, impose memory isolation or protect a host from malicious source. Decide whether the task needs a container, microVM or managed execution service; define artifact mounts, credential proxy, outbound destinations and host-owned teardown, then test the chosen boundary.
Keep rollout evidence honest
Dockerfile.example and the Docker/microVM discussion in README are unexecuted recipes. A real rollout needs observed image build/run, non-root ownership, persisted audit outside disposable storage, current identity checks, failure injection and release rollback. No cloud deployment, autoscaling, multi-host failover, production capacity, model quality, dollar cost or SLA is established by this small local sample. Additional OTel instrumentations need separate redaction tests; exporter acknowledgement alone cannot promise retention.
code example
Design change: remote receipt authority
If the merchant no longer shares this single-host fixture, define its idempotency lifetime and immutable binding rules, current auth, terminal absence semantics and reconciliation path before enabling retries.
Acceptance task for this level
Write an ADR separating implemented local behavior, an unexecuted container/microVM recipe and the evidence required for a real remote service.
Reading this browser’s record…
Hide the answer and check your understanding
Would installing the official SDK make the harness production-ready?
Expand reference derivation
It establishes one library boundary. Runtime authorization, effect semantics, storage durability, isolated execution and measured deployment remain separate responsibilities.
Further explanations and practice
When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.
All linked explanations and exercises (1 )
Sources and verification scope
The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.