Local-first observability for ML systems
Project description
Contexta
Local-first observability for ML systems.
Quickstart | Product Surface | Docs Map
Contexta brings the six legacy library roles into one product surface. The intended developer experience is one canonical Python import root, one canonical CLI, one canonical workspace, and one consistent contract for writing, storing, querying, comparing, and recovering observability data.
[!NOTE]
Contextais in a prototype-to-product transition. The canonical public identity is alreadyContextaandcontexta, but some packaging and CLI alignment work is still in progress. This README uses the final product language first and calls out transitional behavior only where it matters.
Why Contexta
- One product surface
Start from
from contexta import Contextainstead of stitching together separate package roots. - Canonical local workspace
Keep metadata, records, artifacts, reports, and recovery state in a local
.contexta/workspace. - Read-oriented investigation Query runs, compare outcomes, inspect diagnostics, follow lineage, and build reports from canonical data.
- Recovery built in Replay, backup, restore, and artifact transfer are part of the product direction, not separate utilities.
Quickstart
The shortest fully verified prototype path is:
- Install the project in editable mode.
- Run the verified quickstart example.
- Inspect the generated report and workspace output.
1. Install
For local development inside this repository:
uv sync --dev
Or with pip:
python -m pip install -e .
After installation, the canonical import is:
from contexta import Contexta
2. Run The Verified Quickstart Example
$env:PYTHONPATH = "src"
uv run python examples/quickstart/verified_quickstart.py
The example source lives at examples/quickstart/verified_quickstart.py.
It creates a temporary workspace, writes minimal canonical data, queries the resulting run, and saves a markdown snapshot report.
3. What This Confirms
- the
contextaimport path is live - a canonical
.contexta/workspace can be created locally - canonical metadata and records can be written
- the unified facade can query that workspace and build a report
- the quickstart example is executable and regression-covered
Runtime Capture Preview
The runtime capture surface is already part of the product direction:
$env:PYTHONPATH = "src"
uv run python examples/quickstart/runtime_capture_preview.py
The preview source lives at examples/quickstart/runtime_capture_preview.py.
The verified README quickstart intentionally uses the currently proven query/report path. The runtime capture preview is included separately so new users can see the scope API without over-promising the current onboarding workflow.
Product Surface
| Surface | Status | Role | When To Start Here |
|---|---|---|---|
Contexta |
Stable | Unified facade | Default starting point |
contexta.config |
Stable | Config models, profiles, env overrides | When you need explicit config control |
contexta.contract |
Stable | Canonical models, validation, serialization | When you work directly with schema-level types |
contexta.capture |
Stable | Runtime capture scopes and emissions | When facade-level capture is not enough |
contexta.store.metadata |
Stable | Metadata truth plane | Advanced store access |
contexta.store.records |
Stable | Record truth plane | Replay, scan, export, integrity workflows |
contexta.store.artifacts |
Stable | Artifact truth plane | Artifact ingest, verify, export, import |
contexta.interpretation |
Stable | Query, compare, diagnostics, lineage, reports | Read and investigation flows |
contexta.recovery |
Advanced | Replay, backup, restore | Operator and recovery work |
The internal namespaces contexta.api, contexta.runtime, contexta.common, and contexta.surfaces are not documented as public import targets.
Documentation Map
The public documentation set is being built in the following structure:
Core Entry Points
README.md- product overview, install, quickstart, migration note
docs/index.md- document hub
User Guide
docs/user-guide/index.mddocs/user-guide/key-features.mddocs/user-guide/tools-and-surfaces.mddocs/user-guide/core-concepts.mddocs/user-guide/getting-started.mddocs/user-guide/common-workflows.mddocs/user-guide/advanced.mddocs/user-guide/testing.md
Reference
docs/reference/api-reference.mddocs/reference/cli-reference.mddocs/reference/http-reference.md
Operations And Contribution
docs/operations.mddocs/faq.mdCONTRIBUTING.md
Examples
examples/quickstart/- verified quickstart and runtime capture preview
examples/recovery/- operator-oriented recovery workflows
Design Notes
The product direction is:
- local-first
- schema-first
- reproducibility-oriented
- explicit about degraded or incomplete states
Internally, Contexta keeps separate truth-owning planes for:
- metadata and relations
- records
- artifact bodies and bindings
and then builds query/report/recovery surfaces over those planes.
Current Caveats
- Some prototype-to-release packaging polish is still in progress.
- Source-tree example runs still commonly use
PYTHONPATH=src.
These are release-alignment issues, not a change in the canonical product identity.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contexta-0.1.1.tar.gz.
File metadata
- Download URL: contexta-0.1.1.tar.gz
- Upload date:
- Size: 440.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df747b61bfc46afeea1e7eb64d7250fff5ed990db867041dc8e00aaf7ebc6a77
|
|
| MD5 |
bf0af0906c1ed2f47f446ca43cd0fdba
|
|
| BLAKE2b-256 |
d76901de9b025785dc177a7803494623738ac81785e56ed76fad1878890f35a4
|
File details
Details for the file contexta-0.1.1-py3-none-any.whl.
File metadata
- Download URL: contexta-0.1.1-py3-none-any.whl
- Upload date:
- Size: 248.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c0788388219173aeacd4038e6f14e545d1ce80c2ebfc08c3e8797b52aba300
|
|
| MD5 |
8544d4bb0c0e3cec4aa4934409d1bb5c
|
|
| BLAKE2b-256 |
d66349891e73faff9b749d437013ce4637961aef8ac8d6052d83238d1faee7f5
|