feat: M3.8.1 phase 1 — content router + log compressor

ContentRouter uses Google Magika ML for content detection (<1ms) with regex
fallback. Detects JSON, code, logs, diffs, config, text.

LogCompressor reuses M3.7.7 patterns (markers, cascade, strip_ansi) to
shrink build logs by keeping errors/stacks and dropping noise.

17 unit tests passing:
- router: json, code, diff, log, text detection
- log: error lines, stack traces, ansi stripping, compression
- optimizer: token estimation, passthrough mode

Magika + ort ONNX runtime added to Cargo.toml.
This commit is contained in:
Story Crater Bot
2026-08-28 09:29:56 -07:00
parent 2c37d7b6f2
commit b18932b10c
7 changed files with 866 additions and 9 deletions
+2 -5
View File
@@ -285,9 +285,6 @@ data:
opensearch.password: "admin"
opensearch.ssl.verificationMode: none
# Dashboards index
opensearch_dashboards.index: ".opensearch_dashboards"
# Logging
logging.appenders.default.type: console
logging.appenders.default.layout.type: pattern
@@ -355,7 +352,7 @@ spec:
# Liveness probe
livenessProbe:
httpGet:
path: /api/status
path: /
port: 5601
initialDelaySeconds: 30
periodSeconds: 10
@@ -365,7 +362,7 @@ spec:
# Readiness probe
readinessProbe:
httpGet:
path: /api/status
path: /
port: 5601
initialDelaySeconds: 15
periodSeconds: 5