strata-bench 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. strata_bench-1.1.0/.gitignore +19 -0
  2. strata_bench-1.1.0/CITATION.cff +30 -0
  3. strata_bench-1.1.0/LICENSE +190 -0
  4. strata_bench-1.1.0/NOTICE +13 -0
  5. strata_bench-1.1.0/PKG-INFO +218 -0
  6. strata_bench-1.1.0/README.md +190 -0
  7. strata_bench-1.1.0/data/hidden/README.md +16 -0
  8. strata_bench-1.1.0/data/hidden/gold.json +1152 -0
  9. strata_bench-1.1.0/data/public/leaderboard.json +80 -0
  10. strata_bench-1.1.0/data/public/sources_manifest.json +26 -0
  11. strata_bench-1.1.0/data/public/tasks.json +551 -0
  12. strata_bench-1.1.0/data/sandbox/corpus/README.md +14 -0
  13. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2021-Q3.txt +6 -0
  14. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2023-Q3.txt +6 -0
  15. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2023-Q4.txt +6 -0
  16. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2024-Q1.txt +6 -0
  17. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2024-Q2.txt +6 -0
  18. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2024-Q3.txt +6 -0
  19. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2024-Q4.txt +6 -0
  20. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2025-Q1.txt +6 -0
  21. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2025-Q2.txt +6 -0
  22. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2025-Q3.txt +6 -0
  23. strata_bench-1.1.0/data/sandbox/corpus/leasewatch/2025-Q4.txt +6 -0
  24. strata_bench-1.1.0/data/sandbox/corpus/mreb/2021-Q3.txt +21 -0
  25. strata_bench-1.1.0/data/sandbox/corpus/mreb/2021-Q4.txt +21 -0
  26. strata_bench-1.1.0/data/sandbox/corpus/mreb/2022-Q1.txt +21 -0
  27. strata_bench-1.1.0/data/sandbox/corpus/mreb/2022-Q2.txt +21 -0
  28. strata_bench-1.1.0/data/sandbox/corpus/mreb/2022-Q3.txt +21 -0
  29. strata_bench-1.1.0/data/sandbox/corpus/mreb/2022-Q4.txt +21 -0
  30. strata_bench-1.1.0/data/sandbox/corpus/mreb/2023-Q1.txt +21 -0
  31. strata_bench-1.1.0/data/sandbox/corpus/mreb/2023-Q2.txt +21 -0
  32. strata_bench-1.1.0/data/sandbox/corpus/mreb/2023-Q3.txt +21 -0
  33. strata_bench-1.1.0/data/sandbox/corpus/mreb/2023-Q4.txt +21 -0
  34. strata_bench-1.1.0/data/sandbox/corpus/mreb/2024-Q1.txt +21 -0
  35. strata_bench-1.1.0/data/sandbox/corpus/mreb/2024-Q2.txt +21 -0
  36. strata_bench-1.1.0/data/sandbox/corpus/mreb/2024-Q3.txt +21 -0
  37. strata_bench-1.1.0/data/sandbox/corpus/mreb/2024-Q4.txt +21 -0
  38. strata_bench-1.1.0/data/sandbox/corpus/mreb/2025-Q1.txt +21 -0
  39. strata_bench-1.1.0/data/sandbox/corpus/mreb/2025-Q2.txt +21 -0
  40. strata_bench-1.1.0/data/sandbox/corpus/mreb/2025-Q3.txt +21 -0
  41. strata_bench-1.1.0/data/sandbox/corpus/mreb/2025-Q4.txt +21 -0
  42. strata_bench-1.1.0/data/sandbox/corpus/mreb/2026-Q1.txt +21 -0
  43. strata_bench-1.1.0/data/sandbox/corpus/mreb/2026-Q2.txt +21 -0
  44. strata_bench-1.1.0/data/sandbox/corpus/traps/chart_ocr_fake.svg.txt +17 -0
  45. strata_bench-1.1.0/data/sandbox/corpus/traps/paywall_notice.txt +14 -0
  46. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2021-Q3.txt +15 -0
  47. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2022-Q1.txt +15 -0
  48. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2022-Q3.txt +15 -0
  49. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2023-Q1.txt +15 -0
  50. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2023-Q3.txt +15 -0
  51. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2023-Q4.txt +15 -0
  52. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2024-Q1.txt +15 -0
  53. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2024-Q3.txt +15 -0
  54. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2024-Q4.txt +15 -0
  55. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2025-Q1.txt +15 -0
  56. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2025-Q3.txt +15 -0
  57. strata_bench-1.1.0/data/sandbox/corpus/urbanpulse/2026-Q1.txt +15 -0
  58. strata_bench-1.1.0/docs/_config.yml +3 -0
  59. strata_bench-1.1.0/docs/assets/hero.png +0 -0
  60. strata_bench-1.1.0/docs/index.md +18 -0
  61. strata_bench-1.1.0/docs/paper.md +69 -0
  62. strata_bench-1.1.0/docs/prompting.md +30 -0
  63. strata_bench-1.1.0/docs/protocol.md +64 -0
  64. strata_bench-1.1.0/docs/scoring.md +32 -0
  65. strata_bench-1.1.0/docs/tasks.md +79 -0
  66. strata_bench-1.1.0/pyproject.toml +73 -0
  67. strata_bench-1.1.0/scripts/build_examples.py +591 -0
  68. strata_bench-1.1.0/scripts/generate_sandbox.py +866 -0
  69. strata_bench-1.1.0/strata_bench/__init__.py +18 -0
  70. strata_bench-1.1.0/strata_bench/__main__.py +6 -0
  71. strata_bench-1.1.0/strata_bench/cli.py +69 -0
  72. strata_bench-1.1.0/strata_bench/evaluate.py +107 -0
  73. strata_bench-1.1.0/strata_bench/report.py +77 -0
  74. strata_bench-1.1.0/strata_bench/schema.py +120 -0
  75. strata_bench-1.1.0/strata_bench/scoring.py +374 -0
  76. strata_bench-1.1.0/submissions/SCHEMA.md +54 -0
  77. strata_bench-1.1.0/submissions/community/README.md +18 -0
  78. strata_bench-1.1.0/submissions/examples/econometrician.json +5587 -0
  79. strata_bench-1.1.0/submissions/examples/extractor.json +4137 -0
  80. strata_bench-1.1.0/submissions/examples/literalist.json +5560 -0
  81. strata_bench-1.1.0/tests/test_examples.py +58 -0
  82. strata_bench-1.1.0/tests/test_gold.py +33 -0
  83. strata_bench-1.1.0/tests/test_schema.py +17 -0
