Skip to content

Separate test from production code in system_overview + architecture_smells #4

Description

@blong-dev

Problem

system_overview and architecture_smells don't distinguish test infrastructure from production code, so test fixtures dominate the signal. v3's "largest modules" are all test files (test_permissions.py 211 fns, test_enrichment.py 210); "call-graph hubs" surface _make_orchestrator (78 callers) and _populate_smoke_data (349 lines) — test fixtures, not architecture.

Fix

Classify modules/functions as test vs production (path heuristics: tests/, *_test.*, *.test.*, conftest.py, inferred runner already detected by the tests-layer detector). Default overview/smells to production code; offer test findings as a separate opt-in view.

Acceptance

  • system_overview "largest modules" and architecture_smells exclude test code by default; a --include-tests flag restores it.

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