tracevity 0.5.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 (42) hide show
  1. tracevity-0.5.0/LICENSE-CLI +211 -0
  2. tracevity-0.5.0/MANIFEST.in +22 -0
  3. tracevity-0.5.0/PKG-INFO +214 -0
  4. tracevity-0.5.0/README-PYPI.md +180 -0
  5. tracevity-0.5.0/pyproject.toml +61 -0
  6. tracevity-0.5.0/runtime/compatibility-proof-index.v0.5.json +725 -0
  7. tracevity-0.5.0/runtime/current-contracts.v0.5.json +78 -0
  8. tracevity-0.5.0/runtime/python/requirements.lock +4 -0
  9. tracevity-0.5.0/setup.cfg +4 -0
  10. tracevity-0.5.0/setup.py +55 -0
  11. tracevity-0.5.0/spec/trace-evidence-binding-v0.1.schema.json +158 -0
  12. tracevity-0.5.0/spec/trace-evidence-binding-v0.2.schema.json +433 -0
  13. tracevity-0.5.0/spec/trace-inspection-manifest-v0.1.schema.json +111 -0
  14. tracevity-0.5.0/spec/trace-inspection-manifest-v0.2.schema.json +116 -0
  15. tracevity-0.5.0/spec/trace-reconstruction-report-v0.1.schema.json +335 -0
  16. tracevity-0.5.0/spec/trace-reconstruction-report-v0.2.schema.json +333 -0
  17. tracevity-0.5.0/spec/trace-reconstruction-requirements-v0.1.schema.json +255 -0
  18. tracevity-0.5.0/spec/trace-reconstruction-requirements-v0.2.schema.json +254 -0
  19. tracevity-0.5.0/spec/trace-reconstruction-requirements-v0.3.schema.json +136 -0
  20. tracevity-0.5.0/spec/tracevity-correlated-evidence-envelope-v0.1.schema.json +447 -0
  21. tracevity-0.5.0/spec/tracevity-correlated-evidence-envelope-v0.2.schema.json +153 -0
  22. tracevity-0.5.0/spec/tracevity-current-contracts-v0.1.schema.json +66 -0
  23. tracevity-0.5.0/spec/tracevity-gate-report-v0.1.schema.json +301 -0
  24. tracevity-0.5.0/spec/tracevity-gate-report-v0.2.schema.json +226 -0
  25. tracevity-0.5.0/spec/tracevity-gate-suite-v0.1.schema.json +198 -0
  26. tracevity-0.5.0/spec/tracevity-gate-suite-v0.2.schema.json +37 -0
  27. tracevity-0.5.0/src/tracevity/__init__.py +7 -0
  28. tracevity-0.5.0/src/tracevity/__main__.py +7 -0
  29. tracevity-0.5.0/src/tracevity/capture.py +372 -0
  30. tracevity-0.5.0/src/tracevity/cli.py +80 -0
  31. tracevity-0.5.0/src/tracevity/evidence.py +338 -0
  32. tracevity-0.5.0/src/tracevity/gate.py +1203 -0
  33. tracevity-0.5.0/src/tracevity/inspector.py +3107 -0
  34. tracevity-0.5.0/src/tracevity/report.py +315 -0
  35. tracevity-0.5.0/src/tracevity/resources.py +42 -0
  36. tracevity-0.5.0/src/tracevity/traces.py +160 -0
  37. tracevity-0.5.0/src/tracevity.egg-info/PKG-INFO +214 -0
  38. tracevity-0.5.0/src/tracevity.egg-info/SOURCES.txt +40 -0
  39. tracevity-0.5.0/src/tracevity.egg-info/dependency_links.txt +1 -0
  40. tracevity-0.5.0/src/tracevity.egg-info/entry_points.txt +2 -0
  41. tracevity-0.5.0/src/tracevity.egg-info/requires.txt +2 -0
  42. tracevity-0.5.0/src/tracevity.egg-info/top_level.txt +1 -0
