Skip to content

Parse wire arrays positionally and reject narrowing or invalid channel values #431

Description

@mkovero

Source: from-claude-to-codex.md, verified at a8b80db9. Includes carried-over AUDIT-003.

Independent filter_map parsing can pair a frequency with the wrong gain when invalid mic-curve elements occur at different indices. Invalid generate channels can collapse to an empty list and fall back to the configured output, emitting on a channel the request did not name. Monitor has analogous fallback/mis-measurement behavior. Several wire values are narrowed with unchecked u64 as u32 casts in generate, monitor, transfer pairs, and setup.

Required outcome: arrays are validated positionally and rejected as a whole on any invalid element; an explicitly supplied invalid channel list never falls back to defaults or emits audio. Every wire-to-u32 conversion is checked and rejects overflow. Cover mismatched invalid indices, invalid-only channel lists, mixed valid/invalid lists, and values above u32::MAX.

Parent epic: #423

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:architectArchitect agent acted on itagent:triageTriage agent acted on itbugSomething isn't workingready-to-implementSpec complete, developer can pick upscope-nonedaemon, CLI, wire, build, docs — nothing a standard governs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions