Skip to content

feat(doctor): Extend squad doctor with file size thresholds and roster cross-checks #30

@diberry

Description

@diberry

Problem

Existing squad doctor checks file existence but not file sizes. decisions.md at 345KB passes doctor. No roster-to-directory cross-check exists.

From

10-agent team review of #21. All 5 reviewers confirmed doctor exists but has gaps.

Proposed New Checks

  • decisions.md size (warn >20KB, error >50KB)
  • Per-agent history.md size (warn >15KB, error >30KB)
  • decisions/inbox/ non-empty check (warn if files present)
  • Total .squad/ directory size (warn >1MB, error >5MB)
  • Roster-to-agents/ directory cross-check (orphaned + missing)
  • .gitattributes union merge drivers present
  • --layer flag: state | environment | governance | all

Acceptance Criteria

  • Every new check has pass + fail unit test
  • Every fail/warn outputs an actionable fix command
  • squad doctor completes in <500ms on 20-agent repo
  • Exit codes: 0=pass, 1=fail, 2=warn

Related

#21 (diagnostics framework PRD), #20 (decisions.md scaling)

Owner

EECOM (Core Dev) + FIDO (Quality Owner)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgo:needs-researchNeeds investigationsquadSquad triage inbox — Lead will assign to a membersquad:archiveResolved by upstream or no longer applicablesquad:fidoAssigned to FIDO (Quality Owner)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions