journeygraph 0.1.1__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 (43) hide show
  1. journeygraph-0.1.1/LICENSE +201 -0
  2. journeygraph-0.1.1/PKG-INFO +285 -0
  3. journeygraph-0.1.1/README.md +240 -0
  4. journeygraph-0.1.1/pyproject.toml +133 -0
  5. journeygraph-0.1.1/setup.cfg +4 -0
  6. journeygraph-0.1.1/src/journeygraph/__init__.py +5 -0
  7. journeygraph-0.1.1/src/journeygraph/__main__.py +6 -0
  8. journeygraph-0.1.1/src/journeygraph/analytics/__init__.py +6 -0
  9. journeygraph-0.1.1/src/journeygraph/analytics/_adapters.py +144 -0
  10. journeygraph-0.1.1/src/journeygraph/analytics/analyzer.py +410 -0
  11. journeygraph-0.1.1/src/journeygraph/analytics/metrics.py +70 -0
  12. journeygraph-0.1.1/src/journeygraph/api.py +95 -0
  13. journeygraph-0.1.1/src/journeygraph/cli.py +213 -0
  14. journeygraph-0.1.1/src/journeygraph/data/__init__.py +1 -0
  15. journeygraph-0.1.1/src/journeygraph/data/demo.jsonl +45 -0
  16. journeygraph-0.1.1/src/journeygraph/domain/__init__.py +5 -0
  17. journeygraph-0.1.1/src/journeygraph/domain/models.py +183 -0
  18. journeygraph-0.1.1/src/journeygraph/exceptions.py +45 -0
  19. journeygraph-0.1.1/src/journeygraph/graph/__init__.py +13 -0
  20. journeygraph-0.1.1/src/journeygraph/graph/builder.py +119 -0
  21. journeygraph-0.1.1/src/journeygraph/graph/models.py +78 -0
  22. journeygraph-0.1.1/src/journeygraph/ingestion/__init__.py +5 -0
  23. journeygraph-0.1.1/src/journeygraph/ingestion/otlp.py +388 -0
  24. journeygraph-0.1.1/src/journeygraph/ingestion/readers.py +254 -0
  25. journeygraph-0.1.1/src/journeygraph/normalization/__init__.py +5 -0
  26. journeygraph-0.1.1/src/journeygraph/normalization/pipeline.py +717 -0
  27. journeygraph-0.1.1/src/journeygraph/normalization/privacy.py +208 -0
  28. journeygraph-0.1.1/src/journeygraph/py.typed +1 -0
  29. journeygraph-0.1.1/src/journeygraph/reporting/__init__.py +5 -0
  30. journeygraph-0.1.1/src/journeygraph/reporting/html.py +241 -0
  31. journeygraph-0.1.1/src/journeygraph/reporting/serialize.py +31 -0
  32. journeygraph-0.1.1/src/journeygraph/reporting/svg.py +129 -0
  33. journeygraph-0.1.1/src/journeygraph/reporting/writer.py +176 -0
  34. journeygraph-0.1.1/src/journeygraph/schemas/__init__.py +1 -0
  35. journeygraph-0.1.1/src/journeygraph/schemas/analysis-v1.schema.json +495 -0
  36. journeygraph-0.1.1/src/journeygraph/schemas/event-v1.schema.json +48 -0
  37. journeygraph-0.1.1/src/journeygraph/version.py +3 -0
  38. journeygraph-0.1.1/src/journeygraph.egg-info/PKG-INFO +285 -0
  39. journeygraph-0.1.1/src/journeygraph.egg-info/SOURCES.txt +41 -0
  40. journeygraph-0.1.1/src/journeygraph.egg-info/dependency_links.txt +1 -0
  41. journeygraph-0.1.1/src/journeygraph.egg-info/entry_points.txt +2 -0
  42. journeygraph-0.1.1/src/journeygraph.egg-info/requires.txt +19 -0
  43. journeygraph-0.1.1/src/journeygraph.egg-info/top_level.txt +1 -0
@@ -0,0 +1,201 @@
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
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,285 @@
1
+ Metadata-Version: 2.4
2
+ Name: journeygraph
3
+ Version: 0.1.1
4
+ Summary: Local-first graph analytics for AI agent traces and event data
5
+ Author: German Gerken
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Documentation, https://github.com/GermanGerken/journeygraph#readme
8
+ Project-URL: Issues, https://github.com/GermanGerken/journeygraph/issues
9
+ Project-URL: Repository, https://github.com/GermanGerken/journeygraph
10
+ Project-URL: Changelog, https://github.com/GermanGerken/journeygraph/blob/main/CHANGELOG.md
11
+ Project-URL: Security, https://github.com/GermanGerken/journeygraph/security/policy
12
+ Keywords: ai-agents,graph-analytics,journey-analysis,llm-observability,opentelemetry,path-mining,trace-analysis
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.11
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Provides-Extra: parquet
29
+ Requires-Dist: pyarrow<26,>=25.0.0; extra == "parquet"
30
+ Provides-Extra: dev
31
+ Requires-Dist: bandit<2,>=1.8; extra == "dev"
32
+ Requires-Dist: build<2,>=1.5; extra == "dev"
33
+ Requires-Dist: detect-secrets<2,>=1.5; extra == "dev"
34
+ Requires-Dist: hypothesis<7,>=6.158; extra == "dev"
35
+ Requires-Dist: jsonschema<5,>=4.26; extra == "dev"
36
+ Requires-Dist: mypy<3,>=2.3; extra == "dev"
37
+ Requires-Dist: pip-audit<3,>=2.10; extra == "dev"
38
+ Requires-Dist: pytest<10,>=9.1; extra == "dev"
39
+ Requires-Dist: pytest-cov<8,>=7.1; extra == "dev"
40
+ Requires-Dist: ruff<1,>=0.15; extra == "dev"
41
+ Requires-Dist: twine<7,>=6.2; extra == "dev"
42
+ Provides-Extra: mutation
43
+ Requires-Dist: mutmut<4,>=3.6; extra == "mutation"
44
+ Dynamic: license-file
45
+
46
+ # JourneyGraph
47
+
48
+ Local-first graph analytics for recurring paths, loops, failures, and outcomes across
49
+ AI-agent traces and event data.
50
+
51
+ > **JourneyGraph does not collect traces. It analyzes the traces and event exports you already
52
+ > have.** Core analysis runs locally, needs no account or API key, and sends no telemetry.
53
+
54
+ ![JourneyGraph demo graph](docs/assets/demo-graph.svg)
55
+
56
+ Tracing tools help inspect one execution. JourneyGraph answers population-level questions:
57
+ Which paths recur across many executions? Where do agents retry, loop, fail, hand off, or drop
58
+ off? Which exact paths are associated with outcomes, and how do latency, token use, or cost
59
+ differ globally or across retained cohorts?
60
+
61
+ JourneyGraph 0.1 is an early alpha with a deliberately narrow, tested contract. It turns
62
+ canonical JSONL, CSV, optional Parquet, or one supported OTLP/JSON request shape into a
63
+ deterministic aggregate graph, machine-readable analysis, normalized events, static HTML, and
64
+ standalone SVG.
65
+
66
+ ## Five-minute quickstart
67
+
68
+ Python 3.11 or later is required. From a fresh checkout, this single setup-and-demo command
69
+ installs the standard-library runtime core and generates a complete synthetic report:
70
+
71
+ ```bash
72
+ git clone https://github.com/GermanGerken/journeygraph.git
73
+ cd journeygraph
74
+ python3 -m venv .venv && . .venv/bin/activate && python -m pip install . && journeygraph demo --output-dir journeygraph-demo
75
+ ```
76
+
77
+ Open `journeygraph-demo/report.html` in a browser. The command also writes:
78
+
79
+ ```text
80
+ journeygraph-demo/
81
+ ├── analysis.json
82
+ ├── demo-traces.jsonl
83
+ ├── graph.svg
84
+ ├── normalized.jsonl
85
+ └── report.html
86
+ ```
87
+
88
+ The packaged demo is deterministic and entirely synthetic. Its current output contains 45
89
+ events across 9 traces, 13 aggregate nodes, 19 unique transitions, 2 retry categories, and 3
90
+ exact return-loop sequences. Outcomes are 5 successes, 2 failures, 1 handoff, and 1 drop-off.
91
+
92
+ ## Analyze your own export
93
+
94
+ Canonical JSON Lines contains one operation per line:
95
+
96
+ ```json
97
+ {"schema_version":"1.0","trace_id":"trace-1","step_id":"request","timestamp":"2026-07-21T08:00:00Z","operation_type":"request","component":"user_request","duration_ms":4,"status":"ok"}
98
+ {"schema_version":"1.0","trace_id":"trace-1","step_id":"answer","parent_step_id":"request","timestamp":"2026-07-21T08:00:00.125Z","operation_type":"outcome","component":"completed","duration_ms":1,"status":"ok","outcome":"success"}
99
+ ```
100
+
101
+ Validate first, then produce all four analysis artifacts:
102
+
103
+ ```bash
104
+ journeygraph validate traces.jsonl
105
+ journeygraph analyze traces.jsonl --output-dir journeygraph-report
106
+ ```
107
+
108
+ A compact part of `analysis.json` looks like this for the packaged demo:
109
+
110
+ ```json
111
+ {
112
+ "schema_version": "1.0",
113
+ "totals": {
114
+ "events": 45,
115
+ "nodes": 13,
116
+ "traces": 9,
117
+ "transitions": 36,
118
+ "unique_transitions": 19
119
+ },
120
+ "outcomes": {
121
+ "counts": {
122
+ "dropoff": 1,
123
+ "failure": 2,
124
+ "handoff": 1,
125
+ "success": 5,
126
+ "unknown": 0
127
+ }
128
+ }
129
+ }
130
+ ```
131
+
132
+ Use `--cohort-key environment` to compare retained operational cohorts. Use repeatable
133
+ `--allow-metadata-key KEY` options only for additional non-sensitive operational fields.
134
+ Sensitive-key rules remain permanent even when a key is requested explicitly.
135
+
136
+ ## What it computes
137
+
138
+ - Aggregate nodes for exact `(operation_type, component)` categories and weighted directed
139
+ transitions between adjacent steps.
140
+ - Complete exact paths with stable SHA-256 identities and frequency/outcome summaries.
141
+ - Adjacent exact-category retries and non-adjacent return loops, reported separately.
142
+ - Reconciled success, failure, handoff, drop-off, and unknown outcomes.
143
+ - Failure points, drop-off points, entries, terminals, and successful versus non-successful
144
+ path comparisons.
145
+ - Event-level duration, token, and supplied-cost summaries with explicit missing counts.
146
+ - Optional cohort summaries based on retained metadata.
147
+ - Structured data-quality and privacy warnings without echoing rejected values.
148
+
149
+ All ordering, IDs, aggregates, JSON, normalized JSONL, HTML, and SVG are deterministic for the
150
+ same accepted input and configuration. Parent links are diagnostics; normalized chronological
151
+ order is authoritative, with `step_id` as the equal-timestamp tie-breaker.
152
+
153
+ ## Supported inputs
154
+
155
+ | Input | Maturity | Boundary |
156
+ | --- | --- | --- |
157
+ | JSON Lines | Stable canonical v1 | One `journeygraph.event/v1` object per line. |
158
+ | CSV | Stable canonical v1 | Same scalar fields; metadata uses `metadata.<key>` columns. |
159
+ | Parquet | Optional canonical v1 | Same logical columns through `journeygraph[parquet]` and PyArrow. |
160
+ | OTLP/JSON | Experimental | Explicit `--format otlp-json`; one uncompressed OTLP/HTTP `ExportTraceServiceRequest` JSON body. |
161
+
162
+ The experimental importer verifies an official OTLP request shape and maps a documented
163
+ subset of OpenTelemetry and OpenInference attributes. It is not a collector, live receiver,
164
+ gRPC or protobuf-binary decoder, generic JSON importer, or claim of Langfuse/Phoenix/provider
165
+ compatibility. Validate a representative sanitized export before relying on it. See the exact
166
+ [data schema and mappings](docs/schema.md).
167
+
168
+ ## Where it fits
169
+
170
+ For AI systems, a journey might be:
171
+
172
+ ```text
173
+ request -> router -> retrieval -> model -> tool -> validation -> outcome
174
+ ```
175
+
176
+ The same canonical model also supports non-AI operational journeys such as service workflows,
177
+ batch pipelines, product events, support escalation, approval processes, or test-run steps.
178
+ JourneyGraph describes observed associations; it does not infer causes or judge quality.
179
+
180
+ The implementation keeps provider-specific decoding at the ingestion boundary:
181
+
182
+ ```text
183
+ local export -> reader -> validation/privacy normalization -> aggregate graph
184
+ -> deterministic analytics -> JSON + normalized JSONL + HTML + SVG
185
+ ```
186
+
187
+ The analytical core uses only the Python standard library. Optional PyArrow is isolated to
188
+ Parquet ingestion. See [Architecture](docs/architecture.md) for dependency boundaries and
189
+ stable identity rules.
190
+
191
+ ## Privacy and security boundary
192
+
193
+ JourneyGraph denies metadata by default except for a small operational allowlist. Keys matching
194
+ the documented sensitive fragments—including prompt, message, document, credential, token,
195
+ email, and common identifier names—are permanently excluded. Reports escape untrusted markup;
196
+ HTML has no executable JavaScript or remote dependency, and SVG has no scripts or remote
197
+ resources.
198
+
199
+ This is key-based filtering, not content inspection, anonymization, or a DLP system. An
200
+ arbitrary custom key or value can still identify someone even when its name does not match the
201
+ denylist. Retained IDs, timestamps, labels, allowed values, rare paths, and `normalized.jsonl`
202
+ may still be sensitive. Inspect artifacts before sharing them. Read the full [Privacy and
203
+ Threat Model](docs/privacy.md).
204
+
205
+ ## Quality and reproducibility
206
+
207
+ The repository has three test layers: pure unit tests, real-file integration tests, and
208
+ black-box installed-CLI functional tests. The acceptance suite covers deterministic ordering,
209
+ branches, retries, loops, outcomes, malformed data, duplicates, privacy leakage, hostile
210
+ markup, Unicode, output safety, canonical formats, representative OTLP/JSON, and a real
211
+ Parquet file when the optional dependency is installed.
212
+
213
+ The canonical local gate enforces Ruff formatting/linting, strict mypy, combined statement and
214
+ branch coverage of at least 90%, an isolated wheel smoke test, documentation contracts,
215
+ dependency auditing, Bandit, and secret scanning:
216
+
217
+ ```bash
218
+ make setup
219
+ make verify
220
+ ```
221
+
222
+ Mutation testing and the deterministic 2,000-trace benchmark are explicit additional checks:
223
+
224
+ ```bash
225
+ make mutation
226
+ make benchmark
227
+ ```
228
+
229
+ CI runs the same Make targets on Linux with Python 3.11, 3.12, 3.13, and 3.14. A separate
230
+ native Windows job on Python 3.12 builds the distributions, installs the exact wheel in an
231
+ isolated environment, and exercises CLI help, CRLF/Unicode validation, deterministic analysis,
232
+ and the packaged demo. No remote CI result is claimed until that workflow actually runs. See
233
+ [Testing and Quality](docs/testing.md).
234
+
235
+ ## Current limitations and non-goals
236
+
237
+ - Batch, local, in-memory analysis only; no collection, streaming, server, hosted service, or
238
+ graph database.
239
+ - Exact category and path grouping only; no fuzzy clustering, causal inference, prediction,
240
+ anomaly truth, or LLM-as-a-judge.
241
+ - OTLP/JSON support is intentionally narrower than the complete protocol and semantic
242
+ convention surface.
243
+ - Supplied token and cost values are summarized as-is; provider pricing is not recalculated.
244
+ - Whole multi-file publication is not transactional, although each artifact uses guarded
245
+ sibling replacement.
246
+ - The installed package and CLI are tested natively on Windows with Python 3.12. Repository
247
+ development commands still use the documented POSIX Makefile harness or WSL.
248
+
249
+ ## Roadmap
250
+
251
+ Near-term work should be driven by sanitized real-export evidence: harden canonical and OTLP
252
+ adapters, improve large-input behavior, add explainable comparisons and filtering, and expand
253
+ visual navigation without weakening static/local guarantees. Leakage-safe prefix prediction
254
+ is a possible later experiment only after temporal evaluation and privacy safeguards exist; it
255
+ is not part of 0.1.
256
+
257
+ ## Documentation
258
+
259
+ - [CLI and Python API](docs/cli.md)
260
+ - [Data and Analysis Schemas](docs/schema.md)
261
+ - [Architecture](docs/architecture.md)
262
+ - [Privacy and Threat Model](docs/privacy.md)
263
+ - [Privacy-safe real-trace discovery](docs/real-trace-discovery.md)
264
+ - [Testing and Quality](docs/testing.md)
265
+ - [Product brief](docs/product-brief.md)
266
+ - [MVP execution plan](docs/exec-plans/journeygraph-mvp.md)
267
+ - [Real-trace discovery execution plan](docs/exec-plans/real-trace-discovery.md)
268
+ - [PyPI Trusted Publishing preparation](docs/exec-plans/pypi-trusted-publishing.md)
269
+ - [Release process](docs/releasing.md)
270
+
271
+ The experimental standards boundary is anchored to the [OTLP
272
+ specification](https://opentelemetry.io/docs/specs/otlp/), pinned [OpenTelemetry protobuf
273
+ v1.10.0](https://github.com/open-telemetry/opentelemetry-proto/tree/v1.10.0), and
274
+ [OpenInference semantic conventions](https://arize-ai.github.io/openinference/spec/semantic_conventions.html).
275
+
276
+ ## Contributing
277
+
278
+ Issues and small, evidence-backed changes are welcome. Significant changes to schema meaning,
279
+ privacy, stable identities, format compatibility, or architecture need an approved ExecPlan.
280
+ Please read [CONTRIBUTING.md](CONTRIBUTING.md), the [Code of Conduct](CODE_OF_CONDUCT.md), and
281
+ the [Security Policy](SECURITY.md) before submitting material.
282
+
283
+ ## License
284
+
285
+ JourneyGraph is available under the [Apache License 2.0](LICENSE).