⚠️ DEVELOPMENT BRANCH
Version: v2.0.0-dev | Status: Development Only | Last Updated: March 17, 2026
This branch contains features not yet in the main branch.
Last Updated: March 17, 2026
Copyright © 2026 Jeri L3D | JeriSadeuM | All Rights Reserved
License: MIT License
Repository: https://github.com/jerisadeumai/zero-shield-cli
Specification: Comprehensive Spec
Zero-Shield operates on a clinical Observe-Orient-Decide-Act loop. This document details the reasoning chains and the security gates that prevent cognitive collapse.
Formal Specification: The OODA loop implementation is formally specified in Requirement 2 with 10 acceptance criteria and validated by Property 7 (OODA Loop Formatting Enforcement) using property-based testing.
- OBSERVE: The Python backend fetches live AWS data and injects it into the system prompt.
- ORIENT: The AI analyzes the data to identify security deltas or threats.
- DECIDE: The AI selects the appropriate tool or identifies if a target must be set.
- ACT: The AI executes a strictly formatted
[ACTION:TAG].
To prevent the "Infinite Loop Trap" and "Hallucination Bleed" identified in the Stress Testing (Edge Case Matrix), the following gates are now enforced:
- Logic: Every AI response must contain
[ORIENT],[DECIDE], and[ACT]. - Constraint: If tags are missing, the system intercepts, issues a
[SYSTEM ERROR]user-correction, and increments a strike counter. - Kill-Switch: At 3 consecutive strikes, the session is severed to prevent invisible token-burning loops.
- Logic: Explicit targeting is mandatory.
- Constraint: If
last_idis None, a crimson[ACTIVE TARGET: NONE]alert is injected into the prompt. - Constraint: Rule #8 forbids the AI from assuming targets based on background training data or resource names.
- Logic: All environment metadata is considered hostile until sanitized.
- Shield: The
_sanitize_aws_tagfunction strips structural characters ([,],`,<,>,ACTION:) from AWS resource tags during the OBSERVE phase, neutralizing code-injection or XML-wrapping attacks.
- Logic: Multi-line bursts indicate manual terminal spills, not clinical interaction.
- Shield: Uses non-blocking I/O polling to detect rapid buffer fills. If triggered,
universal_flushis called to physically discard the runaway stdin data before it reaches the AI.
Principal Architect: Jeri L3D | JeriSadeuM | Version: v2.0.0-dev | Specification: Comprehensive Spec