Skip to content

feat(trajectory): self-evolution line 1 — training-ready run traces#41

Merged
ignorejjj merged 4 commits into
mainfrom
feat/trajectory-export
Jun 29, 2026
Merged

feat(trajectory): self-evolution line 1 — training-ready run traces#41
ignorejjj merged 4 commits into
mainfrom
feat/trajectory-export

Conversation

@ignorejjj

Copy link
Copy Markdown
Member

Self-evolution line 1: every run leaves training-ready data; one capture feeds SFT, RL, skill distillation, and dataset release.

  • Coarse trace trajectory.jsonl (default on): one record per idea — hypothesis, reward from eval, status, insight. Auto-written at finalize; arbor export <s> --format trajectory for old runs.
  • Token-level tokens.jsonl (coordinator.token_trace, default off): per-call messages+output+usage.
  • logprobs plumbed into LLMResponse + requested on chat path; null where the endpoint can't (Anthropic/4141) — RL-grade the moment a logprob-capable endpoint is used.

Pure transform, no proxy, no provider rewrite. Validated offline on a real session.

Joins events.jsonl + idea tree into trajectory.jsonl (one record per idea:
hypothesis, reward from eval, status, insight). Auto-written at finalize
(config evolution flag export_trajectory, default on) and re-exportable for old
runs via 'arbor export <s> --format trajectory'. Pure transform, no API.
…T/RL

Each coordinator LLM call appends messages+output+usage to tokens.jsonl when
coordinator.token_trace is on (default off, heavy). logprobs/token_ids recorded
only when the provider returns them (OpenAI); Anthropic gives none, stored null
rather than faked. Polar-shaped; no provider rewrite, no proxy.
Add LLMResponse.logprobs; request logprobs=true on the openai-compat chat call
and parse choice.logprobs into [{token,logprob}]. Endpoints without logprobs
(4141/Claude today) return None — interface is ready so token_trace becomes
RL-grade the moment a logprob-capable endpoint is used.
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