@@ -0,0 +1,19 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .eggs/
5
+ dist/
6
+ build/
7
+ .pytest_cache/
8
+ .ruff_cache/
9
+ .venv/
10
+ venv/
11
+ .env
12
+ .DS_Store
13
+ .idea/
14
+ .vscode/
15
+ *.orig
16
+ .coverage
17
+ htmlcov/
18
+ submissions/private/
19
+ data/hidden/gold.json.bak
@@ -0,0 +1,30 @@
1
+ cff-version: 1.2.0
2
+ title: "STRATA-Bench: Evaluating AI Agents on Fragmented Spatial-Temporal Market Intelligence"
3
+ message: If you use STRATA-Bench, please cite it as below.
4
+ type: software
5
+ authors:
6
+ - family-names: Movahedi
7
+ given-names: Mohammad
8
+ email: movahedi.m@northeastern.edu
9
+ affiliation: "The Globe and Mail / Northeastern University"
10
+ website: https://movahedi.ca
11
+ repository-code: https://github.com/movahedi-ca/strata-bench
12
+ url: https://github.com/movahedi-ca/strata-bench
13
+ license: Apache-2.0
14
+ version: 1.1.0
15
+ date-released: "2026-09-19"
16
+ keywords:
17
+ - AI agents
18
+ - benchmark
19
+ - retrieval
20
+ - spatial data
21
+ - hallucination
22
+ - real estate
23
+ - evaluation
24
+ abstract: >-
25
+ STRATA-Bench (Spatial-Temporal Retrieval, Alignment, Transparency & Audit)
26
+ is a 39-task benchmark that measures whether AI agents can compile
27
+ longitudinal market intelligence when public data is geographically nested,
28
+ temporally gappy, and unit-inconsistent — without relabeling metro figures
29
+ as downtown, silently interpolating, or plotting missing quarters on a
30
+ categorical axis.
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Mohammad Movahedi
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,13 @@
1
+ STRATA-Bench
2
+ Copyright 2026 Mohammad Movahedi
3
+
4
+ This product includes software developed for the STRATA-Bench evaluation
5
+ protocol (Spatial-Temporal Retrieval, Alignment, Transparency & Audit).
6
+
7
+ The Meridian Metro sandbox (MREB, UrbanPulse, LeaseWatch, district codes
8
+ C-1 and C-8) is synthetic evaluation data. It is not affiliated with any
9
+ real real-estate board, consultancy, or municipality.
10
+
11
+ Live-track task text may name third-party publishers (e.g. TRREB, Urbanation)
12
+ as research context. Those names remain the marks of their owners. STRATA-Bench
13
+ does not redistribute their tables.
@@ -0,0 +1,218 @@
1
+ Metadata-Version: 2.5
2
+ Name: strata-bench
3
+ Version: 1.1.0
4
+ Summary: STRATA-Bench: Spatial-Temporal Retrieval, Alignment, Transparency & Audit — a benchmark for AI agents on fragmented geographic and longitudinal market intelligence.
5
+ Project-URL: Homepage, https://github.com/movahedi-ca/strata-bench
6
+ Project-URL: Documentation, https://github.com/movahedi-ca/strata-bench/tree/main/docs
7
+ Project-URL: Issues, https://github.com/movahedi-ca/strata-bench/issues
8
+ Project-URL: Source, https://github.com/movahedi-ca/strata-bench
9
+ Author-email: Mohammad Movahedi <movahedi.m@northeastern.edu>
10
+ License: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: agents,benchmark,evaluation,hallucination,llm,real-estate,retrieval,spatial-data
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: pydantic>=2.6
24
+ Provides-Extra: dev
25
+ Requires-Dist: pytest>=8.0; extra == 'dev'
26
+ Requires-Dist: ruff>=0.6; extra == 'dev'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # STRATA-Bench
30
+
31
+ ![STRATA-Bench: layered glass strata of fragmented market data examined under a magnifying lens](docs/assets/hero.png)
32
+
33
+ **Spatial-Temporal Retrieval, Alignment, Transparency & Audit**
34
+
35
+ A benchmark for AI agents that must compile longitudinal market intelligence from **fragmented, geographically nested, and temporally incomplete** evidence — without hallucinating downtown numbers, silently interpolating missing quarters, or plotting gaps as if they were data.
36
+
37
+ [![CI](https://github.com/movahedi-ca/strata-bench/actions/workflows/ci.yml/badge.svg)](https://github.com/movahedi-ca/strata-bench/actions/workflows/ci.yml)
38
+ [![Coverage](https://codecov.io/gh/movahedi-ca/strata-bench/branch/main/graph/badge.svg)](https://codecov.io/gh/movahedi-ca/strata-bench)
39
+ [![License](https://img.shields.io/badge/license-Apache%202.0-0e1210)](LICENSE)
40
+ [![Python](https://img.shields.io/badge/python-3.10%2B-d4a574)](pyproject.toml)
41
+ [![Version](https://img.shields.io/badge/version-1.1.0-6fbf9a)](CITATION.cff)
42
+
43
+ 📖 **Docs:** <https://movahedi-ca.github.io/strata-bench/> · 🗂️ **Tasks:** [`data/public/tasks.json`](data/public/tasks.json) · 📜 **Protocol:** [`docs/protocol.md`](docs/protocol.md)
44
+
45
+ > **Headline finding from the motivating audit.** When six frontier engines were asked for a five-year downtown condominium rent series, they split into three archetypes: *Empirical Literalists* (faithful to the public board, honest about geography), *Synthetic Econometricians* (modeled a downtown premium and said so), and *Fragmented Extractors* (OCR'd charts, skipped nine of twenty quarters, and plotted those gaps as equal ticks). STRATA-Bench turns that failure mode into a scored protocol.
46
+
47
+ ```
48
+ Headline score = 0.25·Temporal + 0.20·Source + 0.15·Spatial
49
+ + 0.15·Statistical + 0.15·Visual + 0.10·Narrative
50
+ Hard fails (geographic masking, silent interpolation, categorical axes on gappy
51
+ series, OCR laundering, paywall fabrication) cap a task at 55% of earned credit.
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Why this exists
57
+
58
+ SWE-bench asks whether an agent can patch a repo. GAIA asks whether it can chain tools to answer a question. Neither asks whether the agent **knows what a number is**.
59
+
60
+ In real institutional research — housing, labour, crime, wait times — the public file is almost never the geography the user named. The Toronto Regional Real Estate Board publishes a continuous GTA series; downtown districts C01/C08 are paywalled. Consultancy notes arrive on a different cadence, in $/sq ft. Listing-site charts drop quarters and then space the survivors evenly.
61
+
62
+ Agents fail in *structured* ways:
63
+
64
+ | Failure | What it looks like | STRATA family |
65
+ | --- | --- | --- |
66
+ | Geographic masking | Metro board figures labelled “Downtown Core” | **GEO** |
67
+ | Temporal attrition | 11 of 20 quarters; 2026 trough silently dropped | **TEMP** |
68
+ | OCR laundering | Rounded chart-readouts cited as MLS extracts | **SRC** |
69
+ | Silent interpolation | Linear fill presented as reported | **INT** |
70
+ | Non-uniform axis | 18-month hole drawn as wide as one quarter | **AXIS** |
71
+ | Source blending | Urbanation psf + board CAD + listing-site guesses, one line | **SYN** |
72
+
73
+ STRATA-Bench scores agents on whether they **disclose, tag, refuse, or model** — not on whether they emit a pretty dashboard.
74
+
75
+ ## Two tracks
76
+
77
+ | Track | n | Reproducible? | Evidence |
78
+ | --- | --- | --- | --- |
79
+ | **Sandbox** (official) | 36 | Yes | Self-contained corpus: fictional **Meridian Metro** board (MREB), Core-district consultancy (UrbanPulse), gappy listing-site (LeaseWatch), plus adversarial trap files |
80
+ | **Live** (optional probe) | 3 | No | Public-web Toronto / TRREB-style retrieval. Not used for the headline leaderboard |
81
+
82
+ The sandbox cycle is *structurally* the 2021–2026 North American rental boom-bust (post-shock trough → 2023 peak → completion flood → 2026-Q1 trough → 2026-Q2 first rebound) with **held-out gold**. Numbers are not Toronto's. Geography codes are `metro` vs `core` (C-1 Harbour + C-8 Civic Core). Core gold is metro × **1.115**, never published as a public board table.
83
+
84
+ ## Task families
85
+
86
+ | Family | n | Primary question |
87
+ | --- | --- | --- |
88
+ | `GEO` | 6 | Did the agent distinguish metro from core, or relabel? |
89
+ | `TEMP` | 6 | Are all 20 quarters present, including the 2026 turning points? |
90
+ | `SRC` | 6 | Is every cell sourced? Were visual estimates laundered? |
91
+ | `INT` | 6 | Are interpolations tagged (`status=interpolated`, hollow markers)? |
92
+ | `AXIS` | 6 | Is the x-axis datetime, with gaps as gaps? |
93
+ | `SYN` | 6 | Can the agent narrate regimes without blending incompatible series? |
94
+ | `LIVE` | 3 | Optional public-web analog |
95
+
96
+ Full prompts: [`data/public/tasks.json`](data/public/tasks.json) · protocol: [`docs/protocol.md`](docs/protocol.md).
97
+
98
+ ## Install
99
+
100
+ ```bash
101
+ git clone https://github.com/movahedi-ca/strata-bench.git
102
+ cd strata-bench
103
+ python -m pip install -e ".[dev]"
104
+ python scripts/generate_sandbox.py # corpus + gold + task catalog
105
+ ```
106
+
107
+ Requires Python 3.10+.
108
+
109
+ ## Evaluate a submission
110
+
111
+ Submissions are JSON documents matching [`submissions/SCHEMA.md`](submissions/SCHEMA.md).
112
+
113
+ ```bash
114
+ strata-bench list-tasks
115
+ strata-bench evaluate submissions/examples/literalist.json
116
+ strata-bench evaluate submissions/examples/literalist.json --format markdown -o scorecard.md
117
+ strata-bench evaluate path/to/run.json --format json
118
+ ```
119
+
120
+ Python:
121
+
122
+ ```python
123
+ from pathlib import Path
124
+ from strata_bench import evaluate_submission
125
+
126
+ result = evaluate_submission(Path("submissions/examples/literalist.json"))
127
+ print(result["headline_score"], result["hard_fails"])
128
+ ```
129
+
130
+ ## Seed leaderboard (sandbox, v1.0 harness)
131
+
132
+ These are *reference agents* shipped with the repo — not a claim about any vendor. They exist so the scorer has regression fixtures.
133
+
134
+ | Agent | Archetype | Headline | Characteristic failure |
135
+ | --- | --- | --- | --- |
136
+ | `literalist` | Empirical Literalist | high | Refuses Core when unpaid; complete metro series |
137
+ | `econometrician` | Synthetic Econometrician | high | Documents 11.5% premium; tags modeled cells |
138
+ | `extractor` | Fragmented Extractor | low | OCR chart, categorical axis, truncated 2025, geographic mask |
139
+
140
+ Run them:
141
+
142
+ ```bash
143
+ strata-bench evaluate submissions/examples/literalist.json
144
+ strata-bench evaluate submissions/examples/econometrician.json
145
+ strata-bench evaluate submissions/examples/extractor.json
146
+ ```
147
+
148
+ ## Community leaderboard
149
+
150
+ Ran your own agent? Add the run as `submissions/community/<agent>-<model>.json`
151
+ (matching [`submissions/SCHEMA.md`](submissions/SCHEMA.md)) and open a pull
152
+ request — the **Community leaderboard** workflow scores it against the frozen
153
+ v1.0 gold and posts the scorecard as a comment on your PR.
154
+
155
+ | Agent | Model | Headline | Run |
156
+ | --- | --- | --- | --- |
157
+ | *your agent here* | — | — | open a PR to claim this row |
158
+
159
+ See [`submissions/community/README.md`](submissions/community/README.md) for the rules.
160
+
161
+ ## Protocol in one page
162
+
163
+ 1. **Name the geography of every number.** `metro` and `core` are different series. “Downtown” is not a board code.
164
+ 2. **Name the source of every number.** MREB public ≠ UrbanPulse ≠ LeaseWatch.
165
+ 3. **Do not invent paywalled district tables.** Disclose, model with a flagged premium, or refuse.
166
+ 4. **Missing ≠ zero.** Unpublished quarters are omitted or interpolated; they are never `status=reported`.
167
+ 5. **Plot time as time.** `axis_type=datetime`. Gaps occupy proportional width.
168
+ 6. **Do not blend units.** CAD rent and $/psf do not share a y-axis without conversion footnotes.
169
+ 7. **Mark estimates.** Hollow markers, asterisks with a legend, `interpolated_periods`.
170
+
171
+ The unconstrained prompt *“give me downtown rents over five years”* is a trap. A protocol-compliant brief names the **provider**, **geography code**, **bedroom cut**, and **missing-quarter policy**. See [`docs/prompting.md`](docs/prompting.md).
172
+
173
+ ## Repository layout
174
+
175
+ ```
176
+ strata-bench/
177
+ ├── strata_bench/ # scorer, schema, CLI
178
+ ├── data/
179
+ │ ├── public/ # task catalog, source manifest (distributed)
180
+ │ ├── hidden/gold.json # held-out answers (used by the harness; do not give to agents)
181
+ │ └── sandbox/corpus/ # the only legal evidence on Track Sandbox
182
+ ├── submissions/examples/ # three archetypal runs
183
+ ├── docs/ # protocol, scoring, paper notes
184
+ └── tests/
185
+ ```
186
+
187
+ Agents on Track Sandbox may read `data/sandbox/corpus/**` and `data/public/tasks.json`. They may **not** read `data/hidden/`.
188
+
189
+ ## Citation
190
+
191
+ ```bibtex
192
+ @software{movahedi2026strata,
193
+ author = {Movahedi, Mohammad},
194
+ title = {{STRATA-Bench}: Evaluating AI Agents on Fragmented Spatial-Temporal Market Intelligence},
195
+ year = {2026},
196
+ version = {1.1.0},
197
+ url = {https://github.com/movahedi-ca/strata-bench},
198
+ license = {Apache-2.0}
199
+ }
200
+ ```
201
+
202
+ If you use the Toronto *motivating audit* in related work, cite the protocol's ancestry: a 2026 comparative evaluation of six frontier engines on a five-year condominium rental retrospective, which isolated the geographic-masking trap, OCR graph reading, non-uniform temporal axes, and interpolation opacity as independent failure vectors.
203
+
204
+ ## Status
205
+
206
+ **v1.1.0** — tooling & docs release. The benchmark itself (sandbox corpus,
207
+ scorer, 36 official tasks) is **frozen at v1.0**. Live track is a probe, not a
208
+ leaderboard. Gold is shipped in-tree so local evaluation is possible; a hashed
209
+ hidden split for a future hosted leaderboard is sketched in
210
+ `data/hidden/README.md` and tracked in
211
+ [#1](https://github.com/movahedi-ca/strata-bench/issues/1).
212
+ See [CHANGELOG.md](CHANGELOG.md).
213
+
214
+ Contributions: [`CONTRIBUTING.md`](CONTRIBUTING.md). Code of conduct: [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md). Security: [`SECURITY.md`](SECURITY.md).
215
+
216
+ ## License
217
+
218
+ Apache-2.0. The **Meridian Metro** sandbox is synthetic evaluation data and is not a real board, city, or consultancy. Live-track citations of third-party research remain the property of those publishers; STRATA-Bench does not redistribute paywalled tables.
@@ -0,0 +1,190 @@
1
+ # STRATA-Bench
2
+
3
+ ![STRATA-Bench: layered glass strata of fragmented market data examined under a magnifying lens](docs/assets/hero.png)
4
+
5
+ **Spatial-Temporal Retrieval, Alignment, Transparency & Audit**
6
+
7
+ A benchmark for AI agents that must compile longitudinal market intelligence from **fragmented, geographically nested, and temporally incomplete** evidence — without hallucinating downtown numbers, silently interpolating missing quarters, or plotting gaps as if they were data.
8
+
9
+ [![CI](https://github.com/movahedi-ca/strata-bench/actions/workflows/ci.yml/badge.svg)](https://github.com/movahedi-ca/strata-bench/actions/workflows/ci.yml)
10
+ [![Coverage](https://codecov.io/gh/movahedi-ca/strata-bench/branch/main/graph/badge.svg)](https://codecov.io/gh/movahedi-ca/strata-bench)
11
+ [![License](https://img.shields.io/badge/license-Apache%202.0-0e1210)](LICENSE)
12
+ [![Python](https://img.shields.io/badge/python-3.10%2B-d4a574)](pyproject.toml)
13
+ [![Version](https://img.shields.io/badge/version-1.1.0-6fbf9a)](CITATION.cff)
14
+
15
+ 📖 **Docs:** <https://movahedi-ca.github.io/strata-bench/> · 🗂️ **Tasks:** [`data/public/tasks.json`](data/public/tasks.json) · 📜 **Protocol:** [`docs/protocol.md`](docs/protocol.md)
16
+
17
+ > **Headline finding from the motivating audit.** When six frontier engines were asked for a five-year downtown condominium rent series, they split into three archetypes: *Empirical Literalists* (faithful to the public board, honest about geography), *Synthetic Econometricians* (modeled a downtown premium and said so), and *Fragmented Extractors* (OCR'd charts, skipped nine of twenty quarters, and plotted those gaps as equal ticks). STRATA-Bench turns that failure mode into a scored protocol.
18
+
19
+ ```
20
+ Headline score = 0.25·Temporal + 0.20·Source + 0.15·Spatial
21
+ + 0.15·Statistical + 0.15·Visual + 0.10·Narrative
22
+ Hard fails (geographic masking, silent interpolation, categorical axes on gappy
23
+ series, OCR laundering, paywall fabrication) cap a task at 55% of earned credit.
24
+ ```
25
+
26
+ ---
27
+
28
+ ## Why this exists
29
+
30
+ SWE-bench asks whether an agent can patch a repo. GAIA asks whether it can chain tools to answer a question. Neither asks whether the agent **knows what a number is**.
31
+
32
+ In real institutional research — housing, labour, crime, wait times — the public file is almost never the geography the user named. The Toronto Regional Real Estate Board publishes a continuous GTA series; downtown districts C01/C08 are paywalled. Consultancy notes arrive on a different cadence, in $/sq ft. Listing-site charts drop quarters and then space the survivors evenly.
33
+
34
+ Agents fail in *structured* ways:
35
+
36
+ | Failure | What it looks like | STRATA family |
37
+ | --- | --- | --- |
38
+ | Geographic masking | Metro board figures labelled “Downtown Core” | **GEO** |
39
+ | Temporal attrition | 11 of 20 quarters; 2026 trough silently dropped | **TEMP** |
40
+ | OCR laundering | Rounded chart-readouts cited as MLS extracts | **SRC** |
41
+ | Silent interpolation | Linear fill presented as reported | **INT** |
42
+ | Non-uniform axis | 18-month hole drawn as wide as one quarter | **AXIS** |
43
+ | Source blending | Urbanation psf + board CAD + listing-site guesses, one line | **SYN** |
44
+
45
+ STRATA-Bench scores agents on whether they **disclose, tag, refuse, or model** — not on whether they emit a pretty dashboard.
46
+
47
+ ## Two tracks
48
+
49
+ | Track | n | Reproducible? | Evidence |
50
+ | --- | --- | --- | --- |
51
+ | **Sandbox** (official) | 36 | Yes | Self-contained corpus: fictional **Meridian Metro** board (MREB), Core-district consultancy (UrbanPulse), gappy listing-site (LeaseWatch), plus adversarial trap files |
52
+ | **Live** (optional probe) | 3 | No | Public-web Toronto / TRREB-style retrieval. Not used for the headline leaderboard |
53
+
54
+ The sandbox cycle is *structurally* the 2021–2026 North American rental boom-bust (post-shock trough → 2023 peak → completion flood → 2026-Q1 trough → 2026-Q2 first rebound) with **held-out gold**. Numbers are not Toronto's. Geography codes are `metro` vs `core` (C-1 Harbour + C-8 Civic Core). Core gold is metro × **1.115**, never published as a public board table.
55
+
56
+ ## Task families
57
+
58
+ | Family | n | Primary question |
59
+ | --- | --- | --- |
60
+ | `GEO` | 6 | Did the agent distinguish metro from core, or relabel? |
61
+ | `TEMP` | 6 | Are all 20 quarters present, including the 2026 turning points? |
62
+ | `SRC` | 6 | Is every cell sourced? Were visual estimates laundered? |
63
+ | `INT` | 6 | Are interpolations tagged (`status=interpolated`, hollow markers)? |
64
+ | `AXIS` | 6 | Is the x-axis datetime, with gaps as gaps? |
65
+ | `SYN` | 6 | Can the agent narrate regimes without blending incompatible series? |
66
+ | `LIVE` | 3 | Optional public-web analog |
67
+
68
+ Full prompts: [`data/public/tasks.json`](data/public/tasks.json) · protocol: [`docs/protocol.md`](docs/protocol.md).
69
+
70
+ ## Install
71
+
72
+ ```bash
73
+ git clone https://github.com/movahedi-ca/strata-bench.git
74
+ cd strata-bench
75
+ python -m pip install -e ".[dev]"
76
+ python scripts/generate_sandbox.py # corpus + gold + task catalog
77
+ ```
78
+
79
+ Requires Python 3.10+.
80
+
81
+ ## Evaluate a submission
82
+
83
+ Submissions are JSON documents matching [`submissions/SCHEMA.md`](submissions/SCHEMA.md).
84
+
85
+ ```bash
86
+ strata-bench list-tasks
87
+ strata-bench evaluate submissions/examples/literalist.json
88
+ strata-bench evaluate submissions/examples/literalist.json --format markdown -o scorecard.md
89
+ strata-bench evaluate path/to/run.json --format json
90
+ ```
91
+
92
+ Python:
93
+
94
+ ```python
95
+ from pathlib import Path
96
+ from strata_bench import evaluate_submission
97
+
98
+ result = evaluate_submission(Path("submissions/examples/literalist.json"))
99
+ print(result["headline_score"], result["hard_fails"])
100
+ ```
101
+
102
+ ## Seed leaderboard (sandbox, v1.0 harness)
103
+
104
+ These are *reference agents* shipped with the repo — not a claim about any vendor. They exist so the scorer has regression fixtures.
105
+
106
+ | Agent | Archetype | Headline | Characteristic failure |
107
+ | --- | --- | --- | --- |
108
+ | `literalist` | Empirical Literalist | high | Refuses Core when unpaid; complete metro series |
109
+ | `econometrician` | Synthetic Econometrician | high | Documents 11.5% premium; tags modeled cells |
110
+ | `extractor` | Fragmented Extractor | low | OCR chart, categorical axis, truncated 2025, geographic mask |
111
+
112
+ Run them:
113
+
114
+ ```bash
115
+ strata-bench evaluate submissions/examples/literalist.json
116
+ strata-bench evaluate submissions/examples/econometrician.json
117
+ strata-bench evaluate submissions/examples/extractor.json
118
+ ```
119
+
120
+ ## Community leaderboard
121
+
122
+ Ran your own agent? Add the run as `submissions/community/<agent>-<model>.json`
123
+ (matching [`submissions/SCHEMA.md`](submissions/SCHEMA.md)) and open a pull
124
+ request — the **Community leaderboard** workflow scores it against the frozen
125
+ v1.0 gold and posts the scorecard as a comment on your PR.
126
+
127
+ | Agent | Model | Headline | Run |
128
+ | --- | --- | --- | --- |
129
+ | *your agent here* | — | — | open a PR to claim this row |
130
+
131
+ See [`submissions/community/README.md`](submissions/community/README.md) for the rules.
132
+
133
+ ## Protocol in one page
134
+
135
+ 1. **Name the geography of every number.** `metro` and `core` are different series. “Downtown” is not a board code.
136
+ 2. **Name the source of every number.** MREB public ≠ UrbanPulse ≠ LeaseWatch.
137
+ 3. **Do not invent paywalled district tables.** Disclose, model with a flagged premium, or refuse.
138
+ 4. **Missing ≠ zero.** Unpublished quarters are omitted or interpolated; they are never `status=reported`.
139
+ 5. **Plot time as time.** `axis_type=datetime`. Gaps occupy proportional width.
140
+ 6. **Do not blend units.** CAD rent and $/psf do not share a y-axis without conversion footnotes.
141
+ 7. **Mark estimates.** Hollow markers, asterisks with a legend, `interpolated_periods`.
142
+
143
+ The unconstrained prompt *“give me downtown rents over five years”* is a trap. A protocol-compliant brief names the **provider**, **geography code**, **bedroom cut**, and **missing-quarter policy**. See [`docs/prompting.md`](docs/prompting.md).
144
+
145
+ ## Repository layout
146
+
147
+ ```
148
+ strata-bench/
149
+ ├── strata_bench/ # scorer, schema, CLI
150
+ ├── data/
151
+ │ ├── public/ # task catalog, source manifest (distributed)
152
+ │ ├── hidden/gold.json # held-out answers (used by the harness; do not give to agents)
153
+ │ └── sandbox/corpus/ # the only legal evidence on Track Sandbox
154
+ ├── submissions/examples/ # three archetypal runs
155
+ ├── docs/ # protocol, scoring, paper notes
156
+ └── tests/
157
+ ```
158
+
159
+ Agents on Track Sandbox may read `data/sandbox/corpus/**` and `data/public/tasks.json`. They may **not** read `data/hidden/`.
160
+
161
+ ## Citation
162
+
163
+ ```bibtex
164
+ @software{movahedi2026strata,
165
+ author = {Movahedi, Mohammad},
166
+ title = {{STRATA-Bench}: Evaluating AI Agents on Fragmented Spatial-Temporal Market Intelligence},
167
+ year = {2026},
168
+ version = {1.1.0},
169
+ url = {https://github.com/movahedi-ca/strata-bench},
170
+ license = {Apache-2.0}
171
+ }
172
+ ```
173
+
174
+ If you use the Toronto *motivating audit* in related work, cite the protocol's ancestry: a 2026 comparative evaluation of six frontier engines on a five-year condominium rental retrospective, which isolated the geographic-masking trap, OCR graph reading, non-uniform temporal axes, and interpolation opacity as independent failure vectors.
175
+
176
+ ## Status
177
+
178
+ **v1.1.0** — tooling & docs release. The benchmark itself (sandbox corpus,
179
+ scorer, 36 official tasks) is **frozen at v1.0**. Live track is a probe, not a
180
+ leaderboard. Gold is shipped in-tree so local evaluation is possible; a hashed
181
+ hidden split for a future hosted leaderboard is sketched in
182
+ `data/hidden/README.md` and tracked in
183
+ [#1](https://github.com/movahedi-ca/strata-bench/issues/1).
184
+ See [CHANGELOG.md](CHANGELOG.md).
185
+
186
+ Contributions: [`CONTRIBUTING.md`](CONTRIBUTING.md). Code of conduct: [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md). Security: [`SECURITY.md`](SECURITY.md).
187
+
188
+ ## License
189
+
190
+ Apache-2.0. The **Meridian Metro** sandbox is synthetic evaluation data and is not a real board, city, or consultancy. Live-track citations of third-party research remain the property of those publishers; STRATA-Bench does not redistribute paywalled tables.