Skip to content

Preserve Codex and Claude model, tool and subagent trace fidelity - #1

Merged
liflovs merged 5 commits into
mainfrom
fix/tracing-delivery
Oct 21, 2026
Merged

liflovs merged 5 commits into
mainfrom
fix/tracing-delivery

Conversation

@liflovs

@liflovs liflovs commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex sessions previously appeared as one aggregate model span with opaque exec tools. Claude background agents could disappear or attach to the wrong turn. This fork reconstructs the recorded model, tool and agent hierarchy and keeps the installer on the maintained fork.

  • Codex: shared event graph, per-response usage, structured command executions inside Code Mode, command failures, verified native subagent lineage, deterministic span identities and successful-delivery receipts.
  • Claude: background and nested agent correlation, out-of-order completion, serialized completion exports, stable retry identities, interrupted outcomes and explicit timing provenance.
  • Transport: identify the client through Cloudflare and retry transient failures with the same payload. Authentication failures remain visible and are not retried.

Validation scope: full repository suite, Ruff, mypy, changed-file formatting/import checks, saved Codex rollout replay and synthetic Claude nested/background lifecycle replay. Suite results are retained in the owner report under local PR-body enforcement.

Single read-only branch review at 7f4fa5a174fe2a5e73caa724e8ced9360810cfde: no material findings. Additional reviewer execution was blocked by worktree ownership enforcement; executable validation was performed by the coordinator. Installed runtime is 0.1.1+lifl.1 at merged commit f5c1033da5a5ac06e6115a6ef33fe094d1022f61, from a detached deployment worktree. Existing configuration and hook registration were preserved, with the previous environment retained for rollback. Both configured hook executables exported synthetic lifecycle replays. The authenticated Phoenix browser showed model/tool nesting, failed-command I/O, reverse-order nested agents and agents completing after their launching turn.

Runtime surfaces: validation project, saved Codex turn replay, installed Claude hooks replay. Validation traces are labelled replays and synthetic cases, separate from the normal projects.

Recorded transcripts do not expose every request dispatch time or every internal operation. Missing or ambiguous parent IDs remain unmatched, unavailable transcripts retain a reduced fallback, and there is no background retry scheduler or exactly-once guarantee across a crash after remote acceptance. No model API calls are required for the tests or saved-session replays.

GitHub Actions remains disabled on this public fork; inherited hosted-runner and paid triage workflows are not enabled. Local validation supplies the exact-head evidence.

Related: Arize-ai#114 and Arize-ai#170. Adapted against current main while retaining upstream attribution and Apache-2.0 licensing.

Bloat check: synthetic fixtures cover distinct response accounting, command, lineage and asynchronous lifecycle behaviors. No captured private transcripts, one-off replay scripts or evidence dumps are committed.

Integrate upstream PR170 at 51fbe03, retaining replay filtering and async launch correlation.

Resolve nested agents through explicit tool IDs and transcript metadata, serialize completions, reuse retry span identities, preserve interrupted outcomes, and label inferred timing. Add synthetic lifecycle regressions and document observability limits.
@liflovs
liflovs merged commit f5c1033 into main Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant