Skip to content

CLI: collapse 4 copy-pasted handle normalizers and the duplicated option-scan loop #93

Description

@arzafran

normalizeWindowHandle / normalizeWorkspaceHandle / normalizePaneHandle / normalizeSurfaceHandle in CLI/programa.swift are the same algorithm four times; parseOption / parseRepeatedOption are the same scan loop twice (single vs accumulated value).

Fix: one generic handle normalizer parameterized by prefix, one option scanner.


From the 2026-07-09 nuclear review (10 module reviewers + Codex cross-model pass, disprove-first). Line refs are against the reductive-audit branch (PR #81).

Metadata

Metadata

Assignees

No one assigned

    Labels

    nuclear-reviewFrom the 2026-07-09 whole-codebase nuclear reviewtech-debtKnown latent issue / maintenance debt

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions