tba-tests-interop-jose 0.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.
@@ -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,10 @@
1
+ Tigrbl Auth (TBA)
2
+
3
+ Project: https://github.com/tigrbl/tigrbl_auth
4
+ Attribution: Jacob Stewart and the Tigrbl Auth contributors.
5
+
6
+ Distributed under the Apache License, Version 2.0.
7
+ See the accompanying LICENSE file for the license terms.
8
+
9
+ Distribution: tba-tests-interop-jose
10
+ Source: https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose
@@ -0,0 +1,370 @@
1
+ Metadata-Version: 2.4
2
+ Name: tba-tests-interop-jose
3
+ Version: 0.1.0
4
+ Summary: Bidirectional compact JWE interoperability tests for TbA and Swarmauri
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Keywords: tigrbl,pytest,jwe,x448,interoperability
9
+ Author: Jacob Stewart
10
+ Author-email: jacob@swarmauri.com
11
+ Requires-Python: >=3.10,<3.16
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: 3.15
19
+ Requires-Dist: cryptography (>=45.0.0)
20
+ Requires-Dist: pytest (>=8.0)
21
+ Requires-Dist: pytest-asyncio (>=0.24.0)
22
+ Project-URL: PyPI, https://pypi.org/project/tba-tests-interop-jose/
23
+ Project-URL: Source, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose
24
+ Description-Content-Type: text/markdown
25
+
26
+ # tba-tests-interop-jose
27
+
28
+ <!-- readme-standards:begin branding -->
29
+ <p align="center"><a href="https://github.com/tigrbl/tigrbl_auth"><img src="https://raw.githubusercontent.com/tigrbl/tigrbl_auth/master/docs/assets/tba-brand.png" alt="TBA · Tigrbl Auth" width="300"></a></p>
30
+ <p align="center"><strong>tba-tests-interop-jose</strong></p>
31
+ <p align="center">Bidirectional compact JWE interoperability tests for TbA and Swarmauri</p>
32
+ <p align="center">
33
+ <a href="https://pypi.org/project/tba-tests-interop-jose/"><img alt="pypi: tba-tests-interop-jose unpublished" src="https://img.shields.io/static/v1?label=pypi&amp;message=tba-tests-interop-jose%20unpublished&amp;labelColor=1E293B&amp;color=92400E"></a>
34
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml"><img alt="Source version: 0.1.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.1.0&amp;labelColor=1E293B&amp;color=4338CA"></a>
35
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.16" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.16&amp;labelColor=1E293B&amp;color=0F766E"></a>
36
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml"><img alt="Layer: 120-tests" src="https://img.shields.io/static/v1?label=Layer&amp;message=120-tests&amp;labelColor=1E293B&amp;color=6D28D9"></a>
37
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=1E293B&amp;color=166534"></a>
38
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=1E293B&amp;color=86198F"></a>
39
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
40
+ </p>
41
+ <p align="center">
42
+ <a href="https://pypi.org/project/tba-tests-interop-jose/"><img alt="pypi downloads: tba-tests-interop-jose: unpublished" src="https://img.shields.io/static/v1?label=pypi%20downloads&amp;message=tba-tests-interop-jose%3A%20unpublished&amp;labelColor=1E293B&amp;color=92400E"></a>
43
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md"><img alt="README hits: tba-tests-interop-jose" src="https://hits.sh/github.com/tigrbl/tigrbl_auth/pkgs/120-tests/tba-tests-interop-jose/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;color=0E7490"></a>
44
+ </p>
45
+ <p align="center">
46
+ <a href="https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&amp;message=CI%20gate&amp;labelColor=1E293B&amp;color=1D4ED8"></a>
47
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/test_examples.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=1E293B&amp;color=0F766E"></a>
48
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=1E293B&amp;color=92400E"></a>
49
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&amp;message=repository%20policy&amp;labelColor=1E293B&amp;color=4338CA"></a>
50
+ <a href="https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&amp;message=source%20and%20CI&amp;labelColor=1E293B&amp;color=6D28D9"></a>
51
+ </p>
52
+ <p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
53
+ <!-- readme-standards:end branding -->
54
+
55
+ ---
56
+
57
+ ## Overview
58
+
59
+ ### Summary
60
+
61
+ Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
62
+
63
+ - Package: `tba-tests-interop-jose`
64
+ - Layer: `120-tests`
65
+ - Responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
66
+ - Public surface: [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py).
67
+ - Distribution: test-only Python wheel with a pytest plugin.
68
+
69
+ ### Why This Package
70
+
71
+ `tba-tests-interop-jose` isolates this responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri. Its [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) exposes the checkout commands documented in Quick Start, allowing consumers to select this package without treating adjacent packages as part of its public contract.
72
+
73
+ ### When to Use
74
+
75
+ Choose `tba-tests-interop-jose` for this responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri. Its `120-tests` placement keeps test fixtures and executable verification separate from production identity services or deployable policy defaults.
76
+
77
+ ### Features
78
+
79
+ - Public source surface: the checkout commands documented in Quick Start.
80
+ - Declared responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
81
+ - Versioned package metadata and maintained checkout examples.
82
+
83
+ ### Non-Goals
84
+
85
+ `tba-tests-interop-jose` does not take ownership of production identity services or deployable policy defaults.
86
+
87
+ Its exports and dependency declarations describe its integration surface; they do not establish deployment readiness, protocol certification, or an implicit production configuration.
88
+
89
+ ---
90
+
91
+ ## Getting Started
92
+
93
+ ### Prerequisites
94
+
95
+ Python `>=3.10,<3.16` is required. The [manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml) declares runtime dependencies including `cryptography`, `pytest`, `pytest-asyncio`. Read the example’s inputs and service requirements before execution.
96
+
97
+ ### Installation
98
+
99
+ Install the selected PyPI release of `tba-tests-interop-jose`:
100
+
101
+ ```bash
102
+ uv pip install tba-tests-interop-jose
103
+ ```
104
+
105
+ To work on the current checkout before a prepared release is published:
106
+
107
+ ```bash
108
+ uv pip install ./pkgs/120-tests/tba-tests-interop-jose
109
+ ```
110
+
111
+ #### uv
112
+
113
+ <!-- readme-standards:begin installation.uv -->
114
+ `tba-tests-interop-jose` is not declared published. From the source checkout:
115
+
116
+ ```bash
117
+ uv pip install .
118
+ ```
119
+ <!-- readme-standards:end installation.uv -->
120
+
121
+ #### pip
122
+
123
+ <!-- readme-standards:begin installation.pip -->
124
+ `tba-tests-interop-jose` is not declared published. From the source checkout:
125
+
126
+ ```bash
127
+ python -m pip install .
128
+ ```
129
+ <!-- readme-standards:end installation.pip -->
130
+
131
+ #### Poetry
132
+
133
+ <!-- readme-standards:begin installation.poetry -->
134
+ `tba-tests-interop-jose` is not declared published. From a separate Poetry project, replace the path with your checkout:
135
+
136
+ ```bash
137
+ poetry add /path/to/tba-tests-interop-jose
138
+ ```
139
+ <!-- readme-standards:end installation.poetry -->
140
+
141
+ ### Quick Start
142
+
143
+ Run both source-checkout directions from the TbA checkout with `SWARMAURI_SDK_ROOT` set to the Swarmauri checkout.
144
+
145
+ #### Example
146
+
147
+ <!-- readme-standards:begin example.quick-start -->
148
+ Source: [docs/readme/quick_start.sh](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/quick_start.sh).
149
+
150
+ ```bash
151
+ uv run --extra test pytest --tba-suite tba-tests-interop-jose --jose-interop-mode source
152
+ ```
153
+ <!-- readme-standards:end example.quick-start -->
154
+
155
+ #### Expected Result
156
+
157
+ The example demonstrates the documented `tba-tests-interop-jose` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
158
+
159
+ ---
160
+
161
+ ## Usage
162
+
163
+ ### Common Workflows
164
+
165
+ <!-- readme-standards:begin example.usage -->
166
+ Source: [docs/readme/usage.sh](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/usage.sh).
167
+
168
+ ```bash
169
+ python -m pytest --pyargs tba_tests_interop_jose.tests --jose-interop-mode installed
170
+ ```
171
+ <!-- readme-standards:end example.usage -->
172
+
173
+ For release verification, install this test wheel and pin the peer wheels in
174
+ a clean environment. The peer entry points are `swarmauri-crypto-jwe`,
175
+ `tba-concrete-jose`, `tba-capability-protected-envelope`,
176
+ `tba-protocol-security-jwe`, and `tba-provider-jose-cryptography`.
177
+ Run from outside both source checkouts. Installed mode verifies that both
178
+ peers resolve to their distribution records.
179
+
180
+ ### Configuration
181
+
182
+ The [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) references configuration keys `SWARMAURI_SDK_ROOT`. Consult the constructor or function signature before supplying them; a referenced key is not necessarily a global environment variable.
183
+
184
+ ### Error Handling
185
+
186
+ The inspected `tba-tests-interop-jose` source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py).
187
+
188
+ ### Best Practices
189
+
190
+ Use the explicit `tba-tests-interop-jose` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing the checkout commands documented in Quick Start; an import or successful installation alone does not establish its runtime guarantees.
191
+
192
+ ---
193
+
194
+ ## Package Boundary
195
+
196
+ ### What It Owns
197
+
198
+ `tba-tests-interop-jose` belongs to `120-tests` and owns test fixtures and executable verification: Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
199
+
200
+ Its implementation surface is the [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py).
201
+
202
+ Keep production identity services or deployable policy defaults in their owning packages. The [package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml) records layer placement and local dependency edges.
203
+
204
+ ### Public API and Import Surfaces
205
+
206
+ Import namespace: `tba_tests_interop_jose`.
207
+
208
+ Source-declared exports or types: the checkout commands documented in Quick Start.
209
+
210
+ Inspect [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
211
+
212
+ ### Entry Points
213
+
214
+ <!-- readme-standards:begin entry-points -->
215
+ - `pytest11` → `tba_tests_interop_jose.pytest_plugin` → `tba_tests_interop_jose.pytest_plugin`
216
+ <!-- readme-standards:end entry-points -->
217
+
218
+ ### Injected Dependencies
219
+
220
+ The [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for `tba-tests-interop-jose` does not declare an explicit service-constructor or keyword-only factory hook in the inspected source. Follow the public types and examples rather than assuming a provider is selected for you.
221
+
222
+ Manifest dependencies are installation requirements; they do not by themselves establish a runtime dependency-injection contract.
223
+
224
+ ### Protocol Consumers
225
+
226
+ No direct package-manifest dependency on `tba-tests-interop-jose` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
227
+
228
+ ### Extensions
229
+
230
+ For `tba-tests-interop-jose`, use the source-declared public interfaces (the checkout commands documented in Quick Start) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
231
+
232
+ ---
233
+
234
+ ## Operations and Readiness
235
+
236
+ ### Operational Requirements
237
+
238
+ `tba-tests-interop-jose` exposes test fixtures and executable verification. Inspect the [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for the exported types and composition surface.
239
+
240
+ A successful import or build is a smoke check, not a production-readiness assertion. Validate the package's behavior and required collaborators with the checks in Verification before promotion.
241
+
242
+ ### Health and Observability
243
+
244
+ This README does not establish a standalone health endpoint for `tba-tests-interop-jose`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
245
+
246
+ ### Security and Resource Limits
247
+
248
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py). The `tba-tests-interop-jose` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
249
+
250
+ ### Compatibility
251
+
252
+ This source version of `tba-tests-interop-jose` declares Python `>=3.10,<3.16`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
253
+
254
+ ---
255
+
256
+ ## Verification
257
+
258
+ ### Tests
259
+
260
+ Run the README and package-standard checks from the repository root:
261
+
262
+ ```bash
263
+ uv run --no-project python scripts/verify_readme_standards.py
264
+ uv run --no-project python scripts/verify_package_standards.py
265
+ ```
266
+
267
+ These checks validate documentation structure, metadata, and branding for `tba-tests-interop-jose`. Behavioral and integration assertions require the package's own tests and their recorded evidence.
268
+
269
+ ### Certification Status
270
+
271
+ No external certification is asserted for `tba-tests-interop-jose` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
272
+
273
+ ### Evidence
274
+
275
+ The [README standards CI](https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
276
+
277
+ ---
278
+
279
+ ## FAQ
280
+
281
+ ### Why
282
+
283
+ **Why select this package?** `tba-tests-interop-jose` provides bidirectional compact JWE interoperability tests for TbA and Swarmauri; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
284
+
285
+ ### How
286
+
287
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `tba-tests-interop-jose`, and consult [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for the exact types and signatures involved.
288
+
289
+ ### When
290
+
291
+ **When should I validate an upgrade?** Recheck `tba-tests-interop-jose` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
292
+
293
+ ---
294
+
295
+ ## Documentation and Related Packages
296
+
297
+ ### More Documentation
298
+
299
+ The [repository contribution guide](https://github.com/tigrbl/tigrbl_auth/blob/master/CONTRIBUTING.md), [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py), and [manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml) provide the supporting context for `tba-tests-interop-jose`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
300
+
301
+ ### Related Packages
302
+
303
+ `tba-tests-interop-jose` declares no local runtime dependency and has no direct consumer in the active manifest graph. Browse the [120-tests layer](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests) for adjacent package responsibilities; adjacency does not imply a dependency.
304
+
305
+ ### Project Links
306
+
307
+ <!-- readme-standards:begin project-links -->
308
+ - [PyPI](https://pypi.org/project/tba-tests-interop-jose/)
309
+ - [Source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose)
310
+ - [pypi: tba-tests-interop-jose](https://pypi.org/project/tba-tests-interop-jose/)
311
+ <!-- readme-standards:end project-links -->
312
+
313
+ - [Package source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose)
314
+ - [Package manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml)
315
+ - [LICENSE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/LICENSE) and [NOTICE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/NOTICE)
316
+ - [Report an issue](https://github.com/tigrbl/tigrbl_auth/issues)
317
+ - [Package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml)
318
+ - [Canonical SSOT registry](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json)
319
+ - [PyPI project](https://pypi.org/project/tba-tests-interop-jose/)
320
+
321
+ ---
322
+
323
+ ## Contributing
324
+
325
+ ### How to Contribute
326
+
327
+ Follow the [contribution guide](https://github.com/tigrbl/tigrbl_auth/blob/master/CONTRIBUTING.md) and include a focused example or regression for changes to `tba-tests-interop-jose`. Keep package behavior, its documented boundary, and its tests aligned.
328
+
329
+ ### Development Setup
330
+
331
+ Work from the `pkgs/120-tests/tba-tests-interop-jose` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest docs/readme/test_examples.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
332
+
333
+ ### Notes for Maintainers
334
+
335
+ Edit authored prose directly in this `tba-tests-interop-jose` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
336
+
337
+ ---
338
+
339
+ ## Governance
340
+
341
+ ### Ownership and Decision Making
342
+
343
+ Changes to `tba-tests-interop-jose` follow the maintainer review process of [tigrbl/tigrbl_auth](https://github.com/tigrbl/tigrbl_auth) and its contribution guide. Author attribution remains in the [manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml); this README does not assign new publishing or administrative authority.
344
+
345
+ ### Standards and Policies
346
+
347
+ `tba-tests-interop-jose` follows the [canonical SSOT registry](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json) and [package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml). Keep its `120-tests` ownership, public imports, declared dependencies, examples, and release metadata aligned.
348
+
349
+ Changes must pass the [README standards gate](https://github.com/tigrbl/tigrbl_auth/blob/master/.github/workflows/readme-standards.yml), package checks, and the evidence requirements relevant to the changed behavior. Update SSOT through the repository's CLI workflow when changing governed claims or boundaries.
350
+
351
+ ### Lifecycle and Migration
352
+
353
+ The `tba-tests-interop-jose` source version is `0.1.0`. This change standardizes documentation and adds a development-only gate; it does not publish a new runtime version or declare a previously unpublished package released. Preserve explicit deprecation and replacement instructions where present.
354
+
355
+ ---
356
+
357
+ ## License and Attribution
358
+
359
+ ### License
360
+
361
+ <!-- readme-standards:begin license -->
362
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/LICENSE).
363
+ <!-- readme-standards:end license -->
364
+
365
+ ### Notices
366
+
367
+ <!-- readme-standards:begin notices -->
368
+ See [NOTICE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/NOTICE) for attribution.
369
+ <!-- readme-standards:end notices -->
370
+
@@ -0,0 +1,344 @@
1
+ # tba-tests-interop-jose
2
+
3
+ <!-- readme-standards:begin branding -->
4
+ <p align="center"><a href="https://github.com/tigrbl/tigrbl_auth"><img src="https://raw.githubusercontent.com/tigrbl/tigrbl_auth/master/docs/assets/tba-brand.png" alt="TBA · Tigrbl Auth" width="300"></a></p>
5
+ <p align="center"><strong>tba-tests-interop-jose</strong></p>
6
+ <p align="center">Bidirectional compact JWE interoperability tests for TbA and Swarmauri</p>
7
+ <p align="center">
8
+ <a href="https://pypi.org/project/tba-tests-interop-jose/"><img alt="pypi: tba-tests-interop-jose unpublished" src="https://img.shields.io/static/v1?label=pypi&amp;message=tba-tests-interop-jose%20unpublished&amp;labelColor=1E293B&amp;color=92400E"></a>
9
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml"><img alt="Source version: 0.1.0" src="https://img.shields.io/static/v1?label=Source%20version&amp;message=0.1.0&amp;labelColor=1E293B&amp;color=4338CA"></a>
10
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.16" src="https://img.shields.io/static/v1?label=Python&amp;message=%3E%3D3.10%2C%3C3.16&amp;labelColor=1E293B&amp;color=0F766E"></a>
11
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml"><img alt="Layer: 120-tests" src="https://img.shields.io/static/v1?label=Layer&amp;message=120-tests&amp;labelColor=1E293B&amp;color=6D28D9"></a>
12
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&amp;message=active&amp;labelColor=1E293B&amp;color=166534"></a>
13
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&amp;message=Apache-2.0&amp;labelColor=1E293B&amp;color=86198F"></a>
14
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&amp;message=attribution&amp;labelColor=1E293B&amp;color=86198F"></a>
15
+ </p>
16
+ <p align="center">
17
+ <a href="https://pypi.org/project/tba-tests-interop-jose/"><img alt="pypi downloads: tba-tests-interop-jose: unpublished" src="https://img.shields.io/static/v1?label=pypi%20downloads&amp;message=tba-tests-interop-jose%3A%20unpublished&amp;labelColor=1E293B&amp;color=92400E"></a>
18
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md"><img alt="README hits: tba-tests-interop-jose" src="https://hits.sh/github.com/tigrbl/tigrbl_auth/pkgs/120-tests/tba-tests-interop-jose/README.md.svg?label=README%20hits&amp;labelColor=1E293B&amp;color=0E7490"></a>
19
+ </p>
20
+ <p align="center">
21
+ <a href="https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&amp;message=CI%20gate&amp;labelColor=1E293B&amp;color=1D4ED8"></a>
22
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/test_examples.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&amp;message=example%20source&amp;labelColor=1E293B&amp;color=0F766E"></a>
23
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&amp;message=not%20certified&amp;labelColor=1E293B&amp;color=92400E"></a>
24
+ <a href="https://github.com/tigrbl/tigrbl_auth/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&amp;message=repository%20policy&amp;labelColor=1E293B&amp;color=4338CA"></a>
25
+ <a href="https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&amp;message=source%20and%20CI&amp;labelColor=1E293B&amp;color=6D28D9"></a>
26
+ </p>
27
+ <p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
28
+ <!-- readme-standards:end branding -->
29
+
30
+ ---
31
+
32
+ ## Overview
33
+
34
+ ### Summary
35
+
36
+ Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
37
+
38
+ - Package: `tba-tests-interop-jose`
39
+ - Layer: `120-tests`
40
+ - Responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
41
+ - Public surface: [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py).
42
+ - Distribution: test-only Python wheel with a pytest plugin.
43
+
44
+ ### Why This Package
45
+
46
+ `tba-tests-interop-jose` isolates this responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri. Its [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) exposes the checkout commands documented in Quick Start, allowing consumers to select this package without treating adjacent packages as part of its public contract.
47
+
48
+ ### When to Use
49
+
50
+ Choose `tba-tests-interop-jose` for this responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri. Its `120-tests` placement keeps test fixtures and executable verification separate from production identity services or deployable policy defaults.
51
+
52
+ ### Features
53
+
54
+ - Public source surface: the checkout commands documented in Quick Start.
55
+ - Declared responsibility: Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
56
+ - Versioned package metadata and maintained checkout examples.
57
+
58
+ ### Non-Goals
59
+
60
+ `tba-tests-interop-jose` does not take ownership of production identity services or deployable policy defaults.
61
+
62
+ Its exports and dependency declarations describe its integration surface; they do not establish deployment readiness, protocol certification, or an implicit production configuration.
63
+
64
+ ---
65
+
66
+ ## Getting Started
67
+
68
+ ### Prerequisites
69
+
70
+ Python `>=3.10,<3.16` is required. The [manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml) declares runtime dependencies including `cryptography`, `pytest`, `pytest-asyncio`. Read the example’s inputs and service requirements before execution.
71
+
72
+ ### Installation
73
+
74
+ Install the selected PyPI release of `tba-tests-interop-jose`:
75
+
76
+ ```bash
77
+ uv pip install tba-tests-interop-jose
78
+ ```
79
+
80
+ To work on the current checkout before a prepared release is published:
81
+
82
+ ```bash
83
+ uv pip install ./pkgs/120-tests/tba-tests-interop-jose
84
+ ```
85
+
86
+ #### uv
87
+
88
+ <!-- readme-standards:begin installation.uv -->
89
+ `tba-tests-interop-jose` is not declared published. From the source checkout:
90
+
91
+ ```bash
92
+ uv pip install .
93
+ ```
94
+ <!-- readme-standards:end installation.uv -->
95
+
96
+ #### pip
97
+
98
+ <!-- readme-standards:begin installation.pip -->
99
+ `tba-tests-interop-jose` is not declared published. From the source checkout:
100
+
101
+ ```bash
102
+ python -m pip install .
103
+ ```
104
+ <!-- readme-standards:end installation.pip -->
105
+
106
+ #### Poetry
107
+
108
+ <!-- readme-standards:begin installation.poetry -->
109
+ `tba-tests-interop-jose` is not declared published. From a separate Poetry project, replace the path with your checkout:
110
+
111
+ ```bash
112
+ poetry add /path/to/tba-tests-interop-jose
113
+ ```
114
+ <!-- readme-standards:end installation.poetry -->
115
+
116
+ ### Quick Start
117
+
118
+ Run both source-checkout directions from the TbA checkout with `SWARMAURI_SDK_ROOT` set to the Swarmauri checkout.
119
+
120
+ #### Example
121
+
122
+ <!-- readme-standards:begin example.quick-start -->
123
+ Source: [docs/readme/quick_start.sh](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/quick_start.sh).
124
+
125
+ ```bash
126
+ uv run --extra test pytest --tba-suite tba-tests-interop-jose --jose-interop-mode source
127
+ ```
128
+ <!-- readme-standards:end example.quick-start -->
129
+
130
+ #### Expected Result
131
+
132
+ The example demonstrates the documented `tba-tests-interop-jose` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
133
+
134
+ ---
135
+
136
+ ## Usage
137
+
138
+ ### Common Workflows
139
+
140
+ <!-- readme-standards:begin example.usage -->
141
+ Source: [docs/readme/usage.sh](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/usage.sh).
142
+
143
+ ```bash
144
+ python -m pytest --pyargs tba_tests_interop_jose.tests --jose-interop-mode installed
145
+ ```
146
+ <!-- readme-standards:end example.usage -->
147
+
148
+ For release verification, install this test wheel and pin the peer wheels in
149
+ a clean environment. The peer entry points are `swarmauri-crypto-jwe`,
150
+ `tba-concrete-jose`, `tba-capability-protected-envelope`,
151
+ `tba-protocol-security-jwe`, and `tba-provider-jose-cryptography`.
152
+ Run from outside both source checkouts. Installed mode verifies that both
153
+ peers resolve to their distribution records.
154
+
155
+ ### Configuration
156
+
157
+ The [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) references configuration keys `SWARMAURI_SDK_ROOT`. Consult the constructor or function signature before supplying them; a referenced key is not necessarily a global environment variable.
158
+
159
+ ### Error Handling
160
+
161
+ The inspected `tba-tests-interop-jose` source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py).
162
+
163
+ ### Best Practices
164
+
165
+ Use the explicit `tba-tests-interop-jose` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing the checkout commands documented in Quick Start; an import or successful installation alone does not establish its runtime guarantees.
166
+
167
+ ---
168
+
169
+ ## Package Boundary
170
+
171
+ ### What It Owns
172
+
173
+ `tba-tests-interop-jose` belongs to `120-tests` and owns test fixtures and executable verification: Bidirectional compact JWE interoperability tests for TbA and Swarmauri.
174
+
175
+ Its implementation surface is the [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py).
176
+
177
+ Keep production identity services or deployable policy defaults in their owning packages. The [package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml) records layer placement and local dependency edges.
178
+
179
+ ### Public API and Import Surfaces
180
+
181
+ Import namespace: `tba_tests_interop_jose`.
182
+
183
+ Source-declared exports or types: the checkout commands documented in Quick Start.
184
+
185
+ Inspect [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
186
+
187
+ ### Entry Points
188
+
189
+ <!-- readme-standards:begin entry-points -->
190
+ - `pytest11` → `tba_tests_interop_jose.pytest_plugin` → `tba_tests_interop_jose.pytest_plugin`
191
+ <!-- readme-standards:end entry-points -->
192
+
193
+ ### Injected Dependencies
194
+
195
+ The [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for `tba-tests-interop-jose` does not declare an explicit service-constructor or keyword-only factory hook in the inspected source. Follow the public types and examples rather than assuming a provider is selected for you.
196
+
197
+ Manifest dependencies are installation requirements; they do not by themselves establish a runtime dependency-injection contract.
198
+
199
+ ### Protocol Consumers
200
+
201
+ No direct package-manifest dependency on `tba-tests-interop-jose` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
202
+
203
+ ### Extensions
204
+
205
+ For `tba-tests-interop-jose`, use the source-declared public interfaces (the checkout commands documented in Quick Start) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
206
+
207
+ ---
208
+
209
+ ## Operations and Readiness
210
+
211
+ ### Operational Requirements
212
+
213
+ `tba-tests-interop-jose` exposes test fixtures and executable verification. Inspect the [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for the exported types and composition surface.
214
+
215
+ A successful import or build is a smoke check, not a production-readiness assertion. Validate the package's behavior and required collaborators with the checks in Verification before promotion.
216
+
217
+ ### Health and Observability
218
+
219
+ This README does not establish a standalone health endpoint for `tba-tests-interop-jose`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
220
+
221
+ ### Security and Resource Limits
222
+
223
+ Apply the input, credential, and resource constraints implemented in [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py). The `tba-tests-interop-jose` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
224
+
225
+ ### Compatibility
226
+
227
+ This source version of `tba-tests-interop-jose` declares Python `>=3.10,<3.16`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
228
+
229
+ ---
230
+
231
+ ## Verification
232
+
233
+ ### Tests
234
+
235
+ Run the README and package-standard checks from the repository root:
236
+
237
+ ```bash
238
+ uv run --no-project python scripts/verify_readme_standards.py
239
+ uv run --no-project python scripts/verify_package_standards.py
240
+ ```
241
+
242
+ These checks validate documentation structure, metadata, and branding for `tba-tests-interop-jose`. Behavioral and integration assertions require the package's own tests and their recorded evidence.
243
+
244
+ ### Certification Status
245
+
246
+ No external certification is asserted for `tba-tests-interop-jose` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
247
+
248
+ ### Evidence
249
+
250
+ The [README standards CI](https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
251
+
252
+ ---
253
+
254
+ ## FAQ
255
+
256
+ ### Why
257
+
258
+ **Why select this package?** `tba-tests-interop-jose` provides bidirectional compact JWE interoperability tests for TbA and Swarmauri; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
259
+
260
+ ### How
261
+
262
+ **How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `tba-tests-interop-jose`, and consult [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py) for the exact types and signatures involved.
263
+
264
+ ### When
265
+
266
+ **When should I validate an upgrade?** Recheck `tba-tests-interop-jose` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
267
+
268
+ ---
269
+
270
+ ## Documentation and Related Packages
271
+
272
+ ### More Documentation
273
+
274
+ The [repository contribution guide](https://github.com/tigrbl/tigrbl_auth/blob/master/CONTRIBUTING.md), [package source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/src/tba_tests_interop_jose/__init__.py), and [manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml) provide the supporting context for `tba-tests-interop-jose`. The [README policy](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md) defines the common document structure.
275
+
276
+ ### Related Packages
277
+
278
+ `tba-tests-interop-jose` declares no local runtime dependency and has no direct consumer in the active manifest graph. Browse the [120-tests layer](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests) for adjacent package responsibilities; adjacency does not imply a dependency.
279
+
280
+ ### Project Links
281
+
282
+ <!-- readme-standards:begin project-links -->
283
+ - [PyPI](https://pypi.org/project/tba-tests-interop-jose/)
284
+ - [Source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose)
285
+ - [pypi: tba-tests-interop-jose](https://pypi.org/project/tba-tests-interop-jose/)
286
+ <!-- readme-standards:end project-links -->
287
+
288
+ - [Package source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose)
289
+ - [Package manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml)
290
+ - [LICENSE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/LICENSE) and [NOTICE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/NOTICE)
291
+ - [Report an issue](https://github.com/tigrbl/tigrbl_auth/issues)
292
+ - [Package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml)
293
+ - [Canonical SSOT registry](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json)
294
+ - [PyPI project](https://pypi.org/project/tba-tests-interop-jose/)
295
+
296
+ ---
297
+
298
+ ## Contributing
299
+
300
+ ### How to Contribute
301
+
302
+ Follow the [contribution guide](https://github.com/tigrbl/tigrbl_auth/blob/master/CONTRIBUTING.md) and include a focused example or regression for changes to `tba-tests-interop-jose`. Keep package behavior, its documented boundary, and its tests aligned.
303
+
304
+ ### Development Setup
305
+
306
+ Work from the `pkgs/120-tests/tba-tests-interop-jose` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest docs/readme/test_examples.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
307
+
308
+ ### Notes for Maintainers
309
+
310
+ Edit authored prose directly in this `tba-tests-interop-jose` README. Update source examples in `docs/readme/`, then run `readme-standards render --root . --write` from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
311
+
312
+ ---
313
+
314
+ ## Governance
315
+
316
+ ### Ownership and Decision Making
317
+
318
+ Changes to `tba-tests-interop-jose` follow the maintainer review process of [tigrbl/tigrbl_auth](https://github.com/tigrbl/tigrbl_auth) and its contribution guide. Author attribution remains in the [manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/pyproject.toml); this README does not assign new publishing or administrative authority.
319
+
320
+ ### Standards and Policies
321
+
322
+ `tba-tests-interop-jose` follows the [canonical SSOT registry](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json) and [package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml). Keep its `120-tests` ownership, public imports, declared dependencies, examples, and release metadata aligned.
323
+
324
+ Changes must pass the [README standards gate](https://github.com/tigrbl/tigrbl_auth/blob/master/.github/workflows/readme-standards.yml), package checks, and the evidence requirements relevant to the changed behavior. Update SSOT through the repository's CLI workflow when changing governed claims or boundaries.
325
+
326
+ ### Lifecycle and Migration
327
+
328
+ The `tba-tests-interop-jose` source version is `0.1.0`. This change standardizes documentation and adds a development-only gate; it does not publish a new runtime version or declare a previously unpublished package released. Preserve explicit deprecation and replacement instructions where present.
329
+
330
+ ---
331
+
332
+ ## License and Attribution
333
+
334
+ ### License
335
+
336
+ <!-- readme-standards:begin license -->
337
+ Licensed under `Apache-2.0`. See [LICENSE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/LICENSE).
338
+ <!-- readme-standards:end license -->
339
+
340
+ ### Notices
341
+
342
+ <!-- readme-standards:begin notices -->
343
+ See [NOTICE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/NOTICE) for attribution.
344
+ <!-- readme-standards:end notices -->
@@ -0,0 +1,80 @@
1
+ [project]
2
+ name = "tba-tests-interop-jose"
3
+ version = "0.1.0"
4
+ description = "Bidirectional compact JWE interoperability tests for TbA and Swarmauri"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10,<3.16"
7
+ license = "Apache-2.0"
8
+ license-files = ["LICENSE", "NOTICE"]
9
+ keywords = ["tigrbl", "pytest", "jwe", "x448", "interoperability"]
10
+ dependencies = ["cryptography>=45.0.0", "pytest>=8.0", "pytest-asyncio>=0.24.0"]
11
+
12
+ [[project.authors]]
13
+ name = "Jacob Stewart"
14
+ email = "jacob@swarmauri.com"
15
+
16
+ [project.urls]
17
+ Source = "https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/120-tests/tba-tests-interop-jose"
18
+ PyPI = "https://pypi.org/project/tba-tests-interop-jose/"
19
+
20
+ [project.entry-points.pytest11]
21
+ "tba_tests_interop_jose.pytest_plugin" = "tba_tests_interop_jose.pytest_plugin"
22
+
23
+ [build-system]
24
+ requires = ["poetry-core>=2.2.0,<3.0.0"]
25
+ build-backend = "poetry.core.masonry.api"
26
+
27
+ [tool.poetry]
28
+ packages = [{ include = "tba_tests_interop_jose", from = "src" }]
29
+
30
+ [tool.readme_standards]
31
+ policy = "package-guide-v1"
32
+ readme = "README.md"
33
+ brand = "tigrbl-auth"
34
+ brand_catalog = "../../../tools/readme/brands.toml"
35
+ repository = "https://github.com/tigrbl/tigrbl_auth"
36
+ ref = "master"
37
+ package_path = "pkgs/120-tests/tba-tests-interop-jose"
38
+ layer = "120-tests"
39
+ lifecycle = "active"
40
+ license_file = "LICENSE"
41
+ notice_file = "NOTICE"
42
+
43
+ [tool.readme_standards.distributions.pypi]
44
+ name = "tba-tests-interop-jose"
45
+ published = false
46
+
47
+ [tool.readme_standards.examples.quick_start]
48
+ source = "docs/readme/quick_start.sh"
49
+ test = "docs/readme/test_examples.py"
50
+ language = "bash"
51
+ expected_exit_code = 0
52
+
53
+ [tool.readme_standards.examples.usage]
54
+ source = "docs/readme/usage.sh"
55
+ test = "docs/readme/test_examples.py"
56
+ language = "bash"
57
+ expected_exit_code = 0
58
+
59
+ [tool.readme_standards.statuses.readme]
60
+ label = "CI gate"
61
+ url = "https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"
62
+
63
+ [tool.readme_standards.statuses.tests]
64
+ label = "example source"
65
+ url = "https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/docs/readme/test_examples.py"
66
+
67
+ [tool.readme_standards.statuses.certification]
68
+ label = "not certified"
69
+ url = "https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/120-tests/tba-tests-interop-jose/README.md#certification-status"
70
+
71
+ [tool.readme_standards.statuses.governance]
72
+ label = "repository policy"
73
+ url = "https://github.com/tigrbl/tigrbl_auth/blob/master/tools/readme/POLICY.md"
74
+
75
+ [tool.readme_standards.statuses.evidence]
76
+ label = "source and CI"
77
+ url = "https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"
78
+
79
+ [dependency-groups]
80
+ dev = ["readme-standards==0.1.3; python_version >= \"3.11\"", "license-gate>=0.1.0; python_version < '3.15'"]
@@ -0,0 +1 @@
1
+ """Compact JWE cross-implementation tests."""
@@ -0,0 +1,72 @@
1
+ """Select checkout or installed-wheel JOSE peers for the interop tests."""
2
+
3
+ import os
4
+ from importlib import import_module, metadata
5
+ from pathlib import Path
6
+
7
+ import pytest
8
+
9
+
10
+ def pytest_addoption(parser: pytest.Parser) -> None:
11
+ parser.getgroup("TbA JOSE interoperability").addoption(
12
+ "--jose-interop-mode",
13
+ choices=("auto", "source", "installed"),
14
+ default="auto",
15
+ help="Load the Swarmauri checkout or require installed wheels for both peers.",
16
+ )
17
+
18
+
19
+ def _check_wheel_import(distribution: str, module_name: str) -> None:
20
+ dist = metadata.distribution(distribution)
21
+ module = import_module(module_name)
22
+ path = Path(module.__file__).resolve()
23
+ package_init = module_name.replace(".", "/") + "/__init__.py"
24
+ if not any(
25
+ entry.as_posix() == package_init
26
+ and Path(dist.locate_file(entry)).resolve() == path
27
+ for entry in dist.files or ()
28
+ ):
29
+ pytest.fail(
30
+ f"{module_name} did not load from the installed {distribution} wheel"
31
+ )
32
+
33
+
34
+ @pytest.fixture
35
+ def swarmauri_jwe(pytestconfig: pytest.Config, monkeypatch: pytest.MonkeyPatch):
36
+ mode = pytestconfig.getoption("--jose-interop-mode")
37
+ checkout = os.environ.get("SWARMAURI_SDK_ROOT")
38
+ if mode == "installed":
39
+ for distribution, module in (
40
+ ("swarmauri-core", "swarmauri_core"),
41
+ ("swarmauri-crypto-jwe", "swarmauri_crypto_jwe"),
42
+ ("tba-capability-protected-envelope", "tba_capability_protected_envelope"),
43
+ ("tba-concrete-jose", "tba_concrete_jose"),
44
+ ("tba-concrete-jwe", "tba_concrete_jwe"),
45
+ ("tba-contracts-protected-envelope", "tba_contracts_protected_envelope"),
46
+ ("tba-primitives-identity", "tba_primitives_identity"),
47
+ ("tba-protocol-security-jwe", "tba_protocol_security_jwe"),
48
+ ("tba-provider-jose-cryptography", "tba_provider_jose_cryptography"),
49
+ ):
50
+ _check_wheel_import(distribution, module)
51
+ elif checkout:
52
+ packages = Path(checkout).resolve(strict=True) / "pkgs"
53
+ monkeypatch.syspath_prepend(str(packages / "core"))
54
+ monkeypatch.syspath_prepend(
55
+ str(packages / "standards" / "swarmauri_crypto_jwe")
56
+ )
57
+ for name in ("swarmauri_core", "swarmauri_crypto_jwe"):
58
+ if (
59
+ not Path(import_module(name).__file__)
60
+ .resolve()
61
+ .is_relative_to(packages)
62
+ ):
63
+ pytest.fail(f"{name} did not load from SWARMAURI_SDK_ROOT")
64
+ elif mode == "source":
65
+ pytest.fail("Set SWARMAURI_SDK_ROOT to the Swarmauri checkout")
66
+ else:
67
+ pytest.skip("Set SWARMAURI_SDK_ROOT or select --jose-interop-mode=installed")
68
+
69
+ from swarmauri_core.crypto.types import JWAAlg
70
+ from swarmauri_crypto_jwe import JweCrypto
71
+
72
+ return JweCrypto(enable_x448=True), JWAAlg
@@ -0,0 +1 @@
1
+ """Packaged pytest cases for JOSE interoperability."""
@@ -0,0 +1,62 @@
1
+ """Compact JWE interoperability against source checkouts or installed peers."""
2
+
3
+ import pytest
4
+ from cryptography.hazmat.primitives.asymmetric.x448 import X448PrivateKey
5
+ from tba_capability_protected_envelope import ProtectedEnvelopeCapability
6
+ from tba_concrete_jose import JweCipherPolicy
7
+ from tba_concrete_jwe import parse_jwe_compact
8
+ from tba_contracts_protected_envelope import ProtectedEnvelope
9
+ from tba_primitives_identity import ProtectedEnvelopeKind
10
+ from tba_primitives_identity.base64url import base64url_encode
11
+ from tba_protocol_security_jwe import JWEProfile, JweProtocol
12
+ from tba_provider_jose_cryptography import JweCryptographyProvider
13
+
14
+
15
+ @pytest.mark.asyncio
16
+ @pytest.mark.parametrize(
17
+ ("payload", "party_headers"),
18
+ [(b"", {}), (b"cross-repository X448", {"apu": "QWxpY2U", "apv": "Qm9i"})],
19
+ )
20
+ async def test_compact_x448_interop_in_both_directions(
21
+ swarmauri_jwe, payload, party_headers
22
+ ) -> None:
23
+ sdk, algorithms = swarmauri_jwe
24
+ key = X448PrivateKey.generate()
25
+ public = key.public_key()
26
+ jwk = {
27
+ "kty": "OKP",
28
+ "crv": "X448",
29
+ "x": base64url_encode(public.public_bytes_raw()),
30
+ }
31
+ policy = JweCipherPolicy()
32
+ issuer = JweCryptographyProvider(
33
+ cipher_policy=policy, x448_public_keys={"r": public}
34
+ )
35
+ verifier = JweCryptographyProvider(
36
+ cipher_policy=policy, x448_private_keys={"r": key}
37
+ )
38
+ protocol = JweProtocol(
39
+ ProtectedEnvelopeCapability(issuer, verifier),
40
+ JWEProfile("x448", frozenset({"ECDH-ES"}), frozenset({"alg", "enc", "kid"})),
41
+ )
42
+
43
+ sdk_token = await sdk.encrypt_compact(
44
+ payload=payload,
45
+ alg=algorithms.ECDH_ES,
46
+ enc=algorithms.A256GCM,
47
+ key=jwk,
48
+ kid="r",
49
+ header_extra=party_headers,
50
+ )
51
+ sdk_headers = parse_jwe_compact(sdk_token).protected_headers
52
+ envelope = ProtectedEnvelope(ProtectedEnvelopeKind.JWE, sdk_token, sdk_headers)
53
+ assert protocol.decrypt(envelope).payload == payload
54
+
55
+ tba_envelope = protocol.encrypt(
56
+ payload,
57
+ key_reference="r",
58
+ headers={"alg": "ECDH-ES", "enc": "A256GCM", "kid": "r", **party_headers},
59
+ )
60
+ assert (
61
+ await sdk.decrypt_compact(tba_envelope.serialization, ecdh_private_key=key)
62
+ ).plaintext == payload