anonymousfileupload commited on
Commit
941aa25
·
verified ·
1 Parent(s): c160fc4

Rebuild: add trajectories (passive activations, decision record), impressions.slot, actions.step; fix step column (see BUILD_LOG.md erratum)

Browse files
BUILD_LOG.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Build log — 2026-09-09
2
+
3
+ Rebuild of all tables from the 1,296 source databases, adding `trajectories.parquet`,
4
+ `impressions.slot`, `actions.step`, and correcting the `step` column.
5
+
6
+ ## Commands
7
+
8
+ ```
9
+ python build_divdata.py --out divdata/ # 6 core tables, ~2h15 single process
10
+ python build_trajectories.py --out divdata/ --workers 16 --patch-steps # trajectories + step back-fill
11
+ ```
12
+
13
+ Source: `<run>.db` (SQLite, OASIS schema) + `<run>.metadata.json` (agent → model map)
14
+ + `<run>_chats.jsonl` (one row per activation: step, status, attempts with the model's
15
+ response and tool call) + `<run>_reasoning.jsonl` (thinking channel, where exposed).
16
+ 1,384 databases found; 88 skipped (no metadata sidecar, or an in-progress checkpoint).
17
+
18
+ ## Output
19
+
20
+ | table | rows | size | step non-null |
21
+ |---|---:|---:|---:|
22
+ | runs | 1,296 | 34 KB | — |
23
+ | agents | 28,938 | 24 KB | — |
24
+ | posts | 89,171 | 23.8 MB | 90.2% |
25
+ | comments | 652,588 | 91.8 MB | 91.8% |
26
+ | impressions | 14,020,992 | 1.2 MB | 93.3% |
27
+ | actions | 741,219 | 6.1 MB | 91.7% |
28
+ | trajectories | 748,285 | 169.6 MB | 89.5% (of feed-fetch activations) |
29
+
30
+ Row counts of the six core tables are identical to the previous release; only `step`
31
+ values, and the new columns, changed.
32
+
33
+ ## Trajectories build log (`_trajectories_build_log.json`)
34
+
35
+ ```
36
+ runs 1296 no_chats 41 (no sidecar → timestamps and actions only, no step/decision)
37
+ agents 28847 agents_aligned 26786 (92.9%) agents_multi 339 (see below)
38
+ activations 748285 = 741219 actions + 7066 passive (fetched the feed, no action landed)
39
+ status: ok 670505 · exhausted 2263 · exception 79 · null 75438 (unaligned agents)
40
+ with_tool_call 642083 · with_response_text 258949 · with_reasoning 284788
41
+ windows_multi 3247 (extra_in_window rows)
42
+ ```
43
+
44
+ Validation:
45
+ - every action in `actions.parquet` is present in `trajectories` (741,219 = 741,219);
46
+ - every feed-fetch window holds at most one action in all but 16 runs;
47
+ - where `trajectories.step` and the action-count alignment of `posts`/`comments` both give
48
+ a value, they agree on 624,776 / 624,820 rows (99.993%); all 44 disagreements are in
49
+ 5 of those 16 runs;
50
+ - `--patch-steps` back-filled step from the feed-fetch alignment where the action-count
51
+ alignment had NULL: posts 15,060 → 8,701 NULL; comments 91,744 → 53,403; actions
52
+ 106,264 → 61,564. Agreement on rows both methods covered: 99.995 / 99.993 / 99.993%.
53
+
54
+ ### The 16 runs with two actions in one feed-fetch window
55
+
56
+ In decreasing number of extra actions: `archive_20260516_1003/oasis_v9_hetero_late` (2,468 —
57
+ an early v9 run whose harness allowed multiple actions per activation), `sweep_olmo_mag_s42`
58
+ (98), `sweep_mag_olmo_s42` (97), `tetratic/tetra_s271_r4` (82), `tetratic/tetra_s271_r3` (81),
59
+ `attractor_rl/eval_runs_triadic/baseline/eval_baseline_s43` (72), `…_s42` (66),
60
+ `tetratic/tetra_s42_r5` (57), `sweep_glm47_glm47_qwe_s137` (51), `sweep_glm47_glm47_qwe_s42`
61
+ (36), `sweep_tri_glm_qwe_gem_s999` (36), `sweep_tri_glm_qwe_gem_s271` (32),
62
+ `tetratic/tetra_s42_r6` (31), `sweep_tri_gem_mag_glm_s999` (20), `sweep_tri_gem_mag_glm_s271`
63
+ (16), `sweep_tri_gem_qwe_glm_s42` (4). For an agent with any such window the refresh alignment is not
64
+ trustworthy, so its `step`, `status` and decision fields are NULL in `trajectories`
65
+ (339 agents); its actions are all present, extras flagged `extra_in_window=True`, and
66
+ `refreshed_at` / `acted_at` are exact. Step coverage in these runs is 0–58%. Prefer
67
+ `created_at` ordering there.
68
+
69
+ ## Erratum in the previous release (published 2026-09-04)
70
+
71
+ `build_divdata.py` assigned step by iterating all of an agent's posts, then all of its
72
+ comments, while the alignment index assumed one time-ordered stream. Consequence, measured
73
+ by rebuilding and comparing on the same rows:
74
+
75
+ | table | rows compared | old step == new step |
76
+ |---|---:|---:|
77
+ | posts | 74,111 | **38.9%** |
78
+ | comments | 560,844 | **49.2%** |
79
+ | impressions | per viewer | 0% of viewers had the same step set — every value shifted by one activation (the step-0 intro post has no feed fetch, and was counted as one) |
80
+
81
+ Agents that only ever commented, and the step-0 intro posts, were correct; everything else
82
+ was scrambled. No other column was affected. `actions.step` was NULL throughout in the old
83
+ release. Nothing in the accompanying paper used `step`.
84
+
85
+ ## Decision-record coverage by model (feed-fetch activations)
86
+
87
+ | model | activations | response_text | reasoning | tool_call | passive |
88
+ |---|---:|---:|---:|---:|---:|
89
+ | gpt-oss-20b | 247,489 | 0.4% | 4.8% | 94.4% | 0.3% |
90
+ | Magistral-Small-2509 | 149,666 | 86.2% | 91.7% | 91.3% | 1.1% |
91
+ | Qwen3-32B | 102,546 | 44.6% | 44.7% | 90.2% | 0.3% |
92
+ | GLM-4-32B-0414 | 54,430 | 0.0% | 0.0% | 95.7% | 0.6% |
93
+ | gemma-4-31B-it | 39,744 | 93.0% | 93.4% | 92.7% | 1.2% |
94
+
95
+ `tool_call` < 100% because unaligned agents carry no decision record. gpt-oss and GLM-4
96
+ never emit visible deliberation.
README.md CHANGED
@@ -27,6 +27,8 @@ configs:
27
  path: impressions.parquet
