PVC Phase 6-7 Architecture
May 25, 2026 ยท View on GitHub

PVC Phase 6-7 Architecture
This document describes the architecture for the final two PVC-inspired phases:
- Phase 6: function-stream utilities (
envelope,reshape) - Phase 7: parity benchmarks and regression gates
1) Phase 6 Module Layout
Core module:
/Users/cleider/dev/pvx/src/pvx/core/pvc_functions.py
Command-line interface (CLI) entry points:
/Users/cleider/dev/pvx/src/pvx/cli/pvxenvelope.py/Users/cleider/dev/pvx/src/pvx/cli/pvxreshape.py
Unified registration:
/Users/cleider/dev/pvx/src/pvx/cli/pvx.py
Packaging scripts:
/Users/cleider/dev/pvx/pyproject.toml
Design choices
- Deterministic control-map generation and transformation with no random branches.
- Text-first map formats (
csvandjson) for shell and version-control friendliness. - Interpolation compatibility with existing control-map conventions:
none,stairstep,nearest,linear,cubic,exponential,s_curve,smootherstep,polynomial
- Direct interoperability with
pvx vocand PVC-style operators by emitting explicit key columns (for examplestretchorpitch_ratio).
2) Phase 7 Benchmark Layout
Benchmark runner:
/Users/cleider/dev/pvx/benchmarks/run_pvc_parity.py
Baseline artifact:
/Users/cleider/dev/pvx/benchmarks/baseline_pvc_parity.json
Continuous integration (CI) gate:
/Users/cleider/dev/pvx/.github/workflows/pvc-parity-regression.yml
Scenario set
The parity suite includes both identity-expected and effect-expected cases:
filter_identity_flatring_identity_depth0chordmapper_identity_strength0inharmonator_identity_mix0tvfilter_envelope_modulatedringtvfilter_controlled
Objective metrics
Per-case metrics:
- signal-to-noise ratio (SNR, dB)
- log spectral distance (LSD)
- modulation spectrum distance
- envelope correlation
- output peak absolute value
- output root mean square (RMS)
- runtime seconds
Gate strategy:
- Compare current report to committed baseline by case name.
- Apply absolute drift tolerance per metric (
--gate-tolerance). - Fail continuous integration (CI) if any case/metric drifts beyond tolerance.
3) Validation coverage
Tests:
/Users/cleider/dev/pvx/tests/test_pvc_phase6.py/Users/cleider/dev/pvx/tests/test_pvc_parity_benchmark.py
Validation intent:
- Correct envelope/control generation and reshape behavior.
- Command-line interface (CLI) smoke coverage for new tools.
- Benchmark report generation and baseline gate behavior.