Skip to content

Remove unused lineSeen property from pendingSuppress (dead code in orchestrate.ts:1947, 1959) #148

@klappy

Description

@klappy

Cursor Bugbot finding on PR #146 (428b6769), low severity:

The lineSeen property on the pendingSuppress object is assigned at creation but never read. Only pendingSuppress.rule and pendingSuppress.reason are accessed (lines 1976–1978). The lineSeen field in the type definition and its assignment are dead code that can be removed.

Verified locally: grep -n lineSeen workers/src/orchestrate.ts returns only the two write sites (L1947 type, L1959 assignment). No reads.

Disposition on PR #146: waived for the v0.26.0 promote — no behavioral impact, and a fix here would re-touch orchestrate.ts (load-bearing per klappy://canon/constraints/release-validation-gate Rule 2) and force another full validator dispatch for a cosmetic cleanup. Tracking here for the next code beat that legitimately touches the audit code path.

Suggested fix: drop lineSeen from both the type annotation and the assignment object. ~3-line diff, no test changes needed (no behavioral surface).

Source: PR #146 review comment #146 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions