SOL-DEPYLER-004 // depyler
Typed JSONL Log Filter to Serde Rust
Lower Python dataclass log filtering pipelines into zero-copy serde structs verified against golden JSONL fixtures.
Measured delta: 100% golden fixture parity across 10,000 JSONL log lines
Before (Failing Anti-Pattern)
def is_error(line):
return "500" in line # false positives on timestamps and IDs
After (Verified Code)
def is_error(status: int) -> bool:
return status >= 500
Verification Contract
schema: depyler.contract.v1 golden_fixtures: tests/logs_5xx.jsonl exit_code_parity: true
Verified CLI Command & Output
$ depyler transpile --golden tests/logs_5xx.jsonl filter.py depyler: 100% golden fixture parity (0 diffs across 10,000 log lines)