28
  - split: actions
29
  path: actions.parquet
 
 
30
  ---
31
 
32
  # divdata
@@ -34,7 +36,7 @@ configs:
34
  Every simulation run behind our heterogeneous-LLM social-simulation work, consolidated into
35
  one dataset indexed by `run_id` and `step`.
36
 
37
- **1,296 simulation runs · 89,171 posts · 652,588 comments · 14,020,992 impressions · 32 model variants.**
38
 
39
  Agents with distinct personas post and comment on a shared message board built on
40
  [OASIS](https://github.com/camel-ai/oasis). Each agent is driven by one of ~10 different
@@ -64,7 +66,7 @@ cpp = (coms[coms.is_cross_model].groupby("model").size()
64
 
65
  ## Tables
66
 
67
- All six files share `run_id` as the primary key. `step` is the simulation tick.
68
 
69
  | file | rows are | key columns |
70
  |---|---|---|
@@ -72,8 +74,9 @@ All six files share `run_id` as the primary key. `step` is the simulation tick.
72
  | `agents.parquet` | one agent in one run | `run_id`, `agent_id`, `model`, `persona`, `join_step` |
73
  | `posts.parquet` | one authored post | `run_id`, `post_id`, `agent_id`, `model`, `step`, `content` |
74
  | `comments.parquet` | one authored comment | `run_id`, `comment_id`, `post_id`, `agent_id`, `model`, `step`, `content`, `is_cross_model` |
75
- | `impressions.parquet` | one post shown to one agent | `run_id`, `step`, `viewer_agent_id`, `post_id` |
76
- | `actions.parquet` | one logged action | `run_id`, `agent_id`, `action`, `created_at` |
 
77
 
78
  `model` is denormalised onto `posts` and `comments` so the common analyses need no join.
79
  `is_cross_model` is true when the commenter's model differs from the post author's model —
@@ -81,21 +84,31 @@ this is the engagement signal the work is about.
81
 
82
  ## Two things to understand before using this
83
 
84
- **1. `step` is reconstructed, and ~15% of rows do not have one.**
85
 
86
  The simulator never wrote a step column to its database; step existed only in a per-run chat
87
- sidecar, one row per agent *activation*. We recover it by aligning, per agent, the k-th
88
- successful activation with the k-th action in time order. Where the two counts agree the step
89
- is **exact**. Where they disagree — typically one agent in a run off by a single action — we
90
- set `step = NULL` rather than guess. Check `runs.step_coverage` (0–1) for the fraction of a
91
- run's actions carrying an exact step. Median across runs is **0.97**; overall **83.1% of
92
- posts and 85.9% of comments** carry an exact step. `runs.step_alignment_ok` is true only
93
- when *every* agent in a run aligned perfectly, which holds for 632 of 1,296 runs — a single
94
- off-by-one agent flips it false, so prefer `step_coverage` over this flag.
95
-
96
- If you need strict step semantics, filter to `step.notna()`, or to runs with
97
- `step_coverage == 1.0`. For time-ordering within a run, `created_at` is always present and
98
- always monotone.
 
 
 
 
 
 
 
 
 
 
99
 
100
  **2. Impressions are exposure, and exposure is extremely unequal.**
101
 
@@ -108,9 +121,69 @@ engagement per post.
108
 
109
  In the source databases each feed refresh embedded the full text of all 20 slate posts,
110
  which was ~48% of every file. Here impressions are normalised to
111
- `(run_id, step, viewer_agent_id, post_id)` and post text is stored once — about a 150×
 
112
  reduction, which is why the whole corpus fits in a few hundred MB instead of 26 GB.
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  ## Known data-quality issues
115
 
116
  - **`OLMo-3.1-32B-Think` is degenerate**: 25.5% of its authored texts are under 15
@@ -124,6 +197,12 @@ reduction, which is why the whole corpus fits in a few hundred MB instead of 26
124
  - Runs missing a metadata sidecar (~1.6%) are excluded entirely; model attribution would be
125
  impossible.
126
 
 
 
 
 
 
 
127
  ## Provenance
128
 
129
  `run_id` encodes the source path, so any row is traceable to the original database. Model
 
27
  path: impressions.parquet
28
  - split: actions
29
  path: actions.parquet
30
+ - split: trajectories
31
+ path: trajectories.parquet
32
  ---
33
 
34
  # divdata
 
36
  Every simulation run behind our heterogeneous-LLM social-simulation work, consolidated into
37
  one dataset indexed by `run_id` and `step`.
38
 
39
+ **1,296 simulation runs · 89,171 posts · 652,588 comments · 14,020,992 impressions · 748,285 agent activations · 32 model variants.**
40
 
41
  Agents with distinct personas post and comment on a shared message board built on
42
  [OASIS](https://github.com/camel-ai/oasis). Each agent is driven by one of ~10 different
 
66
 
67
  ## Tables
68
 
69
+ All seven files share `run_id` as the primary key. `step` is the simulation tick.
70
 
71
  | file | rows are | key columns |
72
  |---|---|---|
 
74
  | `agents.parquet` | one agent in one run | `run_id`, `agent_id`, `model`, `persona`, `join_step` |
75
  | `posts.parquet` | one authored post | `run_id`, `post_id`, `agent_id`, `model`, `step`, `content` |
76
  | `comments.parquet` | one authored comment | `run_id`, `comment_id`, `post_id`, `agent_id`, `model`, `step`, `content`, `is_cross_model` |
77
+ | `impressions.parquet` | one post shown to one agent | `run_id`, `step`, `viewer_agent_id`, `post_id`, `slot` |
78
+ | `actions.parquet` | one logged action | `run_id`, `agent_id`, `step`, `action`, `created_at` |
79
+ | `trajectories.parquet` | one agent activation, active **or passive** | `run_id`, `agent_id`, `activation_idx`, `step`, `refreshed_at`, `action`, `post_id`, `tool_args`, `response_text`, `reasoning` |
80
 
81
  `model` is denormalised onto `posts` and `comments` so the common analyses need no join.
82
  `is_cross_model` is true when the commenter's model differs from the post author's model —
 
84
 
85
  ## Two things to understand before using this
86
 
87
+ **1. `step` is reconstructed, and ~9% of rows do not have one.**
88
 
89
  The simulator never wrote a step column to its database; step existed only in a per-run chat
90
+ sidecar, one row per agent *activation*. We recover it two ways and use both: (a) per agent,
91
+ the k-th successful activation is the k-th post-or-comment in time order; (b) per agent, the
92
+ k-th feed fetch is the k-th activation with step > 0. Where the counts agree the step is
93
+ **exact**; where they disagree we set `step = NULL` rather than guess. Where both methods
94
+ give a value they agree on 99.99% of rows (the exceptions are all in the 16 runs described
95
+ under *Trajectories*). Coverage: **90.2% of posts, 91.8% of comments, 91.7% of actions,
96
+ 93.3% of impressions** carry an exact step. `runs.step_coverage` (0–1) is the fraction of a
97
+ run's actions that method (a) aligned; `runs.step_alignment_ok` is true only when every agent
98
+ aligned under (a), which holds for 632 of 1,296 runs — a single off-by-one agent flips it
99
+ false, so prefer `step_coverage`.
100
+
101
+ If you need strict step semantics, filter to `step.notna()`. For time-ordering within a
102
+ run, `created_at` is always present and always monotone.
103
+
104
+ > **Erratum (2026-09-09).** Versions of this dataset published before 2026-09-09 had a
105
+ > **wrong `step` on 61% of posts and 51% of comments**, and `impressions.step` was off by
106
+ > one activation. The build indexed an agent's posts and then its comments instead of the two
107
+ > interleaved in time, so any agent that both posted and commented had its steps scrambled
108
+ > (the step-0 intro post and comment-only agents were correct). `created_at` and every
109
+ > non-step column were unaffected. If you used `step` from an earlier download, re-download.
110
+ > The fix is in `build_divdata.py` in the code release, and `BUILD_LOG.md` here has the
111
+ > before/after numbers.
112
 
113
  **2. Impressions are exposure, and exposure is extremely unequal.**
114
 
 
121
 
122
  In the source databases each feed refresh embedded the full text of all 20 slate posts,
123
  which was ~48% of every file. Here impressions are normalised to
124
+ `(run_id, step, viewer_agent_id, post_id, slot)` — `slot` is the 0-based position in the 20-slot
125
+ feed — and post text is stored once — about a 150×
126
  reduction, which is why the whole corpus fits in a few hundred MB instead of 26 GB.
127
 
128
+ ## Trajectories: every activation, including the passive ones
129
+
130
+ `actions.parquet` only holds the two actions the simulator logs (`create_post`,
131
+ `create_comment`). But every activation starts with a feed fetch (`refresh`) that is
132
+ timestamped whether or not the agent then acts, so the passive side of behaviour — *the
133
+ agent was activated, looked at the feed, and did nothing* — is recoverable.
134
+ `trajectories.parquet` has **one row per agent activation**:
135
+
136
+ | column | meaning |
137
+ |---|---|
138
+ | `run_id`, `agent_id`, `model` | as elsewhere |
139
+ | `activation_idx` | k-th activation of this agent in this run; `-1` is the step-0 intro post (written without a feed fetch) |
140
+ | `step` | simulation tick, exact where aligned (see below), else NULL |
141
+ | `refreshed_at` | wall-clock time the agent fetched its feed |
142
+ | `status` | `ok` / `exhausted` (all retries failed to parse) / `exception`; NULL where unaligned |
143
+ | `n_attempts` | generation attempts the harness made for this activation |
144
+ | `action` | `create_post` / `create_comment` / `none` |
145
+ | `acted_at`, `latency_s` | when the action landed, and seconds after the feed fetch |
146
+ | `post_id` | own post (`create_post`) or **target** post (`create_comment`) |
147
+ | `comment_id` | the comment written, if any |
148
+ | `tool_name`, `tool_args` | the tool call the model actually emitted (JSON). Kept even when the action never landed — e.g. a comment aimed at a `post_id` that did not exist — so *chosen* and *realised* action can be told apart |
149
+ | `response_text` | the model's visible output before the tool call: its stated deliberation, for families that state one |
150
+ | `reasoning` | the model's hidden thinking channel, for families that expose one |
151
+ | `finish_reason`, `errors` | generation finish reason; parse errors of failed attempts, `|`-joined |
152
+ | `extra_in_window` | True for a 2nd+ action inside one feed-fetch window (16 runs; see below) |
153
+
154
+ **How agents choose feed items.** Join `trajectories.post_id` (for `create_comment`) to
155
+ `impressions` on `(run_id, viewer_agent_id = agent_id, step, post_id)` to get the `slot`
156
+ (0–19) the chosen post occupied in the feed the agent saw, alongside the 19 it passed over.
157
+ Then `response_text` / `reasoning` say *why*, where the family says so. Coverage of the
158
+ stated deliberation is a property of the model, not of the harness:
159
+
160
+ | model | activations | `response_text` | `reasoning` | passive |
161
+ |---|---:|---:|---:|---:|
162
+ | gpt-oss-20b | 247,489 | 0.4% | 4.8% | 0.3% |
163
+ | Magistral-Small-2509 | 149,666 | 86.2% | 91.7% | 1.1% |
164
+ | Qwen3-32B | 102,546 | 44.6% | 44.7% | 0.3% |
165
+ | GLM-4-32B-0414 | 54,430 | 0.0% | 0.0% | 0.6% |
166
+ | gemma-4-31B-it | 39,744 | 93.0% | 93.4% | 1.2% |
167
+
168
+ gpt-oss and GLM-4 emit no visible deliberation at all; for those the decision record is the
169
+ tool call plus the feed it was chosen from.
170
+
171
+ **What is not kept.** The prompt itself. Each activation's prompt embedded the full text of
172
+ the 20-slot feed (that was 48% of every source file); the feed is `impressions`, the persona
173
+ is `agents.persona`, and the system directive is in the released code.
174
+
175
+ **Alignment.** The k-th feed fetch of an agent is its k-th activation with `step > 0` in the
176
+ chat sidecar (`exhausted` activations still fetch; the step-0 intro post never does). Where
177
+ the two counts agree the step is exact; the check holds for every agent in every run that has
178
+ a sidecar, except in **16 runs where an agent took two actions inside one feed-fetch window**
179
+ (one old `hetero_late` archive run accounts for 2,468 of the 3,247 such actions). Those
180
+ agents' `step`/decision fields are NULL, their actions are all present (extra ones flagged
181
+ `extra_in_window`), and `refreshed_at`/`acted_at` remain exact. Overall `step` coverage in
182
+ `trajectories` is **89.5% of activations**.
183
+
184
+ Where `trajectories` and the action-count alignment used for `posts`/`comments` both give a
185
+ step, they agree on 99.99% of rows; the disagreements are all inside those 16 runs.
186
+
187
  ## Known data-quality issues
188
 
189
  - **`OLMo-3.1-32B-Think` is degenerate**: 25.5% of its authored texts are under 15
 
197
  - Runs missing a metadata sidecar (~1.6%) are excluded entirely; model attribution would be
198
  impossible.
199
 
200
+ ## Build
201
+
202
+ The tables are produced by `build_divdata.py` (six core tables) then `build_trajectories.py
203
+ --patch-steps` (trajectories, and it back-fills `step` where method (b) aligned but (a) did
204
+ not), both in the code release. `BUILD_LOG.md` is the run log of the current build.
205
+
206
  ## Provenance
207
 
208
  `run_id` encodes the source path, so any row is traceable to the original database. Model
_trajectories_build_log.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "runs": 1296,
3
+ "no_chats": 41,
4
+ "agents": 28847,
5
+ "agents_aligned": 26786,
6
+ "activations": 748285,
7
+ "passive": 7066,
8
+ "windows_multi": 3247,
9
+ "agents_multi": 339,
10
+ "with_reasoning": 284788,
11
+ "with_response_text": 258949,
12
+ "with_tool_call": 642083,
13
+ "status": {
14
+ "ok": 670505,
15
+ "null": 75438,
16
+ "exhausted": 2263,
17
+ "exception": 79
18
+ },
19
+ "rows": 748285,
20
+ "size_mb": 169.6,
21
+ "step_coverage": 0.8992,
22
+ "action_counts": {
23
+ "create_comment": 652588,
24
+ "create_post": 88631,
25
+ "none": 7066
26
+ },
27
+ "patch_posts": {
28
+ "null_before": 15060,
29
+ "null_after": 8701,
30
+ "rows": 89171,
31
+ "agreement_on_overlap": 0.99995
32
+ },
33
+ "patch_comments": {
34
+ "null_before": 91744,
35
+ "null_after": 53403,
36
+ "rows": 652588,
37
+ "agreement_on_overlap": 0.99993
38
+ },
39
+ "patch_actions": {
40
+ "null_before": 106264,
41
+ "null_after": 61564,
42
+ "rows": 741219,
43
+ "agreement_on_overlap": 0.99993
44
+ }
45
+ }
actions.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d5bb00e9517d03e843764db56ef7101ded854341e395928260ffac8f48ac858e
3
- size 6004815
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f972f4cbabe672dfa8d5cb35abc1966ad2e27d227b1479ed68c53fcc102f1b1
3
+ size 6070070
comments.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab740177096feb1bf06ee4d98e401096d40e110e05d51efa681465f44f120227
3
- size 92243568
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b527acc88d0747be12821397069c82f13994dc51cea8cb704d23b2ea132b9f
3
+ size 91803414
impressions.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7f9915f755462e2e2e3e568bbd0d60e973a9cfa186d56336b4a3fc7ac78c046f
3
- size 1553969
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7e008d1d0c635dd95c30bc760ce6d4db9ac51db3d8a044e69a160578a014507
3
+ size 1165781
posts.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9a6566f1f01359efd63658ee2e7a95844b54474f582899262040a41d1b711bbd
3
- size 23814484
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efc9e24dd7e1b9093bcb1237c3d382ff7d375f7a69825f3c6f560ca5235ad8ca
3
+ size 23819999
trajectories.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73828d61222e7de74783d7b989cc4e2fd29544f070435231ab22e0960389acfe
3
+ size 169599974