Files
TinyTorch/.cursor/rules
Vijay Janapa Reddi 9a0ba3cca8 docs: Add comprehensive integration testing rules
- Create focused integration testing rule (256 lines, under 500-line limit)
- Establish core principle: interface compatibility over functionality re-testing
- Define 4 integration test categories: Foundation, Architecture, Training, Inference
- Provide clear DO/DON'T examples with code snippets
- Document testing anti-patterns to avoid
- Include educational testing principles and workflow guidelines
- Reference 17 existing integration test files in tests/ directory
- Update rules README to include new integration-testing.md rule
2025-07-18 00:33:26 -04:00
..

description
description
Overview of TinyTorch's focused, actionable rule set - each rule under 500 lines and scoped to specific concerns.

TinyTorch Rules Overview

This directory contains focused, actionable rules for TinyTorch development. Each rule is scoped to specific concerns and kept under 500 lines for clarity.

Rule Organization

Core Context & Structure

Development Workflow

Module Development

Testing

Key Design Principles

1. Focused Scope

Each rule addresses a specific concern:

  • Context: Course philosophy and project structure
  • Workflow: Development and Git processes
  • Implementation: Module development and NBDev patterns
  • Quality: Testing and real data requirements

2. No Redundancy

  • Testing content consolidated in testing-patterns.mdc
  • Real data principles extracted to real-data-principles.mdc
  • NBDev patterns focused on directives and structure
  • Module development focused on core principles

3. Actionable Guidance

  • Concrete examples with code snippets
  • Clear DO/DON'T patterns
  • Specific file references and commands
  • Checklists for quality standards

4. Composable Rules

Rules reference each other without duplication:

  • development-workflow.mdc references git-workflow.mdc
  • module-development-best-practices.mdc references real-data-principles.mdc
  • testing-patterns.mdc stands alone with focused testing guidance

Rule Usage

Each rule is designed to be:

  • Self-contained: Can be read independently
  • Actionable: Provides specific guidance and examples
  • Focused: Addresses one main concern
  • Concise: Under 500 lines for easy consumption
  • Referenced: Can be cited in development discussions

Quality Standards Met

Focused: Each rule has a single, clear purpose Actionable: Concrete examples and guidance Scoped: No rule exceeds 500 lines Non-redundant: No duplicate content across files Composable: Rules reference each other cleanly Maintainable: Easy to update individual concerns