Skip to content

policy: Manufacturing Robot Quality Gate (QA) #7

@akarlaraytu

Description

@akarlaraytu

📝 Context

A robotic arm in a factory sorts parts. It needs a strict policy to decide whether to "Pack" or "Discard" a product based on sensor readings.

🎯 The Goal

Write a logic gate for the QA (Quality Assurance) robot.

Variables you can use:

  • defect_rate (Float): Visual sensor defect probability (0.0 - 1.0).
  • weight_variance (Float): Deviation from standard weight (grams).
  • is_urgent_order (Boolean): If production is behind schedule.

Requirements:

  1. DISCARD (Block Pack) if defect_rate > 0.05 (Strict quality).
  2. DISCARD (Block Pack) if weight_variance > 2.0 grams.
  3. EXCEPTION: If is_urgent_order is True, allow defect_rate up to 0.10 (Relaxed rules).

📚 Resources

✅ Definition of Done

Submit a PR with: examples/community/factory_qa_robot.csl

Metadata

Metadata

Assignees

No one assigned

    Labels

    IoTFor IoT Applicationsgood first issueGood for newcomerspolicyWriting CSL policies for business use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions