SICTACK SENTINEL Behavioral Engine
Developer reference for stateful task session monitoring, deterministic anomaly detection (SNT-R001 to SNT-R009), explainable risk scoring, and automated containment.
SENTINEL Architecture & Role
While SICTACK CORE evaluates isolated tool calls at the in-process execution boundary, SICTACK SENTINEL operates across time and multi-step execution traces.
Autonomous AI agents often fail not because a single tool call was forbidden, but because a sequence of individually permissible actions collectively deviates from the intended goal (such as data exfiltration via tiny payload fragments, infinite execution loops, or goal drift). SENTINEL provides continuous behavioral surveillance and progressive containment.
Task Session Confinement
Every autonomous workflow runs inside a TaskSession bound to a TaskScope envelope. This envelope defines the agent’s authorized tool set, allowed external resources, maximum step count, and execution time budget.
from sictack.sentinel import (
TaskSessionManager,
TaskScope,
BehavioralIntelligenceEngine,
AutomatedContainmentEngine,
ContainmentPolicy,
)
# 1. Initialize Task Session Manager
manager = TaskSessionManager()
# 2. Define authorized task scope envelope
scope = TaskScope(
allowed_tools=["fetch_html", "parse_table", "summarize_text"],
allowed_resources=["https://sec.gov/*", "https://treasury.gov/*"],
max_steps=50,
max_execution_time_seconds=300,
)
# 3. Create confined session
session = manager.create_session(
agent_id="research_bot_01",
task_objective="Extract annual 10-K filing disclosures",
authorized_scope=scope,
)9 Behavioral Detectors (SNT-R001 to SNT-R009)
SENTINEL evaluates 9 deterministic detection algorithms on every step event:
| Rule ID | Detector Name | Severity | Weight |
|---|---|---|---|
| SNT-R001 | Repeated Unauthorized Tool Calls | HIGH | 0.65 |
| SNT-R002 | Repeated Restricted Resource Access | HIGH | 0.65 |
| SNT-R003 | Excessive Tool Execution Attempts | MEDIUM | 0.35 |
| SNT-R004 | Task Scope Violations & Drift | HIGH | 0.65 |
| SNT-R005 | Abnormal Execution Frequency | MEDIUM | 0.35 |
| SNT-R006 | Execution Budget & Step Limit Violations | HIGH | 0.65 |
| SNT-R007 | Suspicious Tool Sequences | CRITICAL | 0.90 |
| SNT-R008 | Approval Abuse & Coercion Spam | HIGH | 0.65 |
| SNT-R009 | Fragmented Data Exfiltration Patterns | CRITICAL | 0.90 |
Explainable Risk Scoring & 4 Tiers
The ExplainableRiskEngine aggregates individual detector triggers using an independent probability union formula:
The resulting score maps directly to four standardized operational tiers:
Normal execution within bounds. No action taken.
Minor behavioral drift. Enforces step-up monitoring.
Multiple anomaly indicators. Rate throttles and requires approval.
Severe breach detected. Immediate quarantine and suspension.
Python SDK Integration Example
from sictack.sentinel import ExplainableRiskEngine, AutomatedContainmentEngine
# 1. Initialize behavioral detector and risk engine
behavioral_engine = BehavioralIntelligenceEngine()
risk_engine = ExplainableRiskEngine()
containment_engine = AutomatedContainmentEngine()
# 2. Evaluate execution event across 9 continuous detectors
anomalies = behavioral_engine.evaluate_event(session, event)
# 3. Compute normalized risk score and factor breakdown
assessment = risk_engine.assess_session(session, anomalies)
print(f"Risk Score: {assessment.risk_score:.2f} | Tier: {assessment.risk_tier.name}")
# Output: Risk Score: 0.85 | Tier: TIER_3
# 4. Enforce automated containment based on risk policy
action = containment_engine.enforce(session, assessment)
print(f"Enforced Action: {action.action_type.name} (Status: {action.status.name})")
# Output: Enforced Action: QUARANTINE_SUSPEND (Status: ENFORCED)