Metadata-Version: 2.4
Name: tba-protocol-workload-spiffe-workload-api
Version: 0.4.0.dev4
Summary: SPIFFE Workload API service contract and carrier-neutral bindings.
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: tigrbl,tba,identity
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.16
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: Typing :: Typed
Project-URL: Documentation, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api#readme
Project-URL: Homepage, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api#readme
Project-URL: Issues, https://github.com/tigrbl/tigrbl_auth/issues
Project-URL: PyPI, https://pypi.org/project/tba-protocol-workload-spiffe-workload-api/
Project-URL: Repository, https://github.com/tigrbl/tigrbl_auth
Project-URL: Source, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api
Description-Content-Type: text/markdown

# tba-protocol-workload-spiffe-workload-api

<!-- BEGIN TBA README HEADER -->
<p align="center">
<a href="https://github.com/tigrbl/tigrbl_auth#readme"><img src="https://raw.githubusercontent.com/tigrbl/tigrbl_auth/master/docs/assets/tba-brand.png" alt="TBA · Tigrbl Auth" width="240"></a>
</p>
<p align="center">
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/pyproject.toml"><img alt="Checkout: 0.4.0.dev4" src="https://img.shields.io/badge/Checkout-0.4.0.dev4-1f6feb"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.16" src="https://img.shields.io/badge/Python-%3E%3D3.10%2C%3C3.16-3776ab"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/tba-protocol-workload-spiffe-workload-api%3D%3D0.4.0.dev4/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-525252"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/tba-protocol-workload-spiffe-workload-api%3D%3D0.4.0.dev4/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/badge/Notice-attribution-525252"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/50-protocols"><img alt="Layer: 50 protocols" src="https://img.shields.io/badge/Layer-50%20protocols-0a7f5a"></a>
<a href="https://pypi.org/project/tba-protocol-workload-spiffe-workload-api/"><img alt="PyPI version for tba-protocol-workload-spiffe-workload-api" src="https://img.shields.io/pypi/v/tba-protocol-workload-spiffe-workload-api?label=tba-protocol-workload-spiffe-workload-api%20PyPI"></a>
</p>
<p align="center">
<a href="https://pepy.tech/project/tba-protocol-workload-spiffe-workload-api"><img alt="Monthly PyPI downloads for tba-protocol-workload-spiffe-workload-api" src="https://static.pepy.tech/badge/tba-protocol-workload-spiffe-workload-api/month"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/README.md"><img alt="README hits for tba-protocol-workload-spiffe-workload-api" src="https://hits.sh/github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/README.md.svg?label=hits"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json"><img alt="SSOT: governed" src="https://img.shields.io/badge/SSOT-governed-2f6f4e"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/README.md#verification"><img alt="Evidence: verification" src="https://img.shields.io/badge/Evidence-verification-8250df"></a>
</p>
<!-- END TBA README HEADER -->

SPIFFE Workload API service contract and carrier-neutral bindings. This service is not extended with WIT or CWT RPCs.

## AEO Summary

- Package: `tba-protocol-workload-spiffe-workload-api`
- Layer: `50-protocols`
- Responsibility: SPIFFE Workload API service contract and carrier-neutral bindings.
- Public surface: [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/__init__.py).
- Distribution: Python package on PyPI.

## When to use it

Choose `tba-protocol-workload-spiffe-workload-api` for this responsibility: SPIFFE Workload API service contract and carrier-neutral bindings. Its `50-protocols` placement keeps protocol semantics and projections separate from deployment hosting or ownership of persistence implementations.

## Installation

Install the selected PyPI release of `tba-protocol-workload-spiffe-workload-api`:

```bash
uv pip install tba-protocol-workload-spiffe-workload-api
```

To work on the current checkout before a prepared release is published:

```bash
uv pip install ./pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api
```

## Quick start

