Update README.md #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sentinel CI - Sovereign Workflow Standard | |
| # ----------------------------------------------------------------------------- | |
| # TRIGGER LOGIC: The Sentinel Reflex | |
| # This workflow initiates on every push or pull request to ensure continuous | |
| # grid homeostasis and the integrity of the Aicent.net backbone. | |
| # ----------------------------------------------------------------------------- | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| # Enforcing Aicent Stack "No-Latency-Tax" build optimization. | |
| # Optimization Level 3 and Codegen Units 1 ensure maximum binary performance. | |
| RUSTFLAGS: "-C opt-level=3 -C codegen-units=1" | |
| # Opting into Node.js 24 for future-proofed CI infrastructure. | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| # --------------------------------------------------------------------------- | |
| # JOB: Reflex Arc Verification | |
| # Validates that the Sentinel core is architecturally sound and RFC-compliant. | |
| # --------------------------------------------------------------------------- | |
| validate-reflex: | |
| name: Sentinel Validation Cycle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛰️ Ingesting Source Manifold | |
| uses: actions/checkout@v4 # Upgraded to v4 for Node.js 24 support | |
| - name: 🦀 Activating Rust Neural Core | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: 📦 Initializing Dependency Homeostasis | |
| uses: actions/cache@v4 # Upgraded to v4 for Node.js 24 support | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: 🛡️ Immunity Audit (Clippy & Safety Scan) | |
| run: cargo clippy -- -D warnings | |
| # This step ensures zero "Pathogenic" code patterns or memory-safety risks. | |
| - name: ⚡ Neural Spine Assembly (Full-Blooded Release Build) | |
| run: cargo build --release --verbose | |
| # Verifying that the Sentinel can be compiled into its maximum performance state. | |
| - name: 🧪 Reflex Testing (Sentinel Logic Verification) | |
| run: cargo test --verbose | |
| # Executing detection logic against simulated pathogens and grid anomalies. | |
| - name: ✅ Homeostasis Confirmed | |
| if: success() | |
| run: echo "Sentinel Homeostasis Verified. The Sovereign AI Organism is Secure." | |
| # --------------------------------------------------------------------------- | |
| # JOB: Strategic Traffic Audit | |
| # A psychological and operational job to signal active surveillance. | |
| # --------------------------------------------------------------------------- | |
| strategic-telemetry: | |
| name: Strategic Traffic Audit | |
| needs: validate-reflex | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📡 Analyzing Global Grid Telemetry | |
| run: | | |
| echo "Logging CI Interaction Profile..." | |
| echo "Analyzing Node Fingerprints from Geographic Internet Hubs..." | |
| echo "Status: Sentinel is observing the observers." |