Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.3.0 instead.
Reason given by maintainers: no halt enforcement; upgrade to >=0.3.0

Infocion Aegis SDK

Governance for AI agents: an allow-listed tool-call guard, brokered short-lived credentials, rule-based PHI redaction, human-in-the-loop approval, and a tamper-evident audit trail — wrapped around an agent you already have.

pip install infocion-aegis

The distribution is infocion-aegis; the import is aegis_sdk.

If you meant a different Aegis: the name aegis-sdk on PyPI belongs to an unrelated PII-masking product from aegispreflight.com. It is not this package and has no connection to the Infocion Aegis control plane. If your code uses aegis_sdk.metrics.MetricsReporter or aegis_sdk.audit.AuditLog, you have that one — neither exists here.

Quick start

Two environment variables, from your agent's page in the Aegis console:

export AEGIS_API_BASE=https://your-aegis-host/api/aegis
export AEGIS_AGENT_KEY=agk_...       # Agents → your agent → Enrollment keys
export AEGIS_ENFORCEMENT=development # or 'governed' — see below

Then decorate the tool functions your agent already calls:

from uuid import uuid4

from aegis_sdk import guard
from aegis_sdk.guard import aegis_session
from aegis_sdk.platform import context_from_env

ctx = context_from_env(session_id=str(uuid4()))


@guard(tool_name="query_trials", connector="clinicaltrials-gov", scope="read")
def query_trials(condition: str, *, aegis_cred=None) -> list[dict]:
    # If this connector is not bound to this agent, the call is BLOCKED and
    # logged — not silently dropped, and not allowed through with a warning.
    return ctms.search(condition=condition, token=aegis_cred.secret)


with aegis_session(ctx):
    results = query_trials("type 2 diabetes")

Your agent's graph, prompts and state are untouched. LangGraph, LangChain, CrewAI or plain Python all work the same way.

What it does on every guarded call

  1. Allow-list — is this connector registered and bound to this agent?
  2. Autonomy tier — may this agent execute at all, or only observe?
  3. Policy — does the decision point permit this action at this scope?
  4. Credential — a short-lived, task-scoped token issued per call.
  5. Audit — allowed or blocked, a hash-chained record is written either way.

A blocked call raises. It never returns None, because an agent that treats a governance refusal as an empty result will carry on reasoning from it.

Development vs governed

pip install alone does not make an agent contained. On a laptop or ordinary VPS the process can reach a model provider directly — import openai bypasses any decorator — so that mode is development and the console shows the agent as UNATTESTED. It is fully registered, policy-checked and audited; it is not contained.

A governed deployment runs the agent inside a network whose egress is restricted, so the only route out is the gateway. The SDK verifies this at startup and refuses to run if it is false.

Use development mode to build and test. Do not put real PHI through it.

Extras

Install When
infocion-aegis An agent anywhere. Reports to the control plane over its enrollment key.
infocion-aegis[client-zone] Inside a governed client zone: adds the PostgreSQL driver for local audit detail and session state.

Documentation

Full integration guide, including the audit action vocabulary, custody tiers and failure modes, is downloadable from the SDK & Integration page of your Aegis console.

Release files for infocion-aegis 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infocion-aegis 0.1.1
File Size Uploaded
infocion_aegis-0.1.1.tar.gz 115.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for infocion-aegis 0.1.1
File Interpreter ABI Platform
infocion_aegis-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 243.9 kB

Release files / infocion_aegis-0.1.1.tar.gz

Download URL infocion_aegis-0.1.1.tar.gz
Size 115.4 kB
Tags Source
SHA-256 checksum
How to use checksums
395cac97676eb84b7b2ea02cb6459210f9e6295470f2fc1a6cd651c0b3325d95
BLAKE2b-256 checksum
How to use checksums
466310f9a38721232e8416715c7c321d8f174cf74b2e418424e42d38942e1211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / infocion_aegis-0.1.1-py3-none-any.whl

Download URL infocion_aegis-0.1.1-py3-none-any.whl
Size 128.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eda4519631adcba5f01e60d40d763ae0eb52c7b99685468408130ed578100781
BLAKE2b-256 checksum
How to use checksums
aaca2ef80d07e517d7faf86895ef8d81e9eca46dfed05a8cd02f0b5b22379f4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page