Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
size_categories:
|
| 4 |
-
- n<
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: Synthetic Trading Agent Trajectories
|
| 3 |
license: apache-2.0
|
| 4 |
+
license_name: apache2
|
| 5 |
+
language: [en]
|
| 6 |
+
tags:
|
| 7 |
+
- agents
|
| 8 |
+
- tool-use
|
| 9 |
+
- process-reward-model
|
| 10 |
+
- reinforcement-learning
|
| 11 |
+
- synthetic
|
| 12 |
+
- trajectories
|
| 13 |
+
task_categories:
|
| 14 |
+
- reinforcement-learning
|
| 15 |
+
- text-generation
|
| 16 |
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: trajectories-v1
|
| 20 |
+
data_files: v1/trajectories/*.jsonl.zst
|
| 21 |
+
- config_name: trajectories-v2
|
| 22 |
+
data_files: v2/trajectories/*.jsonl.zst
|
| 23 |
+
- config_name: prm_steps-v2
|
| 24 |
+
data_files: v2/derived/prm_steps.jsonl.zst
|
| 25 |
+
- config_name: prefs-v2
|
| 26 |
+
data_files: v2/derived/prefs.jsonl.zst
|
| 27 |
+
- config_name: sft-v2
|
| 28 |
+
data_files: v2/derived/sft.jsonl.zst
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
# Synthetic Trading Agent Trajectories
|
| 32 |
+
|
| 33 |
+
Step-annotated, tool-using agent trajectories for a discretionary news-driven trading
|
| 34 |
+
workflow: scan the feed, form a thesis, size a position, place a stop, revise, exit.
|
| 35 |
+
Built for SFT, process reward modelling (PRM) and RL against a deterministic simulator
|
| 36 |
+
with verifiable rewards.
|
| 37 |
+
|
| 38 |
+
> **Simulated only.** Invented tickers, synthetic prices, synthetic news, a mock broker.
|
| 39 |
+
> No real market data. Rewards score process discipline against a simulator, not
|
| 40 |
+
> profitability. Not investment advice; not validated for use with real capital.
|
| 41 |
+
|
| 42 |
+
## Contents
|
| 43 |
+
|
| 44 |
+
| | v1 | v2 |
|
| 45 |
+
|---|---|---|
|
| 46 |
+
| Trajectory trees | 7,670 | 8,432 |
|
| 47 |
+
| Terminal paths | 10,391 | 12,270 |
|
| 48 |
+
| Annotated steps | 46,725 | 58,943 |
|
| 49 |
+
| Preference pairs | 1,601 | 2,299 |
|
| 50 |
+
| SFT paths | 3,988 | 4,727 |
|
| 51 |
+
| Size | 5.5 MB | 7.1 MB |
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
## Structure
|
| 56 |
+
|
| 57 |
+
`trajectories/*.jsonl.zst` — one JSON object per line, one **tree** per line
|
| 58 |
+
(`nodes`, `sibling_groups`, `terminal_paths`), schema in `schemas/trajectory.schema.json`.
|
| 59 |
+
Each agent node carries a step label (`optimal`…`harmful`), error tags, a progress
|
| 60 |
+
delta, a counterfactual action, and an MC value target on branched nodes.
|
| 61 |
+
|
| 62 |
+
`derived/` — five flat views: `sft`, `prm_steps`, `prefs`, `rl_tasks` (task ids only,
|
| 63 |
+
no demonstrations), `eval_suite`.
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
import json, zstandard as zstd
|
| 67 |
+
txt = zstd.ZstdDecompressor().decompress(open(path,'rb').read()).decode()
|
| 68 |
+
rows = [json.loads(l) for l in txt.splitlines() if l]
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
## Limitations
|
| 74 |
+
|
| 75 |
+
**No model was called anywhere.** Behaviour is scripted (an oracle plus degradation
|
| 76 |
+
mutators, sampled in v2), **thoughts are templated** — do not train a reasoning style
|
| 77 |
+
on this — and annotation is rule-based (`rule:annot@1.0`), so inter-annotator κ is
|
| 78 |
+
unmeasured and the rubric reward term is 0. Per-episode P&L is recorded with weight 0
|
| 79 |
+
by design. Microstructure is simplified; options are single-leg only.
|
| 80 |
+
|
| 81 |
+
Gates that pass: schema validity, replay determinism, look-ahead firewall, split
|
| 82 |
+
disjointness. Gates that fail, with reasons, are in `v*/gates_report.json` and
|
| 83 |
+
`docs/datasheet-set2-trading.md`.
|
| 84 |
+
|
| 85 |
+
## Licence
|
| 86 |
+
|
| 87 |
+
Apache 2.0
|