Skip to content

Add portable agent-trajectory trace (record / replay)#365

Merged
JE-Chen merged 1 commit into
devfrom
feat/agent-replay-batch
Jun 23, 2026
Merged

Add portable agent-trajectory trace (record / replay)#365
JE-Chen merged 1 commit into
devfrom
feat/agent-replay-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 23, 2026

Copy link
Copy Markdown
Member

agent_trace records OTel GenAI spans (observability), trajectory_eval only scores a trajectory, and semantic_recording replays human input macros — none is a replayable observation→action transcript.

  • record_step(trace, observation, action, result): append an indexed {step, observation, action[, result]} entry.
  • to_jsonl / from_jsonl: round-trip the trace as newline-delimited JSON (a persisted replay/training dataset).
  • replay_trace(trace, runner): run each step's action through an injectable runner, returning {step, action, result} in order.
  • AC_replay_trace(trace) replays each step's AC action through the executor (JSON array or JSONL).
  • Pure-stdlib JSONL; replay driver injectable so it is fully headless-testable (no live model). Wired through all 5 layers + headless test + EN/Zh docs + WHATS_NEW. Qt-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 24 complexity · 0 duplication

Metric Results
Complexity 24
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 56f0083 into dev Jun 23, 2026
22 of 23 checks passed
@JE-Chen JE-Chen deleted the feat/agent-replay-batch branch June 23, 2026 13:22
@sonarqubecloud

Copy link
Copy Markdown

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