@@ -0,0 +1,211 @@
1
+ Tracevity CLI distribution
2
+ Copyright 2026 Independent Product Lab
3
+
4
+ Scope: This license applies only to files included in the public Tracevity Python
5
+ wheel and source distribution, including bundled public machine-readable runtime
6
+ resources. It does not license the rest of the private Tracevity monorepo,
7
+ unpublished research, internal governance or database material, deployment
8
+ configuration, website content not included in those distributions, or private
9
+ handoff artifacts.
10
+
11
+ Apache License
12
+ Version 2.0, January 2004
13
+ http://www.apache.org/licenses/
14
+
15
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
16
+
17
+ 1. Definitions.
18
+
19
+ "License" shall mean the terms and conditions for use, reproduction,
20
+ and distribution as defined by Sections 1 through 9 of this document.
21
+
22
+ "Licensor" shall mean the copyright owner or entity authorized by
23
+ the copyright owner that is granting the License.
24
+
25
+ "Legal Entity" shall mean the union of the acting entity and all
26
+ other entities that control, are controlled by, or are under common
27
+ control with that entity. For the purposes of this definition,
28
+ "control" means (i) the power, direct or indirect, to cause the
29
+ direction or management of such entity, whether by contract or
30
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
31
+ outstanding shares, or (iii) beneficial ownership of such entity.
32
+
33
+ "You" (or "Your") shall mean an individual or Legal Entity
34
+ exercising permissions granted by this License.
35
+
36
+ "Source" form shall mean the preferred form for making modifications,
37
+ including but not limited to software source code, documentation
38
+ source, and configuration files.
39
+
40
+ "Object" form shall mean any form resulting from mechanical
41
+ transformation or translation of a Source form, including but
42
+ not limited to compiled object code, generated documentation,
43
+ and conversions to other media types.
44
+
45
+ "Work" shall mean the work of authorship, whether in Source or
46
+ Object form, made available under the License, as indicated by a
47
+ copyright notice that is included in or attached to the work
48
+ (an example is provided in the Appendix below).
49
+
50
+ "Derivative Works" shall mean any work, whether in Source or Object
51
+ form, that is based on (or derived from) the Work and for which the
52
+ editorial revisions, annotations, elaborations, or other modifications
53
+ represent, as a whole, an original work of authorship. For the purposes
54
+ of this License, Derivative Works shall not include works that remain
55
+ separable from, or merely link (or bind by name) to the interfaces of,
56
+ the Work and Derivative Works thereof.
57
+
58
+ "Contribution" shall mean any work of authorship, including
59
+ the original version of the Work and any modifications or additions
60
+ to that Work or Derivative Works thereof, that is intentionally
61
+ submitted to Licensor for inclusion in the Work by the copyright owner
62
+ or by an individual or Legal Entity authorized to submit on behalf of
63
+ the copyright owner. For the purposes of this definition, "submitted"
64
+ means any form of electronic, verbal, or written communication sent
65
+ to the Licensor or its representatives, including but not limited to
66
+ communication on electronic mailing lists, source code control systems,
67
+ and issue tracking systems that are managed by, or on behalf of, the
68
+ Licensor for the purpose of discussing and improving the Work, but
69
+ excluding communication that is conspicuously marked or otherwise
70
+ designated in writing by the copyright owner as "Not a Contribution."
71
+
72
+ "Contributor" shall mean Licensor and any individual or Legal Entity
73
+ on behalf of whom a Contribution has been received by Licensor and
74
+ subsequently incorporated within the Work.
75
+
76
+ 2. Grant of Copyright License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ copyright license to reproduce, prepare Derivative Works of,
80
+ publicly display, publicly perform, sublicense, and distribute the
81
+ Work and such Derivative Works in Source or Object form.
82
+
83
+ 3. Grant of Patent License. Subject to the terms and conditions of
84
+ this License, each Contributor hereby grants to You a perpetual,
85
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
86
+ (except as stated in this section) patent license to make, have made,
87
+ use, offer to sell, sell, import, and otherwise transfer the Work,
88
+ where such license applies only to those patent claims licensable
89
+ by such Contributor that are necessarily infringed by their
90
+ Contribution(s) alone or by combination of their Contribution(s)
91
+ with the Work to which such Contribution(s) was submitted. If You
92
+ institute patent litigation against any entity (including a
93
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
94
+ or a Contribution incorporated within the Work constitutes direct
95
+ or contributory patent infringement, then any patent licenses
96
+ granted to You under this License for that Work shall terminate
97
+ as of the date such litigation is filed.
98
+
99
+ 4. Redistribution. You may reproduce and distribute copies of the
100
+ Work or Derivative Works thereof in any medium, with or without
101
+ modifications, and in Source or Object form, provided that You
102
+ meet the following conditions:
103
+
104
+ (a) You must give any other recipients of the Work or
105
+ Derivative Works a copy of this License; and
106
+
107
+ (b) You must cause any modified files to carry prominent notices
108
+ stating that You changed the files; and
109
+
110
+ (c) You must retain, in the Source form of any Derivative Works
111
+ that You distribute, all copyright, patent, trademark, and
112
+ attribution notices from the Source form of the Work,
113
+ excluding those notices that do not pertain to any part of
114
+ the Derivative Works; and
115
+
116
+ (d) If the Work includes a "NOTICE" text file as part of its
117
+ distribution, then any Derivative Works that You distribute must
118
+ include a readable copy of the attribution notices contained
119
+ within such NOTICE file, excluding those notices that do not
120
+ pertain to any part of the Derivative Works, in at least one
121
+ of the following places: within a NOTICE text file distributed
122
+ as part of the Derivative Works; within the Source form or
123
+ documentation, if provided along with the Derivative Works; or,
124
+ within a display generated by the Derivative Works, if and
125
+ wherever such third-party notices normally appear. The contents
126
+ of the NOTICE file are for informational purposes only and
127
+ do not modify the License. You may add Your own attribution
128
+ notices within Derivative Works that You distribute, alongside
129
+ or as an addendum to the NOTICE text from the Work, provided
130
+ that such additional attribution notices cannot be construed
131
+ as modifying the License.
132
+
133
+ You may add Your own copyright statement to Your modifications and
134
+ may provide additional or different license terms and conditions
135
+ for use, reproduction, or distribution of Your modifications, or
136
+ for any such Derivative Works as a whole, provided Your use,
137
+ reproduction, and distribution of the Work otherwise complies with
138
+ the conditions stated in this License.
139
+
140
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
141
+ any Contribution intentionally submitted for inclusion in the Work
142
+ by You to the Licensor shall be under the terms and conditions of
143
+ this License, without any additional terms or conditions.
144
+ Notwithstanding the above, nothing herein shall supersede or modify
145
+ the terms of any separate license agreement you may have executed
146
+ with Licensor regarding such Contributions.
147
+
148
+ 6. Trademarks. This License does not grant permission to use the trade
149
+ names, trademarks, service marks, or product names of the Licensor,
150
+ except as required for reasonable and customary use in describing the
151
+ origin of the Work and reproducing the content of the NOTICE file.
152
+
153
+ 7. Disclaimer of Warranty. Unless required by applicable law or
154
+ agreed to in writing, Licensor provides the Work (and each
155
+ Contributor provides its Contributions) on an "AS IS" BASIS,
156
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
157
+ implied, including, without limitation, any warranties or conditions
158
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
159
+ PARTICULAR PURPOSE. You are solely responsible for determining the
160
+ appropriateness of using or redistributing the Work and assume any
161
+ risks associated with Your exercise of permissions under this License.
162
+
163
+ 8. Limitation of Liability. In no event and under no legal theory,
164
+ whether in tort (including negligence), contract, or otherwise,
165
+ unless required by applicable law (such as deliberate and grossly
166
+ negligent acts) or agreed to in writing, shall any Contributor be
167
+ liable to You for damages, including any direct, indirect, special,
168
+ incidental, or consequential damages of any character arising as a
169
+ result of this License or out of the use or inability to use the
170
+ Work (including but not limited to damages for loss of goodwill,
171
+ work stoppage, computer failure or malfunction, or any and all
172
+ other commercial damages or losses), even if such Contributor
173
+ has been advised of the possibility of such damages.
174
+
175
+ 9. Accepting Warranty or Additional Liability. While redistributing
176
+ the Work or Derivative Works thereof, You may choose to offer,
177
+ and charge a fee for, acceptance of support, warranty, indemnity,
178
+ or other liability obligations and/or rights consistent with this
179
+ License. However, in accepting such obligations, You may act only
180
+ on Your own behalf and on Your sole responsibility, not on behalf
181
+ of any other Contributor, and only if You agree to indemnify,
182
+ defend, and hold each Contributor harmless for any liability
183
+ incurred by, or claims asserted against, such Contributor by reason
184
+ of your accepting any such warranty or additional liability.
185
+
186
+ END OF TERMS AND CONDITIONS
187
+
188
+ APPENDIX: How to apply the Apache License to your work.
189
+
190
+ To apply the Apache License to your work, attach the following
191
+ boilerplate notice, with the fields enclosed by brackets "[]"
192
+ replaced with your own identifying information. (Don't include
193
+ the brackets!) The text should be enclosed in the appropriate
194
+ comment syntax for the file format. We also recommend that a
195
+ file or class name and description of purpose be included on the
196
+ same "printed page" as the copyright notice for easier
197
+ identification within third-party archives.
198
+
199
+ Copyright [yyyy] [name of copyright owner]
200
+
201
+ Licensed under the Apache License, Version 2.0 (the "License");
202
+ you may not use this file except in compliance with the License.
203
+ You may obtain a copy of the License at
204
+
205
+ http://www.apache.org/licenses/LICENSE-2.0
206
+
207
+ Unless required by applicable law or agreed to in writing, software
208
+ distributed under the License is distributed on an "AS IS" BASIS,
209
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210
+ See the License for the specific language governing permissions and
211
+ limitations under the License.
@@ -0,0 +1,22 @@
1
+ include LICENSE-CLI
2
+ include README-PYPI.md
3
+ include runtime/compatibility-proof-index.v0.5.json
4
+ include runtime/current-contracts.v0.5.json
5
+ include runtime/python/requirements.lock
6
+ include spec/trace-evidence-binding-v0.1.schema.json
7
+ include spec/trace-evidence-binding-v0.2.schema.json
8
+ include spec/trace-inspection-manifest-v0.1.schema.json
9
+ include spec/trace-inspection-manifest-v0.2.schema.json
10
+ include spec/trace-reconstruction-report-v0.1.schema.json
11
+ include spec/trace-reconstruction-report-v0.2.schema.json
12
+ include spec/trace-reconstruction-requirements-v0.1.schema.json
13
+ include spec/trace-reconstruction-requirements-v0.2.schema.json
14
+ include spec/trace-reconstruction-requirements-v0.3.schema.json
15
+ include spec/tracevity-correlated-evidence-envelope-v0.1.schema.json
16
+ include spec/tracevity-correlated-evidence-envelope-v0.2.schema.json
17
+ include spec/tracevity-current-contracts-v0.1.schema.json
18
+ include spec/tracevity-gate-report-v0.1.schema.json
19
+ include spec/tracevity-gate-report-v0.2.schema.json
20
+ include spec/tracevity-gate-suite-v0.1.schema.json
21
+ include spec/tracevity-gate-suite-v0.2.schema.json
22
+ exclude README.md
@@ -0,0 +1,214 @@
1
+ Metadata-Version: 2.4
2
+ Name: tracevity
3
+ Version: 0.5.0
4
+ Summary: Deterministic local reconstruction inspection and release gating for AI-agent traces.
5
+ Author: Independent Product Lab
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://tracevity.com/
8
+ Project-URL: Documentation, https://tracevity.com/cli/
9
+ Project-URL: Inspector, https://tracevity.com/inspect/
10
+ Project-URL: Gate, https://tracevity.com/gate/
11
+ Project-URL: Methodology, https://tracevity.com/methodology/
12
+ Project-URL: Feedback, https://github.com/independent-product-lab/tracevity-feedback/issues
13
+ Project-URL: Issues, https://github.com/independent-product-lab/tracevity-feedback/issues
14
+ Project-URL: Security, https://github.com/independent-product-lab/tracevity-feedback/security/advisories/new
15
+ Keywords: ai agents,audit trail,opentelemetry,reconstruction,traceability
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Environment :: Console
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: Intended Audience :: Information Technology
20
+ Classifier: Operating System :: OS Independent
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Software Development :: Quality Assurance
27
+ Classifier: Topic :: System :: Logging
28
+ Requires-Python: <3.15,>=3.11
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE-CLI
31
+ Requires-Dist: opentelemetry-proto==1.44.0
32
+ Requires-Dist: protobuf==6.33.6
33
+ Dynamic: license-file
34
+
35
+ # Tracevity CLI
36
+
37
+ **A trace tells you what was recorded. Tracevity tells you what you can reconstruct from it.**
38
+
39
+ This is the release README for the authorized `0.5.0` Public Beta distribution. Its presence in the
40
+ source tree does not establish that PyPI or the canonical documentation domain currently serves the
41
+ release; the install and documentation links below become observed release facts only after exact
42
+ package and provider readbacks.
43
+
44
+ Tracevity is a deterministic, local tool for evaluating the evidentiary sufficiency of AI-agent
45
+ activity traces. **Inspect** evaluates one selected execution against named reconstruction
46
+ requirements. **Gate** compares an accepted baseline with a release or migration candidate and
47
+ reports requirement-level reconstruction regressions.
48
+
49
+ Tracevity is not a telemetry collector, hosted trace viewer, generic semantic-convention checker,
50
+ or certification service. Your trace and correlated evidence remain on the machine or CI runner
51
+ where the command executes.
52
+
53
+ ## Install
54
+
55
+ Use an isolated tool environment when possible:
56
+
57
+ ```bash
58
+ pipx install tracevity==0.5.0
59
+ ```
60
+
61
+ or:
62
+
63
+ ```bash
64
+ uv tool install tracevity==0.5.0
65
+ ```
66
+
67
+ Conventional installation is also supported:
68
+
69
+ ```bash
70
+ python -m pip install tracevity==0.5.0
71
+ ```
72
+
73
+ Tracevity 0.5.0 supports CPython 3.11, 3.12, 3.13, and 3.14. Its operational dependency closure is
74
+ limited to pinned OTLP protobuf definitions and protobuf itself.
75
+
76
+ `tracevity --version`, the current Inspector engine, and the current Gate engine all identify
77
+ version `0.5.0`. Current reports use additive Reconstruction Report v0.2 and Gate Report v0.2
78
+ contracts. Historical v0.1 reports remain readable; their historical engine identities are not
79
+ rewritten. Exact packaged engine and resource bytes contribute to report build identity, so changes
80
+ remain visible and sealed reports are never treated as interchangeable without an exact
81
+ compatibility check.
82
+
83
+ ## Quickstart
84
+
85
+ Download, verify, and extract the safe synthetic example bundle from
86
+ [tracevity.com/cli](https://tracevity.com/cli/), then run these commands from the extracted bundle
87
+ directory. No production trace is needed.
88
+
89
+ ```bash
90
+ tracevity --version
91
+
92
+ tracevity traces list --manifest inspect/manifest.json
93
+
94
+ tracevity inspect \
95
+ --manifest inspect/manifest.json \
96
+ --requirements inspect/requirements.json \
97
+ --out reconstruction-report.json
98
+
99
+ tracevity gate \
100
+ --suite gate/tracevity-gate.json \
101
+ --out tracevity-gate-report.json
102
+ ```
103
+
104
+ `traces list` returns bounded structural information for explicit target selection. It does not
105
+ print prompts, outputs, tool arguments, tool results, or arbitrary captured attributes.
106
+
107
+ ## Capture and destination evidence
108
+
109
+ Start the bounded loopback receiver before running an OTLP HTTP/protobuf exporter:
110
+
111
+ ```bash
112
+ tracevity capture otlp \
113
+ --listen 127.0.0.1:4318 \
114
+ --out trace.otlp.pb \
115
+ --receipt capture-receipt.json
116
+ ```
117
+
118
+ The receiver accepts only `/v1/traces` on IPv4 loopback, enforces request, byte, span, and idle-time
119
+ bounds, combines valid batches, and never uploads or prints captured values.
120
+
121
+ Tracevity ships one deliberately narrow, read-only destination adapter:
122
+
123
+ ```bash
124
+ tracevity evidence github issue-comment \
125
+ --repo OWNER/REPOSITORY \
126
+ --comment-id COMMENT_ID \
127
+ --out github-evidence.json
128
+ ```
129
+
130
+ It reads exactly one existing issue or pull-request comment from `api.github.com`. Public comments
131
+ can be read without authentication. For private repositories or higher rate limits, set
132
+ `TRACEVITY_GITHUB_TOKEN` in the environment; command-line tokens and custom API origins are not
133
+ accepted. The envelope stores a body SHA-256, not the comment body. Provider API retrieval is
134
+ external-system evidence with unverified record authenticity; HTTPS, ETags, and request IDs are not
135
+ cryptographic proof.
136
+
137
+ Render either report locally as inert HTML and/or Markdown:
138
+
139
+ ```bash
140
+ tracevity report render reconstruction-report.json \
141
+ --html reconstruction-report.html \
142
+ --markdown reconstruction-report.md
143
+ ```
144
+
145
+ ## Supported trace declarations
146
+
147
+ The Inspector accepts OTLP trace protobuf for four exact declared representations:
148
+
149
+ | Declaration | Supported version | Evidence binding |
150
+ | -------------------------------- | ------------------------------------------ | -------------------------------- |
151
+ | OpenTelemetry GenAI | `67dff024110be5bd9f318006e733f4078e0f4c97` | `binding-otel-genai-to-otlp` |
152
+ | OpenInference | `0.1.33` | `binding-openinference-to-otlp` |
153
+ | MLflow native tracing | `3.15.2` | `binding-mlflow-native-to-otlp` |
154
+ | MLflow GenAI-transformed tracing | `3.15.2` | `binding-mlflow-native-to-genai` |
155
+
156
+ OTLP logs and metrics are recognized but unsupported as primary trace inputs. A structurally valid
157
+ OTLP payload does not prove producer identity, complete capture, or semantic sufficiency.
158
+
159
+ ## Gate exits
160
+
161
+ | Exit | Meaning |
162
+ | ---: | -------------------------------------------------------------------------- |
163
+ | `0` | No policy-blocking reconstruction regression |
164
+ | `2` | Blocking reconstruction regression |
165
+ | `3` | Required result became indeterminate, or a sealed baseline is incomparable |
166
+ | `4` | Invalid suite, policy, baseline, manifest, evidence, or input |
167
+ | `5` | Unsupported signal, dialect, version, or representation |
168
+ | `70` | Internal invariant or prohibited-network failure |
169
+
170
+ Gate compares reconstruction consequences for named requirements, not raw span counts or field
171
+ sets. Replayable baseline and candidate inputs run through the same current Inspector. An
172
+ incompatible sealed report yields `INCOMPARABLE_REQUIRES_REBASE`; it is never silently accepted.
173
+
174
+ ## Privacy, network, and semantic limits
175
+
176
+ `inspect`, `gate`, `traces list`, and `report render` make no network requests. `capture otlp` opens
177
+ only the loopback listener the operator requests. The GitHub evidence adapter makes one explicit,
178
+ bounded outbound read to the official GitHub REST API. No command contacts a Tracevity service,
179
+ emits Tracevity analytics, calls a model, uploads a trace, creates an account, performs an update
180
+ check, sends a crash report, or keeps a hidden input cache. Trace contents remain local and are
181
+ never executed.
182
+
183
+ Keep these boundaries explicit:
184
+
185
+ ```text
186
+ tool success != external settlement
187
+ agent identity != initiating principal
188
+ valid OTLP != sufficient reconstruction
189
+ recorded rationale != hidden reasoning
190
+ Gate pass != certification
191
+ ```
192
+
193
+ Tracevity reports what supplied evidence establishes for a named use case. An exactly correlated
194
+ provider record can corroborate destination state without becoming cryptographically authenticated.
195
+ Tracevity does not reveal true latent motivation, prove omitted evidence never existed, certify an
196
+ arbitrary producer, or turn a tool-reported result into independently verified external state.
197
+
198
+ ## Documentation and feedback
199
+
200
+ - [CLI documentation](https://tracevity.com/cli/)
201
+ - [Inspector](https://tracevity.com/inspect/)
202
+ - [Gate](https://tracevity.com/gate/)
203
+ - [Methodology](https://tracevity.com/methodology/)
204
+ - [Bug reports and corrections](https://github.com/independent-product-lab/tracevity-feedback/issues)
205
+ - [Private security report](https://github.com/independent-product-lab/tracevity-feedback/security/advisories/new)
206
+
207
+ Never post production traces, prompts, outputs, credentials, secrets, customer data, or private logs
208
+ to a public issue.
209
+
210
+ ## License
211
+
212
+ Files included in the public Python distribution and its bundled public runtime resources are
213
+ licensed under Apache-2.0. See `LICENSE-CLI` in the distribution. That scoped license does not
214
+ relicense the private Tracevity monorepo or material not included in the wheel/source distribution.
@@ -0,0 +1,180 @@
1
+ # Tracevity CLI
2
+
3
+ **A trace tells you what was recorded. Tracevity tells you what you can reconstruct from it.**
4
+
5
+ This is the release README for the authorized `0.5.0` Public Beta distribution. Its presence in the
6
+ source tree does not establish that PyPI or the canonical documentation domain currently serves the
7
+ release; the install and documentation links below become observed release facts only after exact
8
+ package and provider readbacks.
9
+
10
+ Tracevity is a deterministic, local tool for evaluating the evidentiary sufficiency of AI-agent
11
+ activity traces. **Inspect** evaluates one selected execution against named reconstruction
12
+ requirements. **Gate** compares an accepted baseline with a release or migration candidate and
13
+ reports requirement-level reconstruction regressions.
14
+
15
+ Tracevity is not a telemetry collector, hosted trace viewer, generic semantic-convention checker,
16
+ or certification service. Your trace and correlated evidence remain on the machine or CI runner
17
+ where the command executes.
18
+
19
+ ## Install
20
+
21
+ Use an isolated tool environment when possible:
22
+
23
+ ```bash
24
+ pipx install tracevity==0.5.0
25
+ ```
26
+
27
+ or:
28
+
29
+ ```bash
30
+ uv tool install tracevity==0.5.0
31
+ ```
32
+
33
+ Conventional installation is also supported:
34
+
35
+ ```bash
36
+ python -m pip install tracevity==0.5.0
37
+ ```
38
+
39
+ Tracevity 0.5.0 supports CPython 3.11, 3.12, 3.13, and 3.14. Its operational dependency closure is
40
+ limited to pinned OTLP protobuf definitions and protobuf itself.
41
+
42
+ `tracevity --version`, the current Inspector engine, and the current Gate engine all identify
43
+ version `0.5.0`. Current reports use additive Reconstruction Report v0.2 and Gate Report v0.2
44
+ contracts. Historical v0.1 reports remain readable; their historical engine identities are not
45
+ rewritten. Exact packaged engine and resource bytes contribute to report build identity, so changes
46
+ remain visible and sealed reports are never treated as interchangeable without an exact
47
+ compatibility check.
48
+
49
+ ## Quickstart
50
+
51
+ Download, verify, and extract the safe synthetic example bundle from
52
+ [tracevity.com/cli](https://tracevity.com/cli/), then run these commands from the extracted bundle
53
+ directory. No production trace is needed.
54
+
55
+ ```bash
56
+ tracevity --version
57
+
58
+ tracevity traces list --manifest inspect/manifest.json
59
+
60
+ tracevity inspect \
61
+ --manifest inspect/manifest.json \
62
+ --requirements inspect/requirements.json \
63
+ --out reconstruction-report.json
64
+
65
+ tracevity gate \
66
+ --suite gate/tracevity-gate.json \
67
+ --out tracevity-gate-report.json
68
+ ```
69
+
70
+ `traces list` returns bounded structural information for explicit target selection. It does not
71
+ print prompts, outputs, tool arguments, tool results, or arbitrary captured attributes.
72
+
73
+ ## Capture and destination evidence
74
+
75
+ Start the bounded loopback receiver before running an OTLP HTTP/protobuf exporter:
76
+
77
+ ```bash
78
+ tracevity capture otlp \
79
+ --listen 127.0.0.1:4318 \
80
+ --out trace.otlp.pb \
81
+ --receipt capture-receipt.json
82
+ ```
83
+
84
+ The receiver accepts only `/v1/traces` on IPv4 loopback, enforces request, byte, span, and idle-time
85
+ bounds, combines valid batches, and never uploads or prints captured values.
86
+
87
+ Tracevity ships one deliberately narrow, read-only destination adapter:
88
+
89
+ ```bash
90
+ tracevity evidence github issue-comment \
91
+ --repo OWNER/REPOSITORY \
92
+ --comment-id COMMENT_ID \
93
+ --out github-evidence.json
94
+ ```
95
+
96
+ It reads exactly one existing issue or pull-request comment from `api.github.com`. Public comments
97
+ can be read without authentication. For private repositories or higher rate limits, set
98
+ `TRACEVITY_GITHUB_TOKEN` in the environment; command-line tokens and custom API origins are not
99
+ accepted. The envelope stores a body SHA-256, not the comment body. Provider API retrieval is
100
+ external-system evidence with unverified record authenticity; HTTPS, ETags, and request IDs are not
101
+ cryptographic proof.
102
+
103
+ Render either report locally as inert HTML and/or Markdown:
104
+
105
+ ```bash
106
+ tracevity report render reconstruction-report.json \
107
+ --html reconstruction-report.html \
108
+ --markdown reconstruction-report.md
109
+ ```
110
+
111
+ ## Supported trace declarations
112
+
113
+ The Inspector accepts OTLP trace protobuf for four exact declared representations:
114
+
115
+ | Declaration | Supported version | Evidence binding |
116
+ | -------------------------------- | ------------------------------------------ | -------------------------------- |
117
+ | OpenTelemetry GenAI | `67dff024110be5bd9f318006e733f4078e0f4c97` | `binding-otel-genai-to-otlp` |
118
+ | OpenInference | `0.1.33` | `binding-openinference-to-otlp` |
119
+ | MLflow native tracing | `3.15.2` | `binding-mlflow-native-to-otlp` |
120
+ | MLflow GenAI-transformed tracing | `3.15.2` | `binding-mlflow-native-to-genai` |
121
+
122
+ OTLP logs and metrics are recognized but unsupported as primary trace inputs. A structurally valid
123
+ OTLP payload does not prove producer identity, complete capture, or semantic sufficiency.
124
+
125
+ ## Gate exits
126
+
127
+ | Exit | Meaning |
128
+ | ---: | -------------------------------------------------------------------------- |
129
+ | `0` | No policy-blocking reconstruction regression |
130
+ | `2` | Blocking reconstruction regression |
131
+ | `3` | Required result became indeterminate, or a sealed baseline is incomparable |
132
+ | `4` | Invalid suite, policy, baseline, manifest, evidence, or input |
133
+ | `5` | Unsupported signal, dialect, version, or representation |
134
+ | `70` | Internal invariant or prohibited-network failure |
135
+
136
+ Gate compares reconstruction consequences for named requirements, not raw span counts or field
137
+ sets. Replayable baseline and candidate inputs run through the same current Inspector. An
138
+ incompatible sealed report yields `INCOMPARABLE_REQUIRES_REBASE`; it is never silently accepted.
139
+
140
+ ## Privacy, network, and semantic limits
141
+
142
+ `inspect`, `gate`, `traces list`, and `report render` make no network requests. `capture otlp` opens
143
+ only the loopback listener the operator requests. The GitHub evidence adapter makes one explicit,
144
+ bounded outbound read to the official GitHub REST API. No command contacts a Tracevity service,
145
+ emits Tracevity analytics, calls a model, uploads a trace, creates an account, performs an update
146
+ check, sends a crash report, or keeps a hidden input cache. Trace contents remain local and are
147
+ never executed.
148
+
149
+ Keep these boundaries explicit:
150
+
151
+ ```text
152
+ tool success != external settlement
153
+ agent identity != initiating principal
154
+ valid OTLP != sufficient reconstruction
155
+ recorded rationale != hidden reasoning
156
+ Gate pass != certification
157
+ ```
158
+
159
+ Tracevity reports what supplied evidence establishes for a named use case. An exactly correlated
160
+ provider record can corroborate destination state without becoming cryptographically authenticated.
161
+ Tracevity does not reveal true latent motivation, prove omitted evidence never existed, certify an
162
+ arbitrary producer, or turn a tool-reported result into independently verified external state.
163
+
164
+ ## Documentation and feedback
165
+
166
+ - [CLI documentation](https://tracevity.com/cli/)
167
+ - [Inspector](https://tracevity.com/inspect/)
168
+ - [Gate](https://tracevity.com/gate/)
169
+ - [Methodology](https://tracevity.com/methodology/)
170
+ - [Bug reports and corrections](https://github.com/independent-product-lab/tracevity-feedback/issues)
171
+ - [Private security report](https://github.com/independent-product-lab/tracevity-feedback/security/advisories/new)
172
+
173
+ Never post production traces, prompts, outputs, credentials, secrets, customer data, or private logs
174
+ to a public issue.
175
+
176
+ ## License
177
+
178
+ Files included in the public Python distribution and its bundled public runtime resources are
179
+ licensed under Apache-2.0. See `LICENSE-CLI` in the distribution. That scoped license does not
180
+ relicense the private Tracevity monorepo or material not included in the wheel/source distribution.