Skip to main content

Foundational execution primitives for AI, ML, and data systems

Project description

aiprims

Foundational execution primitives for AI, ML, and data systems.

aiprims is a lightweight, opinionated Python library that provides low-level primitives for execution identity, deterministic hashing, run reproducibility, and traceability across AI and ML systems.

It operates below orchestration tools, experiment trackers, and model frameworks. It does not replace them. It sits underneath all of them as a correctness foundation.

Differences between runs should never be mysterious.


Install

pip install aiprims

Modules

Module Status Purpose
aiprims.core.hash v0.1.0 Deterministic content-derived identity for any object, file, or directory
aiprims.core.manifest v0.1.0 Immutable execution manifest capturing all run inputs
aiprims.core.idempotency v0.1.0 Idempotency keys for agent tool calls and pipeline steps
aiprims.core.config v0.1.0 Canonical config normalisation before hashing
aiprims.core.env v0.1.0 Environment fingerprinting — Python, OS, packages
aiprims.core.seed v0.1.0 Explicit randomness control and seed isolation
aiprims.nlp planned NLP pipeline execution primitives
aiprims.llm planned LLM prompt fingerprinting and inference identity
aiprims.rag planned Chunk identity and corpus fingerprinting for RAG systems
aiprims.agents planned Execution envelopes and tool call wrapping for agentic systems

Design Invariants

  • Randomness is never implicit — all stochastic behavior must be explicitly seeded or flagged
  • All inputs influencing execution must be visible — hidden dependencies are treated as failures
  • Identity computation is always deterministic — same inputs, same identity, always
  • Run identity is derivable locally — zero reliance on external systems
  • Failures are explicit — no silent recovery from invalid states

Part of the Garvaman OSS Stack

aiprims is the foundational layer of a composable AI infrastructure stack:

orion → application layer
agiorcx → agent coordination layer
ragaxis → RAG pipeline layer
aiprims → execution primitives (this library)

License

MIT © 2026 Sai Harsha Kondaveeti

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiprims-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiprims-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file aiprims-0.0.1.tar.gz.

File metadata

  • Download URL: aiprims-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiprims-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8bfadc4e0c17dc646074e45b9713bb8d35df8a4243c7dafa3f06b4e50c81ca2c
MD5 24824534b8c487d9eec2e486b1ec25bc
BLAKE2b-256 704bf9b9ed19ce16c49eb3fc502a1ef259a759da2dd310ff987057451ac99b95

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiprims-0.0.1.tar.gz:

Publisher: publish.yml on saiharsha-k/ai-prims

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiprims-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: aiprims-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiprims-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5587a9e4c6f1ca6978b0c0ab1993e8c9fa7bdb80f7662f9f3b47e0968b361056
MD5 c86ce931b2bbb1bc815dc63d7acc9a53
BLAKE2b-256 86b2698be4ca98d43b7030e256969a86cf309fec37ee365b8b78b82afa6b809a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiprims-0.0.1-py3-none-any.whl:

Publisher: publish.yml on saiharsha-k/ai-prims

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page