Skip to content

[P3.11] Dead/unused code and minor infra nits — batch cleanup #782

Description

@frankbria

Severity: low | Category: unfinished | Phase: P3.11

Problem

Documented-but-empty by_day; IssueGenerator exported but used by no product code (coverage measures dead code); claude-agent-sdk declared/installed but never imported; dead expression + unread isolate field; health-check timer fires at both 00:00 and 02:00; deploy.yml has no permissions: block and reseeds host keys via live ssh-keyscan; committed .py.backup/scratch/placeholder tests.

Evidence

codeframe/lib/metrics_tracker.py:664 (by_day no-op), codeframe/planning/issue_generator.py:110 (unused module), pyproject.toml:28 (claude-agent-sdk unused), codeframe/core/conductor.py:1537 (dead expr + unused isolate), systemd/codeframe-health-check.timer:7 (double OnCalendar), .github/workflows/deploy.yml:23 (no permissions block), .github/workflows/deploy.yml:57 (unverified ssh-keyscan), tracked tests/*.py.backup + tests/debug/ + tests/test_new_feature.py

Acceptance criteria

Remove or wire each dead item; add permissions: {contents: read} to deploy.yml; pin SSH_KNOWN_HOSTS; drop OnCalendar=daily; delete .backup/scratch/placeholder tests and add *.backup/*.log/coverage.json to .gitignore.

Dependencies

None


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions