Skip to main content

AEGIS Trial SDK

AEGIS Trial SDK is the public local integration layer for a separately supplied compatible AEGIS Trial Core wheel. It is detection-only: it observes local model state, returns local events, and does not change a training run.

Initial Trial platform

The initial live Trial release requires Linux x86_64 and CPython 3.11. The supplied Core wheel currently has the form:

aegis_trial_core-0.1.2-cp311-cp311-linux_x86_64.whl

Version numbers and filenames do not establish scientific qualification. Use only a Core wheel whose supplied hash and release status explicitly identify it as authorized for the trial; engineering-candidate wheels must not be deployed.

The SDK exposes PyTorch, Hugging Face Trainer, and distributed integration helpers. Those APIs do not by themselves establish that a particular model architecture or multi-worker training configuration is validated for the Trial Core. Use only the configuration supplied with your trial materials.

Install

Install both components into the same CPython 3.11 environment:

python3.11 -m pip install /path/to/aegis_trial_core-0.1.2-cp311-cp311-linux_x86_64.whl
python3.11 -m pip install aegis-trial-sdk

When installing from a source checkout, replace the second command with python3.11 -m pip install ..

Before installation, check the Core wheel against the SHA-256 value supplied with your trial delivery:

echo "<supplied-sha256>  aegis_trial_core-0.1.2-cp311-cp311-linux_x86_64.whl" | sha256sum --check -

The public SDK does not install or bundle the Core. Constructing AegisMonitor without the separately supplied compatible wheel produces a local error.

Training-loop lifecycle

Call begin_step before the monitored forward pass and end_step after the normal user-owned training step. See examples/pytorch_training_loop.py.

from aegis import AegisMonitor

# This must equal the number of training forwards accumulated into each
# optimizer step. The monitor aborts on missing or extra captures.
monitor = AegisMonitor(model, expected_microbatches=1)
monitor.begin_step(step)
loss = model(batch).sum()
loss.backward()        # your ordinary training loop
optimizer.step()       # your ordinary training loop
event = monitor.end_step(loss=loss)
if event.detected:
    print(event.anomaly_state, event.detection_confidence)

AEGIS does not modify gradients, optimizer state, learning rate, checkpoints, workers, or training control. It only returns the event.

If the training loop uses gradient accumulation, construct the monitor with the same explicit count. For example, use expected_microbatches=4 when four forward and backward passes precede each optimizer step. A mismatch raises an error instead of silently evaluating an incomplete optimizer step. The compatible Core combines every configured observation before producing the local event.

Event schema

AegisMonitor.end_step() returns an immutable AegisEvent with:

  • anomaly_state: a generic local state, such as clear or detected.
  • detection_confidence: a numeric confidence when available, otherwise None.
  • recommended_next_step: informational text for the caller. In the Trial, it does not select, authorize, or execute an intervention.
  • detected: a convenience property derived from anomaly_state.

The Core's signal_detected decision field is not emitted as a separate public event field; callers should use event.detected.

Use aegis.integrations.AegisCallback(monitor) with a Hugging Face Trainer, or aegis.integrations.gather_events(event, torch.distributed) to collect one event per worker on rank zero. The distributed example is an API integration reference, not a broader validation claim. See examples/ddp_integration.py.

Data and network boundary

AEGIS runs locally. The public SDK does not upload training data, model state, or event logs, and opens no network connections. See DATA_FLOW.md and PRIVACY.md.

aegis-demo --preview writes a clearly simulated evaluation-report preview.

Public SDK release integrity

Every published SDK release should include a SHA256SUMS file alongside its wheel and source distribution. Verify the downloaded artifact against that file before installation:

sha256sum --check SHA256SUMS

SHA256SUMS covers the public SDK artifacts only. The separately supplied Trial Core has its own delivery manifest and SHA-256 value; never substitute one checksum for the other.

Metadata

Release files for aegis-trial-sdk 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 aegis-trial-sdk 0.1.1
File Size Uploaded Provenance
aegis_trial_sdk-0.1.1.tar.gz 17.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 30.7 kB

Release files / aegis_trial_sdk-0.1.1.tar.gz

Download URL aegis_trial_sdk-0.1.1.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6d84cc76a5b3c7265a3c0e0d368e71e936648c6bcfb16a7ed10662546fc8f504
BLAKE2b-256 checksum
How to use checksums
b348f3979a4ee7dae3e83db071dc4f86f7a2e0d5ad0dc4aef02d4e87a8a6238a
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 Aug 30, 2026.

Transparency log

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

Download URL aegis_trial_sdk-0.1.1-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85db17eb218db3c792c8d857c750ab28971007f046e2c6600849766a1889e88c
BLAKE2b-256 checksum
How to use checksums
113d87d6525a13846c55f43d87d313eedec2e75cc313d5196788fd7828acfd51
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 Aug 30, 2026.

Transparency log

Security for aegis-trial-sdk 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aegis_trial_sdk-0.1.1.tar.gz

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 Aug 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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