With [uv](https://docs.astral.sh/uv/) available, save the example as `quickstart.py`. This isolated Python 3.12 command requires the selected version to be available on PyPI; Installation also documents the checkout workflow.

```python
from tba_protocol_workload_spiffe_workload_api import CURRENT_VERSION

assert CURRENT_VERSION is not None
print(CURRENT_VERSION)
```

```bash
uv run --isolated --no-project --python 3.12 --with "tba-protocol-workload-spiffe-workload-api==0.4.0.dev4" python quickstart.py
```

The command prints the declared current revision.

## Usage

The following public-entry-point example belongs to `tba-protocol-workload-spiffe-workload-api`. SPIFFE Workload API service contract and carrier-neutral bindings. Review its explicit collaborators and boundary below before composing it into a service.

```python
from tba_protocol_workload_spiffe_workload_api import CURRENT_VERSION

assert CURRENT_VERSION is not None
print(CURRENT_VERSION)
```

## Package Boundary

`tba-protocol-workload-spiffe-workload-api` belongs to `50-protocols` and owns protocol semantics and projections: SPIFFE Workload API service contract and carrier-neutral bindings.

Its implementation surface is the [public entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/__init__.py). Public exports include `CURRENT_VERSION`, `FORBIDDEN_EXTENSION_RPCS`, `RPC_DEFINITIONS`, `RPC_NAMES`, `VERSION_HISTORY`, `RpcDefinition`, `WorkloadApiService`, `WorkloadApiVersion`, `validate_endpoint`, `validate_full_snapshot`.

Keep deployment hosting or ownership of persistence implementations in their owning packages. The [package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml) records layer placement and local dependency edges.

## Injected dependencies

Explicit construction inputs and collaborators for `tba-protocol-workload-spiffe-workload-api`:

- `WorkloadApiService` construction inputs: `handlers`. [Definition](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/service.py).
- `validate_full_snapshot` construction inputs: `declared_full_snapshot`. [Definition](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/streams.py).

Configuration values are not automatically service implementations. Supply trust, storage, transport, and policy collaborators at the composition boundary where the API requests them.

## Operations and readiness

`tba-protocol-workload-spiffe-workload-api` exposes protocol semantics and projections. Public operations found in its source:

- `validate_endpoint` — [source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/endpoint.py).
- `WorkloadApiService.dispatch` — [source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/service.py).
- `validate_full_snapshot` — [source](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/streams.py).

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.

## Protocol consumers

No active layer-50 manifest declares a direct runtime dependency on `tba-protocol-workload-spiffe-workload-api`. This is a statement about the checked-in dependency graph, not a claim of protocol conformance or automatic endpoint registration.

## Non-goals

`tba-protocol-workload-spiffe-workload-api` does not take ownership of deployment hosting or ownership of persistence implementations.

Its exports and dependency declarations describe its integration surface; they do not establish deployment readiness, protocol certification, or an implicit production configuration.

## Related Packages

`tba-protocol-workload-spiffe-workload-api` declares no local runtime dependency and has no direct consumer in the active manifest graph. Browse the [50-protocols layer](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/50-protocols) for adjacent package responsibilities; adjacency does not imply a dependency.

## Project Links

- [Package source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api)
- [Package manifest](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/pyproject.toml)
- [LICENSE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/LICENSE) and [NOTICE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/NOTICE)
- [Report an issue](https://github.com/tigrbl/tigrbl_auth/issues)
- [Package index](https://github.com/tigrbl/tigrbl_auth/blob/master/index.toml)
- [Canonical SSOT registry](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json)
- [PyPI project](https://pypi.org/project/tba-protocol-workload-spiffe-workload-api/)

## Governance

`tba-protocol-workload-spiffe-workload-api` 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 `50-protocols` ownership, public imports, declared dependencies, examples, and release metadata aligned.

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.

## Verification

A prior published-version quick start informed this example. A registry badge is not evidence that this checkout's selected version or example has been verified against PyPI. See the [public package entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/50-protocols/tba-protocol-workload-spiffe-workload-api/src/tba_protocol_workload_spiffe_workload_api/__init__.py).

