admission-gate
A deterministic admission gatekeeper, feedback regulator, and cryptographic audit logger for autonomous shell environments and agent tooling.
Architectural Layers
- The Map (
admission-gate): Static verification kernel executing strict path canonicalization, command jail confinement, and invariant enforcement. - The Territory (
kpt_kernel/fpt_daemon): Adaptive PID damping controller adjusting burst allowance, cooldown intervals, and path quarantines based on real-time fault telemetry. - The Witness (
Human_inthe_loop): Out-of-band sovereign attractor handshake preventing automated execution bypasses when damping escalates ($\sigma > 0.85$). - Agent Integration (
fpt_mcp_server.py): Zero-dependency Model Context Protocol server exposing gated shell execution over JSON-RPC stdio.
Installation
pip install admission-gate kpt_kernel
Formal Verification
State Space Model Checking: Verified via discrete state exploration (spec/verify_model.py) across 697 states, 1,020 transitions, and 0 bypasses.
Control Stability: Discrete Lyapunov stability with anti-windup accumulator bounds (\sup \vert{}I_k\vert{} \le I_{\max}) documented in ARCHITECTURE.md.
Adversarial Fuzzing: 500+ path-traversal mutations verified against root confinement invariants (tests/test_properties_adversarial.py).
Quick Start
from admission_gate import evaluate, GateConfig, ActionProposal
config = GateConfig(
write_roots=["./workspace", "./scratch"],
read_roots=["./workspace", "./scratch"],
blocked_patterns=["rm -rf /", ":(){ :|:& };:", "/dev/sd", "> /dev/null"]
)
proposal = ActionProposal(
action_id="task-01",
command="echo 'build complete' > ./workspace/status.txt",
target_path="./workspace/status.txt",
risk_tier=1
)
passed, reason = evaluate(proposal, config=config)
print(f"Policy Decision: {passed} ({reason})")
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
admission_gate-0.4.1.tar.gz
(28.5 kB
view details)
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 admission_gate-0.4.1.tar.gz.
File metadata
- Download URL: admission_gate-0.4.1.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0296f2ec60a348d5a1bee66cf03dde45009a8c7fa2c7cdb6ef07a641c27754d
|
|
| MD5 |
05e26c9056f177fc03ede5ead2dbd514
|
|
| BLAKE2b-256 |
33c1ae638034ffab35a29be908fb6f6b9571e2d7f60d4dc08d23217e38ffd090
|
File details
Details for the file admission_gate-0.4.1-py3-none-any.whl.
File metadata
- Download URL: admission_gate-0.4.1-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b53eb7d90297c2e28bd2436d0728de38c2357f2601103732d75b0af051ce4686
|
|
| MD5 |
e4680137e7ebde9aeba3c03821ed3e4a
|
|
| BLAKE2b-256 |
f0dba96d07aca14aaf85f98d5c30f4cf24e4f2e2c2cf2637c0ba07054baeb191
|