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.1.0.tar.gz (9.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.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiprims-0.1.0.tar.gz
  • Upload date:
  • Size: 9.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.1.0.tar.gz
Algorithm Hash digest
SHA256 62620d8d2a6641a8ba3ac2d87a8265b49843f15e6a9558fe1cb2cb91cad04040
MD5 c01c96c93e3ed7b4cb6b86999ea6ae79
BLAKE2b-256 0801cac99a26d55cec0aa5c06cc0c0b275022e12191c59f3af6dd6066bfca5a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiprims-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiprims-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbe59b29f3b6c006c57583e12a5c8a4c1f559162ad8479f3100cc2dc2db54aee
MD5 5c05d230ff2e1fd9019e8e2b8ff14713
BLAKE2b-256 739a1ba49e1303030cbc6eecf93f651c6a7b3c5e1ab7cb577cc76ea38de6dcdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiprims-0.1.0-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