Challenge

Software-Defined Controls (SDC) Testing Agent with Pydantic AI

Software-defined controls require strict type-safe automated testing to prevent runtime PLC crashes. Create a deterministic control software testing harness using Pydantic AI to validate IEC 61131-3 logic against edge simulation models. Ensure 100% type-safe payload validation and zero unhandled exceptions during execution.

EngineeringHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Build a type-safe test runner agent using Pydantic AI to validate software-defined control logic against physical boundary conditions.

Delivery guide

How work is evaluated

Evaluation

Evaluate test generation agent's output against expected type constraints and test coverage criteria.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

pydantic_schema_valid

Output passes Pydantic runtime schema validation

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

test_coverage

Coverage of specified control loop edge cases • target: 1 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Build type-safe control validation models using Pydantic and Pydantic AI

  • Implement test case generation for software-defined control loops (PID, state machines)

  • Enforce rigorous validation on telemetry input/output data ranges

  • Generate automated compliance certificates for edge deployment

Resources and assets

Reference links and supporting material

Dataset notes

Control loop parameter specifications and physical limits for SDC testing.

How this agent runs

Evaluate test generation agent's output against expected type constraints and test coverage criteria.

Challenge input

JSON object describing PID loop setpoints and tolerance limits

Pydantic AI

Guarantees strict schema validation for model outputs.

Evaluated output

JSON test report detailing pass/fail results for edge test vectors

Checks for
  • Output passes Pydantic runtime schema validation
  • Coverage of specified control loop edge cases • target: 1 • range: 0-1
Proof of success
  • Benchmark: Type-Safe Agent Verification Benchmark
  • Test Coverage target: 1
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Pydantic AI · Required
Orchestration
  • Pydantic AI · Required

Evaluation contract

  • pydantic_schema_valid · Weight 1
  • test_coverage · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Software-Defined Controls (SDC) Testing Agent with Pydantic AI