Catalog PyPI
PACKAGE EXPLORERView in registry

admission-gate

PyPI

Deterministic admission gate with human review and cryptographic audit logging for CLI agents.

Versions collected1
Direct dependencies0From release 0.4.1
Last observed20 Oct, 19:42 UTC

README

Version 0.4.1 documentation

admission-gate

CI License: MIT PyPI

A deterministic admission gatekeeper, feedback regulator, and cryptographic audit logger for autonomous shell environments and agent tooling.

Architectural Layers

  1. The Map (admission-gate): Static verification kernel executing strict path canonicalization, command jail confinement, and invariant enforcement.
  2. The Territory (kpt_kernel / fpt_daemon): Adaptive PID damping controller adjusting burst allowance, cooldown intervals, and path quarantines based on real-time fault telemetry.
  3. The Witness (Human_inthe_loop): Out-of-band sovereign attractor handshake preventing automated execution bypasses when damping escalates ($\sigma > 0.85$).
  4. 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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.4.19 Sept 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:42 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1c0520b565a570848be00df60a8d1429e992df0b63662c71877a85b81608557d