Skip to main content

Core domain and application logic for Identa

Project description

Identa Core 🧠

The engine room of Identa. This package contains the pure domain logic, ports, and application handlers following a strict Hexagonal Architecture and CQRS pattern.

Architecture

Identa Core is designed to be framework-agnostic and side-effect free. It enforces a clean separation between "how we evaluate" and "how we store/trace".

Hexagonal Layers

  1. Domain: Pure Pydantic models (Runs, Spans, AgentStructure) and core logic (Metric computation, Migration validation).
  2. Ports: Abstract interfaces for storage and artifacts.
  3. Application:
    • Commands: Mutation logic (Start Run, Log Results).
    • Queries: Data retrieval logic (List Runs, Get Comparison).
  4. Persistence (Adapters): Concrete implementations of ports (SQLite, Local Filesystem).

Key Components

  • Evaluation Engine: The loop that executes agents against test suites and computes metrics.
  • Tracing Service: A context-aware span collector.
  • Migration Engine: Logic to validate and apply model-binding swaps.
  • Reproduction Engine: Logic to replay experiments with structural drift detection.

Drift Analysis Tracks

Identa Core supports two distinct evaluation pipelines:

  1. Standard Track: Robust, statistical observability.

    • Normalized Structural Drift (Jaccard Similarity).
    • Behavioral Drift (Smoothed PSI).
    • Feature Weighting (MetricSpec.weight).
  2. Vanguard Track: State-of-the-art semantic/causal detection.

    • Semantic Embedding Drift (Wasserstein Distance).
    • LLM-as-a-Judge (Qualitative Drift scoring).
    • Online Calibration (Dynamic Decision Boundaries).
    • Causal Graph Inference (Root-Cause Bottleneck analysis).

Configure your pipeline via EvaluationConfig.drift_mode.

Development

This package is managed by uv. ...

# Run unit tests
uv run pytest tests/

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

identa_core-0.4.9b12.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

identa_core-0.4.9b12-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file identa_core-0.4.9b12.tar.gz.

File metadata

  • Download URL: identa_core-0.4.9b12.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for identa_core-0.4.9b12.tar.gz
Algorithm Hash digest
SHA256 3a5220cfd69bf0b732bf4348365e801e234f5d6c07b48290e5d21a54c792a129
MD5 5c03a798c1b824b6b6e654c2113a460d
BLAKE2b-256 11a1cd1acf3b6c4c00830916689d2e50dee0a9fcac2f30f4f4fc6af708b49321

See more details on using hashes here.

Provenance

The following attestation bundles were made for identa_core-0.4.9b12.tar.gz:

Publisher: beta-release.yml on Identa-agent/Identa

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

File details

Details for the file identa_core-0.4.9b12-py3-none-any.whl.

File metadata

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

File hashes

Hashes for identa_core-0.4.9b12-py3-none-any.whl
Algorithm Hash digest
SHA256 ed74ff7ce6d316d8fecc06badbbfa625ac5bef4498cbf6cd5cb6d958a013d3d9
MD5 2f578eca547f7ffa842e7dd798e6afbb
BLAKE2b-256 f95e67a9144e426e4f8980b518b6805e2ccb18c03ab61bc1bc9f2380e6c93a77

See more details on using hashes here.

Provenance

The following attestation bundles were made for identa_core-0.4.9b12-py3-none-any.whl:

Publisher: beta-release.yml on Identa-agent/Identa

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