orgindex-schema
Canonical, versioned pydantic schema for the organizational-data comprehensive index: the on-disk JSON contract produced by the cyborg org-indexer and consumed by the cyborg-data Go and Python clients (and downstream MCP servers, bots, and web apps).
This package is the single source of truth for the index shape. It is intentionally dependency-light (pydantic only), so both the producer and every consumer can depend on it without pulling in orglib.
Internal-first. This is open source (Apache-2.0) and published on PyPI, but it is maintained for internal Red Hat / openshift-eng use and is unlikely to be useful outside that ecosystem. Support is best-effort.
What it defines
ComprehensiveIndexModel— the top-level{ metadata, lookups, indexes }on-disk shape.SCHEMA_VERSION— the embedded contract version (semver; seeCOMPATIBILITY.md).index.schema.json— the committed JSON Schema (emitted in serialization mode), from which the Go consumer generates its structs.
It models the index exactly as written to disk (no normalization), so
ComprehensiveIndexModel.model_validate(json).model_dump() round-trips an index unchanged.
Query-result types that are computed at query time and never serialized
(HierarchyPathEntry, OrgInfo, HierarchyNode) are intentionally out of scope and stay in the consumers.
Installation
pip install "orgindex-schema>=0.1,<0.2"
The package is in initial development (0.x) — the contract is still settling as
the first consumer is built, so each 0.x minor may break. Pin to a single
minor (>=0.1,<0.2); when the shape is proven in a real consumer the project will
cut 1.0.0, after which you pin to a major range (>=1,<2). The package major is
coupled to the contract SCHEMA_VERSION major (see
COMPATIBILITY.md), so the pin is a resolver-enforced
compatibility check, not just a convention. Hash-pin in your lockfile and resolve
from a single index to avoid dependency-confusion substitution.
Usage
import json
from orgindex_schema import ComprehensiveIndexModel, SCHEMA_VERSION
with open("comprehensive_index.json") as f:
index = ComprehensiveIndexModel.model_validate(json.load(f))
Development
Uses uv; no manual virtualenv needed.
make all # the full gate CI runs (lint, format, types, tests, both gates)
make schema # regenerate index.schema.json from the models
make schema-check # drift gate: fail if index.schema.json is stale
make compat-check # breaking-change gate: version bump must match the schema diff
See CONTRIBUTING.md for the schema-change workflow, COMPATIBILITY.md for the versioning policy, and RELEASING.md for how releases are cut and published.
Metadata
Release files for orgindex-schema 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| orgindex_schema-0.1.0.tar.gz | 28.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orgindex_schema-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.0 kB
Release files / orgindex_schema-0.1.0.tar.gz
| Download URL | orgindex_schema-0.1.0.tar.gz |
|---|---|
| Size | 28.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7d4bd1a2eef40d189bc3b0808dca892b1b27991c14c53018887940df8bec0e7
|
|
BLAKE2b-256 checksum How to use checksums |
a5c04a0ea75f16978f642d1e6ed36ff1978fbd8db9b774ac7a470c1a8987c98b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / orgindex_schema-0.1.0-py3-none-any.whl
| Download URL | orgindex_schema-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fc338626d3fc1423a79447c79e852ee1fc65c7c828519ca6809ab3e76486f27
|
|
BLAKE2b-256 checksum How to use checksums |
18b6aeac614bbcf11ceb7fd1fe7a8e681f06ff09c37af7d0b4dcc9c7d0a50d79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency log