This release is a pre-release and may not be stable for production use.
i3cex
Extension layers for MIPI I3C targeting edge AI and edge ML workloads.
Pre-alpha. Specification and implementation are in flux. Developmental releases are available on PyPI. See the current specification draft.
What is I3C-EX?
I3C-EX is a set of optional, backward-compatible extension layers atop MIPI I3C. It adds metadata envelopes, QoS negotiation, Byzantine fusion signalling, distributed timestamping, provenance/attestation, and confidence propagation — all as optional sublayers that run on existing I3C hardware with firmware updates only.
See the repository's top-level README for project motivation and dual-track strategy, and GOVERNANCE.md for development standards.
Installation
pip install --pre i3cex # core library
pip install --pre "i3cex[sim]" # with pure-Python simulator extras
pip install --pre "i3cex[cosim]" # with cocotb cosimulation (Linux/WSL2)
pip install --pre "i3cex[dev]" # development tooling
Development
Prerequisites
- Python 3.11 or later (3.12+ recommended).
- Hatch for environment management
(
pipx install hatch). - For cosimulation only: Linux or WSL2, Verilator 5.012+, Icarus Verilog 12.0+.
Setup
# From repository root:
cd i3cex
# Create the dev environment
hatch env create
# Run unit and property tests
hatch run test
# Run full test suite with coverage
hatch run cov
# Run linter
hatch run lint
# Run type checker
hatch run typecheck
# Run all quality checks
hatch run check
# Show evidence-backed release readiness (currently NO-GO for hardware)
hatch run release-status
# Reproduce, audit, and smoke-test the release artifacts
hatch run release-artifacts --allow-dirty
Hardware and production readiness
Passing the Python tests does not by itself establish I3C hardware or
production readiness. The staged release train, compatible reference-board
matrix, firmware/cosimulation requirements, physical test procedures, and
machine-checkable gates are defined in
docs/release/RELEASE_PLAN.md.
Use hatch run release-status --require dev, --require rc, or
--require production to enforce a milestone. Hardware and production
milestones intentionally fail until their retained evidence is linked from
the release manifest.
Project Structure
i3cex/
├── pyproject.toml Hatch-based build configuration
├── README.md This file
├── LICENSE MIT
├── CHANGELOG.md Keep-a-changelog format
├── .gitignore
├── .pre-commit-config.yaml Ruff + mypy on every commit
├── src/
│ └── i3cex/
│ ├── __init__.py Package root, version exported
│ ├── py.typed PEP 561 marker
│ ├── framing/ Wire-level framing strategies
│ │ ├── __init__.py
│ │ ├── preamble.py Candidate A: preamble header codec
│ │ └── tlv.py Candidate B: TLV framing
│ ├── envelope/ EX-1: metadata envelope sublayer
│ │ └── __init__.py
│ ├── qos/ EX-2: quality-of-service (stub)
│ │ └── __init__.py
│ ├── fusion/ EX-3: Byzantine fusion signalling (stub)
│ │ └── __init__.py
│ ├── timesync/ EX-4: distributed timestamping (stub)
│ │ └── __init__.py
│ ├── provenance/ EX-5: provenance/attestation (stub)
│ │ └── __init__.py
│ ├── confidence/ EX-6: confidence propagation (stub)
│ │ └── __init__.py
│ └── sim/ Pure-Python I3C/I3C-EX simulator
│ └── __init__.py
├── tests/
│ ├── unit/ Fast pure-function tests
│ ├── property/ Hypothesis-based generative tests
│ ├── integration/ Multi-component, uses sim
│ ├── cosim/ cocotb tests vs chipsalliance/i3c-core RTL
│ └── vectors/ Normative test vectors (spec conformance)
└── docs/
└── adr/ Architecture Decision Records
Testing Philosophy
See GOVERNANCE.md for the full statement. Summary:
- Strict TDD. No implementation code lands without a failing test first.
- Four test layers. Unit, property, integration, cosim.
- Coverage targets. 95%+ line / 90%+ branch for core; 85%+ for utility; 80%+ for sim.
- Property tests are mandatory for parsers and framers. Every wire
format decoder MUST have a
hypothesisroundtrip test. - Pre-registered specifications. The spec in
../specs/is written first; code tracks the spec.
Sublayer Roadmap
I3C-EX sublayers are implemented sequentially:
- EX-1 metadata envelope — in progress (v0.1.0).
- EX-2 QoS negotiation — after EX-1 stabilises.
- EX-3 Byzantine fusion — after EX-2.
- EX-4 distributed timestamping — after EX-3.
- EX-5 provenance/attestation — after EX-4.
- EX-6 confidence propagation — after EX-5.
Framing strategy (preamble-byte vs TLV) is chosen empirically before
EX-1 stabilises; see
I3CEX-0.1.0-draft.md
section 5. The complete six-axis evaluation methodology is pre-registered
in ADR-0010 through ADR-0020 under docs/adr/.
License
MIT. See the license.
Metadata
Release files for i3cex 0.1.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| i3cex-0.1.0.dev1.tar.gz | 46.7 kB | Without provenance | Details for i3cex-0.1.0.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| i3cex-0.1.0.dev1-py3-none-any.whl | Python 3 | none | any | Details for i3cex-0.1.0.dev1-py3-none-any.whl |
Total release size: 67.9 kB
Release files / i3cex-0.1.0.dev1.tar.gz
| Download URL | i3cex-0.1.0.dev1.tar.gz |
|---|---|
| Size | 46.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6429f17d10b579f05b3c3b95997dd6e8140fde79866813202e75323a507f210f
|
|
BLAKE2b-256 checksum How to use checksums |
203f5d115293d37b53f452a93fa715cbcbe97df1a92bf2a94eb2d5f15854a82d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / i3cex-0.1.0.dev1-py3-none-any.whl
| Download URL | i3cex-0.1.0.dev1-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8bd1e7bc12a7233c94eccfafd4b2eb149ccdc4031617414768f26b8d7ed73fc
|
|
BLAKE2b-256 checksum How to use checksums |
79c7fddbcd2048638a1f0e42f29a4e91c7c137630ad450d34139d0e5862cf801
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for i3cex 0.1.0.dev1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.