What problem does it solve?
Weekly RAII symmetry maintenance across a C codebase by enforcing strict lifecycle pairs (new, init, fini, free) and a single error-cleanup path to prevent leaks, double-frees, and fragility in lifecycle transitions.
Core Features & Use Cases
- Four orthogonal primitives: new allocs the struct, init fills fields, fini releases fields safely, and free deallocates the struct.
- Ledger-driven workflow: per-prefix tracking to ensure one PR per lifecycle family and avoid re-litigating fixed issues.
- Phase-based scanning: enables naming and structural checks to surface defects and enforce idempotent cleanup.
- Real-world application: suitable for yanet2's C codebase to repair and standardize RAII patterns.
Quick Start
Run the phase-1 scans to inventory lifecycles, review findings in the ledgers, and implement targeted fixes in separate worktrees.