Saidgurbuz commited on
Commit
bf74cb5
·
verified ·
1 Parent(s): 8063dde

Indexes, docs, examples and a stratified preview

Browse files
LICENSE ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ DeskForge-1M — licence not yet determined
2
+ =========================================
3
+
4
+ This dataset has NOT been assigned a licence and is NOT cleared for
5
+ redistribution.
6
+
7
+ The screenshots contain third-party material whose licensing has not been
8
+ reviewed: application user interfaces (GTK applications such as HomeBank,
9
+ Bluefish, Thunar, Chromium and others), icon themes, fonts, desktop wallpapers,
10
+ and, in browser scenes, rendered third-party web pages captured on the date
11
+ shown in the record.
12
+
13
+ Until that review is complete and a licence is chosen, this repository is
14
+ private and its contents must not be redistributed, mirrored or published.
15
+
16
+ The annotation files, indexes and code in this repository are the work of the
17
+ dataset author and will be licensed alongside the payload once the review is
18
+ complete.
README.md ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: DeskForge-1M
3
+ license: other
4
+ license_name: license-pending-review
5
+ task_categories:
6
+ - image-to-text
7
+ - object-detection
8
+ language:
9
+ - en
10
+ tags:
11
+ - gui
12
+ - screen-understanding
13
+ - computer-use
14
+ - accessibility
15
+ - webdataset
16
+ size_categories:
17
+ - 1M<n<10M
18
+ configs:
19
+ - config_name: preview
20
+ data_files:
21
+ - split: preview
22
+ path: demo/preview.parquet
23
+ ---
24
+
25
+ # DeskForge-1M
26
+
27
+ **1,207,368 annotated Linux desktop screenshots**, every visible element boxed
28
+ from the accessibility tree, with occlusion resolved against the real window
29
+ stack. 135,731 of the scenes are short click explorations, giving 917,211
30
+ state–action–state transitions on top of the still images.
31
+
32
+ The annotation is not a caption or a bounding box for one target. It is *every*
33
+ element a person can see, with its class, its visible text, its modal geometry
34
+ (the pixels it actually occupies) and its amodal geometry (where it would be if
35
+ nothing covered it).
36
+
37
+ ## What is in it
38
+
39
+ | split | scenes | episodes | observations | state-eligible | transitions | transition-eligible |
40
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: |
41
+ | `train` | 266,159 | 111,249 | 999,494 | 881,794 | 760,850 | 716,573 |
42
+ | `val` | 2,938 | 1,284 | 11,279 | 10,081 | 8,667 | 8,147 |
43
+ | `test_id` | 5,805 | 2,524 | 22,550 | 20,097 | 17,383 | 16,371 |
44
+ | `test_app` | 11,512 | 6,553 | 43,206 | 39,884 | 32,848 | 29,934 |
45
+ | `test_theme` | 15,390 | 5,586 | 51,627 | 46,730 | 38,671 | 35,636 |
46
+ | `test_resolution` | 21,927 | 8,535 | 79,212 | 69,213 | 58,792 | 55,926 |
47
+ | **total** | **323,731** | **135,731** | **1,207,368** | **1,067,799** | **917,211** | **862,587** |
48
+
49
+ 1,151 uncompressed WebDataset tars, 1.14 TB. 19 applications, 7 desktop themes,
50
+ 7 resolutions from 1366×768 to 3840×2160.
51
+
52
+ **Two eligibility flags, and they are not the same thing.** `state_train_eligible`
53
+ is the recommended filter for the still-image view: publishable, not a
54
+ near-duplicate scene, not a no-op episode frame. `transition_train_eligible` is
55
+ for the action view and **keeps no-op transitions** — a click that changed
56
+ nothing is supervision, not a defect. A no-op frame is excluded from the states
57
+ view while the transition that produced it is kept.
58
+
59
+ ## The evaluation splits are the contribution, not a convenience
60
+
61
+ A single random test set answers one question — "does it work on data like the
62
+ training data" — so three axes are held out of training **entirely**, not merely
63
+ sampled out:
64
+
65
+ | axis | held out | asks |
66
+ | --- | --- | --- |
67
+ | `test_app` | `gnome-system-monitor` | an application category never seen |
68
+ | | `pluma`, `xarchiver` | an unseen *instance* of a category training knows |
69
+ | `test_theme` | `quartz_night_nord` | unseen desktop chrome |
70
+ | `test_resolution` | `retina_2880x1800` | unseen scale and aspect ratio |
71
+
72
+ Holding out an application removes *every* scene containing it, not just the
73
+ test scenes, computed over the union of applications across every frame of a
74
+ scene. Verified zero leakage. See `docs/splits.md` for what each axis cost and
75
+ why these were affordable.
76
+
77
+ **Occlusion is deliberately not held out.** The corpus argues that this
78
+ supervision improves occlusion robustness, and a model cannot learn that from
79
+ data with the occlusion removed. Occlusion and window count are reported as
80
+ slices of `test_id` instead. They are heavy: median occluded ratio 0.284, p90
81
+ 0.743, and more than half of all observations have ≥25% of their elements
82
+ clipped or dropped.
83
+
84
+ ## Loading
85
+
86
+ Payload is WebDataset; the indexes are Parquet. No custom loader script.
87
+
88
+ ```python
89
+ import webdataset as wds
90
+ url = "data/train/part-{00000..00903}.tar"
91
+ ds = (wds.WebDataset(url, shardshuffle=True)
92
+ .decode("pil")
93
+ .to_tuple("png", "leaf.json", "screentag.txt", "record.json"))
94
+ ```
95
+
96
+ Each observation is four members sharing one key:
97
+
98
+ ```
99
+ <key>.png the screenshot
100
+ <key>.leaf.json every visible element
101
+ <key>.screentag.txt the serialized markup a model is trained to emit
102
+ <key>.record.json sanitized metadata, and the action that produced this state
103
+ ```
104
+
105
+ The tars are **uncompressed**, so `index/shard_members.parquet` gives a real
106
+ byte offset and length for every member: one seek returns a PNG without reading
107
+ the shard. `examples/` has three runnable loaders — streaming states, pairing
108
+ transitions, and random access by key. `demo/preview.parquet` is a stratified
109
+ sample with images inline for the Dataset Viewer.
110
+
111
+ Filter before you stream, with Parquet:
112
+
113
+ ```python
114
+ import pyarrow.parquet as pq
115
+ obs = pq.read_table("index/observations/test_id.parquet")
116
+ heavy = obs.filter(obs["occluded_ratio"] > 0.5) # the degradation slice
117
+ ```
118
+
119
+ ## How it was made
120
+
121
+ Xvfb + xfwm4 on Linux, real GTK applications driven headlessly. Annotations come
122
+ from the AT-SPI2 accessibility tree, then are resolved against the window stack
123
+ so a box describes what is *visible*, not what the tree claims. Generation is
124
+ deterministic from a seed; the generating commit and the SHA-256 of both source
125
+ manifests are in `release_provenance.json`, and `checksums/sha256sums.txt`
126
+ covers every published file.
127
+
128
+ Labels are **automatic**, not human. Quality is enforced by automated audits —
129
+ element coverage against rendered pixels, blank-widget suppression, leaf/window
130
+ ownership, fragment containment — and 59,103 observations that failed them are
131
+ not in this release.
132
+
133
+ ## Actions: what they are and are not
134
+
135
+ Episodes are **undirected random click explorations**. They are not expert
136
+ demonstrations, not goal-conditioned trajectories, and carry no task
137
+ instruction, reward or success label. The action space is **click only**.
138
+
139
+ An action is stored on the step it *produced*:
140
+ `observation[k-1] --steps[k].action--> observation[k]`. Pixel coordinates are
141
+ authoritative; `_norm_1000` and `_screentag_500` are derived conveniences that
142
+ round-trip within one grid cell.
143
+
144
+ ## Limitations
145
+
146
+ One desktop environment (Xfce), synthetic themes imitating Windows/macOS/Linux
147
+ rather than the real thing, click-only actions, no human verification, and
148
+ window-control and window-ownership edge cases documented in
149
+ `docs/known_issues.md`. Some scenes load live web pages, so a browser window
150
+ shows whatever that site served on the capture date; the domain is recorded.
151
+ Read `docs/known_issues.md` before using this for anything load-bearing.
152
+
153
+ ## Licence
154
+
155
+ **Not yet determined — see `LICENSE`.** The screenshots contain third-party
156
+ application UI, icon themes, fonts, wallpapers and rendered web pages, and that
157
+ licensing has not been reviewed. Do not redistribute pending that review.
158
+
159
+ ## Citation
160
+
161
+ ```bibtex
162
+ @misc{deskforge1m,
163
+ title = {DeskForge-1M: dense desktop UI annotation with occlusion-resolved geometry},
164
+ author = {G\"urb\"uz, Said},
165
+ year = {2026},
166
+ note = {Version 1.0.0}
167
+ }
168
+ ```
VERSION ADDED
@@ -0,0 +1 @@
 
 
1
+ 1.0.0
checksums/sha256sums.txt ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 4f08b8a5ed9bd252f309daeda14447f7ab0f8c44dacce347873aa008144a9af2 data/test_app/part-00000.tar
2
+ 8b643efef0952d51a20ab08f2ed6a47bc27052f211442eb31c80eb5c3f169aa5 data/test_app/part-00001.tar
3
+ 8fc0f680a2cd92a1f2d9d7915fe997b543af1425f58ac6c3a415da523315cd75 data/test_app/part-00002.tar
4
+ b49e98753a058decc24109488ee91d9364be6c05464a9a70366b31c064f0cb08 data/test_app/part-00003.tar
5
+ 93e2a07ad66bdcc9ff5f7102ec81e7ef7bc031595679f2642d32ff3cbc1bc3b8 data/test_app/part-00004.tar
6
+ f2593eadb648f1543c823327735f539d29f934c3690aa6ef6a8a3527d2134e7f data/test_app/part-00005.tar
7
+ b2a3e15ffa72379e002fe0cca0b5923820e26b517bf9d13733446f5bafb10b0d data/test_app/part-00006.tar
8
+ 6426e07a4d43eae67d4736a30604983ca48f95999069bee97f29c250782b7abf data/test_app/part-00007.tar
9
+ 4d8bc3ed4a4c607bf1b7d3f05a400776728cdce294d021fda484c9b221c5c9d6 data/test_app/part-00008.tar
10
+ 3ede4a44e0cf938c41b06a17c9efd62c4252f6b6ead3d38c46c8e3890440426a data/test_app/part-00009.tar
11
+ 611d4c0b8100cf594b9f624391b3484e0f5c05d7cfcc12f12105a9098583811e data/test_id/part-00000.tar
12
+ c70e0c5dc6612415740043ec9f2dca2a1e8c7992dc375045ff4d27e4c93ea39a data/test_id/part-00001.tar
13
+ 202ff968ec91330bc11f69ebcb85a0e0af39ac9633d79ec068f6e3f2f632b284 data/test_id/part-00002.tar
14
+ 23867573b863945aef9d4b37a62c100397d1f5c660dbe2f84db6b2503c73fe1f data/test_id/part-00003.tar
15
+ bc402554641fcff327dd38107b744e23039ebddb9879d9470904c781350a336c data/test_id/part-00004.tar
16
+ 084972e98a236b04e7f520ab10ac1950ba8ac60b25487e7d4c3a709a614d7c61 data/test_id/part-00005.tar
17
+ 020a34c42f41847c4f83442f51cf71a729e4ea1f142ef93115ce4c1fae6107d5 data/test_id/part-00006.tar
18
+ e0d1472c0732eb451e856f8521985741a402055f04d0afe8df7dbc8c238af9fa data/test_id/part-00007.tar
19
+ 97a478724d7ec38e196e5f3c4972673801ffbf6232c558c9bd36b399816f0515 data/test_id/part-00008.tar
20
+ 36abba52591135b07acec42a0d1cba59cab65896cf80a8740045835a69973906 data/test_id/part-00009.tar
21
+ bf12c7cb31db84b47681601209c709447f84c65b257bfeb8271100297099728d data/test_resolution/part-00000.tar
22
+ 0670fd76c209fa52da0e3c675d5409b3841612c44455e9408ce4e8e5ff21eb52 data/test_resolution/part-00001.tar
23
+ 2b2ebd6de8858884d8c775e664712b3cf63c32beca4c7a3eea4c8baede3520ef data/test_resolution/part-00002.tar
24
+ bae3d46c256fa5df5d90b172003ba1f2833dd43743e8fb59bbdeabe11980e5ce data/test_resolution/part-00003.tar
25
+ f7806c28465306c7ca6f25026dedbfbaab56dd8dc31a5aa916f84d876158b0c2 data/test_resolution/part-00004.tar
26
+ 522b1315151263fb44b394e96c89d2953a890e32c44b5f69973a8972a9eced59 data/test_resolution/part-00005.tar
27
+ 01e06f6f2545b420b944ec1d6497ab15ec9cf0225b2bd25a71a562894415adb4 data/test_resolution/part-00006.tar
28
+ 12fb986d9e49194bc6f351f2d397bbc03fda6420a5f4cdddae09c9a6aca4291c data/test_resolution/part-00007.tar
29
+ 236610a23815010ab19f7da3f768d9520b1a9f6f6c58e1c30433558eb48438ac data/test_resolution/part-00008.tar
30
+ 7c1cbaf468da13efcb7baa1ecd7fbdfd7aa25e99461a0f48c2b675c98ea33eac data/test_resolution/part-00009.tar
31
+ 02755b0324d2431cb3069624a6e11d97b67ff3cb2d0a46253a26cd5cf120b6e9 data/test_theme/part-00000.tar
32
+ de355eb73f087c87f5bbe31d2fe4ac2b99989d68e00ea2b3c474bb17e4fe76cb data/test_theme/part-00001.tar
33
+ d20382b11dc19af42f735a6ff7cfb0065e5b8cd05bab9b4f079fc14439d9a238 data/test_theme/part-00002.tar
34
+ b93eb37b8b5367b234728a1e0a500241319da38c4729e6ef93ccbee56aa3393a data/test_theme/part-00003.tar
35
+ 2f7f1f8bb0caace3f422bce964d90f546c7e12a27ff09ee46bcea7b97fc3a288 data/test_theme/part-00004.tar
36
+ 2d1af4780b4c662a7a70c77f94d143c0ec193fbecf8cfed3adf0fd28701c3a02 data/test_theme/part-00005.tar
37
+ 2c994c78af44000ee0c165a6363cf4686fd84dcf0a4b72881659acf3ec218fe2 data/test_theme/part-00006.tar
38
+ 99a4ed842df961670acbd1d85bb2a87a12fb88e0343a474f1b50988b94e271b6 data/test_theme/part-00007.tar
39
+ 7b871d22d607386349aa3b27ffdef02bbfdcd1dcb245fc7ccbe8fd88c1aa058f data/test_theme/part-00008.tar
40
+ fe290747f2d9c4500cbbf0503a48b10161caec0158165f5f6bdca87649ab925a data/test_theme/part-00009.tar
41
+ b8d1397d0010e9f77ddeb4c1df23a99849eae7094f069e8f058aa0d3e19b0040 data/train/part-00000.tar
42
+ 7ebaf46701ad91565e36fa7b1f4b172c36e6ddb41adccb4c6279d3ac02af084d data/train/part-00001.tar
43
+ a93d0648beed4fbb88d6148487d8da06cf361d8b2432795e9ef729c9eb8a9a9d data/train/part-00002.tar
44
+ fcd0593fcb0f9bb1cf9ea58e78451d5a8669adbfcd3798303df549af89ce298e data/train/part-00003.tar
45
+ 4abdc9b542fabeb4872b0fb84f025d162e51c482fb3e11949877fcc59d2d51b1 data/train/part-00004.tar
46
+ e4e9af81485739b22aab768c695170566719d7a989565e56ab2f62e97ce328ad data/train/part-00005.tar
47
+ 213dff2c60f0831fb6a78ca9aec05f9d31658e1709cfd375fb30918bb30d5fdc data/train/part-00006.tar
48
+ 65da20b849e7a7f9f6414cab5507e449bc4ea7fa978632deef147b21aa745c10 data/train/part-00007.tar
49
+ 5b3e81858911f33fa87bdabd48eb0b0fc7e2473041da6cbb36ae9602e4b3113b data/train/part-00008.tar
50
+ 376eb6dd5bab44c2edb2f72ec75f5fa11bd605036700eb9065fd4d5213213c0d data/train/part-00009.tar
51
+ 7b9202c735a381360b325c4c351abb9f13cfa6a4e310bef0caca97d57fa1f3ef data/val/part-00000.tar
52
+ ff710b133c9bca152622beeb1032713d04200f525011da4c75683429af01bb30 data/val/part-00001.tar
53
+ c1ad358b232188fcc18173905f7c4ee6b33edf1ad29824e0dac1935c38e2d206 data/val/part-00002.tar
54
+ e3a102e11473ccfa66b2b467d85f9eaebe0f6b6c020de1c1c1ddb783e12969af data/val/part-00003.tar
55
+ c8ebaf13425a3b25e25a2c7085e3ee3aaccd1856bdc65c660b4636757ce41c47 data/val/part-00004.tar
56
+ 6a22f41f1aa067a18969d1daa3d3da11b7a71067962b004c4a52ea0d77487b71 data/val/part-00005.tar
57
+ 0dd3a3631ac9675867d2f7876e633a17a195bbb6447c2be4414d20b18fc04a50 data/val/part-00006.tar
58
+ e57fd6a18f21656ebc7a084295cd38683ee89971c89b3f67ee90f3981c69f879 data/val/part-00007.tar
59
+ 5481483852f57ca6f6d5ad07bdebf46ca9ab0982d827ba0106d44e6e9055fef6 data/val/part-00008.tar
60
+ 63c97b087a54c529704f566d6619ff7398affca71715ae024084aa48e0ef5e13 data/val/part-00009.tar
61
+ 59854984853104df5c353e2f681a15fc7924742f9a2e468c29af248dce45ce03 VERSION
62
+ c5bfedd25a7fc6d336932f19cef031747e2c295300a7006d71e9cd9bc0f6fc3f checksums/shard_stats.parquet
63
+ 6c352adde8f23e13667487fc29c4a1c7bd972b4f2926646e5a82d1e59f22bdae demo/preview.parquet
64
+ 6c652d39ec12c3ada1c06626437fb49934e05f581ff7e3ee140b3f4a02b7bf43 examples/_common.py
65
+ f08b92547613e86ffadfa22decfc96090f0f6919364f94524aa533e1820c77be examples/get_by_key.py
66
+ 9cbcbb33ad9257ef3cf705138781287b2cb3dccf99c61619a44fcab0ef9c1007 examples/stream_states.py
67
+ 38f0d95ee4c025c4e638219e4e03f8b913313818e9d776ad143946ae2ea34c75 examples/stream_transitions.py
68
+ f45da944b03544bd4a61ee4ed57779746083fa487f48146b5c8761dc9c2d9e7e index/episodes/test_app.parquet
69
+ b5a4a6be6018c3bff85503c59a5077f7d4f3a995b22715df7d57a741fd32cf28 index/episodes/test_id.parquet
70
+ ea701bf2b1fc18f9c28b97ea0f296e623123051dc66346bfcca5c80a19d66f5e index/episodes/test_resolution.parquet
71
+ 1a3aa2a94d138fe19a3d10e8debfb936587217a9c2a6190d32061229dcb9bff6 index/episodes/test_theme.parquet
72
+ 14d1458a6d86e8f3ae2782a064a7818e3873786f302e517603ccb3ad0531e7bf index/episodes/train.parquet
73
+ 30c7c147443abb8c52fa71201da43cb8ca6fcfe26fe0ab61d2388df3950a59b3 index/episodes/val.parquet
74
+ 27e04f4649660ae819a11df88d2851b9dd05d16a1169670aaac7d3e4b53e387b index/observations/test_app.parquet
75
+ d03fedcc42c65679af648b65cb8a6eabf15a60bbed9bb38e1e7339b5975af8e6 index/observations/test_id.parquet
76
+ fc28efc2ba757e643e07c55f13be723e4191e8d7e7e54c26f911176e2c4e31ef index/observations/test_resolution.parquet
77
+ 8203c7aa6ce4c724352edfbd69ab0968e9bd6a9ad12a5af57d9414143842b2ca index/observations/test_theme.parquet
78
+ bfb412bb219563b5d9cd2111d978b1e23afb9dd1d64ee3ce86a28b71482355b7 index/observations/train.parquet
79
+ c7907feb1e130394e163ba77077a9f24285bac17742401c1dc2dfef635fd5254 index/observations/val.parquet
80
+ b57dd0b6fe010834f73be43d41308e2bc9c68ed89d76998c423474a67aca4ae5 index/scenes.parquet
81
+ 3b7ee57c9e0a21cf7138e14579fbc5d928ddfa9e4f232b0ed8598bbeb7b00c25 index/shard_members.parquet
82
+ e48fdac9ad177bed1bc034699023a14f55913fc35b1f9a748b900b97d2e70905 index/transitions/test_app.parquet
83
+ cdea6f6761c78e8b9c7a5c636a257c407130a962b0852bfe36c25c5d66853de3 index/transitions/test_id.parquet
84
+ f5f4f495e70aecbb5cdbb140f04b179115ec990dbd8a6018e52dbd4573fb1cfa index/transitions/test_resolution.parquet
85
+ a7113cf0a2ae6845cbef9a11edac525a3c14cbace7f187b9b5796669fb8bdd5f index/transitions/test_theme.parquet
86
+ cb29a1f4c5c86870e733f3e798d2f0d2012b83c5d00c9c335285f8625fda9092 index/transitions/train.parquet
87
+ 4641f1fbf37eb50c33a3c88badad05748e6e6e704ade248bf7d9284e201a388e index/transitions/val.parquet
88
+ fd2e125df43fa9fa6a431682c63f1422d8f39f5b5b3a7a51543f0ac1c71e4b75 release_provenance.json
89
+ 38e1898434846e1bb6383c1ee7c847cb4f16223d2773e626e59942026518b989 release_report.json
checksums/shard_stats.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5bfedd25a7fc6d336932f19cef031747e2c295300a7006d71e9cd9bc0f6fc3f
3
+ size 5368
demo/preview.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c352adde8f23e13667487fc29c4a1c7bd972b4f2926646e5a82d1e59f22bdae
3
+ size 3356769928
docs/known_issues.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Known issues
2
+
3
+ Read this before using DeskForge-1M for anything load-bearing. Everything here
4
+ is measured, not suspected.
5
+
6
+ ## Text visible in the screenshots
7
+
8
+ The annotation quotes what is on screen, so anything painted into a window title
9
+ or a widget label is in `leaf.json`, in the ScreenTag and in the pixels. These
10
+ were found by scanning the packed payload and are **not** removed, because
11
+ rewriting them would make the annotation disagree with its own image.
12
+
13
+ | what | how often | what it is |
14
+ | --- | --- | --- |
15
+ | `/tmp/session-<random>/` | 32.8% of captures | the ephemeral session root of the generating job, in file-chooser paths and window titles |
16
+ | synthetic persona homes, e.g. `/Users/anika/`, `/home/kwame/` | 32.5% | **generated** persona names, not real people |
17
+ | `ess6000-1` | 9.8% | the host name of the generating machine, surfaced as an AT-SPI label |
18
+ | the dataset author's contact details | see below | `Said.Gurbuz@ibm.com;7G5620848;Said Gürbüz`, captured into a document fixture and therefore painted into those screenshots |
19
+
20
+ Scanned over 600 random captures for the first three. **No real project path
21
+ (`/proj/...`), no real home directory, and no third party's personal data
22
+ appears anywhere in the released text.** The author's own contact string is the
23
+ one piece of real personal data, it belongs to the dataset's author, and it is
24
+ disclosed here rather than removed because it is in the pixels.
25
+
26
+ Downstream filtering on these strings is straightforward: they are exact and
27
+ they are in the text members, not only the images.
28
+
29
+ ## Live web pages
30
+
31
+ Some scenes drive a real Chromium against a real URL, so a browser window shows
32
+ whatever that site served on the capture date. The domain is recorded, the page
33
+ content is not curated, and it may include news text, advertising or images
34
+ belonging to third parties. This is the main reason the licence is unresolved.
35
+
36
+ ## Annotation
37
+
38
+ * **Labels are automatic.** They come from the AT-SPI2 accessibility tree and
39
+ automated refinement, with no human verification pass. An application that
40
+ reports its own tree badly is annotated badly.
41
+ * **Toggle state is invisible on this stack.** AT-SPI 2.40.3 does not expose
42
+ `checkable`/`checked` for menu items here, so a checked menu item is not
43
+ distinguishable from an unchecked one in the annotation.
44
+ * **Window controls** (close/minimise/maximise) are synthesised from the title
45
+ bar rather than read from the tree, and are the least reliable class.
46
+ * **Window ownership** of popups and menus is resolved through the window stack.
47
+ 2.64% of leaf elements legitimately fall outside their owning window's
48
+ rectangle; a containment rule that "fixed" this would delete real menus.
49
+ * **59,103 observations failed the automated audits** and are not published.
50
+ The reasons, in order of frequency: leaf/window ownership, visible-fragment
51
+ containment, missing fragments, too few elements, too little type diversity,
52
+ shallow trees, missing elements, low coverage.
53
+
54
+ ## Episodes
55
+
56
+ * **994 episodes have no `episode.json`** and 6 have a truncated one, spread
57
+ over 183 shards, because the generating job died before writing it. Their
58
+ screenshots are fine and are published; they contribute **no transitions**.
59
+ They carry `episode_status` of `no_episode_json` or `episode_json_truncated`
60
+ and `n_transitions = 0`.
61
+ * Actions are **click only**, and episodes are undirected random exploration
62
+ with no goal, instruction or reward.
63
+ * 14.3% of eligible transitions changed nothing. That is intentional and they
64
+ are kept; see `transition_train_eligible` against `state_train_eligible`.
65
+
66
+ ## Duplication
67
+
68
+ * 22,082 observations belong to **near-duplicate scenes** and 124,261 are no-op
69
+ episode frames. Both are published and both are excluded from
70
+ `state_train_eligible`.
71
+ * 128 scene ids appear in two shards, because a scene a run failed to finish was
72
+ recaptured by a later run under the same seed. Both copies are published and
73
+ **both are in the same split**; keys and episode ids are shard-qualified so
74
+ they never collide.
75
+
76
+ ## Coverage
77
+
78
+ One desktop environment (Xfce on Xvfb). The Windows-like and macOS-like themes
79
+ are GTK themes imitating those systems, not those systems. 19 applications, all
80
+ GTK/Linux desktop software. Nothing here is a mobile or web-only interface.
docs/schema.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Schema
2
+
3
+ ## Payload — one observation, four tar members
4
+
5
+ The tars are **uncompressed**, members of one observation are **consecutive**,
6
+ and the key is everything before the first `.` in a member name. Keys contain no
7
+ dots.
8
+
9
+ ```
10
+ <key>.png screenshot, PNG, never re-encoded
11
+ <key>.leaf.json list of visible elements
12
+ <key>.screentag.txt serialized markup
13
+ <key>.record.json sanitized metadata
14
+ ```
15
+
16
+ `<key>` is `<shard>__<stem>`, e.g. `shard-0106__scene-002ad3e5b23cbfd9-step00`.
17
+ It is shard-qualified because 152 capture stems and 128 scene ids repeat across
18
+ shards — a scene a run failed to finish was recaptured by a later run under the
19
+ same seed. `(shard, stem)` is unique across all 1,266,471 source rows.
20
+
21
+ ## `leaf.json` — an element
22
+
23
+ ```jsonc
24
+ {
25
+ "type": "Button", // release class, 55 in the schema
26
+ "role": "push button", // AT-SPI role it came from
27
+ "name": "Save",
28
+ "visible_text": "Save", // text a reader can actually see
29
+ "visible_text_status": "visible",
30
+ "rect": {"x": 312, "y": 88, "w": 64, "h": 28}, // amodal: the whole element
31
+ "visible_fragments": [ // modal: pixels it occupies
32
+ {"x": 312, "y": 88, "w": 40, "h": 28}
33
+ ],
34
+ "is_occluded": true,
35
+ "occlusion_state": "partially_occluded",
36
+ "app_name": "homebank",
37
+ "reading_order_index": 41,
38
+ "_window_stack_index": 2,
39
+ "uid": "80b06ebf5db974e2" // stable within an episode; action targets use it
40
+ }
41
+ ```
42
+
43
+ **`rect` is amodal and `visible_fragments` is modal.** A box drawn from `rect`
44
+ alone claims pixels another window is covering. Train grounding on the
45
+ fragments; use `rect` when the question is where the whole element *is*.
46
+
47
+ ## `screentag.txt`
48
+
49
+ One flat string per screenshot: `<Tag><loc_N>×4 [state] [text]</Tag>`, nested
50
+ to mirror the element tree. Coordinates are on a **0–500** grid, normalized to
51
+ the viewport (`record["screentag_grid"]`).
52
+
53
+ ## `record.json`
54
+
55
+ Constructed field by field from an allow list, never by removing fields from
56
+ `meta.json`, so a change to the generator cannot quietly widen what is
57
+ published. Carries `observation_key`, `scene_id`, `episode_id`, `step_index`,
58
+ `split`, `group`, `width`, `height`, `apps`, `theme`, `scene`, `n_elements`,
59
+ `n_windows`, `window_stack`, `occlusion`, `flags`, `provenance`, and — on any
60
+ observation that an action led to — `action_into_this_state` and
61
+ `effect_of_that_action`.
62
+
63
+ `group` is `ep` for a frame of a click episode and `st` for a standalone scene.
64
+
65
+ ## Indexes
66
+
67
+ | file | one row per | notable columns |
68
+ | --- | --- | --- |
69
+ | `index/scenes.parquet` | scene | `split`, `split_source`, `apps`, `theme`, `resolution` |
70
+ | `index/observations/<split>.parquet` | observation | `tar_path`, `*_member`, `occluded_ratio`, `n_elements`, `n_windows`, the flags |
71
+ | `index/transitions/<split>.parquet` | transition | `before_key`, `after_key`, action fields, `effect`, `exclusion_reasons` |
72
+ | `index/episodes/<split>.parquet` | episode | `observation_keys`, `transition_ids`, `episode_status` |
73
+ | `index/shard_members.parquet` | tar member | `byte_offset`, `byte_size`, `sha256` |
74
+ | `checksums/shard_stats.parquet` | tar | `bytes`, `sha256`, `observations` |
75
+
76
+ `split_source` is `v3` for a scene placed by the finalized split and `extended`
77
+ for one that split never had to place — 12,515 scenes, all of which are
78
+ publishable but not state-train-eligible, so they had no row in it.
79
+
80
+ ## Transitions
81
+
82
+ An action is stored on the step it **produced**:
83
+
84
+ ```
85
+ observation[k-1] -- steps[k].action --> observation[k]
86
+ ```
87
+
88
+ Step 0 has no action. Reading it the other way pairs every action with the
89
+ screen it was not taken on, and nothing downstream would notice.
90
+
91
+ Coordinates: `action_point_px` is authoritative. `action_point_norm_1000` and
92
+ `action_point_screentag_500` are derived and round-trip to within one grid cell;
93
+ `action_target_bbox_px` is `[x0, y0, x1, y1]`.
94
+
95
+ `effect` counts what changed between the endpoints — `changed`, `magnitude`,
96
+ `appeared`, `disappeared`, `moved`, `text_changed`, `state_changed`,
97
+ `newly_occluded`, `revealed`, `semantic_changes`, `persisted`.
98
+
99
+ `exclusion_reasons` is empty when `transition_train_eligible` is true and
100
+ otherwise names every rule the transition failed, so a count can always be
101
+ accounted for.
docs/splits.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Splits
2
+
3
+ The unit is the **scene**, never a frame: an episode's frames differ by one
4
+ click, so splitting them apart tests memorisation.
5
+
6
+ ## What is held out, and what it cost
7
+
8
+ A held-out split is not a dial. Its size is the footprint of the attribute,
9
+ because a valid "unseen X" claim needs *every* scene containing X out of
10
+ training — not only the scenes you want to test on.
11
+
12
+ | axis | held out | observations | asks |
13
+ | --- | --- | ---: | --- |
14
+ | `test_app` | `gnome-system-monitor` | 11,350 | an unseen *category* |
15
+ | | `pluma` | 15,733 | an unseen *instance* beside three seen text editors |
16
+ | | `xarchiver` | 15,221 | an unseen *instance* beside file-roller |
17
+ | `test_theme` | `quartz_night_nord` | 46,730 | unseen desktop chrome |
18
+ | `test_resolution` | `retina_2880x1800` | 69,213 | unseen scale and aspect ratio |
19
+
20
+ `eog` was a fourth candidate — the unseen category "image viewer". It is not
21
+ held out: it appears in 109,454 observations against 11,352 for
22
+ `gnome-system-monitor`, and both answer the same question. Dropping it returned
23
+ 94,326 observations to training and gave up no claim the design still makes.
24
+
25
+ `retina_2880x1800` is **not** the cheapest resolution — `uhd_3840x2160` is, at
26
+ 4.83% against 7.06%. UHD is the densest supervision in the corpus, with the
27
+ smallest text and the most elements per screen, and training needs it more than
28
+ the split does. Of the candidates that leave UHD in training, 2880×1800 is both
29
+ the cheapest and the sharper test: it is one of only two 16:10 resolutions, so
30
+ holding it out leaves training a single 16:10 scale.
31
+
32
+ ## Zero leakage, and how it is checked
33
+
34
+ Over the **union of applications across every frame of a scene**. One capture of
35
+ a scene can miss an application another capture of it saw; keying on a single
36
+ frame is exactly how three held-out applications leaked into train in an earlier
37
+ build. The union is taken over *publishable* frames only, since a frame the
38
+ release drops cannot leak — one scene turned on that distinction, where the
39
+ held-out application launched only in a copy that failed quality checks.
40
+
41
+ `scripts/verify_hf_release.py` re-checks this against the packed payload and
42
+ fails the release if any held-out attribute reaches `train`.
43
+
44
+ ## Scenes the finalized split never placed
45
+
46
+ `splits_v3.jsonl` covers the 1,067,799 state-train-eligible observations. This
47
+ release carries every *publishable* observation, 1,207,368, so 12,515 scenes
48
+ needed a split it never assigned. They get one from the same rules in the same
49
+ priority (`test_app`, then `test_theme`, then `test_resolution`, else `train`),
50
+ and every existing v3 assignment is preserved exactly — verified per split.
51
+
52
+ `val` and `test_id` are **never** enlarged. They are a finalized random sample;
53
+ growing them after the fact would change what a number measured against them
54
+ means.
55
+
56
+ ## Occlusion is a reporting axis, not a split
57
+
58
+ Holding out occluded scenes would remove the capability the corpus exists to
59
+ demonstrate. Report it as a degradation curve over `test_id` instead:
60
+
61
+ | occluded ratio | share of observations |
62
+ | --- | ---: |
63
+ | none | 2.3% |
64
+ | 0–10% | 15.6% |
65
+ | 10–25% | 27.5% |
66
+ | 25%+ | 54.6% |
67
+
68
+ Median 0.284, p90 0.743, p99 0.930. Window count is available as `n_windows` for
69
+ the same purpose.
examples/_common.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Shared bits: iterate a WebDataset tar with or without the library.
2
+
3
+ The canonical shards are ordinary uncompressed tars, so `webdataset` is a
4
+ convenience and not a requirement. These examples use it when it is installed
5
+ and fall back to eighty lines of `tarfile` when it is not, which is also the
6
+ clearest statement of what the format actually is.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import io
12
+ import json
13
+ import tarfile
14
+ from pathlib import Path
15
+ from typing import Any, Dict, Iterator, List
16
+
17
+ #: The four members every observation carries, keyed by the part of the member
18
+ #: name after the first dot.
19
+ EXTENSIONS = ("png", "leaf.json", "screentag.txt", "record.json")
20
+
21
+
22
+ def iter_tar(path) -> Iterator[Dict[str, Any]]:
23
+ """Yield one dict per observation from one shard, in stored order.
24
+
25
+ Members of a sample are written consecutively, so grouping is a matter of
26
+ watching the key change - no buffering of the whole shard.
27
+ """
28
+ current_key = None
29
+ sample: Dict[str, Any] = {}
30
+ with tarfile.open(str(path), "r:") as tar:
31
+ for member in tar:
32
+ if not member.isfile():
33
+ continue
34
+ key, _, extension = member.name.partition(".")
35
+ if key != current_key:
36
+ if sample:
37
+ yield sample
38
+ current_key, sample = key, {"__key__": key}
39
+ handle = tar.extractfile(member)
40
+ if handle is None:
41
+ continue
42
+ sample[extension] = handle.read()
43
+ if sample:
44
+ yield sample
45
+
46
+
47
+ def decode(sample: Dict[str, Any], with_image: bool = True) -> Dict[str, Any]:
48
+ """Bytes to usable objects. The PNG is decoded only if asked for."""
49
+ out: Dict[str, Any] = {"key": sample["__key__"]}
50
+ if "record.json" in sample:
51
+ out["record"] = json.loads(sample["record.json"])
52
+ if "leaf.json" in sample:
53
+ out["elements"] = json.loads(sample["leaf.json"])
54
+ if "screentag.txt" in sample:
55
+ out["screentag"] = sample["screentag.txt"].decode("utf-8")
56
+ if with_image and "png" in sample:
57
+ from PIL import Image
58
+ out["image"] = Image.open(io.BytesIO(sample["png"]))
59
+ return out
60
+
61
+
62
+ def shards_for(root, split: str) -> List[Path]:
63
+ return sorted(Path(root).joinpath("data", split).glob("*.tar"))
64
+
65
+
66
+ def shards_for_rank(root, split: str, rank: int = 0, world_size: int = 1,
67
+ worker: int = 0, num_workers: int = 1) -> List[Path]:
68
+ """Partition shards so no two readers touch the same file.
69
+
70
+ Sharding by file, not by sample, is what keeps a distributed run from
71
+ reading everything `world_size` times. Every rank must get the same number
72
+ of shards or the epoch never ends on the short ranks; the tail is dropped.
73
+ """
74
+ shards = shards_for(root, split)
75
+ per_reader = len(shards) // max(1, world_size * num_workers)
76
+ if per_reader == 0:
77
+ raise ValueError(
78
+ "%d shards cannot feed %d readers; lower world_size or num_workers"
79
+ % (len(shards), world_size * num_workers))
80
+ index = rank * num_workers + worker
81
+ return shards[index * per_reader:(index + 1) * per_reader]
examples/get_by_key.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Fetch one observation by key, without reading the shard that holds it.
3
+
4
+ python examples/get_by_key.py --root . --key shard-0106__scene-002ad3e5b23cbfd9-step00
5
+
6
+ `index/shard_members.parquet` carries a byte offset and length for every
7
+ member. The canonical shards are **uncompressed** tars, so those offsets are
8
+ real file positions: one seek and one read returns the PNG, whether the file is
9
+ local or behind an HTTP range request.
10
+ """
11
+
12
+ from __future__ import annotations
13
+
14
+ import argparse
15
+ import json
16
+ import sys
17
+ from pathlib import Path
18
+
19
+ import pyarrow.compute as pc
20
+ import pyarrow.parquet as pq
21
+
22
+
23
+ def main() -> int:
24
+ ap = argparse.ArgumentParser(description=__doc__,
25
+ formatter_class=argparse.RawDescriptionHelpFormatter)
26
+ ap.add_argument("--root", default=".")
27
+ ap.add_argument("--key", required=True)
28
+ ap.add_argument("--kind", default="record",
29
+ choices=["image", "leaf", "screentag", "record"])
30
+ ap.add_argument("--out", default=None, help="write the bytes here")
31
+ args = ap.parse_args()
32
+
33
+ root = Path(args.root)
34
+ members = pq.read_table(root / "index" / "shard_members.parquet")
35
+ rows = members.filter(
36
+ pc.and_(pc.equal(members["observation_key"], args.key),
37
+ pc.equal(members["kind"], args.kind))).to_pydict()
38
+ if not rows["observation_key"]:
39
+ print("no member %r for key %r" % (args.kind, args.key), file=sys.stderr)
40
+ return 1
41
+
42
+ tar_path = root / rows["tar_path"][0]
43
+ offset, size = rows["byte_offset"][0], rows["byte_size"][0]
44
+ with tar_path.open("rb") as handle:
45
+ handle.seek(offset)
46
+ blob = handle.read(size)
47
+
48
+ print("%s %s %d bytes at offset %d in %s"
49
+ % (args.key, args.kind, size, offset, rows["tar_path"][0]))
50
+ if args.out:
51
+ Path(args.out).write_bytes(blob)
52
+ print("wrote %s" % args.out)
53
+ elif args.kind == "record":
54
+ print(json.dumps(json.loads(blob), indent=2)[:1200])
55
+ elif args.kind == "screentag":
56
+ print(blob.decode("utf-8")[:600])
57
+ return 0
58
+
59
+
60
+ if __name__ == "__main__":
61
+ raise SystemExit(main())
examples/stream_states.py ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Stream the States view: a screenshot and its dense annotation.
3
+
4
+ python examples/stream_states.py --root . --split train --limit 2000
5
+
6
+ The recommended training filter is `record["flags"]["state_train_eligible"]`,
7
+ which drops near-duplicate scenes and no-op episode frames. Every publishable
8
+ observation is in the payload, so an evaluation that wants them can have them.
9
+
10
+ With `webdataset` installed the same thing is four lines:
11
+
12
+ import webdataset as wds
13
+ url = "data/train/part-{00000..00903}.tar"
14
+ dataset = (wds.WebDataset(url, shardshuffle=True)
15
+ .decode("pil")
16
+ .to_tuple("png", "leaf.json", "screentag.txt", "record.json"))
17
+ """
18
+
19
+ from __future__ import annotations
20
+
21
+ import argparse
22
+ import collections
23
+ import sys
24
+ import time
25
+ from pathlib import Path
26
+
27
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
28
+ from _common import decode, iter_tar, shards_for # noqa: E402
29
+
30
+
31
+ def main() -> int:
32
+ ap = argparse.ArgumentParser(description=__doc__,
33
+ formatter_class=argparse.RawDescriptionHelpFormatter)
34
+ ap.add_argument("--root", default=".")
35
+ ap.add_argument("--split", default="train")
36
+ ap.add_argument("--limit", type=int, default=2000)
37
+ ap.add_argument("--eligible-only", action="store_true",
38
+ help="the recommended training filter")
39
+ ap.add_argument("--decode-images", action="store_true")
40
+ args = ap.parse_args()
41
+
42
+ shards = shards_for(args.root, args.split)
43
+ if not shards:
44
+ print("no shards under %s/data/%s" % (args.root, args.split), file=sys.stderr)
45
+ return 1
46
+
47
+ seen = kept = 0
48
+ elements = 0
49
+ apps: collections.Counter = collections.Counter()
50
+ started = time.time()
51
+ for shard in shards:
52
+ for sample in iter_tar(shard):
53
+ seen += 1
54
+ item = decode(sample, with_image=args.decode_images)
55
+ record = item["record"]
56
+ if args.eligible_only and not record["flags"]["state_train_eligible"]:
57
+ continue
58
+ kept += 1
59
+ elements += len(item["elements"])
60
+ apps.update(record["apps"])
61
+ if kept >= args.limit:
62
+ break
63
+ if kept >= args.limit:
64
+ break
65
+
66
+ seconds = time.time() - started
67
+ print("%s samples read, %s kept in %.1fs (%.0f samples/s)"
68
+ % ("{:,}".format(seen), "{:,}".format(kept), seconds, kept / max(seconds, 1e-9)))
69
+ print("mean elements per sample: %.1f" % (elements / max(kept, 1)))
70
+ print("applications: %s" % ", ".join("%s %d" % pair for pair in apps.most_common(8)))
71
+ return 0
72
+
73
+
74
+ if __name__ == "__main__":
75
+ raise SystemExit(main())
examples/stream_transitions.py ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Stream the Transitions view: before, action, after.
3
+
4
+ python examples/stream_transitions.py --root . --split train --limit 2000
5
+
6
+ A screenshot is stored **once**. A transition names its two endpoints by key,
7
+ so the loader pairs them; it never stores both images in a row. Because a whole
8
+ episode is packed into one shard, both endpoints of every transition are in the
9
+ shard already open - pair first, then shuffle at sample level, and the pairing
10
+ costs no extra I/O.
11
+
12
+ `transition_train_eligible` is not the same flag as `state_train_eligible`. A
13
+ transition whose action changed nothing is **kept** - it is negative
14
+ supervision - while the resulting state is excluded from the States view.
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import argparse
20
+ import collections
21
+ import sys
22
+ import time
23
+ from pathlib import Path
24
+
25
+ import pyarrow.parquet as pq
26
+
27
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
28
+ from _common import decode, iter_tar, shards_for # noqa: E402
29
+
30
+
31
+ def main() -> int:
32
+ ap = argparse.ArgumentParser(description=__doc__,
33
+ formatter_class=argparse.RawDescriptionHelpFormatter)
34
+ ap.add_argument("--root", default=".")
35
+ ap.add_argument("--split", default="train")
36
+ ap.add_argument("--limit", type=int, default=2000)
37
+ ap.add_argument("--eligible-only", action="store_true", default=True)
38
+ ap.add_argument("--decode-images", action="store_true")
39
+ args = ap.parse_args()
40
+
41
+ root = Path(args.root)
42
+ table = pq.read_table(
43
+ root / "index" / "transitions" / ("%s.parquet" % args.split),
44
+ columns=["before_key", "after_key", "action_type", "action_point_px",
45
+ "action_target_role", "action_target_text", "effect",
46
+ "transition_train_eligible"]).to_pydict()
47
+ by_before: dict = collections.defaultdict(list)
48
+ for index, before in enumerate(table["before_key"]):
49
+ if args.eligible_only and not table["transition_train_eligible"][index]:
50
+ continue
51
+ by_before[before].append(index)
52
+ print("%s eligible transitions in %s" % ("{:,}".format(sum(
53
+ len(v) for v in by_before.values())), args.split))
54
+
55
+ pairs = 0
56
+ changed = 0
57
+ roles: collections.Counter = collections.Counter()
58
+ started = time.time()
59
+ for shard in shards_for(root, args.split):
60
+ # One pass per shard: hold only the states this shard's transitions need.
61
+ held: dict = {}
62
+ wanted_after: dict = collections.defaultdict(list)
63
+ for sample in iter_tar(shard):
64
+ key = sample["__key__"]
65
+ item = decode(sample, with_image=args.decode_images)
66
+ if key in by_before:
67
+ held[key] = item
68
+ for index in by_before[key]:
69
+ wanted_after[table["after_key"][index]].append((key, index))
70
+ for before_key, index in wanted_after.pop(key, []):
71
+ before = held.get(before_key)
72
+ if before is None:
73
+ continue
74
+ pairs += 1
75
+ changed += bool(table["effect"][index]["changed"])
76
+ roles[table["action_target_role"][index]] += 1
77
+ if pairs >= args.limit:
78
+ break
79
+ if pairs >= args.limit:
80
+ break
81
+ if pairs >= args.limit:
82
+ break
83
+
84
+ seconds = time.time() - started
85
+ print("%s transitions paired in %.1fs (%.0f/s)"
86
+ % ("{:,}".format(pairs), seconds, pairs / max(seconds, 1e-9)))
87
+ print("changed something: %.1f%% no-op: %.1f%%"
88
+ % (100.0 * changed / max(pairs, 1), 100.0 * (pairs - changed) / max(pairs, 1)))
89
+ print("clicked roles: %s" % ", ".join("%s %d" % pair for pair in roles.most_common(8)))
90
+ return 0
91
+
92
+
93
+ if __name__ == "__main__":
94
+ raise SystemExit(main())
index/episodes/test_app.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f45da944b03544bd4a61ee4ed57779746083fa487f48146b5c8761dc9c2d9e7e
3
+ size 494765
index/episodes/test_id.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5a4a6be6018c3bff85503c59a5077f7d4f3a995b22715df7d57a741fd32cf28
3
+ size 238274
index/episodes/test_resolution.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea701bf2b1fc18f9c28b97ea0f296e623123051dc66346bfcca5c80a19d66f5e
3
+ size 656552
index/episodes/test_theme.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a3aa2a94d138fe19a3d10e8debfb936587217a9c2a6190d32061229dcb9bff6
3
+ size 462452
index/episodes/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14d1458a6d86e8f3ae2782a064a7818e3873786f302e517603ccb3ad0531e7bf
3
+ size 6942815
index/episodes/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30c7c147443abb8c52fa71201da43cb8ca6fcfe26fe0ab61d2388df3950a59b3
3
+ size 120984
index/observations/test_app.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27e04f4649660ae819a11df88d2851b9dd05d16a1169670aaac7d3e4b53e387b
3
+ size 1406891
index/observations/test_id.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d03fedcc42c65679af648b65cb8a6eabf15a60bbed9bb38e1e7339b5975af8e6
3
+ size 851200
index/observations/test_resolution.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc28efc2ba757e643e07c55f13be723e4191e8d7e7e54c26f911176e2c4e31ef
3
+ size 2056855
index/observations/test_theme.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8203c7aa6ce4c724352edfbd69ab0968e9bd6a9ad12a5af57d9414143842b2ca
3
+ size 1537385
index/observations/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfb412bb219563b5d9cd2111d978b1e23afb9dd1d64ee3ce86a28b71482355b7
3
+ size 21032206
index/observations/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7907feb1e130394e163ba77077a9f24285bac17742401c1dc2dfef635fd5254
3
+ size 561501
index/scenes.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b57dd0b6fe010834f73be43d41308e2bc9c68ed89d76998c423474a67aca4ae5
3
+ size 5209246
index/shard_members.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b7ee57c9e0a21cf7138e14579fbc5d928ddfa9e4f232b0ed8598bbeb7b00c25
3
+ size 10442028
index/transitions/test_app.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e48fdac9ad177bed1bc034699023a14f55913fc35b1f9a748b900b97d2e70905
3
+ size 1590260
index/transitions/test_id.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdea6f6761c78e8b9c7a5c636a257c407130a962b0852bfe36c25c5d66853de3
3
+ size 814318
index/transitions/test_resolution.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5f4f495e70aecbb5cdbb140f04b179115ec990dbd8a6018e52dbd4573fb1cfa
3
+ size 2464248
index/transitions/test_theme.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7113cf0a2ae6845cbef9a11edac525a3c14cbace7f187b9b5796669fb8bdd5f
3
+ size 1697813
index/transitions/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb29a1f4c5c86870e733f3e798d2f0d2012b83c5d00c9c335285f8625fda9092
3
+ size 30264161
index/transitions/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4641f1fbf37eb50c33a3c88badad05748e6e6e704ade248bf7d9284e201a388e
3
+ size 426648
release_provenance.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_name": "DeskForge-1M",
3
+ "dataset_version": "1.0.0",
4
+ "created_utc": "2026-08-25T15:15:50Z",
5
+ "corpus_root": "/proj/docling-vision/users/said/deskshot_corpus/v1",
6
+ "source_manifests": {
7
+ "plan/manifest.jsonl": {
8
+ "sha256": "f50f6a7c87cc6d2a05bb04a820b20e3a634c2cb60ea9ed1afa51325f69c6dc8c",
9
+ "bytes": 745782559
10
+ },
11
+ "plan/splits_v3.jsonl": {
12
+ "sha256": "ed9074f536920aea73da3848b8bc5a9e20f970a4280c6aaed5d36aabdbcbf4b2",
13
+ "bytes": 646314694
14
+ }
15
+ },
16
+ "code": {
17
+ "repo": "desktop_ui",
18
+ "commit": "44588e281f2c78f753294592de7c44879a6f89a6",
19
+ "dirty": false
20
+ },
21
+ "key_scheme": {
22
+ "observation_key": "<shard>__<stem>",
23
+ "episode_id": "<shard>__<group>__<scene_id>",
24
+ "transition_id": "<episode_id>__t<NN>",
25
+ "why": "152 capture stems collide across shards and 128 scene ids appear in two shards, so bare stems and bare scene ids are not globally unique; (shard, stem) is unique across all 1,266,471 rows."
26
+ }
27
+ }
release_report.json ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checks": [
3
+ {
4
+ "check": "release_provenance.json exists",
5
+ "detail": null,
6
+ "fatal": true,
7
+ "ok": true
8
+ },
9
+ {
10
+ "check": "source manifest present: plan/manifest.jsonl",
11
+ "detail": null,
12
+ "fatal": true,
13
+ "ok": true
14
+ },
15
+ {
16
+ "check": "source manifest unchanged: plan/manifest.jsonl",
17
+ "detail": "frozen f50f6a7c87cc",
18
+ "fatal": true,
19
+ "ok": true
20
+ },
21
+ {
22
+ "check": "source manifest present: plan/splits_v3.jsonl",
23
+ "detail": null,
24
+ "fatal": true,
25
+ "ok": true
26
+ },
27
+ {
28
+ "check": "source manifest unchanged: plan/splits_v3.jsonl",
29
+ "detail": "frozen ed9074f53692",
30
+ "fatal": true,
31
+ "ok": true
32
+ },
33
+ {
34
+ "check": "every scene has exactly one split",
35
+ "detail": "323,731 scenes",
36
+ "fatal": true,
37
+ "ok": true
38
+ },
39
+ {
40
+ "check": "observation keys are globally unique",
41
+ "detail": "1,207,368 observations",
42
+ "fatal": true,
43
+ "ok": true
44
+ },
45
+ {
46
+ "check": "zero held-out leakage into train",
47
+ "detail": "none",
48
+ "fatal": true,
49
+ "ok": true
50
+ },
51
+ {
52
+ "check": "transition ids are unique",
53
+ "detail": "917,211 transitions",
54
+ "fatal": true,
55
+ "ok": true
56
+ },
57
+ {
58
+ "check": "every eligible transition endpoint resolves",
59
+ "detail": 0,
60
+ "fatal": true,
61
+ "ok": true
62
+ },
63
+ {
64
+ "check": "both endpoints share the transition's split",
65
+ "detail": 0,
66
+ "fatal": true,
67
+ "ok": true
68
+ },
69
+ {
70
+ "check": "episode ids are unique",
71
+ "detail": "135,731 episodes",
72
+ "fatal": true,
73
+ "ok": true
74
+ },
75
+ {
76
+ "check": "every observation's episode has a row",
77
+ "detail": 0,
78
+ "fatal": true,
79
+ "ok": true
80
+ },
81
+ {
82
+ "check": "action points and boxes are inside the viewport",
83
+ "detail": "184,662 checked",
84
+ "fatal": true,
85
+ "ok": true
86
+ },
87
+ {
88
+ "check": "normalized coordinates round-trip within one grid cell",
89
+ "detail": 0,
90
+ "fatal": true,
91
+ "ok": true
92
+ },
93
+ {
94
+ "check": "no half-written tars remain",
95
+ "detail": [],
96
+ "fatal": true,
97
+ "ok": true
98
+ },
99
+ {
100
+ "check": "at least one tar is packed",
101
+ "detail": null,
102
+ "fatal": true,
103
+ "ok": true
104
+ },
105
+ {
106
+ "check": "every tar is readable and matches its marker",
107
+ "detail": "60 tars",
108
+ "fatal": true,
109
+ "ok": true
110
+ },
111
+ {
112
+ "check": "no observation appears in two tars",
113
+ "detail": 0,
114
+ "fatal": true,
115
+ "ok": true
116
+ },
117
+ {
118
+ "check": "every packed observation is in the index",
119
+ "detail": 0,
120
+ "fatal": true,
121
+ "ok": true
122
+ },
123
+ {
124
+ "check": "every observation sits in its split's directory",
125
+ "detail": 0,
126
+ "fatal": true,
127
+ "ok": true
128
+ },
129
+ {
130
+ "check": "no tar exceeds the size band",
131
+ "detail": [],
132
+ "fatal": true,
133
+ "ok": true
134
+ },
135
+ {
136
+ "check": "under-band tars are only split tails",
137
+ "detail": "0 under 0.75 GB",
138
+ "fatal": false,
139
+ "ok": true
140
+ },
141
+ {
142
+ "check": "sampled tars match their sha256",
143
+ "detail": "8 of 60 verified byte for byte",
144
+ "fatal": false,
145
+ "ok": true
146
+ },
147
+ {
148
+ "check": "no real project path in packed text",
149
+ "detail": 0,
150
+ "fatal": true,
151
+ "ok": true
152
+ },
153
+ {
154
+ "check": "no real home directory in packed text",
155
+ "detail": 0,
156
+ "fatal": true,
157
+ "ok": true
158
+ },
159
+ {
160
+ "check": "host name: disclosed in docs/known_issues.md",
161
+ "detail": "1068 of 10,815 members scanned",
162
+ "fatal": false,
163
+ "ok": true
164
+ },
165
+ {
166
+ "check": "author contact details: disclosed in docs/known_issues.md",
167
+ "detail": "6 of 10,815 members scanned",
168
+ "fatal": false,
169
+ "ok": true
170
+ }
171
+ ],
172
+ "facts": {
173
+ "by_split": {
174
+ "test_app": 43206,
175
+ "test_id": 22550,
176
+ "test_resolution": 79212,
177
+ "test_theme": 51627,
178
+ "train": 999494,
179
+ "val": 11279
180
+ },
181
+ "episodes": 135731,
182
+ "observations_indexed": 1207368,
183
+ "payload": {
184
+ "bytes": 59491747840,
185
+ "deep_checked": 8,
186
+ "packed_observations": 60017,
187
+ "tars": 60
188
+ },
189
+ "privacy": {
190
+ "author contact details": 6,
191
+ "host name": 1068,
192
+ "members_scanned": 10815
193
+ },
194
+ "transitions_eligible": 862587,
195
+ "transitions_total": 917211
196
+ }
197
+ }