Tracing and optimization - HarnessRouter Docs | HarnessRouter

Tracing and Optimization

Control Plane Trace

The HarnessRouter dashboard is the control plane for observing task execution. Use Trace to inspect the selected harness, model, session status, event count, elapsed time, and the User, Agent, Tool, and Result timeline.

Trace is for diagnosis. The end user should still see a product-shaped result in your UI: status, answer, generated files, previews, downloads, and Continue or Revise actions.

Integration Records

Your product should also save the records it needs to recover and render the task: response.id, response.metadata.session_id, terminal session status, turns, file records, media types, and artifact metadata.

Use the dashboard for control-plane diagnosis. Use the documented stream, session, turn, and file endpoints for product integration.

Signals to Watch

Optimization Workflow

  1. Start with representative non-production input and approved fixtures.
  2. Change one variable at a time: harness instructions, model policy, tool access, skill set, runtime limit, or request header mapping.
  3. Run the same scenario enough times to see failure shape, latency, timeline shape, and artifact consistency.
  4. Promote a configuration only after the product path handles streaming, recovery, file preview, download, Continue/Revise, and authorization checks.
  5. Keep production evidence and non-production fixture evidence separate in your own records.

Avoid False Signals

Open Standard

The terminal statuses, incomplete results, and recovery signals you watch in Trace follow the task state machine — completed, failed, incomplete, cancelled — that UHP's Lifecycle chapter defines. See the UHP Lifecycle chapter.