Commit be3351c
committed
feat(filter): transport filter engine core — config, classification, SIMD evaluation
Chunk 1 of transport filter engine implementation:
- FilterRule, FilterAction, TransportFilterTierConfig config types
- Tier classification via text pattern matching (regex, not AST walk)
- Tier 1: has(), ==, !=, startsWith, endsWith, contains
- Tier 2: compound CEL (detected by exclusion)
- Tier 3: restricted functions (matches, exists, map, etc.)
- CompiledFilter with Tier 1 SIMD evaluation via sonic_rs::get_from_slice
- Dotted paths supported (metadata.source splits to path array)
- MsgPack payloads bypass filters (JSON-only SIMD extraction)
- TransportFilterEngine assembly with startup validation:
- Tier gate enforcement (reject above enabled tier)
- Ordering warnings (higher tier before lower tier)
- Filter count warnings (>20 per direction)
- FilterMetrics counters (transport_filtered_total)
- 56 tests covering config, classification, evaluation, engine assembly
regex added to transport feature (required for Tier 1 classification).1 parent 0632854 commit be3351c
7 files changed
Lines changed: 1870 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments