Routing gateway for Seraphim |LZ⟩ collapsed agent decisions into QUANTA operational handlers
Project description
planck-agent-gateway
Routing Gateway for Collapsed Seraphim Agent Decisions
Perfect Squared Inc. | P2 Labs | Seraphim |LZ⟩
Agents of the Highest Order
Overview
planck-agent-gateway is the operational routing layer that sits between the quantum symbolic intelligence of seraphim-logic-core and the QUANTA product suite. Every collapsed agent decision passes through the gateway for routing, handling, and dispatch.
seraphim-logic-core (quantum collapse)
↓
PlanckGateway (routing + dispatch)
↓
QUANTA Handlers (PULSE / VIGIL / RAD / SRD / ...)
↓
Operational Action
Architecture
planck_agent_gateway/
├── handler.py — BaseHandler + HandlerResult (base classes)
├── handlers/
│ ├── pulse_handler.py — QUANTA-PULSE: threat detection
│ ├── vigil_handler.py — QUANTA-VIGIL: integrity monitoring
│ ├── rad_handler.py — QUANTA-RAD: RF/signal anomaly detection
│ └── default_handler.py — Fallback for unregistered grammars
├── router.py — DecisionRouter: grammar → handler mapping
├── gateway.py — PlanckGateway: dispatch, logging, alerting
└── pipeline.py — SeraphimPipeline: end-to-end integration
Quick Start
Standalone gateway
from planck_agent_gateway import PlanckGateway
gateway = PlanckGateway(alert_callback=lambda r: print(f"ALERT: {r}"))
decision = {
"grammar": "threat_detection",
"symbol": "CONFIRMED",
"value": 1.0,
"entropy_signal": 0.95,
"lifecycle": "DELIVERED",
}
result = gateway.dispatch(decision)
print(result) # HandlerResult(QUANTA-PULSE | CONFIRMED → escalate_and_block [ALERT])
End-to-end with seraphim-logic-core
import numpy as np
from planck_agent_gateway import SeraphimPipeline
# QUANTA-PULSE threat detection pipeline
pipeline = SeraphimPipeline.for_pulse(use_quantum=True)
# Run from XOR-lattice event
result = pipeline.run_xor_event(window_1, window_2)
if result and result.alert:
print(f"ALERT [{result.severity}]: {result.symbol} → {result.action}")
print(result.data)
# Run from raw data stream
result = pipeline.run_stream(stream_data)
# QUANTA-VIGIL integrity monitoring pipeline
vigil = SeraphimPipeline.for_vigil()
result = vigil.run_xor_event(before, after)
QUANTA Handler Map
| Grammar | Handler | Alert Symbols |
|---|---|---|
threat_detection |
QUANTA-PULSE | SPOOFED, CONFIRMED |
integrity_monitor |
QUANTA-VIGIL | DEGRADED, BREACHED |
rad / rf_detection |
QUANTA-RAD | SPOOFED, CONFIRMED |
| (anything else) | DEFAULT | — |
Custom Handlers
from planck_agent_gateway import PlanckGateway, BaseHandler, HandlerResult
class MySRDHandler(BaseHandler):
name = "QUANTA-SRD"
def can_handle(self, grammar): return grammar == "srd_grammar"
def handle(self, decision):
return HandlerResult(self.name, decision["symbol"], "srd_action")
gateway = PlanckGateway()
gateway.register_handler(MySRDHandler())
Installation
pip install planck-agent-gateway
# With seraphim-logic-core integration
pip install planck-agent-gateway[seraphim]
Development:
git clone https://github.com/10XAnalytics/planck-agent-gateway
cd planck-agent-gateway
pip install -e ".[dev]"
pytest
License
Apache 2.0 — See LICENSE
Perfect Squared Inc. | P2 Labs — "Simulate the Future. Secure the Present."
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file planck_agent_gateway-0.1.0.tar.gz.
File metadata
- Download URL: planck_agent_gateway-0.1.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5a166d076703992804420e4bee1e26901f772a419d3e780b56fe65c6b911548
|
|
| MD5 |
8f0285a3763ba087327b4b988c6a2930
|
|
| BLAKE2b-256 |
0f138ba242ef3bbb1594d7cb91aebb5e8900c18b8708e907e51373d13fda5f1b
|
File details
Details for the file planck_agent_gateway-0.1.0-py3-none-any.whl.
File metadata
- Download URL: planck_agent_gateway-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea752999510a85f814df97bb21b4dc5d2f3bfe1e308b0927d1a2a3ca6e80d179
|
|
| MD5 |
d4e918c73d91914e6d809eb2e9843f2a
|
|
| BLAKE2b-256 |
e513bffa3015a3dc71359199574bff4ec67ba5b3cc8599f68e84f713e1d94bb4
|