← Back to Pull requests

[18.0][ADD] cetmix_tower_jet_mode #490

Open
unknown opened this pull request with 264 lines diff across 3 files
View on GitHub
unknown unknown commented on Jun 01, 2026 02:06 UTC
Author

Description


This PR introduces the cetmix_tower_jet_mode module, adding the concept of Modes to Jet Templates and Jets. This allows administrators to define named operational contexts (e.g., "Database Backups", "Logs & Monitoring") to filter the visible configurations and lifecycle actions.

Key Features


Modes Definition: Define multiple Modes per Jet Template, each with its own description, access level, and allowed configurations/actions.
Contextual Filtering: When a mode is active, only the relevant configuration rows and lifecycle actions are displayed. Everything else is visually hidden without deleting data.
Mode Required Enforcement: Added a mode_required toggle on the Jet Template. When enabled, it forces all associated jets to have an active mode selected. It auto-assigns the lowest-sequence mode to prevent blank states.
Backend Filtering: Fully integrates with web_search_read to ensure server-side calls also respect the active mode.

UI Improvements


The mode selector and the "Mode Required" toggle are neatly grouped in a two-column layout on the Jet Template form view.

Testing


Includes comprehensive unit tests covering mode filtering, access levels, and the mode_required constraint.

This module improves the UX for complex jets by hiding irrelevant settings and enhances security by tying operational contexts to access levels.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

New Features
Jet Mode: configure/manage operational modes on templates and jets
Mode-based filtering of available actions and variables; mode-required enforcement and descriptions
UI: mode selector, modes management tab, conditional hiding of unavailable rows
Demo data and backend styling for Jet Mode

Tests
Added comprehensive test suite covering mode behavior, propagation, constraints, and search filtering

Documentation
* Added README entry for Cetmix Tower Jet Mode
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 264 lines (+198 / -66) across 3 files Reviewer: ivs-cetmix Review duration: 248184m
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.46) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 264 lines diff across 3 files
0.46
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
40%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.334
Real PR Conversation Timeline
1 comments
"Review active on #490"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 40.9% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 46.3% (MEDIUM) · Higher = larger blast radius
46.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 40.9% · Lower = rushed or shallow review
40.9%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 27.3% · Safe to merge
27.3%