Skip to content

Add AI scaffolding (Tier 3) for distributed-workloads #940

Description

@h0pers

What you would like to be added?

Implement AI Scaffolding Tier 3 checks 3.1 and 3.3 for the distributed-workloads repo:

Check 3.1 - Component-level context files

Add .claude/rules/ with path-scoped rules for component-specific conventions:

  • tests/trainer/ - mandatory tag declaration, test structure, import boundaries
  • tests/common/support/ - shared infrastructure conventions, environment variable patterns, file organization
  • tests/** - namespace isolation, resource naming, cleanup, cross-cutting import boundary rules

Check 3.3 - Architectural boundary lint rules

Enable depguard in .golangci.yml with per-suite boundary rules preventing cross-suite imports:

  • tests/kfto/ must not import from tests/trainer/, tests/fms/, tests/odh/
  • tests/trainer/ must not import from tests/kfto/, tests/fms/, tests/odh/
  • tests/fms/ must not import from tests/kfto/, tests/trainer/, tests/odh/
  • tests/odh/ must not import from tests/kfto/, tests/trainer/, tests/fms/

Move shared image helpers (GetAlpacaDatasetImage, GetBloomModelImage) from tests/kfto/ to tests/common/support/environment.go to resolve existing cross-suite import violations.

Why is this needed?

The AI Scaffolding Tier 3 report identified gaps in the distributed-workloads repo: no component-level context files (634 files with only root-level CLAUDE.md) and no architectural boundary enforcement via linting. Adding these improves AI agent effectiveness and prevents unintended coupling between test suites.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions