
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
qae-safety
Advanced tools
Deterministic safety certification kernel for AI agents, finance, and beyond.
Built with Rust for performance, exposed to Python via PyO3.
pip install qae-safety
from qae_safety import SafetyCertifier, AgenticAdapter, SimpleAction, StateDelta
# Create an adapter with budget and rate constraints
adapter = AgenticAdapter(budget_limit=100.0, rate_limit=50.0)
# Create a certifier
certifier = SafetyCertifier(adapter)
# Define an action
action = SimpleAction(
action_id="act-1",
agent_id="my-agent",
state_deltas=[
StateDelta("budget_utilization", from_value=0.0, to_value=50.0),
],
)
# Certify the action
cert = certifier.certify(action)
print(cert.decision) # e.g. "Certified"
print(cert.zone) # e.g. "Safe"
print(cert.margins) # e.g. {"budget": 0.8, "rate": 0.95}
For one-off certifications without creating a SafetyCertifier:
from qae_safety import AgenticAdapter, certify_action
adapter = AgenticAdapter(budget_limit=100.0, rate_limit=50.0)
cert = certify_action(
adapter,
action_id="action-1",
agent_id="my-agent",
deltas={"budget_utilization": 0.5},
)
print(cert.decision)
Extend the kernel to any domain by subclassing DomainAdapter and ConstraintChannel:
from qae_safety import DomainAdapter, ConstraintChannel, SafetyCertifier, SimpleAction
class TemperatureChannel(ConstraintChannel):
def name(self) -> str:
return "temperature"
def evaluate(self, state: list[float]) -> float:
# Return margin in [0, 1]; 1 = safe, 0 = at boundary
temp = state[0]
return max(0.0, 1.0 - temp / 100.0)
def dimension_names(self) -> list[str]:
return ["temperature"]
class RoboticsAdapter(DomainAdapter):
def domain_name(self) -> str:
return "robotics"
def constraint_channels(self) -> list:
return [TemperatureChannel()]
def map_action_to_state(self, action) -> list[float]:
for delta in action.state_deltas:
if delta.dimension == "temperature":
return [delta.to_value]
return [0.0]
def detect_regime_change(self, current, proposed) -> bool:
return False
adapter = RoboticsAdapter()
certifier = SafetyCertifier(adapter)
BSL-1.1 (Business Source License 1.1). Converts to Apache 2.0 on 2032-01-01.
FAQs
Deterministic safety certification kernel for AI agents, finance, and beyond
The pypi package qae-safety receives a total of 23 weekly downloads. As such, qae-safety popularity was classified as not popular.
We found that qae-safety demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.