[18.0][ADD] cetmix_tower_jet_mode #490
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
ivs-cetmix
Description
This PR introduces the
cetmix_tower_jet_modemodule, 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_requiredtoggle 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_readto 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_requiredconstraint.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 -->