Skip to content

Implement UYDD to CDAD Tutorial: Constraint-Driven AI Development #314

@koriym

Description

@koriym

Summary

Build a practical tutorial that transforms the insights from our "Ugoita Yatta!" to Constraint-Driven Development articles into an actionable learning experience.

Background

The recent AI analysis documents provide deep insights into:

  • UYDD (Ugoita Yatta Driven Development) problems
  • Hierarchical constraint testing (Schema → Interface → HTTP → Hypermedia → Domain)
  • IWY vs CDAD comparison
  • AI-generatable tests from constraint definitions

Proposed Tutorial Structure

Phase 1: UYDD Recognition

  • Identify "It works, yay!" moments in existing code
  • Analyze current testing approaches (fact verification vs constraint validation)
  • Demonstrate the limitations of design-less testing

Phase 2: Constraint Definition

  • ALPS semantic constraint modeling
  • JSON Schema formal constraints
  • Interface and type constraints
  • HTTP and REST constraints

Phase 3: Hierarchical Testing Implementation

  • Level 1: Schema constraint verification
  • Level 2: Interface constraint testing
  • Level 3: HTTP constraint validation
  • Level 4: Hypermedia constraint verification (critical!)
  • Level 5: Domain constraint testing

Phase 4: AI-Generated Testing

  • Constraint-to-test automatic generation
  • Comparison with manual IWY testing approaches
  • Demonstration of 95%+ AI generation accuracy with clear constraints

Phase 5: Real-world Migration

  • Practical steps from UYDD to CDAD
  • Team adoption strategies
  • Measurement of quality improvements

Expected Outcomes

  • Practical understanding of constraint-driven development
  • Hands-on experience with hierarchical testing
  • AI-assisted development workflow mastery
  • Mathematical quality assurance implementation

Technical Requirements

  • BEAR.Sunday framework
  • PHP 8.1+
  • JSON Schema validation
  • Constraint definition examples
  • Test automation examples

This tutorial will be the practical companion to the theoretical insights, allowing developers to experience the transformation from "Ugoita Yatta!" to systematic constraint-driven quality assurance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions