W10Workabilityscope: coreweight: 2fix: manual

    W10: Test cost tiers defined (pytest markers)

    Why this rule exists (Empirical Evidence)

    Production Python repository audits show that defining at least 3 pytest marker tiers (such as unit, smoke, and slow/network/live) lets AI agents run sub-5-second unit suites locally. Without cost tiers, every test invocation hits slow network or external APIs — causing agents to stall or skip verification. PR CI runs fast unit tests while nightly CI runs live integration markers.

    Claude Code Repository Corpus Analysis (2026)
    Multi-Project Dev Discipline Audit (2026)
    Anti-pattern (Triggers W10)
    # Anti-pattern triggering W10 (Test cost tiers defined (pytest markers))
    # All unit, slow, and live network tests run together with no pytest markers defined.
    Compliant pattern (Passes W10)
    # Compliant harness passing W10 (Test cost tiers defined (pytest markers))
    # pyproject.toml defines fast/unit, slow, and network markers so agents run `-m 'not slow and not network'`.
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check W10

    More Workability checks